wok annotate dhcp/receipt @ rev 20567

clisp, dhcp: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 12 23:58:13 2018 +0100 (2018-12-12)
parents eb8067417980
children a1d1bad5f192
rev   line source
pascal@1338 1 # SliTaz package receipt.
pascal@1338 2
pascal@1338 3 PACKAGE="dhcp"
slaxemulator@11095 4 VERSION="4.2.2"
pascal@1338 5 CATEGORY="network"
pascal@1338 6 SHORT_DESC="Dynamic Host Configuration Protocol server."
pascal@1338 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="ISC"
pascal@1338 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1338 10 WEB_SITE="http://www.isc.org/products/DHCP/"
pascal@1338 11 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL"
pascal@14772 12 CONFIG_FILES="/etc/dhcpd.conf"
pascal@14772 13
pascal@2488 14 DEPENDS="libcrypto"
pascal@20567 15 BUILD_DEPENDS="perl file"
pascal@1338 16
pascal@1338 17 # Rules to configure and make the package.
pascal@1338 18 compile_rules()
pascal@1338 19 {
pascal@5734 20 grep -q MYEOL includes/dhctoken.h ||
pascal@5734 21 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
pascal@5734 22 includes/dhctoken.h
pascal@5734 23 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
pascal@1338 24 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@3350 25 --disable-dhcpv6 \
pascal@1338 26 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
slaxemulator@11095 27 make && make DESTDIR=$DESTDIR install
pascal@1338 28 }
pascal@1338 29
pascal@1338 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1338 31 genpkg_rules()
pascal@1338 32 {
pascal@5234 33 mkdir -p $fs/usr/sbin $fs/etc/init.d
pascal@15579 34 cp $install/etc/dhcpd.conf $fs/etc
pascal@15579 35 cp $install/usr/sbin/dhcpd $fs/usr/sbin
slaxemulator@11095 36 cp $stuff/dhcpd $fs/etc/init.d
pascal@1338 37 }