wok-6.x annotate dhcp6/receipt @ rev 7059
Up mpd (0.15.13)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Nov 01 23:45:59 2010 +0000 (2010-11-01) |
parents | 27a452d91f44 |
children | 82e83ddb59bd |
rev | line source |
---|---|
pascal@3350 | 1 # SliTaz package receipt. |
pascal@3350 | 2 |
pascal@3350 | 3 PACKAGE="dhcp6" |
pascal@3350 | 4 VERSION="4.1.1b1" |
pascal@3350 | 5 CATEGORY="network" |
pascal@3350 | 6 SHORT_DESC="Dynamic Host Configuration Protocol server with ipv6 support." |
pascal@3350 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@3355 | 8 SOURCE="dhcp" |
pascal@3355 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@3350 | 10 WEB_SITE="http://www.isc.org/products/DHCP/" |
pascal@3355 | 11 WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL" |
pascal@3350 | 12 DEPENDS="libcrypto" |
pascal@3350 | 13 CONFIG_FILES="/etc/dhcpd.conf" |
pascal@3350 | 14 PROVIDE="dhcp" |
pascal@3350 | 15 |
pascal@3350 | 16 # Rules to configure and make the package. |
pascal@3350 | 17 compile_rules() |
pascal@3350 | 18 { |
pascal@3355 | 19 ln -s $src $PACKAGE-$VERSION 2> /dev/null |
pascal@3350 | 20 cd $src |
pascal@5734 | 21 grep -q MYEOL includes/dhctoken.h || |
pascal@5734 | 22 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ |
pascal@5734 | 23 includes/dhctoken.h |
pascal@5734 | 24 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c |
pascal@3350 | 25 for i in start-without-ipv6 ; do |
pascal@3350 | 26 [ -f $i.done ] && continue |
pascal@3350 | 27 patch -p1 < ../stuff/$i.u || return 1 |
pascal@3350 | 28 touch $i.done |
pascal@3350 | 29 done |
pascal@3350 | 30 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@3350 | 31 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \ |
pascal@3350 | 32 make && make DESTDIR=$PWD/_pkg install |
pascal@3350 | 33 } |
pascal@3350 | 34 |
pascal@3350 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3350 | 36 genpkg_rules() |
pascal@3350 | 37 { |
pascal@5234 | 38 mkdir -p $fs/usr/sbin $fs/etc/init.d |
pascal@3350 | 39 cp $_pkg/etc/dhcpd.conf $fs/etc |
pascal@3350 | 40 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin |
pascal@5236 | 41 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d |
pascal@3350 | 42 # Package all dhcp pkgs |
pascal@3355 | 43 for i in $(cd $WOK; ls -d dhcp6-*) |
pascal@3350 | 44 do |
pascal@3350 | 45 tazwok genpkg $i |
pascal@3350 | 46 done |
pascal@3350 | 47 } |
pascal@3350 | 48 |