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.

68 lines
2.5 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: http://www.infodrom.org/projects/sysklogd/download/sysklogd-1.5.1.tar.gz
  2. #MD5SUM: c70599ab0d037fde724f7210c2c8d7f8;SOURCES/sysklogd-1.5.1.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Sysklogd package contains programs for logging system messages
  5. Name: sysklogd
  6. Version: 1.5.1
  7. Release: 2
  8. License: GPLv2
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://www.infodrom.org/projects/%{name}/download/%{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. The Sysklogd package contains programs for logging system messages, such as those
  15. given by the kernel when unusual things happen.
  16. #-----------------------------------------------------------------------------
  17. %prep
  18. %setup -q -n %{NAME}-%{VERSION}
  19. sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c
  20. sed -i 's/union wait/int/' syslogd.c
  21. %build
  22. make VERBOSE=1
  23. %install
  24. install -vdm 755 %{buildroot}/etc
  25. install -vdm 755 %{buildroot}%{_mandir}/man{5,8}
  26. install -vdm 755 %{buildroot}%{_sbindir}
  27. install -vdm 755 %{buildroot}%{_includedir}/%{NAME}
  28. install -vdm 755 %{buildroot}/sbin
  29. make install prefix=%{buildroot} \
  30. TOPDIR=%{buildroot} \
  31. MANDIR=%{buildroot}%{_mandir} \
  32. BINDIR=%{buildroot}/sbin \
  33. MAN_USER=`id -nu` MAN_GROUP=`id -ng`
  34. #-----------------------------------------------------------------------------
  35. cat > %{buildroot}/etc/syslog.conf <<- EOF
  36. # Begin /etc/syslog.conf
  37. auth,authpriv.* -/var/log/auth.log
  38. *.*;auth,authpriv.none -/var/log/sys.log
  39. daemon.* -/var/log/daemon.log
  40. kern.* -/var/log/kern.log
  41. mail.* -/var/log/mail.log
  42. user.* -/var/log/user.log
  43. *.emerg *
  44. # End /etc/syslog.conf
  45. EOF
  46. #-----------------------------------------------------------------------------
  47. # Copy license/copying file
  48. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  49. #-----------------------------------------------------------------------------
  50. # Create file list
  51. find %{buildroot} -name '*.la' -delete
  52. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  53. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  54. sed -i '/man\/man/d' filelist.list
  55. sed -i '/\/usr\/share\/info/d' filelist.list
  56. #-----------------------------------------------------------------------------
  57. %files -f filelist.list
  58. %defattr(-,root,root)
  59. %config(noreplace) /etc/syslog.conf
  60. %{_mandir}/man5/*
  61. %{_mandir}/man8/*
  62. #-----------------------------------------------------------------------------
  63. %changelog
  64. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 1.5.1-2
  65. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.5.1-1
  66. - Initial build. First version