wok annotate dhcp/receipt @ rev 25154
updated proxychains-ng (4.14 -> 4.16)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 30 15:28:13 2022 +0100 (2022-06-30) |
parents | bd7510903310 |
children | fb82383c591b |
rev | line source |
---|---|
pascal@1338 | 1 # SliTaz package receipt. |
pascal@1338 | 2 |
pascal@1338 | 3 PACKAGE="dhcp" |
pascal@24794 | 4 VERSION="4.4.3" |
pascal@1338 | 5 CATEGORY="network" |
pascal@1338 | 6 SHORT_DESC="Dynamic Host Configuration Protocol server." |
pascal@1338 | 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@20825 | 10 |
pascal@1338 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25045 | 12 WGET_URL="https://fossies.org/linux/misc/$TARBALL" |
pascal@14772 | 13 |
pascal@2488 | 14 DEPENDS="libcrypto" |
Hans-G?nter@22733 | 15 BUILD_DEPENDS="file perl" |
Hans-G?nter@22733 | 16 |
Hans-G?nter@22733 | 17 CONFIG_FILES="/etc/dhcpd.conf" |
pascal@1338 | 18 |
pascal@24439 | 19 # What is the latest version available today? |
pascal@24439 | 20 current_version() |
pascal@24439 | 21 { |
pascal@24439 | 22 wget -O - http://ftp.isc.org/isc/dhcp 2>/dev/null | \ |
pascal@24439 | 23 sed '/DIR/!d;/href="[0-9]/!d;s|.*href="||;s|/.*||;/\./!d' | sort -Vr | sed q |
pascal@24439 | 24 } |
pascal@24439 | 25 |
pascal@1338 | 26 # Rules to configure and make the package. |
pascal@1338 | 27 compile_rules() |
pascal@1338 | 28 { |
pascal@5734 | 29 grep -q MYEOL includes/dhctoken.h || |
pascal@5734 | 30 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ |
pascal@5734 | 31 includes/dhctoken.h |
Hans-G?nter@22733 | 32 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \ |
Hans-G?nter@22733 | 33 server/ddns.c |
Hans-G?nter@20825 | 34 |
Hans-G?nter@22733 | 35 ./configure \ |
Hans-G?nter@22733 | 36 --prefix=/usr \ |
Hans-G?nter@22733 | 37 --infodir=/usr/share/info \ |
Hans-G?nter@22733 | 38 --disable-dhcpv6 \ |
Hans-G?nter@22733 | 39 --sysconfdir=/etc \ |
Hans-G?nter@22733 | 40 --mandir=/usr/share/man \ |
Hans-G?nter@20825 | 41 $CONFIGURE_ARGS && |
pascal@20832 | 42 make -j 1 && |
pascal@20832 | 43 make -j 1 DESTDIR=$DESTDIR install |
pascal@1338 | 44 } |
pascal@1338 | 45 |
pascal@1338 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1338 | 47 genpkg_rules() |
pascal@1338 | 48 { |
Hans-G?nter@22733 | 49 mkdir -p $fs/usr/sbin |
Hans-G?nter@22733 | 50 mkdir -p $fs/etc/init.d |
Hans-G?nter@22733 | 51 |
Hans-G?nter@22733 | 52 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf |
Hans-G?nter@22733 | 53 cp $install/usr/sbin/dhcpd $fs/usr/sbin |
Hans-G?nter@22733 | 54 cp $stuff/dhcpd $fs/etc/init.d |
pascal@1338 | 55 } |