diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-libs | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-libs')
1071 files changed, 39670 insertions, 0 deletions
diff --git a/net-libs/NativeThread/Manifest b/net-libs/NativeThread/Manifest new file mode 100644 index 000000000000..ddc915f54a7f --- /dev/null +++ b/net-libs/NativeThread/Manifest @@ -0,0 +1 @@ +DIST NativeThread-0_pre20080330.tar.bz2 2707 RMD160 6b93881f53a2ed89096d4a1900c3b48e08cb0201 SHA1 ca68ea04fcb1d9fd9f8aaed34a3e92a1de6539d9 SHA256 ae5277c25420fc76f59d296400c20562e37ff0ad4ecab63e537b9a053ac5802c diff --git a/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild b/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild new file mode 100644 index 000000000000..8bb9e1c3c9ff --- /dev/null +++ b/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic java-pkg-2 toolchain-funcs + +DESCRIPTION="NativeThread for priorities on linux for freenet" +HOMEPAGE="http://www.freenetproject.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=net-p2p/freenet-0.7 + >=virtual/jdk-1.4" +RDEPEND="" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/Makefile.patch +} + +src_compile() { + append-flags -fPIC + tc-export CC + emake || die +} + +src_install() { + dolib.so lib${PN}.so || die +} diff --git a/net-libs/NativeThread/files/Makefile.patch b/net-libs/NativeThread/files/Makefile.patch new file mode 100644 index 000000000000..e1f0209a6f3f --- /dev/null +++ b/net-libs/NativeThread/files/Makefile.patch @@ -0,0 +1,22 @@ +--- Makefile 2008-03-03 13:59:06.000000000 +0100 ++++ Makefile.new 2008-03-30 16:27:12.000000000 +0200 +@@ -1,14 +1,14 @@ +-CC = gcc + INC = $(JAVA_HOME)/include +-CFLAGS = -Wall -O3 -fPIC +-LDFLAGS = -shared -Wl,-soname,libnative.so -I$(INC) -I$(INC)/linux ++CFLAGS += -Wall ++LDFLAGS += -shared -Wl,-soname,libnative.so -I$(INC) -I$(INC)/linux + LIBS = -lc + + all: clean libNativeThread.so + + NativeThread.class: +- javac java/NativeThread.java +- mv java/NativeThread.class freenet/support/io/ ++ javac -classpath /usr/share/freenet/lib/freenet.jar NativeThread.java ++ mkdir -p freenet/support/io ++ mv NativeThread.class freenet/support/io/ + + libNativeThread.so: NativeThread.c NativeThread.h + $(CC) $(CFLAGS) -o libNativeThread.so $(LDFLAGS) NativeThread.c $(LIBS) diff --git a/net-libs/NativeThread/metadata.xml b/net-libs/NativeThread/metadata.xml new file mode 100644 index 000000000000..fed3658eec53 --- /dev/null +++ b/net-libs/NativeThread/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>tommy@gentoo.org</email> + <name>Thomas Sachau (Tommy[D])</name> + </maintainer> +</pkgmetadata> + diff --git a/net-libs/adns/Manifest b/net-libs/adns/Manifest new file mode 100644 index 000000000000..e6f07a9ab462 --- /dev/null +++ b/net-libs/adns/Manifest @@ -0,0 +1 @@ +DIST adns-1.4.tar.gz 252668 RMD160 ccff2111bfa3eb99e28d355d48e9e17333f34394 SHA1 87283c3bcd09ceb2e605e91abedfb537a18f1884 SHA256 717b92a39117a5d8b04ea7c652c630659c6eecb35211129a8cee95e6524ca9fe diff --git a/net-libs/adns/adns-1.4-r1.ebuild b/net-libs/adns/adns-1.4-r1.ebuild new file mode 100644 index 000000000000..48c26e5a786d --- /dev/null +++ b/net-libs/adns/adns-1.4-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Advanced, easy to use, asynchronous-capable DNS client library and utilities" +HOMEPAGE="http://www.chiark.greenend.org.uk/~ian/adns/" +SRC_URI="ftp://ftp.chiark.greenend.org.uk/users/ian/adns/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cnamechain.patch + #remove bogus test wrt bug #295072 + rm "${S}"/regress/case-cnametocname.sys +} + +src_configure() { + CC=$(tc-getCC) econf || die "econf failed" +} + +src_compile() { + emake AR=$(tc-getAR) RANLIB=$(tc-getRANLIB) || die "emake failed" +} + +src_install () { + dodir /usr/{include,bin,$(get_libdir)} + emake prefix="${D}"/usr libdir="${D}"/usr/$(get_libdir) install || die "emake install failed" + dodoc README TODO changelog "${FILESDIR}"/README.security + dohtml *.html +} + +pkg_postinst() { + ewarn "$(<${FILESDIR}/README.security)" +} diff --git a/net-libs/adns/adns-1.4.ebuild b/net-libs/adns/adns-1.4.ebuild new file mode 100644 index 000000000000..b9ad2859cd70 --- /dev/null +++ b/net-libs/adns/adns-1.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Advanced, easy to use, asynchronous-capable DNS client library and utilities" +HOMEPAGE="http://www.chiark.greenend.org.uk/~ian/adns/" +SRC_URI="ftp://ftp.chiark.greenend.org.uk/users/ian/adns/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_compile() { + CC=$(tc-getCC) econf || die "econf failed" + emake AR=$(tc-getAR) RANLIB=$(tc-getRANLIB) || die "emake failed" +} + +src_install () { + dodir /usr/{include,bin,$(get_libdir)} + emake prefix="${D}"/usr libdir="${D}"/usr/$(get_libdir) install || die "emake install failed" + dodoc README TODO changelog "${FILESDIR}"/README.security + dohtml *.html +} + +pkg_postinst() { + ewarn "$(<${FILESDIR}/README.security)" +} diff --git a/net-libs/adns/files/README.security b/net-libs/adns/files/README.security new file mode 100644 index 000000000000..c09f544f3f99 --- /dev/null +++ b/net-libs/adns/files/README.security @@ -0,0 +1,11 @@ +SECURITY AND PERFORMANCE - AN IMPORTANT NOTE + +adns is not a `full-service resolver': it does no caching of responses +at all, and has no defence against bad nameservers or fake packets +which appear to come from your real nameservers. It relies on the +full-service resolvers listed in resolv.conf to handle these tasks. + +For secure and reasonable operation you MUST run a full-service +nameserver on the same system as your adns applications, or on the +same local, fully trusted network. You MUST only list such +nameservers in the adns configuration (eg resolv.conf). diff --git a/net-libs/adns/files/adns-1.4-cnamechain.patch b/net-libs/adns/files/adns-1.4-cnamechain.patch new file mode 100644 index 000000000000..4c87a1434660 --- /dev/null +++ b/net-libs/adns/files/adns-1.4-cnamechain.patch @@ -0,0 +1,132 @@ +[ADNS] Re: CNAME chains +Brad Spencer spencer at infointeractive.com +Mon, 28 Aug 2006 14:43:00 -0300 + +Previous message: CNAME chains +Next message: CNAME chains option +Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] +--pf9I7BMVVzbSWLtt +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline + +On Fri, Aug 25, 2006 at 11:36:04AM -0700, William Ahern wrote: +> On Fri, Aug 25, 2006 at 09:39:01AM +0100, peter burden wrote: +> > Hello, +> > Is there any way to make ADNS follow CNAME chains ? +> > +> > I have set the adns_qf_cname_loose query flag and it seems OK for a +> > single +> > CNAME - e.g. (output from 'dig') + +I posted a small patch back in 2003 that made changes to adns so that +it would follow CNAME chains. See + +http://www.chiark.greenend.org.uk/pipermail/adns-discuss/2003/001072.html + +The patch included in that post is against an old adns version, so I +have attached my latest version of the patch to this message. (I have +not tested that the attached patch applied cleanly to the current adns +source, but it may be slightly more in sync with the current version.) + +> CNAME chains are technically not allowed. Such chains are violations of the +> specifications. Also, I believe MX host lookups returning CNAMEs (i.e. MX +> yahoo.com -> A mail.yahoo.com -> CNAME foo) is also illegal. + +I have also been told that CNAME chains are illegal, but I can not +find any actual text that says that a resolver should fail when it +encounters them. In fact, RFC 1034 Section 3.6.2 says: + + Domain names in RRs which point at another name should always point at + the primary name and not the alias. This avoids extra indirections in + accessing information. For example, the address to name RR for the + above host should be: + + 52.0.0.10.IN-ADDR.ARPA IN PTR C.ISI.EDU + + rather than pointing at USC-ISIC.ARPA. + +The above implies that CNAME chains are illegal, IMO. But then, the +next sentence is: + + Of course, by the robustness principle, domain software should not + fail when presented with CNAME chains or loops; CNAME chains + should be followed and CNAME loops signalled as an error. + +This advice, coupled with the fact that CNAME chains exist in the +wild, triggered me to create the patch in the first place. My patch +doesn't detect loops, but instead simply won't follow chains longer +than a certain (hard-coded) size. + +Hope this helps! + +-- +------------------------------------------------------------------ +Brad Spencer - spencer@infointeractive.com - "It's quite nice..." +Systems Architect | InfoInterActive Corp. | A Canadian AOL Company + +--pf9I7BMVVzbSWLtt +Content-Type: text/plain; charset=us-ascii +Content-Disposition: attachment; filename="cname_chains.diff" + +Index: src/internal.h +=================================================================== +RCS file: /iia/cvsroot/3rdParty/gnu/adns/adns-1.0/src/internal.h,v +retrieving revision 1.3 +retrieving revision 1.4 +diff -u -p -r1.3 -r1.4 +--- src/internal.h 2 Oct 2003 17:01:46 -0000 1.3 ++++ src/internal.h 2 Oct 2003 17:14:29 -0000 1.4 +@@ -206,6 +206,9 @@ struct adns__query { + int cname_dglen, cname_begin; + /* If non-0, has been allocated using . */ + ++ int cname_alias_hops_left; ++ /* The number of cname alias hops we will allow */ ++ + vbuf search_vb; + int search_origlen, search_pos, search_doneabs; + /* Used by the searching algorithm. The query domain in textual form +Index: src/query.c +=================================================================== +RCS file: /iia/cvsroot/3rdParty/gnu/adns/adns-1.0/src/query.c,v +retrieving revision 1.3 +retrieving revision 1.4 +diff -u -p -r1.3 -r1.4 +--- src/query.c 2 Oct 2003 17:01:47 -0000 1.3 ++++ src/query.c 2 Oct 2003 17:14:29 -0000 1.4 +@@ -63,6 +63,8 @@ static adns_query query_alloc(adns_state + + qu->cname_dgram= 0; + qu->cname_dglen= qu->cname_begin= 0; ++ /* Allow CNAME chains up to some sane limit */ ++ qu->cname_alias_hops_left = 10; + + adns__vbuf_init(&qu->search_vb); + qu->search_origlen= qu->search_pos= qu->search_doneabs= 0; +Index: src/reply.c +=================================================================== +RCS file: /iia/cvsroot/3rdParty/gnu/adns/adns-1.0/src/reply.c,v +retrieving revision 1.3 +retrieving revision 1.4 +diff -u -p -r1.3 -r1.4 +--- src/reply.c 2 Oct 2003 17:01:47 -0000 1.3 ++++ src/reply.c 2 Oct 2003 17:14:30 -0000 1.4 +@@ -191,12 +191,13 @@ void adns__procdgram(adns_state ads, con + if (qu->flags & adns_qf_cname_forbid) { + adns__query_fail(qu,adns_s_prohibitedcname); + return; +- } else if (qu->cname_dgram) { /* Ignore second and subsequent CNAME(s) */ ++ } else if (qu->cname_dgram && --(qu->cname_alias_hops_left) <= 0) { /* Don't follow "too long" CNAME chains */ + adns__debug(ads,serv,qu,"allegedly canonical name %s" +- " is actually alias for %s", qu->answer->cname, ++ " is actually alias for %s and aliases too deep", ++ qu->answer->cname, + adns__diag_domain(ads,serv,qu, &qu->vb, + dgram,dglen,rdstart)); +- adns__query_fail(qu,adns_s_prohibitedcname); ++ adns__query_fail(qu,adns_s_norecurse); + return; + } else if (wantedrrs) { /* Ignore CNAME(s) after RR(s). */ + adns__debug(ads,serv,qu,"ignoring CNAME (to %s) coexisting with RR", + +--pf9I7BMVVzbSWLtt-- diff --git a/net-libs/adns/metadata.xml b/net-libs/adns/metadata.xml new file mode 100644 index 000000000000..59e2b8f78cb5 --- /dev/null +++ b/net-libs/adns/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/net-libs/aqbanking/Manifest b/net-libs/aqbanking/Manifest new file mode 100644 index 000000000000..d63e8ee0465f --- /dev/null +++ b/net-libs/aqbanking/Manifest @@ -0,0 +1,3 @@ +DIST aqbanking-5.0.25.tar.gz 3637565 SHA256 bb99f16704200e1ff456574b17895e04ef375479b21e075607454e6bc7c02151 SHA512 57a2f759c8958737fea2735771a62d2c71181bbab4666f642e06094093f6a545be3df56db45991e7fb03248e3fdd6ace2096df498ff3596dbcb6857caf4e53d0 WHIRLPOOL d1c76f27bcfa60f7bead53eef004dfe6f26d60d912e4d0bf39421323d20f7e87a6b4b15e205c2984fb7482f81691deee5d496c73ac4c411d3838a2c5c1ff3d1f +DIST aqbanking-5.4.3beta.tar.gz 3743279 SHA256 81cc22eb2566e112c0d62427acf8de64cf542e7fc95262ff06addbc2e58a8183 SHA512 3dfd90c1460e7a4b02dc33adf6378cc5ef2127e278ba4c23a4e95eaa732c7f6487fbd1dde5fdce0080d58edb2d69c8e2148cb64b23c0ff85773148a548bc24a2 WHIRLPOOL 8cbfd734541106a5dabebb57f282ffb25e191958746f618f69d6b2e1455c19e0686191aebaac526f988345b420e21829fd5857b26b619831c33dc017ed100791 +DIST aqbanking-5.5.1.tar.gz 3818696 SHA256 238f17d27d86e0cef239479c4be152cb98f5be9d6b87fca38741d32e762faddf SHA512 37220e2da9289b43929fa7406c0ce81596e26e6e82b2c2052a743029e1cbc77e6c3d44a2767a637f5e724a4e328d3110584025b730e2cdfa9d350279e2ac2659 WHIRLPOOL 69620b7bf3161f7eb61ad453aa7336b673cc3114000d6cd6bf7f162c24ecb8ee8ab0c66e5440607c1f6163573b1f3e7d257122c414865c15b5934dafad8d717d diff --git a/net-libs/aqbanking/aqbanking-5.0.25.ebuild b/net-libs/aqbanking/aqbanking-5.0.25.ebuild new file mode 100644 index 000000000000..1bcc2cf2baa6 --- /dev/null +++ b/net-libs/aqbanking/aqbanking-5.0.25.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="Generic Online Banking Interface" +HOMEPAGE="http://www.aquamaniac.de/aqbanking/" +SRC_URI="http://www.aquamaniac.de/sites/download/download.php?package=03&release=95&file=01&dummy=${P}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86" +IUSE="chipcard debug doc examples gtk ofx" + +RDEPEND=">=app-misc/ktoblzcheck-1.39 + >=dev-libs/gmp-5 + >=sys-libs/gwenhywfar-4.3.3[gtk?] + virtual/libintl + ofx? ( >=dev-libs/libofx-0.9.5 ) + chipcard? ( >=sys-libs/libchipcard-5.0.2 )" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +MAKEOPTS="${MAKEOPTS} -j1" # 5.0.x fails with -j9 on quadcore + +src_configure() { + local backends="aqhbci aqnone aqpaypal" + use ofx && backends="${backends} aqofxconnect" + + local mytest + use gtk && mytest="--enable-gui-tests" + + econf \ + $(use_enable debug) \ + $(use_enable doc full-doc) \ + --with-backends="${backends}" \ + --with-docpath=/usr/share/doc/${PF}/apidoc \ + ${mytest} +} + +src_install() { + emake DESTDIR="${D}" install + + rm -rf "${ED}"/usr/share/doc/aq{banking,hbci,paypal} + + dodoc AUTHORS ChangeLog NEWS README TODO + + newdoc src/plugins/backends/aqhbci/tools/aqhbci-tool/README \ + README.aqhbci-tool + newdoc src/plugins/backends/aqpaypal/tools/aqpaypal-tool/README \ + README.aqpaypal-tool + + if use examples; then + docinto tutorials + dodoc tutorials/*.{c,h} tutorials/README + fi + + prune_libtool_files --all +} diff --git a/net-libs/aqbanking/aqbanking-5.4.3_beta.ebuild b/net-libs/aqbanking/aqbanking-5.4.3_beta.ebuild new file mode 100644 index 000000000000..7b7adb7cfc3d --- /dev/null +++ b/net-libs/aqbanking/aqbanking-5.4.3_beta.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +MY_P="${P/_beta/beta}" +DESCRIPTION="Generic Online Banking Interface" +HOMEPAGE="http://www.aquamaniac.de/aqbanking/" +SRC_URI="http://www.aquamaniac.de/sites/download/download.php?package=03&release=115&file=01&dummy=${MY_P}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="chipcard debug doc examples gtk ofx" + +RDEPEND=">=app-misc/ktoblzcheck-1.45 + >=dev-libs/gmp-5 + >=sys-libs/gwenhywfar-4.12.0_beta[gtk?] + virtual/libintl + ofx? ( >=dev-libs/libofx-0.9.5 ) + chipcard? ( >=sys-libs/libchipcard-5.0.2 )" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +MAKEOPTS="${MAKEOPTS} -j1" # 5.0.x fails with -j9 on quadcore + +src_configure() { + local backends="aqhbci aqnone aqpaypal" + use ofx && backends="${backends} aqofxconnect" + + local mytest + use gtk && mytest="--enable-gui-tests" + + econf \ + $(use_enable debug) \ + $(use_enable doc full-doc) \ + --with-backends="${backends}" \ + --with-docpath=/usr/share/doc/${PF}/apidoc \ + ${mytest} +} + +src_install() { + emake DESTDIR="${D}" install + + rm -rf "${ED}"/usr/share/doc/aq{banking,hbci,paypal} + + dodoc AUTHORS ChangeLog NEWS README TODO + + newdoc src/plugins/backends/aqhbci/tools/aqhbci-tool/README \ + README.aqhbci-tool + + if use examples; then + docinto tutorials + dodoc tutorials/*.{c,h} tutorials/README + fi + + prune_libtool_files --all +} diff --git a/net-libs/aqbanking/aqbanking-5.5.1.ebuild b/net-libs/aqbanking/aqbanking-5.5.1.ebuild new file mode 100644 index 000000000000..3583b874269f --- /dev/null +++ b/net-libs/aqbanking/aqbanking-5.5.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +MY_P="${P/_beta/beta}" +DESCRIPTION="Generic Online Banking Interface" +HOMEPAGE="http://www.aquamaniac.de/aqbanking/" +SRC_URI="http://www.aquamaniac.de/sites/download/download.php?package=03&release=118&file=01&dummy=${MY_P}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="chipcard debug doc ebics examples gtk ofx" + +RDEPEND=">=app-misc/ktoblzcheck-1.48 + >=dev-libs/gmp-5 + >=sys-libs/gwenhywfar-4.13.1[gtk?] + virtual/libintl + ofx? ( >=dev-libs/libofx-0.9.5 ) + chipcard? ( >=sys-libs/libchipcard-5.0.2 ) + ebics? ( dev-libs/xmlsec[gcrypt,gnutls] )" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +MAKEOPTS="${MAKEOPTS} -j1" # 5.0.x fails with -j9 on quadcore + +src_configure() { + local backends="aqhbci aqnone aqpaypal" + use ofx && backends="${backends} aqofxconnect" + use ebics && backends="${backends} aqebics" + + local mytest + use gtk && mytest="--enable-gui-tests" + + econf \ + $(use_enable debug) \ + $(use_enable doc full-doc) \ + --with-backends="${backends}" \ + --with-docpath=/usr/share/doc/${PF}/apidoc \ + ${mytest} +} + +src_install() { + emake DESTDIR="${D}" install + + rm -rf "${ED}"/usr/share/doc/aq{banking,hbci,paypal} + + dodoc AUTHORS ChangeLog NEWS README TODO + + newdoc src/plugins/backends/aqhbci/tools/aqhbci-tool/README \ + README.aqhbci-tool + + if use examples; then + docinto tutorials + dodoc tutorials/*.{c,h} tutorials/README + fi + + prune_libtool_files --all +} diff --git a/net-libs/aqbanking/metadata.xml b/net-libs/aqbanking/metadata.xml new file mode 100644 index 000000000000..73fd1d760834 --- /dev/null +++ b/net-libs/aqbanking/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hanno@gentoo.org</email></maintainer> + <use> + <flag name='chipcard'>Enable support for DDV/RSA-chipcards</flag> + <flag name='ebics'>Enable support for Electronic Banking Internet Communication Standard (EBICS)</flag> + </use> +</pkgmetadata> diff --git a/net-libs/axtls/Manifest b/net-libs/axtls/Manifest new file mode 100644 index 000000000000..74b94912a489 --- /dev/null +++ b/net-libs/axtls/Manifest @@ -0,0 +1,4 @@ +DIST axTLS-1.5.0.tar.gz 1302393 SHA256 7ff27d1eb1ad1630e1a3431278d72857c1124edd9a15a07a79709bc77d8bb710 SHA512 526e3c408c960e7e48dd791c6cf94a3dbc62a36c0453e4705529490160cacd5ca1c663fab153a899618e78516714e3afb7a93dae075d2717eb9a91e63f3e9c04 WHIRLPOOL 5fc0e9f4d3f8994dc2909f85261aac538b9563b3dee787d8d6a0942f087041893217a0b9237d5c0824c3a64bb8272bb30d2c4fcdbd11a879107f20892c8f180f +DIST axTLS-1.5.1.tar.gz 1305575 SHA256 860a2754c497109854889e78eb2efdf00661f3b5dbb5e130bd5d8441a2f6ea50 SHA512 4b35e151d222496f5e4ab9c849ca9b14a245590a07f07132eab2fa633dac4cf7abfe29344f643fa182c9c443a139d3230d4b3554d3ff0932410ab36ae3666d92 WHIRLPOOL c1072aa94a7916db38d26902bac175d17e4f8fe1a431956d0b366f9cd913c89c145d119c823d9c1bfa51d54aa191ca43386b4312bea3a16f61d9df4ff2eb6b68 +DIST axTLS-1.5.2.tar.gz 1309632 SHA256 c4568cdf3e326c6fee2d7d16b4e13e05a29cecf49c1774c7858fe83cde01f8bb SHA512 138c1134c949fb85335454907c8fa74f18860d16371aba7d4d46faa4fb0e9cbf41d259cf72389f439d8d6436dc200951001a53e996793ba59254f5ddefe99999 WHIRLPOOL 36b889c4aa5e3c2c0da20a189ec7342db86b757acbb5c9c8a12262d95ceabb490ac97fa608efd66757e74e6347e0f5ff5bd5c76ac453d9dbdc115c45b8e35ad4 +DIST axTLS-1.5.3.tar.gz 1309853 SHA256 367ce7918b9e7738d853d5eaaa9d4fbdb362c5b323d4c0622a72d891f6b8d8e6 SHA512 d37fb1341259b079ed234512a96656d67e005c50d9f8e0c856fb140c9da35267624e065134e0cc8310f70e5cf5d196c7dd34f01e2a7a5cc29e77e7ca46c25281 WHIRLPOOL 92de1a06da740adf0238550d36a75216bace6c7fb867e82d38f2ca2362dcf0e41810191933aa788ffda080367b6beb312f1a9a240ab687a6c4f324988d36a81c diff --git a/net-libs/axtls/axtls-1.5.0.ebuild b/net-libs/axtls/axtls-1.5.0.ebuild new file mode 100644 index 000000000000..b0149d23dbd5 --- /dev/null +++ b/net-libs/axtls/axtls-1.5.0.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils multilib multilib-minimal savedconfig toolchain-funcs user + +################################################################################ +# axtls CONFIG MINI-HOWTO +# +# Note: axtls is highly configurable and uses mconf, like the linux kernel. +# You can configure it in a couple of ways: +# +# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features +# you want, and possibly a lot more. +# +# 2) You can create your own configuration file by doing +# +# FEATURES="keepwork" USE="savedconfig -*" emerge axtls +# cd /var/tmp/portage/net-libs/axtls*/work/axTLS +# make menuconfig +# +# Now configure axtls as you want. Finally save your config file: +# +# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} +# +# where ${PV} is the current version. You can then run emerge again with +# your configuration by doing +# +# USE="savedconfig" emerge axtls +# +################################################################################ + +MY_PN=${PN/tls/TLS} + +DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" +HOMEPAGE="http://axtls.sourceforge.net/" +SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${PN}-code" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 arm hppa ~mips ppc ppc64 ~s390 x86" + +IUSE="httpd cgi-lua cgi-php static static-libs doc" + +# TODO: add ipv6, and c#, java, lua, perl bindings +# Currently these all have some issue +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND=" + httpd? ( + cgi-lua? ( dev-lang/lua ) + cgi-php? ( dev-lang/php[cgi] ) + )" + +#Note1: static, cgi-* makes no sense if httpd is not given +REQUIRED_USE=" + static? ( httpd ) + cgi-lua? ( httpd ) + cgi-php? ( httpd )" + +AXTLS_GROUP="axtls" +AXTLS_USER="axtls" + +pkg_setup() { + use httpd && { + ebegin "Creating axtls user and group" + enewgroup ${AXTLS_GROUP} + enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} + } +} + +src_prepare() { + tc-export AR CC + + epatch "${FILESDIR}/explicit-libdir-r1.patch" + + #We want CONFIG_DEBUG to avoid stripping + #but not for debugging info + sed -i -e 's: -g::' config/Rules.mak || die + sed -i -e 's: -g::' config/makefile.conf || die + + multilib_copy_sources +} + +use_flag_config() { + cp "${FILESDIR}"/config config/.config || die + + #Respect CFLAGS/LDFLAGS + sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ + config/.config || die + sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ + config/.config || die + + #The logic is that the default config file enables everything and we disable + #here with sed unless a USE flags says to keep it + if use httpd; then + if ! use static; then + sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ + config/.config || die + fi + if ! use cgi-php && ! use cgi-lua; then + sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ + config/.config || die + fi + if ! use cgi-php; then + sed -i -e 's:,.php::' config/.config || die + fi + if ! use cgi-lua; then + sed -i -e 's:\.lua,::' \ + -e 's:lua:php:' \ + -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ + config/.config || die + fi + else + sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ + config/.config || die + fi + + yes "n" | emake -j1 oldconfig > /dev/null || die +} + +multilib_src_configure() { + #Per-ABI substitutions. + sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ + Makefile || die + + #Use CC as the host compiler for mconf + sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ + config/Rules.mak || die + + if use savedconfig; then + restore_config config/.config + if [[ -f config/.config ]]; then + ewarn "Using saved config, all other USE flags ignored" + else + ewarn "No saved config, seeding with the default" + cp "${FILESDIR}"/config config/.config || die + fi + yes "" | emake -j1 oldconfig > /dev/null || die + else + use_flag_config + fi +} + +multilib_src_install() { + if multilib_is_native_abi && use savedconfig; then + save_config config/.config + fi + + emake PREFIX="${ED}/usr" install + + if ! use static-libs; then + rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die + fi + + # The build system needs to install before it builds docs + if multilib_is_native_abi && use doc; then + emake docs + dodoc -r docsrc/html + fi +} + +multilib_src_install_all() { + if [[ -f "${ED}"/usr/bin/htpasswd ]]; then + mv "${ED}"/usr/bin/{,ax}htpasswd || die + fi + + if use httpd; then + newinitd "${FILESDIR}"/axhttpd.initd axhttpd + newconfd "${FILESDIR}"/axhttpd.confd axhttpd + fi + + docompress -x /usr/share/doc/${PF}/README + dodoc README +} diff --git a/net-libs/axtls/axtls-1.5.1.ebuild b/net-libs/axtls/axtls-1.5.1.ebuild new file mode 100644 index 000000000000..b0149d23dbd5 --- /dev/null +++ b/net-libs/axtls/axtls-1.5.1.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils multilib multilib-minimal savedconfig toolchain-funcs user + +################################################################################ +# axtls CONFIG MINI-HOWTO +# +# Note: axtls is highly configurable and uses mconf, like the linux kernel. +# You can configure it in a couple of ways: +# +# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features +# you want, and possibly a lot more. +# +# 2) You can create your own configuration file by doing +# +# FEATURES="keepwork" USE="savedconfig -*" emerge axtls +# cd /var/tmp/portage/net-libs/axtls*/work/axTLS +# make menuconfig +# +# Now configure axtls as you want. Finally save your config file: +# +# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} +# +# where ${PV} is the current version. You can then run emerge again with +# your configuration by doing +# +# USE="savedconfig" emerge axtls +# +################################################################################ + +MY_PN=${PN/tls/TLS} + +DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" +HOMEPAGE="http://axtls.sourceforge.net/" +SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${PN}-code" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 arm hppa ~mips ppc ppc64 ~s390 x86" + +IUSE="httpd cgi-lua cgi-php static static-libs doc" + +# TODO: add ipv6, and c#, java, lua, perl bindings +# Currently these all have some issue +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND=" + httpd? ( + cgi-lua? ( dev-lang/lua ) + cgi-php? ( dev-lang/php[cgi] ) + )" + +#Note1: static, cgi-* makes no sense if httpd is not given +REQUIRED_USE=" + static? ( httpd ) + cgi-lua? ( httpd ) + cgi-php? ( httpd )" + +AXTLS_GROUP="axtls" +AXTLS_USER="axtls" + +pkg_setup() { + use httpd && { + ebegin "Creating axtls user and group" + enewgroup ${AXTLS_GROUP} + enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} + } +} + +src_prepare() { + tc-export AR CC + + epatch "${FILESDIR}/explicit-libdir-r1.patch" + + #We want CONFIG_DEBUG to avoid stripping + #but not for debugging info + sed -i -e 's: -g::' config/Rules.mak || die + sed -i -e 's: -g::' config/makefile.conf || die + + multilib_copy_sources +} + +use_flag_config() { + cp "${FILESDIR}"/config config/.config || die + + #Respect CFLAGS/LDFLAGS + sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ + config/.config || die + sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ + config/.config || die + + #The logic is that the default config file enables everything and we disable + #here with sed unless a USE flags says to keep it + if use httpd; then + if ! use static; then + sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ + config/.config || die + fi + if ! use cgi-php && ! use cgi-lua; then + sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ + config/.config || die + fi + if ! use cgi-php; then + sed -i -e 's:,.php::' config/.config || die + fi + if ! use cgi-lua; then + sed -i -e 's:\.lua,::' \ + -e 's:lua:php:' \ + -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ + config/.config || die + fi + else + sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ + config/.config || die + fi + + yes "n" | emake -j1 oldconfig > /dev/null || die +} + +multilib_src_configure() { + #Per-ABI substitutions. + sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ + Makefile || die + + #Use CC as the host compiler for mconf + sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ + config/Rules.mak || die + + if use savedconfig; then + restore_config config/.config + if [[ -f config/.config ]]; then + ewarn "Using saved config, all other USE flags ignored" + else + ewarn "No saved config, seeding with the default" + cp "${FILESDIR}"/config config/.config || die + fi + yes "" | emake -j1 oldconfig > /dev/null || die + else + use_flag_config + fi +} + +multilib_src_install() { + if multilib_is_native_abi && use savedconfig; then + save_config config/.config + fi + + emake PREFIX="${ED}/usr" install + + if ! use static-libs; then + rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die + fi + + # The build system needs to install before it builds docs + if multilib_is_native_abi && use doc; then + emake docs + dodoc -r docsrc/html + fi +} + +multilib_src_install_all() { + if [[ -f "${ED}"/usr/bin/htpasswd ]]; then + mv "${ED}"/usr/bin/{,ax}htpasswd || die + fi + + if use httpd; then + newinitd "${FILESDIR}"/axhttpd.initd axhttpd + newconfd "${FILESDIR}"/axhttpd.confd axhttpd + fi + + docompress -x /usr/share/doc/${PF}/README + dodoc README +} diff --git a/net-libs/axtls/axtls-1.5.2.ebuild b/net-libs/axtls/axtls-1.5.2.ebuild new file mode 100644 index 000000000000..ea6a5d6e8211 --- /dev/null +++ b/net-libs/axtls/axtls-1.5.2.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils multilib multilib-minimal savedconfig toolchain-funcs user + +################################################################################ +# axtls CONFIG MINI-HOWTO +# +# Note: axtls is highly configurable and uses mconf, like the linux kernel. +# You can configure it in a couple of ways: +# +# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features +# you want, and possibly a lot more. +# +# 2) You can create your own configuration file by doing +# +# FEATURES="keepwork" USE="savedconfig -*" emerge axtls +# cd /var/tmp/portage/net-libs/axtls*/work/axTLS +# make menuconfig +# +# Now configure axtls as you want. Finally save your config file: +# +# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} +# +# where ${PV} is the current version. You can then run emerge again with +# your configuration by doing +# +# USE="savedconfig" emerge axtls +# +################################################################################ + +MY_PN=${PN/tls/TLS} + +DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" +HOMEPAGE="http://axtls.sourceforge.net/" +SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${PN}-code" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86" + +IUSE="httpd cgi-lua cgi-php static static-libs doc" + +# TODO: add ipv6, and c#, java, lua, perl bindings +# Currently these all have some issue +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND=" + httpd? ( + cgi-lua? ( dev-lang/lua ) + cgi-php? ( dev-lang/php[cgi] ) + )" + +#Note1: static, cgi-* makes no sense if httpd is not given +REQUIRED_USE=" + static? ( httpd ) + cgi-lua? ( httpd ) + cgi-php? ( httpd )" + +AXTLS_GROUP="axtls" +AXTLS_USER="axtls" + +pkg_setup() { + use httpd && { + ebegin "Creating axtls user and group" + enewgroup ${AXTLS_GROUP} + enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} + } +} + +src_prepare() { + tc-export AR CC + + epatch "${FILESDIR}/explicit-libdir-r1.patch" + + #We want CONFIG_DEBUG to avoid stripping + #but not for debugging info + sed -i -e 's: -g::' config/Rules.mak || die + sed -i -e 's: -g::' config/makefile.conf || die + + multilib_copy_sources +} + +use_flag_config() { + cp "${FILESDIR}"/config config/.config || die + + #Respect CFLAGS/LDFLAGS + sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ + config/.config || die + sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ + config/.config || die + + #The logic is that the default config file enables everything and we disable + #here with sed unless a USE flags says to keep it + if use httpd; then + if ! use static; then + sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ + config/.config || die + fi + if ! use cgi-php && ! use cgi-lua; then + sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ + config/.config || die + fi + if ! use cgi-php; then + sed -i -e 's:,.php::' config/.config || die + fi + if ! use cgi-lua; then + sed -i -e 's:\.lua,::' \ + -e 's:lua:php:' \ + -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ + config/.config || die + fi + else + sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ + config/.config || die + fi + + yes "n" | emake -j1 oldconfig > /dev/null || die +} + +multilib_src_configure() { + #Per-ABI substitutions. + sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ + Makefile || die + + #Use CC as the host compiler for mconf + sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ + config/Rules.mak || die + + if use savedconfig; then + restore_config config/.config + if [[ -f config/.config ]]; then + ewarn "Using saved config, all other USE flags ignored" + else + ewarn "No saved config, seeding with the default" + cp "${FILESDIR}"/config config/.config || die + fi + yes "" | emake -j1 oldconfig > /dev/null || die + else + use_flag_config + fi +} + +multilib_src_install() { + if multilib_is_native_abi && use savedconfig; then + save_config config/.config + fi + + emake PREFIX="${ED}/usr" install + + if ! use static-libs; then + rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die + fi + + # The build system needs to install before it builds docs + if multilib_is_native_abi && use doc; then + emake docs + dodoc -r docsrc/html + fi +} + +multilib_src_install_all() { + if [[ -f "${ED}"/usr/bin/htpasswd ]]; then + mv "${ED}"/usr/bin/{,ax}htpasswd || die + fi + + if use httpd; then + newinitd "${FILESDIR}"/axhttpd.initd axhttpd + newconfd "${FILESDIR}"/axhttpd.confd axhttpd + fi + + docompress -x /usr/share/doc/${PF}/README + dodoc README +} diff --git a/net-libs/axtls/axtls-1.5.3.ebuild b/net-libs/axtls/axtls-1.5.3.ebuild new file mode 100644 index 000000000000..ea6a5d6e8211 --- /dev/null +++ b/net-libs/axtls/axtls-1.5.3.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils multilib multilib-minimal savedconfig toolchain-funcs user + +################################################################################ +# axtls CONFIG MINI-HOWTO +# +# Note: axtls is highly configurable and uses mconf, like the linux kernel. +# You can configure it in a couple of ways: +# +# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features +# you want, and possibly a lot more. +# +# 2) You can create your own configuration file by doing +# +# FEATURES="keepwork" USE="savedconfig -*" emerge axtls +# cd /var/tmp/portage/net-libs/axtls*/work/axTLS +# make menuconfig +# +# Now configure axtls as you want. Finally save your config file: +# +# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} +# +# where ${PV} is the current version. You can then run emerge again with +# your configuration by doing +# +# USE="savedconfig" emerge axtls +# +################################################################################ + +MY_PN=${PN/tls/TLS} + +DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" +HOMEPAGE="http://axtls.sourceforge.net/" +SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${PN}-code" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86" + +IUSE="httpd cgi-lua cgi-php static static-libs doc" + +# TODO: add ipv6, and c#, java, lua, perl bindings +# Currently these all have some issue +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND=" + httpd? ( + cgi-lua? ( dev-lang/lua ) + cgi-php? ( dev-lang/php[cgi] ) + )" + +#Note1: static, cgi-* makes no sense if httpd is not given +REQUIRED_USE=" + static? ( httpd ) + cgi-lua? ( httpd ) + cgi-php? ( httpd )" + +AXTLS_GROUP="axtls" +AXTLS_USER="axtls" + +pkg_setup() { + use httpd && { + ebegin "Creating axtls user and group" + enewgroup ${AXTLS_GROUP} + enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} + } +} + +src_prepare() { + tc-export AR CC + + epatch "${FILESDIR}/explicit-libdir-r1.patch" + + #We want CONFIG_DEBUG to avoid stripping + #but not for debugging info + sed -i -e 's: -g::' config/Rules.mak || die + sed -i -e 's: -g::' config/makefile.conf || die + + multilib_copy_sources +} + +use_flag_config() { + cp "${FILESDIR}"/config config/.config || die + + #Respect CFLAGS/LDFLAGS + sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ + config/.config || die + sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ + config/.config || die + + #The logic is that the default config file enables everything and we disable + #here with sed unless a USE flags says to keep it + if use httpd; then + if ! use static; then + sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ + config/.config || die + fi + if ! use cgi-php && ! use cgi-lua; then + sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ + config/.config || die + fi + if ! use cgi-php; then + sed -i -e 's:,.php::' config/.config || die + fi + if ! use cgi-lua; then + sed -i -e 's:\.lua,::' \ + -e 's:lua:php:' \ + -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ + config/.config || die + fi + else + sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ + config/.config || die + fi + + yes "n" | emake -j1 oldconfig > /dev/null || die +} + +multilib_src_configure() { + #Per-ABI substitutions. + sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ + Makefile || die + + #Use CC as the host compiler for mconf + sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ + config/Rules.mak || die + + if use savedconfig; then + restore_config config/.config + if [[ -f config/.config ]]; then + ewarn "Using saved config, all other USE flags ignored" + else + ewarn "No saved config, seeding with the default" + cp "${FILESDIR}"/config config/.config || die + fi + yes "" | emake -j1 oldconfig > /dev/null || die + else + use_flag_config + fi +} + +multilib_src_install() { + if multilib_is_native_abi && use savedconfig; then + save_config config/.config + fi + + emake PREFIX="${ED}/usr" install + + if ! use static-libs; then + rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die + fi + + # The build system needs to install before it builds docs + if multilib_is_native_abi && use doc; then + emake docs + dodoc -r docsrc/html + fi +} + +multilib_src_install_all() { + if [[ -f "${ED}"/usr/bin/htpasswd ]]; then + mv "${ED}"/usr/bin/{,ax}htpasswd || die + fi + + if use httpd; then + newinitd "${FILESDIR}"/axhttpd.initd axhttpd + newconfd "${FILESDIR}"/axhttpd.confd axhttpd + fi + + docompress -x /usr/share/doc/${PF}/README + dodoc README +} diff --git a/net-libs/axtls/files/axhttpd.confd b/net-libs/axtls/files/axhttpd.confd new file mode 100644 index 000000000000..02f129203f88 --- /dev/null +++ b/net-libs/axtls/files/axhttpd.confd @@ -0,0 +1,7 @@ +#Zero or more of the following may be given: +# +# -p [address:]httpport +# -s [address:]httpsport +# -w webroot +# +#AXHTTPD_OPTS="-w /var/www/localhost/htdocs -p 8080 -s 4343" diff --git a/net-libs/axtls/files/axhttpd.initd b/net-libs/axtls/files/axhttpd.initd new file mode 100644 index 000000000000..1fcba2fc1289 --- /dev/null +++ b/net-libs/axtls/files/axhttpd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +AXHTTPD_USER="axtls" +AXHTTPD_GROUP="axtls" +AXHTTPD_DAEMON="/usr/bin/axhttpd" + +depend() { + need net +} + +start() { + ebegin "Starting axhttpd" + start-stop-daemon --quiet --start "${AXHTTPD_DAEMON}" \ + --user "${AXHTTPD_USER}":"${AXHTTPD_GROUP}" \ + -- ${AXHTTPD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping axhttpd" + start-stop-daemon --quiet --stop "${AXHTTPD_DAEMON}" + eend $? +} diff --git a/net-libs/axtls/files/config b/net-libs/axtls/files/config new file mode 100644 index 000000000000..6eb608defc82 --- /dev/null +++ b/net-libs/axtls/files/config @@ -0,0 +1,126 @@ +# +# Automatically generated make config: don't edit +# +HAVE_DOT_CONFIG=y +CONFIG_PLATFORM_LINUX=y +# CONFIG_PLATFORM_CYGWIN is not set +# CONFIG_PLATFORM_WIN32 is not set + +# +# General Configuration +# +PREFIX="/usr" +CONFIG_DEBUG=y +# CONFIG_STRIP_UNWANTED_SECTIONS is not set +# CONFIG_VISUAL_STUDIO_7_0 is not set +# CONFIG_VISUAL_STUDIO_8_0 is not set +# CONFIG_VISUAL_STUDIO_10_0 is not set +CONFIG_VISUAL_STUDIO_7_0_BASE="" +CONFIG_VISUAL_STUDIO_8_0_BASE="" +CONFIG_VISUAL_STUDIO_10_0_BASE="" +CONFIG_EXTRA_CFLAGS_OPTIONS="" +CONFIG_EXTRA_LDFLAGS_OPTIONS="" + +# +# SSL Library +# +# CONFIG_SSL_SERVER_ONLY is not set +# CONFIG_SSL_CERT_VERIFICATION is not set +# CONFIG_SSL_ENABLE_CLIENT is not set +CONFIG_SSL_FULL_MODE=y +# CONFIG_SSL_SKELETON_MODE is not set +# CONFIG_SSL_PROT_LOW is not set +# CONFIG_SSL_PROT_MEDIUM is not set +CONFIG_SSL_PROT_HIGH=y +CONFIG_SSL_USE_DEFAULT_KEY=y +CONFIG_SSL_PRIVATE_KEY_LOCATION="" +CONFIG_SSL_PRIVATE_KEY_PASSWORD="" +CONFIG_SSL_X509_CERT_LOCATION="" +# CONFIG_SSL_GENERATE_X509_CERT is not set +CONFIG_SSL_X509_COMMON_NAME="" +CONFIG_SSL_X509_ORGANIZATION_NAME="" +CONFIG_SSL_X509_ORGANIZATION_UNIT_NAME="" +CONFIG_SSL_ENABLE_V23_HANDSHAKE=y +CONFIG_SSL_HAS_PEM=y +CONFIG_SSL_USE_PKCS12=y +CONFIG_SSL_EXPIRY_TIME=24 +CONFIG_X509_MAX_CA_CERTS=300 +CONFIG_SSL_MAX_CERTS=6 +# CONFIG_SSL_CTX_MUTEXING is not set +CONFIG_USE_DEV_URANDOM=y +# CONFIG_WIN32_USE_CRYPTO_LIB is not set +CONFIG_OPENSSL_COMPATIBLE=y +# CONFIG_PERFORMANCE_TESTING is not set +CONFIG_SSL_TEST=y +CONFIG_AXTLSWRAP=y +CONFIG_AXHTTPD=y + +# +# Axhttpd Configuration +# +CONFIG_HTTP_STATIC_BUILD=y +CONFIG_HTTP_PORT=8080 +CONFIG_HTTP_HTTPS_PORT=4343 +CONFIG_HTTP_SESSION_CACHE_SIZE=5 +CONFIG_HTTP_WEBROOT="/var/www/localhost/htdocs" +CONFIG_HTTP_TIMEOUT=300 + +# +# CGI +# +CONFIG_HTTP_HAS_CGI=y +CONFIG_HTTP_CGI_EXTENSIONS=".lua,.php" +CONFIG_HTTP_ENABLE_LUA=y +CONFIG_HTTP_LUA_PREFIX="/usr" +# CONFIG_HTTP_BUILD_LUA is not set +CONFIG_HTTP_CGI_LAUNCHER="/usr/bin/lua" +CONFIG_HTTP_DIRECTORIES=y +CONFIG_HTTP_HAS_AUTHORIZATION=y +# CONFIG_HTTP_HAS_IPV6 is not set +CONFIG_HTTP_ENABLE_DIFFERENT_USER=y +CONFIG_HTTP_USER="axtls" +CONFIG_HTTP_VERBOSE=y +CONFIG_HTTP_IS_DAEMON=y + +# +# Language Bindings +# +# CONFIG_BINDINGS is not set +# CONFIG_CSHARP_BINDINGS is not set +# CONFIG_VBNET_BINDINGS is not set +CONFIG_DOT_NET_FRAMEWORK_BASE="" +# CONFIG_JAVA_BINDINGS is not set +CONFIG_JAVA_HOME="" +# CONFIG_PERL_BINDINGS is not set +CONFIG_PERL_CORE="" +CONFIG_PERL_LIB="" +# CONFIG_LUA_BINDINGS is not set +CONFIG_LUA_CORE="" + +# +# Samples +# +CONFIG_SAMPLES=y +CONFIG_C_SAMPLES=y +# CONFIG_CSHARP_SAMPLES is not set +# CONFIG_VBNET_SAMPLES is not set +# CONFIG_JAVA_SAMPLES is not set +# CONFIG_PERL_SAMPLES is not set +# CONFIG_LUA_SAMPLES is not set + +# +# BigInt Options +# +# CONFIG_BIGINT_CLASSICAL is not set +# CONFIG_BIGINT_MONTGOMERY is not set +CONFIG_BIGINT_BARRETT=y +CONFIG_BIGINT_CRT=y +CONFIG_BIGINT_KARATSUBA=y +MUL_KARATSUBA_THRESH=20 +SQU_KARATSUBA_THRESH=40 +CONFIG_BIGINT_SLIDING_WINDOW=y +CONFIG_BIGINT_SQUARE=y +# CONFIG_BIGINT_CHECK_ON is not set +CONFIG_INTEGER_32BIT=y +# CONFIG_INTEGER_16BIT is not set +# CONFIG_INTEGER_8BIT is not set diff --git a/net-libs/axtls/files/explicit-libdir-r1.patch b/net-libs/axtls/files/explicit-libdir-r1.patch new file mode 100644 index 000000000000..288b053e0f75 --- /dev/null +++ b/net-libs/axtls/files/explicit-libdir-r1.patch @@ -0,0 +1,59 @@ +From 51c1e48d3f55da25adff306b891ad258eca35a8d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 14 Jun 2014 23:35:42 +0200 +Subject: [PATCH] Respect libdir. + +--- + Makefile | 14 +++++++++----- + 1 file changed, 9 insertions(+), 5 deletions(-) + +diff --git a/Makefile b/Makefile +index 036a29e..10a1649 100644 +--- a/Makefile ++++ b/Makefile +@@ -60,6 +60,8 @@ ifdef CONFIG_SAMPLES + $(MAKE) -C samples + endif + ++LIBDIR = $(PREFIX)/lib ++ + $(STAGE) : ssl/version.h + @mkdir -p $(STAGE) + +@@ -67,8 +69,10 @@ $(STAGE) : ssl/version.h + ssl/version.h: + @echo "#define AXTLS_VERSION \"(no version)\"" > ssl/version.h + ++$(LIBDIR) : $(PREFIX) ++ @mkdir -p $(LIBDIR) ++ + $(PREFIX) : +- @mkdir -p $(PREFIX)/lib + @mkdir -p $(PREFIX)/bin + + release: +@@ -88,9 +92,9 @@ win32_demo: + @echo "#define AXTLS_VERSION \"$(VERSION)\"" > ssl/version.h + $(MAKE) win32releaseconf + +-install: $(PREFIX) all +- cp --no-dereference $(STAGE)/libax* $(PREFIX)/lib +- chmod 755 $(PREFIX)/lib/libax* ++install: $(LIBDIR) $(PREFIX) all ++ cp --no-dereference $(STAGE)/libax* $(LIBDIR) ++ chmod 755 $(LIBDIR)/libax* + ifdef CONFIG_SAMPLES + install -m 755 $(STAGE)/ax* $(PREFIX)/bin + endif +@@ -112,7 +116,7 @@ endif + install -m 644 config/config.h $(PREFIX)/include/axTLS + + installclean: +- -@rm $(PREFIX)/lib/libax* > /dev/null 2>&1 ++ -@rm $(LIBDIR)/libax* > /dev/null 2>&1 + -@rm $(PREFIX)/bin/ax* > /dev/null 2>&1 + -@rm $(PREFIX)/bin/axhttpd* > /dev/null 2>&1 + -@rm `perl -e 'use Config; print $$Config{installarchlib};'`/axtlsp.pm > /dev/null 2>&1 +-- +2.0.0 + diff --git a/net-libs/axtls/metadata.xml b/net-libs/axtls/metadata.xml new file mode 100644 index 000000000000..29910d9bd8a2 --- /dev/null +++ b/net-libs/axtls/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <use> + <flag name="httpd">Enables axhttpd web server component</flag> + <flag name="static">Statically build axhttpd server</flag> + <flag name="cgi-lua">Enables lua backed cgi for axhttpd server</flag> + <flag name="cgi-php">Enables php backed cgi for axhttpd server</flag> + </use> + <upstream> + <remote-id type="sourceforge">axtls</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/balde-markdown/Manifest b/net-libs/balde-markdown/Manifest new file mode 100644 index 000000000000..b4b63bd322d0 --- /dev/null +++ b/net-libs/balde-markdown/Manifest @@ -0,0 +1 @@ +DIST balde-markdown-0.1.tar.bz2 260429 SHA256 face375e275fae323b1e01c1cf430479e163d7130f3b1cffc310564bf71bf2b1 SHA512 ba0a952d1f8480f6173a8af6eb662741ac04db4e39d65158afac97606c2faaaff973dce384b2bc1d42aabbdd345cd451fc5624f1c6d2f941f2630b2e76a01d10 WHIRLPOOL cbfdb1e1d457b4f6963999d9a4472d6f8bed21a8562f38dbf2c48a31e48ec30028c71f0f2084c7274ca0921e032fe52ec05aad53a671c911c48af765cfb4baa7 diff --git a/net-libs/balde-markdown/balde-markdown-0.1.ebuild b/net-libs/balde-markdown/balde-markdown-0.1.ebuild new file mode 100644 index 000000000000..8add6454f1c0 --- /dev/null +++ b/net-libs/balde-markdown/balde-markdown-0.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://github.com/balde/balde-markdown.git + https://github.com/balde/balde-markdown.git" + inherit git-r3 autotools +fi + +DESCRIPTION="A balde extension that adds Markdown support" +HOMEPAGE="https://github.com/balde/balde-markdown" + +SRC_URI="https://github.com/balde/${PN}/releases/download/v${PV}/${P}.tar.bz2" +KEYWORDS="~amd64 ~x86" +if [[ ${PV} = *9999* ]]; then + SRC_URI="" + KEYWORDS="" +fi + +LICENSE="LGPL-2" +SLOT="0" +IUSE="test" + +RDEPEND=">=dev-libs/glib-2.34 + >=net-libs/balde-0.1 + app-text/discount" + +DEPEND="${RDEPEND}" + +src_prepare() { + [[ ${PV} = *9999* ]] && eautoreconf + default +} + +src_configure() { + econf \ + --without-valgrind +} diff --git a/net-libs/balde-markdown/metadata.xml b/net-libs/balde-markdown/metadata.xml new file mode 100644 index 000000000000..58572cfdde2c --- /dev/null +++ b/net-libs/balde-markdown/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>rafaelmartins@gentoo.org</email> + <name>Rafael G. Martins</name> + </maintainer> + <longdescription lang="en"> + A balde extension that adds Markdown support. + </longdescription> + <upstream> + <maintainer status="active"> + <email>rafaelmartins@gentoo.org</email> + <name>Rafael G. Martins</name> + </maintainer> + <bugs-to>mailto:balde-dev@googlegroups.com</bugs-to> + <remote-id type="github">balde/balde-markdown</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/balde/Manifest b/net-libs/balde/Manifest new file mode 100644 index 000000000000..fdc0715f17ee --- /dev/null +++ b/net-libs/balde/Manifest @@ -0,0 +1 @@ +DIST balde-0.1.1.tar.bz2 360412 SHA256 0da03157d0c87d8699ff36d98636ebfd3ca62bd0d4db15ea567601eaa0e40dba SHA512 fafb9e9344ecb1caf6a4451b99adb3505fb728015e2bcce3d81162f679a70267e49a0dc194c6c977a7a155f9b5ae3318fdfcb63fb0223e43943c0fc5e8503acd WHIRLPOOL bff449dfaf1ed45d6655fc861ab69b95a114abf41e5395f3988937af2c465d096f845e2bbb4294fb7fcc8b8ace8c125f149e074a636a0ab130975124a886cef5 diff --git a/net-libs/balde/balde-0.1.1.ebuild b/net-libs/balde/balde-0.1.1.ebuild new file mode 100644 index 000000000000..e205e1a111e2 --- /dev/null +++ b/net-libs/balde/balde-0.1.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://github.com/balde/balde.git + https://github.com/balde/balde.git" + inherit git-r3 autotools +fi + +DESCRIPTION="A microframework for C based on GLib and bad intentions" +HOMEPAGE="http://balde.io/" + +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.bz2" +KEYWORDS="~amd64 ~x86" +if [[ ${PV} = *9999* ]]; then + SRC_URI="" + KEYWORDS="" +fi + +LICENSE="LGPL-2" +SLOT="0" +IUSE="doc test" + +RDEPEND=">=dev-libs/glib-2.34 + dev-libs/fcgi + x11-misc/shared-mime-info" + +if [[ ${PV} = *9999* ]]; then + RDEPEND="${RDEPEND} + dev-util/peg" +fi + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + [[ ${PV} = *9999* ]] && eautoreconf + default +} + +src_configure() { + econf \ + $(use_with doc doxygen) \ + --disable-examples \ + --without-valgrind +} + +src_compile() { + default + use doc && emake doxygen +} + +src_install() { + default + use doc && dohtml -r doc/build/html/. +} diff --git a/net-libs/balde/metadata.xml b/net-libs/balde/metadata.xml new file mode 100644 index 000000000000..577f319f7966 --- /dev/null +++ b/net-libs/balde/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>rafaelmartins@gentoo.org</email> + <name>Rafael G. Martins</name> + </maintainer> + <longdescription lang="en"> + A microframework for C based on GLib and bad intentions. + </longdescription> + <upstream> + <maintainer status="active"> + <email>rafaelmartins@gentoo.org</email> + <name>Rafael G. Martins</name> + </maintainer> + <bugs-to>mailto:balde-dev@googlegroups.com</bugs-to> + <remote-id type="github">balde/balde</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/c-client/Manifest b/net-libs/c-client/Manifest new file mode 100644 index 000000000000..6d91db7bfbf9 --- /dev/null +++ b/net-libs/c-client/Manifest @@ -0,0 +1,2 @@ +DIST c-client-2007f-chappa-115-all.patch.gz 30571 SHA256 ce7512e1b0d904d6429bb999bc0b159becc253088bbd89ef2185e6c948723cff SHA512 f44489ec38aa6a3dc682872a6857154254c23352db81ee380dfdfad39743234d97a8bcc07a74459f7532efe2fc073cf7d9c078433e11a95de19beeb387ff8b65 WHIRLPOOL 9fef9066c43df4c15f4f75bbad3634481e4cfce69c054682fe40193c30db6f9ceaed40138d00133c1bf1623dd45d251031562b2f16f1699ebcf0fbc8ce6c4653 +DIST imap-2007f.tar.Z 2793529 SHA256 870e95f6bd19265832a88fd89b77c54c841c59022fd21e69254050c8b1005e3c SHA512 2c728deaf66d23158c61ae55ff94f05d2a1cf0168002760321ca30c6ee1c58c0a4c7bc14ece0097ea662df6c7c49be3b91c8e5e943724c9e2736800fa9298dae WHIRLPOOL 655536d61a178940363241ad8c94a28be75e90abf3b8c585eb61364a6394ff49bb5fd5dc6de4bec5f992f03b592e583df04f0103e8f3c167aa68a476c574c4ec diff --git a/net-libs/c-client/c-client-2007f-r4.ebuild b/net-libs/c-client/c-client-2007f-r4.ebuild new file mode 100644 index 000000000000..ad79696a28bf --- /dev/null +++ b/net-libs/c-client/c-client-2007f-r4.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit flag-o-matic eutils libtool toolchain-funcs multilib + +MY_PN=imap +MY_P="${MY_PN}-${PV}" +S=${WORKDIR}/${MY_P} + +CHAPPA_PL=115 +DESCRIPTION="UW IMAP c-client library" +HOMEPAGE="http://www.washington.edu/imap/" +SRC_URI="ftp://ftp.cac.washington.edu/imap/${MY_P}.tar.Z + chappa? ( mirror://gentoo/${P}-chappa-${CHAPPA_PL}-all.patch.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="doc +ipv6 kerberos kernel_linux kernel_FreeBSD pam ssl static-libs topal chappa" + +RDEPEND="ssl? ( dev-libs/openssl ) + !net-mail/uw-imap + kerberos? ( app-crypt/mit-krb5 )" +DEPEND="${RDEPEND} + kernel_linux? ( pam? ( >=sys-libs/pam-0.72 ) )" + +src_prepare() { + # Tarball packed with bad file perms + chmod -R u+rwX,go-w . + + # lots of things need -fPIC, including various platforms, and this library + # generally should be built with it anyway. + append-flags -fPIC + + # Modifications so we can build it optimally and correctly + sed \ + -e "s:BASECFLAGS=\".*\":BASECFLAGS=:g" \ + -e 's:SSLDIR=/usr/local/ssl:SSLDIR=/usr:g' \ + -e 's:SSLCERTS=$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:g' \ + -i src/osdep/unix/Makefile || die "Makefile sed fixing failed" + + # Make the build system more multilib aware + sed \ + -e "s:^SSLLIB=\$(SSLDIR)/lib:SSLLIB=\$(SSLDIR)/$(get_libdir):" \ + -e "s:^AFSLIB=\$(AFSDIR)/lib:AFSLIB=\$(AFSDIR)/$(get_libdir):" \ + -i src/osdep/unix/Makefile || die "Makefile sed fixing failed" + + # Targets should use the Gentoo (ie linux) fs + sed -e '/^bsf:/,/^$/ s:ACTIVEFILE=.*:ACTIVEFILE=/var/lib/news/active:g' \ + -i src/osdep/unix/Makefile || die "Makefile sex fixing failed for FreeBSD" + + # Apply a patch to only build the stuff we need for c-client + epatch "${FILESDIR}"/${PN}-2006k_GENTOO_Makefile.patch + + # Apply patch to add the compilation of a .so for PHP + # This was previously conditional, but is more widely useful. + epatch "${FILESDIR}"/${PN}-2006k_GENTOO_amd64-so-fix.patch + + # Remove the pesky checks about SSL stuff + sed -e '/read.*exit/d' -i Makefile || die + + # Respect LDFLAGS + epatch "${FILESDIR}"/${PN}-2007f-ldflags.patch + sed -e "s/CC=cc/CC=$(tc-getCC)/" \ + -e "s/ARRC=ar/ARRC=$(tc-getAR)/" \ + -e "s/RANLIB=ranlib/RANLIB=$(tc-getRANLIB)/" \ + -i src/osdep/unix/Makefile || die "Respecting build flags" + + use topal && epatch "${FILESDIR}/${P}-topal.patch" + use chappa && epatch "${DISTDIR}/${P}-chappa-${CHAPPA_PL}-all.patch.gz" + + elibtoolize +} + +src_compile() { + local mymake ipver ssltype target passwdtype + ipver='IP=4' + use ipv6 && ipver="IP=6" && touch ip6 + use ssl && ssltype="unix" || ssltype="none" + if use kernel_linux ; then + use pam && target=lnp passwdtype=pam || target=lnx passwdtype=std + elif use kernel_FreeBSD ; then + target=bsf passwdtype=pam + fi + use kerberos \ + && mymake="EXTRAAUTHENTICATORS=gss" \ + && EXTRALIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \ + # no parallel builds supported! + emake -j1 SSLTYPE=${ssltype} $target \ + PASSWDTYPE=${passwdtype} ${ipver} ${mymake} \ + EXTRACFLAGS="${CFLAGS}" \ + EXTRALDFLAGS="${LDFLAGS}" \ + EXTRALIBS="${EXTRALIBS}" \ + GSSDIR=/usr +} + +src_install() { + if use static-libs; then + # Library binary + dolib.a c-client/c-client.a + dosym c-client.a /usr/$(get_libdir)/libc-client.a + fi + + # Now the shared library + dolib.so c-client/libc-client.so.1.0.0 + + dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so + dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so.1 + + # Headers + insinto /usr/include/imap + doins src/osdep/unix/*.h + doins src/c-client/*.h + doins c-client/linkage.h + doins c-client/linkage.c + doins c-client/osdep.h + if use ssl; then + echo " ssl_onceonlyinit ();" >> "${D}"/usr/include/imap/linkage.c || die + fi + # Docs + dodoc README docs/*.txt docs/BUILD docs/CONFIG docs/RELNOTES docs/SSLBUILD + if use doc; then + docinto rfc + dodoc docs/rfc/*.txt + docinto draft + dodoc docs/draft/* + fi +} diff --git a/net-libs/c-client/files/c-client-2006k_GENTOO_Makefile.patch b/net-libs/c-client/files/c-client-2006k_GENTOO_Makefile.patch new file mode 100644 index 000000000000..50a57f0747db --- /dev/null +++ b/net-libs/c-client/files/c-client-2006k_GENTOO_Makefile.patch @@ -0,0 +1,70 @@ +Fix the Makefile for building on Gentoo. + +diff -r b15554ece4d6 Makefile +--- a/Makefile Thu Feb 21 17:49:39 2008 +0100 ++++ b/Makefile Thu Feb 21 18:51:31 2008 +0100 +@@ -295,7 +295,7 @@ BUILD=$(MAKE) build EXTRACFLAGS='$(EXTRA + + # Make the IMAP Toolkit + +-all: c-client SPECIALS rebuild bundled ++all: c-client SPECIALS rebuild + + c-client: + @echo Not processed yet. In a first-time build, you must specify +@@ -665,16 +665,9 @@ an ua: + $(TOOLS)/$@ "$(LN)" src/ansilib c-client + $(TOOLS)/$@ "$(LN)" src/charset c-client + $(TOOLS)/$@ "$(LN)" src/osdep/$(SYSTEM) c-client +- $(TOOLS)/$@ "$(LN)" src/mtest mtest +- $(TOOLS)/$@ "$(LN)" src/ipopd ipopd +- $(TOOLS)/$@ "$(LN)" src/imapd imapd +- $(TOOLS)/$@ "$(LN)" src/mailutil mailutil +- $(TOOLS)/$@ "$(LN)" src/mlock mlock +- $(TOOLS)/$@ "$(LN)" src/dmail dmail +- $(TOOLS)/$@ "$(LN)" src/tmail tmail + $(LN) $(TOOLS)/$@ . + +-build: OSTYPE rebuild rebuildclean bundled ++build: OSTYPE rebuild rebuildclean + + OSTYPE: + @$(MAKE) ip$(IP) +@@ -690,8 +683,6 @@ OSTYPE: + echo $(BUILDTYPE) > OSTYPE + $(TOUCH) rebuild + +-rebuild: +- @$(SH) -c '(test $(BUILDTYPE) = rebuild -o $(BUILDTYPE) = `$(CAT) OSTYPE`) || (echo Already built for `$(CAT) OSTYPE` -- you must do \"make clean\" first && exit 1)' + @echo Rebuilding c-client for `$(CAT) OSTYPE`... + @$(TOUCH) SPECIALS + $(CD) c-client;$(MAKE) all CC=`$(CAT) CCTYPE` \ +@@ -700,28 +691,6 @@ rebuildclean: + rebuildclean: + $(SH) -c '$(RM) rebuild || true' + +-bundled: +- @echo Building bundled tools... +- $(CD) mtest;$(MAKE) +- $(CD) ipopd;$(MAKE) +- $(CD) imapd;$(MAKE) +- $(CD) mailutil;$(MAKE) +- @$(SH) -c '(test -f /usr/include/sysexits.h ) || make sysexitwarn' +- $(CD) mlock;$(MAKE) || true +- $(CD) dmail;$(MAKE) || true +- $(CD) tmail;$(MAKE) || true +- +- +-sysexitwarn: +- @echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +- @echo + Hmm...it does not look like /usr/include/sysexits.h exists. +- @echo + Either your system is too ancient to have the sysexits.h +- @echo + include, or your C compiler gets it from some other location +- @echo + than /usr/include. If your system is too old to have the +- @echo + sysexits.h include, you will not be able to build the +- @echo + following programs. +- @echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +- + clean: + @echo Removing old processed sources and binaries... + $(SH) -c '$(RM) an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail || true' diff --git a/net-libs/c-client/files/c-client-2006k_GENTOO_amd64-so-fix.patch b/net-libs/c-client/files/c-client-2006k_GENTOO_amd64-so-fix.patch new file mode 100644 index 000000000000..79b067d21f94 --- /dev/null +++ b/net-libs/c-client/files/c-client-2006k_GENTOO_amd64-so-fix.patch @@ -0,0 +1,13 @@ +diff -r 7c3e6c6ef2ba src/osdep/unix/Makefile +--- a/src/osdep/unix/Makefile Thu Feb 21 18:51:32 2008 +0100 ++++ b/src/osdep/unix/Makefile Thu Feb 21 18:53:15 2008 +0100 +@@ -962,6 +962,9 @@ onceenv: + -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" > OSCFLAGS + echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS + echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE ++ echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \ ++ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \ ++ >> ARCHIVE + echo $(OS) > OSTYPE + ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy + ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS) diff --git a/net-libs/c-client/files/c-client-2006k_KOLAB_Annotations.patch b/net-libs/c-client/files/c-client-2006k_KOLAB_Annotations.patch new file mode 100644 index 000000000000..8eec02d029c4 --- /dev/null +++ b/net-libs/c-client/files/c-client-2006k_KOLAB_Annotations.patch @@ -0,0 +1,448 @@ +Provides get/set ANNOTATIONS support to the c-client library. [Version: 2006k] + +diff -r 217555555c77 src/c-client/imap4r1.c +--- a/src/c-client/imap4r1.c Thu Feb 21 17:37:37 2008 +0100 ++++ b/src/c-client/imap4r1.c Thu Feb 21 17:38:15 2008 +0100 +@@ -135,7 +135,8 @@ typedef struct imap_argument { + #define MULTIAPPEND 13 + #define SNLIST 14 + #define MULTIAPPENDREDO 15 +- ++#define QLIST 16 ++#define QSTRING 17 + + /* Append data */ + +@@ -205,12 +206,15 @@ void imap_gc_body (BODY *body); + void imap_gc_body (BODY *body); + void imap_capability (MAILSTREAM *stream); + long imap_acl_work (MAILSTREAM *stream,char *command,IMAPARG *args[]); ++long imap_annotation_work (MAILSTREAM *stream,char *command,IMAPARG *args[]); + + IMAPPARSEDREPLY *imap_send (MAILSTREAM *stream,char *cmd,IMAPARG *args[]); + IMAPPARSEDREPLY *imap_sout (MAILSTREAM *stream,char *tag,char *base,char **s); + long imap_soutr (MAILSTREAM *stream,char *string); + IMAPPARSEDREPLY *imap_send_astring (MAILSTREAM *stream,char *tag,char **s, + SIZEDTEXT *as,long wildok,char *limit); ++IMAPPARSEDREPLY *imap_send_qstring (MAILSTREAM *stream,char *tag,char **s, ++ SIZEDTEXT *as,char *limit); + IMAPPARSEDREPLY *imap_send_literal (MAILSTREAM *stream,char *tag,char **s, + STRING *st); + IMAPPARSEDREPLY *imap_send_spgm (MAILSTREAM *stream,char *tag,char *base, +@@ -2753,6 +2757,84 @@ long imap_getacl (MAILSTREAM *stream,cha + args[0] = &ambx; args[1] = NIL; + return imap_acl_work (stream,"GETACL",args); + } ++ ++/* IMAP set annotation ++ * Accepts: mail stream ++ * annotation struct ++ * Returns: T on success, NIL on failure ++ */ ++ ++long imap_setannotation (MAILSTREAM *stream,ANNOTATION *annotation) ++{ ++ IMAPARG *args[4],ambx,apth,aval; ++ long ret; ++ ++ ambx.type = ASTRING; ++ ambx.text = (void *) annotation->mbox; ++ args[0] = &ambx; ++ ++ apth.type = QSTRING; ++ apth.text = (void *) annotation->entry; ++ args[1] = &apth; ++ ++ STRINGLIST *st,*l; ++ ANNOTATION_VALUES *v; ++ ++ l = st = mail_newstringlist(); ++ v = annotation->values; ++ while(v){ ++ l->text.size = strlen((char *) (l->text.data = (unsigned char*)cpystr(v->attr))); ++ l->next = mail_newstringlist(); ++ l = l->next; ++ l->text.size = strlen((char *) (l->text.data = (unsigned char*)cpystr(v->value))); ++ if(v->next){ ++ l->next = mail_newstringlist(); ++ l = l->next; ++ } ++ v = v->next; ++ } ++ ++ aval.type = QLIST; ++ aval.text = (void *)st; ++ args[2] = &aval; ++ args[3] = NIL; ++ ++ ret = imap_annotation_work(stream, "SETANNOTATION",args); ++ mail_free_stringlist(&st); ++ return ret; ++} ++ ++ ++ ++/* IMAP get annotation ++ * Accepts: mail stream ++ * mailbox name ++ * annotation entry list ++ * annotation attribute list ++ * Returns: T on success with data returned via callback, NIL on failure ++ */ ++ ++long imap_getannotation (MAILSTREAM *stream,char *mailbox,STRINGLIST *entries, STRINGLIST *attributes) ++{ ++ IMAPARG *args[4],ambx,apth,aattr; ++ long ret; ++ ambx.type = ASTRING; ++ ambx.text = (void*) mailbox; ++ args[0] = &ambx; ++ ++ ++ apth.type = QLIST; ++ apth.text = (void*) entries; ++ args[1] = &apth; ++ ++ aattr.type = QLIST; ++ aattr.text = (void*) attributes; ++ args[2] = &aattr; ++ ++ args[3] = NIL; ++ ret = imap_annotation_work(stream, "GETANNOTATION",args); ++ return ret; ++} + + /* IMAP list rights + * Accepts: mail stream +@@ -2805,6 +2887,16 @@ long imap_acl_work (MAILSTREAM *stream,c + else mm_log ("ACL not available on this IMAP server",ERROR); + return ret; + } ++ long imap_annotation_work(MAILSTREAM *stream, char *command,IMAPARG *args[]) ++{ ++ long ret = NIL; ++ IMAPPARSEDREPLY *reply; ++ if (imap_OK (stream,reply = imap_send (stream,command,args))) ++ ret = LONGT; ++ else mm_log (reply->text,ERROR); ++ return ret; ++} ++ + + /* IMAP set quota + * Accepts: mail stream +@@ -2937,6 +3029,11 @@ IMAPPARSEDREPLY *imap_send (MAILSTREAM * + if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) + return reply; + break; ++ case QSTRING: /* atom or string, must be literal? */ ++ st.size = strlen ((char *) (st.data = (unsigned char *) arg->text)); ++ if (reply = imap_send_qstring (stream,tag,&s,&st,CMDBASE+MAXCOMMAND)) ++ return reply; ++ break; + case LITERAL: /* literal, as a stringstruct */ + if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; + break; +@@ -2947,6 +3044,18 @@ IMAPPARSEDREPLY *imap_send (MAILSTREAM * + do { /* for each list item */ + *s++ = c; /* write prefix character */ + if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, ++ CMDBASE+MAXCOMMAND)) return reply; ++ c = ' '; /* prefix character for subsequent strings */ ++ } ++ while (list = list->next); ++ *s++ = ')'; /* close list */ ++ break; ++ case QLIST: /* list of strings */ ++ list = (STRINGLIST *) arg->text; ++ c = '('; /* open paren */ ++ do { /* for each list item */ ++ *s++ = c; /* write prefix character */ ++ if (reply = imap_send_qstring (stream,tag,&s,&list->text, + CMDBASE+MAXCOMMAND)) return reply; + c = ' '; /* prefix character for subsequent strings */ + } +@@ -3119,6 +3228,32 @@ IMAPPARSEDREPLY *imap_send (MAILSTREAM * + reply = imap_sout (stream,tag,CMDBASE,&s); + mail_unlock (stream); /* unlock stream */ + return reply; ++} ++ ++/* IMAP send quoted-string ++ * Accepts: MAIL stream ++ * reply tag ++ * pointer to current position pointer of output bigbuf ++ * atom-string to output ++ * maximum to write as atom or qstring ++ * Returns: error reply or NIL if success ++ */ ++ ++IMAPPARSEDREPLY *imap_send_qstring (MAILSTREAM *stream,char *tag,char **s, ++ SIZEDTEXT *as,char *limit) ++{ ++ unsigned long j; ++ char c; ++ STRING st; ++ /* in case needed */ ++ INIT (&st,mail_string,(void *) as->data,as->size); ++ /* always write literal if no space */ ++ if ((*s + as->size) > limit) return imap_send_literal (stream,tag,s,&st); ++ ++ *(*s)++ = '"'; /* write open quote */ ++ for (j = 0; j < as->size; j++) *(*s)++ = as->data[j]; ++ *(*s)++ = '"'; /* write close quote */ ++ return NIL; + } + + /* IMAP send atom-string +@@ -4049,6 +4184,50 @@ void imap_parse_unsolicited (MAILSTREAM + } + } + ++ else if (!strcmp (reply->key,"ANNOTATION") && (s = reply->text)){ ++ char * mbox; ++ /* response looks like ANNOTATION "mailbox" "entry" ("attr" "value" ["attr" "value"]) ["entry" ("attr "value" ["attr" "value"] )]*/ ++ getannotation_t an = (getannotation_t) mail_parameters (NIL,GET_ANNOTATION,NIL); ++ ++ mbox = imap_parse_astring (stream, &s, reply,NIL); ++ ++ while(*s){ ++ ANNOTATION * al = mail_newannotation(); ++ al->mbox = cpystr(mbox); ++ t = imap_parse_astring (stream, &s, reply,NIL); ++ al->entry = t; ++ STRINGLIST *strlist; ++ if (s){while (*s == ' ')s++;} ++ ++ strlist = imap_parse_stringlist(stream, &s,reply); ++ ++ ANNOTATION_VALUES *vlIter, *vlBegin; ++ vlIter = vlBegin = NIL; ++ if (strlist) { ++ while(strlist){ ++ if(vlIter){ ++ vlIter->next = mail_newannotationvalue(); ++ vlIter = vlIter->next; ++ }else{ ++ vlIter = mail_newannotationvalue(); ++ vlBegin = vlIter; ++ } ++ if ( strlist->text.size ) ++ vlIter->attr = cpystr (strlist->text.data); ++ strlist = strlist->next; ++ if(!strlist) continue; ++ if ( strlist->text.size ) ++ vlIter->value = cpystr (strlist->text.data); ++ strlist = strlist->next; ++ } ++ } ++ al->values = vlBegin; ++ if (an) ++ (*an) (stream,al); ++ mail_free_annotation(&al); ++ } ++ fs_give ((void **)&mbox); ++ } + else if (!strcmp (reply->key,"ACL") && (s = reply->text) && + (t = imap_parse_astring (stream,&s,reply,NIL))) { + getacl_t ar = (getacl_t) mail_parameters (NIL,GET_ACL,NIL); +diff -r 217555555c77 src/c-client/imap4r1.h +--- a/src/c-client/imap4r1.h Thu Feb 21 17:37:37 2008 +0100 ++++ b/src/c-client/imap4r1.h Thu Feb 21 17:38:15 2008 +0100 +@@ -279,3 +279,5 @@ long imap_setquota (MAILSTREAM *stream,c + long imap_setquota (MAILSTREAM *stream,char *qroot,STRINGLIST *limits); + long imap_getquota (MAILSTREAM *stream,char *qroot); + long imap_getquotaroot (MAILSTREAM *stream,char *mailbox); ++long imap_getannotation (MAILSTREAM *stream,char *mailbox,STRINGLIST *entries,STRINGLIST *attributes); ++long imap_setannotation (MAILSTREAM *stream,ANNOTATION *annotation); +diff -r 217555555c77 src/c-client/mail.c +--- a/src/c-client/mail.c Thu Feb 21 17:37:37 2008 +0100 ++++ b/src/c-client/mail.c Thu Feb 21 17:38:15 2008 +0100 +@@ -69,6 +69,7 @@ static newsrcquery_t mailnewsrcquery = N + static newsrcquery_t mailnewsrcquery = NIL; + /* ACL results callback */ + static getacl_t mailaclresults = NIL; ++static getannotation_t mailannotationresults = NIL; + /* list rights results callback */ + static listrights_t maillistrightsresults = NIL; + /* my rights results callback */ +@@ -598,6 +599,11 @@ void *mail_parameters (MAILSTREAM *strea + ret = (void *) (debugsensitive ? VOIDT : NIL); + break; + ++ case SET_ANNOTATION: ++ mailannotationresults = (getannotation_t) value; ++ case GET_ANNOTATION: ++ ret = (void *) mailannotationresults; ++ break; + case SET_ACL: + mailaclresults = (getacl_t) value; + case GET_ACL: +@@ -5701,7 +5707,15 @@ ACLLIST *mail_newacllist (void) + return (ACLLIST *) memset (fs_get (sizeof (ACLLIST)),0,sizeof (ACLLIST)); + } + +- ++ANNOTATION *mail_newannotation (void) ++{ ++ return (ANNOTATION *) memset (fs_get (sizeof (ANNOTATION)),0,sizeof(ANNOTATION)); ++} ++ ++ANNOTATION_VALUES *mail_newannotationvalue (void) ++{ ++ return (ANNOTATION_VALUES *) memset (fs_get (sizeof (ANNOTATION_VALUES)),0,sizeof(ANNOTATION_VALUES)); ++} + /* Mail instantiate new quotalist + * Returns: new quotalist + */ +@@ -6024,6 +6038,25 @@ void mail_free_acllist (ACLLIST **al) + } + } + ++static void mail_free_annotation_values(ANNOTATION_VALUES **val) ++{ ++ if (*val) { ++ if ((*val)->attr) fs_give ((void**) &(*val)->attr); ++ if ((*val)->value) fs_give ((void**) &(*val)->value); ++ mail_free_annotation_values (&(*val)->next); ++ fs_give ((void **) val); ++ } ++} ++void mail_free_annotation(ANNOTATION **al) ++{ ++ if (*al) { ++ if((*al)->mbox) fs_give ((void**) &(*al)->mbox); ++ if((*al)->entry) fs_give ((void**) &(*al)->entry); ++ if((*al)->values) ++ mail_free_annotation_values(&(*al)->values); ++ fs_give ((void **) al); ++ } ++} + + /* Mail garbage collect quotalist + * Accepts: pointer to quotalist pointer +diff -r 217555555c77 src/c-client/mail.h +--- a/src/c-client/mail.h Thu Feb 21 17:37:37 2008 +0100 ++++ b/src/c-client/mail.h Thu Feb 21 17:38:15 2008 +0100 +@@ -351,6 +351,8 @@ + #define SET_SCANCONTENTS (long) 573 + #define GET_MHALLOWINBOX (long) 574 + #define SET_MHALLOWINBOX (long) 575 ++#define GET_ANNOTATION (long) 576 ++#define SET_ANNOTATION (long) 577 + + /* Driver flags */ + +@@ -1043,6 +1045,24 @@ ACLLIST { + char *identifier; /* authentication identifier */ + char *rights; /* access rights */ + ACLLIST *next; ++}; ++ ++/* ANNOTATION Response */ ++ ++#define ANNOTATION_VALUES struct annotation_value_list ++ ++ANNOTATION_VALUES { ++ char *attr; ++ char *value; ++ ANNOTATION_VALUES *next; ++}; ++ ++#define ANNOTATION struct annotation ++ ++ANNOTATION { ++ char *mbox; ++ char *entry; ++ ANNOTATION_VALUES * values; + }; + + /* Quota resource list */ +@@ -1353,6 +1373,7 @@ typedef void (*logouthook_t) (void *data + typedef void (*logouthook_t) (void *data); + typedef char *(*sslclientcert_t) (void); + typedef char *(*sslclientkey_t) (void); ++typedef void (*getannotation_t) (MAILSTREAM *stream,ANNOTATION* annot); + + /* Globals */ + +@@ -1771,7 +1792,10 @@ SORTPGM *mail_newsortpgm (void); + SORTPGM *mail_newsortpgm (void); + THREADNODE *mail_newthreadnode (SORTCACHE *sc); + ACLLIST *mail_newacllist (void); ++ANNOTATION* mail_newannotation(void); ++ANNOTATION_VALUES* mail_newannotationvalue(void); + QUOTALIST *mail_newquotalist (void); ++void mail_free_annotation(ANNOTATION **a); + void mail_free_body (BODY **body); + void mail_free_body_data (BODY *body); + void mail_free_body_parameter (PARAMETER **parameter); +diff -r 217555555c77 src/mtest/mtest.c +--- a/src/mtest/mtest.c Thu Feb 21 17:37:37 2008 +0100 ++++ b/src/mtest/mtest.c Thu Feb 21 17:38:15 2008 +0100 +@@ -145,6 +145,8 @@ int main () + #endif + return NIL; + } ++ ++void mm_annotation (MAILSTREAM *stream, ANNOTATION *a); + + /* MM command loop + * Accepts: MAIL stream +@@ -195,6 +197,28 @@ void mm (MAILSTREAM *stream,long debug) + mail_setflag (stream,arg,"\\DELETED"); + else puts ("?Bad message number"); + break; ++ case 'A': ++ { ++ char parms[MAILTMPLEN]; ++ prompt("Annotation: ",parms); ++ if (parms) { ++ mail_parameters(stream,SET_ANNOTATION,mm_annotation); ++ STRINGLIST *entries = mail_newstringlist(); ++ STRINGLIST *cur = entries; ++ cur->text.size = strlen((char *) (cur->text.data = (unsigned char*)cpystr (parms))); ++ cur->next = NIL; ++ ++ STRINGLIST *attributes = mail_newstringlist(); ++ cur = attributes; ++ cur->text.size = strlen((char *) (cur->text.data = (unsigned char*)cpystr ("*"))); ++ cur->next = NIL; ++ ++ imap_getannotation(stream,"INBOX",entries,attributes); ++ mail_free_stringlist(&entries); ++ mail_free_stringlist(&attributes); ++ } ++ } ++ break; + case 'E': /* Expunge command */ + mail_expunge (stream); + last = 0; +@@ -347,7 +371,7 @@ void mm (MAILSTREAM *stream,long debug) + case '?': /* ? command */ + puts ("Body, Check, Delete, Expunge, Find, GC, Headers, Literal,"); + puts (" MailboxStatus, New Mailbox, Overview, Ping, Quit, Send, Type,"); +- puts ("Undelete, Xit, +, -, or <RETURN> for next message"); ++ puts ("Undelete, Xit,Annotation, +, -, or <RETURN> for next message"); + break; + default: /* bogus command */ + printf ("?Unrecognized command: %s\n",cmd); +@@ -600,6 +624,18 @@ void prompt (char *msg,char *txt) + + /* Interfaces to C-client */ + ++void mm_annotation (MAILSTREAM *stream, ANNOTATION *a) ++{ ++ if(a){ ++ fprintf(stderr,"mailbox: %s\nentry: %s\n",a->mbox,a->entry); ++ ANNOTATION_VALUES * v = a->values; ++ while(v){ ++ fprintf(stderr,"attr: %s, value: %s\n",v->attr,v->value); ++ v = v->next; ++ } ++ } ++} ++ + + void mm_searched (MAILSTREAM *stream,unsigned long number) + { diff --git a/net-libs/c-client/files/c-client-2007f-ldflags.patch b/net-libs/c-client/files/c-client-2007f-ldflags.patch new file mode 100644 index 000000000000..5c143b79bc7e --- /dev/null +++ b/net-libs/c-client/files/c-client-2007f-ldflags.patch @@ -0,0 +1,33 @@ +--- src/osdep/unix/Makefile~ 2011-06-07 16:04:29.000000000 +0300 ++++ src/osdep/unix/Makefile 2011-06-07 15:55:31.000000000 +0300 +@@ -954,23 +954,24 @@ + + # Once-only environment setup + +-once: onceenv ckp$(PASSWDTYPE) ssl$(SSLTYPE) osdep.c ++once: ssl$(SSLTYPE) onceenv ckp$(PASSWDTYPE) osdep.c + + onceenv: + @echo Once-only environment setup... + echo $(CC) > CCTYPE +- echo $(BASECFLAGS) '$(EXTRACFLAGS)' -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS +- echo -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \ ++ echo `$(CAT) CFLAGS` $(BASECFLAGS) '$(EXTRACFLAGS)' -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS ++ echo `$(CAT) OSCFLAGS` -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \ + -DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \ + -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" \ + -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \ + -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" \ + -DLOCKPGM1=\"$(LOCKPGM1)\" -DLOCKPGM2=\"$(LOCKPGM2)\" \ + -DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS +- echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS ++ echo $(EXTRALIBS) `$(CAT) LDFLAGS` > LIBS ++ echo $(EXTRALDFLAGS) `$(CAT) LDFLAGS` -lcrypt $(BASELDFLAGS) > LDFLAGS + echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE +- echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \ +- -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \ ++ echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` $(EXTRALDFLAGS) `$(CAT) OSFLAGS` -shared \ ++ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" `$(CAT) LIBS` $(BASELDFLAGS) \ + >> ARCHIVE + echo $(OS) > OSTYPE + ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy diff --git a/net-libs/c-client/files/c-client-2007f-topal.patch b/net-libs/c-client/files/c-client-2007f-topal.patch new file mode 100644 index 000000000000..2b5db04cace5 --- /dev/null +++ b/net-libs/c-client/files/c-client-2007f-topal.patch @@ -0,0 +1,27 @@ +diff -cr alpine-2.00.orig/imap/src/c-client/mail.h alpine-2.00.new/imap/src/c-client/mail.h +*** src/c-client/mail.h 2008-08-08 18:34:22.000000000 +0100 +--- src/c-client/mail.h 2009-05-01 13:40:37.000000000 +0100 +*************** +*** 775,780 **** +--- 775,781 ---- + unsigned long bytes; /* size of text in octets */ + } size; + char *md5; /* MD5 checksum */ ++ unsigned short topal_hack; /* set to 1 if topal has wrecked the sending */ + void *sparep; /* spare pointer reserved for main program */ + }; + +diff -cr alpine-2.00.orig/imap/src/c-client/mail.c alpine-2.00.new/imap/src/c-client/mail.c +*** src/c-client/mail.c 2008-06-04 19:39:54.000000000 +0100 +--- src/c-client/mail.c 2009-04-30 22:34:13.000000000 +0100 +*************** +*** 2712,2717 **** +--- 2712,2719 ---- + BODY *b = NIL; + PART *pt; + unsigned long i; ++ /* Topal hack 2 */ ++ mail_fetchstructure (stream,msgno,&b); + /* make sure have a body */ + if (section && *section && mail_fetchstructure (stream,msgno,&b) && b) + while (*section) { /* find desired section */ diff --git a/net-libs/c-client/metadata.xml b/net-libs/c-client/metadata.xml new file mode 100644 index 000000000000..20b32568dbd9 --- /dev/null +++ b/net-libs/c-client/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-mail</herd> + <use> + <flag name="doc">Install RFCs related to IMAP</flag> + <flag name='topal'>Enable support for <pkg>net-mail/topal</pkg> + for use with <pkg>mail-client/alpine</pkg></flag> + <flag name='chappa'>Enable Eduardo Chappa's patches for use with + <pkg>mail-client/alpine</pkg> (mainly adds support for maildir)</flag> + </use> +</pkgmetadata> diff --git a/net-libs/canlock/Manifest b/net-libs/canlock/Manifest new file mode 100644 index 000000000000..1f94012b01fe --- /dev/null +++ b/net-libs/canlock/Manifest @@ -0,0 +1,2 @@ +DIST canlock_2b-6.diff.gz 7946 SHA256 fd08c6d5fc8f2934248a86affec404d5c0b3d360dc9b810389ec7a2c193ff502 SHA512 fa89d638d87e5cb18bd6c270200cd5d962c5a263855e5cbbd8e944dea633a61d6f0c271da04d56096ef23e0a9f252e3bdead496e9aa9afe31d3f8e7ef679020f WHIRLPOOL 0277808d414c4b06f23b697373ec6207ffc22404550a493b2be6ce43b2b13a1042e461b16f6efbd540a7a5bccc20286224d6afe2b4c572b979198f8a3e5381d5 +DIST canlock_2b.orig.tar.gz 14099 SHA256 90234e47727dfd9782b79e05b6efa879d2792ad8feb46788b583032a71af0da7 SHA512 3ceeac6a17fc3bb3330626d22145371ed5f53ad2a33c6a60b639dab0dbc8ff85623839a9d1e1d4cb78580a9060b0ec9fd3489d1374feecf587b2ec5c7963f58e WHIRLPOOL 7f48d62dd29e89f4745cdb09c5f6d4600dc402b8cc327bbfa2b2d8b62ab940426a1e44fac93a64fdf471aecedbd14610c3fa83e0f36fc936edf140305f281b28 diff --git a/net-libs/canlock/canlock-2b.ebuild b/net-libs/canlock/canlock-2b.ebuild new file mode 100644 index 000000000000..cad4f1f61dae --- /dev/null +++ b/net-libs/canlock/canlock-2b.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils multilib toolchain-funcs + +MY_P="${P/-/_}" +DESCRIPTION="A library for creating and verifying Usenet cancel locks" +HOMEPAGE="http://packages.qa.debian.org/c/canlock.html" +SRC_URI="mirror://debian/pool/main/c/${PN}/${MY_P}.orig.tar.gz + mirror://debian/pool/main/c/${PN}/${MY_P}-6.diff.gz" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +S=${WORKDIR}/${P/-/} + +src_prepare() { + epatch "${WORKDIR}"/${MY_P}-6.diff \ + "${FILESDIR}"/${P}-make.patch +} + +src_compile() { + local targets="shared" + if use static-libs || use test ; then + targets+=" static" + fi + + emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" ${targets} +} + +src_install() { + use static-libs && dolib.a src/libcanlock.a + dolib.so src/libcanlock.so.2.0.0 + dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so.2 + dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so + insinto /usr/include + doins include/canlock.h + dodoc CHANGES README doc/HOWTO +} diff --git a/net-libs/canlock/files/canlock-2b-make.patch b/net-libs/canlock/files/canlock-2b-make.patch new file mode 100644 index 000000000000..492b88bee143 --- /dev/null +++ b/net-libs/canlock/files/canlock-2b-make.patch @@ -0,0 +1,110 @@ +--- canlock2b/Makefile ++++ canlock2b/Makefile +@@ -1,33 +1,35 @@ +-CFLAGS = -Iinclude +-LDFLAGS = -L. -lcanlock ++CFLAGS += -Iinclude ++LIBS = -L. -lcanlock + CC = gcc +-STATIC_LIB = libcanlock.a + +-all: hmactest canlocktest $(STATIC_LIB) ++all: shared static + +-sha1test: t/sha1test.c $(STATIC_LIB) +- $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS) ++sha1test: t/sha1test.c shared ++ $(CC) $(CFLAGS) t/$@.c -o $@ $(LIBS) $(LDFLAGS) + +-hmactest: t/hmactest.c $(STATIC_LIB) +- $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS) ++hmactest: t/hmactest.c shared ++ $(CC) $(CFLAGS) t/$@.c -o $@ $(LIBS) $(LDFLAGS) + +-canlocktest: t/canlocktest.c $(STATIC_LIB) +- $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS) ++canlocktest: t/canlocktest.c shared ++ $(CC) $(CFLAGS) t/$@.c -o $@ $(LIBS) $(LDFLAGS) + +-$(STATIC_LIB): +- cd src && make +- ln -s src/libcanlock.a libcanlock.a ++static: ++ cd src && $(MAKE) libcanlock.a ++ ln -sf src/libcanlock.a libcanlock.a ++ ++shared: ++ cd src && $(MAKE) libcanlock.so.2.0.0 + + clean: + rm -f src/*.o t/*.o t/*.out *.gmon gmon.* +- cd src && make clean ++ cd src && $(MAKE) clean + rm -f *.a canlocktest hmactest sha1test *.exe *.h lib-stamp + + install: all +- cd src && make install DESTDIR=$(DESTDIR) ++ cd src && $(MAKE) install DESTDIR=$(DESTDIR) + install --mode=644 include/canlock.h $(DESTDIR)/usr/include +- +-test: all ++ ++test: hmactest canlocktest + @echo "hmactest: " + @./hmactest > t/hmactest.out || echo hmm + @diff t/hmactest.shouldbe t/hmactest.out && echo " Pass." || (echo " **FAIL**" ; exit 1) +--- canlock2b/src/Makefile ++++ canlock2b/src/Makefile +@@ -1,9 +1,11 @@ +-LIBOBJS = base64.lo canlock.lo hmac_sha1.lo sha1.lo + CC = gcc ++AR = ar ++RANLIB = ranlib + LIBTOOL = libtool +-CFLAGS = -I../include ++CFLAGS += -I../include + SOURCES = base64.c canlock.c hmac_sha1.c sha1.c +-OBJS = base64.o canlock.o hmac_sha1.o sha1.o ++OBJS := $(SOURCES:.c=.o) ++LIBOBJS := $(SOURCES:.c=.lo) + SHARELINKFLAGS = -Wl,-soname -Wl,libcanlock.so.2 + SHAREDFLAGS = -fPIC -DPIC + LIBS = libcanlock.a libcanlock.so.2.0.0 +@@ -11,22 +13,25 @@ + + all: $(LIBS) + +-libcanlock.a: +- $(CC) $(CFLAGS) -c $(SOURCES) +- ar cru libcanlock.a $(OBJS) +- ranlib libcanlock.a +- rm $(OBJS) +- +-libcanlock.so.2.0.0: +- $(CC) $(CFLAGS) $(SHAREDFLAGS) -c $(SOURCES) +- $(CC) -shared $(OBJS) $(SHARELINKFLAGS) -o libcanlock.so.2.0.0 ++%.o: %.c ++ $(CC) $(CFLAGS) -c -o $@ $< ++ ++%.lo: %.c ++ $(CC) $(CFLAGS) $(SHAREDFLAGS) -c -o $@ $< ++ ++libcanlock.a: $(OBJS) ++ $(AR) cru libcanlock.a $(OBJS) ++ $(RANLIB) libcanlock.a ++ ++libcanlock.so.2.0.0: $(LIBOBJS) ++ $(CC) -shared $(LIBOBJS) $(LDFLAGS) $(SHARELINKFLAGS) -o libcanlock.so.2.0.0 + + install: all + $(INSTALL) libcanlock.so.2.0.0 $(DESTDIR)/usr/lib + cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so.2 + cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so + $(INSTALL) libcanlock.a $(DESTDIR)/usr/lib/libcanlock.a +- ranlib $(DESTDIR)/usr/lib/libcanlock.a +- ++ $(RANLIB) $(DESTDIR)/usr/lib/libcanlock.a ++ + clean: +- rm -f $(OBJS) $(LIBS) ++ rm -f $(OBJS) $(LIBOBJS) $(LIBS) diff --git a/net-libs/canlock/metadata.xml b/net-libs/canlock/metadata.xml new file mode 100644 index 000000000000..4d0ebe73a55f --- /dev/null +++ b/net-libs/canlock/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-news</herd> +</pkgmetadata> diff --git a/net-libs/ccrtp/Manifest b/net-libs/ccrtp/Manifest new file mode 100644 index 000000000000..d7aa8236dc35 --- /dev/null +++ b/net-libs/ccrtp/Manifest @@ -0,0 +1,2 @@ +DIST ccrtp-2.0.9.tar.gz 751786 SHA256 2032176f7d64db05d7bc557a045d0b24ec76f264448a30a7de9f12c5a31530df SHA512 2e63a049ead5bd8a2f3c65d3badb6d6b2a20e185698f62ea9f7e559e8d0aac6151e7a314317d63ea33282c891d75af32571da3471254600abea462097c47dfe3 WHIRLPOOL ad9211c8dcd62ef77a45a59dc906c8af1a4f6b2ca9883cb66afecd97f73cb88c2b019616ea6fad8a496402cd46675ce35084149f8f84777d064ca50683be0d19 +DIST ccrtp-2.1.2.tar.gz 764869 SHA256 f035ca0e1b5d37b78e358f07a25b05c5cdaf2c85c4b31cf29f6be17f288a349e SHA512 a835f57a0eef7cba11c55c93ce2f11ebd8ab4099e7c723043c51e4872f3da87af946fc50fac18b47ea5d72b2a1227b377810e9134c1f3a8982d4ce5944d043e9 WHIRLPOOL cef4015f9537c2b4383bc84bf2ecbc70b3abacb5f21230ea1c613a55a73728450051c1086e549e7b83f24c84c9b3de19fa4acd324bdd55040d9e798c21be7922 diff --git a/net-libs/ccrtp/ccrtp-2.0.9.ebuild b/net-libs/ccrtp/ccrtp-2.0.9.ebuild new file mode 100644 index 000000000000..15b40ed6ced3 --- /dev/null +++ b/net-libs/ccrtp/ccrtp-2.0.9.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib + +DESCRIPTION="GNU ccRTP is an implementation of RTP, the real-time transport protocol from the IETF" +HOMEPAGE="http://www.gnu.org/software/ccrtp/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +KEYWORDS="amd64 ppc ppc64 x86" +LICENSE="GPL-2" +IUSE="doc" +SLOT="0/2" + +RDEPEND=">=dev-cpp/commoncpp2-1.3.0:0= + dev-libs/libgcrypt:0= + >=dev-libs/ucommon-5.0.0:=" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_configure() { + econf --disable-static +} + +src_install() { + default + prune_libtool_files + use doc && dohtml -r doc/html/* +} + +pkg_postinst() { + if [[ -e "${ROOT}"/usr/$(get_libdir)/libccrtp1-1.4.so.0 ]] ; then + elog "Please run: revdep-rebuild --library libccrtp1-1.4.so.0" + fi + if [[ -e "${ROOT}"/usr/$(get_libdir)/libccrtp1-1.5.so.0 ]] ; then + elog "Please run: revdep-rebuild --library libccrtp1-1.5.so.0" + fi + if [[ -e "${ROOT}"/usr/$(get_libdir)/libccrtp1-1.6.so.0 ]] ; then + elog "Please run: revdep-rebuild --library libccrtp1-1.6.so.0" + fi +} diff --git a/net-libs/ccrtp/ccrtp-2.1.2.ebuild b/net-libs/ccrtp/ccrtp-2.1.2.ebuild new file mode 100644 index 000000000000..df7a7ee551bb --- /dev/null +++ b/net-libs/ccrtp/ccrtp-2.1.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib + +DESCRIPTION="GNU ccRTP is an implementation of RTP, the real-time transport protocol from the IETF" +HOMEPAGE="http://www.gnu.org/software/ccrtp/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +LICENSE="GPL-2" +IUSE="doc" +SLOT="0/2" + +RDEPEND=">=dev-cpp/commoncpp2-1.3.0:0= + dev-libs/libgcrypt:0= + >=dev-libs/ucommon-5.0.0:=" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_configure() { + econf --disable-static +} + +src_install() { + default + prune_libtool_files + use doc && dohtml -r doc/html/* +} + +pkg_postinst() { + if [[ -e "${ROOT}"/usr/$(get_libdir)/libccrtp1-1.4.so.0 ]] ; then + elog "Please run: revdep-rebuild --library libccrtp1-1.4.so.0" + fi + if [[ -e "${ROOT}"/usr/$(get_libdir)/libccrtp1-1.5.so.0 ]] ; then + elog "Please run: revdep-rebuild --library libccrtp1-1.5.so.0" + fi + if [[ -e "${ROOT}"/usr/$(get_libdir)/libccrtp1-1.6.so.0 ]] ; then + elog "Please run: revdep-rebuild --library libccrtp1-1.6.so.0" + fi +} diff --git a/net-libs/ccrtp/metadata.xml b/net-libs/ccrtp/metadata.xml new file mode 100644 index 000000000000..4538a68724a6 --- /dev/null +++ b/net-libs/ccrtp/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>maintainer-needed@gentoo.org</email></maintainer> +</pkgmetadata> diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest new file mode 100644 index 000000000000..1d46d1ece01e --- /dev/null +++ b/net-libs/courier-authlib/Manifest @@ -0,0 +1,3 @@ +DIST courier-authlib-0.65.0.tar.bz2 2303751 SHA256 db3e34ee2b075897864c44aaae924388c74b32ed40b83f0fcf8626a060c1ea47 SHA512 edc4a51bc0d748e7d6cdbf9e9c67c43eeedd9e3846d91a8eea24613f6fb5125d2e713ef7fd63cbbe1905205f2a406b4ff3f31d7c3fb7028939123dbc728d8e38 WHIRLPOOL d86ad93ebe701f0742e83988ad14bb750c98ada952fbc6422641840b0074b8f285ca41c0f6458b79c36196a435c99c76d767e8cf3fdf3110107b25112712887a +DIST courier-authlib-0.66.1.tar.bz2 2299965 SHA256 8f89166f57c8e59f445fe0135da92b95f1c4417896d01eda5e2e94d8ff878fe8 SHA512 d2b0c9c92c0af8c596fd9b14337034e2859c4540b5b20523e8dfbec78f54021104b6864c7f3488f518ebfff488b38bdbc26690763175940d12019f5cbc482b33 WHIRLPOOL 345f458ca19d8892784fa56a72658f50faa65ea7094f590b0fe9880f085e32a2609a25fad76f083bbe0bd278b39db582e3defef3212089b3a3a54d58149ef593 +DIST courier-authlib-0.66.3.tar.bz2 2085083 SHA256 033402a86e334999eaf17c1b722d6f6cc1961fccb5d2ee88342dfd6c5d534961 SHA512 09d97c8efc79d84437feefca13f5161c0e113864b9c971a4a980b359c9c14699f8d07eac6b52ac0a7d30f9770656e672f64c3445ecf4dcad88f51a427310d530 WHIRLPOOL 4763eaadf6da2cd014f68638a8e2b6be6f00bb64234251c65b0de3af821e2484232919a52bac515fccefa1967ff0c4b3d79516d769ce73c0f2ac57802b6818f9 diff --git a/net-libs/courier-authlib/courier-authlib-0.65.0-r3.ebuild b/net-libs/courier-authlib/courier-authlib-0.65.0-r3.ebuild new file mode 100644 index 000000000000..000da67c8558 --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.65.0-r3.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools eutils flag-o-matic multilib user + +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="http://www.courier-mta.org/" +LICENSE="GPL-3" +SLOT="0" +IUSE="berkdb crypt debug gdbm ldap mysql pam postgres sqlite static-libs vpopmail" + +RESTRICT="userpriv + !berkdb? ( test )" + +DEPEND="net-mail/mailbase + gdbm? ( sys-libs/gdbm ) + !gdbm? ( sys-libs/db ) + >=dev-libs/openssl-0.9.6 + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( virtual/mysql ) + pam? ( virtual/pam ) + postgres? ( >=dev-db/postgresql-8.4 ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +# vpopmail support removed upstream +REQUIRED_USE="( !vpopmail )" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_prepare() { + # move local macro to m4 and run eautoreconf + mkdir "${S}/m4" || die + sed -n -e '/# AC_PROG_SYSCONFTOOL/,+33 p' "${S}"/aclocal.m4 > \ + m4/sysconftool.m4 || die + sed -i -e '/^SUBDIRS/i ACLOCAL_AMFLAGS = -I m4' "${S}"/Makefile.am || die + epatch "${FILESDIR}/${P}-sqlite.patch" + eautoreconf +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --libexecdir=/usr/$(get_libdir)/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + dodoc AUTHORS ChangeLog* INSTALL NEWS README + dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html + if use mysql ; then + dodoc README.authmysql.myownquery + dohtml README.authmysql.html + fi + if use postgres ; then + dohtml README.authpostgres.html README.authmysql.html + fi + if use ldap ; then + dodoc README.ldap + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + dohtml README.authsqlite.html README.authmysql.html + fi + newinitd "${FILESDIR}/${PN}-r1" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi + + # Suggest cleaning out the following old files + list="$(find /etc/courier -maxdepth 1 -type f | grep \"^/etc/courier/auth\")" + if [[ ! -z "${list}" ]] ; then + ewarn "Courier authentication files are now in /etc/courier/authlib/" + elog "The following files are no longer needed and can likely be removed:" + elog " rm $(echo \"${list}\")" + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.66.1.ebuild b/net-libs/courier-authlib/courier-authlib-0.66.1.ebuild new file mode 100644 index 000000000000..e5a258536de9 --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.66.1.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils flag-o-matic multilib user + +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="http://www.courier-mta.org/" +LICENSE="GPL-3" +SLOT="0" +IUSE="berkdb crypt debug gdbm ldap mysql pam postgres sqlite static-libs vpopmail" + +RESTRICT="userpriv + !berkdb? ( test )" + +DEPEND="net-mail/mailbase + gdbm? ( sys-libs/gdbm ) + !gdbm? ( sys-libs/db ) + >=dev-libs/openssl-0.9.6 + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( virtual/mysql ) + pam? ( virtual/pam ) + postgres? ( >=dev-db/postgresql-8.4 ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +# vpopmail support removed upstream +REQUIRED_USE="( !vpopmail )" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_prepare() { + # move local macro to m4 and run eautoreconf + mkdir "${S}/m4" || die + sed -n -e '/# AC_PROG_SYSCONFTOOL/,+33 p' "${S}"/aclocal.m4 > \ + m4/sysconftool.m4 || die + sed -i -e '/^SUBDIRS/i ACLOCAL_AMFLAGS = -I m4' "${S}"/Makefile.am || die + eautoreconf +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --libexecdir=/usr/$(get_libdir)/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + dodoc AUTHORS ChangeLog* INSTALL NEWS README + dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html + if use mysql ; then + dodoc README.authmysql.myownquery + dohtml README.authmysql.html + fi + if use postgres ; then + dohtml README.authpostgres.html README.authmysql.html + fi + if use ldap ; then + dodoc README.ldap + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + dohtml README.authsqlite.html README.authmysql.html + fi + newinitd "${FILESDIR}/${PN}-r1" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi + + # Suggest cleaning out the following old files + list="$(find /etc/courier -maxdepth 1 -type f | grep \"^/etc/courier/auth\")" + if [[ ! -z "${list}" ]] ; then + ewarn "Courier authentication files are now in /etc/courier/authlib/" + elog "The following files are no longer needed and can likely be removed:" + elog " rm $(echo \"${list}\")" + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild b/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild new file mode 100644 index 000000000000..eaccece8c04a --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic multilib user + +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="http://www.courier-mta.org/" +LICENSE="GPL-3" +SLOT="0" +IUSE="berkdb crypt debug gdbm ldap mysql pam postgres sqlite static-libs vpopmail" + +RESTRICT="userpriv + !berkdb? ( test )" + +DEPEND="net-mail/mailbase + =net-libs/courier-unicode-1.3 + gdbm? ( sys-libs/gdbm ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:= + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( virtual/mysql ) + pam? ( virtual/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --libexecdir=/usr/$(get_libdir)/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + dodoc AUTHORS ChangeLog* INSTALL NEWS README + dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html + if use mysql ; then + dodoc README.authmysql.myownquery + dohtml README.authmysql.html + fi + if use postgres ; then + dohtml README.authpostgres.html README.authmysql.html + fi + if use ldap ; then + dodoc README.ldap + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + dohtml README.authsqlite.html README.authmysql.html + fi + newinitd "${FILESDIR}/${PN}-r1" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-authlib/files/courier-authlib-0.65.0-sqlite.patch b/net-libs/courier-authlib/files/courier-authlib-0.65.0-sqlite.patch new file mode 100644 index 000000000000..d6c6480a38b2 --- /dev/null +++ b/net-libs/courier-authlib/files/courier-authlib-0.65.0-sqlite.patch @@ -0,0 +1,35 @@ +--- configure.in 2012-10-17 08:50:00.387963153 +0000 ++++ configure.in 2012-10-17 08:50:21.121706830 +0000 +@@ -635,7 +635,7 @@ + LIBS="$saveLIBS" + fi + +-if test "$doauthmysql" != "yes" ++if test "$doauthsqlite" != "yes" + then + SQLITE_LIBS="" + SQLITE_CFLAGS="" +--- authsqlite.h 2012-10-03 19:54:10.000000000 +0300 ++++ authsqlite.h 2013-03-01 12:03:16.834315060 +0200 +@@ -6,7 +6,9 @@ + #include <string.h> + #include <sys/types.h> + #include <sqlite3.h> ++/* + #include <errmsg.h> ++*/ + + struct authsqliteuserinfo { + char *username; +--- authsqlitelib.c 2012-10-04 05:48:21.000000000 +0300 ++++ authsqlitelib.c 2013-03-01 12:03:00.801437111 +0200 +@@ -10,7 +10,9 @@ + #include <ctype.h> + #include <sys/types.h> + #include <sys/stat.h> ++/* + #include <mysql.h> ++*/ + #include <time.h> + + #include "authsqlite.h" diff --git a/net-libs/courier-authlib/files/courier-authlib-r1 b/net-libs/courier-authlib/files/courier-authlib-r1 new file mode 100644 index 000000000000..5edf5c60cefb --- /dev/null +++ b/net-libs/courier-authlib/files/courier-authlib-r1 @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net + provide authdaemond +} + +checkconfig() { + if [ ! -e /etc/courier/authlib/authdaemonrc ] ; then + eerror "You need an /etc/courier/authlib/authdaemonrc file to run authdaemon" + return 1 + fi +} + +setauth() { + . /etc/courier/authlib/authdaemonrc + AUTHLIB="/usr/lib/courier/courier-authlib" + AUTHDAEMOND="authdaemond" + pidfile="/var/run/authdaemon.pid" + logger="/usr/sbin/courierlogger" + export DEBUG_LOGIN DEFAULTOPTIONS LOGGEROPTS +} + +start() { + checkconfig || return 1 + setauth + ebegin "Starting courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --start --pidfile "${pidfile}" --exec \ + /usr/bin/env ${logger} -- ${LOGGEROPTS} -pid="${pidfile}" -start "${AUTHLIB}/${AUTHDAEMOND}" + eend $? +} + +stop() { + setauth + ebegin "Stopping courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --stop --pidfile "${pidfile}" + eend $? +} diff --git a/net-libs/courier-authlib/metadata.xml b/net-libs/courier-authlib/metadata.xml new file mode 100644 index 000000000000..8f8d517f9cf1 --- /dev/null +++ b/net-libs/courier-authlib/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-mail</herd> + <use> + <flag name="vpopmail">Enable vpopmail support</flag> + </use> + <upstream> + <remote-id type="sourceforge">courier</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/courier-unicode/Manifest b/net-libs/courier-unicode/Manifest new file mode 100644 index 000000000000..a125db7af6e9 --- /dev/null +++ b/net-libs/courier-unicode/Manifest @@ -0,0 +1,2 @@ +DIST courier-unicode-1.1.tar.bz2 372684 SHA256 a10e61d20f3bf25bebdec495dea54258948f333a29f29a7f155a31f9bfb3f56c SHA512 df373663ad0fbeafbd89b7265a9623ff74926a396689e5309c3fbea327686e802659a87a8b308c3d0d9c1819c7299834c80694b2230dfe901d555d3febfa2d8b WHIRLPOOL 721f39db88add73b8d0a0048e8e58f308521d956eec8aaa507fd1f2794dc9239607d2b61386323f809ca648394e9446709e6cef2658c685a846668774f377111 +DIST courier-unicode-1.3.tar.bz2 394011 SHA256 8067d2fec621af1a463b690b325c700920f98e1271052354abfd4c8ca82f7e68 SHA512 4384874f0f2298ff5034d7541ffd3155a3aa6a6b2d73fb108b5072a0dd0bb8236389b83161625bed7f923f724fa11bbed42af28234d5c6e5b6d370c407e8f677 WHIRLPOOL fde3ed95aa10a47c4f96f64b281955f1a38283268625015da250cd4b1388348a638d3cb035e29c47734b5f484099d96f33b91f7a612979c41cbd801d8bead222 diff --git a/net-libs/courier-unicode/courier-unicode-1.1.ebuild b/net-libs/courier-unicode/courier-unicode-1.1.ebuild new file mode 100644 index 000000000000..dd240c2be6e0 --- /dev/null +++ b/net-libs/courier-unicode/courier-unicode-1.1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="Unicode library used by the courier mail server" +HOMEPAGE="http://www.courier-mta.org/" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm hppa ppc ppc64 ~x86" +IUSE="" + +src_install() { + default + prune_libtool_files + dodoc AUTHORS ChangeLog README +} diff --git a/net-libs/courier-unicode/courier-unicode-1.3.ebuild b/net-libs/courier-unicode/courier-unicode-1.3.ebuild new file mode 100644 index 000000000000..7d40f2082b9e --- /dev/null +++ b/net-libs/courier-unicode/courier-unicode-1.3.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="Unicode library used by the courier mail server" +HOMEPAGE="http://www.courier-mta.org/" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86" +IUSE="" + +src_install() { + default + prune_libtool_files + dodoc AUTHORS ChangeLog README +} diff --git a/net-libs/courier-unicode/metadata.xml b/net-libs/courier-unicode/metadata.xml new file mode 100644 index 000000000000..eed2873227af --- /dev/null +++ b/net-libs/courier-unicode/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-mail</herd> + <maintainer> + <email>hanno@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">courier</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/cppzmq/Manifest b/net-libs/cppzmq/Manifest new file mode 100644 index 000000000000..6a3eb5f81386 --- /dev/null +++ b/net-libs/cppzmq/Manifest @@ -0,0 +1,2 @@ +DIST cppzmq-0_pre130717.tar.xz 3736 SHA256 94efc2ad76ef779f9ede32d2bbffc82b37ca3004b62a67aed031b3dc4a9e7472 SHA512 3dbff2d3c1cc9f40b58477d2654cd1af4b639c71ca332dd6bcf33cce3d420a2c9e56312c0824bbccc6cea721b5688f8ec255180aace898dca57eb98a8d40c142 WHIRLPOOL 7d99aba2696fdf09c0e2b0af076ef5ca56d89e0dddb3c82f44433a0881fe354169d037a73ee415c0f7ab1e11895fc0d9043726255ffbb67224839b49afea5456 +DIST cppzmq-0_pre150606.tar.xz 4032 SHA256 fb1cb2ebfdfe955f68edca6b09a7f974e63bd35941bd01423907bc4f81febbaf SHA512 d5ab584989f0eec7ce227de4534820f6e00582b8f45ebab5472c8244823a14a89e74005edb8ae933037a1df9684cc21641cd271a147f39577331b96474927efe WHIRLPOOL 15fdc4cedd9dc6e1434cb286d00a4524e73e5e0fae0e11220bd7b1dce0898ef1afedaa5b5cc416add613d5237362661f6d309f9acb629c8026f25e814001fb11 diff --git a/net-libs/cppzmq/cppzmq-0_pre130717-r1.ebuild b/net-libs/cppzmq/cppzmq-0_pre130717-r1.ebuild new file mode 100644 index 000000000000..b44c84e6828f --- /dev/null +++ b/net-libs/cppzmq/cppzmq-0_pre130717-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="High-level CPP Binding for ZeroMQ" +HOMEPAGE="https://github.com/zeromq/cppzmq" +SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=">=net-libs/zeromq-3" +DEPEND="" + +src_install() { + doheader zmq.hpp + dodoc README +} + +src_test() { + $(tc-getCC) -c ./zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o || die "This version of cppzmq is not compatible with the installed version of net-libs/zeromq" + rm -f ./test.o +} diff --git a/net-libs/cppzmq/cppzmq-0_pre150606.ebuild b/net-libs/cppzmq/cppzmq-0_pre150606.ebuild new file mode 100644 index 000000000000..b44c84e6828f --- /dev/null +++ b/net-libs/cppzmq/cppzmq-0_pre150606.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="High-level CPP Binding for ZeroMQ" +HOMEPAGE="https://github.com/zeromq/cppzmq" +SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=">=net-libs/zeromq-3" +DEPEND="" + +src_install() { + doheader zmq.hpp + dodoc README +} + +src_test() { + $(tc-getCC) -c ./zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o || die "This version of cppzmq is not compatible with the installed version of net-libs/zeromq" + rm -f ./test.o +} diff --git a/net-libs/cppzmq/metadata.xml b/net-libs/cppzmq/metadata.xml new file mode 100644 index 000000000000..bbae0452e962 --- /dev/null +++ b/net-libs/cppzmq/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">zeromq/cppzmq</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/cvm/Manifest b/net-libs/cvm/Manifest new file mode 100644 index 000000000000..dc6718bc3709 --- /dev/null +++ b/net-libs/cvm/Manifest @@ -0,0 +1,3 @@ +DIST cvm-0.76.tar.gz 91957 SHA256 0b0bbc21ad7bbe6acab66a85369502c2907e522fa2fd5c33c6f584ad1ccc000e +DIST cvm-0.82.tar.gz 93615 SHA256 5c209c2ac911ba5473b1ef1b78407afa6821eca26de476291a7362fee616d0fe +DIST cvm-0.96.tar.gz 127999 SHA256 b85121b2f4b160b27c95705bd83a871675ed4b65b8bcb259a0877f37606224e9 diff --git a/net-libs/cvm/cvm-0.76.ebuild b/net-libs/cvm/cvm-0.76.ebuild new file mode 100644 index 000000000000..d5b1d71ba269 --- /dev/null +++ b/net-libs/cvm/cvm-0.76.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit toolchain-funcs eutils + +DESCRIPTION="Credential Validation Modules by Bruce Guenter" +HOMEPAGE="http://untroubled.org/cvm/" +SRC_URI="${HOMEPAGE}archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="ppc sparc x86" +IUSE="mysql postgres test" + +RDEPEND="dev-db/cdb" +DEPEND="${RDEPEND} + >=dev-libs/bglibs-1.041 + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql[server] ) + test? ( app-editors/vim )" +# some of the testcases use ex/vi/xxd + +src_unpack() { + unpack ${A} + # disable this test, as it breaks under Portage + # and there is no easy fix + sed -i.orig -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' "${S}"/tests.sh || die "sed failed" +} + +src_compile() { + echo "/usr/include/bglibs" > conf-bgincs + echo "/usr/lib/bglibs" > conf-bglibs + echo "${D}/usr/include" > conf-include + echo "${D}/usr/lib" > conf-lib + echo "${D}/usr/bin" > conf-bin + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld + emake || die + + if use mysql; then + make mysql || die "making mysql support failed" + fi + + if use postgres; then + make pgsql || die "making postgres support failed" + fi +} + +src_install() { + einstall || die + + dodoc ANNOUNCEMENT NEWS NEWS.sql NEWS.vmailmgr README README.vchkpw + dodoc README.vmailmgr TODO VERSION + dohtml *.html +} + +src_test() { + sh tests.sh || die "Testing Failed" +} diff --git a/net-libs/cvm/cvm-0.82.ebuild b/net-libs/cvm/cvm-0.82.ebuild new file mode 100644 index 000000000000..b3b32e2747ef --- /dev/null +++ b/net-libs/cvm/cvm-0.82.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit toolchain-funcs eutils + +DESCRIPTION="Credential Validation Modules by Bruce Guenter" +HOMEPAGE="http://untroubled.org/cvm/" +SRC_URI="${HOMEPAGE}archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~sparc ~x86 ~amd64" +IUSE="mysql postgres test vpopmail" + +RDEPEND="dev-db/cdb" +DEPEND="${RDEPEND} + >=dev-libs/bglibs-1.041 + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql[server] ) + vpopmail? ( net-mail/vpopmail ) + test? ( app-editors/vim )" +# some of the testcases use ex/vi/xxd + +src_unpack() { + unpack ${A} + # disable this test, as it breaks under Portage + # and there is no easy fix + sed -i.orig \ + -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' \ + "${S}"/tests.sh || die "sed failed" + # Fix the vpopmail build + sed -i.orig \ + -e '/.\/ltload cvm-vchkpw/s,-lmysqlclient,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/vpopmail/lib,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/var/vpopmail/lib,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/lib/mysql,,g' \ + -e '/.\/ltload cvm-vchkpw/s,\.la,.la `cat /var/vpopmail/etc/lib_deps`,g' \ + "${S}"/Makefile \ + || die "Failed to fix vpopmail linking parts of Makefile" + sed -i.orig \ + -e '/.\/compile cvm-vchkpw/s,$, `cat /var/vpopmail/etc/inc_deps`,g' \ + "${S}"/Makefile \ + || die "Failed to fix vpopmail compiling parts of Makefile" +} + +src_compile() { + echo "/usr/include/bglibs" > conf-bgincs + echo "/usr/lib/bglibs" > conf-bglibs + echo "/usr/include" > conf-include + echo "/usr/lib" > conf-lib + echo "/usr/bin" > conf-bin + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld + emake || die + + if use mysql; then + einfo "Building MySQL support" + emake mysql || die "making mysql support failed" + fi + + if use postgres; then + einfo "Building Postgresql support" + emake pgsql || die "making postgres support failed" + fi + + if use vpopmail; then + einfo "Building vpopmail support" + emake cvm-vchkpw || die "making vpopmail support failed" + fi +} + +src_install() { + # Upstreams installer is incredibly broken + dolib .libs/*.a .libs/*.so.* + for i in a so ; do + dosym libcvm-v2client.${i} /usr/$(get_libdir)/libcvm-client.${i} + done + + for i in {bench,test}client chain checkpassword pwfile qmail unix \ + vmailmgr{,-local,-udp} v1{benchclient,checkpassword,testclient} \ + ; do + dobin .libs/cvm-${i} + done + use mysql && dobin .libs/cvm-mysql{,-local,-udp} + use postgres && dobin .libs/cvm-pgsql{,-local,-udp} + use vpopmail && dobin .libs/cvm-vchkpw + + insinto /usr/include/cvm + doins {credentials,errors,facts,module,protocol,sasl,v1client,v2client}.h + dosym v1client.h /usr/include/cvm/client.h + dosym cvm/sasl.h /usr/include/cvm-sasl.h + + dodoc ANNOUNCEMENT NEWS{,.sql,.vmailmgr} + dodoc README{,.vchkpw,.vmailmgr} + dodoc TODO VERSION ChangeLog* + dohtml *.html +} + +src_test() { + sh tests.sh || die "Testing Failed" +} diff --git a/net-libs/cvm/cvm-0.96.ebuild b/net-libs/cvm/cvm-0.96.ebuild new file mode 100644 index 000000000000..926b4d9e9e66 --- /dev/null +++ b/net-libs/cvm/cvm-0.96.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit toolchain-funcs eutils + +DESCRIPTION="Credential Validation Modules by Bruce Guenter" +HOMEPAGE="http://untroubled.org/cvm/" +SRC_URI="${HOMEPAGE}archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="mysql postgres test vpopmail" + +RDEPEND="dev-db/cdb" +DEPEND="${RDEPEND} + >=dev-libs/bglibs-1.041 + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql[server] ) + vpopmail? ( net-mail/vpopmail ) + test? ( app-editors/vim )" +# some of the testcases use ex/vi/xxd + +MAKEOPTS="${MAKEOPTS} -j1" #310843 + +src_unpack() { + unpack ${A} + # disable this test, as it breaks under Portage + # and there is no easy fix + sed -i.orig \ + -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' \ + "${S}"/tests.sh || die "sed failed" + # Fix the vpopmail build + sed -i.orig \ + -e '/.\/ltload cvm-vchkpw/s,-lmysqlclient,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/vpopmail/lib,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/var/vpopmail/lib,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/lib/mysql,,g' \ + -e '/.\/ltload cvm-vchkpw/s,\.la,.la `cat /var/vpopmail/etc/lib_deps`,g' \ + "${S}"/Makefile \ + || die "Failed to fix vpopmail linking parts of Makefile" + sed -i.orig \ + -e '/.\/compile cvm-vchkpw/s,$, `cat /var/vpopmail/etc/inc_deps`,g' \ + "${S}"/Makefile \ + || die "Failed to fix vpopmail compiling parts of Makefile" +} + +src_compile() { + echo "/usr/include/bglibs" > conf-bgincs + echo "/usr/lib/bglibs" > conf-bglibs + echo "/usr/include" > conf-include + echo "/usr/lib" > conf-lib + echo "/usr/bin" > conf-bin + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld + emake || die + + if use mysql; then + einfo "Building MySQL support" + emake mysql || die "making mysql support failed" + fi + + if use postgres; then + einfo "Building Postgresql support" + emake pgsql || die "making postgres support failed" + fi + + if use vpopmail; then + einfo "Building vpopmail support" + emake cvm-vchkpw || die "making vpopmail support failed" + fi +} + +src_install() { + # Upstreams installer is incredibly broken + dolib .libs/*.a .libs/*.so.* + for i in a so ; do + dosym libcvm-v2client.${i} /usr/$(get_libdir)/libcvm-client.${i} + done + + for i in {bench,test}client chain checkpassword pwfile qmail unix \ + vmailmgr{,-local,-udp} v1{benchclient,checkpassword,testclient} \ + ; do + dobin .libs/cvm-${i} + done + use mysql && dobin .libs/cvm-mysql{,-local,-udp} + use postgres && dobin .libs/cvm-pgsql{,-local,-udp} + use vpopmail && dobin .libs/cvm-vchkpw + + insinto /usr/include/cvm + doins {credentials,errors,facts,module,protocol,sasl,v1client,v2client}.h + dosym v1client.h /usr/include/cvm/client.h + dosym cvm/sasl.h /usr/include/cvm-sasl.h + + dodoc ANNOUNCEMENT NEWS{,.sql,.vmailmgr} + dodoc README{,.vchkpw,.vmailmgr} + dodoc TODO VERSION ChangeLog* + dohtml *.html +} + +src_test() { + sh tests.sh || die "Testing Failed" +} diff --git a/net-libs/cvm/metadata.xml b/net-libs/cvm/metadata.xml new file mode 100644 index 000000000000..c8ae1a99908d --- /dev/null +++ b/net-libs/cvm/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>robbat2@gentoo.org</email> + </maintainer> + <use> + <flag name="vpopmail">Enable vpopmail support</flag> + </use> +</pkgmetadata> diff --git a/net-libs/czmq/Manifest b/net-libs/czmq/Manifest new file mode 100644 index 000000000000..344b2925cd89 --- /dev/null +++ b/net-libs/czmq/Manifest @@ -0,0 +1,2 @@ +DIST czmq-2.2.0.tar.gz 592293 SHA256 eaf86f935da6ff9c5e273313d2c59ec90ca19b2339cc7e588a1fa0b4296829e7 SHA512 51825e8a62a53cb3ac5fcf95b217e7dceb1745d31e243679e3c6ad0c7cce26e5844119bd054312e3764f0299df7e26bf9373a68cb1e7afc675966aa616a90ab6 WHIRLPOOL 7f1044029a7648d18206410efba74a7613619630a02bab0425aa9faf27c43d73306820db702764686ecd22021ace09d21422f717ed1f631b8d4db95f51e8df0c +DIST czmq-3.0.2.tar.gz 818110 SHA256 8bca39ab69375fa4e981daf87b3feae85384d5b40cef6adbe9d5eb063357699a SHA512 ed2b97eb9b20ee8e491ba4c100920af0a54d146cb01c227fdef66939cdf4747c779d950df52e68782c68cfce1d4579b4870b005a8c58a32b477de2414b8b6453 WHIRLPOOL e384d670920cea02a5adabea51bfa7f98725ef0ba7e12d9417d26fc2f3e8dc35dc798a8b2f5a548a42f3d21d1395d304a45d00552cda2d51b1529e0bec6960f8 diff --git a/net-libs/czmq/czmq-2.2.0-r2.ebuild b/net-libs/czmq/czmq-2.2.0-r2.ebuild new file mode 100644 index 000000000000..052e84f1939f --- /dev/null +++ b/net-libs/czmq/czmq-2.2.0-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils + +DESCRIPTION=" High-level C Binding for ZeroMQ" +HOMEPAGE="http://czmq.zeromq.org" +SRC_URI="http://download.zeromq.org/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 arm hppa x86" +IUSE="doc static-libs" + +RDEPEND=" + dev-libs/libsodium:= + sys-apps/util-linux + >=net-libs/zeromq-2.1 + <net-libs/zeromq-4 +" +DEPEND="${RDEPEND} + doc? ( + app-text/asciidoc + app-text/xmlto + )" + +DOCS=( NEWS AUTHORS ) + +src_prepare() { + sed -i -e 's|-Werror||g' configure.ac || die + autotools-utils_src_prepare +} + +src_install() { + autotools-utils_src_install + mv "${ED}"/usr/bin/makecert{,-czmq} || die +} + +pkg_postinst() { + elog "Due to file collisions we moved the makecert tool to makecert-${PN}." +} diff --git a/net-libs/czmq/czmq-3.0.2.ebuild b/net-libs/czmq/czmq-3.0.2.ebuild new file mode 100644 index 000000000000..c69664d75bae --- /dev/null +++ b/net-libs/czmq/czmq-3.0.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils + +DESCRIPTION=" High-level C Binding for ZeroMQ" +HOMEPAGE="http://czmq.zeromq.org" +SRC_URI="http://download.zeromq.org/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~x86" +IUSE="doc static-libs test" + +RDEPEND=" + sys-apps/util-linux + net-libs/zeromq +" +DEPEND="${RDEPEND} + doc? ( + app-text/asciidoc + app-text/xmlto + )" + +DOCS=( NEWS AUTHORS ) + +# Network access +RESTRICT=test + +src_prepare() { + use test && AUTOTOOLS_IN_SOURCE_BUILD=1 + sed -i -e 's|-Werror||g' configure.ac || die + autotools-utils_src_prepare +} + +src_test() { + autotools-utils_src_test check-verbose VERBOSE=1 +} + +src_install() { + autotools-utils_src_install + mv "${ED}"/usr/bin/makecert{,-czmq} || die +} + +pkg_postinst() { + elog "Due to file collisions we moved the makecert tool to makecert-${PN}." +} diff --git a/net-libs/czmq/files/version.sh b/net-libs/czmq/files/version.sh new file mode 100644 index 000000000000..527ba285ebbb --- /dev/null +++ b/net-libs/czmq/files/version.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# +# This script extracts the version from the project header file +# +project=$1 +if [ ! -f include/$project.h ]; then + echo "version.sh: error: include/$project.h does not exist" 1>&2 + exit 1 +fi +MAJOR=`egrep '^#define .*_VERSION_MAJOR +[0-9]+$' include/$project.h` +MINOR=`egrep '^#define .*_VERSION_MINOR +[0-9]+$' include/$project.h` +PATCH=`egrep '^#define .*_VERSION_PATCH +[0-9]+$' include/$project.h` +if [ -z "$MAJOR" -o -z "$MINOR" -o -z "$PATCH" ]; then + echo "version.sh: error: could not extract version from include/$project.h" 1>&2 + exit 1 +fi +MAJOR=`echo $MAJOR | awk '{ print $3 }'` +MINOR=`echo $MINOR | awk '{ print $3 }'` +PATCH=`echo $PATCH | awk '{ print $3 }'` +echo $MAJOR.$MINOR.$PATCH | tr -d '\n' + diff --git a/net-libs/czmq/metadata.xml b/net-libs/czmq/metadata.xml new file mode 100644 index 000000000000..7bc6ee8ea837 --- /dev/null +++ b/net-libs/czmq/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jlec@gentoo.org</email> + <name>Justin Lecher</name> + </maintainer> +</pkgmetadata> diff --git a/net-libs/daq/Manifest b/net-libs/daq/Manifest new file mode 100644 index 000000000000..03e713150297 --- /dev/null +++ b/net-libs/daq/Manifest @@ -0,0 +1,3 @@ +DIST daq-0.6.2.tar.gz 451581 SHA256 0159865b5dc127ed2faf8d6732d781939f27e38b7c7deabcd369a22ea9e42f26 SHA512 da19034f210d9c202f5e3ba7ddf60645498ed8bdaf28410811922ebb1338b56c55c8e992e46e1c7b9b89de6148b471129826a02ab2a45c7232bc4091a4e53125 WHIRLPOOL 01e7b47e27b71d11648936911bb9bd2657b387fd15eb41f5939b23b3e2da9753d66165eddd0831ba4e827ab67ee2f61ee963cb98788ad4a7ca9d03f921031ff6 +DIST daq-2.0.0.tar.gz 480030 SHA256 fbafc8e362a96fcadc69731f91203ef90845507aae0a4774d5c2825e9d2c1c38 SHA512 aa79e06473592c0ee57a3a2da60f01f35e6268a126fcb3a992ee7c6da48a079cf359db7439be3778997e774c340630d768712c9efea10c570feb4961f9a00b3c WHIRLPOOL c1eb41df6718a7ece0da95599f78f080a32337a3522181ad31db46a0285d584dfd46e2fffce5e73ef3ba0409bd033b59ac0b272df1d7ee104f6160edc69bc8be +DIST daq-2.0.2.tar.gz 474447 SHA256 d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8 SHA512 b2a47e174155f21cb1c6f1e1c431ea7cca6aa9f7371228e77def3c526a67fd42d0e26e4c94263195e041b203cdf0c2aaef14f9035afb23dde0bd5df3bf422cbd WHIRLPOOL 3902ccda294c5967c509971abbbfb787f46792cd6bc286097e1d8b88c5d0f25c29019c918d41cabb8d52e4fcb1d99ae60e6eea3319aea2ee46aa8aa9b117e738 diff --git a/net-libs/daq/daq-0.6.2-r1.ebuild b/net-libs/daq/daq-0.6.2-r1.ebuild new file mode 100644 index 000000000000..b405df12296c --- /dev/null +++ b/net-libs/daq/daq-0.6.2-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils multilib + +DESCRIPTION="Data Acquisition library, for packet I/O" +HOMEPAGE="http://www.snort.org/" +SRC_URI="http://www.snort.org/downloads/1339 -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs" + +DEPEND="pcap? ( >=net-libs/libpcap-1.0.0 ) + dump? ( >=net-libs/libpcap-1.0.0 ) + nfq? ( dev-libs/libdnet + >=net-firewall/iptables-1.4.10 + net-libs/libnetfilter_queue ) + ipq? ( dev-libs/libdnet + >=net-firewall/iptables-1.4.10 + net-libs/libnetfilter_queue )" + +RDEPEND="${DEPEND}" + +src_configure() { + econf \ + $(use_enable ipv6) \ + $(use_enable pcap pcap-module) \ + $(use_enable afpacket afpacket-module) \ + $(use_enable dump dump-module) \ + $(use_enable nfq nfq-module) \ + $(use_enable ipq ipq-module) \ + $(use_enable static-libs static) \ + --disable-ipfw-module \ + --disable-bundled-modules +} + +src_install() { + emake DESTDIR="${D}" install + dodoc ChangeLog README + + # Remove unneeded .la files + rm \ + "${D}"usr/$(get_libdir)/daq/*.la \ + "${D}"usr/$(get_libdir)/libdaq*.la \ + "${D}"usr/$(get_libdir)/libsfbpf.la \ + || die + + # If not using static-libs don't install the static libraries + # This has been bugged upstream + if ! use static-libs; then + for z in libdaq_static libdaq_static_modules; do + rm "${D}"usr/$(get_libdir)/${z}.a + done + fi +} + +pkg_postinst() { + einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct" + einfo "calls to PCAP functions with an abstraction layer that facilitates" + einfo "operation on a variety of hardware and software interfaces without" + einfo "requiring changes to application such as Snort." + einfo + einfo "Please see the README file for DAQ for information about specific" + einfo "DAQ modules." +} diff --git a/net-libs/daq/daq-0.6.2.ebuild b/net-libs/daq/daq-0.6.2.ebuild new file mode 100644 index 000000000000..85723a6c97ef --- /dev/null +++ b/net-libs/daq/daq-0.6.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils multilib + +DESCRIPTION="Data Acquisition library, for packet I/O" +HOMEPAGE="http://www.snort.org/" +SRC_URI="http://www.snort.org/downloads/1339 -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~mips ~ppc x86" +IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs" + +DEPEND="pcap? ( >=net-libs/libpcap-1.0.0 ) + dump? ( >=net-libs/libpcap-1.0.0 ) + nfq? ( dev-libs/libdnet + >=net-firewall/iptables-1.4.10 + net-libs/libnetfilter_queue ) + ipq? ( dev-libs/libdnet + >=net-firewall/iptables-1.4.10 + net-libs/libnetfilter_queue )" + +RDEPEND="${DEPEND}" + +src_configure() { + econf \ + $(use_enable ipv6) \ + $(use_enable pcap pcap-module) \ + $(use_enable afpacket afpacket-module) \ + $(use_enable dump dump-module) \ + $(use_enable nfq nfq-module) \ + $(use_enable ipq ipq-module) \ + $(use_enable static-libs static) \ + --disable-ipfw-module \ + --disable-bundled-modules +} + +src_install() { + emake DESTDIR="${D}" install + dodoc ChangeLog README + + # Remove unneeded .la files + for x in pcap afpacket dump nfq ipq; do + rm "${D}"usr/lib64/daq/daq_${x}.la + done + for y in libdaq libdaq_static libdaq_static_modules libsfbpf; do + rm "${D}"usr/lib64/${y}.la + done + + # If not using static-libs don't install the static libraries + # This has been bugged upstream + if ! use static-libs; then + for z in libdaq_static libdaq_static_modules; do + rm "${D}"usr/lib64/${z}.a + done + fi +} + +pkg_postinst() { + einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct" + einfo "calls to PCAP functions with an abstraction layer that facilitates" + einfo "operation on a variety of hardware and software interfaces without" + einfo "requiring changes to application such as Snort." + einfo + einfo "Please see the README file for DAQ for information about specific" + einfo "DAQ modules." +} diff --git a/net-libs/daq/daq-2.0.0.ebuild b/net-libs/daq/daq-2.0.0.ebuild new file mode 100644 index 000000000000..27a503142d2b --- /dev/null +++ b/net-libs/daq/daq-2.0.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils multilib + +DESCRIPTION="Data Acquisition library, for packet I/O" +HOMEPAGE="http://www.snort.org/" +SRC_URI="http://www.snort.org/downloads/2311 -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs" + +DEPEND="pcap? ( >=net-libs/libpcap-1.0.0 ) + dump? ( >=net-libs/libpcap-1.0.0 ) + nfq? ( dev-libs/libdnet + >=net-firewall/iptables-1.4.10 + net-libs/libnetfilter_queue ) + ipq? ( dev-libs/libdnet + >=net-firewall/iptables-1.4.10 + net-libs/libnetfilter_queue )" + +RDEPEND="${DEPEND}" + +src_configure() { + econf \ + $(use_enable ipv6) \ + $(use_enable pcap pcap-module) \ + $(use_enable afpacket afpacket-module) \ + $(use_enable dump dump-module) \ + $(use_enable nfq nfq-module) \ + $(use_enable ipq ipq-module) \ + $(use_enable static-libs static) \ + --disable-ipfw-module \ + --disable-bundled-modules +} + +src_install() { + emake DESTDIR="${D}" install + dodoc ChangeLog README + + # Remove unneeded .la files + rm \ + "${D}"usr/$(get_libdir)/daq/*.la \ + "${D}"usr/$(get_libdir)/libdaq*.la \ + "${D}"usr/$(get_libdir)/libsfbpf.la \ + || die + + # If not using static-libs don't install the static libraries + # This has been bugged upstream + if ! use static-libs; then + for z in libdaq_static libdaq_static_modules; do + rm "${D}"usr/$(get_libdir)/${z}.a + done + fi +} + +pkg_postinst() { + einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct" + einfo "calls to PCAP functions with an abstraction layer that facilitates" + einfo "operation on a variety of hardware and software interfaces without" + einfo "requiring changes to application such as Snort." + einfo + einfo "Please see the README file for DAQ for information about specific" + einfo "DAQ modules." +} diff --git a/net-libs/daq/daq-2.0.2.ebuild b/net-libs/daq/daq-2.0.2.ebuild new file mode 100644 index 000000000000..6bd73f786a13 --- /dev/null +++ b/net-libs/daq/daq-2.0.2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib autotools + +DESCRIPTION="Data Acquisition library, for packet I/O" +HOMEPAGE="http://www.snort.org/" +SRC_URI="http://www.snort.org/downloads/2778 -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs" + +PCAP_DEPEND=">=net-libs/libpcap-1.0.0" +IPT_DEPEND=" + >=net-firewall/iptables-1.4.10 + dev-libs/libdnet + net-libs/libnetfilter_queue + +" +DEPEND=" + dump? ( ${PCAP_DEPEND} ) + ipq? ( ${IPT_DEPEND} ) + nfq? ( ${IPT_DEPEND} ) + pcap? ( ${PCAP_DEPEND} ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-parallel-grammar.patch #511892 + epatch "${FILESDIR}"/${P}-libpcap-check.patch + eautoreconf +} + +src_configure() { + # We forced libpcap to 1.x, so we can set this cache var so + # cross-compiling doesn't break on us. + daq_cv_libpcap_version_1x=yes \ + econf \ + $(use_enable ipv6) \ + $(use_enable pcap pcap-module) \ + $(use_enable afpacket afpacket-module) \ + $(use_enable dump dump-module) \ + $(use_enable nfq nfq-module) \ + $(use_enable ipq ipq-module) \ + $(use_enable static-libs static) \ + --disable-ipfw-module \ + --disable-bundled-modules +} + +DOCS=( ChangeLog README ) + +src_install() { + default + + prune_libtool_files + + # If not using static-libs don't install the static libraries + # This has been bugged upstream + if ! use static-libs; then + for z in libdaq_static libdaq_static_modules; do + rm "${D}"usr/$(get_libdir)/${z}.a + done + fi +} + +pkg_postinst() { + einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct" + einfo "calls to PCAP functions with an abstraction layer that facilitates" + einfo "operation on a variety of hardware and software interfaces without" + einfo "requiring changes to application such as Snort." + einfo + einfo "Please see the README file for DAQ for information about specific" + einfo "DAQ modules." +} diff --git a/net-libs/daq/files/daq-2.0.2-libpcap-check.patch b/net-libs/daq/files/daq-2.0.2-libpcap-check.patch new file mode 100644 index 000000000000..b68a8a4865f1 --- /dev/null +++ b/net-libs/daq/files/daq-2.0.2-libpcap-check.patch @@ -0,0 +1,36 @@ +fix the libpcap check so that people can set the cache version when cross-compiling + +patch by Shawn Wallace <sjwallace@google.com> + +--- a/m4/sf.m4 ++++ b/m4/sf.m4 +@@ -135,7 +135,7 @@ + echo + exit 1 + fi +- AC_MSG_CHECKING([for libpcap version >= $1]) ++ AC_CACHE_CHECK([for libpcap version >= $1], [daq_cv_libpcap_version_1x], [ + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[ +@@ -147,16 +147,13 @@ + if (strcmp(pcap_version, $1) < 0) + return 1; + ]])], +- [libpcap_version_1x="yes"], +- [libpcap_version_1x="no"]) +- if test "x$libpcap_version_1x" = "xno"; then +- AC_MSG_RESULT(no) ++ [daq_cv_libpcap_version_1x="yes"], ++ [daq_cv_libpcap_version_1x="no"])]) ++ if test "x$daq_cv_libpcap_version_1x" = "xno"; then + echo + echo " ERROR! Libpcap library version >= $1 not found." + echo " Get it from http://www.tcpdump.org" + echo + exit 1 +- else +- AC_MSG_RESULT(yes) + fi + ]) + diff --git a/net-libs/daq/files/daq-2.0.2-parallel-grammar.patch b/net-libs/daq/files/daq-2.0.2-parallel-grammar.patch new file mode 100644 index 000000000000..42e0f93791ac --- /dev/null +++ b/net-libs/daq/files/daq-2.0.2-parallel-grammar.patch @@ -0,0 +1,39 @@ +https://bugs.gentoo.org/511892 + +the scanner needs the generated header file, so make sure it's listed as a +dependency. else you see a failure: + $ cd sfbpf + $ make clean + $ make sf_scanner.lo + <missing tokdefs.h> +we'd like to list it as a dep of the object, but automake can use generated +file names, so it's not easy to list that. + +we can't have both of the outputs from grammar.y run the lex, otherwise we +hit random parallel build failures: + $ cd sfbpf + $ make clean + $ make tokdefs.h sf_grammar.c -j + <run yacc twice & fail> + +--- a/sfbpf/Makefile.am ++++ b/sfbpf/Makefile.am +@@ -43,14 +43,16 @@ + libsfbpf_la_LDFLAGS = -version-info 0:1:0 @XCCFLAGS@ + + # use of $@ and $< here is a GNU idiom that borks BSD +-${builddir}/sf_scanner.c: ${srcdir}/scanner.l ++${builddir}/sf_scanner.c: ${srcdir}/scanner.l ${builddir}/tokdefs.h + @rm -f ${builddir}/sf_scanner.c + ${srcdir}/runlex.sh $(V_LEX) -osf_scanner.c ${srcdir}/scanner.l + +-${builddir}/tokdefs.h ${builddir}/sf_grammar.c: ${srcdir}/grammar.y ++${builddir}/sf_grammar.c: ${srcdir}/grammar.y + @rm -f ${builddir}/sf_grammar.c ${builddir}/tokdefs.h + $(V_YACC) -d ${srcdir}/grammar.y + mv y.tab.c sf_grammar.c + mv y.tab.h tokdefs.h + ++${builddir}/tokdefs.h: ${builddir}/sf_grammar.c ; @true ++ + CLEANFILES = ${builddir}/sf_scanner.c ${builddir}/sf_grammar.c ${builddir}/tokdefs.h ${builddir}/sf_scanner.h diff --git a/net-libs/daq/metadata.xml b/net-libs/daq/metadata.xml new file mode 100644 index 000000000000..877529260333 --- /dev/null +++ b/net-libs/daq/metadata.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>jason.r.wallace@gmail.com</email>
+ <name>Jason Wallace</name>
+</maintainer>
+<maintainer>
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+</maintainer>
+<herd>netmon</herd>
+<longdescription>Data Acquisition library, for packet I/O with Snort 2.9 and later</longdescription>
+<use>
+ <flag name='afpacket'>
+ Build the AFPacket data acquisition module. Functions similar to the PCAP
+ module but with better performance. Snort can run unprivileged when using
+ this module. AFpacket supports both inline and passive modes.
+ </flag>
+ <flag name='dump'>Build the Dump data acquisition module. The dump DAQ
+ allows you to test the various inline mode features available in
+ 2.9 Snort like injection and normalization.
+ </flag>
+ <flag name='pcap'>Build the PCAP data acquisition module.</flag>
+ <flag name='nfq'>
+ Build the NFQ data acquisition module. NFQ is the new way to process iptables
+ packets for inline deployments. Snort can not run unprivileged when using this module.
+ </flag>
+ <flag name='ipq'>
+ Build the IPQ data acquisition module. IPQ is the old way to process iptables
+ packets for inline deployments. Snort can not run unprivileged when using this module.
+ </flag>
+</use>
+</pkgmetadata>
+
diff --git a/net-libs/dhcpcd-dbus/Manifest b/net-libs/dhcpcd-dbus/Manifest new file mode 100644 index 000000000000..beeeb387fd6d --- /dev/null +++ b/net-libs/dhcpcd-dbus/Manifest @@ -0,0 +1 @@ +DIST dhcpcd-dbus-0.6.1.tar.bz2 21807 SHA256 cdb03f21fa2d37be8804d3aba80012ad0735131e263f05bc44c36f5f13d70a06 SHA512 ec110654115afedead094c6766877e7b3f5facbfec6778590d8aa3ceef777b183754fc077a10cf5c16b39c03e42d5948abd7c21e1d8a2d7fa376ec229bd75e6a WHIRLPOOL 73f8f3367ab7d096f8aa8b358cd413f5afe56a06f8aac4b7e160933d5aa17d4900ce897aef972d18e2d1664b42245178a8ce184357f725e18223860e33a17589 diff --git a/net-libs/dhcpcd-dbus/dhcpcd-dbus-0.6.1.ebuild b/net-libs/dhcpcd-dbus/dhcpcd-dbus-0.6.1.ebuild new file mode 100644 index 000000000000..8af439479b80 --- /dev/null +++ b/net-libs/dhcpcd-dbus/dhcpcd-dbus-0.6.1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="DBus bindings for dhcpcd" +HOMEPAGE="http://roy.marples.name/projects/dhcpcd-dbus/" +SRC_URI="http://roy.marples.name/downloads/dhcpcd/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/dbus" +RDEPEND="${DEPEND} + >=net-misc/dhcpcd-5.0" + +src_configure() { + econf --localstatedir=/var +} diff --git a/net-libs/dhcpcd-dbus/metadata.xml b/net-libs/dhcpcd-dbus/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/net-libs/dhcpcd-dbus/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-libs/dleyna-connector-dbus/Manifest b/net-libs/dleyna-connector-dbus/Manifest new file mode 100644 index 000000000000..ac01742a3e8d --- /dev/null +++ b/net-libs/dleyna-connector-dbus/Manifest @@ -0,0 +1 @@ +DIST dleyna-connector-dbus-0.2.0.tar.gz 324464 SHA256 e791511206761282a658bb8253de076dcb1f8c8fbdc81219efe5ffe80cb2bea5 SHA512 0a1fc71fe299b295e86e47f2e356c89abc77f710e84bebe0f26fdb2ccbba5e693d5c8fc73133d46d902ba700f4369ade988f571ae7475f3325d5d5cce382f1d2 WHIRLPOOL 31c8cbbfd48c13bcabed8ac7fa966e7f3a96b1ddb76e104092ebcfc2ce54c5a15f5bc6ba944b2170219737d9cb8f643eea816a035a4d1628248c26ef142d627f diff --git a/net-libs/dleyna-connector-dbus/dleyna-connector-dbus-0.2.0.ebuild b/net-libs/dleyna-connector-dbus/dleyna-connector-dbus-0.2.0.ebuild new file mode 100644 index 000000000000..26a45db53e0f --- /dev/null +++ b/net-libs/dleyna-connector-dbus/dleyna-connector-dbus-0.2.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="utility library for higher level dLeyna libraries" +HOMEPAGE="https://01.org/dleyna/" +SRC_URI="https://01.org/sites/default/files/downloads/dleyna/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="1.0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.28:2 + >=net-libs/dleyna-core-0.2.1:1.0 + >=sys-apps/dbus-1 +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_install() { + default + prune_libtool_files +} diff --git a/net-libs/dleyna-connector-dbus/metadata.xml b/net-libs/dleyna-connector-dbus/metadata.xml new file mode 100644 index 000000000000..dad9001338dc --- /dev/null +++ b/net-libs/dleyna-connector-dbus/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> +</pkgmetadata> diff --git a/net-libs/dleyna-core/Manifest b/net-libs/dleyna-core/Manifest new file mode 100644 index 000000000000..b9eff33670c8 --- /dev/null +++ b/net-libs/dleyna-core/Manifest @@ -0,0 +1 @@ +DIST dleyna-core-0.5.0.tar.gz 337307 SHA256 de3027acf5718eae837b5f126bd49b8111189fb075e040d43b480d2b9b114aae SHA512 8611ae61482dcb0ca55513ed4ce7cae9372f88d710033e5abbaeb3c06533a7b2ac143757776bf9ced0dd3f0149ee9f2e42e90fac3ecbbeb42f38d13aeae7849f WHIRLPOOL 8f99dfb1d7c76c2f89e35dc835795f87ee044437184a45abe4250b4104c50954034245d570b40cf73a8311806678d14fe3ab723037fd7ccfcdae8ff35e317823 diff --git a/net-libs/dleyna-core/dleyna-core-0.5.0.ebuild b/net-libs/dleyna-core/dleyna-core-0.5.0.ebuild new file mode 100644 index 000000000000..351f5b4088f1 --- /dev/null +++ b/net-libs/dleyna-core/dleyna-core-0.5.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils + +DESCRIPTION="utility library for higher level dLeyna libraries" +HOMEPAGE="https://01.org/dleyna/" +SRC_URI="https://01.org/sites/default/files/downloads/dleyna/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="1.0/4" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.28:2 + >=net-libs/gupnp-0.20.5 +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_install() { + default + prune_libtool_files +} diff --git a/net-libs/dleyna-core/metadata.xml b/net-libs/dleyna-core/metadata.xml new file mode 100644 index 000000000000..dad9001338dc --- /dev/null +++ b/net-libs/dleyna-core/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> +</pkgmetadata> diff --git a/net-libs/dleyna-renderer/Manifest b/net-libs/dleyna-renderer/Manifest new file mode 100644 index 000000000000..49e83d654787 --- /dev/null +++ b/net-libs/dleyna-renderer/Manifest @@ -0,0 +1 @@ +DIST dleyna-renderer-0.5.0.tar.gz 378208 SHA256 a62e98991b268f3a23d1c3e2275cdffb114a440d0b364e45480c8028573a6bc3 SHA512 28802057d6e0b7da24fd8abb11748faeb78ea6ef15ce85d83907497ff252c86cec1072a919e64bab6df0a375e0092c1281569802515fb87d9dc083098f1d4820 WHIRLPOOL 7cb73ba0fcaf203d9ca0617728d1a266b02e48a58c72e613368ef5db1c5fd67034975cfec33246ebbbc9e1537f1b5a200e1c6635cb9154f1086efc2dc68577ae diff --git a/net-libs/dleyna-renderer/dleyna-renderer-0.5.0.ebuild b/net-libs/dleyna-renderer/dleyna-renderer-0.5.0.ebuild new file mode 100644 index 000000000000..8412252d3935 --- /dev/null +++ b/net-libs/dleyna-renderer/dleyna-renderer-0.5.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="library implementing services that allow clients to discover and manipulate DLNA renderers" +HOMEPAGE="https://01.org/dleyna/" +SRC_URI="https://01.org/sites/default/files/downloads/dleyna/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +COMMON_DEPEND=" + >=dev-libs/glib-2.28:2 + >=media-libs/gupnp-dlna-0.9.4:2.0 + >=net-libs/dleyna-core-0.5 + >=net-libs/gssdp-0.13.2 + >=net-libs/gupnp-0.20.5 + >=net-libs/gupnp-av-0.11.5 + >=net-libs/libsoup-2.28.2:2.4 +" +RDEPEND="${COMMON_DEPEND} + net-libs/dleyna-connector-dbus +" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig +" + +src_install() { + default + prune_libtool_files +} diff --git a/net-libs/dleyna-renderer/metadata.xml b/net-libs/dleyna-renderer/metadata.xml new file mode 100644 index 000000000000..dad9001338dc --- /dev/null +++ b/net-libs/dleyna-renderer/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> +</pkgmetadata> diff --git a/net-libs/dslib/Manifest b/net-libs/dslib/Manifest new file mode 100644 index 000000000000..c0e18c24199f --- /dev/null +++ b/net-libs/dslib/Manifest @@ -0,0 +1 @@ +DIST dslib-3.0.tar.gz 85076 SHA256 2c2439c35aa01166c0e259bc27ddccdccc5801779a78d13ebdd8c51b88ac8aa0 SHA512 070e93fc89a50b379400613ff8991c8cbf6b58e2997f11dba917f943f3539e5b248f6a357f75f905bdacead3fc1eb0afbcc0a2af1bdcf9ce0cfc8884132c7ed9 WHIRLPOOL 3940df68c3e0235b59e198e76eb80bdc828d6a6c160ec2c4156e86d3aac8124fc5b7f75e6f5a00c29a85ec80e9195c1dc049080efcd88329134b21909138f064 diff --git a/net-libs/dslib/dslib-3.0-r1.ebuild b/net-libs/dslib/dslib-3.0-r1.ebuild new file mode 100644 index 000000000000..d5559fcb74d3 --- /dev/null +++ b/net-libs/dslib/dslib-3.0-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Library to access Czech eGov system \"Datove schranky\"" +HOMEPAGE="http://labs.nic.cz/page/969/datovka/" +SRC_URI="http://www.nic.cz/public_media/datove_schranky/releases//src/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + >=dev-python/sudsds-1.0.1[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] +" diff --git a/net-libs/dslib/metadata.xml b/net-libs/dslib/metadata.xml new file mode 100644 index 000000000000..d0a904d48d95 --- /dev/null +++ b/net-libs/dslib/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<longdescription> + A library for accessing ISDS (Informační systém datových schránek + / Data Box Information System) SOAP services as defined in Czech ISDS Act + (300/2008 Coll.) and implied documents. +</longdescription> +<maintainer> + <email>scarabeus@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-libs/enet/Manifest b/net-libs/enet/Manifest new file mode 100644 index 000000000000..712f39627ca4 --- /dev/null +++ b/net-libs/enet/Manifest @@ -0,0 +1,3 @@ +DIST enet-1.2.2.tar.gz 413454 SHA256 6ce4e183ebfe980201b39174ad952993dbd8e8a7c325903fd520074ac7c2e20f SHA512 2c28ab4b650dd4165ee5913c1bc80dc47e43f2363a5fdd7f3aa9be8fb3afbc8aff7a6bce731f7dac45eb930fc6338cd811c07e8dedca5554a7dd32293685062d WHIRLPOOL f63da36d2cc5c1dc15f0f88234620536c300c64906c1e9f3bfddcd6cf70aa81bd37b653c34dd0d25baae4022addcd17b9b9f4863f7899e1630fc22f08c095fcd +DIST enet-1.3.12.tar.gz 550604 SHA256 a5851cbd0dde2ddb47bca487a61976825159cb508ece3b1e34605420ac7e1d0b SHA512 cd41f807dedd2a2d2e55ef9094d210a5dcc1df8f6371c7d974414eecec91b59d094dfb0ea5ac091875466a9c95141f340f82da2143698df8c95f787fffe04ee3 WHIRLPOOL fdf709830e272a0aa0ca35c28092cc65dd52e1d5870d185c863b90fb81e2bda99863886ef559098188cf0b5abffb02a4e01c7ad495995f6a9e14862719f1c5eb +DIST enet-1.3.7.tar.gz 522150 SHA256 15acbfd8e3aaf353320a60c785093cdf34f2ae207bcdd489503ca3f37659fe15 SHA512 b715347d94d8c5361033002e366f2cd7b8dd263faf7e84bd3d120de770f85025749fed4325c08f12d27875a112fb534a0464f8776bea6c3df2f048b57e5623f0 WHIRLPOOL 2ed39a5669ba74e11a08b70a5518a5314b43dad7629132f7e75f10445bea6491bdf27cd6ca34f9434a65fee236074169173687823f76bba3d66a2959a3478916 diff --git a/net-libs/enet/enet-1.2.2.ebuild b/net-libs/enet/enet-1.2.2.ebuild new file mode 100644 index 000000000000..be0618bb7245 --- /dev/null +++ b/net-libs/enet/enet-1.2.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 +inherit base + +DESCRIPTION="relatively thin, simple and robust network communication layer on top of UDP" +HOMEPAGE="http://enet.bespin.org/" +SRC_URI="http://enet.bespin.org/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86" +IUSE="static-libs" + +DOCS=( "ChangeLog" "README" ) + +src_configure() { + econf \ + --disable-dependency-tracking \ + $(use_enable static-libs static) +} diff --git a/net-libs/enet/enet-1.3.12.ebuild b/net-libs/enet/enet-1.3.12.ebuild new file mode 100644 index 000000000000..fc29b1c024ff --- /dev/null +++ b/net-libs/enet/enet-1.3.12.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit base + +DESCRIPTION="relatively thin, simple and robust network communication layer on top of UDP" +HOMEPAGE="http://enet.bespin.org/" +SRC_URI="http://enet.bespin.org/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="1.3/2.2" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="static-libs" + +RDEPEND="!${CATEGORY}/${PN}:0" + +DOCS=( "ChangeLog" "README" ) + +src_configure() { + econf \ + --disable-dependency-tracking \ + $(use_enable static-libs static) +} + +src_install() { + base_src_install + if ! use static-libs ; then + find "${D}" -type f -name '*.la' -exec rm {} + || die + fi +} diff --git a/net-libs/enet/enet-1.3.7.ebuild b/net-libs/enet/enet-1.3.7.ebuild new file mode 100644 index 000000000000..26de62ae8437 --- /dev/null +++ b/net-libs/enet/enet-1.3.7.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit base + +DESCRIPTION="relatively thin, simple and robust network communication layer on top of UDP" +HOMEPAGE="http://enet.bespin.org/" +SRC_URI="http://enet.bespin.org/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="1.3/2.2" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="static-libs" + +RDEPEND="!${CATEGORY}/${PN}:0" + +DOCS=( "ChangeLog" "README" ) + +src_configure() { + econf \ + --disable-dependency-tracking \ + $(use_enable static-libs static) +} + +src_install() { + base_src_install + if ! use static-libs ; then + find "${D}" -type f -name '*.la' -exec rm {} + || die + fi +} diff --git a/net-libs/enet/metadata.xml b/net-libs/enet/metadata.xml new file mode 100644 index 000000000000..5b80fb94c393 --- /dev/null +++ b/net-libs/enet/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +</pkgmetadata> diff --git a/net-libs/farstream/Manifest b/net-libs/farstream/Manifest new file mode 100644 index 000000000000..e0a26e7dd3f4 --- /dev/null +++ b/net-libs/farstream/Manifest @@ -0,0 +1,2 @@ +DIST farstream-0.1.2.tar.gz 1265972 SHA256 fa5a40597b47b59d124f7fd57f66704b030d576cdc0d90e107c7a592f05e73d9 SHA512 7d9ddde5d17205752a17298fb90cf855a828b2ae58746fbdc7e47749cee5e5eac4fd56f97f58251a5d253901cdd555e9cfade6016b6d92df99daefbe850e2910 WHIRLPOOL 273d20082152ff09adf8e64481b1b7c7ba7e6a24fc09addc219880fbee7f1e6b9845ce727c032fa3c364e8d2440736fd0324015426591b7e9766f11054828294 +DIST farstream-0.2.7.tar.gz 1309470 SHA256 dad0ed43cf94e71df558c23825abe57db59d1ee8d970ffaec5e2dbc2e7acbf7d SHA512 98c72eb9045bf7d0ee7d38fc1d7eea0b8ad942fc39843df075bf6f61bc0bed619aafb36ae08d55a6e61265bd47137ec75ffbfc2846c7cbcb4cbef187844426d8 WHIRLPOOL 515901c25aab04c5c7ae91a96285e36095844d730cf38e4f4f9aabfaeb7ed09a0a4ba5eddbfcb1b7c8ff52ed7f7f16cb7a7a2814d29953d8d5097bb06dd95abc diff --git a/net-libs/farstream/farstream-0.1.2-r1.ebuild b/net-libs/farstream/farstream-0.1.2-r1.ebuild new file mode 100644 index 000000000000..0c33e7eb15c8 --- /dev/null +++ b/net-libs/farstream/farstream-0.1.2-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +PYTHON_DEPEND="2" + +inherit eutils python + +DESCRIPTION="Audio/video conferencing framework specifically designed for instant messengers" +HOMEPAGE="http://www.freedesktop.org/wiki/Software/Farstream" +SRC_URI="http://freedesktop.org/software/farstream/releases/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +KEYWORDS="alpha ia64 sparc" +IUSE="+introspection python msn test upnp" + +SLOT="0.1" + +# Tests need shmsink from gst-plugins-bad, which isn't packaged +RESTRICT="test" + +COMMONDEPEND=" + >=media-libs/gstreamer-0.10.33:0.10 + >=media-libs/gst-plugins-base-0.10.33:0.10 + >=dev-libs/glib-2.30:2 + >=net-libs/libnice-0.1.0 + introspection? ( >=dev-libs/gobject-introspection-0.10.11 ) + python? ( + >=dev-python/pygobject-2.16:2 + >=dev-python/gst-python-0.10.10:0.10 ) + upnp? ( net-libs/gupnp-igd ) +" +RDEPEND="${COMMONDEPEND} + >=media-libs/gst-plugins-good-0.10.17:0.10 + >=media-libs/gst-plugins-bad-0.10.17:0.10 + || ( + >=media-plugins/gst-plugins-libnice-0.1.0:0.10 + <=net-libs/libnice-0.1.3[gstreamer] ) + msn? ( >=media-plugins/gst-plugins-mimic-0.10.17:0.10 ) + !net-libs/farsight2 +" +# This package is just a rename from farsight2 + +MAKEOPTS="${MAKEOPTS} -j1" # Parallel is completely broken on this slot, bug #434618 + +DEPEND="${COMMONDEPEND} + dev-util/gtk-doc-am + virtual/pkgconfig + test? ( + media-libs/gst-plugins-good:0.10 + media-plugins/gst-plugins-vorbis:0.10 )" + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + # Fix building with gobject-introspection-1.33.x, bug #425096 + epatch "${FILESDIR}/${P}-introspection-tag-order.patch" +} + +src_configure() { + plugins="fsrawconference,fsrtpconference,fsfunnel,fsrtcpfilter,fsvideoanyrate" + use msn && plugins="${plugins},fsmsnconference" + econf --disable-static \ + $(use_enable introspection) \ + $(use_enable python) \ + $(use_enable upnp gupnp) \ + --with-plugins=${plugins} +} + +src_install() { + # Parallel install fails, bug #434618 (fixed in latest slot) + emake -j1 install DESTDIR="${D}" + dodoc AUTHORS README ChangeLog + + # Remove .la files since static libs are no longer being installed + find "${D}" -name '*.la' -exec rm -f '{}' + || die +} + +src_test() { + # FIXME: do an out-of-tree build for tests if USE=-msn + if ! use msn; then + elog "Tests disabled without msn use flag" + return + fi + + emake -j1 check +} diff --git a/net-libs/farstream/farstream-0.1.2-r2.ebuild b/net-libs/farstream/farstream-0.1.2-r2.ebuild new file mode 100644 index 000000000000..0e6440e6b082 --- /dev/null +++ b/net-libs/farstream/farstream-0.1.2-r2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 + +DESCRIPTION="Audio/video conferencing framework specifically designed for instant messengers" +HOMEPAGE="http://www.freedesktop.org/wiki/Software/Farstream" +SRC_URI="http://freedesktop.org/software/farstream/releases/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +KEYWORDS="~alpha amd64 arm hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux" + +IUSE="+introspection python test upnp" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +SLOT="0.1" + +# Tests need shmsink from gst-plugins-bad, which isn't packaged +RESTRICT="test" + +COMMONDEPEND=" + >=media-libs/gstreamer-0.10.33:0.10 + >=media-libs/gst-plugins-base-0.10.33:0.10 + >=dev-libs/glib-2.30:2 + >=net-libs/libnice-0.1.0 + introspection? ( >=dev-libs/gobject-introspection-0.10.11 ) + python? ( ${PYTHON_DEPS} + >=dev-python/pygobject-2.16:2[${PYTHON_USEDEP}] + >=dev-python/gst-python-0.10.10:0.10[${PYTHON_USEDEP}] ) + upnp? ( net-libs/gupnp-igd ) +" +RDEPEND="${COMMONDEPEND} + >=media-libs/gst-plugins-good-0.10.17:0.10 + >=media-libs/gst-plugins-bad-0.10.17:0.10 + || ( + >=media-plugins/gst-plugins-libnice-0.1.0:0.10 + <=net-libs/libnice-0.1.3[gstreamer] ) + !net-libs/farsight2 +" +# This package is just a rename from farsight2 + +MAKEOPTS="${MAKEOPTS} -j1" # Parallel is completely broken on this slot, bug #434618 + +DEPEND="${COMMONDEPEND} + dev-util/gtk-doc-am + virtual/pkgconfig + test? ( + media-libs/gst-plugins-good:0.10 + media-plugins/gst-plugins-vorbis:0.10 )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# FIXME: do an out-of-tree build for tests if USE=-msn +RESTRICT="test" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + # Fix building with gobject-introspection-1.33.x, bug #425096 + epatch "${FILESDIR}/${P}-introspection-tag-order.patch" +} + +src_configure() { + plugins="fsrawconference,fsrtpconference,fsfunnel,fsrtcpfilter,fsvideoanyrate" + econf --disable-static \ + $(use_enable introspection) \ + $(use_enable python) \ + $(use_enable upnp gupnp) \ + --with-plugins=${plugins} +} + +src_install() { + # Parallel install fails, bug #434618 (fixed in latest slot) + emake -j1 install DESTDIR="${D}" + dodoc AUTHORS README ChangeLog + + # Remove .la files since static libs are no longer being installed + find "${D}" -name '*.la' -exec rm -f '{}' + || die +} diff --git a/net-libs/farstream/farstream-0.2.7.ebuild b/net-libs/farstream/farstream-0.2.7.ebuild new file mode 100644 index 000000000000..4828d308df54 --- /dev/null +++ b/net-libs/farstream/farstream-0.2.7.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python2_7 ) + +inherit gnome2 python-any-r1 + +DESCRIPTION="Audio/video conferencing framework specifically designed for instant messengers" +HOMEPAGE="http://www.freedesktop.org/wiki/Software/Farstream" +SRC_URI="http://freedesktop.org/software/farstream/releases/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="+introspection test upnp" + +SLOT="0.2/5" # .so version + +# Tests need shmsink from gst-plugins-bad, which isn't packaged +# FIXME: do an out-of-tree build for tests if USE=-msn +RESTRICT="test" + +COMMONDEPEND=" + >=media-libs/gstreamer-1.4:1.0 + >=media-libs/gst-plugins-base-1.4:1.0 + >=dev-libs/glib-2.32:2 + >=net-libs/libnice-0.1.8 + introspection? ( >=dev-libs/gobject-introspection-0.10.11 ) + upnp? ( >=net-libs/gupnp-igd-0.2:= ) +" +RDEPEND="${COMMONDEPEND} + >=media-libs/gst-plugins-good-1.4:1.0 + >=media-libs/gst-plugins-bad-1.4:1.0 + media-plugins/gst-plugins-libnice:1.0 +" +DEPEND="${COMMONDEPEND} + ${PYTHON_DEPS} + >=dev-util/gtk-doc-am-1.18 + virtual/pkgconfig + test? ( + media-libs/gst-plugins-base:1.0[vorbis] + media-libs/gst-plugins-good:1.0 ) +" + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_configure() { + plugins="fsrawconference,fsrtpconference,fsfunnel,fsrtcpfilter,fsvideoanyrate" + gnome2_src_configure \ + --disable-static \ + $(use_enable introspection) \ + $(use_enable upnp gupnp) \ + --with-plugins=${plugins} +} + +src_compile() { + # Prevent sandbox violations, bug #539224 + # https://bugzilla.gnome.org/show_bug.cgi?id=744135 + # https://bugzilla.gnome.org/show_bug.cgi?id=744134 + addpredict /dev + gnome2_src_compile +} diff --git a/net-libs/farstream/files/farstream-0.1.2-introspection-tag-order.patch b/net-libs/farstream/files/farstream-0.1.2-introspection-tag-order.patch new file mode 100644 index 000000000000..3283e1fd2990 --- /dev/null +++ b/net-libs/farstream/files/farstream-0.1.2-introspection-tag-order.patch @@ -0,0 +1,132 @@ +From 39450457190675716c8e66700e35b05334a6a1a0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= <olivier.crete@collabora.com> +Date: Fri, 25 May 2012 17:06:59 -0400 +Subject: [PATCH] Gtk-doc tags belong after the description + +--- + farstream/fs-session.c | 16 +++++++--------- + farstream/fs-stream.c | 15 ++++++--------- + 2 files changed, 13 insertions(+), 18 deletions(-) + +diff --git a/farstream/fs-session.c b/farstream/fs-session.c +index 80794d1..abb1bc3 100644 +--- a/farstream/fs-session.c ++++ b/farstream/fs-session.c +@@ -270,9 +270,6 @@ fs_session_class_init (FsSessionClass *klass) + /** + * FsSession:codec-preferences: + * +- * Type: GLib.List(FsCodec) +- * Transfer: full +- * + * This is the current preferences list for the local codecs. It is + * set by the user to specify the codec options and priorities. The user may + * change its value with fs_session_set_codec_preferences() at any time +@@ -283,6 +280,9 @@ fs_session_class_init (FsSessionClass *klass) + * or %FS_CODEC_ID_ANY. If the encoding name is "reserve-pt", then the + * payload type of the codec will be "reserved" and not be used by any + * dynamically assigned payload type. ++ * ++ * Type: GLib.List(FsCodec) ++ * Transfer: full + */ + g_object_class_install_property (gobject_class, + PROP_CODEC_PREFERENCES, +@@ -296,9 +296,6 @@ fs_session_class_init (FsSessionClass *klass) + /** + * FsSession:codecs: + * +- * Type: GLib.List(FsCodec) +- * Transfer: full +- * + * This is the list of codecs used for this session. It will include the + * codecs and payload type used to receive media on this session. It will + * also include any configuration parameter that must be transmitted reliably +@@ -317,6 +314,8 @@ fs_session_class_init (FsSessionClass *klass) + * It is a #GList of #FsCodec. User must free this codec list using + * fs_codec_list_destroy() when done. + * ++ * Type: GLib.List(FsCodec) ++ * Transfer: full + */ + g_object_class_install_property (gobject_class, + PROP_CODECS, +@@ -329,9 +328,6 @@ fs_session_class_init (FsSessionClass *klass) + /** + * FsSession:codecs-without-config: + * +- * Type: GLib.List(FsCodec) +- * Transfer: full +- * + * This is the same list of codecs as #FsSession:codecs without + * the configuration information that describes the data sent. It is suitable + * for configurations where a list of codecs is shared by many senders. +@@ -349,6 +345,8 @@ fs_session_class_init (FsSessionClass *klass) + * It is a #GList of #FsCodec. User must free this codec list using + * fs_codec_list_destroy() when done. + * ++ * Type: GLib.List(FsCodec) ++ * Transfer: full + */ + g_object_class_install_property (gobject_class, + PROP_CODECS_WITHOUT_CONFIG, +diff --git a/farstream/fs-stream.c b/farstream/fs-stream.c +index b9e1320..110641d 100644 +--- a/farstream/fs-stream.c ++++ b/farstream/fs-stream.c +@@ -176,13 +176,12 @@ fs_stream_class_init (FsStreamClass *klass) + /** + * FsStream:remote-codecs: + * +- * Type: GLib.List(FsCodec) +- * Transfer: full +- * + * This is the list of remote codecs for this stream. They must be set by the + * user as soon as they are known using fs_stream_set_remote_codecs() + * (generally through external signaling). It is a #GList of #FsCodec. + * ++ * Type: GLib.List(FsCodec) ++ * Transfer: full + */ + g_object_class_install_property (gobject_class, + PROP_REMOTE_CODECS, +@@ -195,15 +194,14 @@ fs_stream_class_init (FsStreamClass *klass) + /** + * FsStream:negotiated-codecs: + * +- * Type: GLib.List(FsCodec) +- * Transfer: full +- * + * This is the list of negotiatied codecs, it is the same list as the list + * of #FsCodec from the parent #FsSession, except that the codec config data + * has been replaced with the data from the remote codecs for this stream. + * This is the list of #FsCodec used to receive data from this stream. + * It is a #GList of #FsCodec. + * ++ * Type: GLib.List(FsCodec) ++ * Transfer: full + */ + g_object_class_install_property (gobject_class, + PROP_NEGOTIATED_CODECS, +@@ -216,9 +214,6 @@ fs_stream_class_init (FsStreamClass *klass) + /** + * FsStream:current-recv-codecs: + * +- * Type: GLib.List(FsCodec) +- * Transfer: full +- * + * This is the list of codecs that have been received by this stream. + * The user must free the list if fs_codec_list_destroy(). + * The "farstream-recv-codecs-changed" message is send on the #GstBus +@@ -228,6 +223,8 @@ fs_stream_class_init (FsStreamClass *klass) + * also be emitted if the pad already exists, but the source material that + * will come to it is different. + * ++ * Type: GLib.List(FsCodec) ++ * Transfer: full + */ + g_object_class_install_property (gobject_class, + PROP_CURRENT_RECV_CODECS, +-- +1.7.8.6 + diff --git a/net-libs/farstream/metadata.xml b/net-libs/farstream/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/net-libs/farstream/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/net-libs/ftplib/Manifest b/net-libs/ftplib/Manifest new file mode 100644 index 000000000000..237209ec65ae --- /dev/null +++ b/net-libs/ftplib/Manifest @@ -0,0 +1,3 @@ +DIST ftplib-4.0.tar.gz 66680 SHA256 a9fabf1fdb2d6cc3713fd5413724ecc266f438a53a24595619080db9e51426a1 SHA512 ff39c243a6acbb67a8d2779f34b59f69f45d578ea3976c14aee1abcc56bf16cbbc6518ba96a4ccf34f6dd469eef388043caf066858b8df24bebfab7ab30a1c62 WHIRLPOOL 710035aa579611790d1991c0f48628c808a703f410db4d2f545b099449e3c3d3a76897d01ae1c50f47485f4b7b76492f1e2ac52445a4cc9264c41208f84500db +DIST ftplib_3.1-1-9.debian.tar.gz 8560 SHA256 92aa7dc894cc144d3f92c7a5e60f1ea57c78eef2f93e4449242ad03aaef50644 SHA512 c87fb17bca4616d85f064f718161071b35a0e3f1c84ce8f13b4cd9f9b75f5115a4c518680d77af240196f0b2ee5eff520e0d4a0b87c797554c1ee8caa4962e07 WHIRLPOOL 6545603c973516a9fb180da3f39b741eb84e9cb2b383e4eff4ff75c55271c2e73d2547b790f841135688b5a7ec4fc1a6f95c8ff1745bea10c4ff2a73ecac0b62 +DIST ftplib_3.1-1.orig.tar.gz 90724 SHA256 64161ea4aeb1a1314eb821584521f97a1cac18b01e77722687666a1835a0b76d SHA512 5a0116ce1526f77532ced94c00bc1199378da1e1707c86637c83c6e9a27fef3a290bfefb7fc537946219587625b39560399cf136b83878a7829a2f3bee5f926f WHIRLPOOL 21df0807a5d3fa506cc6c10c7116f268b08cbab2af187aa6cc96c3b63fb0e1cc1b61ef32d1bb6c4f99d9122adc579a75d97095ae530abb112cd6fe38c472be19 diff --git a/net-libs/ftplib/files/ftplib-4.0-crash.patch b/net-libs/ftplib/files/ftplib-4.0-crash.patch new file mode 100644 index 000000000000..c984e2d81b19 --- /dev/null +++ b/net-libs/ftplib/files/ftplib-4.0-crash.patch @@ -0,0 +1,116 @@ +include sys/select.h for the select() prototype on unix systems. + +fix warning about using chars as subscripts in arrays. on many systems, isdigit +turns into an index of an array, so the pnum char needs to be casted to an int. +the spec says these funcs take an int, not a char. + +fix warnings about the rv return value being uninitialized in FtpAcceptConnection. + +fix a crasher in FtpClose where it derefs the ctrl pointer before checking +if it's NULL. + +fix the FtpQuit API to return 0/1 as it's documented so the caller can detect. + +patch by Mike Frysinger <vapier@gentoo.org> + +--- a/src/ftplib.c ++++ b/src/ftplib.c +@@ -31,6 +32,7 @@ + #if defined(__unix__) + #include <sys/time.h> + #include <sys/types.h> ++#include <sys/select.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <netdb.h> +@@ -453,7 +456,7 @@ GLOBALDEF int FtpConnect(const char *hos + pnum = "ftp"; + else + *pnum++ = '\0'; +- if (isdigit(*pnum)) ++ if (isdigit((int)*pnum)) + sin.sin_port = htons(atoi(pnum)); + else + { +@@ -841,7 +862,7 @@ static int FtpAcceptConnection(netbuf *n + int i; + struct timeval tv; + fd_set mask; +- int rv; ++ int rv = 0; + + FD_ZERO(&mask); + FD_SET(nControl->handle, &mask); +@@ -858,14 +879,12 @@ static int FtpAcceptConnection(netbuf *n + sizeof(nControl->response)); + net_close(nData->handle); + nData->handle = 0; +- rv = 0; + } + else if (i == 0) + { + strcpy(nControl->response, "timed out waiting for connection"); + net_close(nData->handle); + nData->handle = 0; +- rv = 0; + } + else + { +@@ -885,7 +904,6 @@ static int FtpAcceptConnection(netbuf *n + strncpy(nControl->response, strerror(i), + sizeof(nControl->response)); + nData->handle = 0; +- rv = 0; + } + } + else if (FD_ISSET(nControl->handle, &mask)) +@@ -893,7 +911,6 @@ static int FtpAcceptConnection(netbuf *n + net_close(nData->handle); + nData->handle = 0; + readresp('2', nControl); +- rv = 0; + } + } + return rv; +@@ -1054,10 +1054,11 @@ GLOBALDEF int FtpClose(netbuf *nData) + net_close(nData->handle); + ctrl = nData->ctrl; + free(nData); +- ctrl->data = NULL; +- if (ctrl && ctrl->response[0] != '4' && ctrl->response[0] != 5) ++ if (ctrl) + { +- return(readresp('2', ctrl)); ++ ctrl->data = NULL; ++ if (ctrl->response[0] != '4' && ctrl->response[0] != 5) ++ return readresp('2', ctrl); + } + return 1; + case FTPLIB_CONTROL: +@@ -1442,12 +1443,13 @@ GLOBALDEF int FtpDelete(const char *fnm, netbuf *nControl) + * + * return 1 if successful, 0 otherwise + */ +-GLOBALDEF void FtpQuit(netbuf *nControl) ++GLOBALDEF int FtpQuit(netbuf *nControl) + { + if (nControl->dir != FTPLIB_CONTROL) +- return; ++ return 0; + FtpSendCmd("QUIT",'2',nControl); + net_close(nControl->handle); + free(nControl->buf); + free(nControl); ++ return 1; + } +--- a/src/ftplib.h ++++ b/src/ftplib.h +@@ -111,7 +111,7 @@ GLOBALREF int FtpPut(const char *input, const char *path, char mode, + netbuf *nControl); + GLOBALREF int FtpRename(const char *src, const char *dst, netbuf *nControl); + GLOBALREF int FtpDelete(const char *fnm, netbuf *nControl); +-GLOBALREF void FtpQuit(netbuf *nControl); ++GLOBALREF int FtpQuit(netbuf *nControl); + + #ifdef __cplusplus + }; diff --git a/net-libs/ftplib/ftplib-3.1.1.ebuild b/net-libs/ftplib/ftplib-3.1.1.ebuild new file mode 100644 index 000000000000..0a80ac6e8028 --- /dev/null +++ b/net-libs/ftplib/ftplib-3.1.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils multilib toolchain-funcs versionator + +DEB_REV=9 +MY_PV=$(replace_version_separator 2 -) + +DESCRIPTION="A set of routines that implement the FTP protocol" +HOMEPAGE="http://nbpfaus.net/~pfau/ftplib/" +DEB_URI="mirror://debian/pool/main/f/${PN}" +SRC_URI="${DEB_URI}/${PN}_${MY_PV}.orig.tar.gz + ${DEB_URI}/${PN}_${MY_PV}-${DEB_REV}.debian.tar.gz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/${PN}-${MY_PV} + +src_prepare() { + epatch "${WORKDIR}"/debian/patches/{check-getservbyname-failure,fix-ascii-read-without-eol} + + sed -i \ + -e '/shared/s:$(CC):$(CC) $(LDFLAGS):' \ + -e 's:/usr/local:$(DESTDIR)/usr:' \ + -e '/^LDFLAGS/s:=:+=:' \ + -e "s:/lib:/$(get_libdir):" \ + linux/Makefile || die +} + +src_compile() { + tc-export CC + emake -C linux DEBUG="${CFLAGS}" +} + +src_install() { + dodir /usr/bin /usr/include /usr/$(get_libdir) + emake -C linux DESTDIR="${D}" install + dodoc additional_rfcs CHANGES ftplib.lsm NOTES README* RFC959.txt TODO +} diff --git a/net-libs/ftplib/ftplib-4.0-r1.ebuild b/net-libs/ftplib/ftplib-4.0-r1.ebuild new file mode 100644 index 000000000000..9afad088aa30 --- /dev/null +++ b/net-libs/ftplib/ftplib-4.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit multilib multilib-minimal toolchain-funcs eutils + +DESCRIPTION="A set of routines that implement the FTP protocol" +HOMEPAGE="http://nbpfaus.net/~pfau/ftplib/" +SRC_URI="http://nbpfaus.net/~pfau/ftplib/${P}.tar.gz" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + sed -i \ + -e '/shared/s:$(CC):$(CC) $(LDFLAGS):' \ + -e 's:/usr/local:$(DESTDIR)/usr:' \ + -e '/^LDFLAGS/s:=:+=:' \ + -e "s:/lib:/$(get_libdir):" \ + -e '/ar -rcs/s:ar:$(AR):' \ + src/Makefile || die + epatch "${FILESDIR}"/${PN}-4.0-crash.patch + + multilib_copy_sources +} + +multilib_src_compile() { + emake -C src \ + DEBUG="${CFLAGS} ${CPPFLAGS}" \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" +} + +multilib_src_install() { + dodir /usr/bin /usr/include /usr/$(get_libdir) + emake -C src DESTDIR="${ED}" install +} + +multilib_src_install_all() { + dodoc additional_rfcs CHANGES README* RFC959.txt + dohtml html/* +} diff --git a/net-libs/ftplib/ftplib-4.0.ebuild b/net-libs/ftplib/ftplib-4.0.ebuild new file mode 100644 index 000000000000..9ec70207a44b --- /dev/null +++ b/net-libs/ftplib/ftplib-4.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils multilib toolchain-funcs versionator + +DESCRIPTION="A set of routines that implement the FTP protocol" +HOMEPAGE="http://nbpfaus.net/~pfau/ftplib/" +SRC_URI="http://nbpfaus.net/~pfau/ftplib/${P}.tar.gz" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + sed -i \ + -e '/shared/s:$(CC):$(CC) $(LDFLAGS):' \ + -e 's:/usr/local:$(DESTDIR)/usr:' \ + -e '/^LDFLAGS/s:=:+=:' \ + -e "s:/lib:/$(get_libdir):" \ + -e '/ar -rcs/s:ar:$(AR):' \ + src/Makefile || die +} + +src_compile() { + tc-export AR CC + emake -C src DEBUG="${CFLAGS} ${CPPFLAGS}" +} + +src_install() { + dodir /usr/bin /usr/include /usr/$(get_libdir) + emake -C src DESTDIR="${ED}" install + dodoc additional_rfcs CHANGES README* RFC959.txt + dohtml html/* +} diff --git a/net-libs/ftplib/metadata.xml b/net-libs/ftplib/metadata.xml new file mode 100644 index 000000000000..c572c7d9b478 --- /dev/null +++ b/net-libs/ftplib/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>video</herd> + <maintainer> + <email>media-video@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-libs/glib-networking/Manifest b/net-libs/glib-networking/Manifest new file mode 100644 index 000000000000..9f9ae79b570a --- /dev/null +++ b/net-libs/glib-networking/Manifest @@ -0,0 +1,3 @@ +DIST glib-networking-2.40.1.tar.xz 368444 SHA256 9fb3e54d049a480afdb814ff7452e7ab67e5d5f607ade230d7713f19922b5a28 SHA512 5d6485b486e1e51fc4f5ac27b3d7455ecf34989a9204cc372926cb202d532711fa57a76aac9f77ca9ba70acade7453d3831111cc86e24669dea2f8fc3e87c822 WHIRLPOOL 2a60ed6f971595496864e3f8f01970a88c8bb558125371a2dee4ff8eb51435cf7146c4edfe07de6850d5156c1c9bd34e5be74c69154157ed92c74dcda893cd84 +DIST glib-networking-2.42.1.tar.xz 374540 SHA256 c06bf76da3353695fcc791b7b02e5d60c01c379e554f7841dc6cbca32f65f3a0 SHA512 e7cd6aad1ea6e8eb3feb2ff719e1b34da0ed18254f2e8f1fcf061b14bb5919651ecbae469217c504be4d034e0f334868c1556f6aac1027e505eb35ffd99b3a58 WHIRLPOOL aa76055b0924a4f7dc338ad702d9dfaefe08a5cb0f6cb334838f8d83143e7cee4a079b8ecc01e4be4241adb574d5b7a188c159d8fc176a3bf77004749dd48422 +DIST glib-networking-2.44.0.tar.xz 375456 SHA256 8f8a340d3ba99bfdef38b653da929652ea6640e27969d29f7ac51fbbe11a4346 SHA512 318d7b7a4beeb21f75da9278bae7016bf78be48f9e2b9365d48246c97d1c6b6f5aba3365ef81f2592fd3cc3d5d16122c245dd3cfede6eaffc3e94113a527e10b WHIRLPOOL aaee32a45fbccbece1378a0a304b6215862bd1fd69991fbd99f344027693b4040b5acfe6b96f20c9d05d648cc72394dade50a233d61f19195e2f7ced5c4f0292 diff --git a/net-libs/glib-networking/files/glib-networking-2.40.1-unittests.patch b/net-libs/glib-networking/files/glib-networking-2.40.1-unittests.patch new file mode 100644 index 000000000000..4301b84620b7 --- /dev/null +++ b/net-libs/glib-networking/files/glib-networking-2.40.1-unittests.patch @@ -0,0 +1,45 @@ +From 8867e6a0b3b84b41b5a61c5194fa1300c5c39d8c Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <eva@gentoo.org> +Date: Fri, 25 Apr 2014 22:59:01 +0200 +Subject: [PATCH] test connection is not PKCS#11 related + +Avoids silly test failure: + +CCLD connection +/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/Scrt1.o: In +function `_start': +(.text+0x20): undefined reference to `main' +collect2: error: ld returned 1 exit status +Makefile:897: recipe for target 'connection' failed +make[4]: *** [connection] Error 1 +--- + tls/tests/Makefile.am | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tls/tests/Makefile.am b/tls/tests/Makefile.am +index 6287b9c..009b388 100644 +--- a/tls/tests/Makefile.am ++++ b/tls/tests/Makefile.am +@@ -15,6 +15,9 @@ test_programs = \ + connection \ + $(NULL) + ++connection_SOURCES = connection.c \ ++ mock-interaction.c mock-interaction.h ++ + if HAVE_PKCS11 + + test_programs += \ +@@ -33,9 +36,6 @@ pkcs11_slot_SOURCES = pkcs11-slot.c \ + mock-pkcs11.c mock-pkcs11.h \ + mock-interaction.c mock-interaction.h + +-connection_SOURCES = connection.c \ +- mock-interaction.c mock-interaction.h +- + endif + + testfiles_data = \ +-- +1.9.0 + diff --git a/net-libs/glib-networking/glib-networking-2.40.1-r1.ebuild b/net-libs/glib-networking/glib-networking-2.40.1-r1.ebuild new file mode 100644 index 000000000000..5e4722211b30 --- /dev/null +++ b/net-libs/glib-networking/glib-networking-2.40.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 multilib-minimal virtualx + +DESCRIPTION="Network-related giomodules for glib" +HOMEPAGE="http://git.gnome.org/browse/glib-networking/" + +LICENSE="LGPL-2+" +SLOT="0" +IUSE="+gnome +libproxy smartcard +ssl test" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" + +RDEPEND=" + >=dev-libs/glib-2.40.0-r1:2[${MULTILIB_USEDEP}] + gnome? ( gnome-base/gsettings-desktop-schemas ) + libproxy? ( >=net-libs/libproxy-0.4.11-r1:=[${MULTILIB_USEDEP}] ) + smartcard? ( + >=app-crypt/p11-kit-0.18.4[${MULTILIB_USEDEP}] + >=net-libs/gnutls-2.12.23-r6:=[pkcs11,${MULTILIB_USEDEP}] ) + ssl? ( + app-misc/ca-certificates + >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/intltool-0.35.0 + sys-devel/gettext + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + test? ( sys-apps/dbus[X] ) +" +# eautoreconf needs >=sys-devel/autoconf-2.65:2.5 + +src_prepare() { + epatch "${FILESDIR}"/${P}-unittests.patch + eautoreconf + gnome2_src_prepare +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + gnome2_src_configure \ + --disable-static \ + --with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \ + $(use_with gnome gnome-proxy) \ + $(use_with libproxy) \ + $(use_with smartcard pkcs11) \ + $(use_with ssl gnutls) +} + +multilib_src_test() { + # non-native tests fail if glib-networking is already installed. + # have no idea what's wrong. would appreciate some help. + multilib_is_native_abi || return 0 + + Xemake check +} + +multilib_src_install() { + gnome2_src_install +} diff --git a/net-libs/glib-networking/glib-networking-2.42.1.ebuild b/net-libs/glib-networking/glib-networking-2.42.1.ebuild new file mode 100644 index 000000000000..b9760c87e8d9 --- /dev/null +++ b/net-libs/glib-networking/glib-networking-2.42.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 multilib-minimal virtualx + +DESCRIPTION="Network-related giomodules for glib" +HOMEPAGE="http://git.gnome.org/browse/glib-networking/" + +LICENSE="LGPL-2+" +SLOT="0" +IUSE="+gnome +libproxy smartcard +ssl test" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" + +RDEPEND=" + >=dev-libs/glib-2.42:2[${MULTILIB_USEDEP}] + gnome? ( gnome-base/gsettings-desktop-schemas ) + libproxy? ( >=net-libs/libproxy-0.4.11-r1:=[${MULTILIB_USEDEP}] ) + smartcard? ( + >=app-crypt/p11-kit-0.18.4[${MULTILIB_USEDEP}] + >=net-libs/gnutls-3:=[pkcs11,${MULTILIB_USEDEP}] ) + ssl? ( + app-misc/ca-certificates + >=net-libs/gnutls-3:=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/intltool-0.35.0 + sys-devel/gettext + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + test? ( sys-apps/dbus[X] ) +" +# eautoreconf needs >=sys-devel/autoconf-2.65:2.5 + +src_prepare() { + # Fix test build failure with USE=-smartcard + epatch "${FILESDIR}"/${PN}-2.40.1-unittests.patch + + eautoreconf + gnome2_src_prepare +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + gnome2_src_configure \ + --disable-static \ + --with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \ + $(use_with gnome gnome-proxy) \ + $(use_with libproxy) \ + $(use_with smartcard pkcs11) \ + $(use_with ssl gnutls) +} + +multilib_src_test() { + # non-native tests fail if glib-networking is already installed. + # have no idea what's wrong. would appreciate some help. + multilib_is_native_abi || return 0 + + Xemake check +} + +multilib_src_install() { + gnome2_src_install +} diff --git a/net-libs/glib-networking/glib-networking-2.44.0.ebuild b/net-libs/glib-networking/glib-networking-2.44.0.ebuild new file mode 100644 index 000000000000..93b82ef7aeab --- /dev/null +++ b/net-libs/glib-networking/glib-networking-2.44.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 multilib-minimal virtualx + +DESCRIPTION="Network-related giomodules for glib" +HOMEPAGE="http://git.gnome.org/browse/glib-networking/" + +LICENSE="LGPL-2+" +SLOT="0" +IUSE="+gnome +libproxy smartcard +ssl test" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" + +RDEPEND=" + >=dev-libs/glib-2.39.1:2[${MULTILIB_USEDEP}] + gnome? ( gnome-base/gsettings-desktop-schemas ) + libproxy? ( >=net-libs/libproxy-0.4.11-r1:=[${MULTILIB_USEDEP}] ) + smartcard? ( + >=app-crypt/p11-kit-0.18.4[${MULTILIB_USEDEP}] + >=net-libs/gnutls-3:=[pkcs11,${MULTILIB_USEDEP}] ) + ssl? ( + app-misc/ca-certificates + >=net-libs/gnutls-3:=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/intltool-0.35.0 + sys-devel/gettext + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + test? ( sys-apps/dbus[X] ) +" +# eautoreconf needs >=sys-devel/autoconf-2.65:2.5 + +src_prepare() { + # Fix test build failure with USE=-smartcard + epatch "${FILESDIR}"/${PN}-2.40.1-unittests.patch + + eautoreconf + gnome2_src_prepare +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + gnome2_src_configure \ + --disable-static \ + --with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \ + $(use_with gnome gnome-proxy) \ + $(use_with libproxy) \ + $(use_with smartcard pkcs11) \ + $(use_with ssl gnutls) +} + +multilib_src_test() { + # non-native tests fail if glib-networking is already installed. + # have no idea what's wrong. would appreciate some help. + multilib_is_native_abi || return 0 + + Xemake check +} + +multilib_src_install() { + gnome2_src_install +} diff --git a/net-libs/glib-networking/metadata.xml b/net-libs/glib-networking/metadata.xml new file mode 100644 index 000000000000..4a1545e7ec5d --- /dev/null +++ b/net-libs/glib-networking/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> + <use> + <flag name="libproxy">Use <pkg>net-libs/libproxy</pkg> for getting + the HTTP/HTTPS/SOCKS proxy configuration</flag> + <flag name="gnome">Extract HTTP/HTTPS/SOCKS proxy configuration + stored using GSettings</flag> + </use> +</pkgmetadata> diff --git a/net-libs/gloox/Manifest b/net-libs/gloox/Manifest new file mode 100644 index 000000000000..815e0641563c --- /dev/null +++ b/net-libs/gloox/Manifest @@ -0,0 +1,2 @@ +DIST gloox-1.0.13.tar.bz2 675842 SHA256 4d9f1eeac97c6563dde11d4bdba346a025ef27908b088b47b5c8d3d03df6ea8a SHA512 9f9773a5c3d2ae8a4eec6e8365c8578c089004d0f5101c2e8a8bf96ac8e8b6a08cf4e92f93afb8d07af0e8cc2c238c12f4f8df75a81c2a06dfb039c1d4ae850a WHIRLPOOL 772b18a22acff536abb378a4307c6dcb3b9b35b231d061f05b22d5cb260d8da3c0356bdbca0a8cac9feab0fbc9124bc41472b91a335215291e1e66a9184ccc78 +DIST gloox-1.0.9.tar.bz2 670206 SHA256 143dd50e1edc4eb1d304fa28bdd6ab9e53b60c37c1726dd0e34c06c51f9a453e SHA512 a3fa7acc76fdca0421030e71b6a13ca0b04589946df2a781609f1bddae5329299d68ce99a4a94a0760206b112759636379ce67d220422b99302fc799964bfa22 WHIRLPOOL 414eb34fa3ec11ae929f84198d95ed0da9de0739655ae1188ac3eb03998de5cecb9c165ad284496b405b49126236b628dc5b4579e855b10377add145fabb63b1 diff --git a/net-libs/gloox/gloox-1.0.13.ebuild b/net-libs/gloox/gloox-1.0.13.ebuild new file mode 100644 index 000000000000..5bc18fc75472 --- /dev/null +++ b/net-libs/gloox/gloox-1.0.13.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_P="${P/_/-}" +DESCRIPTION="A portable high-level Jabber/XMPP library for C++" +HOMEPAGE="http://camaya.net/gloox" +SRC_URI="http://camaya.net/download/${MY_P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0/13" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~ia64 ~sparc ~x86" +IUSE="debug gnutls idn ssl static-libs test zlib" + +DEPEND="idn? ( net-dns/libidn ) + gnutls? ( net-libs/gnutls ) + ssl? ( dev-libs/openssl ) + zlib? ( sys-libs/zlib )" + +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch_user +} + +src_configure() { + # Examples are not installed anyway, so - why should we build them? + econf \ + --without-examples \ + $(use debug && echo "--enable-debug") \ + $(use_enable static-libs static) \ + $(use_with idn libidn) \ + $(use_with gnutls) \ + $(use_with ssl openssl) \ + $(use_with test tests) \ + $(use_with zlib) +} + +src_install() { + default + prune_libtool_files +} diff --git a/net-libs/gloox/gloox-1.0.9.ebuild b/net-libs/gloox/gloox-1.0.9.ebuild new file mode 100644 index 000000000000..51c93c5f4f77 --- /dev/null +++ b/net-libs/gloox/gloox-1.0.9.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_P=${P/_/-} +DESCRIPTION="A portable high-level Jabber/XMPP library for C++" +HOMEPAGE="http://camaya.net/gloox" +SRC_URI="http://camaya.net/download/${MY_P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ia64 ppc ~ppc64 sparc x86" +IUSE="debug gnutls idn ssl zlib" + +DEPEND="idn? ( net-dns/libidn ) + gnutls? ( net-libs/gnutls ) + ssl? ( dev-libs/openssl ) + zlib? ( sys-libs/zlib )" + +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_configure() { + econf \ + $(use_enable debug debug) \ + $(use_with idn libidn) \ + $(use_with gnutls gnutls) \ + $(use_with ssl openssl) \ + $(use_with zlib zlib) +} + +src_install() { + emake DESTDIR="${D}" install +} diff --git a/net-libs/gloox/metadata.xml b/net-libs/gloox/metadata.xml new file mode 100644 index 000000000000..3e2b4181f5be --- /dev/null +++ b/net-libs/gloox/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-im</herd> +</pkgmetadata> diff --git a/net-libs/gnet/Manifest b/net-libs/gnet/Manifest new file mode 100644 index 000000000000..38280452b983 --- /dev/null +++ b/net-libs/gnet/Manifest @@ -0,0 +1 @@ +DIST gnet-2.0.8.tar.bz2 514019 SHA256 14034c7ef571a93f2aca21b2280fa86b35ef5730541d3eb57557dd42d7cc506b SHA512 b52ce73c62eb93d7f68a124128780dcf6c6795e82436d0882469dd7873d482c6b87c77d4efa9f69838a58313d7d958abad5b41a89620014c239030d0294cf11f WHIRLPOOL f259f28194b9932f30a72cfe9cbd7a645dbf18a0d02b8b3a506e4bf90ffb77a76f45500142d0b7b2e2c370f0da2f40e99710f5599336ff7d1080de108a60cbfd diff --git a/net-libs/gnet/files/gnet-2.0.8-check-usage-update.patch b/net-libs/gnet/files/gnet-2.0.8-check-usage-update.patch new file mode 100644 index 000000000000..0ca2156b791d --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-check-usage-update.patch @@ -0,0 +1,35 @@ +From a61601a487394cbd5970c3b736aea71bf277ecc1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim.muller@collabora.co.uk> +Date: Sat, 16 Oct 2010 20:13:52 +0100 +Subject: [PATCH] tests: require check >= 0.9.7 for unit tests, and fix for new API + +The check API changed slightly. Fix things for the new API. + +https://bugzilla.gnome.org/show_bug.cgi?id=632258 +--- + tests/check/gnetcheck.h | 8 ++++---- + 1 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tests/check/gnetcheck.h b/tests/check/gnetcheck.h +index aeb9f68..14b6c28 100644 +--- a/tests/check/gnetcheck.h ++++ b/tests/check/gnetcheck.h +@@ -311,11 +311,11 @@ int main (int argc, char **argv) \ + gboolean _gnet_check_run_test_func (const gchar * func_name); + + static inline void +-__gnet_tcase_add_test (TCase * tc, TFun tf, const gchar * func_name, +- int sig, int start, int end) ++__gnet_tcase_add_test (TCase * tc, TFun tf, const char * fname, int signal, ++ int allowed_exit_value, int start, int end) + { +- if (_gnet_check_run_test_func (func_name)) { +- _tcase_add_test (tc, tf, func_name, sig, start, end); ++ if (_gnet_check_run_test_func (fname)) { ++ _tcase_add_test (tc, tf, fname, signal, allowed_exit_value, start, end); + } + } + +-- +1.7.3.1 + diff --git a/net-libs/gnet/files/gnet-2.0.8-context-leak.patch b/net-libs/gnet/files/gnet-2.0.8-context-leak.patch new file mode 100644 index 000000000000..a56e549edccf --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-context-leak.patch @@ -0,0 +1,32 @@ +From d6997987ce7f3e84d1125715b17502452d085073 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tpm@src.gnome.org> +Date: Tue, 13 May 2008 07:10:28 +0000 +Subject: [PATCH] Don't leak main context ref when one was set. Spotted by Kuang-Chun Cheng. + + * src/conn.c: (gnet_conn_unref): + Don't leak main context ref when one was set. + Spotted by Kuang-Chun Cheng. + + +svn path=/trunk/; revision=495 +--- + src/conn.c | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/src/conn.c b/src/conn.c +index f4de415..9d41fa6 100644 +--- a/src/conn.c ++++ b/src/conn.c +@@ -305,6 +305,9 @@ gnet_conn_unref (GConn* conn) + if (conn->inetaddr) + gnet_inetaddr_delete (conn->inetaddr); + ++ if (conn->context) ++ g_main_context_unref (conn->context); ++ + g_free (conn->buffer); + + g_free (conn); +-- +1.7.3.1 + diff --git a/net-libs/gnet/files/gnet-2.0.8-define-location.patch b/net-libs/gnet/files/gnet-2.0.8-define-location.patch new file mode 100644 index 000000000000..1ce6bcac06af --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-define-location.patch @@ -0,0 +1,20 @@ +--- a/tests/check/gnetcheck.h 2009-11-22 23:17:25.000000000 +0100 ++++ b/tests/check/gnetcheck.h 2009-11-22 23:18:19.000000000 +0100 +@@ -310,6 +310,8 @@ + + gboolean _gnet_check_run_test_func (const gchar * func_name); + ++#define _tcase_add_test __gnet_tcase_add_test ++ + static inline void + __gnet_tcase_add_test (TCase * tc, TFun tf, const gchar * func_name, + int sig_, int start_, int end_) +@@ -319,8 +321,6 @@ + } + } + +-#define _tcase_add_test __gnet_tcase_add_test +- + G_END_DECLS + + #endif /* __GNET_CHECK_H__ */ diff --git a/net-libs/gnet/files/gnet-2.0.8-fix-pkgconfig-abuse.patch b/net-libs/gnet/files/gnet-2.0.8-fix-pkgconfig-abuse.patch new file mode 100644 index 000000000000..9c85b72d8e29 --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-fix-pkgconfig-abuse.patch @@ -0,0 +1,16 @@ +Bug-Debian: http://bugs.debian.org/652165 +Author: Julien Cristau <jcristau@debian.org> + +use pkg-config to get the glib include path, not hardcode it. + +--- gnet-2.0.8.orig/gnet-2.0.pc.in ++++ gnet-2.0.8/gnet-2.0.pc.in +@@ -6,5 +6,6 @@ + Name: Gnet + Description: A network compatibility layer library + Version: @VERSION@ +-Libs: -L${libdir} -lgnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ @GLIB_LIBS@ @GTHREAD_LIBS@ +-Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ ++Libs: -L${libdir} -lgnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ ++Requires.private: glib-2.0 gthread-2.0 ++Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/ diff --git a/net-libs/gnet/files/gnet-2.0.8-network-tests.patch b/net-libs/gnet/files/gnet-2.0.8-network-tests.patch new file mode 100644 index 000000000000..7bb7cefd133c --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-network-tests.patch @@ -0,0 +1,32 @@ +From 576f6de12bf4a509882af0bbe4727e27e8bc9373 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <eva@gentoo.org> +Date: Tue, 16 Nov 2010 14:18:08 +0100 +Subject: [PATCH] Do not build network related tests if not enabled + +--- + tests/check/gnet/gnetconn.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/tests/check/gnet/gnetconn.c b/tests/check/gnet/gnetconn.c +index 739b467..0558e28 100644 +--- a/tests/check/gnet/gnetconn.c ++++ b/tests/check/gnet/gnetconn.c +@@ -25,6 +25,7 @@ + + #include <string.h> + ++#ifdef GNET_ENABLE_NETWORK_TESTS + static void + conn_fail_cb (GConn * conn, GConnEvent * event, gpointer data) + { +@@ -243,6 +244,7 @@ GNET_START_TEST (test_conn_new_socket) + g_main_loop_unref (loop); + } + GNET_END_TEST; ++#endif + + static Suite * + gnetconn_suite (void) +-- +1.7.3.1 + diff --git a/net-libs/gnet/files/gnet-2.0.8-test-existing-domain.patch b/net-libs/gnet/files/gnet-2.0.8-test-existing-domain.patch new file mode 100644 index 000000000000..b75258e38d02 --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-test-existing-domain.patch @@ -0,0 +1,32 @@ +From 1825f69b1a149cd3f2daa5f6c3333a32f0470f0a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim.muller@collabora.co.uk> +Date: Sat, 16 Oct 2010 23:10:15 +0100 +Subject: tests: update GConnHttp unit test to not use inactive domains + +www.gnetlibrary.org has been abandoned. + +diff --git a/tests/check/gnet/gnetconnhttp.c b/tests/check/gnet/gnetconnhttp.c +index b1cecce..4316f74 100644 +--- a/tests/check/gnet/gnetconnhttp.c ++++ b/tests/check/gnet/gnetconnhttp.c +@@ -487,7 +487,7 @@ GNET_END_TEST; + + GNET_START_TEST (test_gnet_http_get) + { +- const gchar *urls[] = {"http://www.gnetlibrary.org/src/", ++ const gchar *urls[] = {"http://www.gnome.org/", + "http://www.heise.de" }; + guint i; + +@@ -514,7 +514,7 @@ GNET_END_TEST; + + GNET_START_TEST (test_get_binary) + { +- gchar *uris[] = { "http://www.gnetlibrary.org/gnet.png" }; ++ gchar *uris[] = { "http://www.gnome.org/img/logo/foot-16.png" }; + guint i; + + for (i = 0; i < G_N_ELEMENTS (uris); ++i) { +-- +cgit v0.10.1 + diff --git a/net-libs/gnet/files/gnet-2.0.8-unittest-build.patch b/net-libs/gnet/files/gnet-2.0.8-unittest-build.patch new file mode 100644 index 000000000000..9527dbe5da65 --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-unittest-build.patch @@ -0,0 +1,22 @@ +Fix build failure with newer releases of check library. + +--- a/tests/check/gnetcheck.h 2014-09-27 15:32:17.088312230 +0200 ++++ b/tests/check/gnetcheck.h 2014-09-27 15:32:35.728239492 +0200 +@@ -281,7 +281,7 @@ + _gnet_check_expecting_log = TRUE; \ + _gnet_check_raised_critical = FALSE; \ + code; \ +- _fail_unless (_gnet_check_raised_critical, __FILE__, __LINE__, \ ++ (_gnet_check_raised_critical) ? _mark_point(__FILE__, __LINE__) : _ck_assert_failed (__FILE__, __LINE__, \ + "Expected g_critical, got nothing", NULL); \ + _gnet_check_expecting_log = FALSE; \ + } G_STMT_END +@@ -291,7 +291,7 @@ + _gnet_check_expecting_log = TRUE; \ + _gnet_check_raised_warning = FALSE; \ + code; \ +- _fail_unless (_gnet_check_raised_warning, __FILE__, __LINE__, \ ++ (_gnet_check_raised_warning) ? _mark_point(__FILE__, __LINE__) : _ck_assert_failed (__FILE__, __LINE__, \ + "Expected g_warning, got nothing", NULL); \ + _gnet_check_expecting_log = FALSE; \ + } G_STMT_END diff --git a/net-libs/gnet/files/gnet-2.0.8-unittest-service.patch b/net-libs/gnet/files/gnet-2.0.8-unittest-service.patch new file mode 100644 index 000000000000..f2946aaf438c --- /dev/null +++ b/net-libs/gnet/files/gnet-2.0.8-unittest-service.patch @@ -0,0 +1,31 @@ +Disable unittests requiring a running HTTP server on port 80. + +--- a/tests/check/gnet/gnetinetaddr.c.old 2014-09-27 17:56:51.130350306 +0200 ++++ b/tests/check/gnet/gnetinetaddr.c 2014-09-27 17:57:23.396114568 +0200 +@@ -443,7 +443,7 @@ + + GNET_START_TEST (test_inetaddr_list_async) + { +- do_test_inetaddr_list_async ("localhost"); ++/* do_test_inetaddr_list_async ("localhost"); */ + /* FIXME: these might not work right yet because of the timings in the test + #ifdef GNET_ENABLE_NETWORK_TESTS + do_test_inetaddr_list_async ("www.google.com"); +@@ -573,7 +573,7 @@ + + GNET_START_TEST (test_inetaddr_name_async) + { +- do_test_inetaddr_name_async ("localhost"); ++/* do_test_inetaddr_name_async ("localhost"); */ + + /* FIXME: these might not work right yet because of the timings in the test + #ifdef GNET_ENABLE_NETWORK_TESTS +@@ -798,7 +798,7 @@ + + GNET_START_TEST (test_inetaddr_reverse_async) + { +- do_test_inetaddr_reverse_async ("localhost"); ++/* do_test_inetaddr_reverse_async ("localhost"); */ + + #ifdef GNET_ENABLE_NETWORK_TESTS + do_test_inetaddr_reverse_async ("gabe.freedesktop.org"); diff --git a/net-libs/gnet/gnet-2.0.8-r2.ebuild b/net-libs/gnet/gnet-2.0.8-r2.ebuild new file mode 100644 index 000000000000..c86b795e148b --- /dev/null +++ b/net-libs/gnet/gnet-2.0.8-r2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="yes" +GNOME_TARBALL_SUFFIX="bz2" + +inherit autotools eutils gnome2 + +DESCRIPTION="A simple network library" +HOMEPAGE="http://live.gnome.org/GNetLibrary" + +LICENSE="LGPL-2" +SLOT="2" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="test" + +# FIXME: automagic use of valgrind +RDEPEND=">=dev-libs/glib-2.6:2" +DEPEND="${RDEPEND} + >=dev-libs/check-0.9.11 + >=dev-util/gtk-doc-am-1.2 + virtual/pkgconfig +" +# FIXME: check should only be needed with USE 'test', bug #349301 +# test? ( >=dev-libs/check-0.9.7 )" + +src_prepare() { + # Do not leak main context reference, from master + epatch "${FILESDIR}"/${PN}-2.0.8-context-leak.patch + + # Fix usage of check framework, bug #296849, from master + epatch "${FILESDIR}"/${PN}-2.0.8-check-usage-update.patch + + # ifdef around network tests code, refs. bug #320759 + epatch "${FILESDIR}"/${PN}-2.0.8-network-tests.patch + + # Do not hardcode glib patch in pkgconfig file, debian bug #652165 + epatch "${FILESDIR}"/${PN}-2.0.8-fix-pkgconfig-abuse.patch + + # Compatibility with recent check releases, bug #498046 + epatch "${FILESDIR}"/${PN}-2.0.8-unittest-build.patch + + # gnetlibrary.org has been adandoned, from master + epatch "${FILESDIR}"/${PN}-2.0.8-test-existing-domain.patch + + # Do not depend on a running HTTP server on port 80 for unittest + epatch "${FILESDIR}"/${PN}-2.0.8-unittest-service.patch + + # Do not pass silly cflags with USE=debug, bug #320759 + sed -i \ + -e 's:-Werror::' \ + -e '/AM_PROG_CC_STDC/d' \ + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \ + configure.ac || die + + eautoreconf + gnome2_src_prepare +} + +src_configure() { + DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README* TODO" + # Do not enable network tests in an ebuild environment + gnome2_src_configure \ + --disable-static \ + --disable-network-tests +} diff --git a/net-libs/gnet/metadata.xml b/net-libs/gnet/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/net-libs/gnet/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/net-libs/gnome-online-accounts/Manifest b/net-libs/gnome-online-accounts/Manifest new file mode 100644 index 000000000000..dd5255867e7d --- /dev/null +++ b/net-libs/gnome-online-accounts/Manifest @@ -0,0 +1,3 @@ +DIST gnome-online-accounts-3.14.3.tar.xz 1408156 SHA256 6fe2dc67ab2c50a1c127767f43f31513dac72453bd41d4b4265217a19667c2c6 SHA512 849fd4419a78ea442f610701d4653bfaa18974a35324f0b8209efe9d86e193dccfe67d044a868e1e6e594403b494884bac7109860a6352eecd1b58903432aa39 WHIRLPOOL dcb9373b4c7db2845b0854c52c345f767785ac8e8e590d7e09f41e86d895d40ad9cdd8e4dc11efa5d7ed397b27d41c4f3065a08ec335ba695d3a2a315f49ea2d +DIST gnome-online-accounts-3.14.4.tar.xz 1415052 SHA256 4c348bfd4baa41d263afefd3d82659f486367d48eb89a3755cde9caae754ceb1 SHA512 12e3ef72cea818c183f038898ee52e4583bc55c70dd6564282c7d2b2d9e013a6a1de1452cb88e5a97e2dccb86d81396689ab069249a8f8710974386404ffbc6e WHIRLPOOL 859947b2e4824c9776a96a68d3d50f47b82e6bf42b8349cdb3c16fe678518a441792a872c44361580b8018d27623c872ae37a715e61cb5ae87c3513bdc3fa636 +DIST gnome-online-accounts-3.16.3.tar.xz 1420940 SHA256 a0648e4d595f5c63f85c03bf65a2cf1204e8615aba242c50c15aa4c9696a0ca0 SHA512 34056d996b6d2d217375e1a86ff544915ae707759b64c77030366f9d3d34c0c735869130beb7fe94bbd949adc46d87153de47afa2fe1bcd3f175c6c420037145 WHIRLPOOL 902205f3a792e864e8ca119dbcc0fd81399cf5e9fb5bdc821bd8400870e282f47c595d411d6f678d15834504136f060720ab805d2b018bb30515edc09cf6e059 diff --git a/net-libs/gnome-online-accounts/files/gnome-online-accounts-3.16.3-parallel-make.patch b/net-libs/gnome-online-accounts/files/gnome-online-accounts-3.16.3-parallel-make.patch new file mode 100644 index 000000000000..7d7cec31c05d --- /dev/null +++ b/net-libs/gnome-online-accounts/files/gnome-online-accounts-3.16.3-parallel-make.patch @@ -0,0 +1,34 @@ +From 8de9eb8f452ee7e6d780c29ebb946567d900c181 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Sat, 13 Jun 2015 12:41:15 -0400 +Subject: [PATCH] build: fix webextension parallel install failure + +libgoa-backend-1.0 must be installed before libgoawebextension; unpleasant +automake syntax required. + +https://bugzilla.gnome.org/show_bug.cgi?id=750897 +--- + src/goabackend/Makefile.am | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/goabackend/Makefile.am b/src/goabackend/Makefile.am +index 8c14774..06467ec 100644 +--- a/src/goabackend/Makefile.am ++++ b/src/goabackend/Makefile.am +@@ -166,6 +166,13 @@ libgoawebextension_la_LDFLAGS = \ + -no-undefined \ + $(NULL) + ++# Force installation order: libgoa-backend-1.0 must be installed first, othwerwise ++# libtool will incorrectly relink libgoawebextension.la under parallel make install. ++# Requires ugly automake syntax - see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328 ++ ++installwebextensionLTLIBRARIES = install-webextensionLTLIBRARIES ++$(installwebextensionLTLIBRARIES): install-libLTLIBRARIES ++ + # ---------------------------------------------------------------------------------------------------- + + BUILT_SOURCES = \ +-- +2.4.3 + diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.14.3.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.14.3.ebuild new file mode 100644 index 000000000000..d0398686e708 --- /dev/null +++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.14.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="yes" + +inherit gnome2 + +DESCRIPTION="GNOME framework for accessing online accounts" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" + +LICENSE="LGPL-2+" +SLOT="0/1" +IUSE="gnome +introspection kerberos" # telepathy" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" + +# pango used in goaeditablelabel +# libsoup used in goaoauthprovider +# goa kerberos provider is incompatible with app-crypt/heimdal, see +# https://bugzilla.gnome.org/show_bug.cgi?id=692250 +# json-glib-0.16 needed for bug #485092 +RDEPEND=" + >=dev-libs/glib-2.35:2 + >=app-crypt/libsecret-0.5 + >=dev-libs/json-glib-0.16 + dev-libs/libxml2:2 + >=net-libs/libsoup-2.42:2.4 + net-libs/rest:0.7 + net-libs/telepathy-glib + >=net-libs/webkit-gtk-2.1.90:3 + >=x11-libs/gtk+-3.11.1:3 + x11-libs/pango + + introspection? ( >=dev-libs/gobject-introspection-0.6.2 ) + kerberos? ( + app-crypt/gcr:0= + app-crypt/mit-krb5 ) +" +# telepathy? ( net-libs/telepathy-glib ) +# goa-daemon can launch gnome-control-center +PDEPEND="gnome? ( >=gnome-base/gnome-control-center-3.2[gnome-online-accounts(+)] )" + +DEPEND="${RDEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.3 + >=dev-util/gdbus-codegen-2.30.0 + >=dev-util/intltool-0.50.1 + sys-devel/gettext + virtual/pkgconfig +" + +# Due to sub-configure +QA_CONFIGURE_OPTIONS=".*" + +src_configure() { + # TODO: Give users a way to set the G/Y!/FB/Twitter/Windows Live secrets + # Twitter/Y! disabled per upstream recommendation, bug #497168 + # telepathy optional support is really badly done, bug #494456 + gnome2_src_configure \ + --disable-static \ + --disable-twitter \ + --disable-yahoo \ + --enable-documentation \ + --enable-exchange \ + --enable-facebook \ + --enable-flickr \ + --enable-imap-smtp \ + --enable-media-server \ + --enable-owncloud \ + --enable-pocket \ + --enable-telepathy \ + --enable-windows-live \ + $(use_enable kerberos) + #$(use_enable telepathy) + # gudev & cheese from sub-configure is overriden + # by top level configure, and disabled so leave it like that +} diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.14.4.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.14.4.ebuild new file mode 100644 index 000000000000..d0398686e708 --- /dev/null +++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.14.4.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="yes" + +inherit gnome2 + +DESCRIPTION="GNOME framework for accessing online accounts" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" + +LICENSE="LGPL-2+" +SLOT="0/1" +IUSE="gnome +introspection kerberos" # telepathy" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" + +# pango used in goaeditablelabel +# libsoup used in goaoauthprovider +# goa kerberos provider is incompatible with app-crypt/heimdal, see +# https://bugzilla.gnome.org/show_bug.cgi?id=692250 +# json-glib-0.16 needed for bug #485092 +RDEPEND=" + >=dev-libs/glib-2.35:2 + >=app-crypt/libsecret-0.5 + >=dev-libs/json-glib-0.16 + dev-libs/libxml2:2 + >=net-libs/libsoup-2.42:2.4 + net-libs/rest:0.7 + net-libs/telepathy-glib + >=net-libs/webkit-gtk-2.1.90:3 + >=x11-libs/gtk+-3.11.1:3 + x11-libs/pango + + introspection? ( >=dev-libs/gobject-introspection-0.6.2 ) + kerberos? ( + app-crypt/gcr:0= + app-crypt/mit-krb5 ) +" +# telepathy? ( net-libs/telepathy-glib ) +# goa-daemon can launch gnome-control-center +PDEPEND="gnome? ( >=gnome-base/gnome-control-center-3.2[gnome-online-accounts(+)] )" + +DEPEND="${RDEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.3 + >=dev-util/gdbus-codegen-2.30.0 + >=dev-util/intltool-0.50.1 + sys-devel/gettext + virtual/pkgconfig +" + +# Due to sub-configure +QA_CONFIGURE_OPTIONS=".*" + +src_configure() { + # TODO: Give users a way to set the G/Y!/FB/Twitter/Windows Live secrets + # Twitter/Y! disabled per upstream recommendation, bug #497168 + # telepathy optional support is really badly done, bug #494456 + gnome2_src_configure \ + --disable-static \ + --disable-twitter \ + --disable-yahoo \ + --enable-documentation \ + --enable-exchange \ + --enable-facebook \ + --enable-flickr \ + --enable-imap-smtp \ + --enable-media-server \ + --enable-owncloud \ + --enable-pocket \ + --enable-telepathy \ + --enable-windows-live \ + $(use_enable kerberos) + #$(use_enable telepathy) + # gudev & cheese from sub-configure is overriden + # by top level configure, and disabled so leave it like that +} diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.16.3-r1.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.16.3-r1.ebuild new file mode 100644 index 000000000000..a341946a608b --- /dev/null +++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.16.3-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="yes" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 + +DESCRIPTION="GNOME framework for accessing online accounts" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" + +LICENSE="LGPL-2+" +SLOT="0/1" +IUSE="gnome +introspection kerberos" # telepathy" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +# pango used in goaeditablelabel +# libsoup used in goaoauthprovider +# goa kerberos provider is incompatible with app-crypt/heimdal, see +# https://bugzilla.gnome.org/show_bug.cgi?id=692250 +# json-glib-0.16 needed for bug #485092 +RDEPEND=" + >=dev-libs/glib-2.35:2 + >=app-crypt/libsecret-0.5 + >=dev-libs/json-glib-0.16 + dev-libs/libxml2:2 + >=net-libs/libsoup-2.42:2.4 + net-libs/rest:0.7 + net-libs/telepathy-glib + >=net-libs/webkit-gtk-2.7.2:4 + >=x11-libs/gtk+-3.11.1:3 + x11-libs/pango + + introspection? ( >=dev-libs/gobject-introspection-0.6.2 ) + kerberos? ( + app-crypt/gcr:0= + app-crypt/mit-krb5 ) +" +# telepathy? ( net-libs/telepathy-glib ) +# goa-daemon can launch gnome-control-center +PDEPEND="gnome? ( >=gnome-base/gnome-control-center-3.2[gnome-online-accounts(+)] )" + +DEPEND="${RDEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.3 + >=dev-util/gdbus-codegen-2.30.0 + >=dev-util/intltool-0.50.1 + sys-devel/gettext + virtual/pkgconfig + + dev-libs/gobject-introspection-common + gnome-base/gnome-common +" +# eautoreconf needs gobject-introspection-common, gnome-common + +# Due to sub-configure +QA_CONFIGURE_OPTIONS=".*" + +src_prepare() { + # https://bugzilla.gnome.org/show_bug.cgi?id=750897 + epatch "${FILESDIR}"/${PN}-3.16.3-parallel-make.patch + eautoreconf + gnome2_src_prepare +} + +src_configure() { + # TODO: Give users a way to set the G/FB/Windows Live secrets + # telepathy optional support is really badly done, bug #494456 + gnome2_src_configure \ + --disable-static \ + --enable-documentation \ + --enable-exchange \ + --enable-facebook \ + --enable-flickr \ + --enable-foursquare \ + --enable-imap-smtp \ + --enable-media-server \ + --enable-owncloud \ + --enable-pocket \ + --enable-telepathy \ + --enable-windows-live \ + $(use_enable kerberos) + #$(use_enable telepathy) + # gudev & cheese from sub-configure is overriden + # by top level configure, and disabled so leave it like that +} diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.16.3.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.16.3.ebuild new file mode 100644 index 000000000000..c1afbf97d1a7 --- /dev/null +++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.16.3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="yes" + +inherit gnome2 + +DESCRIPTION="GNOME framework for accessing online accounts" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" + +LICENSE="LGPL-2+" +SLOT="0/1" +IUSE="gnome +introspection kerberos" # telepathy" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +# pango used in goaeditablelabel +# libsoup used in goaoauthprovider +# goa kerberos provider is incompatible with app-crypt/heimdal, see +# https://bugzilla.gnome.org/show_bug.cgi?id=692250 +# json-glib-0.16 needed for bug #485092 +RDEPEND=" + >=dev-libs/glib-2.35:2 + >=app-crypt/libsecret-0.5 + >=dev-libs/json-glib-0.16 + dev-libs/libxml2:2 + >=net-libs/libsoup-2.42:2.4 + net-libs/rest:0.7 + net-libs/telepathy-glib + >=net-libs/webkit-gtk-2.7.2:4 + >=x11-libs/gtk+-3.11.1:3 + x11-libs/pango + + introspection? ( >=dev-libs/gobject-introspection-0.6.2 ) + kerberos? ( + app-crypt/gcr:0= + app-crypt/mit-krb5 ) +" +# telepathy? ( net-libs/telepathy-glib ) +# goa-daemon can launch gnome-control-center +PDEPEND="gnome? ( >=gnome-base/gnome-control-center-3.2[gnome-online-accounts(+)] )" + +DEPEND="${RDEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.3 + >=dev-util/gdbus-codegen-2.30.0 + >=dev-util/intltool-0.50.1 + sys-devel/gettext + virtual/pkgconfig +" + +# Due to sub-configure +QA_CONFIGURE_OPTIONS=".*" + +src_configure() { + # TODO: Give users a way to set the G/FB/Windows Live secrets + # telepathy optional support is really badly done, bug #494456 + gnome2_src_configure \ + --disable-static \ + --enable-documentation \ + --enable-exchange \ + --enable-facebook \ + --enable-flickr \ + --enable-foursquare \ + --enable-imap-smtp \ + --enable-media-server \ + --enable-owncloud \ + --enable-pocket \ + --enable-telepathy \ + --enable-windows-live \ + $(use_enable kerberos) + #$(use_enable telepathy) + # gudev & cheese from sub-configure is overriden + # by top level configure, and disabled so leave it like that +} diff --git a/net-libs/gnome-online-accounts/metadata.xml b/net-libs/gnome-online-accounts/metadata.xml new file mode 100644 index 000000000000..a27834f8df74 --- /dev/null +++ b/net-libs/gnome-online-accounts/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +<use> + <flag name="gnome">Use <pkg>gnome-base/gnome-control-center</pkg> + to set GNOME online accounts preferences</flag> + <!-- <flag name="telepathy">Provide widget to configure the telepathy + frawework</flag> --> +</use> +</pkgmetadata> diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest new file mode 100644 index 000000000000..a8eb18c12c11 --- /dev/null +++ b/net-libs/gnutls/Manifest @@ -0,0 +1,4 @@ +DIST gnutls-2.12.23.tar.bz2 7279415 SHA256 dfa67a7e40727eb0913e75f3c44911d5d8cd58d1ead5acfe73dd933fc0d17ed2 SHA512 7780e9ca7b592350ce9b11e53a63d3212320402d8ad2462bfbc0e69aec4a48bb372a1925627abb7996535c87c90e3d79537ea118c8bb36d26aae8e19eaae3a06 WHIRLPOOL 8cab909c961760c72b478d5cbe75633ce0d26190fdece018e9f33b171879753ed38348c33c00fda7b5f3a6b596a5439fb62f1c82a891e9e62fee5bb784cf7e11 +DIST gnutls-3.3.15.tar.xz 6286288 SHA256 8961227852911a1974e15bc017ddbcd4779876c867226d199f06648d8b27ba4b SHA512 0d112f20fd1a010c278ecc5c0e9e22a040c5a765073ea722329e9d5d7b4c661c6bd2fc6749903ea562fe44caf9a1643c6d95e2e193bb8c444e2e6418f73d5445 WHIRLPOOL 4a7b28952bcbe837d4f9e9b62b9254a43510363634daa1c9dc61bf07c7734699011bf5963d4556d3f53c45f63cdf6d2447f7b101e026d0d21c94d827bff9c6dc +DIST gnutls-3.3.16.tar.xz 6298460 SHA256 80a471c723572a43ddbe75d7825a3275f640650cc99eae42963ab39b9d0b7552 SHA512 bf9b8f9e51abc1292602bf3a577bdb0d87461ee66d13c840916d83ce59fb67c395dec97a185aacced8af526bd5d845a5c92839d4c91c18b042d86f470feb0779 WHIRLPOOL de17d7b4157e330dfcad9aa2f0ea2e86ee4e6fa7e368b4dba2abdd4a00b86ac435d1b5149c17494dd6e7618bc128e5f3af94657cfceffb8e4a53fb2494e45058 +DIST gnutls-3.4.3.tar.xz 6546268 SHA256 65dd55e6de709203b698a729a4a2a7aa07367b63c1615a198ef2436fdd28e928 SHA512 f877500c6d3a731c3560a5f68554532818c87538ba91324957eb2bb85fc2212acfd6dee8f6dd9c5c006d8bd0e311ee17b517e86caca26239b571701e26d623e2 WHIRLPOOL caaf6461b840197bd2c0f9300576cf6065193ba4003640bbd28b15e0dad93db12e9ae8d6298f134ead5b147a9ad8f31e91f96ba561ade296caee9494d1b5f63f diff --git a/net-libs/gnutls/files/gnutls-2.12.20-AF_UNIX.patch b/net-libs/gnutls/files/gnutls-2.12.20-AF_UNIX.patch new file mode 100644 index 000000000000..719baf37b210 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.20-AF_UNIX.patch @@ -0,0 +1,37 @@ +Backport of commit 60a13b98e9f410c3b1019252f271d3c0f20b2e61 for 2.12.20 + +From 60a13b98e9f410c3b1019252f271d3c0f20b2e61 Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos <nmav@gnutls.org> +Date: Fri, 23 Sep 2011 14:39:29 +0000 +Subject: a hack to allow compilation on systems without AF_LOCAL. + +--- lib/nettle/egd.c ++++ lib/nettle/egd.c +@@ -33,6 +33,12 @@ + + #include <gnutls_errors.h> + ++#ifdef AF_UNIX ++# define LOCAL_SOCKET_TYPE AF_UNIX ++#else ++# define LOCAL_SOCKET_TYPE AF_LOCAL ++#endif ++ + #ifndef offsetof + #define offsetof(type, member) ((size_t) &((type *)0)->member) + #endif +@@ -141,12 +147,12 @@ + } + + memset (&addr, 0, sizeof addr); +- addr.sun_family = AF_LOCAL; ++ addr.sun_family = LOCAL_SOCKET_TYPE; + strcpy (addr.sun_path, name); + addr_len = (offsetof (struct sockaddr_un, sun_path) + + strlen (addr.sun_path)); + +- fd = socket (AF_LOCAL, SOCK_STREAM, 0); ++ fd = socket (LOCAL_SOCKET_TYPE, SOCK_STREAM, 0); + if (fd == -1) + { + _gnutls_debug_log ("can't create unix domain socket: %s\n", diff --git a/net-libs/gnutls/files/gnutls-2.12.20-guile-parallelmake.patch b/net-libs/gnutls/files/gnutls-2.12.20-guile-parallelmake.patch new file mode 100644 index 000000000000..5bb085793deb --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.20-guile-parallelmake.patch @@ -0,0 +1,9 @@ +--- a/guile/src/Makefile.am ++++ b/guile/src/Makefile.am +@@ -124,4 +124,7 @@ + + .c.x: $(BUILT_SOURCES) + $(guile_snarf) -o $@ $< $(snarfcppopts) ++core.x: core.c enums.h enum-map.i.c priorities.i.c smobs.h smob-types.i.c ++errors.x: errors.c enums.h ++extra.x: extra.c enums.h extra-enums.h extra-enum-map.i.c extra-smobs.h extra-smob-types.i.c smobs.h diff --git a/net-libs/gnutls/files/gnutls-2.12.20-libadd.patch b/net-libs/gnutls/files/gnutls-2.12.20-libadd.patch new file mode 100644 index 000000000000..fe5f1964ddda --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.20-libadd.patch @@ -0,0 +1,36 @@ +--- gnutls-2.12.20/libextra/Makefile.am ++++ gnutls-2.12.20/libextra/Makefile.am +@@ -69,7 +69,7 @@ + if ENABLE_MINITASN1 + libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la + else +-libgnutls_openssl_la_LDFLAGS += $(LTLIBTASN1) ++libgnutls_openssl_la_LIBADD += $(LTLIBTASN1) + endif + + if HAVE_LD_OUTPUT_DEF +@@ -89,8 +89,9 @@ + libgnutls_extra_la_SOURCES += \ + ext_inner_application.h ext_inner_application.c gnutls_ia.c + ++cryptolib_ldadd = + if !ENABLE_NETTLE +-libgnutls_extra_la_LIBADD += $(LTLIBGCRYPT) ++cryptolib_ldadd = $(LTLIBGCRYPT) + endif + + # Rest +@@ -104,11 +105,10 @@ + DISTCLEANFILES += $(defexec_DATA) + + libgnutls_extra_la_LDFLAGS += \ +- -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ +- $(LZO_LIBS) ++ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) + + libgnutls_extra_la_LIBADD += ../lib/gl/liblgnu.la gl/libxgnu.la \ +- ../lib/libgnutls.la ++ ../lib/libgnutls.la $(cryptolib_ldadd) $(LZO_LIBS) + + if HAVE_LD_VERSION_SCRIPT + libgnutls_extra_la_LDFLAGS += \ diff --git a/net-libs/gnutls/files/gnutls-2.12.23-CVE-2013-2116.patch b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2013-2116.patch new file mode 100644 index 000000000000..2223e708a609 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2013-2116.patch @@ -0,0 +1,25 @@ +From 5164d5a1d57cd0372a5dd074382ca960ca18b27d Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos <nmav@gnutls.org> +Date: Thu, 23 May 2013 09:54:37 +0200 +Subject: [PATCH] re-applied sanity check patch + +--- + lib/gnutls_cipher.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c +index 2835121..71f5a98 100644 +--- a/lib/gnutls_cipher.c ++++ b/lib/gnutls_cipher.c +@@ -561,6 +561,8 @@ _gnutls_ciphertext2compressed (gnutls_session_t session, + return GNUTLS_E_DECRYPTION_FAILED; + } + pad = ciphertext.data[ciphertext.size - 1]; /* pad */ ++ if (pad+1 > ciphertext.size-hash_size) ++ pad_failed = GNUTLS_E_DECRYPTION_FAILED; + + /* Check the pading bytes (TLS 1.x). + * Note that we access all 256 bytes of ciphertext for padding check +-- +1.7.1 + diff --git a/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-0092.patch b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-0092.patch new file mode 100644 index 000000000000..21d3f3b9c467 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-0092.patch @@ -0,0 +1,102 @@ +From 6aa26f78150ccbdf0aec1878a41c17c41d358a3b Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos <nmav@gnutls.org> +Date: Thu, 27 Feb 2014 19:42:26 +0100 +Subject: [PATCH] corrected return codes + +--- + lib/x509/verify.c | 16 ++++++++++------ + 1 files changed, 10 insertions(+), 6 deletions(-) + +diff --git a/lib/x509/verify.c b/lib/x509/verify.c +index c9a6b0d..eef85a8 100644 +--- a/lib/x509/verify.c ++++ b/lib/x509/verify.c +@@ -141,7 +141,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, + if (result < 0) + { + gnutls_assert (); +- goto cleanup; ++ goto fail; + } + + result = +@@ -150,7 +150,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, + if (result < 0) + { + gnutls_assert (); +- goto cleanup; ++ goto fail; + } + + result = +@@ -158,7 +158,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, + if (result < 0) + { + gnutls_assert (); +- goto cleanup; ++ goto fail; + } + + result = +@@ -166,7 +166,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, + if (result < 0) + { + gnutls_assert (); +- goto cleanup; ++ goto fail; + } + + /* If the subject certificate is the same as the issuer +@@ -206,6 +206,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, + else + gnutls_assert (); + ++fail: + result = 0; + + cleanup: +@@ -330,7 +331,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, + gnutls_datum_t cert_signed_data = { NULL, 0 }; + gnutls_datum_t cert_signature = { NULL, 0 }; + gnutls_x509_crt_t issuer = NULL; +- int issuer_version, result; ++ int issuer_version, result = 0; + + if (output) + *output = 0; +@@ -363,7 +364,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, + if (issuer_version < 0) + { + gnutls_assert (); +- return issuer_version; ++ return 0; + } + + if (!(flags & GNUTLS_VERIFY_DISABLE_CA_SIGN) && +@@ -385,6 +386,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, + if (result < 0) + { + gnutls_assert (); ++ result = 0; + goto cleanup; + } + +@@ -393,6 +395,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, + if (result < 0) + { + gnutls_assert (); ++ result = 0; + goto cleanup; + } + +@@ -410,6 +413,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, + else if (result < 0) + { + gnutls_assert(); ++ result = 0; + goto cleanup; + } + +-- +1.7.1 + diff --git a/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-1959.patch b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-1959.patch new file mode 100644 index 000000000000..28989c97ceb7 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-1959.patch @@ -0,0 +1,14 @@ +--- a/lib/x509/verify.c ++++ b/lib/x509/verify.c +@@ -692,8 +693,10 @@ + /* note that here we disable this V1 CA flag. So that no version 1 + * certificates can exist in a supplied chain. + */ +- if (!(flags & GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT)) ++ if (!(flags & GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT)) { + flags &= ~(GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT); ++ flags |= GNUTLS_VERIFY_DO_NOT_ALLOW_X509_V1_CA_CRT; ++ } + if ((ret = + _gnutls_verify_certificate2(certificate_list[i - 1], + &certificate_list[i], 1,
\ No newline at end of file diff --git a/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3466.patch b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3466.patch new file mode 100644 index 000000000000..9e32296e86de --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3466.patch @@ -0,0 +1,311 @@ +From e47d30e272a0b3977db8dae09327acad45b931d8 Mon Sep 17 00:00:00 2001 +From: mancha <mancha1@zoho.com> +Date: Sun, 1 Jun 2014 +Subject: CVE-2014-3466 + +This is a backport adaptation for use with GnuTLS 2.12.23. + +Relevant upstream commit(s): +------------------------- +https://gitorious.org/gnutls/gnutls/commit/688ea6428a432c +https://gitorious.org/gnutls/gnutls/commit/a7be326f0e33cf + +--- + lib/gnutls_handshake.c | 2 + tests/Makefile.am | 2 + tests/long-session-id.c | 268 ++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 270 insertions(+), 2 deletions(-) + +--- a/lib/gnutls_handshake.c ++++ b/lib/gnutls_handshake.c +@@ -1797,7 +1797,7 @@ _gnutls_read_server_hello (gnutls_sessio + DECR_LEN (len, 1); + session_id_len = data[pos++]; + +- if (len < session_id_len) ++ if (len < session_id_len || session_id_len > TLS_MAX_SESSION_ID_SIZE) + { + gnutls_assert (); + return GNUTLS_E_UNSUPPORTED_VERSION_PACKET; +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -64,7 +64,7 @@ ctests = simple gc set_pkcs12_cred certd + crq_key_id x509sign-verify cve-2009-1415 cve-2009-1416 \ + crq_apis init_roundtrip pkcs12_s2k_pem dn2 mini-eagain \ + nul-in-x509-names x509_altname pkcs12_encode mini-x509 \ +- mini-x509-rehandshake rng-fork x509cert gendh ++ mini-x509-rehandshake rng-fork x509cert gendh long-session-id + + if ENABLE_OPENSSL + ctests += openssl +--- /dev/null ++++ b/tests/long-session-id.c +@@ -0,0 +1,268 @@ ++/* ++ * Copyright (C) 2012 Free Software Foundation, Inc. ++ * ++ * Author: Nikos Mavrogiannopoulos ++ * ++ * This file is part of GnuTLS. ++ * ++ * GnuTLS is free software; you can redistribute it and/or modify it ++ * under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 3 of the License, or ++ * (at your option) any later version. ++ * ++ * GnuTLS is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with GnuTLS; if not, write to the Free Software Foundation, ++ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA ++ */ ++ ++#ifdef HAVE_CONFIG_H ++#include <config.h> ++#endif ++ ++#include <stdio.h> ++#include <stdlib.h> ++ ++#if defined(_WIN32) ++ ++int main() ++{ ++ exit(77); ++} ++ ++#else ++ ++#include <string.h> ++#include <sys/types.h> ++#include <netinet/in.h> ++#include <sys/socket.h> ++#include <sys/wait.h> ++#include <arpa/inet.h> ++#include <unistd.h> ++#include <gnutls/gnutls.h> ++#include <signal.h> ++ ++static int debug = 0; ++static void terminate(int); ++ ++/* This program tests the robustness of record ++ * decoding. ++ */ ++ ++static void client_log_func(int level, const char *str) ++{ ++ fprintf(stderr, "client|<%d>| %s", level, str); ++} ++ ++static unsigned char server_cert_pem[] = ++ "-----BEGIN CERTIFICATE-----\n" ++ "MIICVjCCAcGgAwIBAgIERiYdMTALBgkqhkiG9w0BAQUwGTEXMBUGA1UEAxMOR251\n" ++ "VExTIHRlc3QgQ0EwHhcNMDcwNDE4MTMyOTIxWhcNMDgwNDE3MTMyOTIxWjA3MRsw\n" ++ "GQYDVQQKExJHbnVUTFMgdGVzdCBzZXJ2ZXIxGDAWBgNVBAMTD3Rlc3QuZ251dGxz\n" ++ "Lm9yZzCBnDALBgkqhkiG9w0BAQEDgYwAMIGIAoGA17pcr6MM8C6pJ1aqU46o63+B\n" ++ "dUxrmL5K6rce+EvDasTaDQC46kwTHzYWk95y78akXrJutsoKiFV1kJbtple8DDt2\n" ++ "DZcevensf9Op7PuFZKBroEjOd35znDET/z3IrqVgbtm2jFqab7a+n2q9p/CgMyf1\n" ++ "tx2S5Zacc1LWn9bIjrECAwEAAaOBkzCBkDAMBgNVHRMBAf8EAjAAMBoGA1UdEQQT\n" ++ "MBGCD3Rlc3QuZ251dGxzLm9yZzATBgNVHSUEDDAKBggrBgEFBQcDATAPBgNVHQ8B\n" ++ "Af8EBQMDB6AAMB0GA1UdDgQWBBTrx0Vu5fglyoyNgw106YbU3VW0dTAfBgNVHSME\n" ++ "GDAWgBTpPBz7rZJu5gakViyi4cBTJ8jylTALBgkqhkiG9w0BAQUDgYEAaFEPTt+7\n" ++ "bzvBuOf7+QmeQcn29kT6Bsyh1RHJXf8KTk5QRfwp6ogbp94JQWcNQ/S7YDFHglD1\n" ++ "AwUNBRXwd3riUsMnsxgeSDxYBfJYbDLeohNBsqaPDJb7XailWbMQKfAbFQ8cnOxg\n" ++ "rOKLUQRWJ0K3HyXRMhbqjdLIaQiCvQLuizo=\n" "-----END CERTIFICATE-----\n"; ++ ++const gnutls_datum_t server_cert = { server_cert_pem, ++ sizeof(server_cert_pem) ++}; ++ ++static unsigned char server_key_pem[] = ++ "-----BEGIN RSA PRIVATE KEY-----\n" ++ "MIICXAIBAAKBgQDXulyvowzwLqknVqpTjqjrf4F1TGuYvkrqtx74S8NqxNoNALjq\n" ++ "TBMfNhaT3nLvxqResm62ygqIVXWQlu2mV7wMO3YNlx696ex/06ns+4VkoGugSM53\n" ++ "fnOcMRP/PciupWBu2baMWppvtr6far2n8KAzJ/W3HZLllpxzUtaf1siOsQIDAQAB\n" ++ "AoGAYAFyKkAYC/PYF8e7+X+tsVCHXppp8AoP8TEZuUqOZz/AArVlle/ROrypg5kl\n" ++ "8YunrvUdzH9R/KZ7saNZlAPLjZyFG9beL/am6Ai7q7Ma5HMqjGU8kTEGwD7K+lbG\n" ++ "iomokKMOl+kkbY/2sI5Czmbm+/PqLXOjtVc5RAsdbgvtmvkCQQDdV5QuU8jap8Hs\n" ++ "Eodv/tLJ2z4+SKCV2k/7FXSKWe0vlrq0cl2qZfoTUYRnKRBcWxc9o92DxK44wgPi\n" ++ "oMQS+O7fAkEA+YG+K9e60sj1K4NYbMPAbYILbZxORDecvP8lcphvwkOVUqbmxOGh\n" ++ "XRmTZUuhBrJhJKKf6u7gf3KWlPl6ShKEbwJASC118cF6nurTjuLf7YKARDjNTEws\n" ++ "qZEeQbdWYINAmCMj0RH2P0mvybrsXSOD5UoDAyO7aWuqkHGcCLv6FGG+qwJAOVqq\n" ++ "tXdUucl6GjOKKw5geIvRRrQMhb/m5scb+5iw8A4LEEHPgGiBaF5NtJZLALgWfo5n\n" ++ "hmC8+G8F0F78znQtPwJBANexu+Tg5KfOnzSILJMo3oXiXhf5PqXIDmbN0BKyCKAQ\n" ++ "LfkcEcUbVfmDaHpvzwY9VEaoMOKVLitETXdNSxVpvWM=\n" ++ "-----END RSA PRIVATE KEY-----\n"; ++ ++const gnutls_datum_t server_key = { server_key_pem, ++ sizeof(server_key_pem) ++}; ++ ++ ++/* A very basic TLS client, with anonymous authentication. ++ */ ++ ++static void client(int fd, const char *prio) ++{ ++ int ret; ++ gnutls_anon_client_credentials_t anoncred; ++ gnutls_certificate_credentials_t x509_cred; ++ gnutls_session_t session; ++ /* Need to enable anonymous KX specifically. */ ++ ++ gnutls_global_init(); ++ ++ if (debug) { ++ gnutls_global_set_log_function(client_log_func); ++ gnutls_global_set_log_level(7); ++ } ++ ++ gnutls_anon_allocate_client_credentials(&anoncred); ++ gnutls_certificate_allocate_credentials(&x509_cred); ++ ++ /* Initialize TLS session ++ */ ++ gnutls_init(&session, GNUTLS_CLIENT); ++ ++ /* Use default priorities */ ++ gnutls_priority_set_direct(session, prio, NULL); ++ ++ /* put the anonymous credentials to the current session ++ */ ++ gnutls_credentials_set(session, GNUTLS_CRD_ANON, anoncred); ++ gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred); ++ ++ gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) fd); ++ ++ /* Perform the TLS handshake ++ */ ++ do { ++ ret = gnutls_handshake(session); ++ } ++ while (ret < 0 && gnutls_error_is_fatal(ret) == 0); ++ ++ if (ret < 0) { ++ fprintf(stderr, "client: Handshake failed (expected)\n"); ++ gnutls_perror(ret); ++ exit(0); ++ } else { ++ if (debug) ++ fprintf(stderr, "client: Handshake was completed\n"); ++ } ++ ++ close(fd); ++ ++ gnutls_deinit(session); ++ ++ gnutls_anon_free_client_credentials(anoncred); ++ gnutls_certificate_free_credentials(x509_cred); ++ ++ gnutls_global_deinit(); ++} ++ ++ ++/* These are global */ ++pid_t child; ++ ++static void terminate(int ret) ++{ ++ kill(child, SIGTERM); ++ exit(ret); ++} ++ ++static void server(int fd, const char *prio) ++{ ++ int ret; ++ uint8_t id[255]; ++ uint8_t buffer[] = "\x16\x03\x00\x01\x25" ++ "\x02\x00\x01\x21" ++ "\x03\x00"/*Server Version */ ++ /*Random*/"\x00\x00\x00\x00\x01\x00\x00\x00\x00\x01\x00\x00\x00\x00\x01\x00\x00\x00\x00\x01\x00\x00\x00\x00\x01\x00\x00\x00\x00\x01\x00\x00" ++ /*SessionID*/"\xfe"; ++ ++ ret = read(fd, id, sizeof(id)); ++ if (ret < 0) { ++ abort(); ++ } ++ ++ ret = write(fd, buffer, sizeof(buffer)); ++ if (ret < 0) { ++ return; ++ } ++ ++ memset(id, 0xff, sizeof(id)); ++ ret = write(fd, id, sizeof(id)); ++ if (ret < 0) { ++ return; ++ } ++ ++ memset(id, 0xff, sizeof(id)); ++ ret = write(fd, id, sizeof(id)); ++ if (ret < 0) { ++ return; ++ } ++ sleep(3); ++ ++ return; ++} ++ ++static void start(const char *prio) ++{ ++ int fd[2]; ++ int ret; ++ ++ ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd); ++ if (ret < 0) { ++ perror("socketpair"); ++ exit(1); ++ } ++ ++ child = fork(); ++ if (child < 0) { ++ perror("fork"); ++ exit(1); ++ } ++ ++ if (child) { ++ /* parent */ ++ close(fd[1]); ++ server(fd[0], prio); ++ kill(child, SIGTERM); ++ } else { ++ close(fd[0]); ++ client(fd[1], prio); ++ exit(0); ++ } ++} ++ ++static void ch_handler(int sig) ++{ ++ int status, ret = 0; ++ wait(&status); ++ if (WEXITSTATUS(status) != 0 || ++ (WIFSIGNALED(status) && WTERMSIG(status) == SIGSEGV)) { ++ if (WIFSIGNALED(status)) { ++ fprintf(stderr, "Child died with sigsegv\n"); ++ ret = 1; ++ } else { ++ fprintf(stderr, "Child died with status %d\n", ++ WEXITSTATUS(status)); ++ } ++ terminate(ret); ++ } ++ return; ++} ++ ++int main(int argc, char **argv) ++{ ++ signal(SIGCHLD, ch_handler); ++ ++ if (argc > 1) ++ debug = 1; ++ ++ start("NORMAL"); ++ return 0; ++} ++ ++#endif /* _WIN32 */ diff --git a/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3467.patch b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3467.patch new file mode 100644 index 000000000000..e52965e2b824 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3467.patch @@ -0,0 +1,45 @@ +From d4ff19de527cd3eb444c560639324cda35bc838e Mon Sep 17 00:00:00 2001 +From: mancha <mancha1@zoho.com> +Date: Sun, 1 Jun 2014 +Subject: CVE-2014-3467 + +This is a backport adaptation for use with GnuTLS 2.12.23. + +Relevant upstream commit(s): +------------------------- +http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=ff3b5c68cc32e3 +http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=51612fca32dda4 + +--- + lib/minitasn1/decoding.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +--- a/lib/minitasn1/decoding.c ++++ b/lib/minitasn1/decoding.c +@@ -149,7 +149,7 @@ asn1_get_tag_der (const unsigned char *d + /* Long form */ + punt = 1; + ris = 0; +- while (punt <= der_len && der[punt] & 128) ++ while (punt < der_len && der[punt] & 128) + { + last = ris; + +@@ -259,7 +259,7 @@ _asn1_get_time_der (const unsigned char + if (der_len <= 0 || str == NULL) + return ASN1_DER_ERROR; + str_len = asn1_get_length_der (der, der_len, &len_len); +- if (str_len < 0 || str_size < str_len) ++ if (str_len <= 0 || str_size < str_len) + return ASN1_DER_ERROR; + memcpy (str, der + len_len, str_len); + str[str_len] = 0; +@@ -285,7 +285,7 @@ _asn1_get_objectid_der (const unsigned c + return ASN1_GENERIC_ERROR; + len = asn1_get_length_der (der, der_len, &len_len); + +- if (len < 0 || len > der_len || len_len > der_len) ++ if (len <= 0 || len > der_len || len_len > der_len) + return ASN1_DER_ERROR; + + val1 = der[len_len] / 40; diff --git a/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3468.patch b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3468.patch new file mode 100644 index 000000000000..bd324094c293 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3468.patch @@ -0,0 +1,45 @@ +From 24ed1d41707f873f3b7a22159e4bb3942f319fac Mon Sep 17 00:00:00 2001 +From: mancha <mancha1@zoho.com> +Date: Sun, 1 Jun 2014 +Subject: CVE-2014-3468 + +This is a backport adaptation for use with GnuTLS 2.12.23. + +Relevant upstream commit(s): +------------------------- +http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=1c3ccb3e040bf1 + +--- + lib/minitasn1/decoding.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +--- a/lib/minitasn1/decoding.c ++++ b/lib/minitasn1/decoding.c +@@ -226,7 +226,7 @@ asn1_get_octet_der (const unsigned char + int *ret_len, unsigned char *str, int str_size, + int *str_len) + { +- int len_len; ++ int len_len = 0; + + if (der_len <= 0) + return ASN1_GENERIC_ERROR; +@@ -347,7 +347,7 @@ asn1_get_bit_der (const unsigned char *d + int *ret_len, unsigned char *str, int str_size, + int *bit_len) + { +- int len_len, len_byte; ++ int len_len = 0, len_byte; + + if (der_len <= 0) + return ASN1_GENERIC_ERROR; +@@ -358,6 +358,9 @@ asn1_get_bit_der (const unsigned char *d + *ret_len = len_byte + len_len + 1; + *bit_len = len_byte * 8 - der[len_len]; + ++ if (*bit_len <= 0) ++ return ASN1_DER_ERROR; ++ + if (str_size >= len_byte) + memcpy (str, der + len_len + 1, len_byte); + else diff --git a/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3469.patch b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3469.patch new file mode 100644 index 000000000000..a99b433b3c92 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-CVE-2014-3469.patch @@ -0,0 +1,122 @@ +From 7f5a6256231e278aa7d00b6851c22fb457537262 Mon Sep 17 00:00:00 2001 +From: mancha <mancha1@zoho.com> +Date: Sun, 1 Jun 2014 +Subject: CVE-2014-3469 + +This is a backport adaptation for use with GnuTLS 2.12.23. + +Relevant upstream commit(s): +------------------------- +http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=a8b3e14f84174e +http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=3d6a02f19ff15a +http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=53958290ab731c + +--- + lib/minitasn1/decoding.c | 11 ++++++++--- + lib/minitasn1/element.c | 27 ++++++++++++++++++--------- + 2 files changed, 26 insertions(+), 12 deletions(-) + +--- a/lib/minitasn1/decoding.c ++++ b/lib/minitasn1/decoding.c +@@ -231,7 +231,6 @@ asn1_get_octet_der (const unsigned char + if (der_len <= 0) + return ASN1_GENERIC_ERROR; + +- /* if(str==NULL) return ASN1_SUCCESS; */ + *str_len = asn1_get_length_der (der, der_len, &len_len); + + if (*str_len < 0) +@@ -239,7 +238,10 @@ asn1_get_octet_der (const unsigned char + + *ret_len = *str_len + len_len; + if (str_size >= *str_len) +- memcpy (str, der + len_len, *str_len); ++ { ++ if (*str_len > 0 && str != NULL) ++ memcpy (str, der + len_len, *str_len); ++ } + else + { + return ASN1_MEM_ERROR; +@@ -362,7 +364,10 @@ asn1_get_bit_der (const unsigned char *d + return ASN1_DER_ERROR; + + if (str_size >= len_byte) +- memcpy (str, der + len_len + 1, len_byte); ++ { ++ if (len_byte > 0 && str) ++ memcpy (str, der + len_len + 1, len_byte); ++ } + else + { + return ASN1_MEM_ERROR; +--- a/lib/minitasn1/element.c ++++ b/lib/minitasn1/element.c +@@ -112,8 +112,11 @@ _asn1_convert_integer (const unsigned ch + /* VALUE_OUT is too short to contain the value conversion */ + return ASN1_MEM_ERROR; + +- for (k2 = k; k2 < SIZEOF_UNSIGNED_LONG_INT; k2++) +- value_out[k2 - k] = val[k2]; ++ if (value_out != NULL) ++ { ++ for (k2 = k; k2 < SIZEOF_UNSIGNED_LONG_INT; k2++) ++ value_out[k2 - k] = val[k2]; ++ } + + #if 0 + printf ("_asn1_convert_integer: valueIn=%s, lenOut=%d", value, *len); +@@ -611,7 +614,8 @@ asn1_write_value (asn1_node node_root, c + if (ptr_size < data_size) { \ + return ASN1_MEM_ERROR; \ + } else { \ +- memcpy( ptr, data, data_size); \ ++ if (ptr && data_size > 0) \ ++ memcpy( ptr, data, data_size); \ + } + + #define PUT_STR_VALUE( ptr, ptr_size, data) \ +@@ -620,16 +624,19 @@ asn1_write_value (asn1_node node_root, c + return ASN1_MEM_ERROR; \ + } else { \ + /* this strcpy is checked */ \ +- _asn1_strcpy(ptr, data); \ ++ if (ptr) { \ ++ _asn1_strcpy(ptr, data); \ ++ } \ + } + + #define ADD_STR_VALUE( ptr, ptr_size, data) \ +- *len = (int) _asn1_strlen(data) + 1; \ +- if (ptr_size < (int) _asn1_strlen(ptr)+(*len)) { \ ++ *len += _asn1_strlen(data); \ ++ if (ptr_size < (int) *len) { \ ++ (*len)++; \ + return ASN1_MEM_ERROR; \ + } else { \ + /* this strcat is checked */ \ +- _asn1_strcat(ptr, data); \ ++ if (ptr) _asn1_strcat (ptr, data); \ + } + + /** +@@ -786,7 +793,9 @@ asn1_read_value (asn1_node root, const c + case TYPE_OBJECT_ID: + if (node->type & CONST_ASSIGN) + { +- value[0] = 0; ++ *len = 0; ++ if (value) ++ value[0] = 0; + p = node->down; + while (p) + { +@@ -800,7 +809,7 @@ asn1_read_value (asn1_node root, const c + } + p = p->right; + } +- *len = _asn1_strlen (value) + 1; ++ (*len)++; + } + else if ((node->type & CONST_DEFAULT) && (node->value == NULL)) + { diff --git a/net-libs/gnutls/files/gnutls-2.12.23-cross-compile.patch b/net-libs/gnutls/files/gnutls-2.12.23-cross-compile.patch new file mode 100644 index 000000000000..31178fcd8c46 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-cross-compile.patch @@ -0,0 +1,69 @@ +use pkg-config to locate zlib rather than hardcoding system -L/-I paths + +for pthreads, just hardcode it enabled + +for gnutls, don't hardcode -L/-I all the time to the host paths + +--- a/lib/configure.ac ++++ b/lib/configure.ac +@@ -70,26 +70,23 @@ AC_ARG_WITH(zlib, AS_HELP_STRING([--without-zlib], + AC_MSG_CHECKING([whether to include zlib compression support]) + if test x$ac_zlib != xno; then + AC_MSG_RESULT(yes) +- AC_LIB_HAVE_LINKFLAGS(z,, [#include <zlib.h>], [compress (0, 0, 0, 0);]) +- if test "$ac_cv_libz" != yes; then +- AC_MSG_WARN( +-*** +-*** ZLIB was not found. You will not be able to use ZLIB compression.) +- fi + else + AC_MSG_RESULT(no) + fi + +-PKG_CHECK_EXISTS(zlib, ZLIB_HAS_PKGCONFIG=y, ZLIB_HAS_PKGCONFIG=n) +- + if test x$ac_zlib != xno; then ++ PKG_CHECK_MODULES(ZLIB, zlib, ZLIB_HAS_PKGCONFIG=y, ZLIB_HAS_PKGCONFIG=n) + if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then ++ LTLIBZ=$ZLIB_LIBS ++ AC_DEFINE([HAVE_LIBZ], [1], [zlib is enabled]) ++ AC_SUBST(LTLIBZ) + if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then + GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib" + else + GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib" + fi + else ++ AC_LIB_HAVE_LINKFLAGS(z,, [#include <zlib.h>], [compress (0, 0, 0, 0);]) + GNUTLS_ZLIB_LIBS_PRIVATE="$LTLIBZ" + fi + fi +@@ -124,10 +121,12 @@ fi + lgl_INIT + + AC_CHECK_FUNCS(getrusage,,) +-AC_LIB_HAVE_LINKFLAGS(pthread,, [#include <pthread.h>], [pthread_mutex_lock (0);]) ++LTLIBPTHREAD='-pthread' ++AC_DEFINE([HAVE_LIBPTHREAD], [1], [pthread enabled]) ++AC_SUBST(LTLIBPTHREAD) + +-LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS" +-LIBGNUTLS_CFLAGS="-I${includedir}" ++LIBGNUTLS_LIBS="-lgnutls $LIBS" ++LIBGNUTLS_CFLAGS="" + AC_SUBST(LIBGNUTLS_LIBS) + AC_SUBST(LIBGNUTLS_CFLAGS) + +--- a/libextra/configure.ac ++++ b/libextra/configure.ac +@@ -41,8 +41,8 @@ LIBGNUTLS_EXTRA_HOOKS + + xgl_INIT + +-LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS" +-LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}" ++LIBGNUTLS_EXTRA_LIBS="-lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS" ++LIBGNUTLS_EXTRA_CFLAGS="" + AC_SUBST(LIBGNUTLS_EXTRA_LIBS) + AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS) + diff --git a/net-libs/gnutls/files/gnutls-2.12.23-gdoc-perl-5.18.patch b/net-libs/gnutls/files/gnutls-2.12.23-gdoc-perl-5.18.patch new file mode 100644 index 000000000000..a89e8f253058 --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-gdoc-perl-5.18.patch @@ -0,0 +1,137 @@ +--- gnutls-2.12.23.orig/doc/scripts/gdoc 2011-04-08 02:30:44.000000000 +0200 ++++ gnutls-2.12.23/doc/scripts/gdoc 2014-03-10 01:53:28.899566076 +0200 +@@ -7,6 +7,8 @@ + ## Copyright (c) 2001, 2002 Nikos Mavrogiannopoulos + ## added -tex + ## Copyright (c) 1998 Michael Zucchi ++## Copyright (c) 2013 Adam Sampson ++## made highlighting not depend on hash order, for Perl 5.18 + + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by +@@ -143,44 +145,44 @@ + # One for each output format + + # these work fairly well +-%highlights_html = ( $type_constant, "<i>\$2</i>", +- $type_func, "<b>\$1</b>", +- $type_struct, "<i>\$1</i>", +- $type_param, "<tt><b>\$1</b></tt>" ); ++@highlights_html = ( [$type_constant, "<i>\$2</i>"], ++ [$type_func, "<b>\$1</b>"], ++ [$type_struct, "<i>\$1</i>"], ++ [$type_param, "<tt><b>\$1</b></tt>"] ); + $blankline_html = "<p>"; + +-%highlights_texinfo = ( $type_constant, "\\\@code{\$2}", +- $type_func, "\\\@code{\$1}", +- $type_struct, "\\\@code{\$1}", +- $type_param, "\\\@code{\$1}" ); ++@highlights_texinfo = ( [$type_constant, "\\\@code{\$2}"], ++ [$type_func, "\\\@code{\$1}"], ++ [$type_struct, "\\\@code{\$1}"], ++ [$type_param, "\\\@code{\$1}"] ); + $blankline_texinfo = ""; + +-%highlights_tex = ( $type_constant, "{\\\\it \$2}", +- $type_func, "{\\\\bf \$1}", +- $type_struct, "{\\\\it \$1}", +- $type_param, "{\\\\bf \$1}" ); ++@highlights_tex = ( [$type_constant, "{\\\\it \$2}"], ++ [$type_func, "{\\\\bf \$1}"], ++ [$type_struct, "{\\\\it \$1}"], ++ [$type_param, "{\\\\bf \$1}"] ); + $blankline_tex = "\\\\"; + + # sgml, docbook format +-%highlights_sgml = ( $type_constant, "<replaceable class=\"option\">\$2</replaceable>", +- $type_func, "<function>\$1</function>", +- $type_struct, "<structname>\$1</structname>", +- $type_env, "<envar>\$1</envar>", +- $type_param, "<parameter>\$1</parameter>" ); ++@highlights_sgml = ( [$type_constant, "<replaceable class=\"option\">\$2</replaceable>"], ++ [$type_func, "<function>\$1</function>"], ++ [$type_struct, "<structname>\$1</structname>"], ++ [$type_env, "<envar>\$1</envar>"], ++ [$type_param, "<parameter>\$1</parameter>"] ); + $blankline_sgml = "</para><para>\n"; + + # these are pretty rough +-%highlights_man = ( $type_constant, "\\\\fB\$2\\\\fP", +- $type_func, "\\\\fB\$1\\\\fP", +- $type_struct, "\\\\fB\$1\\\\fP", +- $type_param, "\\\\fI\$1\\\\fP" ); ++@highlights_man = ( [$type_constant, "\\\\fB\$2\\\\fP"], ++ [$type_func, "\\\\fB\$1\\\\fP"], ++ [$type_struct, "\\\\fB\$1\\\\fP"], ++ [$type_param, "\\\\fI\$1\\\\fP"] ); + $blankline_man = ""; + + # text-mode +-%highlights_text = ( $type_constant, "\$2", +- $type_func, "\$1", +- $type_struct, "\$1", +- $type_param, "\$1" ); ++@highlights_text = ( [$type_constant, "\$2"], ++ [$type_func, "\$1"], ++ [$type_struct, "\$1"], ++ [$type_param, "\$1"] ); + $blankline_text = ""; + + +@@ -201,7 +203,7 @@ + + $verbose = 0; + $output_mode = "man"; +-%highlights = %highlights_man; ++@highlights = @highlights_man; + $blankline = $blankline_man; + $modulename = "API Documentation"; + $sourceversion = strftime "%Y-%m-%d", localtime; +@@ -210,27 +212,27 @@ + $cmd = shift @ARGV; + if ($cmd eq "-html") { + $output_mode = "html"; +- %highlights = %highlights_html; ++ @highlights = @highlights_html; + $blankline = $blankline_html; + } elsif ($cmd eq "-man") { + $output_mode = "man"; +- %highlights = %highlights_man; ++ @highlights = @highlights_man; + $blankline = $blankline_man; + } elsif ($cmd eq "-tex") { + $output_mode = "tex"; +- %highlights = %highlights_tex; ++ @highlights = @highlights_tex; + $blankline = $blankline_tex; + } elsif ($cmd eq "-texinfo") { + $output_mode = "texinfo"; + %highlights = %highlights_texinfo; +- $blankline = $blankline_texinfo; ++ @blankline = @blankline_texinfo; + } elsif ($cmd eq "-text") { + $output_mode = "text"; + %highlights = %highlights_text; +- $blankline = $blankline_text; ++ @blankline = @blankline_text; + } elsif ($cmd eq "-docbook") { + $output_mode = "sgml"; +- %highlights = %highlights_sgml; ++ @highlights = @highlights_sgml; + $blankline = $blankline_sgml; + } elsif ($cmd eq "-listfunc") { + $output_mode = "listfunc"; +@@ -322,9 +324,10 @@ + my $line; + my $ret = ""; + +- foreach $pattern (keys %highlights) { ++ foreach $highlight (@highlights) { ++ my ($pattern, $replace) = @$highlight; + # print "scanning pattern $pattern ($highlights{$pattern})\n"; +- $contents =~ s:$pattern:repstr($pattern, $highlights{$pattern}, $1, $2, $3, $4):gse; ++ $contents =~ s:$pattern:repstr($pattern, $replace, $1, $2, $3, $4):gse; + } + foreach $line (split "\n", $contents) { + if ($line eq ""){ diff --git a/net-libs/gnutls/files/gnutls-2.12.23-gl-tests-getaddrinfo-skip-if-no-network.patch b/net-libs/gnutls/files/gnutls-2.12.23-gl-tests-getaddrinfo-skip-if-no-network.patch new file mode 100644 index 000000000000..6d04ccbdcd8d --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-gl-tests-getaddrinfo-skip-if-no-network.patch @@ -0,0 +1,30 @@ +From 4b3252d59ef2d73118e2de6743ba58e2cbafa008 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Sat, 8 Mar 2014 22:13:51 +0200 +Subject: [PATCH] tests: getaddrinfo: skip if no network + +When running tests under network sandbox, there is no connectivity to +the DNS, in this case function returns system error and ECONNREFUSED +this should result in skipping test. + +Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> +--- + tests/test-getaddrinfo.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gl/tests/test-getaddrinfo.c b/gl/tests/test-getaddrinfo.c +index acf9cd6..b155410 100644 +--- a/gl/tests/test-getaddrinfo.c ++++ b/gl/tests/test-getaddrinfo.c +@@ -85,7 +85,7 @@ simple (char const *host, char const *service) + /* EAI_AGAIN is returned if no network is available. Don't fail + the test merely because someone is down the country on their + in-law's farm. */ +- if (res == EAI_AGAIN) ++ if (res == EAI_AGAIN || (res == EAI_SYSTEM && err == ECONNREFUSED)) + { + skip++; + fprintf (stderr, "skipping getaddrinfo test: no network?\n"); +-- +1.8.3.2 + diff --git a/net-libs/gnutls/files/gnutls-2.12.23-hppa.patch b/net-libs/gnutls/files/gnutls-2.12.23-hppa.patch new file mode 100644 index 000000000000..16981cf2e91b --- /dev/null +++ b/net-libs/gnutls/files/gnutls-2.12.23-hppa.patch @@ -0,0 +1,44 @@ +From 043fe2c28a5f6b3ec6202090faaf7933b247e40c Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Mon, 17 Jun 2013 13:27:55 +0300 +Subject: [PATCH] build: fix hppa compile + +gentoo#471914 + +O_SYNC : 262144 +O_DSYNC: 262144 +O_RSYNC: 524288 +--- + gl/tests/test-fcntl-h.c | 2 +- + lib/gl/tests/test-fcntl-h.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gl/tests/test-fcntl-h.c b/gl/tests/test-fcntl-h.c +index a6c9621..9e13491 100644 +--- a/gl/tests/test-fcntl-h.c ++++ b/gl/tests/test-fcntl-h.c +@@ -111,7 +111,7 @@ main (void) + #if O_RSYNC && O_RSYNC != O_DSYNC + case O_RSYNC: + #endif +-#if O_SYNC && O_SYNC != O_RSYNC ++#if O_SYNC && O_SYNC != O_RSYNC && O_SYNC != O_DSYNC + case O_SYNC: + #endif + #if O_TTY_INIT +diff --git a/lib/gl/tests/test-fcntl-h.c b/lib/gl/tests/test-fcntl-h.c +index a6c9621..9e13491 100644 +--- a/lib/gl/tests/test-fcntl-h.c ++++ b/lib/gl/tests/test-fcntl-h.c +@@ -111,7 +111,7 @@ main (void) + #if O_RSYNC && O_RSYNC != O_DSYNC + case O_RSYNC: + #endif +-#if O_SYNC && O_SYNC != O_RSYNC ++#if O_SYNC && O_SYNC != O_RSYNC && O_SYNC != O_DSYNC + case O_SYNC: + #endif + #if O_TTY_INIT +-- +1.8.1.5 + diff --git a/net-libs/gnutls/gnutls-2.12.23-r6.ebuild b/net-libs/gnutls/gnutls-2.12.23-r6.ebuild new file mode 100644 index 000000000000..cc0fcb211d19 --- /dev/null +++ b/net-libs/gnutls/gnutls-2.12.23-r6.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools libtool eutils versionator + +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" +HOMEPAGE="http://www.gnutls.org/" +SRC_URI="ftp://ftp.gnutls.org/gcrypt/gnutls/v$(get_version_component_range 1-2)/${P}.tar.bz2" + +# LGPL-2.1 for libgnutls library and GPL-3 for libgnutls-extra library. +LICENSE="GPL-3 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="bindist +cxx doc examples guile lzo +nettle nls pkcs11 static-libs test zlib" + +RDEPEND=">=dev-libs/libtasn1-0.3.4 + guile? ( >=dev-scheme/guile-1.8[networking] ) + nettle? ( >=dev-libs/nettle-2.1[gmp] ) + !nettle? ( >=dev-libs/libgcrypt-1.4.0:0 ) + nls? ( virtual/libintl ) + pkcs11? ( >=app-crypt/p11-kit-0.11 ) + zlib? ( >=sys-libs/zlib-1.2.3.1 ) + !bindist? ( lzo? ( >=dev-libs/lzo-2 ) )" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/libtool + doc? ( dev-util/gtk-doc ) + nls? ( sys-devel/gettext ) + test? ( app-misc/datefudge )" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) + +pkg_setup() { + if use lzo && use bindist; then + ewarn "lzo support is disabled for binary distribution of GnuTLS due to licensing issues." + fi +} + +src_prepare() { + # tests/suite directory is not distributed + sed -i -e 's|AC_CONFIG_FILES(\[tests/suite/Makefile\])|:|' \ + configure.ac || die + + sed -i -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ + doc/Makefile.am || die + + for dir in . lib libextra; do + sed -i -e '/^AM_INIT_AUTOMAKE/s/-Werror//' "${dir}/configure.ac" || die + done + + epatch "${FILESDIR}"/${PN}-2.12.20-AF_UNIX.patch + epatch "${FILESDIR}"/${PN}-2.12.20-libadd.patch + epatch "${FILESDIR}"/${PN}-2.12.20-guile-parallelmake.patch + epatch "${FILESDIR}"/${P}-hppa.patch + epatch "${FILESDIR}"/${P}-gl-tests-getaddrinfo-skip-if-no-network.patch + epatch "${FILESDIR}"/${P}-gdoc-perl-5.18.patch + epatch "${FILESDIR}"/${P}-CVE-2013-2116.patch + epatch "${FILESDIR}"/${P}-CVE-2014-0092.patch + epatch "${FILESDIR}"/${P}-CVE-2014-1959.patch + epatch "${FILESDIR}"/${P}-CVE-2014-3466.patch + epatch "${FILESDIR}"/${P}-CVE-2014-3467.patch + epatch "${FILESDIR}"/${P}-CVE-2014-3468.patch + epatch "${FILESDIR}"/${P}-CVE-2014-3469.patch + epatch "${FILESDIR}"/${P}-cross-compile.patch + + # support user patches + epatch_user + + eautoreconf + + # Use sane .so versioning on FreeBSD. + elibtoolize +} + +src_configure() { + local myconf + use bindist && myconf="--without-lzo" || myconf="$(use_with lzo)" + [[ "${VALGRIND_TESTS}" != "1" ]] && myconf+=" --disable-valgrind-tests" + + econf \ + --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ + --without-libgcrypt-prefix \ + --without-libnettle-prefix \ + --without-libpth-prefix \ + --without-libreadline-prefix \ + $(use_enable cxx) \ + $(use_enable doc gtk-doc) \ + $(use_enable doc gtk-doc-pdf) \ + $(use_enable guile) \ + $(use_with !nettle libgcrypt) \ + $(use_enable nls) \ + $(use_with pkcs11 p11-kit) \ + $(use_enable static-libs static) \ + $(use_with zlib) \ + ${myconf} +} + +src_test() { + if has_version dev-util/valgrind && [[ ${VALGRIND_TESTS} != 1 ]]; then + elog + elog "You can set VALGRIND_TESTS=\"1\" to enable Valgrind tests." + elog + fi + + # parallel testing often fails + emake -j1 check +} + +src_install() { + default + + prune_libtool_files + + if use doc; then + dodoc doc/gnutls.{pdf,ps} + dohtml doc/gnutls.html + fi + + if use examples; then + docinto examples + dodoc doc/examples/*.c + fi +} diff --git a/net-libs/gnutls/gnutls-3.3.15.ebuild b/net-libs/gnutls/gnutls-3.3.15.ebuild new file mode 100644 index 000000000000..4f21b35a3355 --- /dev/null +++ b/net-libs/gnutls/gnutls-3.3.15.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools libtool eutils multilib-minimal versionator + +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" +HOMEPAGE="http://www.gnutls.org/" +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" + +# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. +# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" +IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}" +# heartbeat support is not disabled until re-licensing happens fullyf + +# NOTICE: sys-devel/autogen is required at runtime as we +# use system libopts +RDEPEND=">=dev-libs/libtasn1-3.9[${MULTILIB_USEDEP}] + >=dev-libs/nettle-2.7[gmp,${MULTILIB_USEDEP}] + <dev-libs/nettle-3[gmp,${MULTILIB_USEDEP}] + >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] + sys-devel/autogen + crywrap? ( net-dns/libidn ) + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) + guile? ( >=dev-scheme/guile-1.8:*[networking] ) + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) + pkcs11? ( >=app-crypt/p11-kit-0.20.7[${MULTILIB_USEDEP}] ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20140508 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${RDEPEND} + >=sys-devel/automake-1.11.6 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + doc? ( dev-util/gtk-doc ) + nls? ( sys-devel/gettext ) + test? ( app-misc/datefudge )" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) + +S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)" + +pkg_setup() { + # bug#520818 + export TZ=UTC +} + +src_prepare() { + sed -i \ + -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ + doc/Makefile.am || die + + # force regeneration of autogen-ed files + local file + for file in $(grep -l AutoGen-ed src/*.c) ; do + rm src/$(basename ${file} .c).{c,h} || die + done + + # force regeneration of makeinfo files + # have no idea why on some system these files are not + # accepted as-is, see bug#520818 + for file in $(grep -l "produced by makeinfo" doc/*.info) ; do + rm "${file}" || die + done + + # support user patches + epatch_user + + eautoreconf + + # Use sane .so versioning on FreeBSD. + elibtoolize + + # bug 497472 + use cxx || epunt_cxx +} + +multilib_src_configure() { + LINGUAS="${LINGUAS//en/en@boldquot en@quot}" + + # TPM needs to be tested before being enabled + # hardware-accell is disabled on OSX because the asm files force + # GNU-stack (as doesn't support that) and when that's removed ld + # complains about duplicate symbols + ECONF_SOURCE=${S} \ + econf \ + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ + --disable-valgrind-tests \ + --without-included-libtasn1 \ + --enable-heartbeat-support \ + $(use_enable cxx) \ + $(use_enable dane libdane) \ + $(multilib_native_use_enable doc gtk-doc) \ + $(multilib_native_use_enable doc gtk-doc-pdf) \ + $(multilib_native_use_enable guile) \ + $(multilib_native_use_enable crywrap) \ + $(use_enable nls) \ + $(use_enable openssl openssl-compatibility) \ + $(use_enable static-libs static) \ + $(use_with pkcs11 p11-kit) \ + $(use_with zlib) \ + --without-tpm \ + --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ + $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) + + if multilib_is_native_abi; then + ln -s "${S}"/doc/reference/html doc/reference/html || die + fi +} + +multilib_src_compile() { + if multilib_is_native_abi; then + default + + # symlink certtool for use in other ABIs + if use test; then + ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die + fi + else + emake -C gl + emake -C lib + emake -C extra + use dane && emake -C libdane + fi +} + +multilib_src_test() { + if multilib_is_native_abi; then + # parallel testing often fails + emake -j1 check + else + # use native ABI tools + ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \ + "${BUILD_DIR}"/src/ || die + + emake -C gl -j1 check + emake -C tests -j1 check + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" install + else + emake -C lib DESTDIR="${D}" install + emake -C extra DESTDIR="${D}" install + use dane && emake -C libdane DESTDIR="${D}" install + fi +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files --all + + dodoc doc/certtool.cfg + + if use doc; then + dodoc doc/gnutls.pdf + dohtml doc/gnutls.html + else + rm -fr "${ED}/usr/share/doc/${PF}/html" + fi + + if use examples; then + docinto examples + dodoc doc/examples/*.c + fi +} diff --git a/net-libs/gnutls/gnutls-3.3.16-r1.ebuild b/net-libs/gnutls/gnutls-3.3.16-r1.ebuild new file mode 100644 index 000000000000..1337f5f652ee --- /dev/null +++ b/net-libs/gnutls/gnutls-3.3.16-r1.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools libtool eutils multilib-minimal versionator + +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" +HOMEPAGE="http://www.gnutls.org/" +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" + +# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. +# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" +IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test zlib ${IUSE_LINGUAS// / linguas_}" +# heartbeat support is not disabled until re-licensing happens fullyf + +# NOTICE: sys-devel/autogen is required at runtime as we +# use system libopts +RDEPEND=">=dev-libs/libtasn1-3.9[${MULTILIB_USEDEP}] + >=dev-libs/nettle-2.7[gmp,${MULTILIB_USEDEP}] + >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] + sys-devel/autogen + crywrap? ( net-dns/libidn ) + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) + guile? ( >=dev-scheme/guile-1.8:*[networking] ) + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) + pkcs11? ( >=app-crypt/p11-kit-0.20.7[${MULTILIB_USEDEP}] ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20140508 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${RDEPEND} + >=sys-devel/automake-1.11.6 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + doc? ( + sys-apps/texinfo + dev-util/gtk-doc + ) + nls? ( sys-devel/gettext ) + test? ( app-misc/datefudge )" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) + +S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)" + +pkg_setup() { + # bug#520818 + export TZ=UTC +} + +src_prepare() { + sed -i \ + -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ + doc/Makefile.am || die + + # force regeneration of autogen-ed files + local file + for file in $(grep -l AutoGen-ed src/*.c) ; do + rm src/$(basename ${file} .c).{c,h} || die + done + + # force regeneration of makeinfo files + # have no idea why on some system these files are not + # accepted as-is, see bug#520818 + for file in $(grep -l "produced by makeinfo" doc/*.info) ; do + rm "${file}" || die + done + + # support user patches + epatch_user + + eautoreconf + + # Use sane .so versioning on FreeBSD. + elibtoolize + + # bug 497472 + use cxx || epunt_cxx +} + +multilib_src_configure() { + LINGUAS="${LINGUAS//en/en@boldquot en@quot}" + + # TPM needs to be tested before being enabled + # hardware-accell is disabled on OSX because the asm files force + # GNU-stack (as doesn't support that) and when that's removed ld + # complains about duplicate symbols + ECONF_SOURCE=${S} \ + econf \ + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ + --disable-valgrind-tests \ + --without-included-libtasn1 \ + --enable-heartbeat-support \ + $(use_enable cxx) \ + $(use_enable dane libdane) \ + $(multilib_native_use_enable doc) \ + $(multilib_native_use_enable doc gtk-doc) \ + $(multilib_native_use_enable guile) \ + $(multilib_native_use_enable crywrap) \ + $(use_enable nls) \ + $(use_enable openssl openssl-compatibility) \ + $(use_enable static-libs static) \ + $(use_with pkcs11 p11-kit) \ + $(use_with zlib) \ + --without-tpm \ + --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ + $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) + + if multilib_is_native_abi; then + ln -s "${S}"/doc/reference/html doc/reference/html || die + fi +} + +multilib_src_compile() { + if multilib_is_native_abi; then + default + + # symlink certtool for use in other ABIs + if use test; then + ln -s "${BUILD_DIR}"/src "${T}"/native-tools || die + fi + else + emake -C gl + emake -C lib + emake -C extra + use dane && emake -C libdane + fi +} + +multilib_src_test() { + if multilib_is_native_abi; then + # parallel testing often fails + emake -j1 check + else + # use native ABI tools + ln -s "${T}"/native-tools/{certtool,gnutls-{serv,cli}} \ + "${BUILD_DIR}"/src/ || die + + emake -C gl -j1 check + emake -C tests -j1 check + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" install + else + emake -C lib DESTDIR="${D}" install + emake -C extra DESTDIR="${D}" install + use dane && emake -C libdane DESTDIR="${D}" install + fi +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files --all + + dodoc doc/certtool.cfg + + if use doc; then + dohtml doc/gnutls.html + else + rm -fr "${ED}/usr/share/doc/${PF}/html" + fi + + if use examples; then + docinto examples + dodoc doc/examples/*.c + fi +} diff --git a/net-libs/gnutls/gnutls-3.4.3-r1.ebuild b/net-libs/gnutls/gnutls-3.4.3-r1.ebuild new file mode 100644 index 000000000000..5a601f952467 --- /dev/null +++ b/net-libs/gnutls/gnutls-3.4.3-r1.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools libtool eutils multilib-minimal versionator + +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" +HOMEPAGE="http://www.gnutls.org/" +SRC_URI="mirror://gnupg/gnutls/v$(get_version_component_range 1-2)/${P}.tar.xz" + +# LGPL-3 for libgnutls library and GPL-3 for libgnutls-extra library. +# soon to be relicensed as LGPL-2.1 unless heartbeat extension enabled. +LICENSE="GPL-3 LGPL-3" +SLOT="0/30" # libgnutls.so number +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN" +IUSE="+cxx +crywrap dane doc examples guile nls +openssl pkcs11 static-libs test +tools zlib ${IUSE_LINGUAS// / linguas_}" +# heartbeat support is not disabled until re-licensing happens fullyf + +# NOTICE: sys-devel/autogen is required at runtime as we +# use system libopts +RDEPEND=">=dev-libs/libtasn1-3.9[${MULTILIB_USEDEP}] + >=dev-libs/nettle-3.1[gmp,${MULTILIB_USEDEP}] + >=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}] + tools? ( sys-devel/autogen ) + crywrap? ( net-dns/libidn ) + dane? ( >=net-dns/unbound-1.4.20[${MULTILIB_USEDEP}] ) + guile? ( >=dev-scheme/guile-1.8:*[networking] ) + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) + pkcs11? ( >=app-crypt/p11-kit-0.23.1[${MULTILIB_USEDEP}] ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20140508 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${RDEPEND} + >=sys-devel/automake-1.11.6 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + doc? ( + sys-apps/texinfo + dev-util/gtk-doc + ) + nls? ( sys-devel/gettext ) + test? ( app-misc/datefudge )" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) + +S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)" + +pkg_setup() { + # bug#520818 + export TZ=UTC +} + +src_prepare() { + sed -i \ + -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' \ + doc/Makefile.am || die + + # force regeneration of autogen-ed files + local file + for file in $(grep -l AutoGen-ed src/*.c) ; do + rm src/$(basename ${file} .c).{c,h} || die + done + + # force regeneration of makeinfo files + # have no idea why on some system these files are not + # accepted as-is, see bug#520818 + for file in $(grep -l "produced by makeinfo" doc/*.info) ; do + rm "${file}" || die + done + + # support user patches + epatch_user + + eautoreconf + + # Use sane .so versioning on FreeBSD. + elibtoolize + + # bug 497472 + use cxx || epunt_cxx +} + +multilib_src_configure() { + LINGUAS="${LINGUAS//en/en@boldquot en@quot}" + + # TPM needs to be tested before being enabled + # hardware-accell is disabled on OSX because the asm files force + # GNU-stack (as doesn't support that) and when that's removed ld + # complains about duplicate symbols + ECONF_SOURCE=${S} \ + econf \ + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ + --disable-valgrind-tests \ + --without-included-libtasn1 \ + --enable-heartbeat-support \ + $(use_enable cxx) \ + $(use_enable dane libdane) \ + $(multilib_native_use_enable tools) \ + $(multilib_native_use_enable doc) \ + $(multilib_native_use_enable doc gtk-doc) \ + $(multilib_native_use_enable guile) \ + $(multilib_native_use_enable crywrap) \ + $(multilib_native_use_enable test tests) \ + $(use_enable nls) \ + $(use_enable openssl openssl-compatibility) \ + $(use_enable static-libs static) \ + $(use_with pkcs11 p11-kit) \ + $(use_with zlib) \ + --without-tpm \ + --with-unbound-root-key-file=/etc/dnssec/root-anchors.txt \ + $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files --all + + dodoc doc/certtool.cfg + + if use doc; then + dohtml doc/gnutls.html + else + rm -fr "${ED}/usr/share/doc/${PF}/html" + fi + + if use examples; then + docinto examples + dodoc doc/examples/*.c + fi +} diff --git a/net-libs/gnutls/metadata.xml b/net-libs/gnutls/metadata.xml new file mode 100644 index 000000000000..33c4adde8c14 --- /dev/null +++ b/net-libs/gnutls/metadata.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>crypto</herd> + <use> + <flag name="bindist"> + Disallow building LZO support, because of a license + incompatibility with <pkg>dev-libs/lzo</pkg> + </flag> + <flag name="crywrap" restrict=">=net-libs/gnutls-3.2.10"> + Build the crywrap TLS proxy service + </flag> + <flag name="dane" restrict=">=net-libs/gnutls-3.1.3"> + Build libgnutls-dane, implementing DNS-based Authentication of + Named Entities. Requires <pkg>net-dns/unbound</pkg> + </flag> + <flag name="nettle" restrict="<net-libs/gnutls-3"> + Use <pkg>dev-libs/nettle</pkg> as crypto backend + </flag> + <flag name="openssl"> + Build openssl compatibility libraries + </flag> + <flag name="pkcs11"> + Add support for PKCS#11 through <pkg>app-crypt/p11-kit</pkg> + </flag> + <flag name="tools"> + Build extra tools + </flag> + </use> +</pkgmetadata> diff --git a/net-libs/gsnmp/Manifest b/net-libs/gsnmp/Manifest new file mode 100644 index 000000000000..1b7e09fac471 --- /dev/null +++ b/net-libs/gsnmp/Manifest @@ -0,0 +1 @@ +DIST gsnmp-0.3.0.tar.gz 423137 SHA256 e428b61071b8ba2971fc8737ed2987210b04a71ffde307900df12c06a0bed0f9 SHA512 dcba2eb5ae31704fe6dc3e0b98f3032666b7b2be1efdff0f60a3cf4d0e0c3384563d72e5289a8d10c447f00da73f646a1963ffe08b46c7bc165972ac1b07c8b1 WHIRLPOOL 1ada5531cf66c623f9d1c32ecc5f60cd6f86c8cd8dc2cf75b1bf23be1369ee0f085e3dd98e6495cb85c47a2a8f4f40a414230c96d6f9161fc592841323554af5 diff --git a/net-libs/gsnmp/files/gsnmp-0.3.0-g_access.patch b/net-libs/gsnmp/files/gsnmp-0.3.0-g_access.patch new file mode 100644 index 000000000000..505f7d166a9d --- /dev/null +++ b/net-libs/gsnmp/files/gsnmp-0.3.0-g_access.patch @@ -0,0 +1,10 @@ +--- a/src/transport.c ++++ b/src/transport.c +@@ -32,6 +32,7 @@ + #include "transport.h" + #include "dispatch.h" + #include "pdu.h" /* xxx only needed for debugging flags... */ ++#include <glib/gstdio.h> /* g_access() */ + + + static GUdpSocket *udp_ipv4_socket = NULL; diff --git a/net-libs/gsnmp/files/gsnmp-0.3.0-pkg_config.patch b/net-libs/gsnmp/files/gsnmp-0.3.0-pkg_config.patch new file mode 100644 index 000000000000..2e837caa820d --- /dev/null +++ b/net-libs/gsnmp/files/gsnmp-0.3.0-pkg_config.patch @@ -0,0 +1,31 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -21,10 +21,18 @@ + + AC_PROG_LIBTOOL + ++PKG_PROG_PKG_CONFIG ++ + dnl Checks for libraries. + +-AM_PATH_GLIB_2_0(2.0.0) +-AM_PATH_GNET_2_0(2.0.4) ++PKG_CHECK_MODULES(GLIB, glib-2.0 > 2.0.0,[ ++ LIBS="$LIBS $GLIB_LIBS" ++ CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS" ++ ], AC_MSG_ERROR[Could not find glib]) ++PKG_CHECK_MODULES(GNET, gnet-2.0 > 2.0.4,[ ++ LIBS="$LIBS $GNET_LIBS" ++ CPPFLAGS="$CPPFLAGS $GNET_CFLAGS" ++ ], AC_MSG_ERROR[Could not find gnet]) + + dnl Checks for header files. + dnl AC_HEADER_STDC +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,5 +1,3 @@ +-AM_CPPFLAGS = $(GNET_CFLAGS) +- + lib_LTLIBRARIES = libgsnmp.la + libgsnmp_la_SOURCES = ber.c ber.h \ + pdu.c pdu.h \ diff --git a/net-libs/gsnmp/files/gsnmp-0.3.0-underquoting.patch b/net-libs/gsnmp/files/gsnmp-0.3.0-underquoting.patch new file mode 100644 index 000000000000..877aeceb0b0e --- /dev/null +++ b/net-libs/gsnmp/files/gsnmp-0.3.0-underquoting.patch @@ -0,0 +1,11 @@ +--- a/gsnmp.m4 ++++ b/gsnmp.m4 +@@ -1,7 +1,7 @@ + dnl AM_PATH_GSNMP() + dnl + +-AC_DEFUN(AM_PATH_GSNMP, ++AC_DEFUN([AM_PATH_GSNMP], + [ + PKG_CHECK_MODULES(GSNMP, glib-2.0 >= 2.0.1) + ]) diff --git a/net-libs/gsnmp/gsnmp-0.3.0.ebuild b/net-libs/gsnmp/gsnmp-0.3.0.ebuild new file mode 100644 index 000000000000..de484916524a --- /dev/null +++ b/net-libs/gsnmp/gsnmp-0.3.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="An SNMP library based on glib and gnet" +HOMEPAGE="http://cnds.eecs.jacobs-university.de/users/schoenw/articles/software/index.html" +SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~amd64-linux ~ppc x86" +IUSE="static-libs" + +DEPEND=" + dev-libs/glib:2 + net-libs/gnet +" +RDEPEND="${DEPEND}" + +DOCS="README" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-g_access.patch \ + "${FILESDIR}"/${P}-pkg_config.patch \ + "${FILESDIR}"/${P}-underquoting.patch + + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + + prune_libtool_files +} diff --git a/net-libs/gsnmp/metadata.xml b/net-libs/gsnmp/metadata.xml new file mode 100644 index 000000000000..9ca15ca788e8 --- /dev/null +++ b/net-libs/gsnmp/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>netmon</herd> +</pkgmetadata> + diff --git a/net-libs/gsoap/Manifest b/net-libs/gsoap/Manifest new file mode 100644 index 000000000000..09473c22e02a --- /dev/null +++ b/net-libs/gsoap/Manifest @@ -0,0 +1,5 @@ +DIST gsoap_2.7.17.zip 10224444 SHA256 d3af1ce9464b28cacdf1dfbe09b689f8927cbcf3948479996aef52a39afa2c16 SHA512 efb5332e90cbed6013ac2f16b940404cc4de9e84bc85e671cb3588bc6620cd86c8db646a4f3cd77bb3b866dfcc8a793186736ab2241bb8cbaca8d313345d14ac WHIRLPOOL 955e845b5a8b9af1697ca8bcdbb77813f149f7ff162ec51e680c398dab9934c36418572004b7bd24200476b6d45b623f294053b932da2fce94f415becd369af7 +DIST gsoap_2.8.12.zip 19974348 SHA256 51eef118544fa846f4d2dea2eedf91c84c46a1abeafc5eee3dcff783f4015a00 SHA512 7f162936d8d331d94b0aa52042c512167198a8de5a279747f49494b0f17442feb4db2ac5abff54e46350562e774b6bdddc577049f7cb59807cab29b12d797a87 WHIRLPOOL 7557396a154405606b2b2a962ac5f19d4853a792c8f96333576e6229506c9fedd8c5652cc1560566dfb51203362063566d2780becb1e1bb0ca2714fabe0a0330 +DIST gsoap_2.8.19.zip 20628629 SHA256 11571e4274bb678cd979fb6e80caa0f74d41e1b17848fdb5192497553bb2f8fe SHA512 890f46976322cc409081c3fe9731452244c0c1efba9061b2d2d42a9449c0290be7801bf88c90dbce4aedf1118e2f888e83891d8d6c3c40e2add304f68480fc5a WHIRLPOOL 8113c7c80fcd4d39f340a5950a050980a09194a62e50665b9a661efa5eaeb624cc5031412057f50a44dd465e32e7bda188121b92c480bb00ca34ccf5678e2d43 +DIST gsoap_2.8.21.zip 20633048 SHA256 ddda90866288c7c3d50851b276bfa12e0ef2d4af6d280719aad94b1da0ea109a SHA512 c46f6b6c0ef6055df483408038d0bce822dcee42ff581e0a6350000402916a8ce227fd5b34685a09f95189086584a4aad3b2c5b4e86fea70bcfa50b726fd04f9 WHIRLPOOL 3e38a3f8263a4de01727c9562e4da6156946839dbeb8caad5d6ef665b195b8b1b692bcca8cb88b58e80c1c224190fa29cc0e6c2eee7117cd6b8b875619fe41c3 +DIST gsoap_2.8.22.zip 20806602 SHA256 2fdf14e6e4dece9409db53a3c4676a0b25711279bc2a8d8949a46c2d9907308b SHA512 b7a1b44d21e98b90efc68efa5a61ac69a4a312a3ca87ac4379d6ea15d4d81393fc5921212363f99a8cb1f7a28a736f5869c49318e94110de3df36ce20fc11822 WHIRLPOOL 0e7de5379382702c076a74fea875b4dd9bd1aec54c847919c5831afa8a14e1663aa4d97fd1c8088a7b7aaa9b32485561b2b519802f3a4984cfa87f7a8167fd05 diff --git a/net-libs/gsoap/files/gsoap-2.7-fix-pre-iso-headers.patch b/net-libs/gsoap/files/gsoap-2.7-fix-pre-iso-headers.patch new file mode 100644 index 000000000000..5762d5282211 --- /dev/null +++ b/net-libs/gsoap/files/gsoap-2.7-fix-pre-iso-headers.patch @@ -0,0 +1,98 @@ +--- gsoap/samples/factorytest/factorytest.cpp.orig 2009-03-04 01:16:22.300484305 +0100 ++++ gsoap/samples/factorytest/factorytest.cpp 2009-03-04 01:15:47.656485143 +0100 +@@ -49,7 +49,7 @@ + #include "soapH.h" + #include "factorytest.nsmap" + +-#include <iostream.h> ++#include <iostream> + + // default factory service endpoint: + const char *factory = "http://localhost:18085"; +@@ -167,7 +167,7 @@ + int main(int argc, char **argv) + { if (argc > 1) + factory = argv[1]; // use factory from command line arg by default +- cout << "Connecting to factory " << factory << endl; ++ std::cout << "Connecting to factory " << factory << std::endl; + Adder adder; // create unique new remote adder object + Counter counter1("myCounter"); // new counter object "myCounter" (created if not exists) + Counter counter2("myCounter"); // lookup and use counter "myCounter" (this is an alias to counter1!) +@@ -175,22 +175,22 @@ + counter1.set(adder.get()); + adder.add(3.0); + counter1.inc(); +- cout << "Adder=" << adder.get() << endl; +- cout << "Counter=" << counter2.get() << endl; // counter2 is an alias for counter1 so this prints the value of counter1 +- cout << "Sleep for 90 seconds to test factory server purging objects:" << endl; ++ std::cout << "Adder=" << adder.get() << std::endl; ++ std::cout << "Counter=" << counter2.get() << std::endl; // counter2 is an alias for counter1 so this prints the value of counter1 ++ std::cout << "Sleep for 90 seconds to test factory server purging objects:" << std::endl; + // counter is periodically incremented which keeps it alive + sleep(30); + counter1.inc(); +- cout << "Counter=" << counter2.get() << endl; ++ std::cout << "Counter=" << counter2.get() << std::endl; + sleep(30); + counter1.inc(); +- cout << "Counter=" << counter2.get() << endl; ++ std::cout << "Counter=" << counter2.get() << std::endl; + sleep(30); + counter1.inc(); +- cout << "Counter=" << counter2.get() << endl; ++ std::cout << "Counter=" << counter2.get() << std::endl; + // after 90 secs, the adder should be gone +- cout << "Adder is no longer available:" << endl; ++ std::cout << "Adder is no longer available:" << std::endl; + adder.add(3.0); +- cout << "Adder status = " << adder.status << endl; ++ std::cout << "Adder status = " << adder.status << std::endl; + return 0; + } +--- gsoap/samples/lu/luclient.cpp.orig 2009-03-04 01:16:48.632483467 +0100 ++++ gsoap/samples/lu/luclient.cpp 2009-03-04 01:17:54.550483188 +0100 +@@ -32,7 +32,7 @@ + */ + + #include "soapH.h" +-#include <iostream.h> ++#include <iostream> + + const char luserver[] = "http://websrv.cs.fsu.edu/~engelen/luserver.cgi"; + +@@ -51,14 +51,14 @@ + a[3].resize(2,3); // 2-element vector indexed from 2 to 3 + a[3][2] = 1; + a[3][3] = 2; +- cout << "* Demonstration example *" << endl; +- cout << "Matrix:" << endl; ++ std::cout << "* Demonstration example *" << std::endl; ++ std::cout << "Matrix:" << std::endl; + a.print(); + vector b(soap, 3); + b[1] = 1; + b[2] = 2; + b[3] = 3; +- cout << "Vector:" << endl; ++ std::cout << "Vector:" << std::endl; + b.print(); + vector x(soap); + if (argc < 2) +@@ -71,7 +71,7 @@ + soap_print_fault_location(soap, stderr); + } + else +- { cout << "Solution vector from service:" << endl; ++ { std::cout << "Solution vector from service:" << std::endl; + x.print(); + } + matrix a1(soap); +@@ -80,7 +80,7 @@ + soap_print_fault_location(soap, stderr); + } + else +- { cout << "Inverse matrix matrix from service:" << endl; ++ { std::cout << "Inverse matrix matrix from service:" << std::endl; + a1.print(); + } + soap_destroy(soap); diff --git a/net-libs/gsoap/files/gsoap-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch b/net-libs/gsoap/files/gsoap-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch new file mode 100644 index 000000000000..673deb17c35f --- /dev/null +++ b/net-libs/gsoap/files/gsoap-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch @@ -0,0 +1,12 @@ +--- gsoap-2.7/gsoap/Makefile.am 2008-01-27 15:02:36.000000000 -0600 ++++ gsoap-2.7mf/gsoap/Makefile.am 2008-01-28 10:24:26.000000000 -0600 +@@ -12,6 +12,9 @@ CLEANFILES=soapcpp2 stdsoap2_cpp.cpp std + AM_CXXFLAGS=$(SOAPCPP2_DEBUG) -D$(platform) + AM_CFLAGS=$(SOAPCPP2_DEBUG) -D$(platform) + ++# Install all soapcpp2 and wsdl2h files into /usr/share/gsoap ++nobase_pkgdata_DATA = import/* plugin/* WS/* custom/* extras/* ++ + ## we cannot build stdsoap2.o from 2 different sources (stdsoap2.cpp and stdsoap2.c), so we need an intermediate target: + stdsoap2_ck.c: stdsoap2.cpp + $(LN_S) $(srcdir)/stdsoap2.cpp stdsoap2_ck.c diff --git a/net-libs/gsoap/gsoap-2.7.17.ebuild b/net-libs/gsoap/gsoap-2.7.17.ebuild new file mode 100644 index 000000000000..ae852ab59b52 --- /dev/null +++ b/net-libs/gsoap/gsoap-2.7.17.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit autotools eutils + +MY_P="${PN}-2.7" + +DESCRIPTION="A cross-platform open source C and C++ SDK to ease the development of SOAP/XML Web services" +HOMEPAGE="http://gsoap2.sourceforge.net" +SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip" + +LICENSE="GPL-2 gSOAP" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc debug examples +ssl" + +DEPEND="app-arch/unzip + sys-devel/flex + sys-devel/bison + sys-libs/zlib + ssl? ( dev-libs/openssl )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fix Pre-ISO headers + epatch "${FILESDIR}/${PN}-2.7-fix-pre-iso-headers.patch" + epatch "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch" + + # causes compilation of app-emulation/virtualbox-ose[vboxwebsrv] to + # break (bug #320901): + #epatch "${FILESDIR}/${PN}-2.7.15-use_libtool.patch" + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable ssl openssl) \ + $(use_enable examples samples) +} + +src_compile() { + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" + + # yes, we also install the license-file since + # it contains info about how to apply the licenses + dodoc *.txt + + dohtml changelog.html + + rm -rf "${D}"/usr/lib*/*.la + + if use examples; then + rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o + insinto /usr/share/doc/${PF}/examples + doins -r gsoap/samples/* + fi + + if use doc; then + dohtml -r gsoap/doc/* + fi +} diff --git a/net-libs/gsoap/gsoap-2.8.12.ebuild b/net-libs/gsoap/gsoap-2.8.12.ebuild new file mode 100644 index 000000000000..923f02d8c311 --- /dev/null +++ b/net-libs/gsoap/gsoap-2.8.12.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +MY_P="${PN}-2.8" + +DESCRIPTION="A cross-platform open source C and C++ SDK to ease the development of SOAP/XML Web services" +HOMEPAGE="http://gsoap2.sourceforge.net" +SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip" + +LICENSE="GPL-2 gSOAP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc debug examples ipv6 gnutls +ssl" + +DEPEND="app-arch/unzip + sys-devel/flex + sys-devel/bison + sys-libs/zlib + gnutls? ( net-libs/gnutls ) + ssl? ( dev-libs/openssl )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fix Pre-ISO headers + epatch "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch" + + # Fix configure.in for >=automake-1.13 + sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.in || die + + eautoreconf +} + +src_configure() { + local myconf= + use ssl || myconf+="--disable-ssl " + use gnutls && myconf+="--enable-gnutls " + use ipv6 && myconf+="--enable-ipv6 " + econf \ + ${myconf} \ + $(use_enable debug) \ + $(use_enable examples samples) +} + +src_compile() { + emake -j1 +} + +src_install() { + emake DESTDIR="${D}" install + + # yes, we also install the license-file since + # it contains info about how to apply the licenses + dodoc *.txt + + dohtml changelog.html + + find "${D}"/usr/ -name "*.la" -exec rm {} \; + + if use examples; then + rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o + insinto /usr/share/doc/${PF}/examples + doins -r gsoap/samples/* + fi + + if use doc; then + dohtml -r gsoap/doc/* + fi +} diff --git a/net-libs/gsoap/gsoap-2.8.19.ebuild b/net-libs/gsoap/gsoap-2.8.19.ebuild new file mode 100644 index 000000000000..3962e714be54 --- /dev/null +++ b/net-libs/gsoap/gsoap-2.8.19.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +MY_P="${PN}-2.8" + +DESCRIPTION="A cross-platform open source C and C++ SDK to ease the development of SOAP/XML Web services" +HOMEPAGE="http://gsoap2.sourceforge.net" +SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip" + +LICENSE="GPL-2 gSOAP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc debug examples ipv6 gnutls +ssl" + +DEPEND="app-arch/unzip + sys-devel/flex + sys-devel/bison + sys-libs/zlib + gnutls? ( net-libs/gnutls ) + ssl? ( dev-libs/openssl )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fix Pre-ISO headers + epatch "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch" + + eautoreconf +} + +src_configure() { + local myconf= + use ssl || myconf+="--disable-ssl " + use gnutls && myconf+="--enable-gnutls " + use ipv6 && myconf+="--enable-ipv6 " + econf \ + ${myconf} \ + $(use_enable debug) \ + $(use_enable examples samples) +} + +src_compile() { + emake -j1 +} + +src_install() { + emake DESTDIR="${D}" install + + # yes, we also install the license-file since + # it contains info about how to apply the licenses + dodoc *.txt + + dohtml changelog.html + + find "${D}"/usr/ -name "*.la" -exec rm {} \; + + if use examples; then + rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o + insinto /usr/share/doc/${PF}/examples + doins -r gsoap/samples/* + fi + + if use doc; then + dohtml -r gsoap/doc/* + fi +} diff --git a/net-libs/gsoap/gsoap-2.8.21.ebuild b/net-libs/gsoap/gsoap-2.8.21.ebuild new file mode 100644 index 000000000000..3962e714be54 --- /dev/null +++ b/net-libs/gsoap/gsoap-2.8.21.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +MY_P="${PN}-2.8" + +DESCRIPTION="A cross-platform open source C and C++ SDK to ease the development of SOAP/XML Web services" +HOMEPAGE="http://gsoap2.sourceforge.net" +SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip" + +LICENSE="GPL-2 gSOAP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc debug examples ipv6 gnutls +ssl" + +DEPEND="app-arch/unzip + sys-devel/flex + sys-devel/bison + sys-libs/zlib + gnutls? ( net-libs/gnutls ) + ssl? ( dev-libs/openssl )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fix Pre-ISO headers + epatch "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch" + + eautoreconf +} + +src_configure() { + local myconf= + use ssl || myconf+="--disable-ssl " + use gnutls && myconf+="--enable-gnutls " + use ipv6 && myconf+="--enable-ipv6 " + econf \ + ${myconf} \ + $(use_enable debug) \ + $(use_enable examples samples) +} + +src_compile() { + emake -j1 +} + +src_install() { + emake DESTDIR="${D}" install + + # yes, we also install the license-file since + # it contains info about how to apply the licenses + dodoc *.txt + + dohtml changelog.html + + find "${D}"/usr/ -name "*.la" -exec rm {} \; + + if use examples; then + rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o + insinto /usr/share/doc/${PF}/examples + doins -r gsoap/samples/* + fi + + if use doc; then + dohtml -r gsoap/doc/* + fi +} diff --git a/net-libs/gsoap/gsoap-2.8.22.ebuild b/net-libs/gsoap/gsoap-2.8.22.ebuild new file mode 100644 index 000000000000..7a558be8fc6c --- /dev/null +++ b/net-libs/gsoap/gsoap-2.8.22.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +MY_P="${PN}-2.8" + +DESCRIPTION="A cross-platform open source C and C++ SDK to ease the development of SOAP/XML Web services" +HOMEPAGE="http://gsoap2.sourceforge.net" +SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip" + +LICENSE="GPL-2 gSOAP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc debug examples ipv6 gnutls +ssl" + +DEPEND="app-arch/unzip + sys-devel/flex + sys-devel/bison + sys-libs/zlib + gnutls? ( net-libs/gnutls ) + ssl? ( dev-libs/openssl )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fix Pre-ISO headers + epatch "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch" + + eautoreconf +} + +src_configure() { + local myconf= + use ssl || myconf+="--disable-ssl " + use gnutls && myconf+="--enable-gnutls " + use ipv6 && myconf+="--enable-ipv6 " + econf \ + ${myconf} \ + $(use_enable debug) \ + $(use_enable examples samples) +} + +src_compile() { + emake -j1 +} + +src_install() { + emake DESTDIR="${D}" install + + # yes, we also install the license-file since + # it contains info about how to apply the licenses + dodoc *.txt + + dohtml changelog.html + + find "${D}"/usr/ -name "*.la" -exec rm {} \; + + if use examples; then + rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o + insinto /usr/share/doc/${PF}/examples + doins -r gsoap/samples/* + fi + + if use doc; then + dohtml -r gsoap/doc/* + fi +} diff --git a/net-libs/gsoap/metadata.xml b/net-libs/gsoap/metadata.xml new file mode 100644 index 000000000000..1611f0c734c3 --- /dev/null +++ b/net-libs/gsoap/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>swapon@gmail.com</email> + <name>Alessio Cassibba</name> + </maintainer> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> + <maintainer> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">gsoap2</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/gssdp/Manifest b/net-libs/gssdp/Manifest new file mode 100644 index 000000000000..a1df3c5ffebe --- /dev/null +++ b/net-libs/gssdp/Manifest @@ -0,0 +1,2 @@ +DIST gssdp-0.14.10.tar.xz 291236 SHA256 b9b3be6354d6a0dcc7c29a7da4120847350011e5614383626552e15c28f3058c SHA512 ee974794fa82388f305c24802ca2a42fe8d3abcfff98a7e810470f772a8adec596b7d81a5e991763043f37b7cac7e6b4a16642e58d440adef2989b7ca27fc489 WHIRLPOOL f37ca8b781fdc442a8a9b08a57efce95563fa96d350d4aee4f9f71fa9f425a65aefdf5561f35dc5dbd7d590212d533175380631629fce5fd998d91e42676ac1e +DIST gssdp-0.14.11.tar.xz 291872 SHA256 7bf5aeaf2119fe0bec5f3632ecf39dae15bc85276c72c2ad8dd4b0e345c6535a SHA512 1954f048b073338a744cc3d8b31c3e006a52ab2223d1b4adbeed5c563fb4cd0bd51bb4dfa018b0fd200e175e4c12d11b9a1de43a5109c5c647dcc26398dd774b WHIRLPOOL 069647057f4feaffeff6dd5fadd4a51ba2a3fba742a6b2c022292bcdafdea72dc5db5405c6417db4e7962824105978c487ed2cffe30ca347282565bff18c4887 diff --git a/net-libs/gssdp/gssdp-0.14.10.ebuild b/net-libs/gssdp/gssdp-0.14.10.ebuild new file mode 100644 index 000000000000..df05bc4b6902 --- /dev/null +++ b/net-libs/gssdp/gssdp-0.14.10.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.14" +VALA_USE_DEPEND="vapigen" + +inherit gnome2 multilib-minimal vala + +DESCRIPTION="A GObject-based API for handling resource discovery and announcement over SSDP" +HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP" + +LICENSE="LGPL-2" +SLOT="0/3" +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="+introspection +gtk" + +RDEPEND=" + >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] + >=net-libs/libsoup-2.44.2:2.4[${MULTILIB_USEDEP},introspection?] + gtk? ( >=x11-libs/gtk+-3.0:3 ) + introspection? ( + $(vala_depend) + >=dev-libs/gobject-introspection-0.6.7 ) + !<net-libs/gupnp-vala-0.10.3 +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.10 + sys-devel/gettext + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] +" + +src_prepare() { + # Disable functional test as it requires port that might be used by rygel to + # be free of use + sed 's/\(check_PROGRAMS.*\)test-functional$(EXEEXT)/\1/' \ + -i "${S}"/tests/gtest/Makefile.in || die + + use introspection && vala_src_prepare + gnome2_src_prepare +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + gnome2_src_configure \ + $(multilib_native_use_enable introspection) \ + $(multilib_native_use_with gtk) \ + --disable-static + + if multilib_is_native_abi; then + # fix gtk-doc + ln -s "${S}"/doc/html doc/html || die + fi +} + +multilib_src_install() { + gnome2_src_install +} diff --git a/net-libs/gssdp/gssdp-0.14.11.ebuild b/net-libs/gssdp/gssdp-0.14.11.ebuild new file mode 100644 index 000000000000..2c1d02ff1ca8 --- /dev/null +++ b/net-libs/gssdp/gssdp-0.14.11.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.14" +VALA_USE_DEPEND="vapigen" + +inherit gnome2 multilib-minimal vala + +DESCRIPTION="A GObject-based API for handling resource discovery and announcement over SSDP" +HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP" + +LICENSE="LGPL-2" +SLOT="0/3" +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ppc64 ~sparc x86 ~x86-fbsd" +IUSE="+introspection +gtk" + +RDEPEND=" + >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] + >=net-libs/libsoup-2.44.2:2.4[${MULTILIB_USEDEP},introspection?] + gtk? ( >=x11-libs/gtk+-3.0:3 ) + introspection? ( + $(vala_depend) + >=dev-libs/gobject-introspection-0.6.7 ) + !<net-libs/gupnp-vala-0.10.3 +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.10 + sys-devel/gettext + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] +" + +src_prepare() { + # Disable functional test as it requires port that might be used by rygel to + # be free of use + sed 's/\(check_PROGRAMS.*\)test-functional$(EXEEXT)/\1/' \ + -i "${S}"/tests/gtest/Makefile.in || die + + use introspection && vala_src_prepare + gnome2_src_prepare +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + gnome2_src_configure \ + $(multilib_native_use_enable introspection) \ + $(multilib_native_use_with gtk) \ + --disable-static + + if multilib_is_native_abi; then + # fix gtk-doc + ln -s "${S}"/doc/html doc/html || die + fi +} + +multilib_src_install() { + gnome2_src_install +} diff --git a/net-libs/gssdp/metadata.xml b/net-libs/gssdp/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/net-libs/gssdp/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/net-libs/gtk-vnc/Manifest b/net-libs/gtk-vnc/Manifest new file mode 100644 index 000000000000..05d09aee3241 --- /dev/null +++ b/net-libs/gtk-vnc/Manifest @@ -0,0 +1,2 @@ +DIST gtk-vnc-0.5.3.tar.xz 408336 SHA256 d490a6c8f40e550d43aef0043ce3bec498ec220d5eb3dc5cdcff8fd561149caf SHA512 a5d81fcb8ee04f033a3aec2eed334e4237c8f4d7334e4875a149b5b385b0f0f0948d2d5227fbbfdccec8d192ba8bbc5f93dd83bb0d6604da25675662a9858cf2 WHIRLPOOL c2b6dc272843e0fce795fb4e082330f252a6f8413806e77b4ace78d63fead48634e647df96e2d6436b3c7a16013f6c2d18d377c762607ed2fd4dbd21e3f62fe3 +DIST gtk-vnc-0.5.4.tar.xz 418104 SHA256 488aa97a76ce6868160699cd45d4a0ee0fe6f0ad4631737c6ddd84450f6c9ce7 SHA512 068f7e29d40c677c9453364e33ab3a57e155dd0715299c8dee3f9933ecdb2e3bc4aea6dd722f5bc846d9b883e4f5a6de7b46742f004b348a551100ea7720da61 WHIRLPOOL 4d29f394a3ac5ea10584369f4a2290274a4be95c5d68c13e84e7ce990bf907243f16afc9b610ba973eebb3d137ca0fc4dce04df5f79afa1327a1c7aadcafaf5b diff --git a/net-libs/gtk-vnc/gtk-vnc-0.5.3.ebuild b/net-libs/gtk-vnc/gtk-vnc-0.5.3.ebuild new file mode 100644 index 000000000000..8427711aee6d --- /dev/null +++ b/net-libs/gtk-vnc/gtk-vnc-0.5.3.ebuild @@ -0,0 +1,187 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) +VALA_MIN_API_VERSION="0.16" +VALA_USE_DEPEND="vapigen" + +inherit eutils gnome.org python-r1 vala + +DESCRIPTION="VNC viewer widget for GTK" +HOMEPAGE="https://live.gnome.org/gtk-vnc" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="examples +gtk3 +introspection pulseaudio python sasl vala" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) + vala? ( gtk3 introspection ) +" + +# libview is used in examples/gvncviewer -- no need +# glib-2.30.1 needed to avoid linking failure due to .la files (bug #399129) +COMMON_DEPEND=" + >=dev-libs/glib-2.30.1:2 + >=dev-libs/libgcrypt-1.4.2:0 + dev-libs/libgpg-error + >=net-libs/gnutls-1.4 + >=x11-libs/cairo-1.2 + >=x11-libs/gtk+-2.18:2 + x11-libs/libX11 + gtk3? ( >=x11-libs/gtk+-2.91.3:3 ) + introspection? ( >=dev-libs/gobject-introspection-0.9.4 ) + pulseaudio? ( media-sound/pulseaudio ) + python? ( + ${PYTHON_DEPS} + >=dev-python/pygtk-2:2[${PYTHON_USEDEP}] ) + sasl? ( dev-libs/cyrus-sasl ) +" +RDEPEND="${COMMON_DEPEND}" + +DEPEND="${COMMON_DEPEND} + >=dev-lang/perl-5 + >=dev-util/intltool-0.40 + sys-devel/gettext + virtual/pkgconfig + vala? ( + $(vala_depend) + >=dev-libs/gobject-introspection-0.9.4 ) +" +# eautoreconf requires gnome-common + +GTK2_BUILDDIR="${WORKDIR}/${P}_gtk2" +GTK3_BUILDDIR="${WORKDIR}/${P}_gtk3" + +src_prepare() { + mkdir -p "${GTK2_BUILDDIR}" || die + mkdir -p "${GTK3_BUILDDIR}" || die + prepare_python() { + mkdir -p "${BUILD_DIR}" || die + } + if use python; then + python_foreach_impl prepare_python + fi + + # Remove a few files that were autogenerated during distcheck. + # Having these around in srcdir breaks out of tree build since they're + # expected to be in builddir, which is correct for trunk builds since + # they're generated files, not source files. Funny false dichotomy. + rm -vf "${S}"/src/{vncconnectionenums.[ch],vncdisplayenums.[ch]} + + # Fix incorrect codegendir check: h2def.py is in pygobject, not pygtk, upstream bug#???? + sed -e 's/codegendir pygtk-2.0/codegendir pygobject-2.0/g' \ + -i src/Makefile.* || die + + # libtool seems unable to find this via VPATH so help it + sed -r "s:(gtkvnc_la_LIBADD =) libgtk-vnc-.*\.la:\1 ${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la:" \ + -i src/Makefile.{am,in} || die + + vala_src_prepare +} + +src_configure() { + local myconf + myconf=" + $(use_with examples) \ + $(use_enable introspection) \ + $(use_with pulseaudio) \ + $(use_with sasl) \ + --with-coroutine=gthread \ + --without-libview \ + --disable-static \ + --disable-vala" + + cd "${GTK2_BUILDDIR}" || die + einfo "Running configure in ${GTK2_BUILDDIR}" + ECONF_SOURCE="${S}" econf ${myconf} \ + --with-python=no \ + --with-gtk=2.0 + + configure_python() { + ECONF_SOURCE="${S}" econf ${myconf} \ + $(use_with python) \ + --with-gtk=2.0 + } + if use python; then + python_foreach_impl run_in_build_dir configure_python + fi + + if use gtk3; then + cd "${GTK3_BUILDDIR}" || die + einfo "Running configure in ${GTK3_BUILDDIR}" + # Python support is via gobject-introspection + # Ex: from gi.repository import GtkVnc + ECONF_SOURCE="${S}" econf ${myconf} \ + $(use_enable vala) \ + --with-python=no \ + --with-gtk=3.0 + fi +} + +src_compile() { + cd "${GTK2_BUILDDIR}" || die + einfo "Running make in ${GTK2_BUILDDIR}" + emake + + compile_python() { + cd "${BUILD_DIR}"/src || die + # CPPFLAGS set to help find includes for gvnc.override + emake gtkvnc.la \ + VPATH="${S}/src:${GTK2_BUILDDIR}/src:${BUILD_DIR}/src" \ + CPPFLAGS="${CPPFLAGS} -I${GTK2_BUILDDIR}/src" + } + if use python; then + python_foreach_impl run_in_build_dir compile_python + fi + + if use gtk3; then + cd "${GTK3_BUILDDIR}" || die + einfo "Running make in ${GTK3_BUILDDIR}" + emake + fi +} + +src_test() { + cd "${GTK2_BUILDDIR}" || die + einfo "Running make check in ${GTK2_BUILDDIR}" + default + + if use gtk3; then + cd "${GTK3_BUILDDIR}" || die + einfo "Running make check in ${GTK3_BUILDDIR}" + default + fi +} + +src_install() { + # Parallel installation fails sometimes, bug #328273, upstream bug #651923 + # Upstream is still unable to reproduce, try again to use parallel with this new version + dodoc AUTHORS ChangeLog NEWS README + + cd "${GTK2_BUILDDIR}" || die + einfo "Running make install in ${GTK2_BUILDDIR}" +# MAKEOPTS="${MAKEOPTS} -j1" default + default + + install_python() { + cd "${BUILD_DIR}"/src || die + emake install-pyexecLTLIBRARIES DESTDIR="${D}" \ + VPATH="${S}/src:${GTK2_BUILDDIR}/src:${BUILD_DIR}/src" \ + CPPFLAGS="${CPPFLAGS} -I${GTK2_BUILDDIR}/src" + } + if use python; then + python_foreach_impl run_in_build_dir install_python + fi + + if use gtk3; then + cd "${GTK3_BUILDDIR}" || die + einfo "Running make install in ${GTK3_BUILDDIR}" + #MAKEOPTS="${MAKEOPTS} -j1" default + default + fi + + prune_libtool_files +} diff --git a/net-libs/gtk-vnc/gtk-vnc-0.5.4.ebuild b/net-libs/gtk-vnc/gtk-vnc-0.5.4.ebuild new file mode 100644 index 000000000000..11b6c5af24ca --- /dev/null +++ b/net-libs/gtk-vnc/gtk-vnc-0.5.4.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python2_7 ) +VALA_MIN_API_VERSION="0.16" +VALA_USE_DEPEND="vapigen" + +inherit gnome2 python-r1 vala + +DESCRIPTION="VNC viewer widget for GTK" +HOMEPAGE="https://wiki.gnome.org/Projects/gtk-vnc" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="examples +gtk3 +introspection pulseaudio python sasl vala" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) + vala? ( gtk3 introspection ) +" + +# libview is used in examples/gvncviewer -- no need +# glib-2.30.1 needed to avoid linking failure due to .la files (bug #399129) +COMMON_DEPEND=" + >=dev-libs/glib-2.30.1:2 + >=dev-libs/libgcrypt-1.4.2:0 + dev-libs/libgpg-error + >=net-libs/gnutls-2.12 + >=x11-libs/cairo-1.2 + >=x11-libs/gtk+-2.18:2 + x11-libs/libX11 + gtk3? ( >=x11-libs/gtk+-2.91.3:3 ) + introspection? ( >=dev-libs/gobject-introspection-0.9.4 ) + pulseaudio? ( media-sound/pulseaudio ) + python? ( + ${PYTHON_DEPS} + >=dev-python/pygtk-2:2[${PYTHON_USEDEP}] ) + sasl? ( dev-libs/cyrus-sasl ) +" +RDEPEND="${COMMON_DEPEND}" + +DEPEND="${COMMON_DEPEND} + >=dev-lang/perl-5 + >=dev-util/intltool-0.40 + sys-devel/gettext + virtual/pkgconfig + vala? ( + $(vala_depend) + >=dev-libs/gobject-introspection-0.9.4 ) +" +# eautoreconf requires gnome-common + +GTK2_BUILDDIR="${WORKDIR}/${P}_gtk2" +GTK3_BUILDDIR="${WORKDIR}/${P}_gtk3" + +src_prepare() { + mkdir -p "${GTK2_BUILDDIR}" || die + mkdir -p "${GTK3_BUILDDIR}" || die + prepare_python() { + mkdir -p "${BUILD_DIR}" || die + } + if use python; then + python_foreach_impl prepare_python + fi + + # Fix incorrect codegendir check: h2def.py is in pygobject, not pygtk, upstream bug#744393 + sed -e 's/codegendir pygtk-2.0/codegendir pygobject-2.0/g' \ + -i src/Makefile.* || die + + # libtool seems unable to find this via VPATH so help it + sed -r "s:(gtkvnc_la_LIBADD =) libgtk-vnc-.*\.la:\1 ${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la:" \ + -i src/Makefile.{am,in} || die + + vala_src_prepare + gnome2_src_prepare +} + +src_configure() { + local myconf + myconf=" + $(use_with examples) \ + $(use_enable introspection) \ + $(use_with pulseaudio) \ + $(use_with sasl) \ + --with-coroutine=gthread \ + --without-libview \ + --disable-static \ + --disable-vala" + |