diff options
author | grant <grant@pkgsrc.org> | 2003-01-19 13:04:48 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-01-19 13:04:48 +0000 |
commit | f560d4ac7834a0c9539de4bffc8f40a970511c12 (patch) | |
tree | 8edfaec0add459726e9b8c2522edbac15468aa3e | |
parent | b7eb016770248ed55b46320c5d357c8a77793fe9 (diff) | |
download | pkgsrc-f560d4ac7834a0c9539de4bffc8f40a970511c12.tar.gz |
use automatic rc script handling.
-rw-r--r-- | mail/teapop/Makefile | 8 | ||||
-rw-r--r-- | mail/teapop/files/teapop.sh (renamed from mail/teapop/files/teapop) | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/mail/teapop/Makefile b/mail/teapop/Makefile index b4e02be41d5..395bd567e96 100644 --- a/mail/teapop/Makefile +++ b/mail/teapop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2002/10/09 18:57:11 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2003/01/19 13:04:48 grant Exp $ DISTNAME= teapop-0.3.5 CATEGORIES= mail @@ -18,6 +18,8 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} EGDIR= ${PREFIX}/share/examples/teapop CONF_FILES= ${EGDIR}/teapop.passwd ${PKG_SYSCONFDIR}/teapop.passwd +RCD_SCRIPTS= teapop + .include "../../mk/bsd.prefs.mk" .if defined(POP_WITH_DRAC) @@ -40,13 +42,9 @@ CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client} LDFLAGS+= -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql -Wl,-R${BUILDLINK_PREFIX.mysql-client}/lib/mysql .endif -post-build: - ${SED} ${FILES_SUBST_SED} ${FILESDIR}/teapop > ${WRKDIR}/teapop - post-install: ${INSTALL_DATA_DIR} ${EGDIR} ${INSTALL_DATA} ${WRKSRC}/etc/teapop.passwd ${EGDIR} - ${INSTALL_SCRIPT} ${WRKDIR}/teapop ${PREFIX}/etc/rc.d/teapop .include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" diff --git a/mail/teapop/files/teapop b/mail/teapop/files/teapop.sh index f89e862441d..dacdf1174fc 100644 --- a/mail/teapop/files/teapop +++ b/mail/teapop/files/teapop.sh @@ -1,6 +1,6 @@ -#!/bin/sh +#!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: teapop,v 1.1 2002/05/07 23:46:01 hubertf Exp $ +# $NetBSD: teapop.sh,v 1.1 2003/01/19 13:04:52 grant Exp $ # # PROVIDE: teapop # REQUIRE: DAEMON @@ -12,7 +12,7 @@ rcvar=$name command="@PREFIX@/libexec/${name}" command_args="-s" pidfile="/var/run/${name}.pid" -required_files="@PREFIX@/etc/teapop.passwd" +required_files="@PKG_SYSCONFDIR@/teapop.passwd" sig_stop="INT" load_rc_config $name |