wok view dhcp/receipt @ rev 23843

gettext: add ncurses to depends
author Richard Dunbar <mojo@slitaz.org>
date Sat Jun 13 02:21:20 2020 -0400 (2020-06-13)
parents f1e92a9bbf08
children bfabe25c21ff
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 grep -q MYEOL includes/dhctoken.h ||
23 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
24 includes/dhctoken.h
25 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \
26 server/ddns.c
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --disable-dhcpv6 \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make -j 1 DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/sbin
43 mkdir -p $fs/etc/init.d
45 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf
46 cp $install/usr/sbin/dhcpd $fs/usr/sbin
47 cp $stuff/dhcpd $fs/etc/init.d
48 }