Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37044291
en ru br
ALT Linux repos
S:2.0.3-alt1
5.0: 1.1.0-alt0.7
4.1: 1.1.0-alt0.5
4.0: 1.1.0-alt0.4

Group :: System/Base
RPM: passwdqc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: passwdqc
Version: 1.1.0
Release: alt0.7

Summary: Pluggable password quality checker
License: LGPL
Group: System/Base
Url: http://www.openwall.com/passwdqc/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.openwall.com/pub/projects/pam/modules/pam_passwdqc/pam_passwdqc-%version.tar.gz

Source: passwdqc-%version-%release.tar

# due to PAM policy.

BuildRequires(pre): libpam-devel
# due to change in format of PAM modules requirements.
BuildRequires: rpm-build >= 0:4.0.4-alt55

%set_pam_name pam_%name

%package control
Summary: Control rules for password quality checker
License: GPL
Group: System/Base

%package -n lib%name
Summary: Password quality checker shared library
License: LGPL
Group: System/Libraries
PreReq: %name-control = %version-%release, control

%package -n lib%name-devel
Summary: Library and header file for building passwdqc-aware applications
License: LGPL
Group: Development/C
Requires: lib%name = %version-%release

%package utils
Summary: Password quality checker utilities
License: LGPL
Group: System/Base
Requires: lib%name = %version-%release

%package -n %pam_name
Summary: Pluggable password quality checker
License: LGPL
Group: System/Base
Provides: pam_%name = %version-%release
Obsoletes: pam_%name
Requires: lib%name = %version-%release

%description
passwdqc is a simple password strength checking library, utilities and
module for PAM-aware password changing programs, such as passwd(1).
In addition to checking regular passwords, it offers support for
passphrases and can provide randomly generated passwords.
All features are optional and can be (re-)configured without rebuilding.

%description control
This package contains control rules for password strength checking library.
See control(8) for details.

%description -n lib%name
libpasswdqc is a simple password strength checking library.
In addition to checking regular passwords, it offers support
for passphrases and can provide randomly generated passwords.
All features are optional and can be (re-)configured without
rebuilding.

This package contains shared passwdqc library.

%description -n lib%name-devel
libpasswdqc is a simple password strength checking library.
In addition to checking regular passwords, it offers support
for passphrases and can provide randomly generated passwords.
All features are optional and can be (re-)configured without
rebuilding.

This package contains development library and header file
needed for building passwdqc-aware applications.

%description utils
passwdqc is a simple password strength checking library, utilities and
module for PAM-aware password changing programs, such as passwd(1).
In addition to checking regular passwords, it offers support for
passphrases and can provide randomly generated passwords.
All features are optional and can be (re-)configured without rebuilding.

This package contains password strength checking utilities.

%description -n %pam_name
pam_passwdqc is a simple password strength checking module for
PAM-aware password changing programs, such as passwd(1).
In addition to checking regular passwords, it offers support
for passphrases and can provide randomly generated passwords.
All features are optional and can be (re-)configured without
rebuilding.

%prep
%setup -q -n %name-%version-%release

%build
%make_build CFLAGS="%optflags %optflags_shared -Werror -W"

%install
%make_install install DESTDIR=%buildroot \
SHARED_LIBDIR=/%_lib DEVEL_LIBDIR=%_libdir SECUREDIR=/%_lib/security
install -pD -m755 passwdqc.control \
       %buildroot%_controldir/passwdqc-enforce

%pre -n lib%name
%pre_control passwdqc-enforce

%post -n lib%name
%post_control -s users passwdqc-enforce

%files control
%config %_controldir/*

%files -n lib%name
%config(noreplace) /etc/passwdqc.conf
/%_lib/lib*.so*
%doc LICENSE README PLATFORMS

%files -n lib%name-devel
%_libdir/lib*.so
%_includedir/*.h

%files -n %pam_name
/%_lib/security/*
%_mandir/man?/*

%files utils
%_bindir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin