SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ypserv"

# SliTaz package receipt.

PACKAGE="ypserv"
VERSION="2.27"
CATEGORY="network"
SHORT_DESC="Yellow pages server (v2)."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.linux-nis.org/"
DEPENDS="gdbm portmap"
BUILD_DEPENDS="gdbm-dev"
WGET_URL="$WEB_SITE/download/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    patch -Np1 -i $stuff/confpost.patch
    ./configure \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr $fs/etc/init.d
    cp -a $_pkg/usr/sbin $fs/usr
    cp -a $_pkg/usr/lib $fs/usr
    cp -a $_pkg/usr/include $fs/usr
    cp -a $_pkg/var $fs
    
    # Copy config files
    for  file in ypserv.conf timezone netmasks netgroup
    do 
        cp -a $src/etc/$fle $fs/
    done
    
    # Copy initscript
    cp $stuff/ypserv $fs/etc/init.d
    
    # Copy and fix security file
    cp $src/etc/securenets $fs/var/yp
    sed -i 's/^0.0.0.0/#0.0.0.0/' $fs/var/yp/securenets
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)