aboutsummaryrefslogtreecommitdiff
path: root/www/mod_geoip
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2008-03-19 07:47:40 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2008-03-19 07:47:40 +0000
commita0eefb4c97e409001739155864cc09b57a47fd0f (patch)
tree85c2482a7c89c06cd5e420da1aa737670f55153e /www/mod_geoip
parente36312ad9ce0559b5da0638116af0506c31d7724 (diff)
downloadports-a0eefb4c97e409001739155864cc09b57a47fd0f.tar.gz
ports-a0eefb4c97e409001739155864cc09b57a47fd0f.zip
Simplify and reorganize Makefile and pkg-message in the similar way
like mod_geoip2 does.
Notes
Notes: svn path=/head/; revision=209359
Diffstat (limited to 'www/mod_geoip')
-rw-r--r--www/mod_geoip/Makefile20
-rw-r--r--www/mod_geoip/files/pkg-message.in11
-rw-r--r--www/mod_geoip/pkg-message14
3 files changed, 21 insertions, 24 deletions
diff --git a/www/mod_geoip/Makefile b/www/mod_geoip/Makefile
index 4471a8ee7f26..4b8d57595bfc 100644
--- a/www/mod_geoip/Makefile
+++ b/www/mod_geoip/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mod_geoip
PORTVERSION= 1.3.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www geography
MASTER_SITES= http://www.maxmind.com/download/geoip/api/mod_geoip/
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -18,22 +18,22 @@ COMMENT= An Apache module that provides the country code of the client's IP
BUILD_DEPENDS= GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP
RUN_DEPENDS= GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP
+CONFLICTS= mod_geoip2-[0-9]*
+
USE_APACHE= 1.3
AP_FAST_BUILD= yes
AP_GENPLIST= yes
-AP_EXTRAS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -lGeoIP
-
-.include <bsd.port.pre.mk>
+AP_INC+= ${LOCALBASE}/include
+AP_LIB+= ${LOCALBASE}/lib -lGeoIP
-PORTDOCS= Changes INSTALL README README.php
+SUB_FILES+= pkg-message
+PORTDOCS= Changes INSTALL README README.php
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mod_geoip
-.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_geoip/
-.endfor
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/mod_geoip/files/pkg-message.in b/www/mod_geoip/files/pkg-message.in
new file mode 100644
index 000000000000..05dc4359e32a
--- /dev/null
+++ b/www/mod_geoip/files/pkg-message.in
@@ -0,0 +1,11 @@
+*******************************************************************************
+Please edit your apache.conf or httpd.conf to enable and setup this module.
+
+You can always refer to the useful documents held in:
+%%DOCSDIR%%
+
+When it is done, do the following to apply the modifications:
+
+ apachectl configtest (and correct any errors reported)
+ apachectl restart
+*******************************************************************************
diff --git a/www/mod_geoip/pkg-message b/www/mod_geoip/pkg-message
deleted file mode 100644
index 06e3376a1a12..000000000000
--- a/www/mod_geoip/pkg-message
+++ /dev/null
@@ -1,14 +0,0 @@
-************************************************************
-Please edit your apache.conf or httpd.conf to enable and
-setup this module.
-
-You can always refer to the useful documents held in
-${PREFIX}/share/doc/mod_geoip/, where ${PREFIX} is
-typically /usr/local.
-
-When it's done, do the following to take effect:
-
- apachectl configtest (and correct any errors reported)
- apachectl restart
-
-************************************************************