summaryrefslogtreecommitdiff
path: root/mail/perdition
diff options
context:
space:
mode:
authortv <tv>2006-02-13 15:18:32 +0000
committertv <tv>2006-02-13 15:18:32 +0000
commitc3f3fd6b342ff05f05812174d8059d10f653ab7c (patch)
tree8d0e97f004e59f061cd22a5e3ef3da765264eb61 /mail/perdition
parente0812c9cc99a3e67fc4deac696607597e38fb99d (diff)
downloadpkgsrc-c3f3fd6b342ff05f05812174d8059d10f653ab7c.tar.gz
Fix localstatedir (should be /var, not /var/run), and add rc.d scripts.
Bump PKGREVISION.
Diffstat (limited to 'mail/perdition')
-rw-r--r--mail/perdition/Makefile5
-rw-r--r--mail/perdition/Makefile.common4
-rwxr-xr-xmail/perdition/files/perdition.imap4.sh17
-rwxr-xr-xmail/perdition/files/perdition.imap4s.sh17
-rwxr-xr-xmail/perdition/files/perdition.pop3.sh17
-rwxr-xr-xmail/perdition/files/perdition.pop3s.sh17
6 files changed, 73 insertions, 4 deletions
diff --git a/mail/perdition/Makefile b/mail/perdition/Makefile
index 7243db0d942..d21ce05bb2c 100644
--- a/mail/perdition/Makefile
+++ b/mail/perdition/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2006/02/05 23:09:57 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2006/02/13 15:18:32 tv Exp $
#
-PKGREVISION= 1
+PKGREVISION= 2
PERDITION_COMMENT= main program
@@ -12,6 +12,7 @@ OWN_DIRS+= ${PKG_SYSCONFDIR}
.for f in Makefile.popmap perdition.conf popmap popmap.re
CONF_FILES+= ${EGDIR}/perdition/$f ${PKG_SYSCONFDIR}/${f:.popmap=}
.endfor
+RCD_SCRIPTS+= perdition.imap4 perdition.imap4s perdition.pop3 perdition.pop3s
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
diff --git a/mail/perdition/Makefile.common b/mail/perdition/Makefile.common
index 85378fedf43..a077500a2fd 100644
--- a/mail/perdition/Makefile.common
+++ b/mail/perdition/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1 2006/01/31 21:07:30 tv Exp $
+# $NetBSD: Makefile.common,v 1.2 2006/02/13 15:18:32 tv Exp $
#
PERDITION_VERSION= 1.17
@@ -16,7 +16,7 @@ USE_LIBTOOL= yes
GNU_CONFIGURE= yes
PKG_SYSCONFSUBDIR= perdition
-CONFIGURE_ARGS+= --localstatedir=/var/run
+CONFIGURE_ARGS+= --localstatedir=/var
EGDIR= ${PREFIX}/share/examples
INSTALL_AM_MAKEFLAGS= sysconfdir=${EGDIR}
diff --git a/mail/perdition/files/perdition.imap4.sh b/mail/perdition/files/perdition.imap4.sh
new file mode 100755
index 00000000000..b820a537af5
--- /dev/null
+++ b/mail/perdition/files/perdition.imap4.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: perdition.imap4.sh,v 1.1 2006/02/13 15:18:32 tv Exp $
+#
+# PROVIDE: perdition
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+procname="perdition.imap4"
+name="perdition_imap4"
+rcvar=$name
+command="@PREFIX@/sbin/${procname}"
+pidfile="/var/run/${procname}/${procname}.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.imap4s.sh b/mail/perdition/files/perdition.imap4s.sh
new file mode 100755
index 00000000000..f9c213e90df
--- /dev/null
+++ b/mail/perdition/files/perdition.imap4s.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: perdition.imap4s.sh,v 1.1 2006/02/13 15:18:32 tv Exp $
+#
+# PROVIDE: perdition
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+procname="perdition.imap4s"
+name="perdition_imap4s"
+rcvar=$name
+command="@PREFIX@/sbin/${procname}"
+pidfile="/var/run/${procname}/${procname}.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.pop3.sh b/mail/perdition/files/perdition.pop3.sh
new file mode 100755
index 00000000000..42c4dc96c8c
--- /dev/null
+++ b/mail/perdition/files/perdition.pop3.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: perdition.pop3.sh,v 1.1 2006/02/13 15:18:32 tv Exp $
+#
+# PROVIDE: perdition
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+procname="perdition.pop3"
+name="perdition_pop3"
+rcvar=$name
+command="@PREFIX@/sbin/${procname}"
+pidfile="/var/run/${procname}/${procname}.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.pop3s.sh b/mail/perdition/files/perdition.pop3s.sh
new file mode 100755
index 00000000000..e68cc95a1fb
--- /dev/null
+++ b/mail/perdition/files/perdition.pop3s.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: perdition.pop3s.sh,v 1.1 2006/02/13 15:18:32 tv Exp $
+#
+# PROVIDE: perdition
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+procname="perdition.pop3s"
+name="perdition_pop3s"
+rcvar=$name
+command="@PREFIX@/sbin/${procname}"
+pidfile="/var/run/${procname}/${procname}.pid"
+
+load_rc_config $name
+run_rc_command "$1"