diff options
author | Clive Lin <clive@FreeBSD.org> | 2001-03-04 13:13:42 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2001-03-04 13:13:42 +0000 |
commit | f3a4a2b0be11ec5a1067fa45f82c3907b31e107c (patch) | |
tree | ee7de39ae317aef85f85ef37a00432eec120eaa2 /mail/nullmailer/Makefile | |
parent | c5691fd6407b2d8f3a140fb95756c5da4e625083 (diff) | |
download | ports-f3a4a2b0be11ec5a1067fa45f82c3907b31e107c.tar.gz ports-f3a4a2b0be11ec5a1067fa45f82c3907b31e107c.zip |
Notes
Diffstat (limited to 'mail/nullmailer/Makefile')
-rw-r--r-- | mail/nullmailer/Makefile | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile index e728180b856c..406c32e3b14b 100644 --- a/mail/nullmailer/Makefile +++ b/mail/nullmailer/Makefile @@ -8,6 +8,7 @@ PORTNAME= nullmailer # PORTVERSION= 1.00RC5 PORTVERSION= 1.00r5 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.em.ca/~bruceg/nullmailer/archive/%SUBDIR%/ # MASTER_SITE_SUBDIR= ${PORTVERSION} @@ -17,22 +18,34 @@ DISTNAME= ${PORTNAME}-1.00RC5 MAINTAINER= clive@FreeBSD.org HAS_CONFIGURE= yes -IS_INTERACTIVE= yes -NO_PACKAGE= yes MAN1= nullmailer-inject.1 sendmail.1 MAN7= nullmailer.7 MAN8= nullmailer-queue.8 nullmailer-send.8 +PKGMESSAGE= ${WRKDIR}/pkg-message + +.if defined(BATCH) +PLIST_SUB= LOCALSTATEDIR="${PREFIX}" +PLIST_SUB+= LOCALSTATEDIR_RM="@dirrm " +NMH_PREFIX= ${PREFIX} +.else +PLIST_SUB= LOCALSTATEDIR="" +PLIST_SUB+= LOCALSTATEDIR_RM="@comment " +CONFIGURE_ARGS+= '--localstatedir=/var/' +.endif + +# Pass BATCH to pkg-install for Evil Things(tm) pre-install: - @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + @BATCH="${BATCH}" NMH_PREFIX="${NMH_PREFIX}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL do-install: @cd ${WRKSRC} && make install && make install-root post-install: - @${INSTALL} -c files/nullmail.sh ${PREFIX}/etc/rc.d/ - @${INSTALL} -c files/remotes.sample ${PREFIX}/etc/nullmailer/ - @${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%PREFIX%%,${PREFIX},' + @${INSTALL_SCRIPT} -c files/nullmail.sh ${PREFIX}/etc/rc.d/ + @${INSTALL_DATA} -c files/remotes.sample ${PREFIX}/etc/nullmailer/ + @${CAT} ${.CURDIR}/pkg-message | ${SED} -e 's,%%PREFIX%%,${PREFIX},' > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> |