summaryrefslogtreecommitdiff
path: root/mail/p5-Mail-SpamAssassin
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2006-01-04 06:35:12 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2006-01-04 06:35:12 +0000
commit29d436816ecab1e3fceaa754726f33e3b89f6da6 (patch)
tree5de464c190bc94ccaf75c7c1e84f7cea2a57893d /mail/p5-Mail-SpamAssassin
parentUpdate port: graphics/p5-GD-SVG update to 0.27 (diff)
[patch] mail/p5-Mail-SpamAssassin - properly set pidfile in rc.d script
- PID file name in rc.d scripts must be set to "pidfile" variable, not to "<name>_pidfile" variable. - Placing -r (and -d too) options to command_args is more suitable because they mustn't be overwrited by spamd_flags PR: ports/90625 Submitted by: Petr Rehor <prehor@gmail.com> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=152712
Diffstat (limited to 'mail/p5-Mail-SpamAssassin')
-rw-r--r--mail/p5-Mail-SpamAssassin/Makefile2
-rw-r--r--mail/p5-Mail-SpamAssassin/files/spamd.sh15
2 files changed, 9 insertions, 8 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile
index bd1ba1c18d97..27f4901ab081 100644
--- a/mail/p5-Mail-SpamAssassin/Makefile
+++ b/mail/p5-Mail-SpamAssassin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= Mail-SpamAssassin
PORTVERSION= 3.1.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= mail perl5
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/}
MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan
diff --git a/mail/p5-Mail-SpamAssassin/files/spamd.sh b/mail/p5-Mail-SpamAssassin/files/spamd.sh
index 01f99c7721f7..6207db45e424 100644
--- a/mail/p5-Mail-SpamAssassin/files/spamd.sh
+++ b/mail/p5-Mail-SpamAssassin/files/spamd.sh
@@ -21,7 +21,15 @@
name=spamd
rcvar=`set_rcvar`
+load_rc_config $name
+
+# Set defaults
+: ${spamd_enable:="NO"}
+: ${spamd_flags="-c %%SQL_FLAG%% %%RUN_AS_USER%%"}
+
+pidfile=${spamd_pidfile:-"/var/run/spamd/spamd.pid"}
command=%%PREFIX%%/bin/spamd
+command_args="-d -r ${pidfile}"
required_dirs=%%PREFIX%%/share/spamassassin
stop_postcmd=stop_postcmd
@@ -31,11 +39,4 @@ stop_postcmd()
rm -f $pidfile
}
-# set defaults
-
-spamd_enable=${spamd_enable:-"NO"}
-spamd_pidfile=${spamd_pidfile:-"/var/run/spamd/spamd.pid"}
-spamd_flags=${spamd_flags:-"-c -d %%SQL_FLAG%% -r ${spamd_pidfile} %%RUN_AS_USER%%"}
-
-load_rc_config $name
run_rc_command "$1"