Configure prefix in rc.d script.
This commit is contained in:
parent
34d1f1c3c1
commit
f14e5f857c
2 changed files with 10 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue