Ticket #16206: Portfile

File Portfile, 1.9 KB (added by n0ts (Naoya Nakazawa), 16 years ago)

Pound 2.4.3 Portfile

Line 
1# $Id: Portfile 33441 2008-01-27 11:46:26Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name              pound
6version           2.4.3
7categories        www
8maintainers       rcavanaugh@gmail.com
9
10description       A reverse proxy, load balancer and HTTPS front-end for Web server(s)
11long_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
17homepage          http://www.apsis.ch/pound/
18distname          Pound-${version}
19extract.suffix    .tgz
20master_sites      ${homepage}
21checksums         md5 2de4c2ac1023b420b74a1bc08fb93b8a \
22                  sha1 1d86e134bf307c9e2f10f647a73925339ba96575 \
23                  rmd160 a59c5fda7ce12513a894c4cbe59708f2fb73caa3
24
25# TODO use tcmalloc and/or hoard
26depends_lib       port:openssl port:pcre
27configure.args    --mandir=\\\$\\{prefix\\}/share/man \
28                  --infodir=\\\$\\{prefix\\}/share/info \
29                  --with-ssl=${prefix}/include/openssl
30
31set pound_config_name   pound.cfg
32set pound_config        ${prefix}/etc/${pound_config_name}
33set pound_pidfile_name  pound.pid
34set pound_pidfile       ${prefix}/var/run/${pound_pidfile_name}
35
36pre-configure {
37  reinplace "s|-o @I_OWNER@ -g @I_GRP@||g" ${worksrcpath}/Makefile.in
38}
39
40startupitem.create  yes
41startupitem.init    "PIDFILE=${pound_pidfile}"
42startupitem.start   "${prefix}/sbin/pound -f ${pound_config} -p \$PIDFILE"
43startupitem.stop    "kill \$(cat \$PIDFILE)"
44
45post-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
52variant msdav {
53  configure.args-append     --enable-msdav
54}