aboutsummaryrefslogtreecommitdiffstats
path: root/mail/popular
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-03-28 06:17:11 +0800
committerpav <pav@FreeBSD.org>2007-03-28 06:17:11 +0800
commit85c65ea7cf0925302559a70bcc0aa09551ba2a34 (patch)
tree0593330ccd272b8d85b5953b666c2b51a7aad0cb /mail/popular
parent766f7ae2c62c21fdb9d8e30f517efaa4df862775 (diff)
downloadfreebsd-ports-graphics-85c65ea7cf0925302559a70bcc0aa09551ba2a34.tar.gz
freebsd-ports-graphics-85c65ea7cf0925302559a70bcc0aa09551ba2a34.tar.zst
freebsd-ports-graphics-85c65ea7cf0925302559a70bcc0aa09551ba2a34.zip
- Fix rc.subr scripts
Pointed out by: Vlastimil Zeman <vlastimil.zeman@col.cz>
Diffstat (limited to 'mail/popular')
-rw-r--r--mail/popular/Makefile2
-rw-r--r--mail/popular/files/pcheckd.sh.in12
-rw-r--r--mail/popular/files/pserv.sh.in14
3 files changed, 14 insertions, 14 deletions
diff --git a/mail/popular/Makefile b/mail/popular/Makefile
index eb4f87d8a46..3b3109ebb75 100644
--- a/mail/popular/Makefile
+++ b/mail/popular/Makefile
@@ -7,7 +7,7 @@
PORTNAME= popular
PORTVERSION= 1.5.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://www.remote.org/jochen/mail/popular/download/
diff --git a/mail/popular/files/pcheckd.sh.in b/mail/popular/files/pcheckd.sh.in
index 382d613960d..f1b4654091c 100644
--- a/mail/popular/files/pcheckd.sh.in
+++ b/mail/popular/files/pcheckd.sh.in
@@ -9,8 +9,8 @@
# KEYWORD: shutdown
# /etc/rc.conf lines:
-# pcheckd="YES" # enable pcheckd
-# pcheckd="pop" # user for pcheckd
+# pcheckd_enable="YES" # enable pcheckd
+# pcheckd_user="pop" # user for pcheckd
. %%RC_SUBR%%
@@ -19,8 +19,8 @@ rcvar=`set_rcvar`
load_rc_config $name
-: ${pcheckd="NO"}
-: ${pcheckd="pop"}
+: ${pcheckd_enable="NO"}
+: ${pcheckd_user="pop"}
command="%%PREFIX%%/sbin/pcheckd"
start_precmd="${name}_prestart"
@@ -29,9 +29,9 @@ extra_commands="reload"
pproxy_prestart()
{
mkdir -p /var/log/popular
- chown ${pproxy_user} /var/log/popular
+ chown ${pcheckd_user} /var/log/popular
mkdir -p /var/run/popular
- chown ${pproxy_user} /var/run/popular
+ chown ${pcheckd_user} /var/run/popular
}
run_rc_command "$1"
diff --git a/mail/popular/files/pserv.sh.in b/mail/popular/files/pserv.sh.in
index 1084711d577..d8600822016 100644
--- a/mail/popular/files/pserv.sh.in
+++ b/mail/popular/files/pserv.sh.in
@@ -9,8 +9,8 @@
# KEYWORD: shutdown
# /etc/rc.conf lines:
-# pserv="YES" # enable pserv
-# pserv="pop" # user for pserv
+# pserv_enable="YES" # enable pserv
+# pserv_user="pop" # user for pserv
. %%RC_SUBR%%
@@ -19,8 +19,8 @@ rcvar=`set_rcvar`
load_rc_config $name
-: ${pserv="NO"}
-: ${pserv="pop"}
+: ${pserv_enable="NO"}
+: ${pserv_user="pop"}
command="%%PREFIX%%/sbin/pserv"
start_precmd="${name}_prestart"
@@ -31,16 +31,16 @@ reload_cmd="${name}_configure"
pproxy_prestart()
{
mkdir -p /var/log/popular
- chown ${pproxy_user} /var/log/popular
+ chown ${pserv_user} /var/log/popular
mkdir -p /var/run/popular
- chown ${pproxy_user} /var/run/popular
+ chown ${pserv_user} /var/run/popular
}
pproxy_configure()
{
if [ -f %%PREFIX%%/etc/popular/pserv.rc ]; then
sleep 1;
- su -m ${pproxy_user} -c "%%PREFIX%%/bin/pcontrol --program=pserv %%PREFIX%%/etc/popular/pserv.rc"
+ su -m ${pserv_user} -c "%%PREFIX%%/bin/pcontrol --program=pserv %%PREFIX%%/etc/popular/pserv.rc"
fi
}