70 lines
2.5 KiB
RPMSpec
70 lines
2.5 KiB
RPMSpec
#TARBALL: http://www.infodrom.org/projects/sysklogd/download/sysklogd-1.5.1.tar.gz
|
|
#MD5SUM: c70599ab0d037fde724f7210c2c8d7f8;SOURCES/sysklogd-1.5.1.tar.gz
|
|
#-----------------------------------------------------------------------------
|
|
Summary: The Sysklogd package contains programs for logging system messages
|
|
Name: sysklogd
|
|
Version: 1.5.1
|
|
Release: 1
|
|
License: GPLv2
|
|
URL: Any
|
|
Group: LFS/Base
|
|
Vendor: Elizabeth
|
|
Source0: http://www.infodrom.org/projects/sysklogd/download/%{name}-%{version}.tar.gz
|
|
Requires: filesystem
|
|
%description
|
|
The Sysklogd package contains programs for logging system messages, such as those
|
|
given by the kernel when unusual things happen.
|
|
#-----------------------------------------------------------------------------
|
|
%prep
|
|
%setup -q -n %{NAME}-%{VERSION}
|
|
sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c
|
|
sed -i 's/union wait/int/' syslogd.c
|
|
%build
|
|
make VERBOSE=1
|
|
%install
|
|
install -vdm 755 %{buildroot}/etc
|
|
install -vdm 755 %{buildroot}%{_mandir}/man{5,8}
|
|
install -vdm 755 %{buildroot}%{_sbindir}
|
|
install -vdm 755 %{buildroot}%{_includedir}/%{NAME}
|
|
install -vdm 755 %{buildroot}/sbin
|
|
make install prefix=%{buildroot} \
|
|
TOPDIR=%{buildroot} \
|
|
MANDIR=%{buildroot}%{_mandir} \
|
|
BINDIR=%{buildroot}/sbin \
|
|
MAN_USER=`id -nu` MAN_GROUP=`id -ng`
|
|
#-----------------------------------------------------------------------------
|
|
cat > %{buildroot}/etc/syslog.conf <<- EOF
|
|
# Begin /etc/syslog.conf
|
|
|
|
auth,authpriv.* -/var/log/auth.log
|
|
*.*;auth,authpriv.none -/var/log/sys.log
|
|
daemon.* -/var/log/daemon.log
|
|
kern.* -/var/log/kern.log
|
|
mail.* -/var/log/mail.log
|
|
user.* -/var/log/user.log
|
|
*.emerg *
|
|
|
|
# End /etc/syslog.conf
|
|
EOF
|
|
#-----------------------------------------------------------------------------
|
|
# Copy license/copying file
|
|
install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
|
|
#-----------------------------------------------------------------------------
|
|
# Create file list
|
|
# rm %{buildroot}%{_infodir}/dir
|
|
find %{buildroot} -name '*.la' -delete
|
|
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
|
|
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
|
|
sed -i '/man\/man/d' filelist.rpm
|
|
sed -i '/\/usr\/share\/info/d' filelist.rpm
|
|
#-----------------------------------------------------------------------------
|
|
%files -f filelist.rpm
|
|
%defattr(-,root,root)
|
|
%config(noreplace) /etc/syslog.conf
|
|
%{_mandir}/man5/*
|
|
%{_mandir}/man8/*
|
|
#-----------------------------------------------------------------------------
|
|
%changelog
|
|
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.5.1-1
|
|
- Initial build. First version
|