diff options
author | dinoex <dinoex@FreeBSD.org> | 2006-07-11 13:17:07 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2006-07-11 13:17:07 +0800 |
commit | 37049a475bd63794b4129678c626cd453682ee12 (patch) | |
tree | 6cd5b6d119560ef1390510874df9d5f8904d3432 | |
parent | bae068284f060d9feb159b344fa9645f3e90c41e (diff) | |
download | freebsd-ports-gnome-37049a475bd63794b4129678c626cd453682ee12.tar.gz freebsd-ports-gnome-37049a475bd63794b4129678c626cd453682ee12.tar.zst freebsd-ports-gnome-37049a475bd63794b4129678c626cd453682ee12.zip |
- Fix rc.subr script
PR: 100055
Submitted by: delphij (Xin LI)
-rw-r--r-- | mail/sid-milter/Makefile | 1 | ||||
-rw-r--r-- | mail/sid-milter/files/milter-sid.sh.in | 19 |
2 files changed, 11 insertions, 9 deletions
diff --git a/mail/sid-milter/Makefile b/mail/sid-milter/Makefile index 1aa7b9587a0b..12a57a74cf94 100644 --- a/mail/sid-milter/Makefile +++ b/mail/sid-milter/Makefile @@ -7,6 +7,7 @@ PORTNAME= sid-milter PORTVERSION= 0.2.13 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sid-milter diff --git a/mail/sid-milter/files/milter-sid.sh.in b/mail/sid-milter/files/milter-sid.sh.in index 2ae9949296f1..daf10520dff9 100644 --- a/mail/sid-milter/files/milter-sid.sh.in +++ b/mail/sid-milter/files/milter-sid.sh.in @@ -13,24 +13,25 @@ # /etc/rc.conf.local # /etc/rc.conf.d/miltersid # -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -miltersid_enable=${miltersid_enable:-"NO"} -miltersid_socket=${miltersid_socket:-"local:/var/run/sid-filter"} -miltersid_pid=${miltersid_pid:-"/var/run/sid-filter.pid"} -miltersid_flags=${miltersid_flags:-"-r 0 -t"} . %%RC_SUBR%% name="miltersid" -pidfile=${miltersid_pid} rcvar=`set_rcvar` +load_rc_config $name + +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +: ${miltersid_enable="NO"} +: ${miltersid_socket="local:/var/run/sid-filter"} +: ${miltersid_pid="/var/run/sid-filter.pid"} +: ${miltersid_flags="-r 0 -t"} + +pidfile=${miltersid_pid} command="%%PREFIX%%/libexec/sid-filter" command_args="-l -p ${miltersid_socket} -P ${miltersid_pid}" stop_postcmd="sid_postcmd" -load_rc_config $name - sid_postcmd () { if [ -S ${miltersid_socket##local:} ] ; then |