summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/dhcpcd/Makefile17
-rw-r--r--net/dhcpcd/distinfo4
-rw-r--r--net/dhcpcd/files/patch-configure30
-rw-r--r--net/dhcpcd/pkg-plist12
4 files changed, 54 insertions, 9 deletions
diff --git a/net/dhcpcd/Makefile b/net/dhcpcd/Makefile
index dfdd2ac73f7f..c13b556b5a3e 100644
--- a/net/dhcpcd/Makefile
+++ b/net/dhcpcd/Makefile
@@ -2,20 +2,23 @@
# $FreeBSD$
PORTNAME= dhcpcd
-PORTVERSION= 3.2.3
+PORTVERSION= 5.5.6
CATEGORIES= net
-MASTER_SITES= http://roy.marples.name/dhcpcd/ \
- http://critical.ch/distfiles/ \
- http://energy.critical.ch/distfiles/
+MASTER_SITES= http://roy.marples.name/downloads/dhcpcd/ \
+ LOCAL/delphij
MAINTAINER= roy@marples.name
COMMENT= DHCP client
+GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_RC_SUBR= dhcpcd
-MAN8= dhcpcd.8
-PLIST_FILES= sbin/dhcpcd
-
NO_STAGE= yes
+
+CONFIGURE_ARGS+= --mandir=${PREFIX}/man
+
+MAN5= dhcpcd.conf.5
+MAN8= dhcpcd.8 dhcpcd-run-hooks.8
+
.include <bsd.port.mk>
diff --git a/net/dhcpcd/distinfo b/net/dhcpcd/distinfo
index d494553960f1..9daf04d3725c 100644
--- a/net/dhcpcd/distinfo
+++ b/net/dhcpcd/distinfo
@@ -1,2 +1,2 @@
-SHA256 (dhcpcd-3.2.3.tar.bz2) = 89d5fc05d7fd643200333116400d8a0eda9adf1c7f2a70e6cbca977c8d3843fe
-SIZE (dhcpcd-3.2.3.tar.bz2) = 45030
+SHA256 (dhcpcd-5.5.6.tar.bz2) = 657f10dc7de48cba9f7170b593bf0e11987d06bd12378e3f4cd01b9e99b1e8e7
+SIZE (dhcpcd-5.5.6.tar.bz2) = 78185
diff --git a/net/dhcpcd/files/patch-configure b/net/dhcpcd/files/patch-configure
new file mode 100644
index 000000000000..bd439dbe274b
--- /dev/null
+++ b/net/dhcpcd/files/patch-configure
@@ -0,0 +1,30 @@
+--- ./configure.orig 2012-03-28 03:26:20.000000000 -0700
++++ ./configure 2013-10-28 22:31:50.000000000 -0700
+@@ -53,7 +53,7 @@
+ --includedir) eval INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }$var";;
+ --datadir|--infodir) ;; # ignore autotools
+ --disable-maintainer-mode|--disable-dependency-tracking) ;;
+- --help) echo "See the README file for available options"; exit 0;;
++ --help|--version) echo "See the README file for available options"; exit 0;;
+ *) echo "$0: WARNING: unknown option $opt" >&2;;
+ esac
+ done
+@@ -101,7 +101,8 @@
+ CONFIG_MK=config.mk
+
+ if [ -z "$BUILD" ]; then
+- BUILD=`uname -m`-`uname -s | tr '[:upper:]' '[:lower:]'`
++ # autoconf target triplet: cpu-vendor-os (where os = system or kernel-system)
++ BUILD=`uname -m`-unknown-`uname -s | tr '[:upper:]' '[:lower:]'`
+ fi
+ if [ -z "$HOST" ]; then
+ [ -z "$TARGET" ] && TARGET=$BUILD
+@@ -124,6 +125,8 @@
+ # Derive OS from cpu-manufacturer-os-kernel
+ CPU=${TARGET%%-*}
+ REST=${TARGET#*-}
++ VENDOR=${REST%%-*}
++ REST=${REST#*-}
+ if [ "$CPU" != "$REST" ]; then
+ MANU=${REST%%-*}
+ REST=${REST#*-}
diff --git a/net/dhcpcd/pkg-plist b/net/dhcpcd/pkg-plist
new file mode 100644
index 000000000000..f27ade4bd7d4
--- /dev/null
+++ b/net/dhcpcd/pkg-plist
@@ -0,0 +1,12 @@
+@comment $FreeBSD$
+etc/dhcpcd.conf
+sbin/dhcpcd
+libexec/dhcpcd-hooks/50-ypbind
+libexec/dhcpcd-hooks/10-mtu
+libexec/dhcpcd-hooks/20-resolv.conf
+libexec/dhcpcd-hooks/50-ntp.conf
+libexec/dhcpcd-hooks/02-dump
+libexec/dhcpcd-hooks/30-hostname
+libexec/dhcpcd-hooks/01-test
+libexec/dhcpcd-hooks/29-lookup-hostname
+libexec/dhcpcd-run-hooks