summaryrefslogtreecommitdiff
path: root/community/pion-net
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-12 23:14:57 +0000
committerroot <root@rshg054.dnsready.net>2011-11-12 23:14:57 +0000
commit559f8739357af66f22f2259e84b21c76b3a66205 (patch)
tree94eed0bef6460bbf30846c7e6bc2179e34fb6301 /community/pion-net
parente0f64ccb05c467785eaf68b42c3e302c44aa3324 (diff)
Sat Nov 12 23:14:57 UTC 2011
Diffstat (limited to 'community/pion-net')
-rw-r--r--community/pion-net/PKGBUILD49
-rw-r--r--community/pion-net/pion-net-4.0.5-build.patch12
2 files changed, 61 insertions, 0 deletions
diff --git a/community/pion-net/PKGBUILD b/community/pion-net/PKGBUILD
new file mode 100644
index 000000000..b359ca4f0
--- /dev/null
+++ b/community/pion-net/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 58325 2011-11-11 13:52:07Z stativ $
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Contributor: David Watzke <david@watzke.cz>
+
+pkgname=pion-net
+pkgver=4.0.5
+pkgrel=3
+pkgdesc="A C++ development library for implementing lightweight HTTP interfaces"
+url="http://www.pion.org/projects/pion-network-library"
+arch=('i686' 'x86_64')
+license=('custom:Boost')
+depends=('boost-libs' 'openssl' 'log4cpp')
+makedepends=('boost')
+source=("http://www.pion.org/files/$pkgname-$pkgver.tar.bz2"
+ "$pkgname-$pkgver-build.patch")
+md5sums=('1030fcce124621de705bdab40a1d977c'
+ 'd75ea2af90163a81d2bc71fda00f0c00')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -p1 -i "$srcdir/$pkgname-$pkgver-build.patch"
+
+ # override configure bug (forces debug even when nobody asked for it)
+ sed -i "s/ -ggdb//g;s/ -DNDEBUG//g" configure
+
+ ./configure --prefix=/usr --disable-doxygen-doc --with-log4cpp
+
+ find -name Makefile -print0 | xargs -0 \
+ sed -i -r '/^C(XX)?FLAGS/ s/$/ -DBOOST_FILESYSTEM_VERSION=2/' Makefile
+
+ # override Makefile bug
+ sed -i "/docs:/ s/doxygen-doc//" Makefile
+
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ # install license
+ install -D -m0755 COPYING "$pkgdir/usr/share/licenses/$pkgname/Boost"
+}
diff --git a/community/pion-net/pion-net-4.0.5-build.patch b/community/pion-net/pion-net-4.0.5-build.patch
new file mode 100644
index 000000000..25fdca20b
--- /dev/null
+++ b/community/pion-net/pion-net-4.0.5-build.patch
@@ -0,0 +1,12 @@
+diff -ru pion-net-4.0.5/net/include/pion/net/TCPConnection.hpp pion-net-4.0.5.fixed/net/include/pion/net/TCPConnection.hpp
+--- pion-net-4.0.5/net/include/pion/net/TCPConnection.hpp 2010-12-21 03:07:13.000000000 +0100
++++ pion-net-4.0.5.fixed/net/include/pion/net/TCPConnection.hpp 2011-07-31 09:01:38.445559768 +0200
+@@ -639,7 +639,7 @@
+
+ /// returns reference to the io_service used for async operations
+ inline boost::asio::io_service& getIOService(void) {
+- return m_ssl_socket.lowest_layer().io_service();
++ return m_ssl_socket.lowest_layer().get_io_service();
+ }
+
+ /// returns non-const reference to underlying TCP socket object