wok-current view dhcp/receipt @ rev 15275
clipit: remove icon (sorry, guys), move autostart item back to /etc/...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Sep 25 19:03:47 2013 +0300 (2013-09-25) |
parents | c490d846d349 |
children | eb8067417980 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.isc.org/products/DHCP/"
10 WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL"
11 CONFIG_FILES="/etc/dhcpd.conf"
13 DEPENDS="libcrypto"
14 BUILD_DEPENDS="perl"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 grep -q MYEOL includes/dhctoken.h ||
21 sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
22 includes/dhctoken.h
23 sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
24 ./configure --prefix=/usr --infodir=/usr/share/info \
25 --disable-dhcpv6 \
26 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
27 make && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/sbin $fs/etc/init.d
34 cp $_pkg/etc/dhcpd.conf $fs/etc
35 cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
36 cp $stuff/dhcpd $fs/etc/init.d
37 }