]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
add config for mod_geoip
authorElan Ruusamäe <glen@delfi.ee>
Sun, 16 Oct 2016 15:10:19 +0000 (18:10 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 16 Oct 2016 15:10:19 +0000 (18:10 +0300)
lighttpd-mod_geoip.conf [new file with mode: 0644]
lighttpd.spec

diff --git a/lighttpd-mod_geoip.conf b/lighttpd-mod_geoip.conf
new file mode 100644 (file)
index 0000000..1474b92
--- /dev/null
@@ -0,0 +1,13 @@
+# GeoIP module.
+#
+# Documentation: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModGeoip
+
+server.modules += (
+       "mod_geoip"
+)
+
+# path to the geoip or geocity database
+#geoip.db-filename = "/usr/share/GeoIP/GeoIP.dat"
+
+# default disabled
+#geoip.memory-cache = "enable"
index 671ffba1830b7c090b895300d0eacdec1cb8e411..9116299f4136df612eb2a2e5101555bd2dce22ed 100644 (file)
@@ -95,6 +95,7 @@ Source136:    %{name}-mod_h264_streaming.conf
 Source137:     %{name}-mod_cgi_php.conf
 Source138:     %{name}-mod_compress.tmpwatch
 Source139:     %{name}-mod_uploadprogress.conf
+Source140:     %{name}-mod_geoip.conf
 # use branch.sh script to create branch.diff
 #Patch100:     %{name}-branch.diff
 ## Patch100-md5:       7bd09235304c8bcb16f34d49d480c0fb
@@ -492,7 +493,12 @@ URL:               https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModGeoip
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_geoip
-lighttpd module for IP Based Geographic Lookups.
+mod_geoip is a module for fast ip/location lookups. It uses MaxMind
+GeoIP / GeoCity databases.
+
+If the ip was found in the database the module sets the appropriate
+environment variables to the request, thus making other modules/fcgi
+be informed.
 
 %package mod_h264_streaming
 Summary:       lighttpd module for h264 streaming
@@ -991,6 +997,7 @@ cp -p %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
 cp -p %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
 cp -p %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
 cp -p %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.conf
+cp -p %{SOURCE140} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_geoip.conf
 %if %{with h264_streaming}
 cp -p %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
 %endif
@@ -1305,6 +1312,7 @@ fi
 
 %files mod_geoip
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_geoip.conf
 %attr(755,root,root) %{_libexecdir}/mod_geoip.so
 
 %if %{with h264_streaming}
This page took 0.034717 seconds and 4 git commands to generate.