1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
%define _group chkpwd %define _libexecdir %_prefix/libexec Name: chkpwd-pam Version: 0.1.1.1 Release: alt1 Summary: PAM user password checker License: GPLv3 Group: System/Base Source: %name-%version.tar %define _bindir %_libexecdir/%name %define lockfilesdir %_lockdir/%name BuildRequires: pam_userpass-devel %description Tool for check user password through PAM. %prep %setup -q %build %make_build CFLAGS="%optflags" %install install -d -m 0755 %buildroot{%_bindir,%lockfilesdir,%_tmpfilesdir,%_sysconfdir/pam.d} install -m 0755 %name %buildroot%_bindir/ install -m 0644 userpass.pamd %buildroot%_sysconfdir/pam.d/userpass echo 'd %lockfilesdir 1770 root %_group' > %buildroot%_tmpfilesdir/%name.conf %files %dir %_bindir %attr(2711,root,%_group) %_bindir/* %attr(1770,root,%_group) %dir %lockfilesdir %_tmpfilesdir/%name.conf %_sysconfdir/pam.d/* %changelog * Tue Apr 09 2013 Led <led@altlinux.ru> 0.1.1.1-alt1 - chkpwd-pam.c: fixed lockdir path * Thu Apr 04 2013 Led <led@altlinux.ru> 0.1.1-alt1 - 0.1.1: + add throttle chkpwd-pam invocations to avoid abusing it for bruteforcing the password - add systemd support * Wed Apr 03 2013 Led <led@altlinux.ru> 0.1.0-alt2 - moved chkpwd-pam to separate directory * Tue Apr 02 2013 Led <led@altlinux.ru> 0.1.0-alt1 - initial build