[csw-devel] SF.net SVN: gar:[21834] csw/mgar/pkg/mod_geoip/trunk/Makefile

wilbury at users.sourceforge.net wilbury at users.sourceforge.net
Mon Aug 26 22:02:57 CEST 2013


Revision: 21834
          http://gar.svn.sourceforge.net/gar/?rev=21834&view=rev
Author:   wilbury
Date:     2013-08-26 20:02:56 +0000 (Mon, 26 Aug 2013)
Log Message:
-----------
mod_geoip/trunk: build and install

Modified Paths:
--------------
    csw/mgar/pkg/mod_geoip/trunk/Makefile

Modified: csw/mgar/pkg/mod_geoip/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mod_geoip/trunk/Makefile	2013-08-26 19:40:57 UTC (rev 21833)
+++ csw/mgar/pkg/mod_geoip/trunk/Makefile	2013-08-26 20:02:56 UTC (rev 21834)
@@ -13,7 +13,7 @@
 
 MASTER_SITES = http://www.maxmind.com/download/geoip/api/mod_geoip2/
 DISTFILES  = mod_geoip2-latest.tar.gz
-#WORKSRC = $(WORKDIR)/$(DISTNAME)-src/native
+WORKSRC = $(WORKDIR)/mod_geoip2_$(VERSION)
 #PATCHDIR = $(WORKDIR)/$(DISTNAME)-src
 
 # Apache paths
@@ -29,11 +29,24 @@
 
 BUILD_DEP_PKGS_CSWap2modgeoip2 += CSWapache2-dev
 RUNTIME_DEP_PKGS_CSWap2modgeoip2 += CSWapache2
+PKGFILES_CSWap2modgeoip2 += $(AP2_ROOT)/libexec/mod_geoip2.so
 
 LICENSE_TEXT = Apache
 
 # No test suite available
 TEST_SCRIPTS =
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = custom
+INSTALL_SCRIPTS = custom
 
 include gar/category.mk
 
+build-custom:
+	$(AP2_APXS) -c $(WORKSRC)/mod_geoip.c
+	@$(MAKECOOKIE)
+
+install-custom:
+	@ginstall -d -m 755 $(DESTDIR)$(AP2_ROOT)/libexec
+	@ginstall -m 755 $(WORKSRC)/mod_geoip.o $(DESTDIR)$(AP2_ROOT)/libexec/mod_geoip2.so
+	@$(MAKECOOKIE)
+

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