wok-next view dhcp6/receipt @ rev 21463

stardict: added mysql dependencies
author Hans-G?nter Theisgen
date Tue May 12 08:14:16 2020 +0100 (2020-05-12)
parents 757d032c55c7
children 2b56c8733b13
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="$PACKAGE-client $PACKAGE-relay $PACKAGE-dev"
16 SIBLINGS="dhcp"
18 compile_rules() {
19 grep -q MYEOL includes/dhctoken.h ||
20 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
21 includes/dhctoken.h
22 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
24 ./configure $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$install install || return 1
28 mkdir -p $install/etc/init.d
29 cp $WOK/dhcp/stuff/dhcpd $install/etc/init.d
30 cp $src/client/scripts/linux $install/etc/dhclient-script
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 dhcp6)
36 copy dhcpd.conf dhcpd
37 CONFIG_FILES="/etc/dhcpd.conf"
38 PROVIDE="dhcp"
39 ;;
40 dhcp6-client)
41 copy dhclient.conf dhclient-script dhclient omshell
42 CAT="network|ISC client"
43 DEPENDS=" "
44 CONFIG_FILES="/etc/dhclient.conf"
45 PROVIDE="dhcp-client"
46 ;;
47 dhcp6-relay)
48 copy dhcrelay
49 CAT="network|relay"
50 DEPENDS=" "
51 PROVIDE="dhcp-relay"
52 ;;
53 *-dev) copy @dev;;
54 esac
55 }