summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-04-12 13:55:59 +0000
committertron <tron@pkgsrc.org>2004-04-12 13:55:59 +0000
commit4fc178c5e4800bed9238831f1aeac905cbaa841f (patch)
tree111181690e14a33a7380efeca2815a4e5e0d5f09 /mail
parentb8fb435a04a3bdc25639ca6a05cea13cb75b97bb (diff)
downloadpkgsrc-4fc178c5e4800bed9238831f1aeac905cbaa841f.tar.gz
Polish up "milter-greylist" package:
1.) Install "README" into "share/doc/milter-greylist". 2.) Install example configuration into "share/examples/milter-greylist". 3.) Provide a "rc.d" script. Bump package revision because of these changes.
Diffstat (limited to 'mail')
-rw-r--r--mail/milter-greylist/Makefile12
-rw-r--r--mail/milter-greylist/PLIST7
-rw-r--r--mail/milter-greylist/files/milter-greylist.sh44
3 files changed, 60 insertions, 3 deletions
diff --git a/mail/milter-greylist/Makefile b/mail/milter-greylist/Makefile
index c2696a51920..db630008055 100644
--- a/mail/milter-greylist/Makefile
+++ b/mail/milter-greylist/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2004/04/06 14:01:51 tv Exp $
-#
+# $NetBSD: Makefile,v 1.7 2004/04/12 13:55:59 tron Exp $
DISTNAME= milter-greylist-1.0.2
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/
EXTRACT_SUFX= .tgz
@@ -19,6 +19,14 @@ ALL_TARGET= milter-greylist
PKG_GROUPS= smmsp
PKG_USERS= smmsp:smmsp::Sendmail\\ Message\\ Submission\\ Program
+RCD_SCRIPTS= milter-greylist
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/milter-greylist
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/milter-greylist
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/milter-greylist
+ ${INSTALL_DATA} ${WRKSRC}/greylist.conf \
+ ${PREFIX}/share/examples/milter-greylist
.include "../../mail/libmilter/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"
diff --git a/mail/milter-greylist/PLIST b/mail/milter-greylist/PLIST
index 4df3b5d4a2d..c76d703d85e 100644
--- a/mail/milter-greylist/PLIST
+++ b/mail/milter-greylist/PLIST
@@ -1,3 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2004/03/08 14:46:31 manu Exp $
+@comment $NetBSD: PLIST,v 1.3 2004/04/12 13:55:59 tron Exp $
bin/milter-greylist
+etc/rc.d/milter-greylist
man/man8/milter-greylist.8
+share/doc/milter-greylist/README
+share/examples/milter-greylist/greylist.conf
+@dirrm share/examples/milter-greylist
+@dirrm share/doc/milter-greylist
diff --git a/mail/milter-greylist/files/milter-greylist.sh b/mail/milter-greylist/files/milter-greylist.sh
new file mode 100644
index 00000000000..d118b24109c
--- /dev/null
+++ b/mail/milter-greylist/files/milter-greylist.sh
@@ -0,0 +1,44 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: milter-greylist.sh,v 1.1 2004/04/12 13:55:59 tron Exp $
+#
+
+# PROVIDE: milter-greylist
+# REQUIRE: DAEMON
+# BEFORE: mail
+
+name="milter-greylist"
+rcvar="milter_greylist"
+command="@PREFIX@/bin/${name}"
+command_args="-p /var/milter-greylist/milter-greylist.sock -u smmsp"
+
+if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
+ . /etc/rc.subr
+ . /etc/rc.conf
+
+ load_rc_config $name
+ run_rc_command "$1"
+
+else # old NetBSD, Solaris, Linux, etc...
+ pidfile=/var/run/${name}.pid
+
+ case $1 in
+ start)
+ nohup ${command} -D ${command_args} </dev/null >/dev/null 1>&2 &
+ echo $! >${pidfile}
+
+ ;;
+ stop)
+ if [ -f ${pidfile} ]
+ then
+ kill `cat ${pidfile}`
+ rm -f ${pidfile}
+ fi
+ ;;
+ *)
+ @ECHO@ "Usage: $0 {start|stop}" 1>&2
+ exit 64
+ ;;
+ esac
+
+fi