wok-next annotate dhcp6/receipt @ rev 21290

updated gnustep-back (0.25.1 -> 0.27.0)
author Hans-G?nter Theisgen
date Sun Dec 08 12:42:33 2019 +0100 (2019-12-08)
parents 757d032c55c7
children 2b56c8733b13
rev   line source
al@19759 1 # SliTaz package receipt v2.
pascal@3350 2
pascal@3350 3 PACKAGE="dhcp6"
slaxemulator@11096 4 VERSION="4.2.2"
pascal@3350 5 CATEGORY="network"
al@19759 6 SHORT_DESC="Dynamic Host Configuration Protocol with IPv6 support"
pascal@3350 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="ISC"
al@19759 9 WEB_SITE="https://www.isc.org/downloads/DHCP/"
pascal@15579 10
al@19759 11 TARBALL="dhcp-$VERSION.tar.gz"
al@19759 12 WGET_URL="https://ftp.isc.org/isc/dhcp/$TARBALL"
al@19759 13
slaxemulator@7301 14 BUILD_DEPENDS="perl"
al@21020 15 SPLIT="$PACKAGE-client $PACKAGE-relay $PACKAGE-dev"
al@19759 16 SIBLINGS="dhcp"
pascal@3350 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@20534 24 ./configure $CONFIGURE_ARGS &&
al@20534 25 make &&
al@21020 26 make DESTDIR=$install install || return 1
al@19759 27
al@19759 28 mkdir -p $install/etc/init.d
al@20534 29 cp $WOK/dhcp/stuff/dhcpd $install/etc/init.d
al@19759 30 cp $src/client/scripts/linux $install/etc/dhclient-script
pascal@3350 31 }
pascal@3350 32
al@20534 33 genpkg_rules() {
al@19759 34 case $PACKAGE in
al@19759 35 dhcp6)
al@19759 36 copy dhcpd.conf dhcpd
al@19759 37 CONFIG_FILES="/etc/dhcpd.conf"
al@19759 38 PROVIDE="dhcp"
al@19759 39 ;;
al@19759 40 dhcp6-client)
al@19759 41 copy dhclient.conf dhclient-script dhclient omshell
al@19759 42 CAT="network|ISC client"
al@19759 43 DEPENDS=" "
al@19759 44 CONFIG_FILES="/etc/dhclient.conf"
al@19759 45 PROVIDE="dhcp-client"
al@19759 46 ;;
al@19759 47 dhcp6-relay)
al@19759 48 copy dhcrelay
al@19759 49 CAT="network|relay"
al@19759 50 DEPENDS=" "
al@19759 51 PROVIDE="dhcp-relay"
al@19759 52 ;;
al@19759 53 *-dev) copy @dev;;
al@19759 54 esac
pascal@3350 55 }