aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2009-07-30 08:16:51 +0800
committerjpaetzel <jpaetzel@FreeBSD.org>2009-07-30 08:16:51 +0800
commit546baf2352bc0ca7ccbec167306cd3aea9261fd6 (patch)
treecfb21e734236e55be84d50bca075cedf5e2622d3
parentdccc9eac15af728239b2281bbea1c19158f8566a (diff)
downloadfreebsd-ports-gnome-546baf2352bc0ca7ccbec167306cd3aea9261fd6.tar.gz
freebsd-ports-gnome-546baf2352bc0ca7ccbec167306cd3aea9261fd6.tar.zst
freebsd-ports-gnome-546baf2352bc0ca7ccbec167306cd3aea9261fd6.zip
Fix bug in rcNG script for restart action.
Approved by: itetcu@ (mentor)
-rw-r--r--net/isc-dhcp31-server/Makefile2
-rw-r--r--net/isc-dhcp31-server/files/isc-dhcpd.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/net/isc-dhcp31-server/Makefile b/net/isc-dhcp31-server/Makefile
index a0aad6a84e14..606deb2f68ad 100644
--- a/net/isc-dhcp31-server/Makefile
+++ b/net/isc-dhcp31-server/Makefile
@@ -19,7 +19,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT?= The ISC Dynamic Host Configuration Protocol server
-PORTREVISION_SERVER= 0
+PORTREVISION_SERVER= 1
PORTREVISION_CLIENT= 0
PORTREVISION_RELAY= 0
PORTREVISION_DEVEL= 0
diff --git a/net/isc-dhcp31-server/files/isc-dhcpd.in b/net/isc-dhcp31-server/files/isc-dhcpd.in
index b01705589f8f..f6c2aefa9370 100644
--- a/net/isc-dhcp31-server/files/isc-dhcpd.in
+++ b/net/isc-dhcp31-server/files/isc-dhcpd.in
@@ -706,8 +706,9 @@ dhcpd_checkconfig ()
setup_flags
rc_flags_mod="$rc_flags"
# Eliminate '-q' flag if it is present
+ echo $rc_flags
case "$rc_flags" in
- "-q") rc_flags_mod=`echo "$(rc_flags)" | sed -Ee 's/(^-q|-q|-q$)'//` ;;
+ *-q*) rc_flags_mod=`echo "$(rc_flags)" | sed -Ee 's/(^-q | -q | -q$)'//` ;;
esac
if ! ${command} -t -q ${rc_flags_mod}; then
err 1 "`${command} -t ${rc_flags_mod}` Configuration file sanity check failed"