wok-next view dhcp6/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 0ff6bd677938
children d5aab818505e
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 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=$DESTDIR 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 }