summaryrefslogtreecommitdiff
path: root/dhcp/Pkgfile
blob: 61cbf47752f47e706e60fd4e7739675be6fffae1 (plain)
    1 # Description: ISC's DHCP server, client and relay agent.
    2 # URL:         http://www.isc.org/sw/dhcp/
    3 # Maintainer:  James Mills, prologic at shortcircuit dot net dot au
    4 # Packager:    Mark Rosenstand, mark at borkware dot net
    5 #
    6 # Depends on:   
    7 
    8 name=dhcp
    9 version=3.0.5
   10 release=1
   11 source=(http://ftp.isc.org/isc/dhcp/dhcp-$version.tar.gz \
   12    dhcpd default-config.diff)
   13 
   14 build() {
   15    cd dhcp-$version
   16    patch -p1 -i $SRC/default-config.diff
   17    ./configure
   18    make && make DESTDIR=$PKG INCDIR=/usr/include LIBDIR=/usr/lib install
   19    install -m644 client/dhclient.conf server/dhcpd.conf -t $PKG/etc
   20    install -D ../dhcpd $PKG/etc/rc.d/dhcpd
   21    mkdir -p $PKG/var/state/dhcp
   22    touch $PKG/var/state/dhcp/dhcpd.leases
   23    find $PKG/usr/man -type f -exec chmod 644 {} \;
   24    chown -R root:root $PKG
   25 }

Generated by cgit