wok annotate dhcp/receipt @ rev 6357
Up: dhcp, dhcp-client, dhcp-dev, dhcp-relay to 4.2.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Sep 20 22:57:42 2010 +0000 (2010-09-20) |
parents | 07408a482374 |
children | bb943d17f910 |
rev | line source |
---|---|
pascal@1338 | 1 # SliTaz package receipt. |
pascal@1338 | 2 |
pascal@1338 | 3 PACKAGE="dhcp" |
slaxemulator@6357 | 4 VERSION="4.2.0" |
pascal@1338 | 5 CATEGORY="network" |
pascal@1338 | 6 SHORT_DESC="Dynamic Host Configuration Protocol server." |
pascal@1338 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1338 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1338 | 9 WEB_SITE="http://www.isc.org/products/DHCP/" |
pascal@1338 | 10 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL" |
pascal@2488 | 11 DEPENDS="libcrypto" |
slaxemulator@6357 | 12 BUILD_DEPENDS="perl" |
pascal@1338 | 13 CONFIG_FILES="/etc/dhcpd.conf" |
pascal@1338 | 14 |
pascal@1338 | 15 # Rules to configure and make the package. |
pascal@1338 | 16 compile_rules() |
pascal@1338 | 17 { |
pascal@1338 | 18 cd $src |
pascal@5734 | 19 grep -q MYEOL includes/dhctoken.h || |
pascal@5734 | 20 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ |
pascal@5734 | 21 includes/dhctoken.h |
pascal@5734 | 22 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c |
pascal@1338 | 23 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@3350 | 24 --disable-dhcpv6 \ |
pascal@1338 | 25 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \ |
pascal@1338 | 26 make && make DESTDIR=$PWD/_pkg install |
pascal@1338 | 27 } |
pascal@1338 | 28 |
pascal@1338 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1338 | 30 genpkg_rules() |
pascal@1338 | 31 { |
pascal@5234 | 32 mkdir -p $fs/usr/sbin $fs/etc/init.d |
pascal@1338 | 33 cp $_pkg/etc/dhcpd.conf $fs/etc |
pascal@1338 | 34 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin |
pascal@5234 | 35 cp stuff/dhcpd $fs/etc/init.d |
pascal@1338 | 36 # Package all dhcp pkgs |
pascal@1338 | 37 for i in $(cd $WOK; ls -d dhcp-*) |
pascal@1338 | 38 do |
pascal@1338 | 39 tazwok genpkg $i |
pascal@1338 | 40 done |
pascal@1338 | 41 } |
pascal@1338 | 42 |