From 9d5bf5ac4ec201b3f75e743f1474ce0468cd4a23 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Thu, 6 Nov 2014 20:24:11 +0100 Subject: [PATCH] gnunet & gnunet-gtk 0.10.1 added. gnurl 7.37.0 added. libextractor 1.3 added. user & group gnunet added. --- metadata/accounts/groups/gnunet.conf | 0 metadata/accounts/users/gnunet.conf | 4 + metadata/categories.conf | 2 + .../libextractor/libextractor-1.3.exheres-0 | 14 +++ .../libextractor/libextractor.exlib | 40 ++++++++ .../gnunet-gtk/gnunet-gtk-0.10.1.exheres-0 | 24 +++++ .../net-misc/gnunet/gnunet-0.10.1.exheres-0 | 47 +++++++++ .../net-misc/gnurl/gnurl-7.37.0.exheres-0 | 95 +++++++++++++++++++ packages/net-misc/gnurl/gnurl.exlib | 11 +++ 9 files changed, 237 insertions(+) create mode 100644 metadata/accounts/groups/gnunet.conf create mode 100644 metadata/accounts/users/gnunet.conf create mode 100644 packages/media-libs/libextractor/libextractor-1.3.exheres-0 create mode 100644 packages/media-libs/libextractor/libextractor.exlib create mode 100644 packages/net-misc/gnunet-gtk/gnunet-gtk-0.10.1.exheres-0 create mode 100644 packages/net-misc/gnunet/gnunet-0.10.1.exheres-0 create mode 100644 packages/net-misc/gnurl/gnurl-7.37.0.exheres-0 create mode 100644 packages/net-misc/gnurl/gnurl.exlib diff --git a/metadata/accounts/groups/gnunet.conf b/metadata/accounts/groups/gnunet.conf new file mode 100644 index 0000000..e69de29 diff --git a/metadata/accounts/users/gnunet.conf b/metadata/accounts/users/gnunet.conf new file mode 100644 index 0000000..d06580c --- /dev/null +++ b/metadata/accounts/users/gnunet.conf @@ -0,0 +1,4 @@ +gecos = User for GNUnet service +home = /var/lib/gnunet +shell = /sbin/nologin +primary_group = gnunet diff --git a/metadata/categories.conf b/metadata/categories.conf index f996ca3..a660bfb 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -3,7 +3,9 @@ app-crypt app-paludis dev-lang graphics +media-libs net-libs +net-misc net-proxy sys-apps sys-fs diff --git a/packages/media-libs/libextractor/libextractor-1.3.exheres-0 b/packages/media-libs/libextractor/libextractor-1.3.exheres-0 new file mode 100644 index 0000000..b94fca0 --- /dev/null +++ b/packages/media-libs/libextractor/libextractor-1.3.exheres-0 @@ -0,0 +1,14 @@ +# Copyright 2011 Anders Ladegaard Marchsteiner +# Distributed under the terms of the GNU General Public License v2 + +require libextractor + +LICENCES="GPL-3" +SLOT="0" +PLATFORMS="~amd64" + +BUGS_TO="alm.anma@gmail.com" + +# TODO: Why do plugin tests fail? +RESTRICT="test" + diff --git a/packages/media-libs/libextractor/libextractor.exlib b/packages/media-libs/libextractor/libextractor.exlib new file mode 100644 index 0000000..36a3124 --- /dev/null +++ b/packages/media-libs/libextractor/libextractor.exlib @@ -0,0 +1,40 @@ +# Copyright 2011 Anders Ladegaard Marchsteiner +# Distributed under the terms of the GNU General Public License v2 + +require gnu [ suffix=gz ] + +export_exlib_phases src_compile + +SUMMARY="A library used to extract meta data from files of arbitrary type." +DESCRIPTION=" +GNU libextractor is a library used to extract meta data from files of arbitrary type. It is designed +to use helper-libraries to perform the actual extraction, and to be trivially extendable by linking +against external extractors for additional file types. libextractor is a GNU package. +" +REMOTE_IDS="freshmeat:libextractor" + +MYOPTIONS=" + ffmpeg [[ description = [ Support meta data extraction from ffmpeg media files. ] ]] + mpeg2 [[ description = [ Support meta data extraction from mpeg2 media files. ] ]] +" + +DEPENDENCIES=" + build: + build+run: + ffmpeg? ( media/ffmpeg ) + mpeg2? ( media-libs/libmpeg2 ) + sys-libs/zlib + sys-devel/gettext +" + +BUGS_TO="alm.anma@gmail.com" + +DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( + "ffmpeg" + "mpeg2" +) + +libextractor_src_compile() { + make +} + diff --git a/packages/net-misc/gnunet-gtk/gnunet-gtk-0.10.1.exheres-0 b/packages/net-misc/gnunet-gtk/gnunet-gtk-0.10.1.exheres-0 new file mode 100644 index 0000000..4bab15b --- /dev/null +++ b/packages/net-misc/gnunet-gtk/gnunet-gtk-0.10.1.exheres-0 @@ -0,0 +1,24 @@ +# Copyright 2014 Denis Knauf +# Distributed under the terms of the GNU General Public License v2 + +SUMMERY="Graphical user interface for GNU's Framework for Secure Peer-to-Peer Networking" +HOMEPAGE="https://gnunet.org/" +DOWNLOADS="http://ftpmirror.gnu.org/gnunet/${PNV}.tar.gz" +SLOT="0" +LICENCES="GPL-2" +PLATFORMS="~amd64" +MYOPTIONS="gnunet-qr gnunet-namestore-gtk" +# most deps not tested. see https://gnunet.org/dependencies +DEPENDENCIES=" + build+run: + net-misc/gnunet[=$PV] + x11-libs/gtk+[>=3.0] + dev-util/glade[>=3.18.3] + gnunet-namestore-gtk? ( + media-libs/qrencode[>=3] + ) +" + #gnunet-qr? ( + # python-zbar[>=0.10] + #) + diff --git a/packages/net-misc/gnunet/gnunet-0.10.1.exheres-0 b/packages/net-misc/gnunet/gnunet-0.10.1.exheres-0 new file mode 100644 index 0000000..f2fc350 --- /dev/null +++ b/packages/net-misc/gnunet/gnunet-0.10.1.exheres-0 @@ -0,0 +1,47 @@ +# Copyright 2014 Denis Knauf +# Distributed under the terms of the GNU General Public License v2 + +SUMMERY="GNU's Framework for Secure Peer-to-Peer Networking" +HOMEPAGE="https://gnunet.org/" +DOWNLOADS="http://ftpmirror.gnu.org/gnunet/${PNV}.tar.gz" +SLOT="0" +LICENCES="GPL-2" +PLATFORMS="~amd64" +MYOPTIONS="dane gnunet-bcd gnunet-conversation gnunet-qr sqlite" +# most deps not tested. see https://gnunet.org/dependencies +DEPENDENCIES=" + build+run: + net-libs/libmicrohttpd[>=0.9.30] + media-libs/libextractor[>=1.0] + dev-libs/libunistring[>=0.9.1.1] + net-dns/libidn[>=1.0.0] + dev-libs/libgcrypt[>=1.6.0] + dev-libs/gnutls[>=3.2.7][dane=] + net-misc/gnurl[>=7.34.0][gnutls] + sci-libs/glpk[>=4.45] + dev-libs/openssl[>=1.0] + sys-libs/zlib + gnunet-bcd? ( + dev-texlive/texlive-latexp[>=2012] + ) + gnunet-conversation? ( + media-sound/pulseaudio[>=2.0] + media-libs/opus[>=1.0.1] + media-libs/libogg[>=1.3.0] + ) + sqlite? ( + dev-db/sqlite[>=3.8.0] + ) + run: + group/gnunet + user/gnunet +" + #gnunet-qr? ( + # python-zbar[>=0.10] + #) + +src_install() { + default_src_install + edo mv ${IMAGE}/usr/lib/gnunet/libexec/* ${IMAGE}/usr/lib64/gnunet/libexec + edo rmdir ${IMAGE}/usr/lib/gnunet/libexec ${IMAGE}/usr/lib/gnunet ${IMAGE}/usr/lib +} diff --git a/packages/net-misc/gnurl/gnurl-7.37.0.exheres-0 b/packages/net-misc/gnurl/gnurl-7.37.0.exheres-0 new file mode 100644 index 0000000..b14f471 --- /dev/null +++ b/packages/net-misc/gnurl/gnurl-7.37.0.exheres-0 @@ -0,0 +1,95 @@ +# Copyright 2014 Denis Knauf +# Based on: +# Copyright 2008, 2009, 2010, 2011, 2014 Ingmar Vanhassel +# Based in part upon previous work copyrighted to Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 + +require gnurl easy-multibuild + +PLATFORMS="~amd64 ~arm ~x86" +MYOPTIONS=" + ares [[ description = [ Enabled c-ares posix-threaded dns support, disables curl's own threaded resolver ] ]] + gnutls + idn + multibuild_c: 32 64 +" +DEPENDENCIES=" + build: + dev-lang/perl:* + sys-apps/diffutils + virtual/pkg-config + build+run: + app-misc/ca-certificates + sys-libs/zlib[multibuild_c:*(-)?] + ares? ( net-dns/c-ares[>=1.6.0][multibuild_c:*(-)?] ) + dev-libs/gnutls[>=2.12.14][multibuild_c:*(-)?] + dev-libs/nettle[multibuild_c:*(-)?] + idn? ( net-dns/libidn[multibuild_c:*(-)?] ) +" + +#DEFAULT_SRC_CONFIGURE_PARAMS=( +# --enable-{cookies,crypto-auth,largefile,manual,proxy,tls-srp} +# --enable-{dict,file,ftp,gopher,http,ipv6,imap,pop3,rtsp,smtp,telnet,tftp} +# --disable-static +# --disable-werror +# --with-zlib +# --without-{axtls,ca-bundle,cyassl,gssapi,libmetalink,libssh2,librtmp,nghttp2,nss,polarssl} +#) +#DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( ares '!ares threaded-resolver' ) +#DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( +# 'idn libidn' +# '!gnutls ssl' '!gnutls ca-path /etc/ssl/certs' +# gnutls 'gnutls ca-bundle /etc/ssl/certs/ca-certificates.crt' +#) +DEFAULT_SRC_INSTALL_EXTRA_PREFIXES=( docs/ ) +DEFAULT_SRC_INSTALL_EXTRA_DOCS=( BINDINGS DISTRO FEATURES INTERNALS MANUAL RESOURCES TheArtOfHttpScripting ) + +src_prepare() { + # Reason: Binding to 0.0.0.0 creates access violations under sydbox. + edo sed -e '/s_addr =/s:INADDR_ANY:htonl(INADDR_LOOPBACK):' -i tests/server/*.c + + # Use `whoami` instead of $USER; + # sshserver.pl will refuse to run as root (which $USER might claim ever if we're not) + edo sed -e 's/\$ENV{USER}/`whoami`/' -i tests/*.pl + + default +} + +test_one_multibuild() { + cat <<-EOF >> tests/data/DISABLED +# Work around broken DNS servers, Exherbo #207 +20 +507 +# Fails with too many open files +537 +EOF + esandbox allow_net --connect "inet:127.0.0.1@9011" + esandbox allow_net --connect "inet:127.0.0.1@60000" + esandbox allow_net --connect "inet6:::1@8999" + + # Default TEST_F is -a -p -r; we add -n (no valgrind) -v (verbose) and remove -r (run time statistics) + local test_args=( -a -p -n -v ) + test_args+=( '!'{600..641} ) + emake test-full TEST_F="${test_args[*]}" # SSH tests hang + + esandbox disallow_net --connect "inet:127.0.0.1@9011" + esandbox disallow_net --connect "inet:127.0.0.1@60000" + esandbox disallow_net --connect "inet6:::1@8999" +} + +install_one_multibuild() { + default + + #edo mv "${IMAGE}"/usr/include/gnurl/curlbuild{,-${MULTIBUILD_TARGET}}.h +} + +src_install() { + easy-multibuild_src_install + + #insinto /usr/share/aclocal + #doins docs/libgnurl/libgnurl.m4 + + #insinto /usr/include/gnurl + #doins "${FILES}"/curlbuild.h +} + diff --git a/packages/net-misc/gnurl/gnurl.exlib b/packages/net-misc/gnurl/gnurl.exlib new file mode 100644 index 0000000..b547623 --- /dev/null +++ b/packages/net-misc/gnurl/gnurl.exlib @@ -0,0 +1,11 @@ +# Copyright 2014 Denis Knauf +# Distributed under the terms of the GNU General Public License v2 + +SUMMARY="A Client that groks URLs (GNUish fork for gnunet)" +HOMEPAGE="https://gnunet.org/gnurl" +DOWNLOADS="https://gnunet.org/sites/default/files/${PNV}.tar.gz" +WORK="${WORKBASE}/gnurl--" + +LICENCES="MIT" +SLOT="0" +