Ticket #6936: Portfile

File Portfile, 1.9 KB (added by rcavanaugh@…, 18 years ago)

ATTACHMENT: Pound-1.9.5

Line 
1# $Id: $
2
3PortSystem        1.0
4name              pound
5version           1.9.5
6categories        www
7maintainers       rcavanaugh@gmail.com
8description       A reverse proxy, load balancer and HTTPS front-end for Web server(s)
9long_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.
15homepage          http://www.apsis.ch/pound/
16distname          Pound-${version}
17extract.suffix    .tgz
18master_sites      ${homepage}
19checksums         ${distname}.tgz md5 6db10b610a0d0b64dd05828fccff55db
20destroot.destdir  prefix=${destroot}${prefix}
21configure.args    "--mandir=${prefix}/share/man --infodir=${prefix}/share/info"
22
23set pound_config_name   pound.cfg
24set pound_config        ${prefix}/etc/${pound_config_name}
25set pound_pidfile_name  pound.pid
26set pound_pidfile       ${prefix}/var/run/${pound_pidfile_name}
27
28startupitem.create  yes
29startupitem.init    "PIDFILE=${pound_pidfile}"
30startupitem.start   "${prefix}/sbin/pound -f ${pound_config} -p \$PIDFILE"
31startupitem.stop    "kill \$(cat \$PIDFILE)"
32
33variant ssl {
34   depends_lib-append       bin:openssl:openssl
35   configure.args-append    --with-ssl=${prefix}/include/openssl
36}
37
38variant msdav {
39  configure.args-append     --enable-msdav
40}
41
42post-configure {
43  cd ${worksrcpath}
44  reinplace "s|-o bin -g bin||g" Makefile
45}
46
47post-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}