#!/bin/bash # dhcp # # Douglas Thrift # # $Id$ name=dhcp version=3.0.5 revision=0 categories=(base net) description='ISC Dynamic Host Configuration Protocol client and server' url='http://www.isc.org/products/DHCP/' depends=('base/glibc') sources=(`site_isc` dhcp.patch) # XXX: add dhcp user and stuff function build() { gnu_patch dhcp.patch || return $? cat >> site.conf <<-EOF INSTALL = install -v USERBINDIR = /sbin LIBDIR = /usr/lib INCDIR = /usr/include VARDB = /var/db USRMANDIR = /usr/share/man/man1 USRMANEXT = .1 LIBMANDIR = /usr/share/man/man3 LIBMANEXT = .3 FFMANDIR = /usr/share/man/man5 FFMANEXT = .5 ADMMANDIR = /usr/share/man/man8 ADMMANEXT = .8 MANCAT = man MANINSTALL = install -v -m 0644 EOF gnu_configure --copts "-D_PATH_DHCPD_DB='\"/var/db/dhcpd.leases\"' -D_PATH_DHCLIENT_DB='\"/var/db/dhclient.leases\"' -DPARANOIA -DEARLY_CHROOT -DEXTENDED_NEW_OPTION_INFO $CFLAGS" || return $? install -dv $package/etc || return $? install -v -m 644 client/dhclient.conf server/dhcpd.conf $package/etc }