wok-next view dhcp6/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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dhcp6"
4 VERSION="4.4.2"
5 CATEGORY="network"
6 SHORT_DESC="Dynamic Host Configuration Protocol with IPv6 support"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="https://www.isc.org/downloads/DHCP/"
11 SOURCE="dhcp"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://ftp.isc.org/isc/$SOURCE/$VERSION/$TARBALL"
15 BUILD_DEPENDS="perl"
16 SPLIT="$PACKAGE-client $PACKAGE-relay $PACKAGE-dev"
17 SIBLINGS="dhcp"
19 compile_rules()
20 {
21 grep -q MYEOL includes/dhctoken.h ||
22 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
23 includes/dhctoken.h
24 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \
25 server/ddns.c
27 ./configure $CONFIGURE_ARGS &&
28 make -j1 &&
29 make DESTDIR=$install install || return 1
31 mkdir -p $install/etc/init.d
32 cp $WOK/dhcp/stuff/dhcpd $install/etc/init.d
33 cp $src/client/scripts/linux $install/etc/dhclient-script
34 }
36 genpkg_rules()
37 {
38 case $PACKAGE in
39 dhcp6)
40 copy dhcpd.conf dhcpd
41 CONFIG_FILES="/etc/dhcpd.conf"
42 PROVIDE="dhcp"
43 ;;
44 dhcp6-client)
45 copy dhclient.conf dhclient-script dhclient omshell
46 CAT="network|ISC client"
47 DEPENDS=" "
48 CONFIG_FILES="/etc/dhclient.conf"
49 PROVIDE="dhcp-client"
50 ;;
51 dhcp6-relay)
52 copy dhcrelay
53 CAT="network|relay"
54 DEPENDS=" "
55 PROVIDE="dhcp-relay"
56 ;;
57 *-dev) copy @dev;;
58 esac
59 }