2006-11-20 07:26:53 +10:00
|
|
|
# Description: ISC's DHCP server, client and relay agent.
|
|
|
|
# URL: http://www.isc.org/sw/dhcp/
|
2007-01-20 12:21:06 +10:00
|
|
|
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
2006-11-20 07:26:53 +10:00
|
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
|
|
|
#
|
|
|
|
# Depends on:
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
name=dhcp
|
2006-12-23 08:49:56 +10:00
|
|
|
version=3.0.5
|
2006-11-14 09:01:22 +10:00
|
|
|
release=1
|
|
|
|
source=(http://ftp.isc.org/isc/dhcp/dhcp-$version.tar.gz \
|
2006-11-20 07:26:53 +10:00
|
|
|
dhcpd default-config.diff)
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
build() {
|
2006-11-20 07:26:53 +10:00
|
|
|
cd dhcp-$version
|
|
|
|
patch -p1 -i $SRC/default-config.diff
|
|
|
|
./configure
|
|
|
|
make && make DESTDIR=$PKG INCDIR=/usr/include LIBDIR=/usr/lib install
|
|
|
|
install -m644 client/dhclient.conf server/dhcpd.conf -t $PKG/etc
|
|
|
|
install -D ../dhcpd $PKG/etc/rc.d/dhcpd
|
2007-01-14 03:30:40 +10:00
|
|
|
mkdir -p $PKG/var/state/dhcp
|
|
|
|
touch $PKG/var/state/dhcp/dhcpd.leases
|
2006-11-20 07:26:53 +10:00
|
|
|
find $PKG/usr/man -type f -exec chmod 644 {} \;
|
|
|
|
chown -R root:root $PKG
|
2006-11-14 09:01:22 +10:00
|
|
|
}
|