X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=shadow.spec;h=d77a4f46364e1145dac870fafb0fde8ee10d4228;hb=7d1fd0e85514c6a290a5625bc0b5635c608042f2;hp=dbeb39fe346783e7404a8e5e5d635c9cc0109cfa;hpb=3a16277bc49714fc7034b600f29fdd51ab450844;p=packages%2Fshadow.git diff --git a/shadow.spec b/shadow.spec index dbeb39f..d77a4f4 100644 --- a/shadow.spec +++ b/shadow.spec @@ -1,7 +1,6 @@ # TODO # - new files: # /etc/pam.d/chgpasswd -# /etc/pam.d/chpasswd # /etc/pam.d/newusers # /usr/sbin/chgpasswd # /usr/sbin/nologin @@ -12,7 +11,6 @@ # - update shadow-po-update.patch # - package or remove: # /etc/pam.d/chgpasswd -# /etc/pam.d/chpasswd # /etc/pam.d/groupmems # /etc/pam.d/newusers # /usr/sbin/chgpasswd @@ -91,29 +89,35 @@ Summary(pl.UTF-8): Narzędzia do obsługi mechanizmu ukrytych haseł Summary(pt_BR.UTF-8): Utilitários para o arquivo de senhas Shadow Summary(tr.UTF-8): Gölge parola dosyası araçları Name: shadow -Version: 4.0.18.1 -BuildRequires: useradd -g is broken, use pwdutils, or fix it: +Version: 4.1.5.1 +#BuildRequires: useradd -g is broken, use pwdutils, or fix it: # http://zie.pg.gda.pl/mailman/pipermail/shadow/2006-September/000395.html -Release: 0.13 +Release: 0.1 Epoch: 1 License: BSD Group: Applications/System -Source0: ftp://ftp.pld.org.pl/software/shadow/%{name}-%{version}.tar.bz2 -# Source0-md5: e7751d46ecf219c07ae0b028ab3335c6 -Source1: %{name}-login.defs -Source2: %{name}.useradd -Source3: chage.pamd -Source4: userdb.pamd -Source5: chsh.pamd -Source6: chfn.pamd -Source7: passwd.pamd -Source8: useradd.pamd +Source0: http://pkg-shadow.alioth.debian.org/releases/shadow-%{version}.tar.bz2 +# Source0-md5: a00449aa439c69287b6d472191dc2247 +Source1: http://pkg-shadow.alioth.debian.org/releases/shadow-%{version}.tar.bz2.sig +# Source1-md5: f16f31f6f5a607b1ffb1aa1aac4c37f2 +Source2: %{name}-login.defs +Source3: %{name}.useradd +Source10: chage.pamd +Source11: chfn.pamd +Source12: chgpasswd.pamd +Source13: chpasswd.pamd +Source14: chsh.pamd +Source15: groupadd.pamd +Source16: groupdel.pamd +Source17: groupmems.pamd +Source18: groupmod.pamd +Source19: newusers.pamd +Source20: passwd.pamd +Source21: useradd.pamd +Source22: userdel.pamd +Source23: usermod.pamd Patch0: %{name}-pld.patch -Patch1: %{name}-chage_expdays.patch -Patch2: %{name}-po-update.patch -Patch3: %{name}-removed-programs.patch -Patch4: %{name}-shared.patch -Patch5: %{name}-typo.patch +URL: http://pkg-shadow.alioth.debian.org/ BuildRequires: autoconf BuildRequires: automake >= 1.0 BuildRequires: gettext-devel >= 0.12.1 @@ -209,74 +213,57 @@ Programy nieczęsto używane. W małych systemach można je pominąć. %prep %setup -q %patch0 -p1 -%patch1 -p1 -#%patch2 -p1 -%patch3 -p1 -%{?with_shared:%patch4 -p1} -#%patch5 -p1 - -# ugh, too populated to patch -%{__sed} -i -e 's/instead DES/instead of DES/' src/chpasswd.c po/*.po - -rm -f po/stamp-po %build -%{__autoheader} -%{__gettextize} -%{__aclocal} -%{__autoconf} -%{__automake} %configure \ - --disable-desrpc \ %{?with_shared:--enable-shared --disable-static} \ --without-libcrack \ - --with-libcrypt \ + --without-tcb \ + --with-sha-crypt \ + --with-nscd \ + --with-audit \ + --with-acl \ + --with-attr \ --with-libpam \ - --with-md5crypt \ - --with-nls \ + --enable-nls \ + --enable-shadowgrp \ %{?with_selinux:--with-selinux} \ - --without-included-gettext + --with-group-name-max-length=32 + %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_sysconfdir}/{default,pam.d,security,skel/tmp} +install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{default,pam.d,security,skel/tmp}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs -install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd -install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/chage -install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/shadow -install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chsh -install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chfn -install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd -install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd -sed -e 's/usermod/userdel/' etc/pam.d/usermod > $RPM_BUILD_ROOT/etc/pam.d/userdel -install etc/pam.d/usermod $RPM_BUILD_ROOT/etc/pam.d/usermod -install etc/pam.d/groupadd $RPM_BUILD_ROOT/etc/pam.d/groupadd -install etc/pam.d/groupmod $RPM_BUILD_ROOT/etc/pam.d/groupmod -install etc/pam.d/groupdel $RPM_BUILD_ROOT/etc/pam.d/groupdel +# move nologin "shell" where useradd specifies it +%{__mv} $RPM_BUILD_ROOT%{_sbindir}/nologin $RPM_BUILD_ROOT/sbin + +install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs +install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd + +install %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/chage +install %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/chfn +install %{SOURCE12} $RPM_BUILD_ROOT/etc/pam.d/chgpasswd +install %{SOURCE13} $RPM_BUILD_ROOT/etc/pam.d/chpasswd +install %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/chsh +install %{SOURCE15} $RPM_BUILD_ROOT/etc/pam.d/groupadd +install %{SOURCE16} $RPM_BUILD_ROOT/etc/pam.d/groupdel +install %{SOURCE17} $RPM_BUILD_ROOT/etc/pam.d/groupmems +install %{SOURCE18} $RPM_BUILD_ROOT/etc/pam.d/groupmod +install %{SOURCE19} $RPM_BUILD_ROOT/etc/pam.d/newusers +install %{SOURCE20} $RPM_BUILD_ROOT/etc/pam.d/passwd +install %{SOURCE21} $RPM_BUILD_ROOT/etc/pam.d/useradd +install %{SOURCE22} $RPM_BUILD_ROOT/etc/pam.d/userdel +install %{SOURCE23} $RPM_BUILD_ROOT/etc/pam.d/usermod > $RPM_BUILD_ROOT%{_sysconfdir}/shadow > $RPM_BUILD_ROOT/etc/security/chfn.allow > $RPM_BUILD_ROOT/etc/security/chsh.allow -# vigr symlink is created by make install, but in wrong dir -ln -sf vipw $RPM_BUILD_ROOT%{_sbindir}/vigr - -# what's this for? -echo '.so newgrp.1' > $RPM_BUILD_ROOT%{_mandir}/it/man1/sg.1 - -%if !%{with shared} -# invalid static library -rm -f $RPM_BUILD_ROOT%{_libdir}/*.a -%endif - -# no -devel, be gone -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la - %find_lang %{name} %clean @@ -296,26 +283,34 @@ fi %attr(750,root,root) %dir %{_sysconfdir}/default %attr(640,root,root) %config %verify(not md5 mtime size) %{_sysconfdir}/default/* %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chage +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chgpasswd +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chpasswd +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/groupadd +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/groupdel +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/groupmems +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/groupmod +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/newusers %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/passwd -%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/shadow %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/useradd %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/usermod %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/userdel -%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/groupadd -%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/groupdel -%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/groupmod + %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/login.defs %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/shadow %dir /etc/skel %dir /etc/skel/tmp %{?with_shared:%attr(755,root,root) %{_libdir}/lib*.so.*.*} +%attr(755,root,root) /sbin/nologin %attr(755,root,root) %{_sbindir}/chpasswd +%attr(755,root,root) %{_sbindir}/chgpasswd %attr(755,root,root) %{_sbindir}/groupadd %attr(755,root,root) %{_sbindir}/groupdel +%attr(755,root,root) %{_sbindir}/groupmems %attr(755,root,root) %{_sbindir}/groupmod %attr(755,root,root) %{_sbindir}/grpck %attr(755,root,root) %{_sbindir}/grpconv %attr(755,root,root) %{_sbindir}/grpunconv +%attr(755,root,root) %{_sbindir}/logoutd %attr(755,root,root) %{_sbindir}/pwck %attr(755,root,root) %{_sbindir}/pwconv %attr(755,root,root) %{_sbindir}/pwunconv @@ -325,6 +320,7 @@ fi %attr(755,root,root) %{_sbindir}/vigr %attr(755,root,root) %{_sbindir}/vipw %attr(755,root,root) %{_bindir}/faillog +%attr(755,root,root) %{_bindir}/groups %attr(755,root,root) %{_bindir}/lastlog %attr(4755,root,root) %{_bindir}/passwd %{_mandir}/man1/passwd.1* @@ -367,13 +363,6 @@ fi %lang(de) %{_mandir}/de/man8/vipw.8* %lang(de) %{_mandir}/de/man5/passwd.5* -%lang(es) %{_mandir}/es/man1/passwd.1* -%lang(es) %{_mandir}/es/man5/passwd.5* -%lang(es) %{_mandir}/es/man8/vigr.8* -%lang(es) %{_mandir}/es/man8/vipw.8* - -%lang(fi) %{_mandir}/fi/man1/passwd.1* - %lang(fr) %{_mandir}/fr/man1/passwd.1* %lang(fr) %{_mandir}/fr/man5/faillog.5* %lang(fr) %{_mandir}/fr/man5/login.defs.5* @@ -447,30 +436,21 @@ fi %lang(ko) %{_mandir}/ko/man8/vigr.8* %lang(ko) %{_mandir}/ko/man8/vipw.8* -%lang(pl) %{_mandir}/pl/man1/passwd.1* +%lang(pl) %{_mandir}/pl/man1/groups.1* %lang(pl) %{_mandir}/pl/man5/faillog.5* -%lang(pl) %{_mandir}/pl/man5/login.defs.5* -%lang(pl) %{_mandir}/pl/man5/passwd.5* -%lang(pl) %{_mandir}/pl/man5/shadow.5* -%lang(pl) %{_mandir}/pl/man5/suauth.5* %lang(pl) %{_mandir}/pl/man8/faillog.8* %lang(pl) %{_mandir}/pl/man8/groupadd.8* %lang(pl) %{_mandir}/pl/man8/groupdel.8* +%lang(pl) %{_mandir}/pl/man8/groupmems.8* %lang(pl) %{_mandir}/pl/man8/groupmod.8* %lang(pl) %{_mandir}/pl/man8/grpck.8* -%lang(pl) %{_mandir}/pl/man8/grpconv.8* -%lang(pl) %{_mandir}/pl/man8/grpunconv.8* %lang(pl) %{_mandir}/pl/man8/lastlog.8* -%lang(pl) %{_mandir}/pl/man8/pwck.8* -%lang(pl) %{_mandir}/pl/man8/pwconv.8* -%lang(pl) %{_mandir}/pl/man8/pwunconv.8* -%lang(pl) %{_mandir}/pl/man8/useradd.8* +%lang(pl) %{_mandir}/pl/man8/logoutd.8* %lang(pl) %{_mandir}/pl/man8/userdel.8* %lang(pl) %{_mandir}/pl/man8/usermod.8* %lang(pl) %{_mandir}/pl/man8/vigr.8* %lang(pl) %{_mandir}/pl/man8/vipw.8* -# FIXME change to -> pt? %lang(pt_BR) %{_mandir}/pt_BR/man5/passwd.5* %lang(pt_BR) %{_mandir}/pt_BR/man5/shadow.5* %lang(pt_BR) %{_mandir}/pt_BR/man8/groupadd.8* @@ -558,8 +538,6 @@ fi %lang(de) %{_mandir}/de/man1/chsh.1* %lang(de) %{_mandir}/de/man1/newgrp.1* -%lang(es) %{_mandir}/es/man1/newgrp.1* - %lang(fi) %{_mandir}/fi/man1/chfn.1* %lang(fi) %{_mandir}/fi/man1/chsh.1* @@ -619,14 +597,10 @@ fi %lang(ru) %{_mandir}/ru/man8/newusers.8* %lang(pl) %{_mandir}/pl/man1/chage.1* -%lang(pl) %{_mandir}/pl/man1/chfn.1* %lang(pl) %{_mandir}/pl/man1/chsh.1* %lang(pl) %{_mandir}/pl/man1/expiry.1* -%lang(pl) %{_mandir}/pl/man1/gpasswd.1* %lang(pl) %{_mandir}/pl/man1/newgrp.1* %lang(pl) %{_mandir}/pl/man1/sg.1* -%lang(pl) %{_mandir}/pl/man8/chpasswd.8* -%lang(pl) %{_mandir}/pl/man8/newusers.8* %lang(pt_BR) %{_mandir}/pt_BR/man1/gpasswd.1*