1 |
# $Id: e-smith-packetfilter.spec,v 1.11 2021/03/05 06:28:44 jpp Exp $ |
# $Id: e-smith-packetfilter.spec,v 1.13 2021/03/05 07:03:44 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - packetfilter add-on |
Summary: e-smith server and gateway - packetfilter add-on |
4 |
%define name e-smith-packetfilter |
%define name e-smith-packetfilter |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 6 |
%define release 7 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
14 |
Patch1: e-smith-packetfilter-2.6.0-bz11251-drop-pptpd.patch |
Patch1: e-smith-packetfilter-2.6.0-bz11251-drop-pptpd.patch |
15 |
Patch2: e-smith-packetfilter-2.6.0-bz11420.patch |
Patch2: e-smith-packetfilter-2.6.0-bz11420.patch |
16 |
Patch3: e-smith-packetfilter-2.6.0bz11426-ulogd.patch |
Patch3: e-smith-packetfilter-2.6.0bz11426-ulogd.patch |
17 |
|
Patch4: e-smith-packetfilter-2.6.0-bz11528-bz11451.patch |
18 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
31 |
e-smith server and gateway software - packetfilter add-on |
e-smith server and gateway software - packetfilter add-on |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
35 |
|
- fix dropin file not expanded on initial installation [SME: 11528] |
36 |
|
- fix noise on logrotate, doing a restart instead of reload [SME: 11451] |
37 |
|
|
38 |
* Thu Mar 04 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
* Thu Mar 04 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
39 |
- move ulogd to systemd [SME: 11426] |
- move ulogd to systemd [SME: 11426] |
40 |
- require ulogd 2 [SME: 11426] |
- require ulogd 2 [SME: 11426] |
849 |
%patch2 -p1 |
%patch2 -p1 |
850 |
%patch3 -p1 |
%patch3 -p1 |
851 |
rm -rf root/var/service/ulogd |
rm -rf root/var/service/ulogd |
852 |
|
mkdir -p root/run/ulog |
853 |
|
%patch4 -p1 |
854 |
|
|
855 |
|
|
856 |
%build |
%build |
857 |
perl createlinks |
perl createlinks |
869 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
870 |
mkdir -p $RPM_BUILD_ROOT/var/log/iptables |
mkdir -p $RPM_BUILD_ROOT/var/log/iptables |
871 |
mkdir -p $RPM_BUILD_ROOT/service |
mkdir -p $RPM_BUILD_ROOT/service |
|
mkdir -p $RPM_BUILD_ROOT/var/run/ulog |
|
872 |
#ln -s /var/service/ulogd $RPM_BUILD_ROOT/service/ulogd |
#ln -s /var/service/ulogd $RPM_BUILD_ROOT/service/ulogd |
873 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
874 |
--dir /var/log/iptables 'attr(0755,ulog,ulog)' \ |
--dir /var/log/iptables 'attr(0755,ulog,ulog)' \ |
875 |
--dir /var/run/ulog 'attr(0755,ulog,ulog)' \ |
--dir /run/ulog 'attr(2755,ulog,ulog)' \ |
876 |
> e-smith-%{version}-filelist |
> e-smith-%{version}-filelist |
877 |
echo "%doc COPYING" >> e-smith-%{version}-filelist |
echo "%doc COPYING" >> e-smith-%{version}-filelist |
878 |
# --dir /var/service/ulogd 'attr(1755,root,root)' \ |
# --dir /var/service/ulogd 'attr(1755,root,root)' \ |