From a9e058f32bfb04af294a1f954a22ad9de2bf8cc3 Mon Sep 17 00:00:00 2001 From: zbyniu Date: Sun, 14 Jun 2009 10:25:35 +0000 Subject: [PATCH] - new, works for me Changed files: xtables-geoip.spec -> 1.1 --- xtables-geoip.spec | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 xtables-geoip.spec diff --git a/xtables-geoip.spec b/xtables-geoip.spec new file mode 100644 index 0000000..3ecc12f --- /dev/null +++ b/xtables-geoip.spec @@ -0,0 +1,32 @@ +Summary: GeoIP database files for xt_geoip +Name: xtables-geoip +Version: 20090401 +Release: 1 +License: GPL +Group: Networking/Admin +URL: http://maxmind.com/ +Source0: http://jengelh.medozas.de/files/geoip/geoip_iv0_database-%{version}.tar.bz2 +# Source0-md5: 0cd65043c6165ed49a611c2cd4bc2fb4 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +The package contains the GeoIP definition files (which IP addresses +belong to which country) that are needed for Xtables-addons's xt_geoip +module. + +%prep +%setup -q -n var + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/var/lib/geoip/{B,L}E +install geoip/BE/* $RPM_BUILD_ROOT/var/lib/geoip/BE +install geoip/LE/* $RPM_BUILD_ROOT/var/lib/geoip/LE + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +/var/lib/geoip -- 2.44.0