wok-6.x view dhcp6/receipt @ rev 23178
Up openvpn (2.4.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 18 11:26:52 2020 +0100 (2020-03-18) |
parents | f1e92a9bbf08 |
children | bfabe25c21ff |
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp6"
4 VERSION="4.4.2"
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="https://www.isc.org/dhcp/"
11 SOURCE="dhcp"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL"
15 PROVIDE="dhcp"
16 DEPENDS="libcrypto"
17 BUILD_DEPENDS="file perl"
19 CONFIG_FILES="/etc/dhcpd.conf"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ln -s $src $PACKAGE-$VERSION 2> /dev/null
25 cd $src
26 grep -q MYEOL includes/dhctoken.h ||
27 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
28 includes/dhctoken.h
29 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' \
30 server/ddns.c
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --sysconfdir=/etc \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make -j 1 &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/sbin
46 mkdir -p $fs/etc/init.d
48 cp $install/etc/dhcpd.conf.example $fs/etc/dhcpd.conf
49 cp $install/usr/sbin/dhcpd $fs/usr/sbin
50 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
51 }