mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 18:36:28 -04:00
- 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)
This commit is contained in:
parent
e38f8431b3
commit
ae0931ac45
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202881
4 changed files with 6 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= mailgraph
|
||||
PORTVERSION= 1.14
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://mailgraph.schweikert.ch/pub/ \
|
||||
http://mailgraph.schweikert.ch/pub/old/
|
||||
|
|
|
@ -24,14 +24,14 @@ stop_postcmd()
|
|||
rm -f $pidfile
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${mailgraph_enable="NO"}
|
||||
: ${mailgraph_pidfile="%%DATADIR%%/mailgraph.pid"}
|
||||
: ${mailgraph_flags="--logfile /var/log/maillog --daemon-rrd=%%DATADIR%% --ignore-localhost --daemon --daemon-pid=${mailgraph_pidfile}"}
|
||||
: ${mailgraph_user="%%MAILGRAPH_USER%%"}
|
||||
: ${mailgraph_chdir="%%DATADIR%%"}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
pidfile=${mailgraph_pidfile}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= ovs
|
||||
PORTVERSION= 1.02
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.oav.net/openvisp/stats/
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue