1
0
forked from ports/contrib
contrib-tek/dhcp/Pkgfile

28 lines
706 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-20 07:26:53 +10:00
#
# Depends on:
2006-11-14 09:01:22 +10:00
name=dhcp
2007-11-26 17:26:49 +10:00
version=4.0.0b3
2006-11-14 09:01:22 +10:00
release=1
2007-11-26 17:26:49 +10:00
source=(http://ftp.isc.org/isc/$name/$name-$version.tar.gz
dhcpd
default-config.diff)
2006-11-14 09:01:22 +10:00
build() {
cd dhcp-$version
patch -p1 -i $SRC/default-config.diff
2007-11-26 17:26:49 +10:00
./configure --prefix=/usr
make
make DESTDIR=$PKG install
mkdir $PKG/etc/
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
chown -R root:root $PKG
2006-11-14 09:01:22 +10:00
}