forked from ports/contrib
29 lines
704 B
Plaintext
29 lines
704 B
Plaintext
# Description: DHCP server, client and relay agent.
|
|
# URL: http://www.isc.org/dhcp
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
|
#
|
|
# Depends on:
|
|
|
|
name=dhcp
|
|
version=4.2.0
|
|
release=1
|
|
source=(http://ftp.isc.org/isc/$name/$name-$version.tar.gz
|
|
dhcpd
|
|
default-config.diff)
|
|
|
|
build() {
|
|
cd dhcp-$version
|
|
patch -p1 -i $SRC/default-config.diff
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--disable-dhcpv6 \
|
|
--sysconfdir=/etc
|
|
make
|
|
make DESTDIR=$PKG install
|
|
install -D ../dhcpd $PKG/etc/rc.d/dhcpd
|
|
mkdir -p $PKG/var/state/dhcp
|
|
touch $PKG/var/state/dhcp/dhcpd.leases
|
|
}
|