X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=iptables.spec;h=d905328d536853643488c6f3fc6b706520a1bd83;hb=052764c4a7799a2285af6c4acc937e094f16752d;hp=88f2281e977963777d82e3f60320ed667522c498;hpb=f81615a1b6e71d36b4f49a38c04805cc52a146c2;p=iptables.git diff --git a/iptables.spec b/iptables.spec index 88f2281..d905328 100644 --- a/iptables.spec +++ b/iptables.spec @@ -1,15 +1,30 @@ -Name: iptables +# +# $Id$ +# +%define url $URL$ + +%define name iptables +%define version 1.4.7 +%define taglevel 1 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +URL: %(echo %{url} | cut -d ' ' -f 2) + Summary: Tools for managing Linux kernel packet filtering capabilities -Version: 1.4.7 -Release: 2%{?dist} +Name: %{name} +Version: %{version} +Release: %{release} Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config Source3: planetlab-config Patch1: copy-xid.patch Group: System Environment/Base -URL: http://www.netfilter.org/ -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root License: GPLv2 BuildRequires: libselinux-devel BuildRequires: kernel-headers @@ -96,6 +111,7 @@ sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE1} > ip6ta install -c -m 755 ip6tables.init %{buildroot}/etc/rc.d/init.d/ip6tables install -d -m 755 %{buildroot}/etc/sysconfig install -c -m 755 %{SOURCE2} %{buildroot}/etc/sysconfig/iptables-config +install -c -m 755 %{SOURCE3} %{buildroot}/etc/sysconfig/iptables sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE2} > ip6tables-config install -c -m 755 ip6tables-config %{buildroot}/etc/sysconfig/ip6tables-config @@ -126,6 +142,7 @@ fi %doc COPYING INSTALL INCOMPATIBILITIES %attr(0755,root,root) /etc/rc.d/init.d/iptables %config(noreplace) %attr(0600,root,root) /etc/sysconfig/iptables-config +%config(noreplace) %attr(0600,root,root) /etc/sysconfig/iptables /sbin/iptables* /bin/iptables-xml %{_mandir}/man8/iptables*