summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-01-21 00:01:06 +0000
committerChristian Ruppert <idl0r@gentoo.org>2011-01-21 00:01:06 +0000
commit73d5da777de2d2935f1599161c85abce7b19af92 (patch)
tree1b27fa29aae5b2997ebffad26eb03d0a3103ce96 /dev-libs/tntnet
parentunmask lwt, ocsigen 1.3.4 is fine with it (diff)
downloadhistorical-73d5da777de2d2935f1599161c85abce7b19af92.tar.gz
historical-73d5da777de2d2935f1599161c85abce7b19af92.tar.bz2
historical-73d5da777de2d2935f1599161c85abce7b19af92.zip
Revision bump. Fix LDFLAGS usage (--as-needed). Use Gentoo init script instead of the generic one, bug 335306. Fix compilation with gnutls. Some refactoring of the ebuild and some new useflags. Fix dependencies. Remove vdr from maintainer, bug 216445.
Package-Manager: portage-2.2.0_alpha18/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/tntnet')
-rw-r--r--dev-libs/tntnet/ChangeLog12
-rw-r--r--dev-libs/tntnet/Manifest24
-rw-r--r--dev-libs/tntnet/files/tntnet-2.0-as-needed.patch429
-rw-r--r--dev-libs/tntnet/files/tntnet-2.0-gnutls.patch31
-rw-r--r--dev-libs/tntnet/files/tntnet.initd30
-rw-r--r--dev-libs/tntnet/metadata.xml11
-rw-r--r--dev-libs/tntnet/tntnet-2.0-r1.ebuild89
-rw-r--r--dev-libs/tntnet/tntnet-2.0.ebuild69
8 files changed, 610 insertions, 85 deletions
diff --git a/dev-libs/tntnet/ChangeLog b/dev-libs/tntnet/ChangeLog
index 882109ac8f82..b4ec3894f9b2 100644
--- a/dev-libs/tntnet/ChangeLog
+++ b/dev-libs/tntnet/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for dev-libs/tntnet
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/ChangeLog,v 1.15 2011/01/20 23:34:03 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/ChangeLog,v 1.16 2011/01/21 00:01:06 idl0r Exp $
+
+*tntnet-2.0-r1 (21 Jan 2011)
+
+ 21 Jan 2011; Christian Ruppert <idl0r@gentoo.org> -tntnet-2.0.ebuild,
+ +tntnet-2.0-r1.ebuild, +files/tntnet-2.0-as-needed.patch,
+ +files/tntnet-2.0-gnutls.patch, +files/tntnet.initd, metadata.xml:
+ Revision bump. Fix LDFLAGS usage (--as-needed). Use Gentoo init script
+ instead of the generic one, bug 335306. Fix compilation with gnutls. Some
+ refactoring of the ebuild and some new useflags. Fix dependencies. Remove vdr
+ from maintainer, bug 216445.
20 Jan 2011; Joerg Bornkessel <hd_brummy@gentoo.org>
-tntnet-1.6.0-r1.ebuild, -tntnet-1.6.1.ebuild, -tntnet-1.6.2.ebuild:
diff --git a/dev-libs/tntnet/Manifest b/dev-libs/tntnet/Manifest
index c84fe484893a..f4461807ad73 100644
--- a/dev-libs/tntnet/Manifest
+++ b/dev-libs/tntnet/Manifest
@@ -1,19 +1,25 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
AUX tntnet-1.6.3-gcc43.patch 278 RMD160 55965541e8e6327d570586a0b2efc184c6fdd176 SHA1 10da481e0ca9535d4a8d36340cdbd8d6afd6c7c6 SHA256 b1365de53b6914755dc03299e4df02c71d3c990dab52f0def9342fa2c6a53c21
AUX tntnet-1.6.3-gnutls-2.8.patch 362 RMD160 e7f7f45c8c065b5bc60ca0598f64af07eb8983ef SHA1 09602f20a4b30dbb48912b84f20b402c20a4308f SHA256 13c67c5e69dac2a12d0b0ae575def550eca0ee2296704902e2225dc3577a3075
+AUX tntnet-2.0-as-needed.patch 18235 RMD160 7aa2161e496e7e2e04ca12696d539084c5d8d080 SHA1 cec2e3ea37e1eed58c209138c3e1e5cf8801d264 SHA256 546439ea242fbf748f99a1eebee9248d86372ba56c6641a3fbdb61a248489914
+AUX tntnet-2.0-gnutls.patch 919 RMD160 778ac9fa4b84b01688ed651726e0e795c73c376d SHA1 ccf2083ec1b3a21c69a614119afb31fcf47ce671 SHA256 25ee2938e22ffadb136f52745f704997a51d481ca7b8f4741766d0337352e1ed
+AUX tntnet.initd 776 RMD160 bdd3248f039635fd7d9d840b6668cf362bc17e43 SHA1 ca73cd6aea6989e8c85f440b26c4ac3c0b74a2e8 SHA256 00da9fe7d92e3d5809411def8a2883e0c178dff8a2e34ef262e0f3653e194ed1
DIST tntnet-1.6.3.tar.gz 1952122 RMD160 321b40dbcb1bfd9b1b0e69130c2b9c141106fe25 SHA1 dc4cf0b4fb4b0a62a806fb5b6aef75cdb812df6e SHA256 1c16547e4fe6c07f8fe1b9d2eeb750cb2061032f31880f93f2080b049d54a3a4
DIST tntnet-2.0.tar.gz 1553215 RMD160 c3f3bc7c4955a4a2040dc0888e95d68ebcfb20c2 SHA1 01800d6aabac1b268acb08993f2ccfa942e4e5d3 SHA256 8e5daf06f9ae1ec05654c3f2b3c2a74cfd64cc2a9f6267f6e4bb604842315b1a
EBUILD tntnet-1.6.3.ebuild 1655 RMD160 65fafd67c084e9d7e7664cd3c33271bdaf0a0925 SHA1 7c4271c7fccd22ed76b489b70c38827c448f2e66 SHA256 627e302309801220e672d21a30287cc04b718c934afc488f0e97e330b2951aac
-EBUILD tntnet-2.0.ebuild 1563 RMD160 50e3d2b10695d2da3dd6abaa3eb7d1d0cc8a2bf7 SHA1 aad2c128e04972dcff614491ba419e3dc49fa5e2 SHA256 1b292d992417fb317f1f7848a1f1144d2a701107d1e805f9c452e492bb7a154f
-MISC ChangeLog 2470 RMD160 724099d398500af5ab725f70620d6fe2ffaa409c SHA1 aabd843fba7aa5d15e7496783d16c3435036992e SHA256 8d6f7a8577565f88f7c2eb10c380bb7bdfd87b7700a6a4ec8289cbc1b2f56471
-MISC metadata.xml 251 RMD160 b4bdfc1a9e947ad1d1f76c1942f02057d5cbc993 SHA1 6e174f6e4395999a9dafd53f523e079766c0b094 SHA256 b426b6e6d679a63de74d2c1a21e4da2381fb1b580b0180b041307471d67ab54f
+EBUILD tntnet-2.0-r1.ebuild 1924 RMD160 f4db23bceb546ab728a409483282aaf5be52cac0 SHA1 f729512af3c608e0b0862c795e2a2d49db44662f SHA256 133d7957f000353abde5e20ca97b3dd6fe4336b8c968cd34d9d8b6256cf59d47
+MISC ChangeLog 2958 RMD160 28290796722d508d9ac9f25aebda7358becf316a SHA1 abb8a1f3cabaeac3e53121805f8eecba41ff6daa SHA256 5f8b0d79bb3ca9f3b0b70375168ffd2a2f86bb686f0317cf8f956c0b2aeef4f5
+MISC metadata.xml 278 RMD160 9f818c1e9e6d86930127942ffc4b9549f5b180a4 SHA1 7f640acfe403423f895e2aec80a61d99e2c720fe SHA256 d049b52d13f8cf4f1d6fc3cd16db8bba0d39738dc9b24fe0bf9544d8c7e32640
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-Comment: added by hd_brummy@gentoo.org
+Version: GnuPG v2.0.16 (GNU/Linux)
-iD8DBQFNOMaEdn07HTTCgIoRAvmkAJkBWYD27U6BI+VDnt3pmZ1JaFomkwCguaP+
-NlWRPqxfsjcehx3On3DtPzg=
-=Y6AH
+iQEcBAEBCAAGBQJNOMzIAAoJEMOx0zmdw4Z1WQgH/jBbKKs8gmSq9/RpwqCy6+DR
+VzQSMPIiYww/T9muWZHe9oJ6OzVqwTVAViO56qgs1gj/pefOEz25aGTpe8OV06sO
+8FXeJqPM6gzmCe0RFz3jd0nrg52tfY4mT71J8TZwyfjZqDtG1+m2kiVEt+J9FSpJ
+Tl1quuEDcBr0P8mVtUQxioF3LuA4Ibd8eAi5z7fvS6uTzycUTrroE9cTnCvb5vCe
+FGX1xTwQZLtXcdpeAwb8JSny+ANTNT9YqGn/qmsPZQ1i7Ly8qKELO5pB5extzB2a
+w+2+ggvG3aIxdzjjo3qThgouXSAH1wrot4pnEZXw+Nf4mItGLg5Th7qn+mhjgps=
+=4FEu
-----END PGP SIGNATURE-----
diff --git a/dev-libs/tntnet/files/tntnet-2.0-as-needed.patch b/dev-libs/tntnet/files/tntnet-2.0-as-needed.patch
new file mode 100644
index 000000000000..35d10a91f6d0
--- /dev/null
+++ b/dev-libs/tntnet/files/tntnet-2.0-as-needed.patch
@@ -0,0 +1,429 @@
+From a43a952135bd8b657b455ff88bae640ad8d104e9 Mon Sep 17 00:00:00 2001
+From: Christian Ruppert <idl0r@gentoo.org>
+Date: Thu, 20 Jan 2011 18:20:45 +0100
+Subject: [PATCH] Fix LDFLAGS usage
+
+---
+ framework/cgi/Makefile.am | 4 ++--
+ framework/common/Makefile.am | 7 ++++---
+ framework/defcomp/Makefile.am | 4 ++--
+ framework/runtime/Makefile.am | 3 +--
+ sdk/demos/Makefile.am | 4 ++--
+ sdk/demos/calc/Makefile.am | 4 ++--
+ sdk/demos/calcajax/Makefile.am | 4 ++--
+ sdk/demos/calci18n/Makefile.am | 4 ++--
+ sdk/demos/calcmvc/Makefile.am | 4 ++--
+ sdk/demos/chat/Makefile.am | 4 ++--
+ sdk/demos/comp/Makefile.am | 8 ++++----
+ sdk/demos/config/Makefile.am | 4 ++--
+ sdk/demos/controls/Makefile.am | 4 ++--
+ sdk/demos/cookie/Makefile.am | 4 ++--
+ sdk/demos/hello/Makefile.am | 4 ++--
+ sdk/demos/rajax-jquery/Makefile.am | 4 ++--
+ sdk/demos/savepoint/Makefile.am | 4 ++--
+ sdk/demos/session/Makefile.am | 4 ++--
+ sdk/demos/sprintf/Makefile.am | 4 ++--
+ sdk/demos/strings/Makefile.am | 4 ++--
+ sdk/demos/upload/Makefile.am | 4 ++--
+ sdk/tools/common/Makefile.am | 3 ++-
+ sdk/tools/ecppc/Makefile.am | 3 +--
+ sdk/tools/ecppl/Makefile.am | 3 +--
+ sdk/tools/ecppll/Makefile.am | 3 +--
+ utest/Makefile.am | 3 +--
+ 26 files changed, 51 insertions(+), 54 deletions(-)
+
+diff --git a/framework/cgi/Makefile.am b/framework/cgi/Makefile.am
+index 4912e19..0bc02f4 100644
+--- a/framework/cgi/Makefile.am
++++ b/framework/cgi/Makefile.am
+@@ -7,5 +7,5 @@ libtntnet_cgi_la_SOURCES = \
+ tnt/cgi.h
+
+ libtntnet_cgi_la_CXXFLAGS = $(PTHREAD_CFLAGS)
+-libtntnet_cgi_la_LDFLAGS = -version-info @sonumber@ $(PTHREAD_LIBS)
+-libtntnet_cgi_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la -lcxxtools
++libtntnet_cgi_la_LDFLAGS = -version-info @sonumber@
++libtntnet_cgi_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la -lcxxtools $(PTHREAD_LIBS)
+diff --git a/framework/common/Makefile.am b/framework/common/Makefile.am
+index d2de886..84c4297 100644
+--- a/framework/common/Makefile.am
++++ b/framework/common/Makefile.am
+@@ -114,7 +114,8 @@ noinst_HEADERS = \
+ tnt/util.h
+
+ libtntnet_la_CXXFLAGS = -DPKGLIBDIR=\"@libdir@/@PACKAGE@\" $(PTHREAD_CFLAGS)
+-libtntnet_la_LDFLAGS = -version-info @sonumber@ -lz -lcxxtools $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
++libtntnet_la_LDFLAGS = -version-info @sonumber@ @SHARED_LIB_FLAG@
++libtntnet_la_LIBADD = -lz -lcxxtools $(PTHREAD_LIBS)
+
+ if MAKE_GNUTLS
+ libtntnet_la_SOURCES += \
+@@ -125,7 +126,7 @@ noinst_HEADERS += \
+ tnt/gcryptinit.h \
+ tnt/gnutls.h
+
+-libtntnet_la_LDFLAGS += -lgnutls -lgcrypt
++libtntnet_la_LIBADD += -lgnutls -lgcrypt
+ endif
+
+ if MAKE_OPENSSL
+@@ -135,7 +136,7 @@ libtntnet_la_SOURCES += \
+ noinst_HEADERS += \
+ tnt/openssl.h
+
+-libtntnet_la_LDFLAGS += -lssl -lcrypto
++libtntnet_la_LIBADD += -lssl -lcrypto
+ endif
+
+ if MAKE_STRESSJOB
+diff --git a/framework/defcomp/Makefile.am b/framework/defcomp/Makefile.am
+index a053e1a..2f33529 100644
+--- a/framework/defcomp/Makefile.am
++++ b/framework/defcomp/Makefile.am
+@@ -14,5 +14,5 @@ tntnet_la_SOURCES = \
+ static.h
+
+ tntnet_la_CXXFLAGS = $(PTHREAD_CFLAGS)
+-tntnet_la_LDFLAGS = -module -version-info @sonumber@ $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-tntnet_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++tntnet_la_LDFLAGS = -module -version-info @sonumber@ @SHARED_LIB_FLAG@
++tntnet_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+diff --git a/framework/runtime/Makefile.am b/framework/runtime/Makefile.am
+index e318ab7..4c59be4 100644
+--- a/framework/runtime/Makefile.am
++++ b/framework/runtime/Makefile.am
+@@ -9,7 +9,6 @@ tntnet_SOURCES = \
+ nobase_include_HEADERS = \
+ tnt/process.h
+
+-tntnet_LDFLAGS = $(PTHREAD_LIBS)
+-tntnet_LDADD = $(top_builddir)/framework/common/libtntnet.la
++tntnet_LDADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+ tntnet_CXXFLAGS=-DTNTNET_CONF=\"@sysconfdir@/tntnet/tntnet.conf\" -DTNTNET_PID=\"@localstatedir@/tntnet.pid\" $(PTHREAD_CFLAGS)
+
+diff --git a/sdk/demos/Makefile.am b/sdk/demos/Makefile.am
+index f6a93f8..cea7468 100644
+--- a/sdk/demos/Makefile.am
++++ b/sdk/demos/Makefile.am
+@@ -10,8 +10,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-alldemos_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-alldemos_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++alldemos_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++alldemos_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.properties
+ CLEANFILES = alldemos.cpp tntnet.properties
+diff --git a/sdk/demos/calc/Makefile.am b/sdk/demos/calc/Makefile.am
+index 7b14f3c..339b12a 100644
+--- a/sdk/demos/calc/Makefile.am
++++ b/sdk/demos/calc/Makefile.am
+@@ -8,8 +8,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-calc_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-calc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++calc_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++calc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = calc.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/calcajax/Makefile.am b/sdk/demos/calcajax/Makefile.am
+index c569868..020df8b 100644
+--- a/sdk/demos/calcajax/Makefile.am
++++ b/sdk/demos/calcajax/Makefile.am
+@@ -12,8 +12,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-calcajax_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-calcajax_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++calcajax_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++calcajax_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = calcajax.cpp calcajax_js.cpp docalc.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/calci18n/Makefile.am b/sdk/demos/calci18n/Makefile.am
+index d334ffe..2952da4 100644
+--- a/sdk/demos/calci18n/Makefile.am
++++ b/sdk/demos/calci18n/Makefile.am
+@@ -16,8 +16,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-calci18n_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-calci18n_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++calci18n_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++calci18n_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties calci18n.txt calci18n.fi calci18n.de
+ CLEANFILES = calci18n.cpp tntnet.conf tntnet.properties \
+diff --git a/sdk/demos/calcmvc/Makefile.am b/sdk/demos/calcmvc/Makefile.am
+index 9b4baaa..bc37b2a 100644
+--- a/sdk/demos/calcmvc/Makefile.am
++++ b/sdk/demos/calcmvc/Makefile.am
+@@ -18,8 +18,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-calcmvc_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-calcmvc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++calcmvc_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++calcmvc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = calcController.cpp calcModel.cpp calcView.cpp calcmvc.cpp \
+diff --git a/sdk/demos/chat/Makefile.am b/sdk/demos/chat/Makefile.am
+index 72fa35c..7816390 100644
+--- a/sdk/demos/chat/Makefile.am
++++ b/sdk/demos/chat/Makefile.am
+@@ -21,8 +21,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-chat_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-chat_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++chat_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++chat_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = chat.cpp ajax.cpp getchat.cpp putchat.cpp \
+diff --git a/sdk/demos/comp/Makefile.am b/sdk/demos/comp/Makefile.am
+index e60bdb1..be56430 100644
+--- a/sdk/demos/comp/Makefile.am
++++ b/sdk/demos/comp/Makefile.am
+@@ -14,10 +14,10 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-comp_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-comp_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+-extlib_la_LDFLAGS = -module $(PTHREAD_LIBS)
+-extlib_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++comp_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++comp_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
++extlib_la_LDFLAGS = -module
++extlib_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = comp.cpp subcomp.cpp extcomp.cpp \
+diff --git a/sdk/demos/config/Makefile.am b/sdk/demos/config/Makefile.am
+index 824341c..94282df 100644
+--- a/sdk/demos/config/Makefile.am
++++ b/sdk/demos/config/Makefile.am
+@@ -8,8 +8,8 @@ nodist_config_la_SOURCES = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-config_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-config_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++config_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++config_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = config.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/controls/Makefile.am b/sdk/demos/controls/Makefile.am
+index 34dabd3..f7f414b 100644
+--- a/sdk/demos/controls/Makefile.am
++++ b/sdk/demos/controls/Makefile.am
+@@ -35,8 +35,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-controls_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-controls_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++controls_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++controls_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = tntnet.properties \
+diff --git a/sdk/demos/cookie/Makefile.am b/sdk/demos/cookie/Makefile.am
+index a604e47..6360e8f 100644
+--- a/sdk/demos/cookie/Makefile.am
++++ b/sdk/demos/cookie/Makefile.am
+@@ -8,8 +8,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-cookie_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-cookie_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++cookie_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++cookie_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = cookie.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/hello/Makefile.am b/sdk/demos/hello/Makefile.am
+index cb4c246..639894d 100644
+--- a/sdk/demos/hello/Makefile.am
++++ b/sdk/demos/hello/Makefile.am
+@@ -10,8 +10,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-hello_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-hello_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++hello_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++hello_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = hello.cpp tntnet.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/rajax-jquery/Makefile.am b/sdk/demos/rajax-jquery/Makefile.am
+index 259eac5..a1832fd 100644
+--- a/sdk/demos/rajax-jquery/Makefile.am
++++ b/sdk/demos/rajax-jquery/Makefile.am
+@@ -18,8 +18,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-message_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-message_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++message_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++message_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = get.cpp jquery.cpp message.cpp put.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/savepoint/Makefile.am b/sdk/demos/savepoint/Makefile.am
+index 0f4a5a2..a357d56 100644
+--- a/sdk/demos/savepoint/Makefile.am
++++ b/sdk/demos/savepoint/Makefile.am
+@@ -8,8 +8,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-savepoint_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-savepoint_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++savepoint_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++savepoint_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = savepoint.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/session/Makefile.am b/sdk/demos/session/Makefile.am
+index 1809d64..b30dd03 100644
+--- a/sdk/demos/session/Makefile.am
++++ b/sdk/demos/session/Makefile.am
+@@ -10,8 +10,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-session_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-session_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++session_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++session_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = session.cpp appsession.cpp \
+diff --git a/sdk/demos/sprintf/Makefile.am b/sdk/demos/sprintf/Makefile.am
+index bd0ac73..7b0a0af 100644
+--- a/sdk/demos/sprintf/Makefile.am
++++ b/sdk/demos/sprintf/Makefile.am
+@@ -10,8 +10,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-sprintf_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-sprintf_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++sprintf_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++sprintf_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = sprintf.cpp subcomp.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/strings/Makefile.am b/sdk/demos/strings/Makefile.am
+index 804a177..4f8b876 100644
+--- a/sdk/demos/strings/Makefile.am
++++ b/sdk/demos/strings/Makefile.am
+@@ -8,8 +8,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-strings_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-strings_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++strings_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++strings_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = strings.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/demos/upload/Makefile.am b/sdk/demos/upload/Makefile.am
+index 7082caa..da4ea88 100644
+--- a/sdk/demos/upload/Makefile.am
++++ b/sdk/demos/upload/Makefile.am
+@@ -8,8 +8,8 @@ EXTRA_DIST = \
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-upload_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+-upload_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
++upload_la_LDFLAGS = -module @SHARED_LIB_FLAG@
++upload_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+
+ noinst_DATA = tntnet.conf tntnet.properties
+ CLEANFILES = upload.cpp tntnet.conf tntnet.properties
+diff --git a/sdk/tools/common/Makefile.am b/sdk/tools/common/Makefile.am
+index a107070..d1b68a8 100644
+--- a/sdk/tools/common/Makefile.am
++++ b/sdk/tools/common/Makefile.am
+@@ -16,4 +16,5 @@ libtntnet_sdk_la_SOURCES = \
+ tnt/stringescaper.h
+
+ libtntnet_sdk_la_CXXFLAGS = $(PTHREAD_CFLAGS)
+-libtntnet_sdk_la_LDFLAGS = -version-info @sonumber@ -lcxxtools $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
++libtntnet_sdk_la_LDFLAGS = -version-info @sonumber@ @SHARED_LIB_FLAG@
++libtntnet_sdk_la_LIBADD = -lcxxtools $(PTHREAD_LIBS)
+diff --git a/sdk/tools/ecppc/Makefile.am b/sdk/tools/ecppc/Makefile.am
+index d740df6..e4b1166 100644
+--- a/sdk/tools/ecppc/Makefile.am
++++ b/sdk/tools/ecppc/Makefile.am
+@@ -20,8 +20,7 @@ ecppc_SOURCES = \
+ tnt/ecppc/subcomponent.h \
+ tnt/ecppc/variable.h
+
+-ecppc_LDADD = $(top_builddir)/framework/common/libtntnet.la $(top_builddir)/sdk/tools/common/libtntnet_sdk.la
++ecppc_LDADD = $(top_builddir)/framework/common/libtntnet.la $(top_builddir)/sdk/tools/common/libtntnet_sdk.la -lcxxtools $(PTHREAD_LIBS)
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common -I$(top_srcdir)/sdk/tools/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-AM_LDFLAGS = -lcxxtools $(PTHREAD_LIBS)
+diff --git a/sdk/tools/ecppl/Makefile.am b/sdk/tools/ecppl/Makefile.am
+index b658f40..64d8a9f 100644
+--- a/sdk/tools/ecppl/Makefile.am
++++ b/sdk/tools/ecppl/Makefile.am
+@@ -5,8 +5,7 @@ ecppl_SOURCES = \
+ ecpplang.cpp \
+ ecpplang.h
+
+-ecppl_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la
++ecppl_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la -lcxxtools $(PTHREAD_LIBS)
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common -I$(top_srcdir)/sdk/tools/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-AM_LDFLAGS = -lcxxtools $(PTHREAD_LIBS)
+diff --git a/sdk/tools/ecppll/Makefile.am b/sdk/tools/ecppll/Makefile.am
+index 3782acb..85b24d1 100644
+--- a/sdk/tools/ecppll/Makefile.am
++++ b/sdk/tools/ecppll/Makefile.am
+@@ -3,8 +3,7 @@ bin_PROGRAMS = ecppll
+ ecppll_SOURCES = \
+ ecppll.cpp
+
+-ecppll_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la
++ecppll_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la -lcxxtools $(PTHREAD_LIBS)
+
+ AM_CPPFLAGS = -I$(top_srcdir)/framework/common -I$(top_srcdir)/sdk/tools/common
+ AM_CXXFLAGS = $(PTHREAD_CFLAGS)
+-AM_LDFLAGS = -lcxxtools $(PTHREAD_LIBS)
+diff --git a/utest/Makefile.am b/utest/Makefile.am
+index 2f662ae..d4cdef1 100644
+--- a/utest/Makefile.am
++++ b/utest/Makefile.am
+@@ -7,5 +7,4 @@ utest_SOURCES = \
+ testmain.cpp \
+ strutest.cpp
+
+-utest_LDFLAGS = -lcxxtools-unit
+-utest_LDADD = $(top_builddir)/framework/common/libtntnet.la
++utest_LDADD = $(top_builddir)/framework/common/libtntnet.la -lcxxtools-unit
+--
+1.7.3.4
+
diff --git a/dev-libs/tntnet/files/tntnet-2.0-gnutls.patch b/dev-libs/tntnet/files/tntnet-2.0-gnutls.patch
new file mode 100644
index 000000000000..6301f580502d
--- /dev/null
+++ b/dev-libs/tntnet/files/tntnet-2.0-gnutls.patch
@@ -0,0 +1,31 @@
+Index: framework/common/gnutls.cpp
+===================================================================
+--- framework/common/gnutls.cpp (revision 1256)
++++ framework/common/gnutls.cpp (working copy)
+@@ -35,7 +35,7 @@
+ #include "tnt/gcryptinit.h"
+ #include <sys/poll.h>
+ #include <errno.h>
+-#include <cxxtools/net/net.h>
++#include <cxxtools/ioerror.h>
+
+ log_define("tntnet.ssl")
+
+@@ -364,7 +364,7 @@
+ break;
+
+ if (ret == GNUTLS_E_AGAIN)
+- throw cxxtools::net::Timeout();
++ throw cxxtools::IOTimeout();
+
+ if (ret < 0 && ret != GNUTLS_E_INTERRUPTED)
+ throw GnuTlsException("gnutls_record_recv", ret);
+@@ -403,7 +403,7 @@
+ break;
+
+ if (ret == GNUTLS_E_AGAIN)
+- throw cxxtools::net::Timeout();
++ throw cxxtools::IOTimeout();
+
+ if (ret != GNUTLS_E_INTERRUPTED)
+ throw GnuTlsException("gnutls_record_send", ret);
diff --git a/dev-libs/tntnet/files/tntnet.initd b/dev-libs/tntnet/files/tntnet.initd
new file mode 100644
index 000000000000..46a9a5f92962
--- /dev/null
+++ b/dev-libs/tntnet/files/tntnet.initd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/files/tntnet.initd,v 1.1 2011/01/21 00:01:06 idl0r Exp $
+
+PIDFILE="/var/run/tntnet.pid"
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting tntnet"
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /usr/bin/tntnet
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping tntnet"
+ start-stop-daemon --stop --pidfile $PIDFILE --exec /usr/bin/tntnet
+ eend $?
+}
+
+reload() {
+ # FIXME: Remove --stop and --oknodo as soon as baselayout-1 has been removed...
+ # finally...
+ ebegin "Reloading tntnet configuration"
+ start-stop-daemon --stop --oknodo --pidfile $PIDFILE --signal HUP --exec /usr/bin/tntnet
+ eend $?
+}
diff --git a/dev-libs/tntnet/metadata.xml b/dev-libs/tntnet/metadata.xml
index 5f9f14619db8..99df37edf472 100644
--- a/dev-libs/tntnet/metadata.xml
+++ b/dev-libs/tntnet/metadata.xml
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>media-tv</herd>
-<maintainer>
-<email>vdr@gentoo.org</email>
-<name>Gentoo VDR Project</name>
-</maintainer>
+ <herd>media-tv</herd>
+ <use>
+ <flag name="server">Enable tntnet server daemon</flag>
+ <flag name="sdk">Enable tntnet SDK</flag>
+ </use>
</pkgmetadata>
-
diff --git a/dev-libs/tntnet/tntnet-2.0-r1.ebuild b/dev-libs/tntnet/tntnet-2.0-r1.ebuild
new file mode 100644
index 000000000000..0e738669917b
--- /dev/null
+++ b/dev-libs/tntnet/tntnet-2.0-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/tntnet-2.0-r1.ebuild,v 1.1 2011/01/21 00:01:06 idl0r Exp $
+
+EAPI="3"
+
+inherit autotools eutils
+
+DESCRIPTION="Modular, multithreaded webapplicationserver extensible with C++"
+HOMEPAGE="http://www.tntnet.org/index.hms"
+SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="cgi doc examples gnutls server sdk ssl"
+
+RDEPEND=">=dev-libs/cxxtools-2.0
+ sys-libs/zlib
+ ssl? (
+ gnutls? (
+ >=net-libs/gnutls-1.2.0
+ dev-libs/libgcrypt
+ )
+ !gnutls? ( dev-libs/openssl )
+ )"
+DEPEND="${RDEPEND}
+ examples? ( app-arch/zip )"
+
+src_prepare() {
+ # Both fixed in the next release
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ epatch "${FILESDIR}/${P}-gnutls.patch"
+
+ eautoreconf
+
+ sed -i -e 's:@localstatedir@:/var:' etc/tntnet/tntnet.conf.in || die
+}
+
+src_configure() {
+ local myconf=""
+
+ # Prefer gnutls above SSL
+ if use gnutls; then
+ einfo "Using gnutls for ssl support."
+ myconf="${myconf} --with-ssl=gnutls"
+ elif use ssl; then
+ einfo "Using openssl for ssl support."
+ myconf="${myconf} --with-ssl=openssl"
+ else
+ myconf="${myconf} --with-ssl=no"
+ fi
+
+ # demos/examples depend upon sdk
+ if use examples && ! use sdk; then
+ myconf="${myconf} --with-sdk"
+ fi
+
+ econf \
+ $(use_with examples demos) \
+ $(use_with sdk) \
+ $(use_with cgi) \
+ $(use_with server) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog README TODO
+ if use doc; then
+ dodoc doc/*.pdf || die
+ fi
+
+ if use examples; then
+ cd "${S}/sdk/demos"
+ emake clean
+ rm -rf .deps */.deps .libs */.libs
+ cd "${S}"
+
+ insinto /usr/share/doc/${PF}/examples
+ doins -r sdk/demos/* || die
+ fi
+
+ if use server; then
+ rm -f "${D}/etc/init.d/tntnet"
+ newinitd "${FILESDIR}/tntnet.initd" tntnet
+ fi
+}
diff --git a/dev-libs/tntnet/tntnet-2.0.ebuild b/dev-libs/tntnet/tntnet-2.0.ebuild
deleted file mode 100644
index 462fb3055717..000000000000
--- a/dev-libs/tntnet/tntnet-2.0.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/tntnet/tntnet-2.0.ebuild,v 1.1 2011/01/19 19:10:13 hd_brummy Exp $
-
-EAPI="2"
-
-inherit autotools eutils
-
-DESCRIPTION="A modular, multithreaded webapplicationserver extensible with C++."
-HOMEPAGE="http://www.tntnet.org/index.hms"
-SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64 ~sparc ~x86"
-IUSE="ssl gnutls examples"
-
-RDEPEND=">=dev-libs/cxxtools-2.0
- ssl? (
- gnutls? ( >=net-libs/gnutls-1.2.0 )
- !gnutls? ( dev-libs/openssl )
- )"
-DEPEND="${RDEPEND}
- app-arch/zip
- ssl? ( gnutls? ( dev-util/pkgconfig ) )"
-
-src_prepare() {
-
- eautoreconf
-}
-
-src_configure() {
- local myconf=""
- if use ssl; then
- if use gnutls; then
- einfo "Using gnutls for ssl support."
- myconf="${myconf} --with-ssl=gnutls"
- else
- einfo "Using openssl for ssl support."
- myconf="${myconf} --with-ssl=openssl"
- fi
- else
- einfo "Disabled ssl"
- myconf="${myconf} --with-ssl=no"
- fi
- if use examples; then
- myconf="${myconf} --with-demos=yes"
- else
- myconf="${myconf} --with-demos=no"
- fi
-
- econf ${myconf} || die "econf failed"
- emake || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "Install failed"
- dodoc AUTHORS ChangeLog README TODO doc/*.pdf
-
- if use examples; then
- cd "${S}/sdk/demos"
- make clean
- rm -rf .deps */.deps .libs */.libs
-
- local dir="/usr/share/doc/${PF}/examples"
- dodir "${dir}"
- cp -r "${S}"/sdk/demos/* "${D}${dir}"
- fi
-}