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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name mod_log_firstbyte |
---|
7 | version 1.01 |
---|
8 | categories www |
---|
9 | license GNU GPL v2 |
---|
10 | platforms darwin freebsd openbsd |
---|
11 | maintainers ouarz.net:franck.cassedanne |
---|
12 | description A module for Apache2 to log first byte served. |
---|
13 | long_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. |
---|
16 | homepage http://code.google.com/p/mod-log-firstbyte/ |
---|
17 | fetch.type svn |
---|
18 | svn.url http://mod-log-firstbyte.googlecode.com/svn/trunk/ |
---|
19 | svn.revision 3 |
---|
20 | worksrcdir trunk |
---|
21 | |
---|
22 | livecheck.type regex |
---|
23 | livecheck.url http://mod-log-firstbyte.googlecode.com/svn/trunk/mod_log_firstbyte.c |
---|
24 | livecheck.version ${version} |
---|
25 | livecheck.regex Version: (\[0-9\]+.\[0-9\]+) |
---|
26 | |
---|
27 | use_configure no |
---|
28 | depends_lib port:apache2 |
---|
29 | |
---|
30 | build.cmd ${prefix}/apache2/bin/apxs |
---|
31 | build.args -c -o ${name}.so ${name}.c |
---|
32 | build.target |
---|
33 | |
---|
34 | destroot.violate_mtree yes |
---|
35 | destroot { |
---|
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 | |
---|
44 | post-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 | } |
---|