summaryrefslogtreecommitdiff
path: root/net/isc-dhcp41-client
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2010-05-06 20:24:01 +0000
committerWesley Shields <wxs@FreeBSD.org>2010-05-06 20:24:01 +0000
commit541cf69201db734d98c45cf5b9d3c00f09c74876 (patch)
tree90f8963c6cfd5eb0c127b7917f8876221fba93f6 /net/isc-dhcp41-client
parentFix stopping the server process via the port's rc.d script. (diff)
Welcome net/isc-dhcp41-server, net/isc-dhcp41-client and net/isc-dhcp41-relay
to the tree. There's still a small bit of work to do including adding conflicts for the existing DHCP ports (which should have been conflicting with each other already) and add a 41-devel port so people can use the headers and libraries.
Notes
Notes: svn path=/head/; revision=253843
Diffstat (limited to 'net/isc-dhcp41-client')
-rw-r--r--net/isc-dhcp41-client/Makefile13
-rw-r--r--net/isc-dhcp41-client/pkg-descr9
-rw-r--r--net/isc-dhcp41-client/pkg-message10
-rw-r--r--net/isc-dhcp41-client/pkg-plist8
4 files changed, 40 insertions, 0 deletions
diff --git a/net/isc-dhcp41-client/Makefile b/net/isc-dhcp41-client/Makefile
new file mode 100644
index 000000000000..afe6d36b5ae7
--- /dev/null
+++ b/net/isc-dhcp41-client/Makefile
@@ -0,0 +1,13 @@
+# Ports collection makefile for: isc-dhcp41-client
+# Date created: 28 March 2010
+# Whom: Wesley Shields <wxs@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+COMMENT= The ISC Dynamic Host Configuration Protocol client
+
+SUBSYS= client
+MASTERDIR= ${.CURDIR}/../isc-dhcp41-server
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/isc-dhcp41-client/pkg-descr b/net/isc-dhcp41-client/pkg-descr
new file mode 100644
index 000000000000..0ebf230cdc08
--- /dev/null
+++ b/net/isc-dhcp41-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: http://www.isc.org/products/DHCP/
diff --git a/net/isc-dhcp41-client/pkg-message b/net/isc-dhcp41-client/pkg-message
new file mode 100644
index 000000000000..106035b3b8ff
--- /dev/null
+++ b/net/isc-dhcp41-client/pkg-message
@@ -0,0 +1,10 @@
+**** To setup dhclient, you may need to edit /etc/rc.conf to replace the
+ base system dhclient, such as:
+
+ 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-dhcp41-client/pkg-plist b/net/isc-dhcp41-client/pkg-plist
new file mode 100644
index 000000000000..06b9afd39ee3
--- /dev/null
+++ b/net/isc-dhcp41-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