source: trunk/dports/perl/p5-cgi-speedycgi/Portfile @ 125738

Last change on this file since 125738 was 125738, checked in by mf2k@…, 4 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z mf2k@macports.org $
2
3PortSystem                      1.0
4PortGroup                       perl5 1.0
5
6perl5.branches                  5.8 5.10 5.12 5.14 5.16
7perl5.setup                     CGI-SpeedyCGI 2.22
8revision                                    12
9license                         GPL-2+
10maintainers                     nomaintainer
11description                     Speed up perl CGI scripts by running them persistently
12long_description                SpeedyCGI is a way to run perl scripts persistently, \
13                                which can make them run much more quickly. A script \
14                                can be made to to run persistently by changing the \
15                                interpreter line at the top of a script from: \
16                                  '#!/_prefix_/bin/perl' to '#!/_prefix_/bin/speedy'
17
18platforms                       darwin
19checksums                       md5 2f80df78874e3efa80f180923c4967a1
20use_parallel_build              no
21
22if {${perl5.major} != ""} {
23patchfiles                      patch-Makefile.PL \
24                                patch-mod_speedycgi2.c \
25                                patch-src-SpeedyMake.pl \
26                                patch-src_speedy_main.c \
27                                patch-mod_speedycgi-Makefile.tmpl \
28                                patch-src-speedy_perl.h \
29                                patch-src-speedy_backend_main.h \
30                                patch-src-speedy_perl.c
31
32depends_lib-append                      port:apache2
33
34variant apple_apache description {Configures SpeedyCGI to use Apple's built-in Apache instead of MacPorts Apache} {
35        depends_lib-delete      port:apache2
36        patchfiles-delete       patch-mod_speedycgi-Makefile.tmpl
37}
38
39post-patch {
40if { [variant_isset apple_apache]} {
41# Do nothing
42
43} else {
44# Patch for MacPorts Apache 2
45        reinplace "s|apxs -q|${prefix}/apache2/bin/apxs -q|g" \
46                ${worksrcpath}/src/SpeedyMake.pl \
47                ${worksrcpath}/Makefile.PL
48
49        reinplace "s|__PREFIX__|${prefix}|g" \
50                ${worksrcpath}/mod_speedycgi/Makefile.tmpl \
51        }
52}
53
54post-destroot {
55        xinstall -m 4755 ${worksrcpath}/speedy/speedy ${destroot}${prefix}/bin/speedy_suidperl
56        xinstall -m 755 -d ${destroot}${prefix}/share/doc/speedycgi
57        eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/speedycgi
58        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/speedycgi
59
60if { [variant_isset apple_apache]} {
61# Install module for Apple's Apache outside of ${prefix} and let user copy it.
62        xinstall -m 644 ${worksrcpath}/mod_speedycgi2/mod_speedycgi.so ${destroot}${prefix}/share/doc/speedycgi
63
64} else {
65# Install module for MacPorts Apache2
66        xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
67        xinstall -m 644 ${worksrcpath}/mod_speedycgi2/.libs/mod_speedycgi.so \
68                ${destroot}${prefix}/apache2/modules
69        }
70}
71}
72
73notes \
74"#### To complete SpeedyCGI installation for MacPorts Apache2 (default install) ####
75
76Enable mod_speedycgi.so in httpd.conf
77
78-Edit MacPorts Apache 2 ${prefix}/apache2/conf/httpd.conf and add this line:
79        LoadModule speedycgi_module modules/mod_speedycgi.so
80
81
82See ${prefix}/share/doc/speedycgi/README for further details.
83
84
85
86#### To complete SpeedyCGI installation for Apple's Apache2 (+apple_apache variant)  ####
87       
88Copy mod_speedycgi.so and enable it in httpd.conf
89
90-Copy ${prefix}/share/doc/speedycgi/mod_speedycgi.so to /usr/libexec/apache2
91
92-Edit Apple's Apache /etc/apache2/httpd.conf and add this line:
93        LoadModule speedycgi_module libexec/apache2/mod_speedycgi.so
94
95NOTE: If using the apple_apache variant on the 10.5 PPC platform, modify the file
96  /usr/sbin/apachectl as follows:
97
98    From:  HTTPD='/usr/sbin/httpd'
99    To:    HTTPD='arch -ppc /usr/sbin/httpd'
100
101
102See ${prefix}/share/doc/speedycgi/README for further details."
Note: See TracBrowser for help on using the repository browser.