diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/pound | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/pound')
-rw-r--r-- | community/pound/ChangeLog | 22 | ||||
-rw-r--r-- | community/pound/PKGBUILD | 41 | ||||
-rw-r--r-- | community/pound/pound.cfg | 85 | ||||
-rw-r--r-- | community/pound/pound.runit | 23 | ||||
-rw-r--r-- | community/pound/pound.service | 10 |
5 files changed, 181 insertions, 0 deletions
diff --git a/community/pound/ChangeLog b/community/pound/ChangeLog new file mode 100644 index 000000000..1a9677113 --- /dev/null +++ b/community/pound/ChangeLog @@ -0,0 +1,22 @@ + +2009-03-22 Douglas Soares de Andrade <douglas@archlinux.org> + + * Updated for i686: 2.4.4 + * Fixed an issue with the rc.d pound script + +2008-06-22 Mateusz Herych <heniekk@gmail.com> + + * Adding for x86_64 community - 2.4.3 + +2008-06-22 Douglas Soares de Andrade <dsa@aur.archlinux.org> + + * Adding for i686 community - 2.4.3 + +2008-05-22 Mateusz Herych <heniekk@gmail.com> + + * Adding to community for x86_64 + +2008-05-21 Douglas Soares de Andrade <dsa@aur.archlinux.org> + + * Adding to community for i686 + diff --git a/community/pound/PKGBUILD b/community/pound/PKGBUILD new file mode 100644 index 000000000..2f66f0892 --- /dev/null +++ b/community/pound/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 91955 2013-05-30 09:43:54Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Douglas Soares de Andrade <dsa@aur.archlinux.org> +# Contributor: Roberto Alsina <ralsina@kde.org> + +pkgname=pound +pkgver=2.6 +pkgrel=6 +pkgdesc="A reverse proxy, load balancer, and SSL wrapper" +arch=('i686' 'x86_64') +url="http://www.apsis.ch/pound/index_html" +license=('GPL') +depends=('pcre' 'openssl') +backup=(etc/pound/pound.cfg) +source=(http://www.apsis.ch/pound/Pound-$pkgver.tgz + pound.runit + pound.service + pound.cfg) +md5sums=('8c913b527332694943c4c67c8f152071' + '2a555ee5871a849cb1f6e6ba2ff054df' + 'c0d0726a96dfda0e83843362e401b3dc' + '8937808acd22c6391ebe4340af8df854') + +build() { + cd $srcdir/Pound-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc/pound --sbindir=/usr/bin + make +} + +package() { + cd $srcdir/Pound-$pkgver + install -d $pkgdir/usr/sbin + make DESTDIR=$pkgdir install + chown root.root -R $pkgdir/usr + install -d $pkgdir/etc/sv + install -d $pkgdir/etc/sv/pound + install -m0755 $srcdir/pound.runit $pkgdir/etc/sv/pound/run + install -D -m0644 $srcdir/pound.cfg $pkgdir/etc/pound/pound.cfg + install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service + rmdir $pkgdir/usr/sbin +} diff --git a/community/pound/pound.cfg b/community/pound/pound.cfg new file mode 100644 index 000000000..fda8a07f4 --- /dev/null +++ b/community/pound/pound.cfg @@ -0,0 +1,85 @@ +############################################################################### +## Pound configration file +############################################################################### +## +## +## GLOBAL SETTINGS +## +## Specify the user and group Pound will run as. +#User "http" +#Group "http" +## +## Specify the directory that Pound will chroot to at runtime. +#RootJail "/" +## +## Have Pound run in the foreground (if 0) or as a daemon (if 1). +#Daemon 1 +## +## Specify the log facility to use. +#LogFacility daemon +## +## Specify the logging level. +#LogLevel 1 +## +## Ignore case when matching URLs. +#IgnoreCase 0 +## +## Enable or disable the dynamic rescaling code. +#DynScale 0 +## +## Specify how often Pound will check for resurected back-end hosts. +#Alive 30 +## +## Specify for how long Pound will wait for a client request. +#Client 10 +## +## How long should Pound wait for a response from the back-end. +#TimeOut 15 +## +## How long should Pound wait for a connection to the back-end. +#ConnTO 15 +## +## How long should Pound continue to answer interrupted connections. +#Grace 30 +## +## Use an OpenSSL hardware acceleration card. +#SSLEngine "name" +## +## Set the control socket path. +#Control "/tmp/poundctl.socket" +## +## +## LISTENERS +## +## Configure services and backends for the HTTP reverse proxy. +#ListenHTTP +# Address 10.0.0.1 +# Port 80 +# Service +# BackEnd +# Address 127.0.0.1 +# Port 8080 +# End +# BackEnd +# Address 127.0.0.1 +# Port 8081 +# End +# End +#End +## +## Configure services and backends for the HTTPS reverse proxy. +#ListenHTTPS +# Address 10.0.0.1 +# Port 443 +# Cert "/etc/ssl/certs/pound.pem" +# Service +# BackEnd +# Address 127.0.0.1 +# Port 8080 +# End +# BackEnd +# Address 127.0.0.1 +# Port 8081 +# End +# End +#End diff --git a/community/pound/pound.runit b/community/pound/pound.runit new file mode 100644 index 000000000..ae904583c --- /dev/null +++ b/community/pound/pound.runit @@ -0,0 +1,23 @@ +#!/bin/sh +exec 2>&1 +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +BIN=/usr/bin/pound +OPTS="-f /etc/pound/pound.cfg -p /var/run/pound.pid" +SVC=pound + +PID=`pidof $BIN` +if [ -z "$PID" ] +then + if [ -f /var/run/$SVC.pid ] + then + rm /var/run/$SVC.pid + rm_daemon $SVC + fi + echo "Starting $SVC daemon" + $BIN $OPTS +else + [ -z $PID ] || exec watchpid $PID +fi diff --git a/community/pound/pound.service b/community/pound/pound.service new file mode 100644 index 000000000..5ec089c9a --- /dev/null +++ b/community/pound/pound.service @@ -0,0 +1,10 @@ +[Unit] +Description=A reverse proxy, load balancer, and SSL wrapper + +[Service] +Type=forking +PIDFile=/run/pound.pid +ExecStart=/usr/bin/pound -f /etc/pound/pound.cfg -p /run/pound.pid + +[Install] +WantedBy=multi-user.target |