Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
xtadm
> xtadm.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File xtadm.spec of Package xtadm (Revision 2)
Currently displaying revision
2
,
show latest
# # spec file for package iptables # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: xtadm %define lname_ipq libipq0 %define lname_iptc libiptc0 %define lname_xt libxtables9 Version: 1.5.0 Release: 4.1 Summary: Xtables2 Packet Filter Administration utilities License: GPL-2.0+ Group: Productivity/Networking/Security Url: http://inai.de/nfxt/ #Git-Clone: git://git.inai.de/xtadm #DL-URL: http://inai.de/nfxt/files/ Source: http://inai.de/nfxt/files/%name-%version.tar.xz Source2: http://inai.de/nfxt/files/%name-%version.tar.xz.asc Source3: %name.keyring Patch1: iptables-batch.patch Patch2: iptables-apply-mktemp-fix.patch Patch3: 0001-build-also-use-libtool-for-install-stage.patch Patch4: 0002-build-do-not-dereference-symlinks-on-installation.patch Patch5: 0001-xtadm-visit-include-libxtadm-during-installation.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: sgmltool %endif %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: sgml-common %endif #git#BuildRequires: autoconf, automake >= 1.10 BuildRequires: libtool BuildRequires: pkgconfig >= 0.21 %if 0%{?suse_version} BuildRequires: fdupes %endif %if 0%{?suse_version} >= 1230 BuildRequires: gpg-offline %endif %if 0%{?suse_version} >= 1140 BuildRequires: pkgconfig(libHX) >= 3.12 BuildRequires: pkgconfig(libnfnetlink) >= 1.0.0 BuildRequires: pkgconfig(libnetfilter_xtables) >= 0.9.1 %endif %if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: libHX-devel >= 3.12 BuildRequires: libnfnetlink-devel >= 1.0.0 BuildRequires: libnetfilter_xtables-devel >= 0.9.1 %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} BuildRequires: libHX-devel >= 3.12 BuildRequires: libnfnetlink-devel >= 1.0.0 BuildRequires: libnetfilter_xtables-devel >= 0.9.1 %endif BuildRequires: xz Requires: xtables-plugins = %version %description The command-line utility to control the Xtables2 packet filter. %package -n libxtadm0 Summary: C interface to the textual xtadm interface Group: System/Libraries # libxtadm depends on changed behavior in libxtables9, # so an explicit Require is needed Requires: libxtables9 >= %version-%release %description -n libxtadm0 libxtadm is a high level library for interacting with the Xtables2 packet filter. It contains the xtadm command parser and iptables plugin support. %package -n libxtadm-devel Summary: Development files for libxtadm Group: Development/Libraries/C and C++ %description -n libxtadm-devel libxtadm is a high level library for interacting with the Xtables2 packet filter. It contains the xtadm command parser and iptables plugin support. This subpackage contains the development files (header includes, library symlinks) for libxtadm. %package -n iptables Summary: IP Packet Filter Administration utilities Group: Productivity/Networking/Security Requires: xtables-plugins = %version Conflicts: iptables-devel < %{version} %description -n iptables iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel. This version requires kernel 2.4.0 or newer. %package -n xtables-plugins Summary: Match and Target Extension plugins for iptables and xtadm Group: Productivity/Networking/Security Conflicts: iptables < 1.5.0 %description -n xtables-plugins Match and Target Extension plugins for iptables and xtadm. %package -n %lname_ipq Summary: Library to interface with the (old) ip_queue kernel mechanism Group: System/Libraries %description -n %lname_ipq The Netfilter project provides a mechanism (ip_queue) for passing packets out of the stack for queueing to userspace, then receiving these packets back into the kernel with a verdict specifying what to do with the packets (such as ACCEPT or DROP). These packets may also be modified in userspace prior to reinjection back into the kernel. ip_queue/libipq is obsoleted by nf_queue/libnetfilter_queue! %package -n libipq-devel Summary: Development files for the ip_queue kernel mechanism Group: Development/Libraries/C and C++ Requires: %lname_ipq = %version %description -n libipq-devel The Netfilter project provides a mechanism (ip_queue) for passing packets out of the stack for queueing to userspace, then receiving these packets back into the kernel with a verdict specifying what to do with the packets (such as ACCEPT or DROP). These packets may also be modified in userspace prior to reinjection back into the kernel. ip_queue/libipq is obsoleted by nf_queue/libnetfilter_queue! %package -n %lname_iptc Summary: Library for low-level ruleset generation and parsing Group: System/Libraries %description -n %lname_iptc libiptc ("iptables cache") is used to retrieve from the kernel, parse, construct, and load new rulesets into the kernel. %package -n libiptc-devel Summary: Development files for libiptc, a packet filter ruleset library Group: Development/Libraries/C and C++ Requires: %lname_iptc = %version %description -n libiptc-devel libiptc ("iptables cache") is used to retrieve from the kernel, parse, construct, and load new rulesets into the kernel. %package -n %lname_xt Summary: iptables extension interface Group: System/Libraries %description -n %lname_xt This library contains all the iptables code shared between iptables, ip6tables, their extensions, and for external integration for e.g. iproute2's m_xt. %package -n libxtables-devel Summary: Libraries, Headers and Development Man Pages for iptables Group: Development/Libraries/C and C++ Requires: %lname_xt = %version Conflicts: iptables-devel < %{version} %description -n libxtables-devel This library contains all the iptables code shared between iptables, ip6tables, their extensions, and for external integration for e.g. Link your extension (iptables plugins) with $(pkg-config xtables --libs) and place the plugin in the directory given by $(pkg-config xtables --variable=xtlibdir). %prep %{?gpg_verify: %gpg_verify %{S:2}} %if 0%{?__xz:1} %setup -q %else tar -xf "%{S:0}" --use=xz; %setup -DTq %endif %patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1 %build # We have the iptables-batch patch, so always regenerate. if true || [ ! -e configure ]; then ./autogen.sh; fi # bnc#561793 - do not include unclean module in iptables manpage rm -f extensions/libipt_unclean.man # includedir is overriden on purpose to detect projects that # fail to include libxtables_CFLAGS %configure --includedir=%_includedir/%name-%version --enable-libipq make %{?_smp_mflags} %install make DESTDIR=%buildroot install # iptables-apply is not installed by upstream Makefile install -m0755 iptables/iptables-apply %buildroot%_sbindir/ install -m0644 iptables/iptables-apply.8 %buildroot%_mandir/man8/ rm -f "%buildroot/%_libdir"/*.la; %if 0%{?suse_version} %fdupes %buildroot %endif %post -n %lname_ipq -p /sbin/ldconfig %postun -n %lname_ipq -p /sbin/ldconfig %post -n %lname_iptc -p /sbin/ldconfig %postun -n %lname_iptc -p /sbin/ldconfig %post -n %lname_xt -p /sbin/ldconfig %postun -n %lname_xt -p /sbin/ldconfig %post -n libxtadm0 -p /sbin/ldconfig %postun -n libxtadm0 -p /sbin/ldconfig %files %defattr(-,root,root) %_sbindir/xtadm %_mandir/man8/xtadm* %files -n libxtadm0 %defattr(-,root,root) %_libdir/libxtadm.so.0* %files -n libxtadm-devel %defattr(-,root,root) %_libdir/libxtadm.so %dir %_includedir/%name-%version %_includedir/%name-%version/xtadm %files -n iptables %defattr(-,root,root) %doc COPYING %doc %_mandir/man1/ip* %doc %_mandir/man8/ip* %_bindir/iptables-xml %_sbindir/iptables %_sbindir/iptables-apply %_sbindir/iptables-batch %_sbindir/iptables-restore %_sbindir/iptables-save %_sbindir/ip6tables %_sbindir/ip6tables-batch %_sbindir/ip6tables-restore %_sbindir/ip6tables-save %_sbindir/xtables-multi %files -n xtables-plugins %defattr(-,root,root) %_libdir/xtables %_sbindir/nfnl_osf %_datadir/xtables %files -n %lname_ipq %defattr(-,root,root) %_libdir/libipq.so.0* %files -n libipq-devel %defattr(-,root,root) %doc %_mandir/man3/libipq* %doc %_mandir/man3/ipq* %dir %_includedir/%name-%version %_includedir/%name-%version/libipq* %_libdir/libipq.so %_libdir/pkgconfig/libipq.pc %files -n %lname_iptc %defattr(-,root,root) %_libdir/libiptc.so.0* %_libdir/libip4tc.so.0* %_libdir/libip6tc.so.0* %files -n libiptc-devel %defattr(-,root,root) %dir %_includedir/%name-%version %_includedir/%name-%version/libiptc* %_libdir/libip*tc.so %_libdir/pkgconfig/libip*tc.pc %files -n %lname_xt %defattr(-,root,root) %_libdir/libxtables.so.9* %files -n libxtables-devel %defattr(-,root,root) %dir %_includedir/%name-%version %_includedir/%name-%version/xtables.h %_includedir/%name-%version/xtables-version.h %_libdir/libxtables.so %_libdir/pkgconfig/xtables.pc %changelog