summaryrefslogtreecommitdiff
path: root/net/GeoIP
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-06-01 10:24:42 +0000
committerjmmv <jmmv@pkgsrc.org>2003-06-01 10:24:42 +0000
commit6d926c66d2207a3f16bbc10f6ad9bf649976fae8 (patch)
tree69ac915fe4002d94775d8aa0ae031a2a6d13ec3e /net/GeoIP
parent5f9f1cfc1fa41c27d22622f386b414f726f8c3f2 (diff)
downloadpkgsrc-6d926c66d2207a3f16bbc10f6ad9bf649976fae8.tar.gz
Initial import of GeoIP, version 1.1.9:
GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses a file based database that is accurate as of March 2002. This database simply contains IP blocks as keys, and countries as values. It should be more complete and accurate than using reverse DNS lookups. This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visitors, for credit card fraud detection, and for software export controls. Package initially provided by Juan RP through pkgsrc-wip, with several changes by me.
Diffstat (limited to 'net/GeoIP')
-rw-r--r--net/GeoIP/DESCR9
-rw-r--r--net/GeoIP/Makefile24
-rw-r--r--net/GeoIP/PLIST29
-rw-r--r--net/GeoIP/buildlink2.mk29
-rw-r--r--net/GeoIP/distinfo5
-rw-r--r--net/GeoIP/patches/patch-aa21
6 files changed, 117 insertions, 0 deletions
diff --git a/net/GeoIP/DESCR b/net/GeoIP/DESCR
new file mode 100644
index 00000000000..041a111693d
--- /dev/null
+++ b/net/GeoIP/DESCR
@@ -0,0 +1,9 @@
+GeoIP is a C library that enables the user to find the country that any IP
+address or hostname originates from. It uses a file based database that is
+accurate as of March 2002. This database simply contains IP blocks as keys,
+and countries as values. It should be more complete and accurate than using
+reverse DNS lookups.
+
+This module can be used to automatically select the geographically closest
+mirror, to analyze your web server logs to determine the countries of your
+visitors, for credit card fraud detection, and for software export controls.
diff --git a/net/GeoIP/Makefile b/net/GeoIP/Makefile
new file mode 100644
index 00000000000..deab31ce371
--- /dev/null
+++ b/net/GeoIP/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/01 10:24:42 jmmv Exp $
+#
+
+DISTNAME= GeoIP-1.1.9
+CATEGORIES= net
+MASTER_SITES= http://www.maxmind.com/download/geoip/api/c/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.maxmind.com/download/geoip/api/c/
+COMMENT= Find the country from any IP address
+
+GNU_CONFIGURE= yes
+USE_BUILDLINK2= yes
+USE_LIBTOOL= yes
+USE_PKGINSTALL= yes
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+
+EGDIR= ${PREFIX}/share/examples/GeoIP
+CONF_FILES= ${EGDIR}/GeoIP.conf.default ${PKG_SYSCONFDIR}/GeoIP.conf
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/GeoIP/PLIST b/net/GeoIP/PLIST
new file mode 100644
index 00000000000..9a0b56b2e54
--- /dev/null
+++ b/net/GeoIP/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/01 10:24:42 jmmv Exp $
+bin/geoipexport
+bin/geoiplookup
+bin/geoipupdate
+include/GeoIP.h
+include/GeoIPBitReader.h
+include/GeoIPCity.h
+include/GeoIPUpdate.h
+lib/libGeoIP.a
+lib/libGeoIP.la
+lib/libGeoIP.so
+lib/libGeoIP.so.2
+lib/libGeoIP.so.2.9
+lib/libGeoIPBitReader.a
+lib/libGeoIPBitReader.la
+lib/libGeoIPBitReader.so
+lib/libGeoIPBitReader.so.0
+lib/libGeoIPBitReader.so.0.0
+lib/libGeoIPUpdate.a
+lib/libGeoIPUpdate.la
+lib/libGeoIPUpdate.so
+lib/libGeoIPUpdate.so.0
+lib/libGeoIPUpdate.so.0.0
+man/man1/geoiplookup.1
+man/man1/geoipupdate.1
+share/GeoIP/GeoIP.dat
+share/examples/GeoIP/GeoIP.conf.default
+@dirrm share/examples/GeoIP
+@dirrm share/GeoIP
diff --git a/net/GeoIP/buildlink2.mk b/net/GeoIP/buildlink2.mk
new file mode 100644
index 00000000000..a0bfee61c5f
--- /dev/null
+++ b/net/GeoIP/buildlink2.mk
@@ -0,0 +1,29 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/06/01 10:24:42 jmmv Exp $
+#
+# This Makefile fragment is included by packages that use GeoIP.
+#
+# This file was created automatically using createbuildlink 2.6.
+#
+
+.if !defined(GEOIP_BUILDLINK2_MK)
+GEOIP_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= GeoIP
+BUILDLINK_DEPENDS.GeoIP?= GeoIP>=1.1.9
+BUILDLINK_PKGSRCDIR.GeoIP?= ../../net/GeoIP
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.GeoIP=GeoIP
+BUILDLINK_PREFIX.GeoIP_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.GeoIP+= include/GeoIP.h
+BUILDLINK_FILES.GeoIP+= include/GeoIPBitReader.h
+BUILDLINK_FILES.GeoIP+= include/GeoIPCity.h
+BUILDLINK_FILES.GeoIP+= include/GeoIPUpdate.h
+BUILDLINK_FILES.GeoIP+= lib/libGeoIP.*
+BUILDLINK_FILES.GeoIP+= lib/libGeoIPBitReader.*
+BUILDLINK_FILES.GeoIP+= lib/libGeoIPUpdate.*
+
+BUILDLINK_TARGETS+= GeoIP-buildlink
+
+GeoIP-buildlink: _BUILDLINK_USE
+
+.endif # GEOIP_BUILDLINK2_MK
diff --git a/net/GeoIP/distinfo b/net/GeoIP/distinfo
new file mode 100644
index 00000000000..5afce8d5f5f
--- /dev/null
+++ b/net/GeoIP/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/01 10:24:42 jmmv Exp $
+
+SHA1 (GeoIP-1.1.9.tar.gz) = 0041455ba3a330d25e221973041636c3f302ceae
+Size (GeoIP-1.1.9.tar.gz) = 489713 bytes
+SHA1 (patch-aa) = 5cf4eed4243162480e05bc472537150e783e15e4
diff --git a/net/GeoIP/patches/patch-aa b/net/GeoIP/patches/patch-aa
new file mode 100644
index 00000000000..af7292246b6
--- /dev/null
+++ b/net/GeoIP/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/01 10:24:42 jmmv Exp $
+
+--- conf/Makefile.in.orig 2003-03-11 02:25:32.000000000 +0100
++++ conf/Makefile.in
+@@ -23,7 +23,7 @@ bindir = @bindir@
+ sbindir = @sbindir@
+ libexecdir = @libexecdir@
+ datadir = @datadir@
+-sysconfdir = @sysconfdir@
++sysconfdir = @datadir@/examples/@PACKAGE@
+ sharedstatedir = @sharedstatedir@
+ localstatedir = @localstatedir@
+ libdir = @libdir@
+@@ -152,7 +152,6 @@ install-exec: install-exec-am
+
+ install-data-am:
+ @$(NORMAL_INSTALL)
+- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+ install-data: install-data-am
+
+ install-am: all-am