Ticket #43227: Portfile

File Portfile, 1.9 KB (added by jul_bsd@…, 10 years ago)
Line 
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
4PortSystem 1.0
5
6name                fcgiwrap
7version             1.1.0
8maintainers         nomaintainer
9categories          www
10## License not precised be it on the website or the archive
11license
12platforms           darwin
13description         simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx
14long_description    ${description}
15homepage            https://nginx.localdomain.pl/wiki/FcgiWrap
16master_sites        http://github.com/gnosek/fcgiwrap/tarball/master
17distname            gnosek-fcgiwrap-${version}-5-g66e7b7d
18extract.suffix      .tar
19worksrcdir          gnosek-fcgiwrap-66e7b7d
20
21checksums           rmd160  845898ad79097f2e281e27516ee13d183ef0959b \
22                    sha256  785368f510509d5eb47aad9c8258129ba69dac24dc3ca32c4bd323005ed7882e
23
24depends_lib         port:fcgi
25depends_run         port:spawn-fcgi
26
27livecheck.type      none
28
29depends_build  port:autogen port:automake
30configure.args      --mandir=/share/man
31pre-configure {
32        system "cd ${worksrcpath} && autoreconf -i"
33}
34post-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
40startupitem.create      yes
41startupitem.name        ${name}
42## -n = no forking
43startupitem.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
44startupitem.pidfile     ${prefix}/var/run/${name}.pid
45
46notes "
47To end setup, if using w Nginx, follow
48    http://wiki.nginx.org/Fcgiwrap
49
50You 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"