wok view dhcp/receipt @ rev 1338

Add dhcp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 31 12:20:54 2008 +0000 (2008-08-31)
parents
children 0fe91a193391
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp"
4 VERSION="4.1.0a1"
5 CATEGORY="network"
6 SHORT_DESC="Dynamic Host Configuration Protocol server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.isc.org/products/DHCP/"
10 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL"
11 CONFIG_FILES="/etc/dhcpd.conf"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure --prefix=/usr --infodir=/usr/share/info \
18 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
19 make && make DESTDIR=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/sbin $fs/etc
26 cp $_pkg/etc/dhcpd.conf $fs/etc
27 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
28 # Package all dhcp pkgs
29 for i in $(cd $WOK; ls -d dhcp-*)
30 do
31 tazwok genpkg $i
32 done
33 }