a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20930 2006-12-12 00:04:53Z pguyot@kallisys.net $
PortSystem 1.0
name pound
version 2.1.8
categories www
maintainers rcavanaugh@gmail.com
description A reverse proxy, load balancer and HTTPS front-end for Web server(s)
long_description The Pound program is a reverse proxy, load balancer and\
HTTPS front-end for Web server(s). Pound was developed to\
enable distributing the load among several Web-servers and\
to allow for a convenient SSL wrapper for those Web servers\
that do not offer it natively. Pound is distributed under\
the GPL - no warranty, it's free to use, copy and give away.
homepage http://www.apsis.ch/pound/
distname Pound-${version}
extract.suffix .tgz
master_sites ${homepage}
checksums md5 1693d2b49491d52406f496001e7e97d2 \
sha1 995f410eead732e795cd0713a6d976a606647eba \
rmd160 a9b12834858ab49456ed360f5fa33abab6f1c0b9
depends_lib port:openssl
configure.args --mandir=\\\$\\{prefix\\}/share/man \
--infodir=\\\$\\{prefix\\}/share/info \
--with-ssl=${prefix}/include/openssl
patchfiles patch-svc.c
destroot.destdir prefix=${destroot}${prefix}
set pound_config_name pound.cfg
set pound_config ${prefix}/etc/${pound_config_name}
set pound_pidfile_name pound.pid
set pound_pidfile ${prefix}/var/run/${pound_pidfile_name}
post-configure {
reinplace "s|-o bin -g bin||g" ${worksrcpath}/Makefile
}
startupitem.create yes
startupitem.init "PIDFILE=${pound_pidfile}"
startupitem.start "${prefix}/sbin/pound -f ${pound_config} -p \$PIDFILE"
startupitem.stop "kill \$(cat \$PIDFILE)"
post-install {
ui_msg "\n Before starting pound it must be configured.\n\
Pound is configured by editing ${pound_config}\n\
Details on the format of ${pound_config_name} can be found in\n\
the pound man page or at ${homepage}\n"
}
variant msdav {
configure.args-append --enable-msdav
}
platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0
}