wok view dhcp6/receipt @ rev 25174

updated python-flask (1.1.2 -> 1.1.4)
author Hans-G?nter Theisgen
date Fri Jul 01 17:16:59 2022 +0100 (2022-07-01)
parents 94dd3813f40d
children fb82383c591b
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp6"
4 VERSION="4.4.3"
5 CATEGORY="network"
6 SHORT_DESC="Dynamic Host Configuration Protocol server with IPv6 support."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="https://www.isc.org/dhcp/"
11 SOURCE="dhcp"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://fossies.org/linux/misc/$TARBALL"
15 PROVIDE="dhcp"
16 DEPENDS="libcrypto"
17 BUILD_DEPENDS="file perl"
19 CONFIG_FILES="/etc/dhcpd.conf"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - http://ftp.isc.org/isc/dhcp 2>/dev/null | \
25 sed '/DIR/!d;/href="[0-9]/!d;s|.*href="||;s|/.*||;/\./!d' | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ln -s $src $PACKAGE-$VERSION 2> /dev/null
32 cd $src
33 grep -q MYEOL includes/dhctoken.h ||
34 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
35 includes/dhctoken.h
36 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \
37 server/ddns.c
39 ./configure \
40 --prefix=/usr \
41 --infodir=/usr/share/info \
42 --sysconfdir=/etc \
43 --mandir=/usr/share/man \
44 $CONFIGURE_ARGS &&
45 make -j 1 &&
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/sbin
53 mkdir -p $fs/etc/init.d
55 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf
56 cp $install/usr/sbin/dhcpd $fs/usr/sbin
57 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
58 }