contrib/dhcp/Pkgfile

29 lines
871 B
Plaintext
Raw Normal View History

# Description: DHCP server, client and relay agent.
2008-06-03 22:35:18 +02:00
# URL: http://www.isc.org/dhcp
2008-03-06 00:28:47 +01:00
# Maintainer: Thomas Penteker, tek at serverop dot de
2008-05-19 23:33:25 +02:00
# Packager: Mark Rosenstand, mark at borkware dot net
2006-11-14 00:01:22 +01:00
name=dhcp
version=4.2.2
2006-11-14 00:01:22 +01:00
release=1
2011-08-02 00:28:30 +02:00
source=(http://ftp.isc.org/isc/$name/$name-$version.tar.gz dhcpd \
2011-08-11 23:26:03 +02:00
dhclient default-config.diff)
2006-11-14 00:01:22 +01:00
build() {
2008-05-19 23:33:25 +02:00
cd dhcp-$version
patch -p1 -i $SRC/default-config.diff
2008-05-22 23:15:44 +02:00
2008-06-03 22:35:18 +02:00
./configure --prefix=/usr \
--mandir=/usr/man \
--disable-dhcpv6 \
--sysconfdir=/etc
2008-05-19 23:33:25 +02:00
make
make DESTDIR=$PKG install
install -D ../dhcpd $PKG/etc/rc.d/dhcpd
2011-08-11 23:26:03 +02:00
install -D ../dhclient $PKG/etc/rc.d/dhclient
2011-08-02 00:28:30 +02:00
install -d -m 0755 $PKG/var/state/dhcp
install -d -m 0755 $PKG/var/db
2008-05-19 23:33:25 +02:00
touch $PKG/var/state/dhcp/dhcpd.leases
2011-08-02 00:28:30 +02:00
install -D -m 755 $SRC/dhcp-$version/client/scripts/linux $PKG/sbin/dhclient-script
2006-11-14 00:01:22 +01:00
}