svn commit: r396500 - in head/mail/spampd: . files
Dag-Erling Smørgrav
des at FreeBSD.org
Wed Sep 9 14:02:08 UTC 2015
Author: des
Date: Wed Sep 9 14:02:06 2015
New Revision: 396500
URL: https://svnweb.freebsd.org/changeset/ports/396500
Log:
Fix rc script so status and restart work.
Modified:
head/mail/spampd/Makefile
head/mail/spampd/files/spampd.in
Modified: head/mail/spampd/Makefile
==============================================================================
--- head/mail/spampd/Makefile Wed Sep 9 14:02:01 2015 (r396499)
+++ head/mail/spampd/Makefile Wed Sep 9 14:02:06 2015 (r396500)
@@ -3,6 +3,7 @@
PORTNAME= spampd
PORTVERSION= 2.42
+PORTREVISION= 1
CATEGORIES= mail perl5
MAINTAINER= des at FreeBSD.org
@@ -17,6 +18,7 @@ NO_BUILD= yes
PLIST_FILES= sbin/spampd
USES= perl5 shebangfix
SHEBANG_FILES= spampd.pl
+SUB_LIST= PERL=${PERL}
USE_RC_SUBR= spampd
USE_GITHUB= yes
Modified: head/mail/spampd/files/spampd.in
==============================================================================
--- head/mail/spampd/files/spampd.in Wed Sep 9 14:02:01 2015 (r396499)
+++ head/mail/spampd/files/spampd.in Wed Sep 9 14:02:06 2015 (r396500)
@@ -24,27 +24,7 @@ load_rc_config $name
command="%%PREFIX%%/sbin/$name"
command_args="--pid=${spampd_pidfile}"
+command_interpreter=%%PERL%%
pidfile="${spampd_pidfile}"
-sig_stop="KILL"
-stop_cmd="stop_cmd"
-status_cmd="status_cmd"
-
-stop_cmd()
-{
- if [ -f "$pidfile" ]; then
- kill `cat $pidfile`
- rm -f $pidfile
- echo -n " spampd"
- fi
-}
-
-status_cmd()
-{
- if [ -f "$pidfile" ]; then
- echo "${name} is running as pid `cat $pidfile`."
- else
- echo "${name} is not running."
- fi
-}
run_rc_command $1
More information about the svn-ports-all
mailing list