wok-6.x annotate dhcp6/receipt @ rev 22071

updated uemacs (20120715 -> 20141208)
author Hans-G?nter Theisgen
date Fri Oct 25 16:15:35 2019 +0100 (2019-10-25)
parents e05d978e5ab8
children e3178e8508fc
rev   line source
pascal@3350 1 # SliTaz package receipt.
pascal@3350 2
pascal@3350 3 PACKAGE="dhcp6"
Hans-G?nter@20835 4 VERSION="4.4.1"
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@21770 9 WEB_SITE="http://www.isc.org/"
Hans-G?nter@20835 10
pascal@3355 11 SOURCE="dhcp"
pascal@3355 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@3355 13 WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL"
Hans-G?nter@20835 14
pascal@15579 15 CONFIG_FILES="/etc/dhcpd.conf"
pascal@15579 16 PROVIDE="dhcp"
pascal@3350 17 DEPENDS="libcrypto"
pascal@20567 18 BUILD_DEPENDS="perl file"
pascal@3350 19
pascal@3350 20 # Rules to configure and make the package.
pascal@3350 21 compile_rules()
pascal@3350 22 {
pascal@3355 23 ln -s $src $PACKAGE-$VERSION 2> /dev/null
pascal@3350 24 cd $src
pascal@5734 25 grep -q MYEOL includes/dhctoken.h ||
pascal@5734 26 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
pascal@5734 27 includes/dhctoken.h
pascal@5734 28 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
Hans-G?nter@20835 29 ./configure \
Hans-G?nter@20835 30 --prefix=/usr \
Hans-G?nter@20835 31 --infodir=/usr/share/info \
Hans-G?nter@20835 32 --sysconfdir=/etc \
Hans-G?nter@20835 33 --mandir=/usr/share/man \
Hans-G?nter@20835 34 $CONFIGURE_ARGS &&
Hans-G?nter@20835 35 make -j 1 &&
Hans-G?nter@20835 36 make DESTDIR=$DESTDIR install
pascal@3350 37 }
pascal@3350 38
pascal@3350 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3350 40 genpkg_rules()
pascal@3350 41 {
pascal@5234 42 mkdir -p $fs/usr/sbin $fs/etc/init.d
Hans-G?nter@20835 43 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf
pascal@15579 44 cp $install/usr/sbin/dhcpd $fs/usr/sbin
slaxemulator@9701 45 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
pascal@3350 46 }