aboutsummaryrefslogtreecommitdiff
path: root/net/isc-dhcp42-client
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2011-07-07 19:45:26 +0000
committerDoug Barton <dougb@FreeBSD.org>2011-07-07 19:45:26 +0000
commite080f8cb9aacdb2ce2a5e471fe87538d9dcd977e (patch)
tree48bf3c1365e5d0c7b8dda6b091d4703ddf0255c7 /net/isc-dhcp42-client
parent867344907176122e9dcd727e48ad6fca3c981ac2 (diff)
Notes
Diffstat (limited to 'net/isc-dhcp42-client')
-rw-r--r--net/isc-dhcp42-client/Makefile13
-rw-r--r--net/isc-dhcp42-client/pkg-descr9
-rw-r--r--net/isc-dhcp42-client/pkg-message10
-rw-r--r--net/isc-dhcp42-client/pkg-plist8
4 files changed, 40 insertions, 0 deletions
diff --git a/net/isc-dhcp42-client/Makefile b/net/isc-dhcp42-client/Makefile
new file mode 100644
index 000000000000..971c40e4fab2
--- /dev/null
+++ b/net/isc-dhcp42-client/Makefile
@@ -0,0 +1,13 @@
+# Ports collection makefile for: isc-dhcp42-client
+# Date created: 29 June 2011
+# Whom: Ryan Steinmetz <rpsfa@rit.edu>
+#
+# $FreeBSD$
+#
+
+COMMENT= The ISC Dynamic Host Configuration Protocol client
+
+SUBSYS= client
+MASTERDIR= ${.CURDIR}/../isc-dhcp42-server
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/isc-dhcp42-client/pkg-descr b/net/isc-dhcp42-client/pkg-descr
new file mode 100644
index 000000000000..f7aff7b6b485
--- /dev/null
+++ b/net/isc-dhcp42-client/pkg-descr
@@ -0,0 +1,9 @@
+The ISC Dynamic Host Configuration Protocol Distribution provides a
+freely redistributable reference implementation of all aspects of the
+DHCP protocol, through a suite of DHCP tools:
+
+ * A DHCP server
+ * A DHCP client (this port)
+ * A DHCP relay agent
+
+WWW: https://www.isc.org/products/DHCP/
diff --git a/net/isc-dhcp42-client/pkg-message b/net/isc-dhcp42-client/pkg-message
new file mode 100644
index 000000000000..b3746cd3ffeb
--- /dev/null
+++ b/net/isc-dhcp42-client/pkg-message
@@ -0,0 +1,10 @@
+**** To setup dhclient, you may need to edit /etc/rc.conf to replace the
+ base system dhclient as follows:
+
+ dhcp_program="%%PREFIX%%/sbin/dhclient"
+ dhcp_flags="-q"
+
+ See dhclient(8), using the following command, for details about other
+ possible options:
+
+ MANPATH=%%MAN1PREFIX%%/man man 8 dhclient
diff --git a/net/isc-dhcp42-client/pkg-plist b/net/isc-dhcp42-client/pkg-plist
new file mode 100644
index 000000000000..06b9afd39ee3
--- /dev/null
+++ b/net/isc-dhcp42-client/pkg-plist
@@ -0,0 +1,8 @@
+@comment $FreeBSD$
+sbin/dhclient
+sbin/dhclient-script
+@unexec if cmp -s %D/etc/dhclient.conf.sample %D/etc/dhclient.conf; then rm -f %D/etc/dhclient.conf; fi
+etc/dhclient.conf.sample
+@exec if [ ! -f %D/etc/dhclient.conf ] ; then cp -p %D/%F %B/dhclient.conf; fi
+@exec [ -f /var/run/dhclient.leases ] || touch /var/run/dhclient.leases
+@unexec [ -s /var/run/dhclient.leases ] || rm -f /var/run/dhclient.leases