wok-current annotate dhcp6/receipt @ rev 17022

busybox/fatattr: fix arm arch (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 14 09:30:28 2014 +0200 (2014-08-14)
parents 7008b10a1996
children 291369229046
rev   line source
pascal@3350 1 # SliTaz package receipt.
pascal@3350 2
pascal@3350 3 PACKAGE="dhcp6"
slaxemulator@11096 4 VERSION="4.2.2"
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@15579 8 LICENSE="ISC"
pascal@3355 9 SOURCE="dhcp"
pascal@3355 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@3350 11 WEB_SITE="http://www.isc.org/products/DHCP/"
pascal@3355 12 WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL"
pascal@15579 13 CONFIG_FILES="/etc/dhcpd.conf"
pascal@15579 14 PROVIDE="dhcp"
pascal@15579 15
pascal@3350 16 DEPENDS="libcrypto"
slaxemulator@7301 17 BUILD_DEPENDS="perl"
pascal@3350 18
pascal@3350 19 # Rules to configure and make the package.
pascal@3350 20 compile_rules()
pascal@3350 21 {
pascal@3355 22 ln -s $src $PACKAGE-$VERSION 2> /dev/null
pascal@3350 23 cd $src
pascal@5734 24 grep -q MYEOL includes/dhctoken.h ||
pascal@5734 25 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
pascal@5734 26 includes/dhctoken.h
pascal@5734 27 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
pascal@3350 28 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@3350 29 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
pascal@15579 30 make && make DESTDIR=$DESTDIR install
pascal@3350 31 }
pascal@3350 32
pascal@3350 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3350 34 genpkg_rules()
pascal@3350 35 {
pascal@5234 36 mkdir -p $fs/usr/sbin $fs/etc/init.d
pascal@15579 37 cp $install/etc/dhcpd.conf $fs/etc
pascal@15579 38 cp $install/usr/sbin/dhcpd $fs/usr/sbin
slaxemulator@9701 39 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
pascal@3350 40 }
pascal@3350 41