wok annotate dhcp6/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (21 months ago) |
parents | fb82383c591b |
children |
rev | line source |
---|---|
pascal@3350 | 1 # SliTaz package receipt. |
pascal@3350 | 2 |
pascal@3350 | 3 PACKAGE="dhcp6" |
pascal@24794 | 4 VERSION="4.4.3" |
pascal@3350 | 5 CATEGORY="network" |
Hans-G?nter@22733 | 6 SHORT_DESC="Dynamic Host Configuration Protocol server with IPv6 support." |
pascal@3350 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="ISC" |
Hans-G?nter@22733 | 9 WEB_SITE="https://www.isc.org/dhcp/" |
Hans-G?nter@20835 | 10 |
pascal@3355 | 11 SOURCE="dhcp" |
pascal@3355 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@25515 | 13 WGET_URL="https://ftp.isc.org/isc/dhcp/$VERSION/$TARBALL" |
Hans-G?nter@20835 | 14 |
pascal@15579 | 15 PROVIDE="dhcp" |
pascal@3350 | 16 DEPENDS="libcrypto" |
Hans-G?nter@22733 | 17 BUILD_DEPENDS="file perl" |
Hans-G?nter@22733 | 18 |
Hans-G?nter@22733 | 19 CONFIG_FILES="/etc/dhcpd.conf" |
pascal@3350 | 20 |
pascal@24439 | 21 # What is the latest version available today? |
pascal@24439 | 22 current_version() |
pascal@24439 | 23 { |
pascal@24439 | 24 wget -O - http://ftp.isc.org/isc/dhcp 2>/dev/null | \ |
pascal@24439 | 25 sed '/DIR/!d;/href="[0-9]/!d;s|.*href="||;s|/.*||;/\./!d' | sort -Vr | sed q |
pascal@24439 | 26 } |
pascal@24439 | 27 |
pascal@3350 | 28 # Rules to configure and make the package. |
pascal@3350 | 29 compile_rules() |
pascal@3350 | 30 { |
pascal@3355 | 31 ln -s $src $PACKAGE-$VERSION 2> /dev/null |
pascal@3350 | 32 cd $src |
pascal@5734 | 33 grep -q MYEOL includes/dhctoken.h || |
pascal@5734 | 34 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ |
pascal@5734 | 35 includes/dhctoken.h |
Hans-G?nter@22733 | 36 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \ |
Hans-G?nter@22733 | 37 server/ddns.c |
Hans-G?nter@22733 | 38 |
Hans-G?nter@22733 | 39 ./configure \ |
Hans-G?nter@22733 | 40 --prefix=/usr \ |
Hans-G?nter@22733 | 41 --infodir=/usr/share/info \ |
Hans-G?nter@22733 | 42 --sysconfdir=/etc \ |
Hans-G?nter@22733 | 43 --mandir=/usr/share/man \ |
Hans-G?nter@20835 | 44 $CONFIGURE_ARGS && |
Hans-G?nter@20835 | 45 make -j 1 && |
Hans-G?nter@20835 | 46 make DESTDIR=$DESTDIR install |
pascal@3350 | 47 } |
pascal@3350 | 48 |
pascal@3350 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3350 | 50 genpkg_rules() |
pascal@3350 | 51 { |
Hans-G?nter@22733 | 52 mkdir -p $fs/usr/sbin |
Hans-G?nter@22733 | 53 mkdir -p $fs/etc/init.d |
Hans-G?nter@22733 | 54 |
Hans-G?nter@22733 | 55 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf |
Hans-G?nter@22733 | 56 cp $install/usr/sbin/dhcpd $fs/usr/sbin |
Hans-G?nter@22733 | 57 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d |
pascal@3350 | 58 } |