pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security security: Add libpwquality. Based on work by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8226b91d230e
branches:  trunk
changeset: 442289:8226b91d230e
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Nov 22 11:58:58 2020 +0000

description:
security: Add libpwquality. Based on work by coypu and others in wip.

This is a library for password quality checking and generation of
random passwords that pass the checks.

diffstat:

 security/Makefile                                   |   3 +-
 security/libpwquality/DESCR                         |   2 +
 security/libpwquality/Makefile                      |  34 +++++++++++
 security/libpwquality/PLIST                         |  63 +++++++++++++++++++++
 security/libpwquality/buildlink3.mk                 |  14 ++++
 security/libpwquality/distinfo                      |   7 ++
 security/libpwquality/patches/patch-src_Makefile.in |  15 +++++
 7 files changed, 137 insertions(+), 1 deletions(-)

diffs (176 lines):

diff -r 18ebb224b134 -r 8226b91d230e security/Makefile
--- a/security/Makefile Sun Nov 22 11:37:01 2020 +0000
+++ b/security/Makefile Sun Nov 22 11:58:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.788 2020/11/22 11:36:31 nia Exp $
+# $NetBSD: Makefile,v 1.789 2020/11/22 11:58:58 nia Exp $
 #
 
 COMMENT=       Security tools
@@ -193,6 +193,7 @@
 SUBDIR+=       libpreludedb-pgsql
 SUBDIR+=       libpreludedb-python
 SUBDIR+=       libpreludedb-sqlite3
+SUBDIR+=       libpwquality
 SUBDIR+=       libressl
 SUBDIR+=       libsecp256k1
 SUBDIR+=       libsecret
diff -r 18ebb224b134 -r 8226b91d230e security/libpwquality/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libpwquality/DESCR       Sun Nov 22 11:58:58 2020 +0000
@@ -0,0 +1,2 @@
+This is a library for password quality checking and generation of
+random passwords that pass the checks.
diff -r 18ebb224b134 -r 8226b91d230e security/libpwquality/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libpwquality/Makefile    Sun Nov 22 11:58:58 2020 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2020/11/22 11:58:58 nia Exp $
+
+DISTNAME=      libpwquality-1.4.4
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=libpwquality/}
+GITHUB_RELEASE=        ${DISTNAME}
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/libpwquality/libpwquality
+COMMENT=       Library for generating random passwords and quality checking
+LICENSE=       gnu-gpl-v2
+
+USE_TOOLS+=    msgfmt msgmerge xgettext
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+
+CONFIGURE_ARGS+=       --disable-pam
+CONFIGURE_ARGS+=       --disable-python-bindings
+
+PKGCONFIG_OVERRIDE=    src/pwquality.pc.in
+
+PY_PATCHPLIST= yes
+
+OWN_DIRS+=     ${PKG_SYSCONFDIR}/security
+
+EGDIR=         share/examples/libpwquality
+
+CONF_FILES=    ${EGDIR}/security/pwquality.conf \
+               ${PKG_SYSCONFDIR}/security/pwquality.conf
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../security/cracklib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 18ebb224b134 -r 8226b91d230e security/libpwquality/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libpwquality/PLIST       Sun Nov 22 11:58:58 2020 +0000
@@ -0,0 +1,63 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/22 11:58:58 nia Exp $
+bin/pwmake
+bin/pwscore
+include/pwquality.h
+lib/libpwquality.la
+lib/pkgconfig/pwquality.pc
+man/man1/pwmake.1
+man/man1/pwscore.1
+man/man3/pwquality.3
+man/man5/pwquality.conf.5
+share/examples/libpwquality/security/pwquality.conf
+share/locale/ar/LC_MESSAGES/libpwquality.mo
+share/locale/as/LC_MESSAGES/libpwquality.mo
+share/locale/az/LC_MESSAGES/libpwquality.mo
+share/locale/bg/LC_MESSAGES/libpwquality.mo
+share/locale/bn_IN/LC_MESSAGES/libpwquality.mo
+share/locale/ca/LC_MESSAGES/libpwquality.mo
+share/locale/cs/LC_MESSAGES/libpwquality.mo
+share/locale/da/LC_MESSAGES/libpwquality.mo
+share/locale/de/LC_MESSAGES/libpwquality.mo
+share/locale/es/LC_MESSAGES/libpwquality.mo
+share/locale/eu/LC_MESSAGES/libpwquality.mo
+share/locale/fa/LC_MESSAGES/libpwquality.mo
+share/locale/fi/LC_MESSAGES/libpwquality.mo
+share/locale/fr/LC_MESSAGES/libpwquality.mo
+share/locale/fur/LC_MESSAGES/libpwquality.mo
+share/locale/gu/LC_MESSAGES/libpwquality.mo
+share/locale/he/LC_MESSAGES/libpwquality.mo
+share/locale/hi/LC_MESSAGES/libpwquality.mo
+share/locale/hu/LC_MESSAGES/libpwquality.mo
+share/locale/id/LC_MESSAGES/libpwquality.mo
+share/locale/it/LC_MESSAGES/libpwquality.mo
+share/locale/ja/LC_MESSAGES/libpwquality.mo
+share/locale/kk/LC_MESSAGES/libpwquality.mo
+share/locale/km/LC_MESSAGES/libpwquality.mo
+share/locale/kn/LC_MESSAGES/libpwquality.mo
+share/locale/ko/LC_MESSAGES/libpwquality.mo
+share/locale/ml/LC_MESSAGES/libpwquality.mo
+share/locale/mr/LC_MESSAGES/libpwquality.mo
+share/locale/nb/LC_MESSAGES/libpwquality.mo
+share/locale/nl/LC_MESSAGES/libpwquality.mo
+share/locale/or/LC_MESSAGES/libpwquality.mo
+share/locale/pa/LC_MESSAGES/libpwquality.mo
+share/locale/pl/LC_MESSAGES/libpwquality.mo
+share/locale/pt/LC_MESSAGES/libpwquality.mo
+share/locale/pt_BR/LC_MESSAGES/libpwquality.mo
+share/locale/ru/LC_MESSAGES/libpwquality.mo
+share/locale/si/LC_MESSAGES/libpwquality.mo
+share/locale/sk/LC_MESSAGES/libpwquality.mo
+share/locale/sq/LC_MESSAGES/libpwquality.mo
+share/locale/sr/LC_MESSAGES/libpwquality.mo
+share/locale/sr@latin/LC_MESSAGES/libpwquality.mo
+share/locale/sv/LC_MESSAGES/libpwquality.mo
+share/locale/ta/LC_MESSAGES/libpwquality.mo
+share/locale/te/LC_MESSAGES/libpwquality.mo
+share/locale/tr/LC_MESSAGES/libpwquality.mo
+share/locale/uk/LC_MESSAGES/libpwquality.mo
+share/locale/ur/LC_MESSAGES/libpwquality.mo
+share/locale/vi/LC_MESSAGES/libpwquality.mo
+share/locale/zh_CN/LC_MESSAGES/libpwquality.mo
+share/locale/zh_TW/LC_MESSAGES/libpwquality.mo
+share/locale/zu/LC_MESSAGES/libpwquality.mo
+@pkgdir man/man8
diff -r 18ebb224b134 -r 8226b91d230e security/libpwquality/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libpwquality/buildlink3.mk       Sun Nov 22 11:58:58 2020 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/11/22 11:58:58 nia Exp $
+
+BUILDLINK_TREE+=       libpwquality
+
+.if !defined(LIBPWQUALITY_BUILDLINK3_MK)
+LIBPWQUALITY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libpwquality+=   libpwquality>=1.3.0
+BUILDLINK_PKGSRCDIR.libpwquality?=     ../../security/libpwquality
+
+.include "../../security/cracklib/buildlink3.mk"
+.endif # LIBPWQUALITY_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libpwquality
diff -r 18ebb224b134 -r 8226b91d230e security/libpwquality/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libpwquality/distinfo    Sun Nov 22 11:58:58 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/11/22 11:58:58 nia Exp $
+
+SHA1 (libpwquality-1.4.4.tar.bz2) = 94e3f2eb67ccff1823e727d6770c3f39acbd954d
+RMD160 (libpwquality-1.4.4.tar.bz2) = dbcc85959af5894bf0cc3b5e29fedecc522d615c
+SHA512 (libpwquality-1.4.4.tar.bz2) = 2d49b79105361663f009f7183fde9123e6f1e63bd678dfe5418143f611e763af8dd44374b826b3c22a00e721047c539741dc44d99a2289b9ab229791768d6e76
+Size (libpwquality-1.4.4.tar.bz2) = 426923 bytes
+SHA1 (patch-src_Makefile.in) = eca8bba7156fc9c029306aeb6b422fc644ef2330
diff -r 18ebb224b134 -r 8226b91d230e security/libpwquality/patches/patch-src_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libpwquality/patches/patch-src_Makefile.in       Sun Nov 22 11:58:58 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2020/11/22 11:58:58 nia Exp $
+
+Install config files to examples.
+
+--- src/Makefile.in.orig       2020-10-13 07:31:04.000000000 +0000
++++ src/Makefile.in
+@@ -393,7 +393,7 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ CLEANFILES = *~
+ securelibdir = @SECUREDIR@
+-secureconfdir = @SCONFIGDIR@
++secureconfdir = @datadir@/examples/libpwquality/security
+ EXTRA_DIST = libpwquality.map pwquality.conf pwquality.pc
+ include_HEADERS = pwquality.h
+ noinst_HEADERS = pwqprivate.h



Home | Main Index | Thread Index | Old Index