View | Details | Raw Unified | Return to bug 200123
Collapse All | Expand All

(-)Makefile (+38 lines)
Line 0 Link Here
1
# Created by: Kevin Bowling <k@kev009.com>
2
# $FreeBSD$
3
4
PORTNAME=	nsscache
5
PORTVERSION=	0.29
6
CATEGORIES=	net python
7
8
MAINTAINER=	k@kev009.com
9
COMMENT=	Python utility to create a local cache of directory services
10
11
LICENSE=	GPLv2
12
LICENSE_FILE=	${WRKSRC}/COPYING
13
14
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pycurl.so:${PORTSDIR}/ftp/py-curl \
15
		${PYTHON_PKGNAMEPREFIX}ldap2>0:${PORTSDIR}/net/py-ldap2 \
16
		${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb
17
18
USES=		python:2
19
USE_PYTHON=	autoplist distutils
20
USE_GITHUB=	yes
21
GH_ACCOUNT=	google
22
GH_TAGNAME=	version/${DISTVERSION}
23
24
PLIST_FILES=	'@sample etc/nsscache.conf.sample' '@dir /var/db/nsscache' \
25
		man/man1/nsscache.1.gz man/man5/nsscache.conf.5.gz
26
27
post-patch:
28
	@${REINPLACE_CMD} -e 's|/etc/nsscache.conf|${PREFIX}/etc/nsscache.conf|g' ${WRKSRC}/nss_cache/config.py
29
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/nsscache.conf
30
	@${REINPLACE_CMD} -e "s|/var/lib/misc|/var/db/nsscache|g" ${WRKSRC}/nsscache.conf.5
31
32
post-install:
33
	${INSTALL_DATA} ${WRKSRC}/nsscache.conf ${STAGEDIR}${PREFIX}/etc/nsscache.conf.sample
34
	${INSTALL_MAN} ${WRKSRC}/nsscache.1 ${STAGEDIR}${MANPREFIX}/man/man1
35
	${INSTALL_MAN} ${WRKSRC}/nsscache.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5
36
	@${MKDIR} ${STAGEDIR}/var/db/nsscache
37
38
.include <bsd.port.mk>
(-)distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (google-nsscache-0.29-version-0.29_GH0.tar.gz) = 631cd032eecdbf27d276540d9e5bb945fced6e71bb3bc8f64475d80c472d9308
2
SIZE (google-nsscache-0.29-version-0.29_GH0.tar.gz) = 106591
(-)files/patch-nsscache.conf (+38 lines)
Line 0 Link Here
1
--- nsscache.conf.orig	2014-10-21 10:32:31 UTC
2
+++ nsscache.conf
3
@@ -2,7 +2,7 @@
4
 #
5
 # nsscache loads a config file from the environment variable NSSCACHE_CONFIG
6
 #
7
-# By default this is /etc/nsscache.conf
8
+# By default this is %%PREFIX%%/etc/nsscache.conf
9
 #
10
 # Commented values are overrideable defaults, uncommented values
11
 # require you to set them.
12
@@ -13,14 +13,14 @@
13
 source = ldap
14
 
15
 # Default NSS data cache module name
16
-cache = nssdb
17
-#cache = files
18
+#cache = nssdb
19
+cache = files
20
 
21
 # NSS maps to be cached
22
 maps = passwd, group, shadow, netgroup, automount
23
 
24
 # Directory to store our update/modify timestamps
25
-timestamp_dir = /var/lib/nsscache
26
+timestamp_dir = /var/db/nsscache
27
 
28
 # Lockfile to use for update/repair operations
29
 #lockfile = /var/run/nsscache
30
@@ -89,7 +89,7 @@ ldap_filter = (objectclass=posixAccount)
31
 
32
 # Directory to store nssdb databases.  Current libnss_db code requires
33
 # the path below
34
-nssdb_dir = /var/lib/misc
35
+nssdb_dir = /var/db/nsscache
36
 
37
 # Path to `makedb', supplied by the nss_db module
38
 #nssdb_makedb = /usr/bin/makedb
(-)files/patch-setup.py (+9 lines)
Line 0 Link Here
1
--- setup.py.orig	2014-10-21 10:32:31 UTC
2
+++ setup.py
3
@@ -48,5 +48,4 @@ as LDAP.''',
4
                                'nss_cache.util',
5
                                'nss_cache.update',
6
                                'nss_cache.sources'],
7
-                     scripts=['nsscache'],
8
-                     data_files=[('/etc', ['nsscache.conf'])])
9
+                     scripts=['nsscache'])
(-)pkg-descr (+7 lines)
Line 0 Link Here
1
nsscache is a utility for caching directory service information into local
2
cache files.
3
4
On FreeBSD, it is intended to be used with the net/libnss-cache port but it
5
can also output BDB files for use by other operating systems.
6
7
WWW: https://github.com/google/nsscache

Return to bug 200123