wok view dhcp/receipt @ rev 21712

get-LibreOffice: fix menu entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 09 10:58:25 2019 +0200 (2019-06-09)
parents b50d9fb56587
children f1e92a9bbf08
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/downloads/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 }