wok-current view dhcp/receipt @ rev 20832

dhcp: race condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 19 19:00:06 2019 +0100 (2019-02-19)
parents a1d1bad5f192
children e05d978e5ab8
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/products/DHCP/"
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 }