aboutsummaryrefslogtreecommitdiff
path: root/net/isc-dhcp30-server
diff options
context:
space:
mode:
authorTom McLaughlin <tmclaugh@FreeBSD.org>2007-12-04 01:28:43 +0000
committerTom McLaughlin <tmclaugh@FreeBSD.org>2007-12-04 01:28:43 +0000
commit0eac338452d29b531c223269f65f5615dc6a249c (patch)
tree6f6f74b4c24881cc7f9f22adc108b0c71df97a25 /net/isc-dhcp30-server
parent6a5b9115aeb271833d2abf0cc3638ffad3b69f07 (diff)
downloadports-0eac338452d29b531c223269f65f5615dc6a249c.tar.gz
ports-0eac338452d29b531c223269f65f5615dc6a249c.zip
Fix dhcpd_devfs_enable on 7.x and later.
PR: 115967 Submitted by: Eygene Ryabinkin Approved by: portmgr (linimon, pav), maintainer
Notes
Notes: svn path=/head/; revision=202894
Diffstat (limited to 'net/isc-dhcp30-server')
-rw-r--r--net/isc-dhcp30-server/Makefile1
-rw-r--r--net/isc-dhcp30-server/files/isc-dhcpd.in13
2 files changed, 9 insertions, 5 deletions
diff --git a/net/isc-dhcp30-server/Makefile b/net/isc-dhcp30-server/Makefile
index ea88ac706d0f..104bc99173b1 100644
--- a/net/isc-dhcp30-server/Makefile
+++ b/net/isc-dhcp30-server/Makefile
@@ -8,6 +8,7 @@
PORTNAME= dhcp
PORTVERSION= 3.0.5
+PORTREVISION= 1
PORTREVISION= ${DHCP_PORTREVISION}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_ISC}
diff --git a/net/isc-dhcp30-server/files/isc-dhcpd.in b/net/isc-dhcp30-server/files/isc-dhcpd.in
index 82f249ad5571..70ba25b92d99 100644
--- a/net/isc-dhcp30-server/files/isc-dhcpd.in
+++ b/net/isc-dhcp30-server/files/isc-dhcpd.in
@@ -354,11 +354,14 @@ check_chroot ()
err 1 "dhcpd_devfs_enable and dhcpd_makedev_enable" \
"are mutually exclusive. enable only one!"
fi
- if checkyesno dhcpd_devfs_enable &&
- ! ( type mount_devfs ) > /dev/null 2>&1; then
- warn "dhcpd_devfs_enable disabled" \
- "-- not available"
- dhcpd_devfs_enable=NO
+ if test `uname -r | cut -c 1` -le 6; then
+ if checkyesno dhcpd_devfs_enable &&
+ ! ( type mount_devfs ) > /dev/null 2>&1;
+ then
+ warn "dhcpd_devfs_enable disabled" \
+ "-- not available"
+ dhcpd_devfs_enable=NO
+ fi
fi
if checkyesno dhcpd_makedev_enable &&
! [ -x ${__dhcpd_devdir}/MAKEDEV ]; then