diff options
author | glarkin <glarkin@FreeBSD.org> | 2009-08-11 21:53:54 +0800 |
---|---|---|
committer | glarkin <glarkin@FreeBSD.org> | 2009-08-11 21:53:54 +0800 |
commit | 370670200ad67617677b9328a20374855bd21802 (patch) | |
tree | 6367ab69cab2ea26ddea82486f0024eb82f1b305 /mail/nullmailer | |
parent | 7c2bc77b53718d8d5f5ca27aa0904697e8d6ed44 (diff) | |
download | freebsd-ports-gnome-370670200ad67617677b9328a20374855bd21802.tar.gz freebsd-ports-gnome-370670200ad67617677b9328a20374855bd21802.tar.zst freebsd-ports-gnome-370670200ad67617677b9328a20374855bd21802.zip |
- Fixed text substitution in pkg-install.in
- Bumped PORTREVISION
- Took maintainership
PR: ports/137274
Submitted by: Steve <steve at mailermailer dot com>
Diffstat (limited to 'mail/nullmailer')
-rw-r--r-- | mail/nullmailer/Makefile | 13 | ||||
-rw-r--r-- | mail/nullmailer/files/pkg-install.in | 6 | ||||
-rw-r--r-- | mail/nullmailer/pkg-deinstall | 2 |
3 files changed, 11 insertions, 10 deletions
diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile index e3b33c30d244..c9259e059ce7 100644 --- a/mail/nullmailer/Makefile +++ b/mail/nullmailer/Makefile @@ -7,14 +7,14 @@ PORTNAME= nullmailer PORTVERSION= 1.03 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= mail MASTER_SITES= http://untroubled.org/nullmailer/ \ http://untroubled.org/nullmailer/archive/ MASTER_SITE_SUBDIR= ${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= glarkin@FreeBSD.org COMMENT= MTA for hosts which relay to a fixed set of smart relays HAS_CONFIGURE= yes @@ -22,11 +22,12 @@ HAS_CONFIGURE= yes USE_SUBMAKE= yes USE_RC_SUBR= ${PORTNAME} -SUB_FILES+= pkg-install pkg-message +SUB_FILES+= pkg-install pkg-message PKGINSTALL= ${WRKDIR}/pkg-install PKGMESSAGE= ${WRKDIR}/pkg-message -PLIST_SUB= LOCALSTATEDIR=${LOCALSTATEDIR} +PLIST_SUB+= LOCALSTATEDIR=${LOCALSTATEDIR} +SUB_LIST+= LOCALSTATEDIR=${LOCALSTATEDIR} LOCALSTATEDIR= /var/spool @@ -39,12 +40,12 @@ MAN8= nullmailer-queue.8 nullmailer-send.8 # Pass BATCH to pkg-install for Evil Things(tm) # Pass LOCALSTATEDIR to pkg-install for creating home directory correctly pre-install: - @BATCH="${BATCH}" LOCALSTATEDIR="${LOCALSTATEDIR}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + @BATCH="${BATCH}" LOCALSTATEDIR="${LOCALSTATEDIR}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: @cd ${WRKSRC} && make install-root @${INSTALL_DATA} -c ${FILESDIR}/remotes.sample ${PREFIX}/etc/nullmailer/ - @BATCH="${BATCH}" NMH_PREFIX="${NMH_PREFIX}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @BATCH="${BATCH}" NMH_PREFIX="${NMH_PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/mail/nullmailer/files/pkg-install.in b/mail/nullmailer/files/pkg-install.in index bee52a796ffd..be785915b606 100644 --- a/mail/nullmailer/files/pkg-install.in +++ b/mail/nullmailer/files/pkg-install.in @@ -98,8 +98,8 @@ EOF fi if [ x"$2" = xPOST-INSTALL ]; then - if [ ! -f ${PKG_PREFIX}/etc/nullmailer/me.sample ]; then - echo "Creating \"${PKG_PREFIX}/etc/nullmailer/me.sample\"." - echo `/bin/hostname` > ${PKG_PREFIX}/etc/nullmailer/me.sample + if [ ! -f %%PREFIX%%/etc/nullmailer/me.sample ]; then + echo "Creating \"%%PREFIX%%/etc/nullmailer/me.sample\"." + echo `/bin/hostname` > %%PREFIX%%/etc/nullmailer/me.sample fi fi diff --git a/mail/nullmailer/pkg-deinstall b/mail/nullmailer/pkg-deinstall index d49e047ad1dc..41feaf438d14 100644 --- a/mail/nullmailer/pkg-deinstall +++ b/mail/nullmailer/pkg-deinstall @@ -57,7 +57,7 @@ if [ x"$2" = xDEINSTALL ]; then if [ ! -n "$BATCH" ]; then if /bin/ps -axc | /usr/bin/grep -q nullmailer-send; then if yesno "There are some nullmailer processes running. Shall I kill them" y; then - ${PKG_PREFIX}/etc/rc.d/nullmail.sh stop + ${PREFIX}/etc/rc.d/nullmail.sh stop sleep 2 else echo "OK ... I hope you know what you are doing." |