contrib/dhcp/Pkgfile

27 lines
781 B
Plaintext
Raw Normal View History

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