- 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
This commit is contained in:
parent
4ddf68cdbb
commit
c05ef89df0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=203066
8 changed files with 181 additions and 3 deletions
|
@ -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:
|
||||
|
|
29
mail/perdition/files/perdition.imap4.in
Normal file
29
mail/perdition/files/perdition.imap4.in
Normal file
|
@ -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"
|
29
mail/perdition/files/perdition.imap4s.in
Normal file
29
mail/perdition/files/perdition.imap4s.in
Normal file
|
@ -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"
|
29
mail/perdition/files/perdition.imaps.in
Normal file
29
mail/perdition/files/perdition.imaps.in
Normal file
|
@ -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"
|
29
mail/perdition/files/perdition.in
Normal file
29
mail/perdition/files/perdition.in
Normal file
|
@ -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"
|
29
mail/perdition/files/perdition.pop3.in
Normal file
29
mail/perdition/files/perdition.pop3.in
Normal file
|
@ -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"
|
30
mail/perdition/files/perdition.pop3s.in
Normal file
30
mail/perdition/files/perdition.pop3s.in
Normal file
|
@ -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"
|
||||
|
|
@ -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%%
|
||||
|
|
Loading…
Reference in a new issue