wok-6.x view dhcp6/receipt @ rev 6848
Fix depends: Remove xorg-xf86-input-evdev & xorg-xf86-video-vesa from xorg-server depends and put them as suggested - xorg can use other drivers
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Oct 20 12:31:54 2010 +0200 (2010-10-20) |
parents | 27a452d91f44 |
children | 82e83ddb59bd |
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp6"
4 VERSION="4.1.1b1"
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 CONFIG_FILES="/etc/dhcpd.conf"
14 PROVIDE="dhcp"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ln -s $src $PACKAGE-$VERSION 2> /dev/null
20 cd $src
21 grep -q MYEOL includes/dhctoken.h ||
22 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
23 includes/dhctoken.h
24 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
25 for i in start-without-ipv6 ; do
26 [ -f $i.done ] && continue
27 patch -p1 < ../stuff/$i.u || return 1
28 touch $i.done
29 done
30 ./configure --prefix=/usr --infodir=/usr/share/info \
31 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
32 make && make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/sbin $fs/etc/init.d
39 cp $_pkg/etc/dhcpd.conf $fs/etc
40 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
41 cp $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
42 # Package all dhcp pkgs
43 for i in $(cd $WOK; ls -d dhcp6-*)
44 do
45 tazwok genpkg $i
46 done
47 }