wok-next annotate dhcp6/receipt @ rev 20035

geos: tiny edits
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 22 19:26:43 2017 +0300 (2017-10-22)
parents eb8067417980
children 757d032c55c7
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@19759 15 SPLIT="dhcp6-client dhcp6-relay dhcp6-dev"
al@19759 16 SIBLINGS="dhcp"
pascal@3350 17
pascal@3350 18 # Rules to configure and make the package.
pascal@3350 19 compile_rules()
pascal@3350 20 {
pascal@5734 21 grep -q MYEOL includes/dhctoken.h ||
pascal@5734 22 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
pascal@5734 23 includes/dhctoken.h
pascal@5734 24 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
al@19759 25
al@19759 26 ./configure \
al@19759 27 --sysconfdir=/etc \
al@19759 28 $CONFIGURE_ARGS &&
pascal@15579 29 make && make DESTDIR=$DESTDIR install
al@19759 30
al@19759 31 mkdir -p $install/etc/init.d
al@19759 32 cp $WOK/dhcp/stuff/dhcpd $install/etc/init.d
al@19759 33 cp $src/client/scripts/linux $install/etc/dhclient-script
pascal@3350 34 }
pascal@3350 35
pascal@3350 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3350 37 genpkg_rules()
pascal@3350 38 {
al@19759 39 case $PACKAGE in
al@19759 40 dhcp6)
al@19759 41 copy dhcpd.conf dhcpd
al@19759 42 CONFIG_FILES="/etc/dhcpd.conf"
al@19759 43 PROVIDE="dhcp"
al@19759 44 ;;
al@19759 45 dhcp6-client)
al@19759 46 copy dhclient.conf dhclient-script dhclient omshell
al@19759 47 CAT="network|ISC client"
al@19759 48 DEPENDS=" "
al@19759 49 CONFIG_FILES="/etc/dhclient.conf"
al@19759 50 PROVIDE="dhcp-client"
al@19759 51 ;;
al@19759 52 dhcp6-relay)
al@19759 53 copy dhcrelay
al@19759 54 CAT="network|relay"
al@19759 55 DEPENDS=" "
al@19759 56 PROVIDE="dhcp-relay"
al@19759 57 ;;
al@19759 58 *-dev) copy @dev;;
al@19759 59 esac
pascal@3350 60 }
pascal@3350 61