wok-next view dhcp/receipt @ rev 21447
updated seamonkey (2.7.2 -> 2.53.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 05 17:33:00 2020 +0100 (2020-05-05) |
parents | 757d032c55c7 |
children | 2b56c8733b13 |
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="$PACKAGE-client $PACKAGE-relay $PACKAGE-dev"
16 SIBLINGS="dhcp6"
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 \
25 --disable-dhcpv6 \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$install install || return 1
30 mkdir -p $install/etc/init.d
31 cp $stuff/dhcpd $install/etc/init.d
32 cp $src/client/scripts/linux $install/etc/dhclient-script
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 dhcp)
38 copy dhcpd.conf dhcpd
39 CONFIG_FILES="/etc/dhcpd.conf"
40 ;;
41 dhcp-client)
42 copy dhclient.conf dhclient-script dhclient omshell
43 CAT="network|ISC client"
44 DEPENDS=" "
45 CONFIG_FILES="/etc/dhclient.conf"
46 ;;
47 dhcp-relay)
48 copy dhcrelay
49 CAT="network|relay"
50 DEPENDS=" "
51 ;;
52 *-dev) copy @dev;;
53 esac
54 }