2008-03-12 22:55:05 +01:00
|
|
|
# Description: DHCP server, client and relay agent.
|
2018-03-12 22:12:19 +01:00
|
|
|
# URL: https://www.isc.org/downloads/dhcp
|
2008-03-06 00:28:47 +01:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2008-05-19 23:33:25 +02:00
|
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
name=dhcp
|
2020-02-09 13:46:08 +11:00
|
|
|
version=4.4.2
|
2006-11-14 09:01:22 +10:00
|
|
|
release=1
|
2012-08-02 22:54:30 +02:00
|
|
|
source=(http://ftp.isc.org/isc/$name/$version/$name-$version.tar.gz dhcpd \
|
2011-08-11 23:26:03 +02:00
|
|
|
dhclient default-config.diff)
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
build() {
|
2008-05-19 23:33:25 +02:00
|
|
|
cd dhcp-$version
|
|
|
|
patch -p1 -i $SRC/default-config.diff
|
2008-05-22 23:15:44 +02:00
|
|
|
|
2008-06-03 22:35:18 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc
|
2016-05-14 22:09:43 +02:00
|
|
|
|
2015-11-30 17:14:42 +01:00
|
|
|
make -j1
|
2008-05-19 23:33:25 +02:00
|
|
|
make DESTDIR=$PKG install
|
|
|
|
install -D ../dhcpd $PKG/etc/rc.d/dhcpd
|
2011-08-11 23:26:03 +02:00
|
|
|
install -D ../dhclient $PKG/etc/rc.d/dhclient
|
2011-08-02 00:28:30 +02:00
|
|
|
install -d -m 0755 $PKG/var/state/dhcp
|
|
|
|
install -d -m 0755 $PKG/var/db
|
2008-05-19 23:33:25 +02:00
|
|
|
touch $PKG/var/state/dhcp/dhcpd.leases
|
2011-08-02 00:28:30 +02:00
|
|
|
install -D -m 755 $SRC/dhcp-$version/client/scripts/linux $PKG/sbin/dhclient-script
|
2013-04-05 13:03:12 +02:00
|
|
|
mv $PKG/etc/dhclient.conf.example $PKG/etc/dhclient.conf
|
|
|
|
mv $PKG/etc/dhcpd.conf.example $PKG/etc/dhcpd.conf
|
2006-11-14 09:01:22 +10:00
|
|
|
}
|