summaryrefslogtreecommitdiff
path: root/mail/nullmailer
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2003-02-17 02:12:44 +0000
committerjtb <jtb@pkgsrc.org>2003-02-17 02:12:44 +0000
commitf14e5f857ca58b16ae2f4e6cf5ccc657a1072f86 (patch)
tree249b97d561ece478effe8bc03fccc1f10f98b144 /mail/nullmailer
parent34d1f1c3c1507ab209ffdef06df7efe0a46d2de1 (diff)
downloadpkgsrc-f14e5f857ca58b16ae2f4e6cf5ccc657a1072f86.tar.gz
Configure prefix in rc.d script.
Diffstat (limited to 'mail/nullmailer')
-rw-r--r--mail/nullmailer/Makefile9
-rwxr-xr-xmail/nullmailer/files/nullmailer6
2 files changed, 10 insertions, 5 deletions
diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile
index 8f0914d85ab..e2c5411fe1e 100644
--- a/mail/nullmailer/Makefile
+++ b/mail/nullmailer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2003/02/17 01:45:31 jtb Exp $
+# $NetBSD: Makefile,v 1.6 2003/02/17 02:12:44 jtb Exp $
DISTNAME= nullmailer-1.00RC7
CATEGORIES= mail
@@ -35,11 +35,16 @@ pre-configure:
$$f > $$f.tmp && ${MV} -f $$f.tmp $$f; \
done
+post-configure:
+ ${SED} -e 's:@PREFIX@:${PREFIX}:g' \
+ -e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:g' \
+ ${FILESDIR}/nullmailer > ${WRKDIR}/nullmailer
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nullmailer
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS BUGS COPYING ChangeLog \
HOWTO NEWS README TODO ${PREFIX}/share/doc/nullmailer
- ${INSTALL_DATA} ${FILESDIR}/nullmailer ${PKG_SYSCONFDIR}/rc.d
+ ${INSTALL_SCRIPT} ${WRKDIR}/nullmailer ${PKG_SYSCONFDIR}/rc.d
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mail/nullmailer/files/nullmailer b/mail/nullmailer/files/nullmailer
index b2240972263..4377bede2f2 100755
--- a/mail/nullmailer/files/nullmailer
+++ b/mail/nullmailer/files/nullmailer
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: nullmailer,v 1.1 2003/02/17 01:45:32 jtb Exp $
+# $NetBSD: nullmailer,v 1.2 2003/02/17 02:12:44 jtb Exp $
#
# PROVIDE: mail
# REQUIRE: LOGIN
@@ -15,10 +15,10 @@ rcvar=$name
nullmailer_user="nullmail"
nullmailer_group="nullmail"
-command="/usr/pkg/libexec/nullmailer/nullmailer-send"
+command="@PREFIX@/libexec/nullmailer/nullmailer-send"
command_args=" > /dev/null 2>&1 &"
-required_files="/usr/pkg/etc/nullmailer/remotes /var/spool/nullmailer/trigger"
+required_files="@PKG_SYSCONFDIR@/nullmailer/remotes /var/spool/nullmailer/trigger"
required_dirs="/var/spool/nullmailer/queue /var/spool/nullmailer/tmp"
load_rc_config $name