]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/net/dhcp/dhcp
CHANGELOG 2006-01-15
[hdw-linux/hdw-linux.git] / packages / net / dhcp / dhcp
1 # hdw - linux dhcp package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 3.0.3
6 # [S] 3-1
7 # [D] dhcp-3.0.3.tar.gz ftp://ftp.isc.org/isc/dhcp/
8
9 pre_install()   {
10         cat >> site.conf <<-EOF
11 USERBINDIR = $prefix/bin
12 BINDIR = $prefix/sbin
13 CLIENTBINDIR = $prefix/sbin
14 LIBDIR = $prefix/lib
15 INCDIR = $prefix/include
16 ETC = $sysconfdir
17 ADMMANDIR = $prefix/man/man8
18 FFMANDIR = $prefix/man/man5
19 EOF
20                 }
21
22 confopt=""
23
24 post_install()  {
25         # dhclient-script needs to get symlinked to /sbin
26         ln -sfv ../usr/sbin/dhclient-script $root/sbin/dhclient-script
27         
28         # documentation and config files
29         rm -rf $docdir && mkdir -p $docdir
30         cp -v doc/[!j]* client/dhclient.conf server/dhcpd.conf $docdir
31                 }