SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dhcp6"

# SliTaz package receipt.

PACKAGE="dhcp6"
VERSION="4.2.2"
CATEGORY="network"
SHORT_DESC="Dynamic Host Configuration Protocol server with ipv6 support."
MAINTAINER="pascal.bellard@slitaz.org"
SOURCE="dhcp"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.isc.org/products/DHCP/"
WGET_URL="http://ftp.isc.org/isc/$SOURCE/$TARBALL"
DEPENDS="libcrypto"
BUILD_DEPENDS="perl"
CONFIG_FILES="/etc/dhcpd.conf"
PROVIDE="dhcp"

# Rules to configure and make the package.
compile_rules()
{
    ln -s $src $PACKAGE-$VERSION 2> /dev/null
    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 \
    --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
    make && make DESTDIR=$PWD/_pkg 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 $WOK/dhcp/stuff/dhcpd $fs/etc/init.d
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)