Ticket #33417: Portfile

File Portfile, 1.2 KB (added by dark.panda+macports@…, 12 years ago)

Port file for mod_geoip 1.2.7.

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: $
3
4PortSystem 1.0
5
6name                    mod_geoip
7version                 1.2.7
8categories              www
9platforms               darwin
10maintainers             nomaintainer
11description             mod_geoip is an apache2 module that detects for stuff via GeoIP databases.
12long_description        ${description}
13
14homepage                http://www.maxmind.com/
15master_sites    http://geolite.maxmind.com/download/geoip/api/mod_geoip2/
16
17distfiles mod_geoip2_${version}.tar.gz
18
19checksums               \
20  md5       76514ad0e8adb8cd8231c5e3646d03fd \
21  sha1      0b23848d459415d979171efbb635e67568ae2816 \
22  rmd160    53892855810bd6a6578a3ae82d6a3acaf13173d3
23
24depends_lib             port:apache2
25
26use_configure   no
27
28worksrcdir      mod_geoip2_${version}
29
30build.cmd               ${prefix}/apache2/bin/apxs
31build.target
32build.args              -L${prefix}/lib -lGeoIP -c -o mod_geoip.so mod_geoip.c
33
34destroot {
35        xinstall -m 755 -d ${destroot}${prefix}/apache2/modules \
36                ${destroot}${prefix}/share/doc/${name}
37        xinstall -m 755 ${worksrcpath}/.libs/mod_geoip.so \
38                ${destroot}${prefix}/apache2/modules
39        xinstall -m 644 -W ${worksrcpath} Changes INSTALL README README.php \
40                ${destroot}${prefix}/share/doc/${name}
41}