import libpwquality 1.1.0
The libpwquality library purpose is to provide common functions for password quality checking and also scoring them based on their apparent randomness. The library also provides a function for generating random passwords with good pronounceability. The library supports reading and parsing of a configuration file. including patches that have been committed upstream to disable pam, as suggested by and ok aja@
This commit is contained in:
parent
6e04606424
commit
84c8aa8a35
46
security/libpwquality/Makefile
Normal file
46
security/libpwquality/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/06/13 15:13:09 jasper Exp $
|
||||
|
||||
COMMENT = library to generate, and check strenght of passwords
|
||||
|
||||
DISTNAME = libpwquality-1.1.0
|
||||
SHARED_LIBS += pwquality 0.0 # 0.0
|
||||
CATEGORIES = security
|
||||
|
||||
HOMEPAGE = https://fedorahosted.org/libpwquality/
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = https://fedorahosted.org/releases/l/i/libpwquality/
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
WANTLIB = c crack z ${MODPY_WANTLIB}
|
||||
|
||||
MODULES = devel/gettext \
|
||||
lang/python
|
||||
|
||||
LIB_DEPENDS = security/cracklib
|
||||
|
||||
USE_LIBTOOL = Yes
|
||||
|
||||
AUTOMAKE_VERSION = 1.11
|
||||
AUTOCONF_VERSION = 2.68
|
||||
|
||||
CONFIGURE_STYLE = autoconf
|
||||
CONFIGURE_ARGS += --with-python-rev=${MODPY_VERSION} \
|
||||
--with-sconfigdir=${SYSCONFDIR} \
|
||||
--disable-pam
|
||||
CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
FAKE_FLAGS = secureconfdir=${PREFIX}/share/examples/libpwquality/
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/python/Makefile.am
|
||||
cd ${WRKSRC} && ${SETENV} AUTOCONF_VERSION=2.68 \
|
||||
AUTOMAKE_VERSION=1.11 \
|
||||
autoreconf
|
||||
|
||||
.include <bsd.port.mk>
|
5
security/libpwquality/distinfo
Normal file
5
security/libpwquality/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (libpwquality-1.1.0.tar.bz2) = IduaeHerFLD7KdREjHmN5g==
|
||||
RMD160 (libpwquality-1.1.0.tar.bz2) = d4jJ8vT9FVmBhF2O5ZpmuC+kFww=
|
||||
SHA1 (libpwquality-1.1.0.tar.bz2) = 9AaNZxlNjfs6bLnmJAaSOLSC0GY=
|
||||
SHA256 (libpwquality-1.1.0.tar.bz2) = Gq0F/YgBFlqlwUut8G07jJSy9CEwFuDwnXOjlzxB25M=
|
||||
SIZE (libpwquality-1.1.0.tar.bz2) = 358017
|
39
security/libpwquality/patches/patch-configure_in
Normal file
39
security/libpwquality/patches/patch-configure_in
Normal file
@ -0,0 +1,39 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1.1.1 2012/06/13 15:13:09 jasper Exp $
|
||||
|
||||
Make the PAM module build optional.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=831510
|
||||
https://fedorahosted.org/libpwquality/changeset/1980b9ea5057c0b09d15907fa3551f147c2a4399/
|
||||
|
||||
--- configure.in.orig Thu May 24 14:24:13 2012
|
||||
+++ configure.in Wed Jun 13 15:18:48 2012
|
||||
@@ -78,6 +78,29 @@ AC_ARG_ENABLE([ld-version-script],
|
||||
[ : ] )
|
||||
AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
|
||||
|
||||
+dnl PAM support
|
||||
+PAM_LIBS=
|
||||
+AC_ARG_ENABLE([pam],
|
||||
+ AS_HELP_STRING([--enable-pam],[build PAM module @<:@default=check@:>@]),
|
||||
+ [],
|
||||
+ [enable_pam=check])
|
||||
+if test "$enable_pam" != "no"; then
|
||||
+ if test "$enable_pam" = "check"; then
|
||||
+ AC_CHECK_LIB([pam], [pam_start], [enable_pam=yes], [enable_pam=no])
|
||||
+ else
|
||||
+ fail=0
|
||||
+ AC_CHECK_LIB([pam], [pam_start], [], [fail=1])
|
||||
+ test $fail = 1 &&
|
||||
+ AC_MSG_ERROR([You must install the PAM development package in order to compile libpwquality])
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+if test "$enable_pam" = "yes"; then
|
||||
+ PAM_LIBS="${PAM_LIBS} -lpam"
|
||||
+fi
|
||||
+AC_SUBST(PAM_LIBS)
|
||||
+AM_CONDITIONAL(HAVE_PAM, test "$enable_pam" = "yes")
|
||||
+
|
||||
dnl options and defaults
|
||||
AC_ARG_WITH(securedir,
|
||||
AS_HELP_STRING([--with-securedir=DIR],[path to location of PAMs @<:@default=$libdir/security@:>@]),
|
16
security/libpwquality/patches/patch-doc_man_Makefile_am
Normal file
16
security/libpwquality/patches/patch-doc_man_Makefile_am
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-doc_man_Makefile_am,v 1.1.1.1 2012/06/13 15:13:09 jasper Exp $
|
||||
|
||||
Make the PAM module build optional.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=831510
|
||||
https://fedorahosted.org/libpwquality/changeset/1980b9ea5057c0b09d15907fa3551f147c2a4399/
|
||||
|
||||
--- doc/man/Makefile.am.orig Wed Jun 13 09:19:46 2012
|
||||
+++ doc/man/Makefile.am Wed Jun 13 09:20:15 2012
|
||||
@@ -1 +1,5 @@
|
||||
-dist_man_MANS = pwmake.1 pwscore.1 pam_pwquality.8 pwquality.conf.5
|
||||
+dist_man_MANS = pwmake.1 pwscore.1 pwquality.conf.5
|
||||
+
|
||||
+if HAVE_PAM
|
||||
+dist_man_MANS += pam_pwquality.8
|
||||
+endif
|
9
security/libpwquality/patches/patch-python_Makefile_am
Normal file
9
security/libpwquality/patches/patch-python_Makefile_am
Normal file
@ -0,0 +1,9 @@
|
||||
$OpenBSD: patch-python_Makefile_am,v 1.1.1.1 2012/06/13 15:13:09 jasper Exp $
|
||||
--- python/Makefile.am.orig Wed Jun 13 08:56:30 2012
|
||||
+++ python/Makefile.am Wed Jun 13 08:56:40 2012
|
||||
@@ -13,4 +13,4 @@ EXTRA_DIST = pwquality.c setup.py
|
||||
pythonsite_SCRIPTS = pwquality.so
|
||||
|
||||
pwquality.so: ../src/pwquality.h pwquality.c setup.py
|
||||
- python setup.py build --build-lib=.
|
||||
+ ${MODPY_BIN} setup.py build --build-lib=.
|
44
security/libpwquality/patches/patch-src_Makefile_am
Normal file
44
security/libpwquality/patches/patch-src_Makefile_am
Normal file
@ -0,0 +1,44 @@
|
||||
$OpenBSD: patch-src_Makefile_am,v 1.1.1.1 2012/06/13 15:13:09 jasper Exp $
|
||||
|
||||
Make the PAM module build optional.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=831510
|
||||
https://fedorahosted.org/libpwquality/changeset/1980b9ea5057c0b09d15907fa3551f147c2a4399/
|
||||
|
||||
--- src/Makefile.am.orig Thu May 24 14:48:37 2012
|
||||
+++ src/Makefile.am Wed Jun 13 09:18:04 2012
|
||||
@@ -29,12 +29,16 @@ libpwquality_la_LIBADD = @LIBCRACK@
|
||||
|
||||
libpwquality_la_SOURCES = generate.c check.c settings.c error.c
|
||||
|
||||
-pam_pwquality_la_LDFLAGS = -no-undefined -avoid-version -module
|
||||
+if HAVE_PAM
|
||||
+ pam_pwquality_la_LDFLAGS = -no-undefined -avoid-version -module
|
||||
+ pam_pwquality_la_LIBADD = libpwquality.la @PAM_LIBS@
|
||||
+ pam_pwquality_la_SOURCES = pam_pwquality.c
|
||||
+else
|
||||
+ pam_pwquality_la_LDFLAGS =
|
||||
+ pam_pwquality_la_LIBADD =
|
||||
+ pam_pwquality_la_SOURCES =
|
||||
+endif
|
||||
|
||||
-pam_pwquality_la_LIBADD = libpwquality.la -lpam
|
||||
-
|
||||
-pam_pwquality_la_SOURCES = pam_pwquality.c
|
||||
-
|
||||
pwscore_SOURCES = pwscore.c
|
||||
|
||||
pwscore_LDADD = libpwquality.la
|
||||
@@ -45,7 +49,11 @@ pwmake_LDADD = libpwquality.la
|
||||
|
||||
lib_LTLIBRARIES = libpwquality.la
|
||||
|
||||
-securelib_LTLIBRARIES = pam_pwquality.la
|
||||
+if HAVE_PAM
|
||||
+ securelib_LTLIBRARIES = pam_pwquality.la
|
||||
+else
|
||||
+ securelib_LTLIBRARIES =
|
||||
+endif
|
||||
|
||||
secureconf_DATA = pwquality.conf
|
||||
|
5
security/libpwquality/pkg/DESCR
Normal file
5
security/libpwquality/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
The libpwquality library purpose is to provide common functions for
|
||||
password quality checking and also scoring them based on their apparent
|
||||
randomness. The library also provides a function for generating random
|
||||
passwords with good pronounceability. The library supports reading and
|
||||
parsing of a configuration file.
|
73
security/libpwquality/pkg/PLIST
Normal file
73
security/libpwquality/pkg/PLIST
Normal file
@ -0,0 +1,73 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/06/13 15:13:09 jasper Exp $
|
||||
@bin bin/pwmake
|
||||
@bin bin/pwscore
|
||||
include/pwquality.h
|
||||
lib/libpwquality.a
|
||||
lib/libpwquality.la
|
||||
@lib lib/libpwquality.so.${LIBpwquality_VERSION}
|
||||
lib/pkgconfig/pwquality.pc
|
||||
lib/python${MODPY_VERSION}/site-packages/pwquality.so
|
||||
@man man/man1/pwmake.1
|
||||
@man man/man1/pwscore.1
|
||||
@man man/man5/pwquality.conf.5
|
||||
share/examples/libpwquality/
|
||||
share/examples/libpwquality/pwquality.conf
|
||||
@sample ${SYSCONFDIR}/pwquality.conf
|
||||
share/locale/ar/
|
||||
share/locale/ar/LC_MESSAGES/
|
||||
share/locale/ar/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/as/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/fi/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/fr/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/it/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/ja/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/kk/
|
||||
share/locale/kk/LC_MESSAGES/
|
||||
share/locale/kk/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/km/
|
||||
share/locale/km/LC_MESSAGES/
|
||||
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/ms/
|
||||
share/locale/ms/LC_MESSAGES/
|
||||
share/locale/ms/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/
|
||||
share/locale/si/LC_MESSAGES/
|
||||
share/locale/si/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/sk/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/sr/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/sr@latin/
|
||||
share/locale/sr@latin/LC_MESSAGES/
|
||||
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/vi/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/zh_TW/LC_MESSAGES/libpwquality.mo
|
||||
share/locale/zu/
|
||||
share/locale/zu/LC_MESSAGES/
|
||||
share/locale/zu/LC_MESSAGES/libpwquality.mo
|
Loading…
Reference in New Issue
Block a user