summaryrefslogtreecommitdiff
path: root/testing/dhcpcd/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-20 00:01:23 +0000
committerroot <root@rshg054.dnsready.net>2012-03-20 00:01:23 +0000
commit99136e3a2e9f6f07a7ff08d5721bce354b853c8b (patch)
tree3cd677128a00bc9501f93e27e53ebba72f44cd52 /testing/dhcpcd/PKGBUILD
parentde5b6982e42f4a1e8b0537cfbc1b676e2a81f195 (diff)
Tue Mar 20 00:01:23 UTC 2012
Diffstat (limited to 'testing/dhcpcd/PKGBUILD')
-rw-r--r--testing/dhcpcd/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/dhcpcd/PKGBUILD b/testing/dhcpcd/PKGBUILD
new file mode 100644
index 000000000..aaba80b87
--- /dev/null
+++ b/testing/dhcpcd/PKGBUILD
@@ -0,0 +1,57 @@
+# $Id: PKGBUILD 153720 2012-03-18 17:01:24Z ronald $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Tom Killian <tom.archlinux.org>
+# Contributor: Judd Vinet <jvinet.zeroflux.org>
+
+_gitrev=8316b24
+pkgname=dhcpcd
+pkgver=5.5.4
+pkgrel=2
+pkgdesc="RFC2131 compliant DHCP client daemon"
+url="http://roy.marples.name/dhcpcd/"
+arch=('i686' 'x86_64')
+license=('BSD')
+groups=('base')
+depends=('glibc' 'sh')
+backup=('etc/conf.d/dhcpcd' 'etc/dhcpcd.conf')
+options=('emptydirs') # We Need the Empty /var/lib/dhcpcd Directory
+#source=("http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2" \
+source=("ftp://ftp.archlinux.org/other/dhcpcd/dhcpcd-r8316b24.tar.bz2" \
+ 'dhcpcd.conf.d')
+sha1sums=('1e3e47b2aabed38e81cd695d1f11527fd41b3637'
+ 'b67b9ce6a2faaca75fea356966a16be2283b7db0')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # remove net-tools dep (upstream now)
+# patch -Np1 -i ${srcdir}/0001-Set-hostname-via-proc-if-file-is-available.patch
+# patch -Np1 -i ${srcdir}/0001-set-MTU-via-sysfs-if-file-is-available.patch
+
+ # configure variables
+ ./configure --libexecdir=/usr/lib/dhcpcd --dbdir=/var/lib/dhcpcd \
+ --rundir=/run
+
+ # Build
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
+
+ # Create Binary Symlink
+ install -d ${pkgdir}/usr/sbin
+ ln -sf /sbin/dhcpcd ${pkgdir}/usr/sbin/dhcpcd
+
+ # Install Configuration File used in /etc/rc.d/network
+ install -D -m644 ../dhcpcd.conf.d $pkgdir/etc/conf.d/$pkgname
+
+ # Install License
+ install -d $pkgdir/usr/share/licenses/$pkgname
+ awk '{if(FNR<27)print $0}' ${srcdir}/${pkgname}-${pkgver}/configure.h \
+ >> ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+
+ # Set Options in /etc/dhcpcd.conf
+ echo noipv4ll >> ${pkgdir}/etc/dhcpcd.conf # Disable ip4vall
+}