Fix obspamlogd rc script's use of tests, while here fix whitespace.

Approved by:	beat (mentor)
This commit is contained in:
Ulrich Spörlein 2013-01-08 14:46:14 +00:00
parent e0a5282e09
commit c5a7a109ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310092
2 changed files with 14 additions and 13 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= spamd
PORTVERSION= 4.9.1
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= SF
MASTER_SITE_SUBDIR=freebsdspamd.berlios

View File

@ -33,7 +33,7 @@ pidfile="/var/run/spamlogd.pid"
obspamlogd_precmd()
{
if [ ! -z ${obspamlogd_pflog_if} ]; then
if [ ! -z "${obspamlogd_pflog_if}" ]; then
# Configure i/f explicitly
load_kld pflog || {
warn "Unable to kldload pflog module"
@ -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}