iptables-URL1 := http://mirror.onelab.eu/third-party/iptables-1.4.12.1.tar.bz2
iptables-URL2 := http://planet-lab.org/third-party/iptables-1.4.12.1.tar.bz2
iptables-SHA1SUM := 86022c3b5129ad7105f5087ec1349e99cc5a9728
-iptables := $(notdir $(iptables-URL))
+iptables := $(notdir $(iptables-URL1))
##############################
define download_target
%define taglevel 0
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+%define actual_name %{name}-%{version}%{subversion}
Vendor: PlanetLab
Packager: PlanetLab Central <support@planet-lab.org>
Name: %{name}
Version: %{version}
Release: %{release}
-Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}%{subversion}.tar.bz2
+Source: http://www.netfilter.org/projects/iptables/files/%{actual_name}.tar.bz2
Source1: iptables.init
Source2: iptables-config
Source3: planetlab-config
stable and may change with every new version. It is therefore unsupported.
%prep
-%setup -q
+%setup -q -n %{actual_name}
%patch1 -p1
%build