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