summaryrefslogtreecommitdiff
path: root/community/net6
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-19 23:14:47 +0000
committerroot <root@rshg054.dnsready.net>2011-08-19 23:14:47 +0000
commitc6a4d3790fc33558d9af322dac15d2bd6d34ac0b (patch)
tree934e1d11b80c8529b23dcb07b626c5b81e8b156d /community/net6
parent59eecef62ae9aa7dd391310f30293318f641c59c (diff)
Fri Aug 19 23:14:46 UTC 2011
Diffstat (limited to 'community/net6')
-rw-r--r--community/net6/PKGBUILD14
-rw-r--r--community/net6/build-fix.patch24
2 files changed, 32 insertions, 6 deletions
diff --git a/community/net6/PKGBUILD b/community/net6/PKGBUILD
index 26d8d2eea..abee474a9 100644
--- a/community/net6/PKGBUILD
+++ b/community/net6/PKGBUILD
@@ -1,24 +1,26 @@
-# $Id: PKGBUILD 7956 2010-01-12 23:28:07Z giovanni $
+# $Id: PKGBUILD 54475 2011-08-18 15:08:16Z bluewind $
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: William Rea <sillywilly@gmail.com>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=net6
pkgver=1.3.12
-pkgrel=1
+pkgrel=2
pkgdesc="A library that provides a TCP protocol abstraction for C++"
arch=('i686' 'x86_64')
url="http://gobby.0x539.de/"
license=('LGPL')
depends=('gnutls' 'libsigc++2.0')
options=('!libtool')
-source=(http://releases.0x539.de/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('506776416d8aea2b9ea13a81f9145383')
+source=(http://releases.0x539.de/$pkgname/$pkgname-$pkgver.tar.gz
+ build-fix.patch)
+md5sums=('506776416d8aea2b9ea13a81f9145383'
+ '18ac67590d6bce0a0a4a6a21af8da429')
build() {
cd ${srcdir}/$pkgname-$pkgver
-
+ patch -Rp1 <$srcdir/build-fix.patch
./configure --prefix=/usr
- make || return 1
+ make
make DESTDIR=${pkgdir} install
}
diff --git a/community/net6/build-fix.patch b/community/net6/build-fix.patch
new file mode 100644
index 000000000..7e932bce6
--- /dev/null
+++ b/community/net6/build-fix.patch
@@ -0,0 +1,24 @@
+diff -wbBur /mnt/temp/builds/staging-i686/sergej/build/src/net6-1.3.12/inc/encrypt.hpp net6-1.3.12/inc/encrypt.hpp
+--- /mnt/temp/builds/staging-i686/sergej/build/src/net6-1.3.12/inc/encrypt.hpp 2011-08-09 00:19:29.000000000 +0400
++++ net6-1.3.12/inc/encrypt.hpp 2009-11-15 16:02:46.000000000 +0300
+@@ -34,7 +34,7 @@
+ typedef gnutls_anon_server_credentials gnutls_anon_server_credentials_t;
+ typedef gnutls_transport_ptr gnutls_transport_ptr_t;
+ typedef gnutls_dh_params gnutls_dh_params_t;
+-//typedef gnutls_connection_end gnutls_connection_end_t;
++typedef gnutls_connection_end gnutls_connection_end_t;
+
+ class dh_params: private net6::non_copyable
+ {
+diff -wbBur /mnt/temp/builds/staging-i686/sergej/build/src/net6-1.3.12/src/encrypt.cpp net6-1.3.12/src/encrypt.cpp
+--- /mnt/temp/builds/staging-i686/sergej/build/src/net6-1.3.12/src/encrypt.cpp 2011-08-09 00:20:12.000000000 +0400
++++ net6-1.3.12/src/encrypt.cpp 2009-11-15 16:02:46.000000000 +0300
+@@ -25,7 +25,7 @@
+ {
+ const unsigned int DH_BITS = 1024;
+
+- net6::gnutls_session_t create_session(gnutls_connection_end_t end)
++ net6::gnutls_session_t create_session(net6::gnutls_connection_end_t end)
+ {
+ net6::gnutls_session_t session;
+ gnutls_init(&session, end);