summaryrefslogtreecommitdiffstats
path: root/dhclient/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'dhclient/PKGBUILD')
-rw-r--r--dhclient/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/dhclient/PKGBUILD b/dhclient/PKGBUILD
new file mode 100644
index 0000000..5f36194
--- /dev/null
+++ b/dhclient/PKGBUILD
@@ -0,0 +1,32 @@
+#$Id$
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: Mirko Messer <mirk@chao.ch>
+pkgname=dhclient
+pkgver=3.0.7
+pkgrel=2
+pkgdesc="dhclient is standalone client from the dhcp package"
+arch=(i686 x86_64)
+url="http://www.isc.org/index.pl?/sw/dhcp/"
+license=('custom')
+depends=('bash')
+options=('!makeflags')
+source=(ftp://ftp.isc.org/isc/dhcp/dhcp-${pkgver}.tar.gz \
+ fix-broken-resolvconf.patch
+ )
+
+build() {
+ cd ${startdir}/src/dhcp-${pkgver}
+ patch -Np1 -i ${startdir}/src/fix-broken-resolvconf.patch || return 1
+ ./configure
+ cd work*/minires && make || return 1
+ cd ../dst && make || return 1
+ cd ../omapip && make || return 1
+ cd ../common && make || return 1
+ cd ../client
+ make DESTDIR=${startdir}/pkg install
+ mkdir -p ${startdir}/pkg/usr/share/licenses/${pkgname}
+ install -m644 ${startdir}/src/dhcp-${pkgver}/LICENSE \
+ ${startdir}/pkg/usr/share/licenses/${pkgname}/
+
+ install -m755 -d ${startdir}/pkg/var/lib/dhclient
+}