Compare commits
10 Commits
4.11.1-1ma
...
main
Author | SHA1 | Date | |
---|---|---|---|
5f49d15b72 | |||
fe5df43bd8 | |||
9c2072ccb0 | |||
4cdd25dd0b | |||
2d6ed1fbce | |||
d63c33b043 | |||
8dd3917c75 | |||
a01b3737fa | |||
b90a1da8dd | |||
0a236705d8 |
7
shadow-useradd
Normal file
7
shadow-useradd
Normal file
@@ -0,0 +1,7 @@
|
||||
# useradd defaults file
|
||||
GROUP=100
|
||||
HOME=/home
|
||||
INACTIVE=-1
|
||||
EXPIRE=
|
||||
SHELL=/bin/bash
|
||||
SKEL=/etc/skel
|
150
shadow.spec
150
shadow.spec
@@ -1,14 +1,15 @@
|
||||
%define shadowgroupid 15
|
||||
%define mailgroupid 72
|
||||
Summary: Utilities for managing shadow password files and user/group accounts
|
||||
Name: shadow
|
||||
Version: 4.11.1
|
||||
Version: 4.18.0
|
||||
Group: Applications/Security
|
||||
Release: 1mamba
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://github.com/shadow-maint/shadow
|
||||
Source0: https://github.com/shadow-maint/shadow.git/v%{version}/shadow-%{version}.tar.bz2
|
||||
Source0: https://github.com/shadow-maint/shadow.git/%{version}/shadow-%{version}.tar.bz2
|
||||
Source1: shadow-useradd
|
||||
Source2: shadow-pam-shadow
|
||||
Source3: shadow-pam-useradd
|
||||
@@ -27,15 +28,11 @@ BuildRequires: glibc-devel
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: libattr-devel
|
||||
BuildRequires: libaudit-devel
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: libcrack-devel
|
||||
BuildRequires: libmd-devel
|
||||
BuildRequires: libpam-devel
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: libsemanage-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: libxcrypt-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: skey-devel
|
||||
BuildRequires: libsemanage-devel >= 3.3
|
||||
Requires: pam >= 0.77
|
||||
Provides: shadowtool
|
||||
@@ -44,7 +41,15 @@ Obsoletes: pwdutils < 4.9
|
||||
Provides: shadow-common
|
||||
Obsoletes: shadow-common <= 4.9-1mamba
|
||||
Provides: /bin/groups
|
||||
|
||||
Provides: /usr/sbin/adduser
|
||||
Provides: /usr/sbin/useradd
|
||||
Provides: /usr/sbin/userdel
|
||||
Provides: /usr/sbin/usermod
|
||||
Provides: /usr/sbin/groupadd
|
||||
Provides: /usr/sbin/groupdel
|
||||
Provides: /usr/sbin/groupmod
|
||||
Provides: group(mail)
|
||||
Provides: group(shadow)
|
||||
|
||||
%description
|
||||
The shadow package includes the necessary programs for converting UNIX password files to the shadow password format, plus programs for managing user and group accounts.
|
||||
@@ -78,20 +83,32 @@ Requires: libsubid = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Sub-id library provided with shadow package.
|
||||
This is the development package.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch5 -p1
|
||||
%patch 5 -p1
|
||||
./autogen.sh
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-libpam \
|
||||
--sbindir=%{_bindir} \
|
||||
--disable-account-tools-setuid \
|
||||
--enable-lastlog \
|
||||
--enable-logind=no \
|
||||
--enable-man \
|
||||
--enable-shadowgrp \
|
||||
--enable-shared \
|
||||
--with-libcrack \
|
||||
--with-skey \
|
||||
--enable-man
|
||||
--with-audit \
|
||||
--with-bcrypt \
|
||||
--with-group-name-max-length=32 \
|
||||
--with-libpam \
|
||||
--with-selinux \
|
||||
--with-sha-crypt \
|
||||
--with-yescrypt \
|
||||
--without-libbsd \
|
||||
--without-libcrack \
|
||||
--without-nscd \
|
||||
--without-sssd \
|
||||
--without-su
|
||||
|
||||
%make
|
||||
|
||||
@@ -140,31 +157,15 @@ cp %{SOURCE3} %{buildroot}%{_sysconfdir}/pam.d/groupmod
|
||||
cp %{SOURCE5} %{buildroot}%{_sysconfdir}/pam.d/passwd
|
||||
cp %{SOURCE6} %{buildroot}%{_sysconfdir}/pam.d/login
|
||||
|
||||
#touch %{buildroot}%{_sysconfdir}/shadow
|
||||
# The installation script doesn't actually use the configured paths
|
||||
mv -v %{buildroot}/usr/sbin/* %{buildroot}%{_bindir}/
|
||||
|
||||
# remove conflicting su man still installed
|
||||
rm -f %{buildroot}%{_mandir}/man1/su.1*
|
||||
rm -f %{buildroot}%{_mandir}/*/man1/su.1*
|
||||
|
||||
%find_lang shadow --all-name --with-man
|
||||
|
||||
#for l in cs da de fi fr hu id it ja ko pl pt_BR ru sv tr zh_CN zh_TW; do
|
||||
# for m in man1/groups.1 man5/faillog.5 man8/lastlog.8 man8/newusers.8; do
|
||||
# [ -e %{buildroot}%{_mandir}/$l/$m ] && \
|
||||
# echo "%lang(%l) %{_mandir}/$l/$m*" >> shadow.lang
|
||||
# done
|
||||
# for m in `ls %{buildroot}%{_mandir}/$l/*/*`; do
|
||||
# m1=`echo $m | sed "s|%{buildroot}||"`
|
||||
# grep $m1 shadow.lang || \
|
||||
# echo "%lang(%l) /${m1}*" >> shadow-main.man
|
||||
# done
|
||||
#done
|
||||
#for m in man1/groups.1 man5/faillog.5 man8/lastlog.8 man8/newusers.8; do
|
||||
# [ -e %{buildroot}%{_mandir}/$m ] && \
|
||||
# echo "%{_mandir}/$m*" >> shadow.lang
|
||||
#done
|
||||
#for m in `ls %{buildroot}%{_mandir}/*/*\.[1-9]`; do
|
||||
# m1=`echo $m | sed "s|%{buildroot}||"`
|
||||
# grep $m1 shadow.lang || \
|
||||
# echo "/${m1}*" >> shadow-main.man
|
||||
#done
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
@@ -177,11 +178,11 @@ if [ ! -e /etc/shadow ]; then
|
||||
chmod 0640 /etc/shadow
|
||||
chgrp shadow /etc/shadow
|
||||
fi
|
||||
groupadd mail -g %{mailgroupid} 2>/dev/null || :
|
||||
:
|
||||
|
||||
%files -f shadow.lang
|
||||
%defattr(-,root,root)
|
||||
#%attr(640,root,shadow) %config(noreplace) %{_sysconfdir}/shadow
|
||||
%dir %{_sysconfdir}/default
|
||||
%config(noreplace) %{_sysconfdir}/default/useradd
|
||||
%config(noreplace) %{_sysconfdir}/limits
|
||||
@@ -198,28 +199,48 @@ fi
|
||||
%attr(644,root,root) %config /etc/pam.d/userdel
|
||||
%attr(644,root,root) %config /etc/pam.d/usermod
|
||||
%{_bindir}/chage
|
||||
%{_bindir}/chgpasswd
|
||||
%{_bindir}/chpasswd
|
||||
%{_bindir}/expiry
|
||||
%{_bindir}/faillog
|
||||
%{_bindir}/getsubids
|
||||
%{_bindir}/gpasswd
|
||||
%{_bindir}/groups
|
||||
%{_bindir}/groupadd
|
||||
%{_bindir}/groupdel
|
||||
%{_bindir}/groupmems
|
||||
%{_bindir}/groupmod
|
||||
%{_bindir}/grpck
|
||||
%{_bindir}/grpconv
|
||||
%{_bindir}/grpunconv
|
||||
%{_bindir}/lastlog
|
||||
%{_bindir}/logoutd
|
||||
%{_bindir}/newgidmap
|
||||
%{_bindir}/newuidmap
|
||||
%{_bindir}/newgrp
|
||||
%{_bindir}/newusers
|
||||
%{_bindir}/passwd
|
||||
%{_bindir}/pwck
|
||||
%{_bindir}/pwconv
|
||||
%{_bindir}/pwunconv
|
||||
%{_bindir}/sg
|
||||
%{_sbindir}/*
|
||||
%{_bindir}/useradd
|
||||
%{_bindir}/userdel
|
||||
%{_bindir}/usermod
|
||||
%{_bindir}/vigr
|
||||
%{_bindir}/vipw
|
||||
%{_mandir}/man1/*.1*
|
||||
%{_mandir}/man3/*.3*
|
||||
%{_mandir}/man5/*.5*
|
||||
%{_mandir}/man8/*.8*
|
||||
%exclude %{_sbindir}/nologin
|
||||
%exclude %{_bindir}/nologin
|
||||
%exclude %{_mandir}/man1/chfn.1*
|
||||
%exclude %{_mandir}/man1/chsh.1*
|
||||
%exclude %{_mandir}/man1/login.1*
|
||||
%exclude %{_mandir}/man1/su.1*
|
||||
%exclude %{_mandir}/man8/nologin.8*
|
||||
%exclude %{_mandir}/*/man1/chfn.1*
|
||||
%exclude %{_mandir}/*/man1/chsh.1*
|
||||
%exclude %{_mandir}/*/man1/login.1*
|
||||
%exclude %{_mandir}/*/man8/nologin.8*
|
||||
|
||||
%files extra
|
||||
%defattr(-,root,root)
|
||||
@@ -228,17 +249,18 @@ fi
|
||||
%attr(644,root,root) %config /etc/pam.d/login
|
||||
%attr(644,root,root) %config /etc/pam.d/chfn
|
||||
%attr(644,root,root) %config /etc/pam.d/chsh
|
||||
%attr(644,root,root) %config /etc/pam.d/su
|
||||
%{_bindir}/login
|
||||
%{_bindir}/su
|
||||
%{_bindir}/chfn
|
||||
%{_bindir}/chsh
|
||||
%{_sbindir}/nologin
|
||||
%{_bindir}/nologin
|
||||
%{_mandir}/man1/chfn.1*
|
||||
%{_mandir}/man1/chsh.1*
|
||||
%{_mandir}/man1/login.1*
|
||||
%{_mandir}/man1/su.1*
|
||||
%{_mandir}/man8/nologin.8*
|
||||
%{_mandir}/*/man1/chfn.1*
|
||||
%{_mandir}/*/man1/chsh.1*
|
||||
%{_mandir}/*/man1/login.1*
|
||||
%{_mandir}/*/man8/nologin.8*
|
||||
|
||||
%files -n libsubid
|
||||
%defattr(-,root,root)
|
||||
@@ -248,10 +270,44 @@ fi
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/shadow/subid.h
|
||||
%{_libdir}/libsubid.a
|
||||
%{_libdir}/libsubid.la
|
||||
%{_libdir}/libsubid.so
|
||||
|
||||
%changelog
|
||||
* Thu Jun 26 2025 Automatic Build System <autodist@openmamba.org> 4.18.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Mar 21 2025 Automatic Build System <autodist@openmamba.org> 4.17.4-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Feb 25 2025 Automatic Build System <autodist@openmamba.org> 4.17.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Feb 01 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 4.17.2-2mamba
|
||||
- remove su man conflicting with util-linux
|
||||
|
||||
* Fri Jan 31 2025 Automatic Build System <autodist@openmamba.org> 4.17.2-1mamba
|
||||
- automatic version update by autodist
|
||||
- provide groups shadow and mail
|
||||
- updated configure options
|
||||
|
||||
* Mon Oct 30 2023 Automatic Build System <autodist@mambasoft.it> 4.14.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Oct 06 2023 Automatic Build System <autodist@mambasoft.it> 4.14.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Aug 18 2023 Automatic Build System <autodist@mambasoft.it> 4.14.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat May 20 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.13-2mamba
|
||||
- move also translated man pages to -extra subpackage
|
||||
|
||||
* Mon Mar 13 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.13-1mamba
|
||||
- update to 4.13
|
||||
|
||||
* Tue Sep 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.1-2mamba
|
||||
- create mail group required to useradd when creating /var/mail/<user>
|
||||
|
||||
* Sat May 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.1-1mamba
|
||||
- update to 4.11.1
|
||||
|
||||
|
Reference in New Issue
Block a user