wok-6.x rev 11872

Up: ypserv to 2.27.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Feb 27 18:17:35 2012 -0500 (2012-02-27)
parents 2ef59f6bb8d1
children cb660f628a78
files ypserv/receipt ypserv/stuff/confpost.patch
line diff
     1.1 --- a/ypserv/receipt	Mon Feb 27 18:15:11 2012 -0500
     1.2 +++ b/ypserv/receipt	Mon Feb 27 18:17:35 2012 -0500
     1.3 @@ -1,25 +1,25 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="ypserv"
     1.7 -VERSION="2.23"
     1.8 +VERSION="2.27"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Yellow pages server (v2)."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 -WEB_SITE="http://www.kernel.org/pub/linux/utils/net/NIS/"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 +WEB_SITE="http://www.linux-nis.org/"
    1.16  DEPENDS="gdbm portmap"
    1.17  BUILD_DEPENDS="gdbm-dev"
    1.18 -WGET_URL="$WEB_SITE/$TARBALL"
    1.19 +WGET_URL="$WEB_SITE/download/$PACKAGE/$TARBALL"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23  {
    1.24  	cd $src
    1.25 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.26 -	--mandir=/usr/share/man \
    1.27 -	$CONFIGURE_ARGS &&
    1.28 +	patch -Np1 -i $stuff/confpost.patch
    1.29 +	./configure \
    1.30 +		$CONFIGURE_ARGS &&
    1.31  	make &&
    1.32 -	make DESTDIR=$PWD/_pkg install
    1.33 +	make DESTDIR=$DESTDIR install
    1.34  }
    1.35  
    1.36  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/ypserv/stuff/confpost.patch	Mon Feb 27 18:17:35 2012 -0500
     2.3 @@ -0,0 +1,14 @@
     2.4 +diff -up ypserv-2.27/conf_post.h.qdbm ypserv-2.27/conf_post.h
     2.5 +--- ypserv-2.27/conf_post.h.qdbm	2012-02-01 14:18:01.780846425 +0100
     2.6 ++++ ypserv-2.27/conf_post.h	2012-02-01 14:18:01.780846425 +0100
     2.7 +@@ -0,0 +1,10 @@
     2.8 ++/* Define common preprocessor symbol for HAVE_LIBGDBM and HAVE_LIBQDBM, since
     2.9 ++ * libraries gdbm and qdbm have same symbol names. */
    2.10 ++#undef HAVE_COMPAT_LIBGDBM
    2.11 ++#ifdef HAVE_LIBGDBM
    2.12 ++#define HAVE_COMPAT_LIBGDBM
    2.13 ++#endif
    2.14 ++#ifdef HAVE_LIBQDBM
    2.15 ++#define HAVE_COMPAT_LIBGDBM
    2.16 ++#endif
    2.17 ++