SPECS: horde.spec - added GeoIP database

paszczus paszczus at pld-linux.org
Thu Aug 25 17:35:51 CEST 2005


Author: paszczus                     Date: Thu Aug 25 15:35:51 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added GeoIP database

---- Files affected:
SPECS:
   horde.spec (1.97 -> 1.98) 

---- Diffs:

================================================================
Index: SPECS/horde.spec
diff -u SPECS/horde.spec:1.97 SPECS/horde.spec:1.98
--- SPECS/horde.spec:1.97	Thu Aug 25 14:59:58 2005
+++ SPECS/horde.spec	Thu Aug 25 17:35:46 2005
@@ -22,6 +22,8 @@
 Source0:	ftp://ftp.horde.org/pub/horde/%{name}-%{version}.tar.gz
 # Source0-md5:	31ee0819be4efe44819f8ffef5db5365
 Source1:	%{name}.conf
+Source2:	http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz
+# Source2-md5:	4f29410e385065eaa37037c1b1a44695
 Patch0:		%{name}-path.patch
 Patch1:		%{name}-shell.disabled.patch
 Patch2:		%{name}-util-h3.patch
@@ -149,6 +151,10 @@
 
 install %{SOURCE1} 		$RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
 
+# MaxMind GeoIP Hostname Country lookup
+
+install %{SOURCE2}		$RPM_BUILD_ROOT/var/lib/horde/
+
 > $RPM_BUILD_ROOT/var/log/%{name}/%{name}.log
 
 install scripts/ldap/horde.schema $RPM_BUILD_ROOT%{schemadir}
@@ -181,6 +187,9 @@
 
 NOTE: You don't need SQL database for Auhtorization if You use LDAP for authorization.
 
+If you want to use MaxMind GeoIP Hostname Country lookup do 'gunzip /var/lib/horde/GeoIP.dat.gz'
+and enable this function in horde configuration.
+
 EOF
 # '
 
@@ -300,6 +309,7 @@
 %dir %attr(770,root,http) /var/log/%{name}
 %dir %attr(770,root,http) /var/lib/%{name}
 %ghost %attr(770,root,http) /var/log/%{name}/%{name}.log
+%attr(640,root,http) /var/lib/%{name}/GeoIP.dat.gz
 
 %files -n openldap-schema-horde
 %defattr(644,root,root,755)
@@ -311,6 +321,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.98  2005/08/25 15:35:46  paszczus
+- added GeoIP database
+
 Revision 1.97  2005/08/25 12:59:58  paszczus
 - release 1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/horde.spec?r1=1.97&r2=1.98&f=u




More information about the pld-cvs-commit mailing list