Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2015 14:02:07 +0000 (UTC)
From:      =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r396500 - in head/mail/spampd: . files
Message-ID:  <201509091402.t89E27ER019907@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509091402.t89E27ER019907>