413 lines
15 KiB
RPMSpec
413 lines
15 KiB
RPMSpec
%define majorminor %(echo %version | cut -d. -f 1-2)
|
|
|
|
Name: syslog-ng
|
|
Version: 4.3.0
|
|
Release: 1mamba
|
|
Summary: A syslogd replacement with new functionality
|
|
Group: System/Servers
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/syslog-ng/syslog-ng
|
|
Source: https://github.com/balabit/syslog-ng.git/syslog-ng-%{version}/syslog-ng-%{version}.tar.bz2
|
|
#Source: http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/%{version}/source/syslog-ng_%{version}.tar.gz
|
|
Source1: syslog-ng.init
|
|
Source2: syslog-ng.conf
|
|
Source3: syslog-ng.logrotate
|
|
Source4: syslog-ng.sysconfig
|
|
Patch0: %{name}-3.2.4-Use_CAP_SYSLOG_instead_of_CAP_SYS_ADMIN_if_available.patch
|
|
Patch1: syslog-ng-3.4.1-systemd-service-fix-path.patch
|
|
Patch2: syslog-ng-3.5.4.1-libjson-c-0.12.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libdbi-devel
|
|
BuildRequires: libesmtp-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libglib-devel
|
|
BuildRequires: libhiredis-devel
|
|
BuildRequires: libivykis-devel
|
|
BuildRequires: libjson-c-devel
|
|
BuildRequires: libmaxminddb-devel
|
|
BuildRequires: libnet-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libpcre2-devel
|
|
BuildRequires: libpython39-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libsystemd-devel
|
|
BuildRequires: libwrap-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libol-devel >= 0.3.17
|
|
BuildRequires: libnet-devel >= 1.2
|
|
BuildRequires: libesmtp-devel >= 1.1.0
|
|
Provides: sysklogd
|
|
Obsoletes: sysklogd < 3.35.1
|
|
Requires: libsyslog-ng = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description
|
|
syslog-ng, as the name shows, is a syslogd replacement, but with new functionality for the new generation.
|
|
The original syslogd allows messages only to be sorted based on priority/facility pairs; syslog-ng adds the possibility to filter based on message contents using regular expressions.
|
|
The new configuration scheme is intuitive and powerful.
|
|
Forwarding logs over TCP and remembering all forwarding hops makes it ideal for firewalled environments.
|
|
|
|
%package -n libsyslog-ng
|
|
Summary: Library provided by syslog-ng, a syslogd replacement with new functionality
|
|
Group: System/Libraries
|
|
|
|
%description -n libsyslog-ng
|
|
syslog-ng, as the name shows, is a syslogd replacement, but with new functionality for the new generation.
|
|
The original syslogd allows messages only to be sorted based on priority/facility pairs; syslog-ng adds the possibility to filter based on message contents using regular expressions.
|
|
The new configuration scheme is intuitive and powerful.
|
|
Forwarding logs over TCP and remembering all forwarding hops makes it ideal for firewalled environments.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%package -n libsyslog-ng-devel
|
|
Summary: Devel package for libsyslog-ng
|
|
Group: Development/Libraries
|
|
Requires: libsyslog-ng = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n libsyslog-ng-devel
|
|
syslog-ng, as the name shows, is a syslogd replacement, but with new functionality for the new generation.
|
|
The original syslogd allows messages only to be sorted based on priority/facility pairs; syslog-ng adds the possibility to filter based on message contents using regular expressions.
|
|
The new configuration scheme is intuitive and powerful.
|
|
Forwarding logs over TCP and remembering all forwarding hops makes it ideal for firewalled environments.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#-D -T
|
|
#:<< _EOF
|
|
sed -i -e 's,/bin/,/usr/bin/,' -e 's,/sbin/,/bin/,' contrib/systemd/syslog-ng@.service
|
|
sed -i -e 's|/var/run|/run|g' contrib/systemd/syslog-ng@default
|
|
|
|
./autogen.sh
|
|
|
|
%build
|
|
#:<< _EOF
|
|
%configure \
|
|
--sysconfdir=%{_sysconfdir}/syslog-ng \
|
|
--with-module-dir=%{_libdir}/syslog-ng \
|
|
--enable-systemd \
|
|
--with-pidfile-dir=/run \
|
|
--disable-java \
|
|
--enable-spoof-source \
|
|
--enable-ipv6 \
|
|
--with-systemdsystemunitdir=%{_unitdir} \
|
|
--enable-manpages \
|
|
--disable-java-modules \
|
|
--disable-mqtt \
|
|
--disable-riemann \
|
|
--with-python=3 \
|
|
--with-ivykis=system \
|
|
--with-jsonc=system
|
|
|
|
# --enable-all-modules \
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
%makeinstall
|
|
|
|
#install -D -m0644 %{S:2} \
|
|
# %{buildroot}%{_sysconfdir}/syslog-ng/syslog-ng.conf
|
|
install -D -m0644 %{S:3} \
|
|
%{buildroot}%{_sysconfdir}/logrotate.d/syslog-ng
|
|
#install -D -m0644 %{S:4} \
|
|
# %{buildroot}%{_sysconfdir}/sysconfig/syslog-ng
|
|
|
|
install -d %{buildroot}/var/log
|
|
install -d %{buildroot}/var/lib/syslog-ng
|
|
#install -D -m0644 contrib/systemd/syslog-ng@.service %{buildroot}%{_unitdir}/syslog-ng@.service
|
|
install -D -m0644 contrib/systemd/syslog-ng@default %{buildroot}%{_sysconfdir}/sysconfig/syslog-ng@default
|
|
#sed -i "s|/var/run|/run|" %{buildroot}%{_sysconfdir}/sysconfig/syslog-ng@default
|
|
#install -D -m0644 packaging/rhel/syslog-ng.conf %{buildroot}%{_sysconfdir}/syslog-ng/syslog-ng.conf
|
|
|
|
# FIXME: linked to system installed libsyslog library
|
|
rm -f %{buildroot}%{_libdir}/syslog-ng/libafsnmp.so
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%pre
|
|
# remove logging directory not used anymore
|
|
for i in /var/log/{kernel,cron,lpr,news,daemons,mail}; do
|
|
[ -d $i ] && mv $i $i.old
|
|
done
|
|
:
|
|
|
|
%post
|
|
if [ $1 -gt 1 ]; then
|
|
# replace unix-stream ("/dev/log") with unix-dgram for systemd
|
|
sed -i "s|long_hostnames|chain_hostnames|" %{_sysconfdir}/syslog-ng/syslog-ng.conf
|
|
sed -i "s|Version: .*|Version: 3.4|" %{_sysconfdir}/syslog-ng/syslog-ng.conf
|
|
sed -i "s|unix-stream|unix-dgram|" %{_sysconfdir}/syslog-ng/syslog-ng.conf
|
|
fi
|
|
%systemd_post syslog-ng@default
|
|
:
|
|
|
|
%preun
|
|
%systemd_preun syslog-ng@default
|
|
:
|
|
|
|
%postun
|
|
%systemd_postun_with_restart syslog-ng@default
|
|
:
|
|
|
|
%post -n libsyslog-ng -p /sbin/ldconfig
|
|
%postun -n libsyslog-ng -p /sbin/ldconfig
|
|
|
|
%posttrans
|
|
# clean broken old sysv links
|
|
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{_sysconfdir}/syslog-ng
|
|
%{_sysconfdir}/logrotate.d/syslog-ng
|
|
%{_sysconfdir}/syslog-ng/python/README.md
|
|
%config %{_sysconfdir}/syslog-ng/syslog-ng.conf
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/syslog-ng@default
|
|
%{_sbindir}/syslog-ng
|
|
%{_sbindir}/syslog-ng-ctl
|
|
%{_bindir}/dqtool
|
|
%{_bindir}/loggen
|
|
%{_bindir}/pdbtool
|
|
%{_bindir}/persist-tool
|
|
%{_bindir}/slogencrypt
|
|
%{_bindir}/slogkey
|
|
%{_bindir}/slogverify
|
|
%{_bindir}/syslog-ng-update-virtualenv
|
|
%{_bindir}/update-patterndb
|
|
%{_sbindir}/syslog-ng-debun
|
|
%{_unitdir}/syslog-ng@.service
|
|
%dir %{_datadir}/syslog-ng
|
|
%dir %{_datadir}/syslog-ng/include
|
|
%{_datadir}/syslog-ng/include/scl.conf
|
|
%dir %{_datadir}/syslog-ng/include/scl
|
|
%{_datadir}/syslog-ng/include/scl/*
|
|
%{_datadir}/syslog-ng/smart-multi-line.fsm
|
|
%dir %{_datadir}/syslog-ng/tools
|
|
%{_datadir}/syslog-ng/tools/*
|
|
%dir %{_datadir}/syslog-ng/xsd
|
|
%{_datadir}/syslog-ng/xsd/*
|
|
%{_mandir}/man1/dqtool.1*
|
|
%{_mandir}/man1/loggen.1*
|
|
%{_mandir}/man1/pdbtool.1*
|
|
%{_mandir}/man1/persist-tool.1*
|
|
%{_mandir}/man1/slogencrypt.1*
|
|
%{_mandir}/man1/slogkey.1*
|
|
%{_mandir}/man1/slogverify.1*
|
|
%{_mandir}/man1/syslog-ng-ctl.1*
|
|
%{_mandir}/man1/syslog-ng-debun.1*
|
|
%{_mandir}/man5/syslog-ng.conf.5*
|
|
%{_mandir}/man7/secure-logging.7*
|
|
%{_mandir}/man8/syslog-ng.8*
|
|
%dir /var/log
|
|
%dir /var/lib/syslog-ng
|
|
|
|
%files -n libsyslog-ng
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libsyslog-ng-*.so.*
|
|
%{_libdir}/libevtlog-*.so.*
|
|
%{_libdir}/libloggen_helper-*.so.*
|
|
%{_libdir}/libloggen_plugin-*.so.*
|
|
%{_libdir}/libsecret-storage.so.*
|
|
%dir %{_libdir}/syslog-ng
|
|
%{_libdir}/syslog-ng/*
|
|
%doc AUTHORS COPYING
|
|
|
|
%files -n libsyslog-ng-devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/syslog-ng
|
|
%{_includedir}/syslog-ng/*
|
|
%{_libdir}/libsyslog-ng.so
|
|
%{_libdir}/libevtlog.so
|
|
%{_libdir}/libloggen_helper.so
|
|
%{_libdir}/libloggen_plugin.so
|
|
%{_libdir}/libsecret-storage.so
|
|
%{_libdir}/libsyslog-ng-native-connector.a
|
|
%{_libdir}/pkgconfig/syslog-ng-native-connector.pc
|
|
%{_libdir}/pkgconfig/syslog-ng.pc
|
|
%doc README.md NEWS.md
|
|
|
|
%changelog
|
|
* Wed Jul 26 2023 Automatic Build System <autodist@mambasoft.it> 4.3.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon May 15 2023 Automatic Build System <autodist@mambasoft.it> 4.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Mar 11 2023 Automatic Build System <autodist@mambasoft.it> 4.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Mar 08 2023 Automatic Build System <autodist@mambasoft.it> 4.1.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Dec 23 2022 Automatic Build System <autodist@mambasoft.it> 4.0.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 30 2022 Automatic Build System <autodist@mambasoft.it> 3.38.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jun 13 2022 Automatic Build System <autodist@mambasoft.it> 3.37.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Mar 07 2022 Automatic Build System <autodist@mambasoft.it> 3.36.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Nov 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.35.1-3mamba
|
|
- rebuild to fix linking to installed library
|
|
|
|
* Fri Nov 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.35.1-2mamba
|
|
- rebuilt with libnet 1.2
|
|
|
|
* Thu Nov 18 2021 Automatic Build System <autodist@mambasoft.it> 3.35.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Sep 12 2021 Automatic Build System <autodist@mambasoft.it> 3.34.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jul 20 2021 Automatic Build System <autodist@mambasoft.it> 3.33.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.33.1-1mamba
|
|
- update to 3.33.1
|
|
|
|
* Mon May 10 2021 Automatic Build System <autodist@mambasoft.it> 3.32.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Mar 21 2021 Automatic Build System <autodist@mambasoft.it> 3.31.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Mar 06 2021 Automatic Build System <autodist@mambasoft.it> 3.31.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Feb 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.30.1-1mamba
|
|
- update to 3.30.1
|
|
|
|
* Sun Oct 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.4-1mamba
|
|
- update to 3.6.4
|
|
- install binaries from /sbin to /usr/sbin
|
|
|
|
* Sun Aug 02 2015 Automatic Build System <autodist@mambasoft.it> 3.6.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jan 07 2015 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Dec 28 2014 Automatic Build System <autodist@mambasoft.it> 3.6.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Aug 24 2014 Automatic Build System <autodist@mambasoft.it> 3.5.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Aug 18 2014 Automatic Build System <autodist@mambasoft.it> 3.5.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jun 28 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.4.1-1mamba
|
|
- update to 3.5.4.1
|
|
- rebuilt with libjson-c-devel 0.12
|
|
|
|
* Tue Jan 21 2014 Automatic Build System <autodist@mambasoft.it> 3.5.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Nov 08 2013 Automatic Build System <autodist@mambasoft.it> 3.5.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Aug 18 2013 Automatic Build System <autodist@mambasoft.it> 3.4.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jun 11 2013 Automatic Build System <autodist@mambasoft.it> 3.4.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun May 26 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-4mamba
|
|
- fix startup with systemd: configure /var/log as unix-dgram() instead of unix-stream()
|
|
|
|
* Tue Mar 26 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-3mamba
|
|
- rebuilt with systemd support
|
|
|
|
* Mon Mar 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-2mamba
|
|
- fix linking to libesmtp
|
|
|
|
* Thu Feb 14 2013 Automatic Build System <autodist@mambasoft.it> 3.4.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Dec 12 2012 Automatic Build System <autodist@mambasoft.it> 3.3.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 17 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.6-2mamba
|
|
- syslog-ng.conf: log Shorewall to firewall file
|
|
|
|
* Sun Sep 02 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.6-1mamba
|
|
- update to 3.3.6
|
|
- updated configuration; added UFW firewall support
|
|
|
|
* Thu Aug 09 2012 Automatic Build System <autodist@mambasoft.it> 3.3.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 23 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.4-2mamba
|
|
- move default configuration from /etc/syslog-ng.conf to /etc/syslog-ng/syslong-ng.conf
|
|
|
|
* Tue Aug 23 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.4-1mamba
|
|
- update to 3.2.4
|
|
|
|
* Fri Dec 31 2010 Automatic Build System <autodist@mambasoft.it> 3.2.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Oct 27 2010 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue May 25 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-1mamba
|
|
- update to 3.1.1
|
|
|
|
* Sun Dec 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.5-1mamba
|
|
- update to 3.0.5
|
|
|
|
* Thu Jan 08 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.10-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun Jun 29 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.9-2mamba
|
|
- raise stats generation frequency to 86400 (1 day)
|
|
|
|
* Sun Jun 01 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.9-1mamba
|
|
- update to 2.0.9
|
|
|
|
* Sun Mar 18 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1qilnx
|
|
- update to version 2.0.2 by autospec
|
|
|
|
* Thu Oct 05 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.6.11-4qilnx
|
|
- removed syslog configurations for cron (conflicts with vixie-cron settings)
|
|
|
|
* Fri Jul 14 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.6.11-3qilnx
|
|
- updated configuration file for logrotate
|
|
|
|
* Thu Jul 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.6.11-2qilnx
|
|
- added support for openldap in the configuration file
|
|
- own %{_sysconfdir}/syslog-ng
|
|
- logging files provided by this package marked as %%ghost
|
|
- fixed permissions of configuration files
|
|
|
|
* Fri May 05 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.11-1qilnx
|
|
- update to version 1.6.11 by autospec
|
|
- set 644 permissions to log files
|
|
- obsolete sysklogd
|
|
|
|
* Thu Mar 09 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.9-4qilnx
|
|
- don't put firewall log in /var/log/kernel
|
|
|
|
* Wed Jan 25 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.9-3qilnx
|
|
- fixed pre script (add exit 0 at the end)
|
|
|
|
* Tue Dec 06 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.9-2qilnx
|
|
- added /var/log/firewall support
|
|
- remove old logging directories (use single file instead)
|
|
|
|
* Thu Dec 01 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.9-1qilnx
|
|
- package created by autospec
|