diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-12-03 02:24:19 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-12-03 02:24:19 +0000 |
commit | ae0931ac45c4060bba77e9da2b9281917f7c58aa (patch) | |
tree | c4d9f9dda2e5133ca736f0a93df29094cdb1b30f /mail/mailgraph | |
parent | e38f8431b3fe56898f177fadf0901c1c0f7f31c7 (diff) |
- 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)
Notes
Notes:
svn path=/head/; revision=202881
Diffstat (limited to 'mail/mailgraph')
-rw-r--r-- | mail/mailgraph/Makefile | 1 | ||||
-rw-r--r-- | mail/mailgraph/files/mailgraph.in | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile index 5fe0ede8989b..5b4e8f0f33b1 100644 --- a/mail/mailgraph/Makefile +++ b/mail/mailgraph/Makefile @@ -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/ diff --git a/mail/mailgraph/files/mailgraph.in b/mail/mailgraph/files/mailgraph.in index b09d47d8f656..322a896adf26 100644 --- a/mail/mailgraph/files/mailgraph.in +++ b/mail/mailgraph/files/mailgraph.in @@ -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" |