wok-current view dhcp6/receipt @ rev 15965

xorg-libXau: add to ARM arch
author Christophe Lincoln <pankso@slitaz.org>
date Mon Feb 24 15:44:41 2014 +0100 (2014-02-24)
parents 7008b10a1996
children 291369229046
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp6"
4 VERSION="4.2.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 SOURCE="dhcp"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.isc.org/products/DHCP/"
12 WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL"
13 CONFIG_FILES="/etc/dhcpd.conf"
14 PROVIDE="dhcp"
16 DEPENDS="libcrypto"
17 BUILD_DEPENDS="perl"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ln -s $src $PACKAGE-$VERSION 2> /dev/null
23 cd $src
24 grep -q MYEOL includes/dhctoken.h ||
25 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
26 includes/dhctoken.h
27 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
30 make && make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/sbin $fs/etc/init.d
37 cp $install/etc/dhcpd.conf $fs/etc
38 cp $install/usr/sbin/dhcpd $fs/usr/sbin
39 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
40 }