forked from ports/contrib
27 lines
781 B
Plaintext
27 lines
781 B
Plaintext
# 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
|
|
#
|
|
# Depends on:
|
|
|
|
name=dhcp
|
|
version=3.0.6rc2
|
|
release=1
|
|
source=(http://ftp.isc.org/isc/$name/$name-3.0-history/$name-$version.tar.gz
|
|
dhcpd
|
|
default-config.diff)
|
|
|
|
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
|
|
}
|