wok-next view dhcp/receipt @ rev 6102

gettext: breaks build_depends loop with gcc+gcj, glib & gtk+
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 03 10:24:10 2010 +0200 (2010-09-03)
parents 7534e9548281
children ec1e9eb6853f
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp"
4 VERSION="4.1.1b1"
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 CONFIG_FILES="/etc/dhcpd.conf"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 grep -q MYEOL includes/dhctoken.h ||
19 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
20 includes/dhctoken.h
21 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --disable-dhcpv6 \
24 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
25 make && make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/sbin $fs/etc/init.d
32 cp $_pkg/etc/dhcpd.conf $fs/etc
33 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
34 cp stuff/dhcpd $fs/etc/init.d
35 # Package all dhcp pkgs
36 for i in $(cd $WOK; ls -d dhcp-*)
37 do
38 tazwok genpkg $i
39 done
40 }