[csw-devel] SF.net SVN: gar:[21833] csw/mgar/pkg/mod_geoip/branches

wilbury at users.sourceforge.net wilbury at users.sourceforge.net
Mon Aug 26 21:40:57 CEST 2013


Revision: 21833
          http://gar.svn.sourceforge.net/gar/?rev=21833&view=rev
Author:   wilbury
Date:     2013-08-26 19:40:57 +0000 (Mon, 26 Aug 2013)
Log Message:
-----------
mod_geoip/branches/old-gar-v1: old recipe

Added Paths:
-----------
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/Makefile
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/checksums
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.copyright
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.depend
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.gspec
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.postinstall
    csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.preremove

Added: csw/mgar/pkg/mod_geoip/branches/old-gar-v1/Makefile
===================================================================
--- csw/mgar/pkg/mod_geoip/branches/old-gar-v1/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mod_geoip/branches/old-gar-v1/Makefile	2013-08-26 19:40:57 UTC (rev 21833)
@@ -0,0 +1,43 @@
+NAME = ap2_modgeoip
+SPKG_NAME = mod_geoip
+VERSION = 1.2.5
+GARTYPE = v1
+
+DESCRIPTION = Apache 2.x GeoIP module
+define BLURB
+  mod_geoip2 is an Apache 2.x module for finding the country and city
+  that a web request originated from.  It uses the GeoIP library and
+  database to perform the lookup.  It is free software, licensed under
+  the Apache license.  It requires the C API, version 1.4.3 and above, see:
+  http://www.maxmind.com/app/c
+endef
+
+MASTER_SITES = http://www.maxmind.com/download/geoip/api/mod_geoip2/
+DISTFILES  = $(SPKG_NAME)2_$(VERSION).tar.gz
+DISTFILES += $(call admfiles,CSWap2modgeoip,depend postinstall preremove)
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(SPKG_NAME)2-(\d+(?:\.\d+)*).tar.gz
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = custom
+INSTALL_SCRIPTS = custom
+TEST_SCRIPTS =
+
+include gar/category.mk
+include ../apache2/files/extensionbuild.mk
+
+WORKSRC := $(WORKDIR)/$(SPKG_NAME)2_$(VERSION)
+SPKG_SOURCEURL = http://www.maxmind.com/app/mod_geoip/
+
+build-custom:
+	@( cd $(WORKSRC) ; $(APXS2_BUILD) -L$(libdir) -Wl,"-R $(libdir)" -lGeoIP $(SPKG_NAME).c )
+	@$(MAKECOOKIE)
+
+install-custom:
+	@mkdir -p $(DESTDIR)$(docdir)/$(NAME)
+	@( cd $(WORKSRC) ; \
+		$(APXS2_INSTALL) $(SPKG_NAME).la ; \
+		cp Changes README* INSTALL $(DESTDIR)$(docdir)/$(NAME) )
+	@cp $(FILEDIR)/CSWap2modgeoip.copyright $(DESTDIR)$(docdir)/$(NAME)/copyright
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/mod_geoip/branches/old-gar-v1/checksums
===================================================================
--- csw/mgar/pkg/mod_geoip/branches/old-gar-v1/checksums	                        (rev 0)
+++ csw/mgar/pkg/mod_geoip/branches/old-gar-v1/checksums	2013-08-26 19:40:57 UTC (rev 21833)
@@ -0,0 +1,5 @@
+5d35c9a9cbf47c2cb636bed26cd5fa19  download/mod_geoip2_1.2.5.tar.gz
+3c890c2b8db8b7366fc36eddfaaaefb8  download/CSWap2modgeoip.gspec
+3794fa588d42ec4ba824a145666a813e  download/CSWap2modgeoip.depend
+a4bc5e76c41a6e2e468b45b3d938bac8  download/CSWap2modgeoip.postinstall
+8dc70925d3bd5e484cd453d9b8401f03  download/CSWap2modgeoip.preremove

Added: csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.copyright
===================================================================
--- csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.copyright	                        (rev 0)
+++ csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.copyright	2013-08-26 19:40:57 UTC (rev 21833)
@@ -0,0 +1,49 @@
+====================================================================
+Copyright (c) 1995 The Apache Group.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in
+the documentation and/or other materials provided with the
+distribution.
+
+3. All advertising materials mentioning features or use of this
+software must display the following acknowledgment:
+"This product includes software developed by the Apache Group
+for use in the Apache HTTP server project (http://www.apache.org/)."
+
+4. The names "Apache Server" and "Apache Group" must not be used to
+endorse or promote products derived from this software without
+prior written permission.
+
+5. Redistributions of any form whatsoever must retain the following
+acknowledgment:
+"This product includes software developed by the Apache Group
+for use in the Apache HTTP server project (http://www.apache.org/)."
+
+THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
+EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE APACHE GROUP OR
+IT'S CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+====================================================================
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the Apache Group and was originally based
+on public domain software written at the National Center for
+Supercomputing Applications, University of Illinois, Urbana-Champaign.
+For more information on the Apache Group and the Apache HTTP server
+project, please see <http://www.apache.org/>.

Added: csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.depend
===================================================================
--- csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.depend	                        (rev 0)
+++ csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.depend	2013-08-26 19:40:57 UTC (rev 21833)
@@ -0,0 +1,2 @@
+P CSWapache2
+P CSWgeoip

Added: csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.gspec
===================================================================
--- csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.gspec	                        (rev 0)
+++ csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.gspec	2013-08-26 19:40:57 UTC (rev 21833)
@@ -0,0 +1,7 @@
+%var            bitname ap2_modgeoip
+%var            pkgname CSWap2modgeoip
+%include        url file://%{PKGLIB}/csw_dyndepend.gspec
+%copyright
+
+Please see /opt/csw/share/doc/ap2_modgeoip/copyright for license information.
+

Added: csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.postinstall
===================================================================
--- csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.postinstall	                        (rev 0)
+++ csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.postinstall	2013-08-26 19:40:57 UTC (rev 21833)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Enable module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -a -n \
+    geoip mod_geoip.so
+
+# Finito
+cat <<END
+
+NOTICE: mod_geoip is enabled in httpd.conf but the server was not
+restarted.  Please examine your configuration and restart apache2.
+
+END
+
+exit 0

Added: csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.preremove
===================================================================
--- csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.preremove	                        (rev 0)
+++ csw/mgar/pkg/mod_geoip/branches/old-gar-v1/files/CSWap2modgeoip.preremove	2013-08-26 19:40:57 UTC (rev 21833)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Disable module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -A -n \
+    geoip mod_geoip.so
+
+cat <<END
+
+NOTICE: mod_geoip is disabled in httpd.conf but the server was not
+restarted.  Please check your configuration and restart apache2.
+
+END
+
+exit 0

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list