wok view dhcp/receipt @ rev 24924
Add as & asxxxx
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 13 10:27:34 2022 +0000 (2022-04-13) |
parents | bfabe25c21ff |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp"
4 VERSION="4.4.3"
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 }