summaryrefslogtreecommitdiff
path: root/dhcp/Pkgfile
blob: e406a4aae08a03549c3d7f013847a6316fc44986 (plain)
    1 # Description: DHCP server, client and relay agent.
    2 # URL:         http://www.isc.org/dhcp
    3 # Maintainer:  Thomas Penteker, tek at serverop dot de
    4 # Packager:    Mark Rosenstand, mark at borkware dot net
    5 
    6 name=dhcp
    7 version=4.2.4-P2
    8 release=1
    9 source=(http://ftp.isc.org/isc/$name/$version/$name-$version.tar.gz dhcpd \
   10         dhclient default-config.diff)
   11 
   12 build() {
   13   cd dhcp-$version
   14   patch -p1 -i $SRC/default-config.diff
   15 
   16   ./configure --prefix=/usr \
   17               --mandir=/usr/man \
   18               --disable-dhcpv6 \
   19               --sysconfdir=/etc
   20   make
   21   make DESTDIR=$PKG install
   22   install -D ../dhcpd $PKG/etc/rc.d/dhcpd
   23   install -D ../dhclient $PKG/etc/rc.d/dhclient
   24   install -d -m 0755 $PKG/var/state/dhcp
   25   install -d -m 0755 $PKG/var/db
   26   touch $PKG/var/state/dhcp/dhcpd.leases
   27   install -D -m 755 $SRC/dhcp-$version/client/scripts/linux $PKG/sbin/dhclient-script
   28 }

Generated by cgit