]> git.pld-linux.org Git - packages/pwdutils.git/blobdiff - pwdutils.spec
- updated to 2.4.90 (SELinux support is nicer in permissive mode now; pwconv, grpconv...
[packages/pwdutils.git] / pwdutils.spec
index cb95486210e1441e1622f64ea30861fd0e0f0209..b3ff3fd5df1a2254fbad86b72bb9dae0c0d18c33 100644 (file)
@@ -1,19 +1,17 @@
 # TODO:
 # - finish and test it
-# - subpackage with rpasswd daemon
 #
 Summary:       Utilities to manage the passwd and shadow user information
 Summary(pl):   Narzêdzia do zarz±dzania informacjami o u¿ytkownikach z passwd i shadow
 Name:          pwdutils
-Version:       2.3.96
+Version:       2.4.90
 Release:       1
 License:       GPL
 Group:         Applications/System
 Source0:       ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
-# Source0-md5: 036233da82d9d54d6f99848a7e7ce843
+# Source0-md5: 8c53806b01d10fef9f21cdc4ce57490c
 Source1:       %{name}.useradd
-# missing in repo
-#Source2:      %{name}.rpasswdd.init
+Source2:       %{name}.rpasswdd.init
 Source3:       %{name}.login.defs
 Source4:       chage.pamd
 Source5:       chfn.pamd
@@ -23,11 +21,14 @@ Source8:    useradd.pamd
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: gettext-devel
+BuildRequires: libselinux-devel
 BuildRequires: openldap-devel
 BuildRequires: openssl-devel
 BuildRequires: pam-devel
 Obsoletes:     shadow
 Obsoletes:     shadow-extras
+Provides:      shadow
+Provides:      shadow-extras
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -50,6 +51,25 @@ chage, chfn, chsh oraz demona do zmiany has
 bezpiecznym po³±czeniu SSL. Demon tak¿e u¿ywa PAM, wiêc mo¿na zmieniaæ
 has³a niezale¿nie od tego, gdzie s± przechowywane.
 
+%package -n rpasswdd
+Summary:       Remote password update daemon
+Summary(pl):   Demon do zdalnego uaktualniania hase³
+Group:         Applications/System
+
+%description -n rpasswdd
+rpasswdd is a daemon that lets users change their passwords in the
+presence of a directory service like NIS, NIS+ or LDAP over a secure
+SSL connection. rpasswdd behaves like the normal passwd(1) program and
+uses PAM for authentication and changing the password, so it can be
+configured very flexibel for the local requirements.
+
+%description -n rpasswdd -l pl
+rpasswdd to demon pozwalaj±cy u¿ytkownikom zmieniaæ has³a w obecno¶ci
+us³ug katalogowych takich jak NIS, NIS+ czy LDAP po bezpiecznym
+po³±czeniu SSL. rpasswdd zachowuje siê tak, jak normalny program
+passwd(1) i u¿ywam PAM do uwierzytelniania i zmiany hase³, wiêc mo¿e
+byæ bardzo elastycznie konfigurowany dla lokalnych wymagañ.
+
 %prep
 %setup -q
 
@@ -57,8 +77,10 @@ has
 %{__gettextize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
+       --enable-selinux \
        --disable-rpath
 %{__make}
 
@@ -69,10 +91,10 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d/,pwdutils,skel}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-mv $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT/etc/pwdutils
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/default/useradd
-#install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpasswdd
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/login.defs
+mv $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT%{_sysconfdir}/pwdutils
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpasswdd
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs
 
 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/chage
 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chfn
@@ -80,6 +102,8 @@ install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chsh
 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
 install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd
 
+:> $RPM_BUILD_ROOT/etc/shadow
+
 %find_lang %{name}
 
 %clean
@@ -93,9 +117,26 @@ fi
 
 %postun -p /sbin/ldconfig
 
+%post -n rpasswdd
+/sbin/chkconfig --add rpasswdd
+if [ -f /var/lock/subsys/rpasswdd ]; then
+        /etc/rc.d/init.d/rpasswdd restart 1>&2
+else
+        echo "Run \"/etc/rc.d/init.d/rpasswdd start\" to start rpasswdd daemon."
+fi
+
+%preun -n rpasswdd
+if [ "$1" = "0" ]; then
+        if [ -f /var/lock/subsys/rpasswdd ]; then
+                /etc/rc.d/init.d/rpasswdd stop 1>&2
+        fi
+        /sbin/chkconfig --del rpasswdd
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc NEWS README THANKS TODO
+%doc ChangeLog NEWS README THANKS TODO
+%attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %ghost %{_sysconfdir}/shadow
 %attr(750,root,root) %dir %{_sysconfdir}/default
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/default/*
 %attr(750,root,root) %dir %{_sysconfdir}/%{name}
@@ -104,7 +145,6 @@ fi
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chfn
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chsh
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/passwd
-%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/rpasswd
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/useradd
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/login.defs
 %dir /etc/skel
@@ -112,15 +152,28 @@ fi
 %attr(4755,root,root) %{_bindir}/chfn
 %attr(4755,root,root) %{_bindir}/chsh
 %attr(4755,root,root) %{_bindir}/expiry
+%attr(4755,root,root) %{_bindir}/gpasswd
 %attr(4755,root,root) %{_bindir}/passwd
 %attr(755,root,root) %{_bindir}/rpasswd
 %attr(755,root,root) %{_sbindir}/chpasswd
 %attr(755,root,root) %{_sbindir}/groupadd
 %attr(755,root,root) %{_sbindir}/groupdel
+%attr(755,root,root) %{_sbindir}/groupmod
+%attr(755,root,root) %{_sbindir}/grpconv
+%attr(755,root,root) %{_sbindir}/pwconv
+%attr(755,root,root) %{_sbindir}/pwunconv
 %attr(755,root,root) %{_sbindir}/rpasswdd
 %attr(755,root,root) %{_sbindir}/useradd
 %attr(755,root,root) %{_sbindir}/userdel
+%attr(755,root,root) %{_sbindir}/usermod
 %attr(755,root,root) %{_sbindir}/vigr
 %attr(755,root,root) %{_sbindir}/vipw
 %{_mandir}/man?/*
-#%attr(754,root,root) /etc/rc.d/init.d/rpasswdd
+%exclude %{_mandir}/man8/rpasswdd*
+
+%files -n rpasswdd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/rpasswdd
+%attr(754,root,root) /etc/rc.d/init.d/rpasswdd
+%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/rpasswd
+%{_mandir}/man8/rpasswdd*
This page took 0.065089 seconds and 4 git commands to generate.