wok annotate dhcp/receipt @ rev 24630
updated gsoap and gsoap-dev (2.8.98 -> 2.8.119)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 08 09:50:11 2022 +0100 (2022-03-08) |
parents | e3178e8508fc |
children | 25f321eee88e |
rev | line source |
---|---|
pascal@1338 | 1 # SliTaz package receipt. |
pascal@1338 | 2 |
pascal@1338 | 3 PACKAGE="dhcp" |
Hans-G?nter@22733 | 4 VERSION="4.4.2" |
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" |
Hans-G?nter@20825 | 12 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$VERSION/$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 } |