wok-next view dhcp/receipt @ rev 16381
ARM: add openvpn, openssh, fuse, sshfs-fuse and more
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 15 04:46:37 2014 +0200 (2014-04-15) |
parents | e9130cce9043 |
children | 0ff6bd677938 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dhcp"
4 VERSION="4.2.2"
5 CATEGORY="network"
6 SHORT_DESC="Dynamic Host Configuration Protocol server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.isc.org/products/DHCP/"
11 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/dhcpd.conf"
14 DEPENDS="libcrypto"
15 BUILD_DEPENDS="perl"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
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 ./configure --prefix=/usr --infodir=/usr/share/info \
26 --disable-dhcpv6 \
27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
28 make && make DESTDIR=$DESTDIR 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 $install/etc/dhcpd.conf $fs/etc
36 cp $install/usr/sbin/dhcpd $fs/usr/sbin
37 cp $stuff/dhcpd $fs/etc/init.d
38 }