From 67d63d21ab5adcfb28244a19fd43c3f23a665e35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 20 Sep 2010 12:44:35 +0000 Subject: [PATCH] - use FHS path, fix manpage; rel 15 Changed files: xtables-addons-geoip-dbpath.patch -> 1.2.2.1 xtables-addons.spec -> 1.50.2.4 --- xtables-addons-geoip-dbpath.patch | 6 +++--- xtables-addons.spec | 14 ++++++-------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/xtables-addons-geoip-dbpath.patch b/xtables-addons-geoip-dbpath.patch index 4a7d0e5..77975cd 100644 --- a/xtables-addons-geoip-dbpath.patch +++ b/xtables-addons-geoip-dbpath.patch @@ -5,7 +5,7 @@ #include #include "xt_geoip.h" -#define GEOIP_DB_DIR "/var/geoip" -+#define GEOIP_DB_DIR "/var/lib/geoip" ++#define GEOIP_DB_DIR "/usr/share/xt_geoip" static void geoip_help(void) { @@ -16,7 +16,7 @@ The extra files you will need is the binary database files. They are generated from a country-subnet database with the geoip_csv_iv0.pl tool, available at -http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /var/geoip/ -+http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /var/lib/geoip/ ++http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /usr/share/xt_geoip/ as the shared library is statically looking for this pathname (e.g. -/var/geoip/LE/de.iv0). -+/var/lib/geoip/LE/de.iv0). ++/usr/share/xt_geoip/LE/de.iv0). diff --git a/xtables-addons.spec b/xtables-addons.spec index ea67ec1..df86641 100644 --- a/xtables-addons.spec +++ b/xtables-addons.spec @@ -19,7 +19,7 @@ %define _enable_debug_packages 0 %endif -%define rel 14 +%define rel 15 Summary: Extensible packet filtering system && extensible NAT system Summary(pl.UTF-8): System filtrowania pakietów oraz system translacji adresów (NAT) Summary(pt_BR.UTF-8): Ferramenta para controlar a filtragem de pacotes no kernel-2.6.x @@ -81,6 +81,7 @@ Summary: Kernel modules for xtables addons Summary(pl.UTF-8): Moudły jądra dla xtables addons Release: %{rel}@%{_kernel_ver_str} Group: Base/Kernel +Conflicts: xtables-geoip < 20090901-2 # VERSION only dependency is intentional, for allowing multiple kernel pkgs and # single userspace package installs. Requires: %{name} = %{version} @@ -117,7 +118,7 @@ export XA_TOPSRCDIR=$PWD %endif %if %{with userspace} -%{__make} -C extensions +%{__make} %endif %install @@ -135,11 +136,8 @@ cd .. %{__make} -C extensions install \ DESTDIR=$RPM_BUILD_ROOT -cd extensions -for m in $(cat .manpages.lst); do - cp -a libxt_$m.man $RPM_BUILD_ROOT%{_mandir}/man8/libxt_$m.8 -done -cd .. +install -d $RPM_BUILD_ROOT%{_mandir}/man8 +cp -a xtables-addons.8 $RPM_BUILD_ROOT%{_mandir}/man8 %endif %clean @@ -155,7 +153,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/xtables/libxt_*.so -%{_mandir}/man8/libxt_*.* +%{_mandir}/man8/xtables-addons.8* %endif %if %{with kernel} -- 2.43.0