summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth/libnss-cache')
-rw-r--r--sys-auth/libnss-cache/ChangeLog11
-rw-r--r--sys-auth/libnss-cache/files/libnss-cache-0.10-fix-shadow-test.patch12
-rw-r--r--sys-auth/libnss-cache/files/libnss-cache-0.10-make.patch27
-rw-r--r--sys-auth/libnss-cache/libnss-cache-0.10.ebuild29
4 files changed, 77 insertions, 2 deletions
diff --git a/sys-auth/libnss-cache/ChangeLog b/sys-auth/libnss-cache/ChangeLog
index 535e3b57e9cf..81e02c250903 100644
--- a/sys-auth/libnss-cache/ChangeLog
+++ b/sys-auth/libnss-cache/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-auth/libnss-cache
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/libnss-cache/ChangeLog,v 1.5 2010/09/15 00:53:42 xmw Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/libnss-cache/ChangeLog,v 1.6 2011/01/13 06:47:11 robbat2 Exp $
+
+*libnss-cache-0.10 (13 Jan 2011)
+
+ 13 Jan 2011; Robin H. Johnson <robbat2@gentoo.org> +libnss-cache-0.10.ebuild,
+ +files/libnss-cache-0.10-fix-shadow-test.patch,
+ +files/libnss-cache-0.10-make.patch:
+ Version bump.
*libnss-cache-0.1-r1 (15 Sep 2010)
diff --git a/sys-auth/libnss-cache/files/libnss-cache-0.10-fix-shadow-test.patch b/sys-auth/libnss-cache/files/libnss-cache-0.10-fix-shadow-test.patch
new file mode 100644
index 000000000000..e68546c603a2
--- /dev/null
+++ b/sys-auth/libnss-cache/files/libnss-cache-0.10-fix-shadow-test.patch
@@ -0,0 +1,12 @@
+diff -Nuar libnss-cache-0.10.orig//gen_getent.c libnss-cache-0.10//gen_getent.c
+--- libnss-cache-0.10.orig//gen_getent.c 2011-01-10 19:56:01.000000000 +0000
++++ libnss-cache-0.10//gen_getent.c 2011-01-13 06:43:05.475875153 +0000
+@@ -133,7 +133,7 @@
+ int errnop;
+ enum nss_status ret;
+
+- _nss_cache_setpwent_path(SHADOW_FILE);
++ _nss_cache_setspent_path(SHADOW_FILE);
+
+ buffer = malloc(buflen);
+
diff --git a/sys-auth/libnss-cache/files/libnss-cache-0.10-make.patch b/sys-auth/libnss-cache/files/libnss-cache-0.10-make.patch
new file mode 100644
index 000000000000..9bf5f5773cd1
--- /dev/null
+++ b/sys-auth/libnss-cache/files/libnss-cache-0.10-make.patch
@@ -0,0 +1,27 @@
+diff -Nuar libnss-cache-0.10.orig/Makefile libnss-cache-0.10/Makefile
+--- libnss-cache-0.10.orig/Makefile 2011-01-10 19:56:01.000000000 +0000
++++ libnss-cache-0.10/Makefile 2011-01-13 06:18:03.630052109 +0000
+@@ -1,16 +1,17 @@
+-CC=gcc
++CC?=gcc
+ #CFLAGS=-Wall -Wstrict-prototypes -Werror -fPIC -DDEBUG -g -O0
+-CFLAGS=-Wall -Wstrict-prototypes -Werror -fPIC
++CFLAGS := $(CFLAGS) -Wall -Wstrict-prototypes -fPIC
++LDFLAGS+=
+ LIBRARY=libnss_cache.so.2.0
+ LINKS=libnss_cache.so.2 libnss_cache.so
+-DESTDIR=/
++DESTDIR?=
+ PREFIX=$(DESTDIR)/usr
+ BUILD=.libs
+ BUILD64=.libs64
+ BUILD32=.libs32
+-LIBDIR=$(PREFIX)/lib
+-LIBDIR64=$(PREFIX)/lib64
+-LIBDIR32=$(PREFIX)/lib32
++LIBDIR?=$(PREFIX)/lib
++LIBDIR64?=$(PREFIX)/lib64
++LIBDIR32?=$(PREFIX)/lib32
+ SONAME=libnss_cache.so.2
+ LD_SONAME=-Wl,-soname,$(SONAME)
+ TESTBIN=.testbin
diff --git a/sys-auth/libnss-cache/libnss-cache-0.10.ebuild b/sys-auth/libnss-cache/libnss-cache-0.10.ebuild
new file mode 100644
index 000000000000..46ce56989ad9
--- /dev/null
+++ b/sys-auth/libnss-cache/libnss-cache-0.10.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/libnss-cache/libnss-cache-0.10.ebuild,v 1.1 2011/01/13 06:47:11 robbat2 Exp $
+
+EAPI=2
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="libnss-cache is a library that serves nss lookups."
+HOMEPAGE="http://code.google.com/p/nsscache/"
+SRC_URI="http://nsscache.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PF}-make.patch
+ epatch "${FILESDIR}"/${PF}-fix-shadow-test.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" nss_cache || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die
+}