wok view dhcp/receipt @ rev 22012

updated tcllib (1.12 -> 1.19)
author Hans-G?nter Theisgen
date Sat Oct 19 15:47:58 2019 +0100 (2019-10-19)
parents e05d978e5ab8
children e3178e8508fc
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp"
4 VERSION="4.4.1"
5 CATEGORY="network"
6 SHORT_DESC="Dynamic Host Configuration Protocol server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="http://www.isc.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$VERSION/$TARBALL"
13 CONFIG_FILES="/etc/dhcpd.conf"
15 DEPENDS="libcrypto"
16 BUILD_DEPENDS="perl file"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 grep -q MYEOL includes/dhctoken.h ||
22 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
23 includes/dhctoken.h
24 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
26 ./configure \
27 --prefix=/usr \
28 --infodir=/usr/share/info \
29 --disable-dhcpv6 \
30 --sysconfdir=/etc \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make -j 1 DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/sbin $fs/etc/init.d
41 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf
42 cp $install/usr/sbin/dhcpd $fs/usr/sbin
43 cp $stuff/dhcpd $fs/etc/init.d
44 }