summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2009-03-18 06:04:18 +0000
committerAlec Warner <antarus@gentoo.org>2009-03-18 06:04:18 +0000
commit79ebf406d658051c664361bc5f4841de31727af1 (patch)
tree24bb0d9182634505cec9a4aa45f1e860ba122feb /net-nds/nsscache
parentInitial import of libnss-cache. (diff)
downloadhistorical-79ebf406d658051c664361bc5f4841de31727af1.tar.gz
historical-79ebf406d658051c664361bc5f4841de31727af1.tar.bz2
historical-79ebf406d658051c664361bc5f4841de31727af1.zip
initial import of nsscache.
Package-Manager: portage-2.1.4.5
Diffstat (limited to 'net-nds/nsscache')
-rw-r--r--net-nds/nsscache/ChangeLog10
-rw-r--r--net-nds/nsscache/Manifest5
-rw-r--r--net-nds/nsscache/files/nsscache.conf120
-rw-r--r--net-nds/nsscache/metadata.xml9
-rw-r--r--net-nds/nsscache/nsscache-0.8.3.ebuild25
5 files changed, 169 insertions, 0 deletions
diff --git a/net-nds/nsscache/ChangeLog b/net-nds/nsscache/ChangeLog
new file mode 100644
index 000000000000..eb3f5108bea8
--- /dev/null
+++ b/net-nds/nsscache/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-nds/nsscache
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/nsscache/ChangeLog,v 1.1 2009/03/18 06:04:18 antarus Exp $
+
+*nsscache-0.8.3 (18 Mar 2009)
+
+ 18 Mar 2009; Alec Warner <antarus@gentoo.org>
+ +files/nsscache.conf.default, +nsscache-0.8.3.ebuild:
+ iniital import of nsscache
+
diff --git a/net-nds/nsscache/Manifest b/net-nds/nsscache/Manifest
new file mode 100644
index 000000000000..994d19dd4800
--- /dev/null
+++ b/net-nds/nsscache/Manifest
@@ -0,0 +1,5 @@
+AUX nsscache.conf 2695 RMD160 77e2ed85ec57b7314eb890e0fb42a86de5ebcfe6 SHA1 05c2bd63f4877443647248b8616d3f16f9667ea3 SHA256 86babb59fde997095625e9594668c0d52f7d779b2aae964f2ec1d10b71a84772
+DIST nsscache-0.8.3.tar.gz 72612 RMD160 27c3a74488ebef68d9591efb9bd6789a2ab72b26 SHA1 23057a22407a7d6bee9a9ac2ac4c38ee8b295af9 SHA256 452037c5859aad13f3bfc123db1f9d02211ebbcb9b1073a73a2e1f783c5c2c2a
+EBUILD nsscache-0.8.3.ebuild 735 RMD160 5e23b92ecd11afbe2c6060a24ea132e4daaf110e SHA1 858e15a6690ca1ba77680b45fce73d6e091b164e SHA256 a3686feb5e94d10a3383e3400c4b064b3244e1b871f64342c96babdf3515af5f
+MISC ChangeLog 371 RMD160 bd671c7dbd69fc7844ec916234b9015e0ae67000 SHA1 304c79bf7a121e60a02da6e8ef1625095e8fad4c SHA256 23231b2fd6ee14edfc95023660fe5ce3fa79b4ae7bbaac77e2d8d68b51c2dc29
+MISC metadata.xml 350 RMD160 a41b0b9f71c20798d42b943971e02731eb25c3a9 SHA1 de77b0648df1d834a5a3a883dfef336f86edd18b SHA256 95ac973b3deadfc722ddf2173a1744d728a61d766aaee96d53b4de9bb10217f9
diff --git a/net-nds/nsscache/files/nsscache.conf b/net-nds/nsscache/files/nsscache.conf
new file mode 100644
index 000000000000..5f54fe8353d1
--- /dev/null
+++ b/net-nds/nsscache/files/nsscache.conf
@@ -0,0 +1,120 @@
+# Example /etc/nsscache.conf - configuration for nsscache
+#
+# nsscache loads a config file from the environment variable NSSCACHE_CONFIG
+#
+# By default this is /etc/nsscache.conf
+#
+# Commented values are overrideable defaults, uncommented values
+# require you to set them.
+
+[DEFAULT]
+
+# Default NSS data source module name
+source = ldap
+
+# Default NSS data cache module name
+cache = nssdb
+#cache = files
+
+# NSS maps to be cached
+maps = passwd, group, shadow, netgroup
+
+# Directory to store our update/modify timestamps
+timestamp_dir = /var/lib/nsscache
+
+# Lockfile to use for update/repair operations
+#lockfile = /var/run/nsscache
+
+# Defaults for specific modules; prefaced with "modulename_"
+
+##
+# ldap module defaults.
+#
+
+# LDAP URI to query for NSS data
+ldap_uri = ldaps://ldap
+
+# Base for LDAP searches
+ldap_base = ou=people,dc=example,dc=com
+
+# Default LDAP search filter for maps
+ldap_filter = (objectclass=posixAccount)
+
+# Default LDAP search scope
+#ldap_scope = one
+
+# Default LDAP BIND DN, empty string is an anonymous bind
+#ldap_bind_dn = ""
+
+# Default LDAP password, empty DN and empty password is used for
+# anonymous binds
+#ldap_bind_password = ""
+
+# Default timelimit for LDAP queries, in seconds.
+# The query will block for this number of seconds, or indefinitely if negative.
+#ldap_timelimit = -1
+
+# Default number of retry attempts
+#ldap_retry_max = 3
+
+# Default delay in between retry attempts
+#ldap_retry_delay = 5
+
+# Default setting for requiring tls certificates, one of:
+# never, hard, demand, allow, try
+#ldap_tls_require_cert = 'demand'
+
+# Default directoy for trusted CAs
+#ldap_tls_cacertdir = '/usr/share/ssl'
+
+# Default filename for trusted CAs
+#ldap_tls_cacertfile = '/usr/share/ssl/cert.pem'
+
+
+##
+# nssdb module defaults
+
+# Directory to store nssdb databases. Current libnss_db code requires
+# the path below
+#nssdb_dir = /var/lib/misc
+
+# Path to `makedb', supplied by the nss_db module
+#nssdb_makedb = /usr/bin/makedb
+
+##
+# files module defaults
+
+# Directory to store the plain text files
+#files_dir = /etc
+
+# Suffix used on the files module database files
+files_cache_filename_suffix = cache
+
+###
+# Optional per-map sections, if present they will override the above
+# defaults. The examples below show you some common values to override
+#
+# [passwd]
+#
+# ldap_base = ou=people,dc=example,dc=com
+
+[group]
+
+ldap_base = ou=group,dc=example,dc=com
+ldap_filter = (objectclass=posixGroup)
+
+[shadow]
+
+ldap_filter = (objectclass=shadowAccount)
+
+[netgroup]
+
+ldap_base = ou=netgroup,dc=example,dc=com
+ldap_filter = (objectclass=nisNetgroup)
+files_cache_filename_suffix =
+
+[automount]
+
+ldap_base = ou=automounts,dc=example,dc=com
+files_cache_filename_suffix =
+cache = files
diff --git a/net-nds/nsscache/metadata.xml b/net-nds/nsscache/metadata.xml
new file mode 100644
index 000000000000..7a9057796091
--- /dev/null
+++ b/net-nds/nsscache/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-needed</herd>
+ <use>
+ <flag name="nssdb">Depend on sys-libs/libnss_db to handle dbm files.</flag>
+ <flag name="nsscache">Depend on sys-auth/libnss-cache to handle flat files</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-nds/nsscache/nsscache-0.8.3.ebuild b/net-nds/nsscache/nsscache-0.8.3.ebuild
new file mode 100644
index 000000000000..708bc2c811ca
--- /dev/null
+++ b/net-nds/nsscache/nsscache-0.8.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/nsscache/nsscache-0.8.3.ebuild,v 1.1 2009/03/18 06:04:18 antarus Exp $
+
+inherit distutils
+
+DESCRIPTION="commandline tool to sync directory services to local cache."
+HOMEPAGE="http://code.google.com/p/nsscache/"
+SRC_URI="http://nsscache.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="nssdb nsscache"
+
+RDEPEND="dev-python/python-ldap
+ nssdb? ( sys-libs/nss-db )
+ nsscache? ( sys-auth/libnss-cache )"
+DEPEND="$RDEPEND"
+
+src_install() {
+ distutils_src_install
+ insinto /etc
+ doins "$FILESDIR/nsscache.conf" # overwrite default with working config.
+}