pkgsrc/mail/qmHandle/Makefile
reed 32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00

33 lines
918 B
Makefile

# $NetBSD: Makefile,v 1.12 2004/12/28 02:47:45 reed Exp $
#
DISTNAME= qmhandle-1.2.0
PKGNAME= ${DISTNAME:S/h/H/}
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qmhandle/}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://qmhandle.sourceforge.net/
COMMENT= Tool to view and manage the qmail message queue
WRKSRC= ${WRKDIR}
USE_PERL5= YES
REPLACE_PERL= qmHandle
NO_BUILD= YES
SUBST_CLASSES+= config
SUBST_STAGE.config= do-configure
SUBST_FILES.config= qmHandle
SUBST_SED.config= -e 's|/var/qmail/queue/|${QMAIL_QUEUE_DIR}/|g'
SUBST_SED.config+= -e 's|/etc/init.d/qmail|${RCD_SCRIPTS_DIR}/qmail|g'
.if exists(/usr/bin/pgrep)
SUBST_SED.config+= -e 's|pidof|/usr/bin/pgrep|g'
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qmHandle
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qmHandle
.include "../../mk/bsd.pkg.mk"