Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37733779
en ru br
Репозитории ALT
S:2.0.3-alt1
5.1: 1.1.3-alt1
4.1: 1.1.0-alt0.5
4.0: 1.1.0-alt0.4
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: passwdqc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: passwdqc
Version: 1.1.3
Release: alt1

Summary: Pluggable passphrase quality checker
License: LGPLv2+
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 passphrase quality checker
License: GPLv2+
Group: System/Base
BuildArch: noarch

%package -n lib%name
Summary: Password quality checker shared library
License: LGPLv2+
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: LGPLv2+
Group: Development/C
Requires: lib%name = %version-%release

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

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

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

The package additionally includes libpasswdqc (a passphrase strength
checking library), pwqcheck (a standalone passphrase strength checking
program), and pwqgen (a standalone random passphrase generator program).

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

%description -n lib%name
The libpasswdqc is a passphrase 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
The libpasswdqc is a passphrase 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
This package contains passphrase strength checking utilities:
pwqcheck (a standalone passphrase strength checking program),
and pwqgen (a standalone random passphrase generator program).

%description -n %pam_name
pam_passwdqc is a passphrase strength checking module for
PAM-aware passphrase 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_lib='%optflags %optflags_shared -Werror -W -DLINUX_PAM' \
CFLAGS_bin='%optflags -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*
%_man5dir/*
%doc LICENSE README PLATFORMS

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

%files -n %pam_name
/%_lib/security/*
%_man8dir/*

%files utils
%_bindir/*
%_man1dir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin