aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-12-12 06:15:36 +0800
committerdelphij <delphij@FreeBSD.org>2007-12-12 06:15:36 +0800
commitc4065c4cb36bb5aa6540a0fdf9a89b4d87a41b08 (patch)
treeb7a690196bfd620f88e5043a0f70b69b479a1ca1
parentb2a935d15a7b13f6c23e88e45b67b1ea3a933a80 (diff)
downloadfreebsd-ports-graphics-c4065c4cb36bb5aa6540a0fdf9a89b4d87a41b08.tar.gz
freebsd-ports-graphics-c4065c4cb36bb5aa6540a0fdf9a89b4d87a41b08.tar.zst
freebsd-ports-graphics-c4065c4cb36bb5aa6540a0fdf9a89b4d87a41b08.zip
- 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
-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 d2c8696f04f..f7c14d8412b 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 00000000000..b3ee2112d73
--- /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 00000000000..bdc496ba286
--- /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 00000000000..87e8d8f6c56
--- /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 00000000000..86cc8582264
--- /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 00000000000..7ae0253ee42
--- /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 00000000000..a6ca2537c15
--- /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 91632eb4eeb..4b3b7e06f99 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%%