summaryrefslogtreecommitdiff
path: root/net/dhcpcd
diff options
context:
space:
mode:
authorroy <roy>2009-03-05 23:23:26 +0000
committerroy <roy>2009-03-05 23:23:26 +0000
commit1782492105f2812cf5b1476ceb439f7ab0edc3d2 (patch)
tree782b924663fc1520ffb30d82b49d7b62c1a8b7d6 /net/dhcpcd
parent63d2ef86eb5b08f933cc1690585147abcb4c5f07 (diff)
downloadpkgsrc-1782492105f2812cf5b1476ceb439f7ab0edc3d2.tar.gz
Import dhcpcd-4.99.14
dhcpcd is a small, bloat free DHCP client which includes these features * DHCP over firewire * User Class * SIP Servers * Domain Search * Classless Static Routes * IPv4LL aka APIPA aka Zeroconf * Node specific Client Identifiers * DHCP over Infiniband * Link carrier and interface addition/removal detection * Dynamic route management
Diffstat (limited to 'net/dhcpcd')
-rw-r--r--net/dhcpcd/DESCR2
-rw-r--r--net/dhcpcd/Makefile30
-rw-r--r--net/dhcpcd/PLIST14
-rw-r--r--net/dhcpcd/distinfo5
-rwxr-xr-xnet/dhcpcd/files/dhcpcd.sh15
5 files changed, 66 insertions, 0 deletions
diff --git a/net/dhcpcd/DESCR b/net/dhcpcd/DESCR
new file mode 100644
index 00000000000..77e350f44c3
--- /dev/null
+++ b/net/dhcpcd/DESCR
@@ -0,0 +1,2 @@
+An implementation of the DHCP client specified in RFC2131.
+It's very small and bloat free.
diff --git a/net/dhcpcd/Makefile b/net/dhcpcd/Makefile
new file mode 100644
index 00000000000..d5c32e3f9f9
--- /dev/null
+++ b/net/dhcpcd/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/03/05 23:23:26 roy Exp $
+#
+
+DISTNAME= dhcpcd-4.99.14
+CATEGORIES= net
+MASTER_SITES= ftp://roy.marples.name/pub/dhcpcd/
+MASTER_SITES+= http://roy.aydogan.net/dhcpcd/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= roy@marples.name
+HOMEPAGE= http://roy.marples.name/projects/dhcpcd/
+COMMENT= RFC2131 compliant DHCP client
+
+PKG_DESTDIR_SUPPORT= user-destdir
+USE_LANGUAGES= c99
+
+EGDIR= ${PREFIX}/share/examples
+MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}/man
+MAKE_ENV+= SYSCONFDIR=${PKG_SYSCONFDIR}
+INSTALL_MAKE_FLAGS+= SYSCONFDIR=${EGDIR}
+
+# Install the configuration file
+CONF_FILES+= ${EGDIR}/dhcpcd.conf ${PKG_SYSCONFDIR}/dhcpcd.conf
+
+RCD_SCRIPTS+= dhcpcd
+
+# Install the ntp hook script by default
+MAKE_ENV+= HOOKSCRIPTS=50-ntp.conf
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/dhcpcd/PLIST b/net/dhcpcd/PLIST
new file mode 100644
index 00000000000..d99c349df00
--- /dev/null
+++ b/net/dhcpcd/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/03/05 23:23:26 roy Exp $
+libexec/dhcpcd-hooks/01-test
+libexec/dhcpcd-hooks/10-mtu
+libexec/dhcpcd-hooks/20-resolv.conf
+libexec/dhcpcd-hooks/30-hostname
+libexec/dhcpcd-hooks/50-ntp.conf
+libexec/dhcpcd-run-hooks
+man/man5/dhcpcd.conf.5
+man/man8/dhcpcd-run-hooks.8
+man/man8/dhcpcd.8
+sbin/dhcpcd
+share/examples/dhcpcd.conf
+share/examples/rc.d/dhcpcd
+@dirrm libexec/dhcpcd-hooks
diff --git a/net/dhcpcd/distinfo b/net/dhcpcd/distinfo
new file mode 100644
index 00000000000..57471532788
--- /dev/null
+++ b/net/dhcpcd/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/03/05 23:23:26 roy Exp $
+
+SHA1 (dhcpcd-4.99.14.tar.bz2) = fb0ae1c1fc2992c9e85fdb2e131fce6d681b3889
+RMD160 (dhcpcd-4.99.14.tar.bz2) = ce27e48bedf407912d89b8b6032be8ac40d164ea
+Size (dhcpcd-4.99.14.tar.bz2) = 60295 bytes
diff --git a/net/dhcpcd/files/dhcpcd.sh b/net/dhcpcd/files/dhcpcd.sh
new file mode 100755
index 00000000000..620de4191fe
--- /dev/null
+++ b/net/dhcpcd/files/dhcpcd.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# PROVIDE: dhcpcd
+# REQUIRE: network mountcritlocal
+# BEFORE: NETWORKING
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="dhcpcd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"