From f5f361f3ed635a95edf3b7a461549e91e2a6044c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 4 Mar 2010 12:17:56 +0000 Subject: main/pound: moved from testing --- main/pound/APKBUILD | 31 +++++++++++++++++++++++++++ main/pound/pound.cfg | 54 +++++++++++++++++++++++++++++++++++++++++++++++ main/pound/pound.initd | 26 +++++++++++++++++++++++ testing/pound/APKBUILD | 31 --------------------------- testing/pound/pound.cfg | 54 ----------------------------------------------- testing/pound/pound.initd | 26 ----------------------- 6 files changed, 111 insertions(+), 111 deletions(-) create mode 100644 main/pound/APKBUILD create mode 100644 main/pound/pound.cfg create mode 100644 main/pound/pound.initd delete mode 100644 testing/pound/APKBUILD delete mode 100644 testing/pound/pound.cfg delete mode 100644 testing/pound/pound.initd diff --git a/main/pound/APKBUILD b/main/pound/APKBUILD new file mode 100644 index 0000000000..058d7f3748 --- /dev/null +++ b/main/pound/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Natanael Copa +pkgname=pound +pkgver=2.4.5 +pkgrel=0 +pkgdesc="A reverse proxy, load balancer, and SSL wrapper" +url="http://www.apsis.ch/pound/index_html" +license="GPL" +depends= +makedepends="pcre-dev openssl-dev" +subpackages="$pkgname-doc" +source="http://www.apsis.ch/$pkgname/Pound-$pkgver.tgz + pound.cfg + $pkgname.initd" + +_builddir="$srcdir"/Pound-$pkgver +build() { + cd "$_builddir" + ./configure --prefix=/usr --sysconfdir=/etc/pound + make || return 1 +} + +package() { + cd "$_builddir" + install -d "$pkgdir"/usr/sbin + make DESTDIR="$pkgdir" install || return 1 + install -Dm755 "$srcdir"/pound.initd "$pkgdir"/etc/init.d/pound + install -Dm644 "$srcdir"/pound.cfg "$pkgdir"/etc/pound.cfg +} +md5sums="4c4613e857ee14c06c61ab09e28ae503 Pound-2.4.5.tgz +736b12a47acbb7fc2802ed7f51e959d0 pound.cfg +074fc58c89bb70e8fcd767ee70ebd0f0 pound.initd" diff --git a/main/pound/pound.cfg b/main/pound/pound.cfg new file mode 100644 index 0000000000..664ea53c9e --- /dev/null +++ b/main/pound/pound.cfg @@ -0,0 +1,54 @@ +## Minimal sample pound.cfg +## +## see pound(8) for details + + +###################################################################### +## global options: + +User "nobody" +Group "nobody" +#RootJail /chroot/pound + +## Logging: (goes to syslog by default) +## 0 no logging +## 1 normal +## 2 extended +## 3 Apache-style (common log format) +LogLevel 1 + +## check backend every X secs: +Alive 30 + +## use hardware-accelleration card supported by openssl(1): +#SSLEngine + + +###################################################################### +## listen, redirect and ... to: + +## redirect all requests on port 8888 ("ListenHTTP") to the local webserver see "UrlGroup" below): +ListenHTTP +Address 127.0.0.1 +Port 8888 + +## allow PUT and DELETE also (by default only GET, POST and HEAD)?: +xHTTP 0 + +Service +URL ".*" + +BackEnd +Address 127.0.0.1 +Port 80 +Priority 1 + +## End Backend +End + +## End Service +End + +## End listener +End + diff --git a/main/pound/pound.initd b/main/pound/pound.initd new file mode 100644 index 0000000000..135139404c --- /dev/null +++ b/main/pound/pound.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/pound/files/pound.init-1.9,v 1.1 2005/07/07 15:45:08 mkennedy Exp $ + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting pound" + if [ ! -f "/etc/pound.cfg" ]; then + eend 1 "configfile /etc/pound.cfg not found." + fi + start-stop-daemon --quiet --start --exec /usr/sbin/pound \ + -- -f /etc/pound.cfg -p /var/run/pound.pid + eend $? +} + +stop() { + ebegin "Stopping pound" + start-stop-daemon --quiet --stop --pidfile /var/run/pound.pid + eend $? +} + diff --git a/testing/pound/APKBUILD b/testing/pound/APKBUILD deleted file mode 100644 index 058d7f3748..0000000000 --- a/testing/pound/APKBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Maintainer: Natanael Copa -pkgname=pound -pkgver=2.4.5 -pkgrel=0 -pkgdesc="A reverse proxy, load balancer, and SSL wrapper" -url="http://www.apsis.ch/pound/index_html" -license="GPL" -depends= -makedepends="pcre-dev openssl-dev" -subpackages="$pkgname-doc" -source="http://www.apsis.ch/$pkgname/Pound-$pkgver.tgz - pound.cfg - $pkgname.initd" - -_builddir="$srcdir"/Pound-$pkgver -build() { - cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc/pound - make || return 1 -} - -package() { - cd "$_builddir" - install -d "$pkgdir"/usr/sbin - make DESTDIR="$pkgdir" install || return 1 - install -Dm755 "$srcdir"/pound.initd "$pkgdir"/etc/init.d/pound - install -Dm644 "$srcdir"/pound.cfg "$pkgdir"/etc/pound.cfg -} -md5sums="4c4613e857ee14c06c61ab09e28ae503 Pound-2.4.5.tgz -736b12a47acbb7fc2802ed7f51e959d0 pound.cfg -074fc58c89bb70e8fcd767ee70ebd0f0 pound.initd" diff --git a/testing/pound/pound.cfg b/testing/pound/pound.cfg deleted file mode 100644 index 664ea53c9e..0000000000 --- a/testing/pound/pound.cfg +++ /dev/null @@ -1,54 +0,0 @@ -## Minimal sample pound.cfg -## -## see pound(8) for details - - -###################################################################### -## global options: - -User "nobody" -Group "nobody" -#RootJail /chroot/pound - -## Logging: (goes to syslog by default) -## 0 no logging -## 1 normal -## 2 extended -## 3 Apache-style (common log format) -LogLevel 1 - -## check backend every X secs: -Alive 30 - -## use hardware-accelleration card supported by openssl(1): -#SSLEngine - - -###################################################################### -## listen, redirect and ... to: - -## redirect all requests on port 8888 ("ListenHTTP") to the local webserver see "UrlGroup" below): -ListenHTTP -Address 127.0.0.1 -Port 8888 - -## allow PUT and DELETE also (by default only GET, POST and HEAD)?: -xHTTP 0 - -Service -URL ".*" - -BackEnd -Address 127.0.0.1 -Port 80 -Priority 1 - -## End Backend -End - -## End Service -End - -## End listener -End - diff --git a/testing/pound/pound.initd b/testing/pound/pound.initd deleted file mode 100644 index 135139404c..0000000000 --- a/testing/pound/pound.initd +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/pound/files/pound.init-1.9,v 1.1 2005/07/07 15:45:08 mkennedy Exp $ - -depend() { - need net - after firewall -} - -start() { - ebegin "Starting pound" - if [ ! -f "/etc/pound.cfg" ]; then - eend 1 "configfile /etc/pound.cfg not found." - fi - start-stop-daemon --quiet --start --exec /usr/sbin/pound \ - -- -f /etc/pound.cfg -p /var/run/pound.pid - eend $? -} - -stop() { - ebegin "Stopping pound" - start-stop-daemon --quiet --stop --pidfile /var/run/pound.pid - eend $? -} - -- cgit v1.2.3