Bug 200123 - [NEW PORT] net/nsscache a utility for caching directory service information into local cache files
Summary: [NEW PORT] net/nsscache a utility for caching directory service information i...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Johannes Jost Meixner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-11 09:53 UTC by Kevin Bowling
Modified: 2015-05-17 23:10 UTC (History)
1 user (show)

See Also:


Attachments
nsscache port shar v1 (4.31 KB, text/plain)
2015-05-11 09:53 UTC, Kevin Bowling
no flags Details
SVN diff with review changes for testing (5.84 KB, patch)
2015-05-11 12:25 UTC, Johannes Jost Meixner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Bowling freebsd_committer freebsd_triage 2015-05-11 09:53:14 UTC
Created attachment 156649 [details]
nsscache port shar v1

nsscache is a utility for caching directory service information into local
cache files.

On FreeBSD, it is intended to be used with the net/libnss-cache port but it
can also output BDB files for use by other operating systems.

WWW: https://github.com/google/nsscache
Comment 1 Johannes Jost Meixner freebsd_committer freebsd_triage 2015-05-11 11:15:52 UTC
I'll take it.
Comment 2 Johannes Jost Meixner freebsd_committer freebsd_triage 2015-05-11 12:23:49 UTC
Nits:

- PLIST_FILES+= is unnecessary, you can wrap lines by adding a backslash \ at the endof the line like so:

PLIST_FILES=    '@sample etc/nsscache.conf.sample' '@dir /var/db/nsscache' \
                man/man1/nsscache.1.gz man/man5/nsscache.conf.5.gz

- I've replaced
+# By default this is <installation prefix>/etc/nsscache.conf
 with 
+# By default this is %%PREFIX%%/etc/nsscache.conf
and added a REINPLACE_CMD line to Makefile to patch that %%PREFIX%% into the actual ${PREFIX}.

It's a good idea (if not mandatory) to add licensing files to the Makefile with
LICENSE_FILE= ${WRKSRC}/COPYING.

Likewise, you might want to patch out /var/lib/misc in the manpage in favor of /var/db/nsscache (which is a better place, according to hier(7).

Can you please try if the attached diff works for creating local cache files?
Comment 3 Johannes Jost Meixner freebsd_committer freebsd_triage 2015-05-11 12:25:16 UTC
Created attachment 156653 [details]
SVN diff with review changes for testing
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-05-11 17:19:57 UTC
A commit references this bug:

Author: xmj
Date: Mon May 11 17:18:57 UTC 2015
New revision: 386090
URL: https://svnweb.freebsd.org/changeset/ports/386090

Log:
  net/nsscache: add port

  nsscache is a utility for caching directory service information into local
  cache files.

  On FreeBSD, it is intended to be used with the net/libnss-cache port but it
  can also output BDB files for use by other operating systems.

  WWW: https://github.com/google/nsscache

  PR:		200123
  Submitted by:	Kevin Bowling <kevin.bowling@kev009.com>
  Obtained from:	Limelight Networks

Changes:
  head/net/Makefile
  head/net/nsscache/
  head/net/nsscache/Makefile
  head/net/nsscache/distinfo
  head/net/nsscache/files/
  head/net/nsscache/files/patch-nsscache.conf
  head/net/nsscache/files/patch-setup.py
  head/net/nsscache/pkg-descr
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2015-05-17 23:10:09 UTC
Committed as revision 386090.