wok-next annotate dhcp/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 2b56c8733b13 |
children |
rev | line source |
---|---|
al@19759 | 1 # SliTaz package receipt v2. |
pascal@1338 | 2 |
pascal@1338 | 3 PACKAGE="dhcp" |
Hans-G?nter@21589 | 4 VERSION="4.4.2" |
pascal@1338 | 5 CATEGORY="network" |
al@19759 | 6 SHORT_DESC="Dynamic Host Configuration Protocol" |
pascal@1338 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="ISC" |
al@19759 | 9 WEB_SITE="https://www.isc.org/downloads/DHCP/" |
al@19759 | 10 |
pascal@1338 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21589 | 12 WGET_URL="https://ftp.isc.org/isc/$PACKAGE/$VERSION/$TARBALL" |
pascal@14772 | 13 |
slaxemulator@6357 | 14 BUILD_DEPENDS="perl" |
al@21020 | 15 SPLIT="$PACKAGE-client $PACKAGE-relay $PACKAGE-dev" |
al@19759 | 16 SIBLINGS="dhcp6" |
pascal@1338 | 17 |
Hans-G?nter@21589 | 18 compile_rules() |
Hans-G?nter@21589 | 19 { |
pascal@5734 | 20 grep -q MYEOL includes/dhctoken.h || |
pascal@5734 | 21 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ |
pascal@5734 | 22 includes/dhctoken.h |
Hans-G?nter@21589 | 23 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \ |
Hans-G?nter@21589 | 24 server/ddns.c |
al@19759 | 25 |
Hans-G?nter@21589 | 26 ./configure \ |
Hans-G?nter@21589 | 27 --disable-dhcpv6 \ |
al@19759 | 28 $CONFIGURE_ARGS && |
Hans-G?nter@21591 | 29 make -j1 && |
al@21020 | 30 make DESTDIR=$install install || return 1 |
al@19759 | 31 |
al@19759 | 32 mkdir -p $install/etc/init.d |
Hans-G?nter@21589 | 33 cp $stuff/dhcpd $install/etc/init.d |
Hans-G?nter@21589 | 34 cp $src/client/scripts/linux $install/etc/dhclient-script |
pascal@1338 | 35 } |
pascal@1338 | 36 |
Hans-G?nter@21589 | 37 genpkg_rules() |
Hans-G?nter@21589 | 38 { |
al@19759 | 39 case $PACKAGE in |
al@19759 | 40 dhcp) |
al@19759 | 41 copy dhcpd.conf dhcpd |
al@19759 | 42 CONFIG_FILES="/etc/dhcpd.conf" |
al@19759 | 43 ;; |
al@19759 | 44 dhcp-client) |
al@19759 | 45 copy dhclient.conf dhclient-script dhclient omshell |
al@19759 | 46 CAT="network|ISC client" |
al@19759 | 47 DEPENDS=" " |
al@19759 | 48 CONFIG_FILES="/etc/dhclient.conf" |
al@19759 | 49 ;; |
al@19759 | 50 dhcp-relay) |
al@19759 | 51 copy dhcrelay |
al@19759 | 52 CAT="network|relay" |
al@19759 | 53 DEPENDS=" " |
al@19759 | 54 ;; |
al@19759 | 55 *-dev) copy @dev;; |
al@19759 | 56 esac |
pascal@1338 | 57 } |