diff options
author | rafan <rafan@FreeBSD.org> | 2007-12-03 10:24:19 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-12-03 10:24:19 +0800 |
commit | 024ec21b2db3ec437995c836475934542428363d (patch) | |
tree | 4b97c76f4bdfb07f812bbcb3255706e0b57975b6 /mail/ovs | |
parent | 384c1152f330fec162a14b27ec5e38b135827648 (diff) | |
download | freebsd-ports-gnome-024ec21b2db3ec437995c836475934542428363d.tar.gz freebsd-ports-gnome-024ec21b2db3ec437995c836475934542428363d.tar.zst freebsd-ports-gnome-024ec21b2db3ec437995c836475934542428363d.zip |
- Make rc variables can be properly set by users. Default variables should be
handled after load_rc_config per Handbook. For example, if user sets
name_pidfile in rc.conf, it does not correctly pass to name_flags because
when we set name_flags, it uses our default name_pidfile, but not user's.
- Bump PORTREVISION as rc scripts changed.
Approved by: portmgr (pav), Xavier Beaudouin <kiwi at oav.net> (ovs maintainer)
Diffstat (limited to 'mail/ovs')
-rw-r--r-- | mail/ovs/Makefile | 1 | ||||
-rw-r--r-- | mail/ovs/files/ovs.sh.in | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mail/ovs/Makefile b/mail/ovs/Makefile index aaa17333f1c4..e0f6175cab8b 100644 --- a/mail/ovs/Makefile +++ b/mail/ovs/Makefile @@ -7,6 +7,7 @@ PORTNAME= ovs PORTVERSION= 1.02 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ftp://ftp.oav.net/openvisp/stats/ diff --git a/mail/ovs/files/ovs.sh.in b/mail/ovs/files/ovs.sh.in index 7bc4eb78f3fe..8702b9caea1f 100644 --- a/mail/ovs/files/ovs.sh.in +++ b/mail/ovs/files/ovs.sh.in @@ -24,14 +24,14 @@ stop_postcmd() rm -f $pidfile } +load_rc_config $name + : ${ovs_enable="NO"} : ${ovs_pidfile="%%DATADIR%%/ovs.pid"} : ${ovs_flags="--logfile /var/log/maillog --daemon-rrd=%%DATADIR%% --ignore-localhost --daemon --daemon-pid=${ovs_pidfile} --rbl-is-spam --greylist --helo --spf --domain-not-found"} : ${ovs_user="%%OVS_USER%%"} : ${ovs_chdir="%%DATADIR%%"} -load_rc_config $name - pidfile=${ovs_pidfile} run_rc_command "$1" |