diff --git a/net/nsscache/Makefile b/net/nsscache/Makefile index b156f702fb8b..e523a4ec67ed 100644 --- a/net/nsscache/Makefile +++ b/net/nsscache/Makefile @@ -1,50 +1,46 @@ PORTNAME= nsscache -PORTVERSION= 0.46 +PORTVERSION= 0.47 DISTVERSIONPREFIX= version/ CATEGORIES= net python MAINTAINER= kbowling@FreeBSD.org COMMENT= Python utility to create a local cache of directory services LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -DEPRECATED= Depends on expired databases/py-bsddb3 -EXPIRATION_DATE=2022-09-30 - BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}bsddb3>0:databases/py-bsddb3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ldap>0:net/py-ldap@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycurl>0:ftp/py-pycurl@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mox3>0:devel/py-mox3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} USES= python:3.4+ USE_GITHUB= yes GH_ACCOUNT= google USE_PYTHON= autoplist distutils noflavors NO_ARCH= yes PLIST_FILES= '@dir /var/db/nsscache' \ '@sample etc/nsscache.conf.sample' \ man/man1/nsscache.1.gz \ man/man5/nsscache.conf.5.gz post-patch: @${REINPLACE_CMD} -e 's|/etc/nsscache.conf|${PREFIX}/etc/nsscache.conf|g' ${WRKSRC}/nss_cache/config.py @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/nsscache.conf @${REINPLACE_CMD} -e "s|/var/lib/misc|/var/db/nsscache|g" ${WRKSRC}/nsscache.conf.5 post-install: ${INSTALL_DATA} ${WRKSRC}/nsscache.conf ${STAGEDIR}${PREFIX}/etc/nsscache.conf.sample ${INSTALL_MAN} ${WRKSRC}/nsscache.1 ${STAGEDIR}${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/nsscache.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5 @${MKDIR} ${STAGEDIR}/var/db/nsscache do-test: cd ${WRKSRC} && ${PYTHON_CMD} setup.py test .include diff --git a/net/nsscache/distinfo b/net/nsscache/distinfo index c22a1ab3288c..3cdc2c5c8da0 100644 --- a/net/nsscache/distinfo +++ b/net/nsscache/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1659898356 -SHA256 (google-nsscache-version-0.46_GH0.tar.gz) = 5a2cc7de2398fda0d62c534b8613949dd7ed9dc40a54d7ff62aba15e7ad5d62f -SIZE (google-nsscache-version-0.46_GH0.tar.gz) = 133132 +TIMESTAMP = 1661494957 +SHA256 (google-nsscache-version-0.47_GH0.tar.gz) = bb7da96be513158bf763d8e13ea331a50f7998fbfd8725fbeac56bb96d36042a +SIZE (google-nsscache-version-0.47_GH0.tar.gz) = 126225 diff --git a/net/nsscache/files/patch-nsscache.conf b/net/nsscache/files/patch-nsscache.conf index 6aa7d1209955..afa0d5ae453b 100644 --- a/net/nsscache/files/patch-nsscache.conf +++ b/net/nsscache/files/patch-nsscache.conf @@ -1,29 +1,20 @@ ---- nsscache.conf.orig 2019-11-11 16:27:27 UTC +--- nsscache.conf.orig 2022-08-26 06:25:28 UTC +++ nsscache.conf @@ -2,7 +2,7 @@ # # nsscache loads a config file from the environment variable NSSCACHE_CONFIG # -# By default this is /etc/nsscache.conf +# By default this is %%PREFIX%%/etc/nsscache.conf # # Commented values are overrideable defaults, uncommented values # require you to set them. -@@ -21,7 +21,7 @@ cache = files +@@ -20,7 +20,7 @@ maps = passwd, group, shadow, netgroup, automount maps = passwd, group, shadow, netgroup, automount # Directory to store our update/modify timestamps -timestamp_dir = /var/lib/nsscache +timestamp_dir = /var/db/nsscache # Lockfile to use for update/repair operations #lockfile = /var/run/nsscache -@@ -139,7 +139,7 @@ ldap_filter = (objectclass=posixAccount) - - # Directory to store nssdb databases. Current libnss_db code requires - # the path below --nssdb_dir = /var/lib/misc -+nssdb_dir = /var/db/nsscache - - # Path to `makedb', supplied by the nss_db module - #nssdb_makedb = /usr/bin/makedb