]>
Commit | Line | Data |
---|---|---|
5fe84642 AM |
1 | # TODO: |
2 | # - finish it | |
3 | # - use the same *.pam files as in shadow.spec | |
4 | # - subpackage with rpasswd daemon | |
5 | # | |
6 | Summary: utilities to manage the passwd and shadow user informtation | |
7 | Name: pwdutils | |
8 | Version: 2.3.90 | |
9 | Release: 1 | |
10 | License: GPL | |
11 | Group: Applications/System | |
12 | Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/pwdutils-2.3.90.tar.bz2 | |
13 | Patch0: %{name}-userbuild.patch | |
14 | BuildRequires: openssl-devel | |
15 | BuildRequires: openldap-devel | |
16 | BuildRequires: pam-devel | |
17 | BuildRequires: autoconf | |
18 | BuildRequires: automake | |
19 | BuildRequires: gettext-devel | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | pwdutils is a collection of utilities to manage the passwd and shadow user information. The difference to the shadow suite is that these utilities can also modify the information stored in NIS, NIS+, or LDAP. PAM is used for user authentication and changing the pasword. It contains passwd, chage, chfn, chsh, and a daemon for changing the password on a remote machine over a secure SSL connection. The daemon also uses PAM so that it can change passwords independent of where they are stored. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
27 | %patch0 -p1 | |
28 | ||
29 | %build | |
30 | %{__gettextize} | |
31 | %{__aclocal} | |
32 | %{__autoconf} | |
33 | %{__automake} | |
34 | %configure \ | |
35 | --disable-rpath | |
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %find_lang %{name} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %post | |
50 | %{!?_without_static:#}/sbin/ldconfig | |
51 | if [ ! -f /etc/shadow ]; then | |
52 | %{_sbindir}/pwconv | |
53 | fi | |
54 | ||
55 | %{!?_without_static:#}%postun -p /sbin/ldconfig | |
56 | ||
57 | %files -f %{name}.lang | |
58 | %defattr(644,root,root,755) | |
59 | %doc NEWS README THANKS TODO | |
60 | ||
61 | ||
62 | %attr(750,root,root) %dir %{_sysconfdir}/default | |
63 | %attr(640,root,root) %config %verify(not md5 size mtime) %{_sysconfdir}/default/* | |
64 | %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chage | |
65 | %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/passwd | |
66 | %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/shadow | |
67 | %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/useradd | |
68 | %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/login.defs | |
69 | %attr(600,root,root) %ghost %{_sysconfdir}/shadow | |
70 | %dir /etc/skel | |
71 | %{!?_without_static:#}%attr(755,root,root) %{_libdir}/lib* | |
72 | %attr(755,root,root) %{_sbindir}/chpasswd | |
73 | %attr(755,root,root) %{_sbindir}/group* | |
74 | %attr(755,root,root) %{_sbindir}/grpck | |
75 | %attr(755,root,root) %{_sbindir}/pwck | |
76 | %attr(755,root,root) %{_sbindir}/*conv | |
77 | %attr(4755,root,root) %{_bindir}/passwd |