]>
Commit | Line | Data |
---|---|---|
1 | Summary: A password/passphrase strength checking and policy enforcement toolset | |
2 | Summary(pl.UTF-8): Narzędzia do sprawdzania i wymuszania polityki jakości haseł | |
3 | Name: passwdqc | |
4 | Version: 1.3.1 | |
5 | Release: 1 | |
6 | License: BSD | |
7 | Group: Base | |
8 | Source0: http://www.openwall.com/passwdqc/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 3878b57bcd3fdbcf3d4b362dbc6228b9 | |
10 | URL: http://www.openwall.com/passwdqc/ | |
11 | BuildRequires: pam-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | passwdqc is a password/passphrase strength checking and policy | |
16 | enforcement toolset, including a PAM module (pam_passwdqc), | |
17 | command-line programs (pwqcheck and pwqgen), and a library | |
18 | (libpasswdqc). | |
19 | ||
20 | pwqcheck and pwqgen are standalone password/passphrase strength | |
21 | checking and random passphrase generator programs, respectively, which | |
22 | are usable from scripts. | |
23 | ||
24 | libpasswdqc is the underlying library, which may also be used from | |
25 | third-party programs. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | passwdqc to zbiór narzędzi do sprawdzania jakości haseł i wymuszania | |
29 | jej polityki. Zawiera moduł PAM (pam_passwdqc), programy uruchamiane z | |
30 | linii poleceń (pwqcheck i pwqgen) oraz bibliotekę (libpasswdqc). | |
31 | ||
32 | pwqcheck oraz pwqgen to samodzielne programy do - odpowiednio - | |
33 | sprawdzania jakości hasła oraz generowania losowych haseł, nadające | |
34 | się do wykorzystania w skryptach. | |
35 | ||
36 | libpasswdqc to będąca ich podstawą biblioteka, którą można | |
37 | wykorzystywać także w innych programach. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for building passwdqc-aware applications | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | This package contains the header files needed for building | |
46 | passwdqc-aware applications. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
50 | wykorzystujących passwdqc. | |
51 | ||
52 | %package -n pam-pam_passwdqc | |
53 | Summary: Password quality-control PAM module | |
54 | Summary(pl.UTF-8): Moduł PAM do sprawdzania jakości haseł | |
55 | Group: Base | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description -n pam-pam_passwdqc | |
59 | The pam_passwdqc module is a simple password strength checking module | |
60 | for PAM, normally invoked on password changes by programs such as | |
61 | passwd(1). In addition to checking regular passwords, it's capable of | |
62 | enforcing a policy, and offering ramdomly-generated passphrases, with | |
63 | all of these features being optional and easily (re)configurable. | |
64 | ||
65 | %description -n pam-pam_passwdqc -l pl.UTF-8 | |
66 | Moduł pam_passwdc to prosty moduł PAM do sprawdzania jakości haseł, | |
67 | zwykle wywoływany przy zmianie hasła przez programy takie jak | |
68 | passwd(1). Poza sprawdzaniem zwykłych haseł, potrafi wymuszać ich | |
69 | politykę i oferuje hasła losowo generowane. Wszystkie te elementy są | |
70 | opcjonalne i łatwo (re)konfigurowalne. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | ||
75 | %build | |
76 | %{__make} \ | |
77 | CC="%{__cc}" \ | |
78 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W -DLINUX_PAM" \ | |
79 | LDFLAGS="%{rpmldflags}" | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT \ | |
86 | MANDIR=%{_mandir} \ | |
87 | SHARED_LIBDIR=/%{_lib} \ | |
88 | DEVEL_LIBDIR=%{_libdir} \ | |
89 | SECUREDIR=/%{_lib}/security | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %doc LICENSE README pwqcheck.php | |
100 | %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwdqc.conf | |
101 | %attr(755,root,root) /%{_lib}/libpasswdqc.so.0 | |
102 | %attr(755,root,root) %{_bindir}/pwqcheck | |
103 | %attr(755,root,root) %{_bindir}/pwqgen | |
104 | %{_mandir}/man1/pwqcheck.1* | |
105 | %{_mandir}/man1/pwqgen.1* | |
106 | %{_mandir}/man5/passwdqc.conf.5* | |
107 | ||
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{_libdir}/libpasswdqc.so | |
111 | %{_includedir}/passwdqc.h | |
112 | ||
113 | %files -n pam-pam_passwdqc | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) /%{_lib}/security/pam_passwdqc.so | |
116 | %{_mandir}/man8/pam_passwdqc.8* |