]> git.pld-linux.org Git - packages/pwdutils.git/blame - pwdutils.spec
- not finished, anyone?
[packages/pwdutils.git] / pwdutils.spec
CommitLineData
5fe84642
AM
1# TODO:
2# - finish it
3# - use the same *.pam files as in shadow.spec
4# - subpackage with rpasswd daemon
5#
6Summary: utilities to manage the passwd and shadow user informtation
7Name: pwdutils
8Version: 2.3.90
9Release: 1
10License: GPL
11Group: Applications/System
12Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/pwdutils-2.3.90.tar.bz2
13Patch0: %{name}-userbuild.patch
14BuildRequires: openssl-devel
15BuildRequires: openldap-devel
16BuildRequires: pam-devel
17BuildRequires: autoconf
18BuildRequires: automake
19BuildRequires: gettext-devel
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23pwdutils 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
39rm -rf $RPM_BUILD_ROOT
40
41%{__make} install \
42 DESTDIR=$RPM_BUILD_ROOT
43
44%find_lang %{name}
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%post
50%{!?_without_static:#}/sbin/ldconfig
51if [ ! -f /etc/shadow ]; then
52 %{_sbindir}/pwconv
53fi
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
This page took 0.044 seconds and 4 git commands to generate.