# SliTaz package receipt. PACKAGE="dhcp" VERSION="4.2.2" CATEGORY="network" SHORT_DESC="Dynamic Host Configuration Protocol server." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.isc.org/products/DHCP/" WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL" DEPENDS="libcrypto" BUILD_DEPENDS="perl" CONFIG_FILES="/etc/dhcpd.conf" # Rules to configure and make the package. compile_rules() { cd $src grep -q MYEOL includes/dhctoken.h || sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \ includes/dhctoken.h sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c ./configure --prefix=/usr --infodir=/usr/share/info \ --disable-dhcpv6 \ --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \ make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin $fs/etc/init.d cp $_pkg/etc/dhcpd.conf $fs/etc cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin cp $stuff/dhcpd $fs/etc/init.d }