wok-6.x view dhcp6/receipt @ rev 11960

Merge a patch to fix svg support I forgot to push weeks ago. The problem has been fixed since but I think that this patch handle things better.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Mar 01 18:08:04 2012 +0100 (2012-03-01)
parents 7b13b3b4b836
children eb8067417980
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 SOURCE="dhcp"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.isc.org/products/DHCP/"
11 WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL"
12 DEPENDS="libcrypto"
13 BUILD_DEPENDS="perl"
14 CONFIG_FILES="/etc/dhcpd.conf"
15 PROVIDE="dhcp"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ln -s $src $PACKAGE-$VERSION 2> /dev/null
21 cd $src
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/' server/ddns.c
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
28 make && make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/sbin $fs/etc/init.d
35 cp $_pkg/etc/dhcpd.conf $fs/etc
36 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
37 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
38 }