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,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}