svn commit: r310092 - in head/mail/spamd: . files
Ulrich Spoerlein
uqs at FreeBSD.org
Tue Jan 8 14:46:15 UTC 2013
Author: uqs
Date: Tue Jan 8 14:46:14 2013
New Revision: 310092
URL: http://svnweb.freebsd.org/changeset/ports/310092
Log:
Fix obspamlogd rc script's use of tests, while here fix whitespace.
Approved by: beat (mentor)
Modified:
head/mail/spamd/Makefile
head/mail/spamd/files/obspamlogd.in
Modified: head/mail/spamd/Makefile
==============================================================================
--- head/mail/spamd/Makefile Tue Jan 8 13:55:52 2013 (r310091)
+++ head/mail/spamd/Makefile Tue Jan 8 14:46:14 2013 (r310092)
@@ -3,6 +3,7 @@
PORTNAME= spamd
PORTVERSION= 4.9.1
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= SF
MASTER_SITE_SUBDIR=freebsdspamd.berlios
Modified: head/mail/spamd/files/obspamlogd.in
==============================================================================
--- head/mail/spamd/files/obspamlogd.in Tue Jan 8 13:55:52 2013 (r310091)
+++ head/mail/spamd/files/obspamlogd.in Tue Jan 8 14:46:14 2013 (r310092)
@@ -33,20 +33,20 @@ pidfile="/var/run/spamlogd.pid"
obspamlogd_precmd()
{
- if [ ! -z ${obspamlogd_pflog_if} ]; then
- # Configure i/f explicitly
- load_kld pflog || {
- warn "Unable to kldload pflog module"
- return 1
- }
+ if [ ! -z "${obspamlogd_pflog_if}" ]; then
+ # Configure i/f explicitly
+ load_kld pflog || {
+ warn "Unable to kldload pflog module"
+ return 1
+ }
- if ! ifconfig ${obspamlogd_pflog_if} create up; then
- warn "could not bring up ${obspamlogd_pflog_if}"
- return 1
- fi
+ if ! ifconfig ${obspamlogd_pflog_if} create up; then
+ warn "could not bring up ${obspamlogd_pflog_if}"
+ return 1
+ fi
- rc_flags="${rc_flags} -l ${obspamlogd_pflog_if}"
- fi
+ rc_flags="${rc_flags} -l ${obspamlogd_pflog_if}"
+ fi
_rc=0
/sbin/mount -p | grep 'fdescfs.*/dev/fd.*fdescfs.*rw' 2>&1 > /dev/null
_rc=${?}
@@ -63,7 +63,7 @@ obspamlogd_precmd()
obspamlogd_cleanup()
{
- if [ -n ${obspamlogd_pflog_if} ]; then
+ if [ -n "${obspamlogd_pflog_if}" ]; then
ifconfig ${obspamlogd_pflog_if} destroy
fi
/bin/rm -f ${pidfile}
More information about the svn-ports-all
mailing list