summaryrefslogtreecommitdiffstats
path: root/dhclient/PKGBUILD
blob: 5f3619400614e96e0d32cfe98e2f157191c180dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
}