This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.8 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #TARBALL: https://github.com/shadow-maint/shadow/releases/download/4.8/shadow-4.8.1.tar.xz
  2. #MD5SUM: 4b05eff8a427cf50e615bda324b5bc45;SOURCES/shadow-4.8.1.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Shadow package contains programs for handling passwords in a secure way.
  5. Name: shadow
  6. Version: 4.8.1
  7. Release: 1
  8. License: Artistic
  9. Group: LFS/Base
  10. Source0: https://github.com/shadow-maint/shadow/releases/download/4.5/%{name}-%{version}.tar.xz
  11. Requires: filesystem
  12. %description
  13. The Shadow package contains programs for handling passwords in a secure way.
  14. #-----------------------------------------------------------------------------
  15. %prep
  16. %setup -q -n %{NAME}-%{VERSION}
  17. sed -i 's/groups$(EXEEXT) //' src/Makefile.in
  18. find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
  19. find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
  20. find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
  21. sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
  22. -e 's@/var/spool/mail@/var/mail@' etc/login.defs
  23. sed -i 's/1000/999/' etc/useradd
  24. %build
  25. ./configure \
  26. --sysconfdir=%{_sysconfdir} \
  27. --with-group-name-max-length=32
  28. make %{?_smp_mflags}
  29. %install
  30. make DESTDIR=%{buildroot} install
  31. install -vdm 755 %{buildroot}/bin
  32. #-----------------------------------------------------------------------------
  33. # Copy license/copying file
  34. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  35. #-----------------------------------------------------------------------------
  36. # Create file list
  37. rm -rf %{buildroot}/%{_mandir}/cs
  38. rm -rf %{buildroot}/%{_mandir}/da
  39. rm -rf %{buildroot}/%{_mandir}/de
  40. rm -rf %{buildroot}/%{_mandir}/fi
  41. rm -rf %{buildroot}/%{_mandir}/fr
  42. rm -rf %{buildroot}/%{_mandir}/hu
  43. rm -rf %{buildroot}/%{_mandir}/id
  44. rm -rf %{buildroot}/%{_mandir}/it
  45. rm -rf %{buildroot}/%{_mandir}/ja
  46. rm -rf %{buildroot}/%{_mandir}/ko
  47. rm -rf %{buildroot}/%{_mandir}/pl
  48. rm -rf %{buildroot}/%{_mandir}/pt_BR
  49. rm -rf %{buildroot}/%{_mandir}/ru
  50. rm -rf %{buildroot}/%{_mandir}/sv
  51. rm -rf %{buildroot}/%{_mandir}/tr
  52. rm -rf %{buildroot}/%{_mandir}/zh_CN
  53. rm -rf %{buildroot}/%{_mandir}/zh_TW
  54. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  55. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  56. sed -i '/man/d' filelist.list
  57. #-----------------------------------------------------------------------------
  58. %files -f filelist.list
  59. %defattr(-,root,root)
  60. %{_mandir}/man1/*
  61. %{_mandir}/man3/*
  62. %{_mandir}/man5/*
  63. %{_mandir}/man8/*
  64. %post
  65. pwconv
  66. grpconv
  67. #-----------------------------------------------------------------------------
  68. %changelog
  69. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 4.8.1-1
  70. * Tue Mar 26 2019 baho-utot <baho-utot@columbus.rr.com> 4.6-1
  71. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 4.5-1
  72. - Initial build. First version