* Wed Apr 17 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.0.7-2.sme
- adding systemd service file and run config [SME: 12538] remove scriptlet for sysvinit, leave integrator enabling service
This commit is contained in:
parent
73bf0a0928
commit
e6c0fb68f4
18
ulogd.service
Normal file
18
ulogd.service
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Netfilter Userspace Logging Daemon
|
||||||
|
Before=masq.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
Restart=always
|
||||||
|
TimeoutSec=0
|
||||||
|
Type=forking
|
||||||
|
|
||||||
|
PIDFile=/run/ulog/ulogd.pid
|
||||||
|
ExecStart=/usr/sbin/ulogd --daemon --uid ulog --pidfile /run/ulog/ulogd.pid
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sme-server.target multi-user.target
|
||||||
|
|
22
ulogd.spec
22
ulogd.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: Userspace logging daemon for netfilter
|
Summary: Userspace logging daemon for netfilter
|
||||||
Name: ulogd
|
Name: ulogd
|
||||||
Version: 2.0.7
|
Version: 2.0.7
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.netfilter.org/projects/%{name}/
|
URL: http://www.netfilter.org/projects/%{name}/
|
||||||
@ -9,6 +9,8 @@ Source0: http://ftp.netfilter.org/pub/%{name}/%{name}-%{version}.tar.bz2
|
|||||||
Source1: %{name}.init
|
Source1: %{name}.init
|
||||||
Source2: %{name}.logrotate
|
Source2: %{name}.logrotate
|
||||||
Source3: %{name}2.service
|
Source3: %{name}2.service
|
||||||
|
Source4: %{name}.service
|
||||||
|
Source5: %{name}2.conf
|
||||||
|
|
||||||
BuildRequires: libnetfilter_conntrack-devel >= 0.0.95
|
BuildRequires: libnetfilter_conntrack-devel >= 0.0.95
|
||||||
BuildRequires: libnetfilter_log-devel >= 1.0.0
|
BuildRequires: libnetfilter_log-devel >= 1.0.0
|
||||||
@ -104,24 +106,14 @@ firewall information into an SQLITE database.
|
|||||||
|
|
||||||
%{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d/
|
%{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d/
|
||||||
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||||
|
%{__install} -m 0644 %{SOURCE4} %{buildroot}/usr/lib/systemd/system/%{name}.service
|
||||||
|
%{__install} -m 0644 %{SOURCE5} %{buildroot}/usr/lib/tmpfiles.d/%{name}.conf
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add %{name}
|
|
||||||
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
# if we are uninstalling...
|
|
||||||
if [ "$1" = 0 ]; then
|
|
||||||
/sbin/service %{name} stop > /dev/null 2>&1 ||:
|
|
||||||
/sbin/chkconfig --del %{name}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
# if we are upgrading...
|
|
||||||
if [ "$1" -ge "1" ]; then
|
|
||||||
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} %{?_smp_mflags} check
|
%{__make} %{?_smp_mflags} check
|
||||||
@ -179,6 +171,10 @@ fi
|
|||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 17 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.0.7-2.sme
|
||||||
|
- adding systemd service file and run config [SME: 12538]
|
||||||
|
remove scriptlet for sysvinit, leave integrator enabling service
|
||||||
|
|
||||||
* Fri Jul 14 2023 BogusDateBot
|
* Fri Jul 14 2023 BogusDateBot
|
||||||
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||||
by assuming the date is correct and changing the weekday.
|
by assuming the date is correct and changing the weekday.
|
||||||
|
1
ulogd2.conf
Normal file
1
ulogd2.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /run/ulog 2755 ulog ulog
|
Loading…
Reference in New Issue
Block a user