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