wok-next view dhcp/receipt @ rev 20220

Up yp-tools (4.2.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 05 13:31:36 2017 +0100 (2017-11-05)
parents eb8067417980
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dhcp"
4 VERSION="4.2.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/dhcp/$TARBALL"
14 BUILD_DEPENDS="perl"
15 SPLIT="dhcp-client dhcp-relay dhcp-dev"
16 SIBLINGS="dhcp6"
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 --disable-dhcpv6 \
28 --sysconfdir=/etc \
29 $CONFIGURE_ARGS &&
30 make && make DESTDIR=$DESTDIR install
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 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 case $PACKAGE in
41 dhcp)
42 copy dhcpd.conf dhcpd
43 CONFIG_FILES="/etc/dhcpd.conf"
44 ;;
45 dhcp-client)
46 copy dhclient.conf dhclient-script dhclient omshell
47 CAT="network|ISC client"
48 DEPENDS=" "
49 CONFIG_FILES="/etc/dhclient.conf"
50 ;;
51 dhcp-relay)
52 copy dhcrelay
53 CAT="network|relay"
54 DEPENDS=" "
55 ;;
56 *-dev) copy @dev;;
57 esac
58 }