]> git.pld-linux.org Git - packages/pwdutils.git/blob - pwdutils.spec
- added sg hardlink
[packages/pwdutils.git] / pwdutils.spec
1 Summary:        Utilities to manage the passwd and shadow user information
2 Summary(pl):    Narzêdzia do zarz±dzania informacjami o u¿ytkownikach z passwd i shadow
3 Name:           pwdutils
4 Version:        2.6.4
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
9 # Source0-md5:  d2f4313ed1e8f40f47f336f6340eef54
10 Source1:        %{name}.useradd
11 Source2:        %{name}.rpasswdd.init
12 Source3:        %{name}.login.defs
13 Source4:        chage.pamd
14 Source5:        chfn.pamd
15 Source6:        chsh.pamd
16 Source7:        passwd.pamd
17 Source8:        useradd.pamd
18 Source9:        userdb.pamd
19 URL:            http://www.thkukuk.de/pam/pwdutils/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  gcc >= 5:3.2
23 BuildRequires:  gettext-devel
24 BuildRequires:  libselinux-devel
25 BuildRequires:  openldap-devel
26 BuildRequires:  openssl-devel >= 0.9.7d
27 BuildRequires:  openslp-devel
28 BuildRequires:  pam-devel
29 BuildRequires:  sed >= 4.0
30 Provides:       shadow = 2:%{version}-%{release}
31 Provides:       shadow-extras = 2:%{version}-%{release}
32 Obsoletes:      shadow
33 Obsoletes:      shadow-extras
34 Conflicts:      util-linux < 2.12-10
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 # for pam module in /%{_lib}/security
38 %define         _libdir         /%{_lib}
39
40 %description
41 pwdutils is a collection of utilities to manage the passwd and shadow
42 user information. The difference to the shadow suite is that these
43 utilities can also modify the information stored in NIS, NIS+, or
44 LDAP. PAM is used for user authentication and changing the pasword. It
45 contains passwd, chage, chfn, chsh, and a daemon for changing the
46 password on a remote machine over a secure SSL connection. The daemon
47 also uses PAM so that it can change passwords independent of where
48 they are stored.
49
50 %description -l pl
51 pwdutils to zestaw narzêdzi do zarz±dzania informacjami o
52 u¿ytkownikach z passwd i shadow. Ró¿nica w stosunku do pakietu shadow
53 polega na tym, ¿e te narzêdzia mog± tak¿e modyfikowaæ informacje
54 zapisane w bazie NIS, NIS+ lub LDAP. PAM jest u¿ywany do
55 uwierzytelniania u¿ytkowników i zmiany hase³. Zestaw zawiera passwd,
56 chage, chfn, chsh oraz demona do zmiany has³a na zdalnej maszynie po
57 bezpiecznym po³±czeniu SSL. Demon tak¿e u¿ywa PAM, wiêc mo¿na zmieniaæ
58 has³a niezale¿nie od tego, gdzie s± przechowywane.
59
60 %package -n rpasswdd
61 Summary:        Remote password update daemon
62 Summary(pl):    Demon do zdalnego uaktualniania hase³
63 Group:          Applications/System
64
65 %description -n rpasswdd
66 rpasswdd is a daemon that lets users change their passwords in the
67 presence of a directory service like NIS, NIS+ or LDAP over a secure
68 SSL connection. rpasswdd behaves like the normal passwd(1) program and
69 uses PAM for authentication and changing the password, so it can be
70 configured very flexibel for the local requirements.
71
72 %description -n rpasswdd -l pl
73 rpasswdd to demon pozwalaj±cy u¿ytkownikom zmieniaæ has³a w obecno¶ci
74 us³ug katalogowych takich jak NIS, NIS+ czy LDAP po bezpiecznym
75 po³±czeniu SSL. rpasswdd zachowuje siê tak, jak normalny program
76 passwd(1) i u¿ywam PAM do uwierzytelniania i zmiany hase³, wiêc mo¿e
77 byæ bardzo elastycznie konfigurowany dla lokalnych wymagañ.
78
79 %package -n pam-pam_rpasswd
80 Summary:        pam_rpasswd - PAM module to change remote password
81 Summary(pl):    pam_rpasswd - modu³ PAM do zdalnej zmiany has³a
82 Group:          Base
83 # rpasswd.conf is in base
84 Requires:       %{name} = %{version}-%{release}
85
86 %description -n pam-pam_rpasswd
87 The pam_rpasswd PAM module is for changing the password of user
88 accounts on a remote server over a secure SSL connection. It only
89 provides functionality for one PAM management group: password
90 changing.
91
92 %description -n pam-pam_rpasswd -l pl
93 Modu³ PAM pam_rpasswd s³u¿y do zmiany hase³ dla kont u¿ytkowników na
94 zdalnym serwerze po bezpiecznym po³±czeniu SSL. Udostêpnia
95 funkcjonalno¶æ tylko dla jednej grupy zarz±dzania PAM: zmiany hase³.
96
97 %prep
98 %setup -q
99
100 %build
101 sed -i -e 's#EXTRA_CFLAGS=.*#EXTRA_CFLAGS="-W -Wall"#g' configure.in
102 %{__gettextize}
103 %{__aclocal}
104 %{__autoconf}
105 %{__autoheader}
106 %{__automake}
107 %configure \
108         --enable-pam_rpasswd \
109         --enable-selinux \
110         --enable-slp \
111         --enable-ssl \
112         --enable-ldap \
113         --enable-nls \
114         --disable-rpath
115 %{__make}
116
117 %install
118 rm -rf $RPM_BUILD_ROOT
119 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pwdutils,skel}
120
121 %{__make} install \
122         DESTDIR=$RPM_BUILD_ROOT
123
124 mv $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT%{_sysconfdir}/pwdutils
125 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd
126 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpasswdd
127 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs
128
129 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/chage
130 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chfn
131 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chsh
132 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
133 install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd
134 install %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/shadow
135
136 :> $RPM_BUILD_ROOT/etc/shadow
137
138 %find_lang %{name}
139
140 %clean
141 rm -rf $RPM_BUILD_ROOT
142
143 %post
144 if [ ! -f /etc/shadow ]; then
145         %{_sbindir}/pwconv
146 fi
147
148 %post -n rpasswdd
149 /sbin/chkconfig --add rpasswdd
150 if [ -f /var/lock/subsys/rpasswdd ]; then
151         /etc/rc.d/init.d/rpasswdd restart 1>&2
152 else
153         echo "Run \"/etc/rc.d/init.d/rpasswdd start\" to start rpasswdd daemon."
154 fi
155
156 %preun -n rpasswdd
157 if [ "$1" = "0" ]; then
158         if [ -f /var/lock/subsys/rpasswdd ]; then
159                 /etc/rc.d/init.d/rpasswdd stop 1>&2
160         fi
161         /sbin/chkconfig --del rpasswdd
162 fi
163
164 %files -f %{name}.lang
165 %defattr(644,root,root,755)
166 %doc ChangeLog NEWS README THANKS TODO
167 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %ghost %{_sysconfdir}/shadow
168 %attr(750,root,root) %dir %{_sysconfdir}/default
169 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/default/*
170 %attr(750,root,root) %dir %{_sysconfdir}/%{name}
171 %attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/*.local
172 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chage
173 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chfn
174 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chsh
175 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/passwd
176 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/useradd
177 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/shadow
178 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/login.defs
179 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/rpasswd.conf
180 %dir /etc/skel
181 %attr(755,root,root) %{_bindir}/chage
182 %attr(4755,root,root) %{_bindir}/chfn
183 %attr(4755,root,root) %{_bindir}/chsh
184 %attr(4755,root,root) %{_bindir}/expiry
185 %attr(4755,root,root) %{_bindir}/gpasswd
186 %attr(755,root,root) %{_bindir}/newgrp
187 %attr(4755,root,root) %{_bindir}/passwd
188 %attr(755,root,root) %{_bindir}/rpasswd
189 %attr(755,root,root) %{_bindir}/sg
190 %attr(755,root,root) %{_sbindir}/chpasswd
191 %attr(755,root,root) %{_sbindir}/groupadd
192 %attr(755,root,root) %{_sbindir}/groupdel
193 %attr(755,root,root) %{_sbindir}/groupmod
194 %attr(755,root,root) %{_sbindir}/grpconv
195 %attr(755,root,root) %{_sbindir}/grpck
196 %attr(755,root,root) %{_sbindir}/grpunconv
197 %attr(755,root,root) %{_sbindir}/pwconv
198 %attr(755,root,root) %{_sbindir}/pwck
199 %attr(755,root,root) %{_sbindir}/pwunconv
200 %attr(755,root,root) %{_sbindir}/rpasswdd
201 %attr(755,root,root) %{_sbindir}/useradd
202 %attr(755,root,root) %{_sbindir}/userdel
203 %attr(755,root,root) %{_sbindir}/usermod
204 %attr(755,root,root) %{_sbindir}/vigr
205 %attr(755,root,root) %{_sbindir}/vipw
206 %{_mandir}/man?/*
207 %exclude %{_mandir}/man8/rpasswdd*
208 %exclude %{_mandir}/man8/pam_rpasswd.8*
209
210 %files -n rpasswdd
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_sbindir}/rpasswdd
213 %attr(754,root,root) /etc/rc.d/init.d/rpasswdd
214 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/rpasswd
215 %{_mandir}/man8/rpasswdd*
216
217 %files -n pam-pam_rpasswd
218 %defattr(644,root,root,755)
219 %attr(755,root,root) /%{_lib}/security/pam_rpasswd.so
220 %{_mandir}/man8/pam_rpasswd.8*
This page took 0.104659 seconds and 4 git commands to generate.