wok annotate dhcp/receipt @ rev 23515
busybox: musl & diet may fail (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 06 12:11:08 2020 +0200 (2020-04-06) |
parents | f1e92a9bbf08 |
children | bfabe25c21ff |
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@1338 | 19 # Rules to configure and make the package. |
pascal@1338 | 20 compile_rules() |
pascal@1338 | 21 { |
pascal@5734 | 22 grep -q MYEOL includes/dhctoken.h || |
pascal@5734 | 23 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ |
pascal@5734 | 24 includes/dhctoken.h |
Hans-G?nter@22733 | 25 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \ |
Hans-G?nter@22733 | 26 server/ddns.c |
Hans-G?nter@20825 | 27 |
Hans-G?nter@22733 | 28 ./configure \ |
Hans-G?nter@22733 | 29 --prefix=/usr \ |
Hans-G?nter@22733 | 30 --infodir=/usr/share/info \ |
Hans-G?nter@22733 | 31 --disable-dhcpv6 \ |
Hans-G?nter@22733 | 32 --sysconfdir=/etc \ |
Hans-G?nter@22733 | 33 --mandir=/usr/share/man \ |
Hans-G?nter@20825 | 34 $CONFIGURE_ARGS && |
pascal@20832 | 35 make -j 1 && |
pascal@20832 | 36 make -j 1 DESTDIR=$DESTDIR install |
pascal@1338 | 37 } |
pascal@1338 | 38 |
pascal@1338 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1338 | 40 genpkg_rules() |
pascal@1338 | 41 { |
Hans-G?nter@22733 | 42 mkdir -p $fs/usr/sbin |
Hans-G?nter@22733 | 43 mkdir -p $fs/etc/init.d |
Hans-G?nter@22733 | 44 |
Hans-G?nter@22733 | 45 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf |
Hans-G?nter@22733 | 46 cp $install/usr/sbin/dhcpd $fs/usr/sbin |
Hans-G?nter@22733 | 47 cp $stuff/dhcpd $fs/etc/init.d |
pascal@1338 | 48 } |