pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/milter-greylist Polish up "milter-greylist" package:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b3679f81a2a5
branches:  trunk
changeset: 472792:b3679f81a2a5
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Apr 12 13:55:59 2004 +0000

description:
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:

 mail/milter-greylist/Makefile                 |  12 ++++++-
 mail/milter-greylist/PLIST                    |   7 +++-
 mail/milter-greylist/files/milter-greylist.sh |  44 +++++++++++++++++++++++++++
 3 files changed, 60 insertions(+), 3 deletions(-)

diffs (89 lines):

diff -r 1097a7f08579 -r b3679f81a2a5 mail/milter-greylist/Makefile
--- a/mail/milter-greylist/Makefile     Mon Apr 12 13:36:37 2004 +0000
+++ b/mail/milter-greylist/Makefile     Mon Apr 12 13:55:59 2004 +0000
@@ -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 @@
 
 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 -r 1097a7f08579 -r b3679f81a2a5 mail/milter-greylist/PLIST
--- a/mail/milter-greylist/PLIST        Mon Apr 12 13:36:37 2004 +0000
+++ b/mail/milter-greylist/PLIST        Mon Apr 12 13:55:59 2004 +0000
@@ -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 -r 1097a7f08579 -r b3679f81a2a5 mail/milter-greylist/files/milter-greylist.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/milter-greylist/files/milter-greylist.sh     Mon Apr 12 13:55:59 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index