pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/dbmail A config file and some rc.d scripts might ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3bde29ef6049
branches: trunk
changeset: 487097:3bde29ef6049
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Sun Jan 09 04:17:39 2005 +0000
description:
A config file and some rc.d scripts might help. Bump PKGREVISION.
diffstat:
mail/dbmail/Makefile | 18 +++++++++--
mail/dbmail/PLIST | 4 ++-
mail/dbmail/files/dbmail.sh | 60 ++++++++++++++++++++++++++++++++++++++++
mail/dbmail/files/dbmailimapd.sh | 18 ++++++++++++
mail/dbmail/files/dbmaillmtpd.sh | 18 ++++++++++++
mail/dbmail/files/dbmailpop3d.sh | 18 ++++++++++++
6 files changed, 131 insertions(+), 5 deletions(-)
diffs (191 lines):
diff -r 1d91648f5570 -r 3bde29ef6049 mail/dbmail/Makefile
--- a/mail/dbmail/Makefile Sun Jan 09 03:24:15 2005 +0000
+++ b/mail/dbmail/Makefile Sun Jan 09 04:17:39 2005 +0000
@@ -1,20 +1,26 @@
-# $NetBSD: Makefile,v 1.1.1.1 2005/01/09 03:21:07 schmonz Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/09 04:17:39 schmonz Exp $
#
DISTNAME= dbmail-2.0.1
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.dbmail.org/download/
EXTRACT_SUFX= .tgz
MAINTAINER= schmonz%NetBSD.org@localhost
HOMEPAGE= http://www.dbmail.org/
-COMMENT= Store and retrieve mail messages from a database
+COMMENT= Store and retrieve mail messages in a database
+GNU_CONFIGURE= yes
USE_BUILDLINK3= yes
-USE_PKGLOCALEDIR= yes
-GNU_CONFIGURE= yes
USE_GNU_TOOLS+= make
USE_LIBTOOL= yes
+USE_PKGINSTALL= yes
+USE_PKGLOCALEDIR= yes
+
+EGDIR= ${PREFIX}/share/examples/dbmail
+CONF_FILES= ${EGDIR}/dbmail.conf ${PKG_SYSCONFDIR}/dbmail.conf
+RCD_SCRIPTS= dbmail dbmailimapd dbmaillmtpd dbmailpop3d
PLIST_SUBST+= SQLDB=${SQLDB}
@@ -26,6 +32,10 @@
SUBST_SED.sysconf= -e 's|/etc/dbmail\.conf|${PKG_SYSCONFDIR}/dbmail.conf|g'
SUBST_MESSAGE.sysconf= "Fixing sysconf paths."
+INSTALLATION_DIRS= lib man man/man1 man/man8 sbin share/examples/dbmail
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${EGDIR}
+
.include "options.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 1d91648f5570 -r 3bde29ef6049 mail/dbmail/PLIST
--- a/mail/dbmail/PLIST Sun Jan 09 03:24:15 2005 +0000
+++ b/mail/dbmail/PLIST Sun Jan 09 04:17:39 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/09 03:21:07 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.2 2005/01/09 04:17:39 schmonz Exp $
lib/dbmail/libauthdbmail.la
lib/dbmail/lib${SQLDB}dbmail.la
lib/dbmail/libsortdbmail.la
@@ -15,4 +15,6 @@
sbin/dbmail-smtp
sbin/dbmail-users
sbin/dbmail-util
+share/examples/dbmail/dbmail.conf
+@dirrm share/examples/dbmail
@dirrm lib/dbmail
diff -r 1d91648f5570 -r 3bde29ef6049 mail/dbmail/files/dbmail.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dbmail/files/dbmail.sh Sun Jan 09 04:17:39 2005 +0000
@@ -0,0 +1,60 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dbmail.sh,v 1.1 2005/01/09 04:17:39 schmonz Exp $
+#
+
+# KEYWORD: nostart
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+rcd_dir=`@DIRNAME@ $0`
+
+# NOTE: run_rc_command sets $rc_arg
+#
+forward_commands()
+{
+ # Backward compat with NetBSD <1.6:
+ [ -z "$rc_arg" ] && rc_arg=$_arg
+
+ for file in $COMMAND_LIST; do
+ $rcd_dir/$file $rc_arg
+ done
+}
+
+reverse_commands()
+{
+ # Backward compat with NetBSD <1.6:
+ [ -z "$rc_arg" ] && rc_arg=$_arg
+
+ REVCOMMAND_LIST=
+ for file in $COMMAND_LIST; do
+ REVCOMMAND_LIST="$file $REVCOMMAND_LIST"
+ done
+ for file in $REVCOMMAND_LIST; do
+ $rcd_dir/$file $rc_arg
+ done
+}
+
+dbmailrcd()
+{
+ for service in $@; do
+ $rcd_dir/dbmail${service} $rc_arg
+ done
+}
+
+COMMAND_LIST="dbmailimapd dbmailpop3d dbmaillmtpd"
+
+name="dbmail"
+start_cmd="forward_commands"
+stop_cmd="reverse_commands"
+status_cmd="forward_commands"
+extra_commands="status"
+
+if [ -f /etc/rc.subr ]; then
+ run_rc_command "$1"
+else
+ _arg="$1"
+ ${start_cmd}
+fi
diff -r 1d91648f5570 -r 3bde29ef6049 mail/dbmail/files/dbmailimapd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dbmail/files/dbmailimapd.sh Sun Jan 09 04:17:39 2005 +0000
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dbmailimapd.sh,v 1.1 2005/01/09 04:17:39 schmonz Exp $
+#
+
+# PROVIDE: dbmailimap mail
+# REQUIRE:
+
+. /etc/rc.subr
+
+name="dbmailimapd"
+rcvar=${name}
+required_files="@PKG_SYSCONFDIR@/dbmail.conf"
+command="@PREFIX@/sbin/dbmail-imapd"
+pidfile="/var/run/dbmail-imapd.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 1d91648f5570 -r 3bde29ef6049 mail/dbmail/files/dbmaillmtpd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dbmail/files/dbmaillmtpd.sh Sun Jan 09 04:17:39 2005 +0000
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dbmaillmtpd.sh,v 1.1 2005/01/09 04:17:39 schmonz Exp $
+#
+
+# PROVIDE: dbmaillmtp mail
+# REQUIRE:
+
+. /etc/rc.subr
+
+name="dbmaillmtpd"
+rcvar=${name}
+required_files="@PKG_SYSCONFDIR@/dbmail.conf"
+command="@PREFIX@/sbin/dbmail-lmtpd"
+pidfile="/var/run/dbmail-lmtpd.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 1d91648f5570 -r 3bde29ef6049 mail/dbmail/files/dbmailpop3d.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dbmail/files/dbmailpop3d.sh Sun Jan 09 04:17:39 2005 +0000
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dbmailpop3d.sh,v 1.1 2005/01/09 04:17:39 schmonz Exp $
+#
+
+# PROVIDE: dbmailpop3 mail
+# REQUIRE:
+
+. /etc/rc.subr
+
+name="dbmailpop3d"
+rcvar=${name}
+required_files="@PKG_SYSCONFDIR@/dbmail.conf"
+command="@PREFIX@/sbin/dbmail-pop3d"
+pidfile="/var/run/dbmail-pop3d.pid"
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index