diff options
author | tmclaugh <tmclaugh@FreeBSD.org> | 2007-12-04 09:28:43 +0800 |
---|---|---|
committer | tmclaugh <tmclaugh@FreeBSD.org> | 2007-12-04 09:28:43 +0800 |
commit | a4b1b461d12d4c45a94f7e8f00d3d97f866888f4 (patch) | |
tree | 87915a108f77887718b15c58fdd708347608fe12 /net | |
parent | 9fcb673c45df2276b2df8471c66df634ef1888c7 (diff) | |
download | freebsd-ports-gnome-a4b1b461d12d4c45a94f7e8f00d3d97f866888f4.tar.gz freebsd-ports-gnome-a4b1b461d12d4c45a94f7e8f00d3d97f866888f4.tar.zst freebsd-ports-gnome-a4b1b461d12d4c45a94f7e8f00d3d97f866888f4.zip |
Fix dhcpd_devfs_enable on 7.x and later.
PR: 115967
Submitted by: Eygene Ryabinkin
Approved by: portmgr (linimon, pav), maintainer
Diffstat (limited to 'net')
-rw-r--r-- | net/isc-dhcp3-server/Makefile | 1 | ||||
-rw-r--r-- | net/isc-dhcp3-server/files/isc-dhcpd.in | 13 | ||||
-rw-r--r-- | net/isc-dhcp30-server/Makefile | 1 | ||||
-rw-r--r-- | net/isc-dhcp30-server/files/isc-dhcpd.in | 13 | ||||
-rw-r--r-- | net/isc-dhcp31-server/Makefile | 1 | ||||
-rw-r--r-- | net/isc-dhcp31-server/files/isc-dhcpd.in | 13 | ||||
-rw-r--r-- | net/isc-dhcp40-server/Makefile | 1 | ||||
-rw-r--r-- | net/isc-dhcp40-server/files/isc-dhcpd.in | 13 |
8 files changed, 36 insertions, 20 deletions
diff --git a/net/isc-dhcp3-server/Makefile b/net/isc-dhcp3-server/Makefile index ea88ac706d0f..104bc99173b1 100644 --- a/net/isc-dhcp3-server/Makefile +++ b/net/isc-dhcp3-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-dhcp3-server/files/isc-dhcpd.in b/net/isc-dhcp3-server/files/isc-dhcpd.in index 82f249ad5571..70ba25b92d99 100644 --- a/net/isc-dhcp3-server/files/isc-dhcpd.in +++ b/net/isc-dhcp3-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 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 diff --git a/net/isc-dhcp31-server/Makefile b/net/isc-dhcp31-server/Makefile index ea88ac706d0f..104bc99173b1 100644 --- a/net/isc-dhcp31-server/Makefile +++ b/net/isc-dhcp31-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-dhcp31-server/files/isc-dhcpd.in b/net/isc-dhcp31-server/files/isc-dhcpd.in index 82f249ad5571..70ba25b92d99 100644 --- a/net/isc-dhcp31-server/files/isc-dhcpd.in +++ b/net/isc-dhcp31-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 diff --git a/net/isc-dhcp40-server/Makefile b/net/isc-dhcp40-server/Makefile index ea88ac706d0f..104bc99173b1 100644 --- a/net/isc-dhcp40-server/Makefile +++ b/net/isc-dhcp40-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-dhcp40-server/files/isc-dhcpd.in b/net/isc-dhcp40-server/files/isc-dhcpd.in index 82f249ad5571..70ba25b92d99 100644 --- a/net/isc-dhcp40-server/files/isc-dhcpd.in +++ b/net/isc-dhcp40-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 |