Accepting request 391721 from home:kstreitova:branches:security:netfilter
- add "Requires(post): %insserv_prereq %fillup_prereq" to fix problem with missing sed during the installation [bnc#976919] - remove non-break space from specfile - use spec-cleaner to clean the specfile OBS-URL: https://build.opensuse.org/request/show/391721 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ebtables?expand=0&rev=39
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 26 12:13:47 UTC 2016 - kstreitova@suse.com
|
||||||
|
|
||||||
|
- add "Requires(post): %insserv_prereq %fillup_prereq" to fix
|
||||||
|
problem with missing sed during the installation [bnc#976919]
|
||||||
|
- remove non-break space from specfile
|
||||||
|
- use spec-cleaner to clean the specfile
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 29 15:07:16 UTC 2015 - bwiedemann@suse.com
|
Sat Aug 29 15:07:16 UTC 2015 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ebtables
|
# spec file for package ebtables
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -23,21 +23,21 @@ Summary: Ethernet Bridge Tables
|
|||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
Url: http://ebtables.sf.net/
|
Url: http://ebtables.sf.net/
|
||||||
|
|
||||||
#Git-Clone: git://git.netfilter.org/ebtables
|
#Git-Clone: git://git.netfilter.org/ebtables
|
||||||
Source: %name-v2.0.10-4.tar.xz
|
Source: %{name}-v2.0.10-4.tar.xz
|
||||||
Patch0: %name-v2.0.8-makefile.diff
|
Patch0: %{name}-v2.0.8-makefile.diff
|
||||||
Patch1: %name-v2.0.8-initscript.diff
|
Patch1: %{name}-v2.0.8-initscript.diff
|
||||||
# PATCH-FIX-UPSTREAM bnc#934680 kstreitova@suse.com -- audit patch for CC certification
|
# PATCH-FIX-UPSTREAM bnc#934680 kstreitova@suse.com -- audit patch for CC certification
|
||||||
Patch2: ebtables-v2.0.10-4-audit.patch
|
Patch2: ebtables-v2.0.10-4-audit.patch
|
||||||
# PATCH-FIX-UPSTREAM
|
# PATCH-FIX-UPSTREAM
|
||||||
Patch3: 0001-fix-compilation-warning.patch
|
Patch3: 0001-fix-compilation-warning.patch
|
||||||
# PATCH-FIX-SUSE-ONLY
|
# PATCH-FIX-SUSE-ONLY
|
||||||
Patch4: include-linux-if.patch
|
Patch4: include-linux-if.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: linux-glibc-devel >= 2.6.20
|
BuildRequires: linux-glibc-devel >= 2.6.20
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
|
Requires(post): %insserv_prereq %fillup_prereq
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A firewalling tool to transparently filter network traffic passing a
|
A firewalling tool to transparently filter network traffic passing a
|
||||||
@@ -47,8 +47,8 @@ can be used together with the other Linux filtering tools, like
|
|||||||
iptables. There are no incompatibility issues.
|
iptables. There are no incompatibility issues.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %name-v2.0.10-4
|
%setup -q -n %{name}-v2.0.10-4
|
||||||
%patch -P 0 -P 1 -p0
|
%patch -P 0 -P 1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
@@ -66,31 +66,31 @@ mv include/linux/netfilter_bridge/ebt_ulog.{h.save,h}
|
|||||||
# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267]
|
# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267]
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
make \
|
make \
|
||||||
CFLAGS="%optflags" \
|
CFLAGS="%{optflags}" \
|
||||||
CXXFLAGS="%optflags" \
|
CXXFLAGS="%{optflags}" \
|
||||||
LIBDIR="%_libdir/%name" \
|
LIBDIR="%{_libdir}/%{name}" \
|
||||||
MANDIR="%_mandir" \
|
MANDIR="%{_mandir}" \
|
||||||
BINDIR="%_sbindir" \
|
BINDIR="%{_sbindir}" \
|
||||||
ETCDIR="%_sysconfdir" \
|
ETCDIR="%{_sysconfdir}" \
|
||||||
INITDIR="%_sysconfdir/init.d" \
|
INITDIR="%{_sysconfdir}/init.d" \
|
||||||
SYSCONFIGDIR="%_sysconfdir"
|
SYSCONFIGDIR="%{_sysconfdir}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267]
|
# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267]
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
mkdir -p "%buildroot/%_sysconfdir/init.d"
|
mkdir -p "%{buildroot}/%{_sysconfdir}/init.d"
|
||||||
make \
|
make \
|
||||||
DESTDIR="%buildroot" \
|
DESTDIR=%{buildroot} \
|
||||||
LIBDIR="%_libdir/%name" \
|
LIBDIR="%{_libdir}/%{name}" \
|
||||||
MANDIR="%_mandir" \
|
MANDIR="%{_mandir}" \
|
||||||
BINDIR="%_sbindir" \
|
BINDIR="%{_sbindir}" \
|
||||||
ETCDIR="%_sysconfdir" \
|
ETCDIR="%{_sysconfdir}" \
|
||||||
INITDIR="%_sysconfdir/init.d" \
|
INITDIR="%{_sysconfdir}/init.d" \
|
||||||
SYSCONFIGDIR="%_sysconfdir" \
|
SYSCONFIGDIR="%{_sysconfdir}" \
|
||||||
install
|
install
|
||||||
ln -sf "%_initddir/ebtables" "%buildroot/%_sbindir/rcebtables"
|
ln -sf "%{_initddir}/ebtables" "%{buildroot}/%{_sbindir}/rcebtables"
|
||||||
# not used
|
# not used
|
||||||
rm -f "%buildroot/%_sysconfdir/ebtables-config"
|
rm -f "%{buildroot}/%{_sysconfdir}/ebtables-config"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%fillup_and_insserv ebtables
|
%fillup_and_insserv ebtables
|
||||||
@@ -105,14 +105,14 @@ rm -f "%buildroot/%_sysconfdir/ebtables-config"
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COPYING ChangeLog
|
%doc COPYING ChangeLog
|
||||||
%doc %_mandir/man8/ebtables.8*
|
%{_mandir}/man8/ebtables.8*
|
||||||
%config(noreplace) %_sysconfdir/ethertypes
|
%config(noreplace) %{_sysconfdir}/ethertypes
|
||||||
%_initddir/ebtables
|
%{_initddir}/ebtables
|
||||||
%dir %_libdir/%name
|
%dir %{_libdir}/%{name}
|
||||||
%_libdir/%name/*.so
|
%{_libdir}/%{name}/*.so
|
||||||
%_sbindir/ebtables
|
%{_sbindir}/ebtables
|
||||||
%_sbindir/ebtables-restore
|
%{_sbindir}/ebtables-restore
|
||||||
%_sbindir/ebtables-save
|
%{_sbindir}/ebtables-save
|
||||||
%_sbindir/rcebtables
|
%{_sbindir}/rcebtables
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user