blob: 302dd7a5fdc3b93233351f0a013028ce2cceb0c0 (
plain)
1 # Description: DHCP server, client and relay agent.
2 # URL: https://www.isc.org/downloads/dhcp
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Mark Rosenstand, mark at borkware dot net
5
6 name=dhcp
7 version=4.4.1
8 release=1
9 source=(http://ftp.isc.org/isc/$name/$version/$name-$version.tar.gz dhcpd \
10 dhclient default-config.diff)
11
12 build() {
13 cd dhcp-$version
14 patch -p1 -i $SRC/default-config.diff
15
16 ./configure --prefix=/usr \
17 --sysconfdir=/etc
18
19 make -j1
20 make DESTDIR=$PKG install
21 install -D ../dhcpd $PKG/etc/rc.d/dhcpd
22 install -D ../dhclient $PKG/etc/rc.d/dhclient
23 install -d -m 0755 $PKG/var/state/dhcp
24 install -d -m 0755 $PKG/var/db
25 touch $PKG/var/state/dhcp/dhcpd.leases
26 install -D -m 755 $SRC/dhcp-$version/client/scripts/linux $PKG/sbin/dhclient-script
27 mv $PKG/etc/dhclient.conf.example $PKG/etc/dhclient.conf
28 mv $PKG/etc/dhcpd.conf.example $PKG/etc/dhcpd.conf
29 }
|