X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=shadow.spec;h=6bb0e5ae75bc80f41bdd960098a82a38e2faa8e3;hb=1e4373bf06b67f4b88cd354b9462e74945970f51;hp=ab458da3aa1e3f41e82c2bce32add93dc6f5370f;hpb=a9f467efba7d0653cbb5c452d37632ba210bc346;p=packages%2Fshadow.git diff --git a/shadow.spec b/shadow.spec index ab458da..6bb0e5a 100644 --- a/shadow.spec +++ b/shadow.spec @@ -1,27 +1,3 @@ -# TODO -# - /etc/login.defs contains options valid only when PAM is disabled: -# gpasswd -M chef_server chef_server -#configuration error - unknown item 'FAILLOG_ENAB' (notify administrator) -#configuration error - unknown item 'LASTLOG_ENAB' (notify administrator) -#configuration error - unknown item 'MAIL_CHECK_ENAB' (notify administrator) -#configuration error - unknown item 'OBSCURE_CHECKS_ENAB' (notify administrator) -#configuration error - unknown item 'PORTTIME_CHECKS_ENAB' (notify administrator) -#configuration error - unknown item 'QUOTAS_ENAB' (notify administrator) -#configuration error - unknown item 'MOTD_FILE' (notify administrator) -#configuration error - unknown item 'FTMP_FILE' (notify administrator) -#configuration error - unknown item 'NOLOGINS_FILE' (notify administrator) -#configuration error - unknown item 'ENV_HZ' (notify administrator) -#configuration error - unknown item 'PASS_MIN_LEN' (notify administrator) -#configuration error - unknown item 'SU_WHEEL_ONLY' (notify administrator) -#configuration error - unknown item 'CRACKLIB_DICTPATH' (notify administrator) -#configuration error - unknown item 'PASS_CHANGE_TRIES' (notify administrator) -#configuration error - unknown item 'PASS_ALWAYS_WARN' (notify administrator) -#configuration error - unknown item 'CHFN_AUTH' (notify administrator) -#configuration error - unknown item 'ENVIRON_FILE' (notify administrator) -# - sync pam files from pwdutils -# - tcb support? -# - ensure Conflicts with various packages (util-linux,sysvinit,coreutils) is up to date - # Conditional build: %bcond_without selinux # build without SE-Linux support %bcond_with shared # build with shared libshadow (linking with selinux is broken) @@ -34,15 +10,13 @@ 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.6 -#BuildRequires: useradd -g is broken, use pwdutils, or fix it: -# http://zie.pg.gda.pl/mailman/pipermail/shadow/2006-September/000395.html -Release: 0.1 +Version: 4.8.1 +Release: 2 Epoch: 1 License: BSD Group: Applications/System Source0: https://github.com/shadow-maint/shadow/releases/download/%{version}/%{name}-%{version}.tar.xz -# Source0-md5: b491fecbf1232632c32ff8f1437fd60e +# Source0-md5: 4b05eff8a427cf50e615bda324b5bc45 Source2: %{name}-login.defs Source3: %{name}.useradd Source10: chage.pamd @@ -59,9 +33,10 @@ Source20: passwd.pamd Source21: useradd.pamd Source22: userdel.pamd Source23: usermod.pamd -Patch0: %{name}-pld.patch +Patch0: %{name}-tld.patch # allow names with upper case letters or containing dot in the middle Patch1: %{name}-goodname.patch +Patch2: pam-login-delay.patch URL: https://github.com/shadow-maint/shadow BuildRequires: acl-devel BuildRequires: attr-devel @@ -143,18 +118,28 @@ arquivos-padrão UNIX de senha para o formato shadow. Várias páginas de manual estão também incluídas sobre estes utilitários e senhas shadow em geral. +%package -n uidmap +Summary: Programs to help use subuids +Group: Applications/System +Requires: setup >= 2.10.0 + +%description -n uidmap +These programs help unprivileged users to create uid and gid mappings +in user namespaces. + %prep %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build # NOTE: # - cracklib option refers to non-PAM passwd code # - skey referes to non-PAM pw_auth/passwd_check (login, su, chfn, chsh) code %configure \ - --bindir=/bin \ - --sbindir=/sbin \ + --bindir=%{_bindir} \ + --sbindir=%{_sbindir} \ --enable-shadowgrp \ %{?with_shared:--enable-shared --disable-static} \ --disable-silent-rules \ @@ -201,7 +186,7 @@ cp -p %{SOURCE23} $RPM_BUILD_ROOT/etc/pam.d/usermod > $RPM_BUILD_ROOT/etc/security/chfn.allow > $RPM_BUILD_ROOT/etc/security/chsh.allow -%{__rm} $RPM_BUILD_ROOT/{etc/pam.d,bin}/{login,su} +%{__rm} $RPM_BUILD_ROOT/{etc/pam.d,%{_bindir}}/{login,su} %{__rm} $RPM_BUILD_ROOT%{_mandir}/{,*/}man1/{login,su}.1* %{__rm} $RPM_BUILD_ROOT%{_mandir}/{,*/}man3/*.3* @@ -209,10 +194,10 @@ cp -p %{SOURCE23} $RPM_BUILD_ROOT/etc/pam.d/usermod %{__rm} $RPM_BUILD_ROOT%{_bindir}/lastlog %{__rm} $RPM_BUILD_ROOT%{_mandir}/{,*/}man8/lastlog.8* # packaged in coreutils -%{__rm} $RPM_BUILD_ROOT/bin/groups +%{__rm} $RPM_BUILD_ROOT%{_bindir}/groups %{__rm} $RPM_BUILD_ROOT%{_mandir}/{,*/}man1/groups.1* # packaged in util-linux -%{__rm} $RPM_BUILD_ROOT/sbin/nologin +%{__rm} $RPM_BUILD_ROOT%{_sbindir}/nologin %{__rm} $RPM_BUILD_ROOT%{_mandir}/{,*/}man*/nologin.8* %find_lang %{name} @@ -231,7 +216,6 @@ fi %files -f %{name}.lang %defattr(644,root,root,755) %doc ChangeLog NEWS TODO doc/{HOWTO,WISHLIST} -%attr(750,root,root) %dir %{_sysconfdir}/default %attr(640,root,root) %config %verify(not md5 mtime size) %{_sysconfdir}/default/useradd %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/chfn @@ -252,7 +236,6 @@ fi %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/chsh.allow %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(4755,root,root) %{_bindir}/chfn @@ -260,11 +243,9 @@ fi %attr(4755,root,root) %{_bindir}/expiry %attr(4755,root,root) %{_bindir}/gpasswd %attr(4755,root,root) %{_bindir}/passwd -%attr(755,root,root) %{_bindir}/chage +%attr(4755,root,root) %{_bindir}/chage %attr(755,root,root) %{_bindir}/faillog -%attr(755,root,root) %{_bindir}/newgidmap -%attr(755,root,root) %{_bindir}/newgrp -%attr(755,root,root) %{_bindir}/newuidmap +%attr(4755,root,root) %{_bindir}/newgrp %attr(755,root,root) %{_bindir}/sg %attr(755,root,root) %{_sbindir}/chgpasswd %attr(755,root,root) %{_sbindir}/chpasswd @@ -290,9 +271,7 @@ fi %{_mandir}/man1/chsh.1* %{_mandir}/man1/expiry.1* %{_mandir}/man1/gpasswd.1* -%{_mandir}/man1/newgidmap.1* %{_mandir}/man1/newgrp.1* -%{_mandir}/man1/newuidmap.1* %{_mandir}/man1/passwd.1* %{_mandir}/man1/sg.1* %{_mandir}/man5/faillog.5* @@ -301,8 +280,6 @@ fi %{_mandir}/man5/passwd.5* %{_mandir}/man5/shadow.5* %{_mandir}/man5/suauth.5* -%{_mandir}/man5/subgid.5* -%{_mandir}/man5/subuid.5* %{_mandir}/man8/chgpasswd.8* %{_mandir}/man8/chpasswd.8* %{_mandir}/man8/faillog.8* @@ -389,9 +366,7 @@ fi %lang(fr) %{_mandir}/fr/man1/chsh.1* %lang(fr) %{_mandir}/fr/man1/expiry.1* %lang(fr) %{_mandir}/fr/man1/gpasswd.1* -%lang(fr) %{_mandir}/fr/man1/newgidmap.1* %lang(fr) %{_mandir}/fr/man1/newgrp.1* -%lang(fr) %{_mandir}/fr/man1/newuidmap.1* %lang(fr) %{_mandir}/fr/man1/passwd.1* %lang(fr) %{_mandir}/fr/man1/sg.1* %lang(fr) %{_mandir}/fr/man5/faillog.5* @@ -400,8 +375,6 @@ fi %lang(fr) %{_mandir}/fr/man5/passwd.5* %lang(fr) %{_mandir}/fr/man5/shadow.5* %lang(fr) %{_mandir}/fr/man5/suauth.5* -%lang(fr) %{_mandir}/fr/man5/subgid.5* -%lang(fr) %{_mandir}/fr/man5/subuid.5* %lang(fr) %{_mandir}/fr/man8/chgpasswd.8* %lang(fr) %{_mandir}/fr/man8/chpasswd.8* %lang(fr) %{_mandir}/fr/man8/faillog.8* @@ -646,3 +619,16 @@ fi %lang(zh_TW) %{_mandir}/zh_TW/man8/useradd.8* %lang(zh_TW) %{_mandir}/zh_TW/man8/userdel.8* %lang(zh_TW) %{_mandir}/zh_TW/man8/usermod.8* + +%files -n uidmap +%defattr(644,root,root,755) +%attr(4755,root,root) %{_bindir}/newgidmap +%attr(4755,root,root) %{_bindir}/newuidmap +%{_mandir}/man1/newgidmap.1* +%{_mandir}/man1/newuidmap.1* +%{_mandir}/man5/subgid.5* +%{_mandir}/man5/subuid.5* +%lang(fr) %{_mandir}/fr/man1/newgidmap.1* +%lang(fr) %{_mandir}/fr/man1/newuidmap.1* +%lang(fr) %{_mandir}/fr/man5/subgid.5* +%lang(fr) %{_mandir}/fr/man5/subuid.5*