wok-next view dhcp6/receipt @ rev 20451

xcb-util* are obsolete -> xorg-xcb-util* (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 14:26:56 2018 +0200 (2018-02-28)
parents eb8067417980
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dhcp6"
4 VERSION="4.2.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 TARBALL="dhcp-$VERSION.tar.gz"
12 WGET_URL="https://ftp.isc.org/isc/dhcp/$TARBALL"
14 BUILD_DEPENDS="perl"
15 SPLIT="dhcp6-client dhcp6-relay dhcp6-dev"
16 SIBLINGS="dhcp"
18 # Rules to configure and make the package.
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/' server/ddns.c
26 ./configure \
27 --sysconfdir=/etc \
28 $CONFIGURE_ARGS &&
29 make && make DESTDIR=$DESTDIR install
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 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 case $PACKAGE in
40 dhcp6)
41 copy dhcpd.conf dhcpd
42 CONFIG_FILES="/etc/dhcpd.conf"
43 PROVIDE="dhcp"
44 ;;
45 dhcp6-client)
46 copy dhclient.conf dhclient-script dhclient omshell
47 CAT="network|ISC client"
48 DEPENDS=" "
49 CONFIG_FILES="/etc/dhclient.conf"
50 PROVIDE="dhcp-client"
51 ;;
52 dhcp6-relay)
53 copy dhcrelay
54 CAT="network|relay"
55 DEPENDS=" "
56 PROVIDE="dhcp-relay"
57 ;;
58 *-dev) copy @dev;;
59 esac
60 }