Пакет xtables-addons: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | Name: xtables-addons Version: 1.39 Release: alt1 Summary: IP tables addons Group: System/Kernel and hardware URL: http://xtables-addons.sourceforge.net/ License: GPLv2 Source0: %name-%version.tar Patch1: %name-%version-%release.patch %define _libexecdir /usr/libexec BuildRequires(pre): kernel-build-tools BuildRequires: iptables-devel >= 1.4.3 libmnl-devel perl-Text-CSV_XS Requires: iptables ExclusiveArch: %ix86 x86_64 %description Additional modules for iptables %package ipset Summary: Tools for managing sets of IP or ports with iptables License: GPLv2 Group: System/Kernel and hardware Conflicts: ipset %description ipset IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which can be administered by the ipset utility. Depending on the type, currently an IP set may store IP addresses, (TCP/UDP) port numbers or IP addresses with MAC addresses in a way, which ensures lightning speed when matching an entry against a set. ipset may be the proper tool for you, if you want to * store multiple IP addresses or port numbers and match against the collection by iptables at one swoop; * dynamically update iptables rules against IP addresses or ports without performance penalty; * express complex IP address and ports based rulesets with one single iptables rule and benefit from the speed of IP sets %package -n libipset Summary: Linux ipset library License: GPLv2 Group: System/Libraries %description -n libipset ipset library %package -n libipset-devel Summary: Linux ipset library License: GPLv2 Group: Development/C Requires: libipset = %version-%release %description -n libipset-devel ipset library %package geoip-utils Summary: Tools for build and update geoip data License: GPLv2 Group: System/Kernel and hardware %description geoip-utils Tools for build and update geoip data %package -n kernel-source-%name Summary: xtables module sources Group: Development/Kernel BuildArch: noarch BuildPreReq: rpm-build-kernel %description -n kernel-source-%name XTable addons module sources for Linux kernel. %prep %setup -q %patch1 -p1 %autoreconf %configure --libdir=/%_lib --with-kbuild=no --with-xtlibdir=/%_lib/iptables %build %make %install %make_install install DESTDIR=%buildroot tar xvf %SOURCE0 mv %name-%version/extensions kernel-source-%name-%version cp mconfig kernel-source-%name-%version/mconfig cp kernel-source-%name-%version/Mbuild kernel-source-%name-%version/Makefile mkdir -p %kernel_srcdir tar cjf %kernel_srcdir/kernel-source-%name-%version.tar.bz2 kernel-source-%name-%version mkdir -p %buildroot%_includedir cp -Rf extensions/ipset-6/include/* %buildroot%_includedir/ #Remove these files due to iptables rm -f %buildroot/%_lib/iptables/libxt_TEE.so %files %doc README %_sbindir/iptaccount %attr(0755,root,root) /%_lib/libx*.so* /%_lib/iptables/*.so* %_man8dir/xtables-addons* %files ipset %_sbindir/ipset %_man8dir/ipset* %files -n libipset /%_lib/libipset.so.* %files -n libipset-devel /%_lib/libipset.so %_includedir/libipset %files geoip-utils %_man1dir/* %_libexecdir/xtables-addons/* %files -n kernel-source-%name %kernel_src/* %changelog * Mon Oct 10 2011 Anton Farygin <rider@altlinux.ru> 1.39-alt1 - new version * Sun Mar 06 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 1.33-alt1 - Update new version * Sun Jan 16 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 1.32-alt1 - Update new version - Add ipset subpackage and libipset * Wed Oct 13 2010 Anton Farygin <rider@altlinux.ru> 1.30-alt1 - Initial build for Sisyphus, thanls to Sergei Epiphanov for specfile |