summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2007-12-11 22:15:36 +0000
committerXin LI <delphij@FreeBSD.org>2007-12-11 22:15:36 +0000
commitc05ef89df0f80878cc090507eb4e472282cafb78 (patch)
tree41048b747061e3df7382f3934b226620a75fadbe /mail
parent- Update to 1.20.0 (diff)
- Add rc.d scripts.
- Change pid directory to /var/run instead of /usr/local/var/run. Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> PR: ports/117101 Approved by: maintainer
Notes
Notes: svn path=/head/; revision=203066
Diffstat (limited to 'mail')
-rw-r--r--mail/perdition/Makefile5
-rw-r--r--mail/perdition/files/perdition.imap4.in29
-rw-r--r--mail/perdition/files/perdition.imap4s.in29
-rw-r--r--mail/perdition/files/perdition.imaps.in29
-rw-r--r--mail/perdition/files/perdition.in29
-rw-r--r--mail/perdition/files/perdition.pop3.in29
-rw-r--r--mail/perdition/files/perdition.pop3s.in30
-rw-r--r--mail/perdition/pkg-plist4
8 files changed, 181 insertions, 3 deletions
diff --git a/mail/perdition/Makefile b/mail/perdition/Makefile
index d2c8696f04f9..f7c14d8412b4 100644
--- a/mail/perdition/Makefile
+++ b/mail/perdition/Makefile
@@ -7,6 +7,7 @@
PORTNAME= perdition
PORTVERSION= 1.17.1
+PORTREVISION= 1
CATEGORIES= mail net security
MASTER_SITES= http://www.vergenet.net/linux/perdition/download/${PORTVERSION}/
@@ -29,9 +30,11 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" BDB_LIB=db3
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= DOCSDIR=${DOCSDIR}
-CONFIGURE_ARGS+= --disable-daemon-map
+CONFIGURE_ARGS+=--disable-daemon-map --localstatedir=/var
USE_LDCONFIG= yes
+USE_RC_SUBR= perdition perdition.pop3 perdition.pop3s \
+ perdition.imap4 perdition.imap4s perdition.imaps
##
## Available knobs:
diff --git a/mail/perdition/files/perdition.imap4.in b/mail/perdition/files/perdition.imap4.in
new file mode 100644
index 000000000000..b3ee2112d738
--- /dev/null
+++ b/mail/perdition/files/perdition.imap4.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: perdition_imap4
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable perdition.imap4
+#
+# perdition_imap4_enable="YES"
+#
+# See perdition(8) for flags
+#
+
+perdition_imap4_enable=${perdition_imap4_enable-"NO"}
+perdition_imap4_flags=${perditon_imap4_flags-""}
+
+. %%RC_SUBR%%
+
+name="perdition_imap4"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/sbin/perdition.imap4"
+pidfile="/var/run/perdition.imap4/perdition.imap4.pid"
+
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.imap4s.in b/mail/perdition/files/perdition.imap4s.in
new file mode 100644
index 000000000000..bdc496ba2861
--- /dev/null
+++ b/mail/perdition/files/perdition.imap4s.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: perdition_imap4s
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable perdition.imap4s
+#
+# perdition_imap4s_enable="YES"
+#
+# See perdition(8) for flags
+#
+
+perdition_imap4s_enable=${perdition_imap4s_enable-"NO"}
+perdition_imap4s_flags=${perditon_imap4s_flags-""}
+
+. %%RC_SUBR%%
+
+name="perdition_imap4s"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/sbin/perdition.imap4s"
+pidfile="/var/run/perdition.imap4s/perdition.imap4s.pid"
+
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.imaps.in b/mail/perdition/files/perdition.imaps.in
new file mode 100644
index 000000000000..87e8d8f6c565
--- /dev/null
+++ b/mail/perdition/files/perdition.imaps.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: perdition_imaps
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable perdition.imaps
+#
+# perdition_imaps_enable="YES"
+#
+# See perdition(8) for flags
+#
+
+perdition_imaps_enable=${perdition_imaps_enable-"NO"}
+perdition_imaps_flags=${perditon_imaps_flags-""}
+
+. %%RC_SUBR%%
+
+name="perdition_imaps"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/sbin/perdition.imaps"
+pidfile="/var/run/perdition.imaps/perdition.imaps.pid"
+
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.in b/mail/perdition/files/perdition.in
new file mode 100644
index 000000000000..86cc85822640
--- /dev/null
+++ b/mail/perdition/files/perdition.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: perdition
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable perdition
+#
+# perdition_enable="YES"
+#
+# See perdition(8) for flags
+#
+
+perdition_enable=${perdition_enable-"NO"}
+perdition_flags=${perdition_flags-""}
+
+. %%RC_SUBR%%
+
+name="perdition"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/sbin/${name}"
+pidfile="/var/run/perdition/${name}.pid"
+
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.pop3.in b/mail/perdition/files/perdition.pop3.in
new file mode 100644
index 000000000000..7ae0253ee428
--- /dev/null
+++ b/mail/perdition/files/perdition.pop3.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: perdition_pop3
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable perdition.pop3
+#
+# perdition_pop3_enable="YES"
+#
+# See perdition(8) for flags
+#
+
+perdition_pop3_enable=${perdition_pop3_enable-"NO"}
+perdition_pop3_flags=${perditon_pop3_flags-""}
+
+. %%RC_SUBR%%
+
+name="perdition_pop3"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/sbin/perdition.pop3"
+pidfile="/var/run/perdition.pop3/perdition.pop3.pid"
+
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/mail/perdition/files/perdition.pop3s.in b/mail/perdition/files/perdition.pop3s.in
new file mode 100644
index 000000000000..a6ca2537c15c
--- /dev/null
+++ b/mail/perdition/files/perdition.pop3s.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: perdition_pop3s
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable perdition.pop3s
+#
+# perdition_pop3s_enable="YES"
+#
+# See perdition(8) for flags
+#
+
+perdition_pop3s_enable=${perdition_pop3s_enable-"NO"}
+perdition_pop3s_flags=${perditon_pop3s_flags-""}
+
+. %%RC_SUBR%%
+
+name="perdition_pop3s"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/sbin/perdition.pop3s"
+pidfile="/var/run/perdition.pop3s/perdition.pop3s.pid"
+
+load_rc_config $name
+
+run_rc_command "$1"
+
diff --git a/mail/perdition/pkg-plist b/mail/perdition/pkg-plist
index 91632eb4eeb7..4b3b7e06f99a 100644
--- a/mail/perdition/pkg-plist
+++ b/mail/perdition/pkg-plist
@@ -57,5 +57,5 @@ sbin/perdition.imap4
sbin/perdition.imap4s
sbin/perdition.imaps
%%DOCSDIR%%/perdition-pam.sample
-@unexec rmdir %D/etc/perdition 2>/dev/null || echo "If you are permanently removing this port, you should do a ``rm -rf ${PKG_PREFIX}/etc/perdition`` to remove any files left." | fmt
-@dirrm share/doc/perdition
+@dirrmtry etc/perdition
+%%PORTDOCS%%@dirrm %%DOCSDIR%%