wok-next annotate dhcp6/receipt @ rev 8838

Add gcompris (9.5) - For my sun :-)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Feb 24 18:33:25 2011 +0100 (2011-02-24)
parents 82e83ddb59bd
children 98fc9beddbba
rev   line source
pascal@3350 1 # SliTaz package receipt.
pascal@3350 2
pascal@3350 3 PACKAGE="dhcp6"
slaxemulator@7601 4 VERSION="4.2.0-P2"
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"
slaxemulator@7301 13 BUILD_DEPENDS="perl"
pascal@3350 14 CONFIG_FILES="/etc/dhcpd.conf"
pascal@3350 15 PROVIDE="dhcp"
pascal@3350 16
pascal@3350 17 # Rules to configure and make the package.
pascal@3350 18 compile_rules()
pascal@3350 19 {
pascal@3355 20 ln -s $src $PACKAGE-$VERSION 2> /dev/null
pascal@3350 21 cd $src
pascal@5734 22 grep -q MYEOL includes/dhctoken.h ||
pascal@5734 23 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
pascal@5734 24 includes/dhctoken.h
pascal@5734 25 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
pascal@3350 26 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@3350 27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
pascal@3350 28 make && make DESTDIR=$PWD/_pkg install
pascal@3350 29 }
pascal@3350 30
pascal@3350 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3350 32 genpkg_rules()
pascal@3350 33 {
pascal@5234 34 mkdir -p $fs/usr/sbin $fs/etc/init.d
pascal@3350 35 cp $_pkg/etc/dhcpd.conf $fs/etc
pascal@3350 36 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
pascal@5236 37 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
pascal@3350 38 }
pascal@3350 39