wok-next annotate dhcp/receipt @ rev 21131
Update fdupes (1.6.1), jdupes (1.11.1), paper-icon-theme (1.5.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 19 14:59:09 2019 +0200 (2019-01-19) |
parents | 757d032c55c7 |
children | 2b56c8733b13 |
rev | line source |
---|---|
al@19759 | 1 # SliTaz package receipt v2. |
pascal@1338 | 2 |
pascal@1338 | 3 PACKAGE="dhcp" |
slaxemulator@11095 | 4 VERSION="4.2.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" |
al@19759 | 12 WGET_URL="https://ftp.isc.org/isc/dhcp/$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 |
al@20534 | 18 compile_rules() { |
pascal@5734 | 19 grep -q MYEOL includes/dhctoken.h || |
pascal@5734 | 20 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ |
pascal@5734 | 21 includes/dhctoken.h |
pascal@5734 | 22 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c |
al@19759 | 23 |
al@19759 | 24 ./configure \ |
al@19759 | 25 --disable-dhcpv6 \ |
al@19759 | 26 $CONFIGURE_ARGS && |
al@20534 | 27 make && |
al@21020 | 28 make DESTDIR=$install install || return 1 |
al@19759 | 29 |
al@19759 | 30 mkdir -p $install/etc/init.d |
al@19759 | 31 cp $stuff/dhcpd $install/etc/init.d |
al@19759 | 32 cp $src/client/scripts/linux $install/etc/dhclient-script |
pascal@1338 | 33 } |
pascal@1338 | 34 |
al@20534 | 35 genpkg_rules() { |
al@19759 | 36 case $PACKAGE in |
al@19759 | 37 dhcp) |
al@19759 | 38 copy dhcpd.conf dhcpd |
al@19759 | 39 CONFIG_FILES="/etc/dhcpd.conf" |
al@19759 | 40 ;; |
al@19759 | 41 dhcp-client) |
al@19759 | 42 copy dhclient.conf dhclient-script dhclient omshell |
al@19759 | 43 CAT="network|ISC client" |
al@19759 | 44 DEPENDS=" " |
al@19759 | 45 CONFIG_FILES="/etc/dhclient.conf" |
al@19759 | 46 ;; |
al@19759 | 47 dhcp-relay) |
al@19759 | 48 copy dhcrelay |
al@19759 | 49 CAT="network|relay" |
al@19759 | 50 DEPENDS=" " |
al@19759 | 51 ;; |
al@19759 | 52 *-dev) copy @dev;; |
al@19759 | 53 esac |
pascal@1338 | 54 } |