contrib/dhcp/Pkgfile

26 lines
794 B
Plaintext
Raw Normal View History

2006-11-19 22:26:53 +01:00
# Description: ISC's DHCP server, client and relay agent.
# URL: http://www.isc.org/sw/dhcp/
2007-01-20 03:21:06 +01:00
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
2006-11-19 22:26:53 +01:00
# Packager: Mark Rosenstand, mark at borkware dot net
#
# Depends on:
2006-11-14 00:01:22 +01:00
name=dhcp
2006-12-22 23:49:56 +01:00
version=3.0.5
2006-11-14 00:01:22 +01:00
release=1
source=(http://ftp.isc.org/isc/dhcp/dhcp-$version.tar.gz \
2006-11-19 22:26:53 +01:00
dhcpd default-config.diff)
2006-11-14 00:01:22 +01:00
build() {
2006-11-19 22:26:53 +01: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-13 18:30:40 +01:00
mkdir -p $PKG/var/state/dhcp
touch $PKG/var/state/dhcp/dhcpd.leases
2006-11-19 22:26:53 +01:00
find $PKG/usr/man -type f -exec chmod 644 {} \;
chown -R root:root $PKG
2006-11-14 00:01:22 +01:00
}