1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name pound |
---|
5 | version 1.9.5 |
---|
6 | categories www |
---|
7 | maintainers rcavanaugh@gmail.com |
---|
8 | description A reverse proxy, load balancer and HTTPS front-end for Web server(s) |
---|
9 | long_description The Pound program is a reverse proxy, load balancer and\ |
---|
10 | HTTPS front-end for Web server(s). Pound was developed to\ |
---|
11 | enable distributing the load among several Web-servers and\ |
---|
12 | to allow for a convenient SSL wrapper for those Web servers\ |
---|
13 | that do not offer it natively. Pound is distributed under\ |
---|
14 | the GPL - no warranty, it's free to use, copy and give away. |
---|
15 | homepage http://www.apsis.ch/pound/ |
---|
16 | distname Pound-${version} |
---|
17 | extract.suffix .tgz |
---|
18 | master_sites ${homepage} |
---|
19 | checksums ${distname}.tgz md5 6db10b610a0d0b64dd05828fccff55db |
---|
20 | destroot.destdir prefix=${destroot}${prefix} |
---|
21 | configure.args "--mandir=${prefix}/share/man --infodir=${prefix}/share/info" |
---|
22 | |
---|
23 | set pound_config_name pound.cfg |
---|
24 | set pound_config ${prefix}/etc/${pound_config_name} |
---|
25 | set pound_pidfile_name pound.pid |
---|
26 | set pound_pidfile ${prefix}/var/run/${pound_pidfile_name} |
---|
27 | |
---|
28 | startupitem.create yes |
---|
29 | startupitem.init "PIDFILE=${pound_pidfile}" |
---|
30 | startupitem.start "${prefix}/sbin/pound -f ${pound_config} -p \$PIDFILE" |
---|
31 | startupitem.stop "kill \$(cat \$PIDFILE)" |
---|
32 | |
---|
33 | variant ssl { |
---|
34 | depends_lib-append bin:openssl:openssl |
---|
35 | configure.args-append --with-ssl=${prefix}/include/openssl |
---|
36 | } |
---|
37 | |
---|
38 | variant msdav { |
---|
39 | configure.args-append --enable-msdav |
---|
40 | } |
---|
41 | |
---|
42 | post-configure { |
---|
43 | cd ${worksrcpath} |
---|
44 | reinplace "s|-o bin -g bin||g" Makefile |
---|
45 | } |
---|
46 | |
---|
47 | post-install { |
---|
48 | ui_msg "\n Before starting pound it must be configured.\n\ |
---|
49 | Pound is configured by editing ${pound_config}\n\ |
---|
50 | Details on the format of ${pound_config_name} can be found in\n\ |
---|
51 | the pound man page or at ${homepage}\n" |
---|
52 | } |
---|