net/libnss-cache: Add port.

libnss-cache is a NSS module for reading directory service information for
hosts from an indexed, local disk cache of that directory service.

nsswitch.conf services provided:  passwd and group

Add 'nsscache' to the desired service(s) and generate the cache with the
net/nsscache port.

WWW: https://github.com/google/libnss-cache

PR:		200120
Submitted by:	Kevin Bowling <k@kev009.com>
This commit is contained in:
Johannes Jost Meixner 2015-05-11 12:20:22 +00:00
parent 65a99e72a5
commit 9775985d50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386076
4 changed files with 44 additions and 0 deletions

View file

@ -315,6 +315,7 @@
SUBDIR += libnfs
SUBDIR += libnids
SUBDIR += libnids-libnet11
SUBDIR += libnss-cache
SUBDIR += libnss-mysql
SUBDIR += liboauth
SUBDIR += libopennet

32
net/libnss-cache/Makefile Normal file
View file

@ -0,0 +1,32 @@
# Created by: Kevin Bowling <k@kev009.com>
# $FreeBSD$
PORTNAME= libnss-cache
PORTVERSION= 0.13
CATEGORIES= net
MAINTAINER= k@kev009.com
COMMENT= NSS module for directory services using an indexed, local disk cache
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= google
GH_TAGNAME= 9cacefb1afdeeefcb35c6f363370909692da5203
PLIST_FILES= lib/nss_nsscache.so lib/nss_nsscache.so.1
post-patch:
${REINPLACE_CMD} -e 's|PREFIX=$$(DESTDIR)/usr|PREFIX=${STAGEDIR}${PREFIX}|g' \
-e 's|LIBRARY=libnss_cache.so.2.0|LIBRARY=nss_nsscache.so.1|g' \
-e 's|BASE_LIBRARY=libnss_cache.so.2|BASE_LIBRARY=nss_nsscache.so|g' \
-e 's|SONAME=libnss_cache.so.2|SONAME=nss_nsscahe.so.1|g' \
${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/nss_nsscache.so.1
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (google-libnss-cache-0.13-9cacefb1afdeeefcb35c6f363370909692da5203_GH0.tar.gz) = d3bf4c06ba165ab8ba8c244487cdf4ada5862b9493c87973a8aadabd48759767
SIZE (google-libnss-cache-0.13-9cacefb1afdeeefcb35c6f363370909692da5203_GH0.tar.gz) = 17114

View file

@ -0,0 +1,9 @@
libnss-cache is a NSS module for reading directory service information for
hosts from an indexed, local disk cache of that directory service.
nsswitch.conf services provided: passwd and group
Add 'nsscache' to the desired service(s) and generate the cache with the
net/nsscache port.
WWW: https://github.com/google/libnss-cache