wok-current view dhcp6/receipt @ rev 20971
Up e2fsprogs (1.44.5) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 05 16:16:21 2019 +0100 (2019-03-05) |
parents | 624fe47fb580 |
children | f1e92a9bbf08 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp6"
4 VERSION="4.4.1"
5 CATEGORY="network"
6 SHORT_DESC="Dynamic Host Configuration Protocol server with ipv6 support."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="http://www.isc.org/downloads/DHCP/"
11 SOURCE="dhcp"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL"
15 CONFIG_FILES="/etc/dhcpd.conf"
16 PROVIDE="dhcp"
17 DEPENDS="libcrypto"
18 BUILD_DEPENDS="perl file"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ln -s $src $PACKAGE-$VERSION 2> /dev/null
24 cd $src
25 grep -q MYEOL includes/dhctoken.h ||
26 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
27 includes/dhctoken.h
28 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/sbin $fs/etc/init.d
43 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf
44 cp $install/usr/sbin/dhcpd $fs/usr/sbin
45 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
46 }