wok-next view dhcp/receipt @ rev 20806
I. node update: security -> https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/ 9.5.0 -> 9.11.2 II. add checksum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 08:26:54 2018 +0000 (2018-06-13) |
parents | 0ff6bd677938 |
children | d5aab818505e |
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 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=$DESTDIR 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 }