wok-stable view dhcp/receipt @ rev 6959

slitaz-i18n: remove depends to avoid big depends loop
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Oct 26 12:57:37 2010 +0200 (2010-10-26)
parents 07408a482374
children bb943d17f910
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp"
4 VERSION="4.2.0"
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 DEPENDS="libcrypto"
12 BUILD_DEPENDS="perl"
13 CONFIG_FILES="/etc/dhcpd.conf"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 grep -q MYEOL includes/dhctoken.h ||
20 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
21 includes/dhctoken.h
22 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --disable-dhcpv6 \
25 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
26 make && make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/sbin $fs/etc/init.d
33 cp $_pkg/etc/dhcpd.conf $fs/etc
34 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
35 cp stuff/dhcpd $fs/etc/init.d
36 # Package all dhcp pkgs
37 for i in $(cd $WOK; ls -d dhcp-*)
38 do
39 tazwok genpkg $i
40 done
41 }