# HG changeset patch # User Christopher Rogers # Date 1330384655 18000 # Node ID 6b1be3598c12e8c06b038017ed3757553bde8d0b # Parent 2ef59f6bb8d1c487b7390fc86b0d67020c5fb6ee Up: ypserv to 2.27. diff -r 2ef59f6bb8d1 -r 6b1be3598c12 ypserv/receipt --- a/ypserv/receipt Mon Feb 27 18:15:11 2012 -0500 +++ b/ypserv/receipt Mon Feb 27 18:17:35 2012 -0500 @@ -1,25 +1,25 @@ # SliTaz package receipt. PACKAGE="ypserv" -VERSION="2.23" +VERSION="2.27" CATEGORY="network" SHORT_DESC="Yellow pages server (v2)." MAINTAINER="pascal.bellard@slitaz.org" -TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://www.kernel.org/pub/linux/utils/net/NIS/" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.linux-nis.org/" DEPENDS="gdbm portmap" BUILD_DEPENDS="gdbm-dev" -WGET_URL="$WEB_SITE/$TARBALL" +WGET_URL="$WEB_SITE/download/$PACKAGE/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src - ./configure --prefix=/usr --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - $CONFIGURE_ARGS && + patch -Np1 -i $stuff/confpost.patch + ./configure \ + $CONFIGURE_ARGS && make && - make DESTDIR=$PWD/_pkg install + make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 2ef59f6bb8d1 -r 6b1be3598c12 ypserv/stuff/confpost.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ypserv/stuff/confpost.patch Mon Feb 27 18:17:35 2012 -0500 @@ -0,0 +1,14 @@ +diff -up ypserv-2.27/conf_post.h.qdbm ypserv-2.27/conf_post.h +--- ypserv-2.27/conf_post.h.qdbm 2012-02-01 14:18:01.780846425 +0100 ++++ ypserv-2.27/conf_post.h 2012-02-01 14:18:01.780846425 +0100 +@@ -0,0 +1,10 @@ ++/* Define common preprocessor symbol for HAVE_LIBGDBM and HAVE_LIBQDBM, since ++ * libraries gdbm and qdbm have same symbol names. */ ++#undef HAVE_COMPAT_LIBGDBM ++#ifdef HAVE_LIBGDBM ++#define HAVE_COMPAT_LIBGDBM ++#endif ++#ifdef HAVE_LIBQDBM ++#define HAVE_COMPAT_LIBGDBM ++#endif ++