From owner-svn-ports-all@freebsd.org Sat Jun 13 20:34:57 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1B16C34214F; Sat, 13 Jun 2020 20:34:57 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49kq8c70QHz4SlT; Sat, 13 Jun 2020 20:34:56 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EB4DB20E45; Sat, 13 Jun 2020 20:34:56 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 05DKYukv036092; Sat, 13 Jun 2020 20:34:56 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 05DKYuwr036085; Sat, 13 Jun 2020 20:34:56 GMT (envelope-from pi@FreeBSD.org) Message-Id: <202006132034.05DKYuwr036085@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sat, 13 Jun 2020 20:34:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r538698 - in head/sysutils: . nss_ndb X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/sysutils: . nss_ndb X-SVN-Commit-Revision: 538698 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2020 20:34:57 -0000 Author: pi Date: Sat Jun 13 20:34:55 2020 New Revision: 538698 URL: https://svnweb.freebsd.org/changeset/ports/538698 Log: New port: sysutils/nss_ndb BerkeleyDB-based nsswitch backend for passwd & groups This project consists of a NSS module (nss_ndb.so.1) and a CLI utility (makendb) that enables big passwd & group files to be handled efficiently via BTree BerkeleyDB databases. To activate and use this you must (after installation): 1. Manually add a symbolic link: /usr/lib/nss_ndb.so.1 -> /path/to/lib/nss_ndb.so.1. 2. Populate the databases in /var/db/nss_ndb via "makendb" (or some other tool). 3. Activate it in /etc/nsswitch.conf: passwd: files ndb group: files ndb WWW: https://github.com/ptrrkssn/nss_ndb PR: 247211 Submitted by: Peter Eriksson Added: head/sysutils/nss_ndb/ head/sysutils/nss_ndb/Makefile (contents, props changed) head/sysutils/nss_ndb/distinfo (contents, props changed) head/sysutils/nss_ndb/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Sat Jun 13 20:25:45 2020 (r538697) +++ head/sysutils/Makefile Sat Jun 13 20:34:55 2020 (r538698) @@ -735,6 +735,7 @@ SUBDIR += npadmin SUBDIR += nq SUBDIR += nrg2iso + SUBDIR += nss_ndb SUBDIR += nsysctl SUBDIR += ntfy SUBDIR += nut Added: head/sysutils/nss_ndb/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nss_ndb/Makefile Sat Jun 13 20:34:55 2020 (r538698) @@ -0,0 +1,69 @@ +# $FreeBSD$ + +PORTNAME= nss_ndb +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.23 +CATEGORIES= sysutils security + +MAINTAINER= pen@lysator.liu.se +COMMENT= BerkeleyDB-based nsswitch backend for passwd & groups + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +OPTIONS_DEFINE= CFG VAR REALM WRKGRP + +CFG_DESC= Enable configuration file +CFG_CONFIGURE_ON= --with-config-file +CFG_PLIST_FILES+= etc/nss_ndb.conf + +VAR_DESC= Enable configuration variable +VAR_CONFIGURE_ON= --with-config-var + +REALM_DESC= Enable realm stripping +REALM_CONFIGURE_ON= --with-realm + +WRKGRP_DESC= Enable workgroup stripping +WRKGRP_CONFIGURE_ON= --with-workgroup + +OPTIONS_SINGLE= BDB +OPTIONS_SINGLE_BDB= DB0 DB6 DB5 DB4 +OPTIONS_DEFAULT= DB0 + +DB0_DESC= Use old libc version of Berkeley DB +DB0_CONFIGURE_ON= --without-db + +DB6_DESC= Build with Berkeley DB v6 library +DB6_USES+= localbase +DB6_USE_LDCONFIG+= yes +DB6_LIB_DEPENDS= libdb-6.so:databases/db6 +DB6_CONFIGURE_ON= --with-db=6 + +DB5_DESC= Build with Berkeley DB v5 library +DB5_USES+= localbase +DB5_USE_LDCONFIG+= yes +DB5_LIB_DEPENDS= libdb-5.so:databases/db5 +DB5_CONFIGURE_ON= --with-db=5 + +DB4_DESC= Build with Berkeley DB v4.8 library +DB4_USES+= localbase +DB4_USE_LDCONFIG+= yes +DB4_LIB_DEPENDS= libdb-4.8.so:databases/db48 +DB4_CONFIGURE_ON= --with-db=4 + +USE_GITHUB= yes +GH_ACCOUNT= ptrrkssn + +GNU_CONFIGURE= yes + +PLIST_FILES= lib/nss_ndb.so.1 \ + lib/nss_ndb.so.1.0.23 \ + sbin/makendb sbin/nsstest \ + man/man5/nss_ndb.conf.5.gz \ + man/man8/makendb.8.gz \ + man/man8/nsstest.8.gz \ + man/man8/nss_ndb.8.gz \ + share/examples/nss_ndb/ndbsync \ + share/examples/nss_ndb/nss_ndb.conf \ + +.include Added: head/sysutils/nss_ndb/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nss_ndb/distinfo Sat Jun 13 20:34:55 2020 (r538698) @@ -0,0 +1,3 @@ +TIMESTAMP = 1592076403 +SHA256 (ptrrkssn-nss_ndb-v1.0.23_GH0.tar.gz) = b629c551f21bd5ddc33177afb856cf48824767e37a3b7b63961baf57d5f00a5a +SIZE (ptrrkssn-nss_ndb-v1.0.23_GH0.tar.gz) = 89677 Added: head/sysutils/nss_ndb/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nss_ndb/pkg-descr Sat Jun 13 20:34:55 2020 (r538698) @@ -0,0 +1,22 @@ +This project consists of a NSS module (nss_ndb.so.1) and a CLI +utility (makendb) that enables big passwd & group files to be +handled efficiently via BTree BerkeleyDB databases. + +To activate and use this you must (after installation): + +1. Manually add a symbolic link: + + /usr/lib/nss_ndb.so.1 -> /path/to/lib/nss_ndb.so.1. + +2. Populate the databases in /var/db/nss_ndb via "makendb" (or some + other tool). + +3. Activate it in /etc/nsswitch.conf: + + passwd: files ndb + group: files ndb + +WWW: https://github.com/ptrrkssn/nss_ndb + +- Peter Eriksson +pen@lysator.liu.se