wok-6.x view dhcp/receipt @ rev 24604
updated glm (0.9.9.7 -> 0.9.9.8)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 02 16:22:49 2022 +0100 (2022-03-02) |
parents | e3178e8508fc |
children | 25f321eee88e |
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp"
4 VERSION="4.4.2"
5 CATEGORY="network"
6 SHORT_DESC="Dynamic Host Configuration Protocol server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="https://www.isc.org/dhcp/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$VERSION/$TARBALL"
14 DEPENDS="libcrypto"
15 BUILD_DEPENDS="file perl"
17 CONFIG_FILES="/etc/dhcpd.conf"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - http://ftp.isc.org/isc/dhcp 2>/dev/null | \
23 sed '/DIR/!d;/href="[0-9]/!d;s|.*href="||;s|/.*||;/\./!d' | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 grep -q MYEOL includes/dhctoken.h ||
30 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
31 includes/dhctoken.h
32 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \
33 server/ddns.c
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --disable-dhcpv6 \
39 --sysconfdir=/etc \
40 --mandir=/usr/share/man \
41 $CONFIGURE_ARGS &&
42 make -j 1 &&
43 make -j 1 DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/sbin
50 mkdir -p $fs/etc/init.d
52 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf
53 cp $install/usr/sbin/dhcpd $fs/usr/sbin
54 cp $stuff/dhcpd $fs/etc/init.d
55 }