Ticket #29677: Portfile

File Portfile, 2.2 KB (added by franck.cassedanne@…, 13 years ago)

ports/www/mod_log_firstbyte/Portfile

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_log_firstbyte
7version                 1.01
8categories              www
9license                 GNU GPL v2
10platforms               darwin freebsd openbsd
11maintainers             ouarz.net:franck.cassedanne
12description             A module for Apache2 to log first byte served.
13long_description        The ${name} is a module for Apache 2 which allows you \
14                        to log the time between each request being read and the \
15                        first byte of the response served.
16homepage                http://code.google.com/p/mod-log-firstbyte/
17fetch.type              svn
18svn.url                 http://mod-log-firstbyte.googlecode.com/svn/trunk/ 
19svn.revision            3
20worksrcdir              trunk
21
22livecheck.type          regex
23livecheck.url           http://mod-log-firstbyte.googlecode.com/svn/trunk/mod_log_firstbyte.c
24livecheck.version       ${version}
25livecheck.regex         Version: (\[0-9\]+.\[0-9\]+)
26
27use_configure           no
28depends_lib             port:apache2
29
30build.cmd               ${prefix}/apache2/bin/apxs
31build.args              -c -o ${name}.so ${name}.c
32build.target           
33
34destroot.violate_mtree  yes
35destroot {
36    xinstall -m 755 -d ${destroot}${prefix}/apache2/modules \
37        ${destroot}${prefix}/share/doc/${name}
38    xinstall -m 755 ${worksrcpath}/.libs/mod_log_firstbyte.so \
39        ${destroot}${prefix}/apache2/modules
40    xinstall -m 644 -W ${worksrcpath} readme.txt firstbytestats.pl \
41        ${destroot}${prefix}/share/doc/${name}
42}
43
44post-activate {
45    ui_msg "---------------------------------------------------------"
46    ui_msg " To enable ${name}, add"
47    ui_msg "    LoadModule log_firstbyte_module modules/${name}.so"
48    ui_msg " to your apache2 config file:"
49    ui_msg "    ${prefix}/apache2/conf/httpd.conf"
50    ui_msg ""
51    ui_msg " Please refer to the documentation at:"
52    ui_msg "    ${destroot}${prefix}/share/doc/${name}/readme.txt"
53    ui_msg " for further details on using this module."
54    ui_msg "---------------------------------------------------------"
55}