[SCM] proftpd-mod-geoip branch, master, updated. upstream/0.2-16-ga4d3d1f
Fabrizio Regalli
fabreg at fabreg.it
Wed Apr 13 15:10:36 UTC 2011
The following commit has been merged in the master branch:
commit a4d3d1fb6e6d9aafb84f769e55af29a510d1ba27
Author: Fabrizio Regalli <fabreg at fabreg.it>
Date: Wed Apr 13 17:12:51 2011 +0200
First package release 0.3
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..21428f3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+proftpd-mod-geoip (0.2) unstable; urgency=low
+
+ * Initial Release. (closes: #94162)
+
+ -- Fabrizio Regalli <fabreg at fabreg.it> Wed, 16 Feb 2011 11:14:35 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a78a455
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: proftpd-mod-geoip
+Section: net
+Priority: optional
+Maintainer: ProFTPD Maintainance Team <pkg-proftpd-maintainers at lists.alioth.debian.org>
+Uploaders: Fabrizio Regalli <fabreg at fabreg.it>,
+ Francesco Paolo Lovergine <frankie at debian.org>
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>= 7.0.50~), proftpd-dev (>= 1.3.3d-5~), libgeoip-dev, libacl1-dev
+Standards-Version: 3.9.1
+Homepage: http://www.castaglia.org/proftpd/modules/mod_geoip.html
+Vcs-Git: git://git.debian.org/pkg-proftpd/proftpd-mod-geoip.git
+Vcs-Browser: http://git.debian.org/?p=pkg-proftpd/proftpd-mod-geoip.git;a=summary
+
+Package: proftpd-mod-geoip
+Architecture: any
+Depends: proftpd-basic (>= 1.3.3d-4~), geoip-database, ${misc:Depends}, ${shlibs:Depends}, ${proftpd:Depends}
+Description: ProFTPD mod_geoip
+ This is mod_geoip module for ProFTPD.
+ The mod_geoip module uses the GeoIP library from MaxMind
+ to look up various geographic information for a connecting client:
+ http://www.maxmind.com/app/c
+ This information can be used to set access controls for the server
+
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a68fc2f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: http://dep.debian.net/deps/dep5/
+Upstream-Name: mod_geoip
+Upstream-Contact: TJ Saunders
+Source: http://www.castaglia.org/proftpd/modules/mod_geoip.html
+
+Files: *
+Copyright: 2007-2010, TJ Saunders
+License: GPL-2+
+
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+Files: debian/*
+Copyright: 2011, Fabrizio Regalli <fabreg at fabreg.it>
+License: GPL-2+
+
diff --git a/debian/proftpd-mod-geoip.dirs b/debian/proftpd-mod-geoip.dirs
new file mode 100644
index 0000000..f0e8d4e
--- /dev/null
+++ b/debian/proftpd-mod-geoip.dirs
@@ -0,0 +1,2 @@
+usr/lib/proftpd
+usr/share/proftpd/templates
diff --git a/debian/proftpd-mod-geoip.doc-base b/debian/proftpd-mod-geoip.doc-base
new file mode 100644
index 0000000..8be4356
--- /dev/null
+++ b/debian/proftpd-mod-geoip.doc-base
@@ -0,0 +1,10 @@
+Document: proftpd-mod-geoip
+Title: Documentation for the mod_geoip ProFTPD
+Author:
+Abstract: Configuration reference, modules documentation, FAQs and HOWTOs
+Section: System/Administration
+
+Format: HTML
+Index: /usr/share/doc/proftpd-mod-geoip/mod_geoip.html
+Files: /usr/share/doc/proftpd-mod-geoip/*.html
+
diff --git a/debian/proftpd-mod-geoip.docs b/debian/proftpd-mod-geoip.docs
new file mode 100644
index 0000000..9e48e6d
--- /dev/null
+++ b/debian/proftpd-mod-geoip.docs
@@ -0,0 +1 @@
+mod_geoip.html
diff --git a/debian/proftpd-mod-geoip.install b/debian/proftpd-mod-geoip.install
new file mode 100644
index 0000000..e4d2f95
--- /dev/null
+++ b/debian/proftpd-mod-geoip.install
@@ -0,0 +1 @@
+debian/templates/geoip.conf usr/share/doc/proftpd-mod-geoip/
diff --git a/debian/proftpd-mod-geoip.links b/debian/proftpd-mod-geoip.links
new file mode 100644
index 0000000..411f03d
--- /dev/null
+++ b/debian/proftpd-mod-geoip.links
@@ -0,0 +1 @@
+usr/share/doc/proftpd-mod-geoip/geoip.conf usr/share/proftpd/templates/geoip.conf
diff --git a/debian/proftpd-mod-geoip.postrm b/debian/proftpd-mod-geoip.postrm
new file mode 100644
index 0000000..c889943
--- /dev/null
+++ b/debian/proftpd-mod-geoip.postrm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ -d /usr/lib/proftpd ]; then
+ echo "Deleting mod_geoip.."
+ rm -f /usr/lib/proftpd/mod_geoip.so
+fi
+
+#DEBHELPER#
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..71ef045
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+export DH_VERBOSE=1
+VERSION=$(shell grep PROFTPD_VERSION_TEXT /usr/include/proftpd/version.h|cut -d\" -f2)
+MODULE_NAME=mod_geoip
+DEBNAME=proftpd-mod-geoip
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ DESTDIR=$(CURDIR)/debian/$(DEBNAME) prxs -c $(MODULE_NAME).c
+
+override_dh_auto_install:
+ DESTDIR=$(CURDIR)/debian/$(DEBNAME) prxs -i -c $(MODULE_NAME).c
+
+override_dh_gencontrol:
+ cat /usr/share/proftpd/proftpd-substvars >>$(CURDIR)/debian/substvars
+ dh_gencontrol
+
+clean:
+ $(RM) $(MODULE_NAME).a *.o *.la *.lo
+ $(LIBTOOL) --mode=clean $(RM) "$(MODULE_NAME).o"
+ $(LIBTOOL) --mode=clean $(RM) `echo "$(MODULE_NAME).la" | sed 's/\.la$\/.lo/g'`
+ $(RM) -rf $(CURDIR)/debian/proftpd-mod-geoip $(CURDIR)/debian/*.log $(CURDIR)/debian/files $(CURDIR)/debian/substvars
+
+distclean: clean
+ $(RM) -r .libs/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/templates/geoip.conf b/debian/templates/geoip.conf
new file mode 100644
index 0000000..4bb1d67
--- /dev/null
+++ b/debian/templates/geoip.conf
@@ -0,0 +1,101 @@
+#
+# Proftpd sample configuration for geoip.
+#
+<IfModule mod_geoip.c>
+
+# GeoIPEngine
+# Syntax: GeoIPEngine on|off
+# Default: off
+# The GeoIPEngine directive enables or disables the module's lookup of geographic information for a
+# connecting client, and subsequent enforcement of any configured ACLs.
+GeoIPEngine on
+
+
+# Syntax: GeoIPAllowFilter filter pattern
+# Default: none
+# The GeoIPAllowFilter directive is used to configure ACLs based on the
+# geographic data provided by the GeoIP library.
+# Multiple GeoIPAllowFilter directives in the configuration are supported;
+# if any filter matches the connecting client, the connection will be allowed.
+# The filter parameter specifies the GeoIP value to which to apply the configured
+# pattern for matching. The possible filter values are:
+# * AreaCode
+# * ASN
+# * City
+# * Continent
+# * CountryCode
+# * CountryCode3
+# * CountryName
+# * ISP
+# * Latitude
+# * Longitude
+# * NetworkSpeed
+# * Organization
+# * PostalCode
+# * Proxy
+# * RegionCode
+# * RegionName
+# * Timezone
+# The pattern parameter is case-insensitive regular expression that will be applied to the
+# specified filter value, if available.
+# Examples:
+
+# Allow clients with high-speed connections
+# GeoIPAllowFilter NetworkSpeed corporate
+
+# Reject clients connecting from North America or South America
+# GeoIPDenyFilter Continent (NA|SA)
+
+# GeoIPDenyFilter
+# Syntax: GeoIPDenyFilter filter pattern
+# Default: none
+# The GeoIPDenyFilter directive is used to configure ACLs based on the geographic data provided by
+# the GeoIP library.
+# Multiple GeoIPDenyFilter directives in the configuration are supported; if any filter matches the
+# connecting client, the connection will be rejected.
+# See GeoIPAllowFilter for a description of the directive syntax and parameters.
+
+# GeoIPLog
+# Syntax: GeoIPLog file|"none"
+# Default: None
+# The GeoIPLog directive is used to specify a log file for mod_geoip's reporting on a per-server basis.
+# The file parameter given must be the full path to the file to use for logging.
+# Note that this path must not be to a world-writable directory and, unless AllowLogSymlinks is explicitly
+# set to on (generally a bad idea), the path must not be a symbolic link.
+GeoIPLog /var/log/proftpd/geoip.log
+
+# GeoIPTable
+# Syntax: GeoIPTable path [flags]
+# Default: None
+# The GeoIPTable directive is used to a GeoIP database file for use by the GeoIP library. The path parameter given must be the full path to the database file.
+# If no GeoIPTable directive is configured, then the GeoIP library will use the default GeoIP Country database file installed with the library.
+# Otherwise, only the database files configured via GeoIPTable directives will be used.
+# Multiple GeoIPTable directives can be used to configure multiple different GeoIP database files for use at the same time.
+# The possible flags values supported are:
+# * Standard
+# Reads the database from the filesystem; uses the least memory but causes database to be read for each connection.
+# * MemoryCache
+# Loads the database into memory; faster performance but uses the most memory. Tables configured with MemoryCache are loaded into the parent process memory, avoiding
+# the need to read them for each connection.
+# * CheckCache
+# Causes the GeoIP library to check for database updates. If the database has been updated, the library will automatically reload the file and/or memory cache.
+# * IndexCache
+# Loads just the most frequently accessed index portion of the database into memory, resulting in faster lookups than Standard but less memory usage than MemoryCache.
+# This can be useful for larger databases such as GeoIP Organization and GeoIP City.
+# * MMapCache
+# Loads the database into mmap shared memory.
+# * UTF8
+# Tells the GeoIP library to return UTF8 strings for the data obtained from this database file. By default, the GeoIP library uses ISO-8859-1 encoded strings.
+# Multiple different flags can be configured.
+# Examples:
+# GeoIPTable /path/to/GeoIP.dat MemoryCache CheckCache
+# GeoIPTable /path/to/GeoISP.dat Standard
+# GeoIPTable /path/to/GeoIPCity.dat IndexCache
+# Load GeoIP city database into memory on server startup, and use
+# UTF8-encoded city names
+GeoIPTable /usr/share/GeoIP/GeoIP.dat MemoryCache UTF8
+
+# Add your GeoIPAllowFilter/GeoIPDenyFilter rules here
+</IfModule>
+
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ea1942d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.castaglia.org/proftpd/modules/proftpd-mod-geoip-([\d\.]+)\.tar\.gz
--
mod_geoip for proftpd
More information about the Pkg-proftpd-maintainers
mailing list