1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name fcgiwrap |
---|
7 | version 1.1.0 |
---|
8 | maintainers nomaintainer |
---|
9 | categories www |
---|
10 | ## License not precised be it on the website or the archive |
---|
11 | license |
---|
12 | platforms darwin |
---|
13 | description simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx |
---|
14 | long_description ${description} |
---|
15 | homepage https://nginx.localdomain.pl/wiki/FcgiWrap |
---|
16 | master_sites http://github.com/gnosek/fcgiwrap/tarball/master |
---|
17 | distname gnosek-fcgiwrap-${version}-5-g66e7b7d |
---|
18 | extract.suffix .tar |
---|
19 | worksrcdir gnosek-fcgiwrap-66e7b7d |
---|
20 | |
---|
21 | checksums rmd160 845898ad79097f2e281e27516ee13d183ef0959b \ |
---|
22 | sha256 785368f510509d5eb47aad9c8258129ba69dac24dc3ca32c4bd323005ed7882e |
---|
23 | |
---|
24 | depends_lib port:fcgi |
---|
25 | depends_run port:spawn-fcgi |
---|
26 | |
---|
27 | livecheck.type none |
---|
28 | |
---|
29 | depends_build port:autogen port:automake |
---|
30 | configure.args --mandir=/share/man |
---|
31 | pre-configure { |
---|
32 | system "cd ${worksrcpath} && autoreconf -i" |
---|
33 | } |
---|
34 | post-destroot { |
---|
35 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
36 | copy ${worksrcpath}/README.rst ${destroot}${prefix}/share/doc/${name}/ |
---|
37 | } |
---|
38 | |
---|
39 | ## FIXME! plist not working |
---|
40 | startupitem.create yes |
---|
41 | startupitem.name ${name} |
---|
42 | ## -n = no forking |
---|
43 | startupitem.executable ${prefix}/bin/spawn-fcgi -n -F 1 -P ${prefix}/var/run/${name}.pid -s ${prefix}/var/run/${name}.socket -U nobody -G nobody ${prefix}/sbin/fcgiwrap |
---|
44 | startupitem.pidfile ${prefix}/var/run/${name}.pid |
---|
45 | |
---|
46 | notes " |
---|
47 | To end setup, if using w Nginx, follow |
---|
48 | http://wiki.nginx.org/Fcgiwrap |
---|
49 | |
---|
50 | You can launch ${name} either as startup plist or |
---|
51 | $ ${prefix}/bin/spawn-fcgi -F 1 -P ${prefix}/var/run/${name}.pid -s ${prefix}/var/run/${name}.socket \ |
---|
52 | -U nobody -G nobody ${prefix}/sbin/fcgiwrap |
---|
53 | |
---|
54 | " |
---|