summaryrefslogtreecommitdiff
path: root/net-libs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/NativeThread/Manifest6
-rw-r--r--net-libs/NativeThread/NativeThread-0_pre20080330.ebuild32
-rw-r--r--net-libs/NativeThread/files/Makefile.patch22
-rw-r--r--net-libs/NativeThread/metadata.xml8
-rw-r--r--net-libs/accounts-qt/Manifest6
-rw-r--r--net-libs/accounts-qt/accounts-qt-1.13.ebuild43
-rw-r--r--net-libs/accounts-qt/accounts-qt-1.15.ebuild45
-rw-r--r--net-libs/accounts-qt/metadata.xml8
-rw-r--r--net-libs/adns/Manifest8
-rw-r--r--net-libs/adns/adns-1.4-r2.ebuild42
-rw-r--r--net-libs/adns/adns-1.4.ebuild33
-rw-r--r--net-libs/adns/files/README.security11
-rw-r--r--net-libs/adns/files/adns-1.4-cnamechain.patch132
-rw-r--r--net-libs/adns/metadata.xml5
-rw-r--r--net-libs/aqbanking/Manifest11
-rw-r--r--net-libs/aqbanking/aqbanking-5.0.25.ebuild62
-rw-r--r--net-libs/aqbanking/aqbanking-5.4.3_beta.ebuild62
-rw-r--r--net-libs/aqbanking/aqbanking-5.5.1.ebuild64
-rw-r--r--net-libs/aqbanking/aqbanking-5.6.10.ebuild64
-rw-r--r--net-libs/aqbanking/metadata.xml10
-rw-r--r--net-libs/axtls/Manifest17
-rw-r--r--net-libs/axtls/axtls-1.5.3.ebuild176
-rw-r--r--net-libs/axtls/axtls-2.1.1.ebuild176
-rw-r--r--net-libs/axtls/axtls-2.1.2.ebuild176
-rw-r--r--net-libs/axtls/axtls-2.1.3.ebuild178
-rw-r--r--net-libs/axtls/axtls-2.1.4.ebuild178
-rw-r--r--net-libs/axtls/files/axhttpd.confd7
-rw-r--r--net-libs/axtls/files/axhttpd.initd25
-rw-r--r--net-libs/axtls/files/config126
-rw-r--r--net-libs/axtls/files/explicit-libdir-r1.patch59
-rw-r--r--net-libs/axtls/metadata.xml17
-rw-r--r--net-libs/balde-markdown/Manifest5
-rw-r--r--net-libs/balde-markdown/balde-markdown-0.1.ebuild39
-rw-r--r--net-libs/balde-markdown/metadata.xml19
-rw-r--r--net-libs/balde/Manifest5
-rw-r--r--net-libs/balde/balde-0.1.1.ebuild57
-rw-r--r--net-libs/balde/metadata.xml19
-rw-r--r--net-libs/biblesync/Manifest5
-rw-r--r--net-libs/biblesync/biblesync-1.1.2-r2.ebuild25
-rw-r--r--net-libs/biblesync/biblesync-1.1.2.ebuild17
-rw-r--r--net-libs/biblesync/metadata.xml10
-rw-r--r--net-libs/c-client/Manifest10
-rw-r--r--net-libs/c-client/c-client-2007f-r6.ebuild149
-rw-r--r--net-libs/c-client/files/c-client-2006k_GENTOO_Makefile.patch70
-rw-r--r--net-libs/c-client/files/c-client-2006k_GENTOO_amd64-so-fix.patch13
-rw-r--r--net-libs/c-client/files/c-client-2007f-ldflags.patch33
-rw-r--r--net-libs/c-client/files/c-client-2007f-topal.patch27
-rw-r--r--net-libs/c-client/metadata.xml15
-rw-r--r--net-libs/canlock/Manifest7
-rw-r--r--net-libs/canlock/canlock-2b.ebuild43
-rw-r--r--net-libs/canlock/files/canlock-2b-make.patch110
-rw-r--r--net-libs/canlock/metadata.xml5
-rw-r--r--net-libs/ccnet/Manifest5
-rw-r--r--net-libs/ccnet/ccnet-6.0.7.ebuild33
-rw-r--r--net-libs/ccnet/ccnet-6.1.0.ebuild33
-rw-r--r--net-libs/ccnet/metadata.xml14
-rw-r--r--net-libs/ccrtp/Manifest7
-rw-r--r--net-libs/ccrtp/ccrtp-2.0.9.ebuild43
-rw-r--r--net-libs/ccrtp/ccrtp-2.1.2.ebuild43
-rw-r--r--net-libs/ccrtp/metadata.xml5
-rw-r--r--net-libs/courier-authlib/Manifest17
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.65.0-r3.ebuild166
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.66.3.ebuild146
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.66.4-r1.ebuild146
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.66.4.ebuild146
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.67.0.ebuild149
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.68.0-r1.ebuild149
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.68.0.ebuild149
-rw-r--r--net-libs/courier-authlib/files/courier-authlib-0.65.0-sqlite.patch35
-rw-r--r--net-libs/courier-authlib/files/courier-authlib-r140
-rw-r--r--net-libs/courier-authlib/metadata.xml14
-rw-r--r--net-libs/courier-unicode/Manifest11
-rw-r--r--net-libs/courier-unicode/courier-unicode-1.1.ebuild19
-rw-r--r--net-libs/courier-unicode/courier-unicode-1.3.ebuild19
-rw-r--r--net-libs/courier-unicode/courier-unicode-1.4.ebuild19
-rw-r--r--net-libs/courier-unicode/courier-unicode-2.0.ebuild18
-rw-r--r--net-libs/courier-unicode/metadata.xml14
-rw-r--r--net-libs/cppzmq/Manifest7
-rw-r--r--net-libs/cppzmq/cppzmq-0_pre130717-r1.ebuild28
-rw-r--r--net-libs/cppzmq/cppzmq-0_pre150606.ebuild28
-rw-r--r--net-libs/cppzmq/metadata.xml11
-rw-r--r--net-libs/cvm/Manifest9
-rw-r--r--net-libs/cvm/cvm-0.76.ebuild61
-rw-r--r--net-libs/cvm/cvm-0.82.ebuild103
-rw-r--r--net-libs/cvm/cvm-0.96.ebuild105
-rw-r--r--net-libs/cvm/metadata.xml10
-rw-r--r--net-libs/czmq/Manifest8
-rw-r--r--net-libs/czmq/czmq-2.2.0-r2.ebuild45
-rw-r--r--net-libs/czmq/czmq-3.0.2.ebuild56
-rw-r--r--net-libs/czmq/files/version.sh21
-rw-r--r--net-libs/czmq/metadata.xml8
-rw-r--r--net-libs/daq/Manifest12
-rw-r--r--net-libs/daq/daq-0.6.2-r1.ebuild68
-rw-r--r--net-libs/daq/daq-0.6.2.ebuild69
-rw-r--r--net-libs/daq/daq-2.0.0.ebuild68
-rw-r--r--net-libs/daq/daq-2.0.2.ebuild77
-rw-r--r--net-libs/daq/files/daq-2.0.2-libpcap-check.patch36
-rw-r--r--net-libs/daq/files/daq-2.0.2-parallel-grammar.patch39
-rw-r--r--net-libs/daq/metadata.xml41
-rw-r--r--net-libs/dleyna-connector-dbus/Manifest5
-rw-r--r--net-libs/dleyna-connector-dbus/dleyna-connector-dbus-0.2.0.ebuild29
-rw-r--r--net-libs/dleyna-connector-dbus/metadata.xml8
-rw-r--r--net-libs/dleyna-core/Manifest5
-rw-r--r--net-libs/dleyna-core/dleyna-core-0.5.0.ebuild28
-rw-r--r--net-libs/dleyna-core/metadata.xml8
-rw-r--r--net-libs/dleyna-renderer/Manifest5
-rw-r--r--net-libs/dleyna-renderer/dleyna-renderer-0.5.0.ebuild36
-rw-r--r--net-libs/dleyna-renderer/metadata.xml8
-rw-r--r--net-libs/dslib/Manifest5
-rw-r--r--net-libs/dslib/dslib-3.0-r1.ebuild26
-rw-r--r--net-libs/dslib/metadata.xml10
-rw-r--r--net-libs/enet/Manifest9
-rw-r--r--net-libs/enet/enet-1.2.2.ebuild22
-rw-r--r--net-libs/enet/enet-1.3.13.ebuild25
-rw-r--r--net-libs/enet/enet-1.3.7.ebuild32
-rw-r--r--net-libs/enet/metadata.xml8
-rw-r--r--net-libs/farstream/Manifest8
-rw-r--r--net-libs/farstream/farstream-0.1.2-r2.ebuild82
-rw-r--r--net-libs/farstream/farstream-0.2.8-r1.ebuild64
-rw-r--r--net-libs/farstream/files/farstream-0.1.2-introspection-tag-order.patch132
-rw-r--r--net-libs/farstream/metadata.xml8
-rw-r--r--net-libs/ftplib/Manifest10
-rw-r--r--net-libs/ftplib/files/ftplib-4.0-crash.patch116
-rw-r--r--net-libs/ftplib/ftplib-3.1.1.ebuild43
-rw-r--r--net-libs/ftplib/ftplib-4.0-r1.ebuild45
-rw-r--r--net-libs/ftplib/ftplib-4.0.ebuild36
-rw-r--r--net-libs/ftplib/metadata.xml7
-rw-r--r--net-libs/glib-networking/Manifest5
-rw-r--r--net-libs/glib-networking/glib-networking-2.50.0.ebuild83
-rw-r--r--net-libs/glib-networking/metadata.xml14
-rw-r--r--net-libs/gloox/Manifest11
-rw-r--r--net-libs/gloox/gloox-1.0.18.ebuild46
-rw-r--r--net-libs/gloox/gloox-1.0.19.ebuild44
-rw-r--r--net-libs/gloox/gloox-1.0.20.ebuild44
-rw-r--r--net-libs/gloox/gloox-1.0.9.ebuild36
-rw-r--r--net-libs/gloox/metadata.xml5
-rw-r--r--net-libs/gnet/Manifest12
-rw-r--r--net-libs/gnet/files/gnet-2.0.8-check-usage-update.patch35
-rw-r--r--net-libs/gnet/files/gnet-2.0.8-context-leak.patch32
-rw-r--r--net-libs/gnet/files/gnet-2.0.8-fix-pkgconfig-abuse.patch16
-rw-r--r--net-libs/gnet/files/gnet-2.0.8-network-tests.patch32
-rw-r--r--net-libs/gnet/files/gnet-2.0.8-test-existing-domain.patch32
-rw-r--r--net-libs/gnet/files/gnet-2.0.8-unittest-build.patch22
-rw-r--r--net-libs/gnet/files/gnet-2.0.8-unittest-service.patch31
-rw-r--r--net-libs/gnet/gnet-2.0.8-r2.ebuild67
-rw-r--r--net-libs/gnet/metadata.xml8
-rw-r--r--net-libs/gnome-online-accounts/Manifest9
-rw-r--r--net-libs/gnome-online-accounts/gnome-online-accounts-3.22.5.ebuild89
-rw-r--r--net-libs/gnome-online-accounts/gnome-online-accounts-3.22.6-r1.ebuild93
-rw-r--r--net-libs/gnome-online-accounts/gnome-online-accounts-3.24.3.ebuild93
-rw-r--r--net-libs/gnome-online-accounts/metadata.xml14
-rw-r--r--net-libs/gnutls/Manifest13
-rw-r--r--net-libs/gnutls/gnutls-3.5.12.ebuild134
-rw-r--r--net-libs/gnutls/gnutls-3.5.13.ebuild134
-rw-r--r--net-libs/gnutls/gnutls-3.5.14.ebuild134
-rw-r--r--net-libs/gnutls/gnutls-3.5.15.ebuild138
-rw-r--r--net-libs/gnutls/gnutls-3.6.0.ebuild134
-rw-r--r--net-libs/gnutls/metadata.xml44
-rw-r--r--net-libs/gsnmp/Manifest8
-rw-r--r--net-libs/gsnmp/files/gsnmp-0.3.0-g_access.patch10
-rw-r--r--net-libs/gsnmp/files/gsnmp-0.3.0-pkg_config.patch31
-rw-r--r--net-libs/gsnmp/files/gsnmp-0.3.0-underquoting.patch11
-rw-r--r--net-libs/gsnmp/gsnmp-0.3.0.ebuild41
-rw-r--r--net-libs/gsnmp/metadata.xml8
-rw-r--r--net-libs/gsoap/Manifest14
-rw-r--r--net-libs/gsoap/files/gsoap-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch12
-rw-r--r--net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch146
-rw-r--r--net-libs/gsoap/files/gsoap-2.8.52-shared_libs.patch145
-rw-r--r--net-libs/gsoap/gsoap-2.8.40.ebuild79
-rw-r--r--net-libs/gsoap/gsoap-2.8.51.ebuild82
-rw-r--r--net-libs/gsoap/gsoap-2.8.52.ebuild83
-rw-r--r--net-libs/gsoap/gsoap-2.8.54.ebuild83
-rw-r--r--net-libs/gsoap/metadata.xml15
-rw-r--r--net-libs/gssdp/Manifest5
-rw-r--r--net-libs/gssdp/gssdp-1.0.2.ebuild57
-rw-r--r--net-libs/gssdp/metadata.xml8
-rw-r--r--net-libs/gtk-vnc/Manifest7
-rw-r--r--net-libs/gtk-vnc/gtk-vnc-0.6.0.ebuild172
-rw-r--r--net-libs/gtk-vnc/gtk-vnc-0.7.1.ebuild172
-rw-r--r--net-libs/gtk-vnc/metadata.xml15
-rw-r--r--net-libs/gupnp-av/Manifest5
-rw-r--r--net-libs/gupnp-av/gupnp-av-0.12.10.ebuild39
-rw-r--r--net-libs/gupnp-av/metadata.xml8
-rw-r--r--net-libs/gupnp-igd/Manifest11
-rw-r--r--net-libs/gupnp-igd/files/gupnp-igd-0.1.11-disable_static_modules.patch10
-rw-r--r--net-libs/gupnp-igd/files/gupnp-igd-0.2.2-underlinking.patch16
-rw-r--r--net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild94
-rw-r--r--net-libs/gupnp-igd/gupnp-igd-0.2.3-r1.ebuild106
-rw-r--r--net-libs/gupnp-igd/gupnp-igd-0.2.4.ebuild108
-rw-r--r--net-libs/gupnp-igd/metadata.xml8
-rw-r--r--net-libs/gupnp-ui/Manifest6
-rw-r--r--net-libs/gupnp-ui/files/gupnp-ui-0.1.1-underlinking.patch25
-rw-r--r--net-libs/gupnp-ui/gupnp-ui-0.1.1.ebuild39
-rw-r--r--net-libs/gupnp-ui/metadata.xml5
-rw-r--r--net-libs/gupnp/Manifest5
-rw-r--r--net-libs/gupnp/gupnp-1.0.2.ebuild73
-rw-r--r--net-libs/gupnp/metadata.xml8
-rw-r--r--net-libs/h323plus/Manifest9
-rw-r--r--net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch15
-rw-r--r--net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch13
-rw-r--r--net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch18
-rw-r--r--net-libs/h323plus/h323plus-1.25.0-r1.ebuild67
-rw-r--r--net-libs/h323plus/h323plus-1.25.0-r2.ebuild69
-rw-r--r--net-libs/h323plus/metadata.xml13
-rw-r--r--net-libs/http-parser/Manifest13
-rw-r--r--net-libs/http-parser/files/0001-makefile-fix-DESTDIR-usage.patch64
-rw-r--r--net-libs/http-parser/files/0002-makefile-quote-variables.patch50
-rw-r--r--net-libs/http-parser/files/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch35
-rw-r--r--net-libs/http-parser/files/0004-makefile-add-CFLAGS-to-linking-command.patch31
-rw-r--r--net-libs/http-parser/files/0005-makefile-fix-install-rule-dependency.patch33
-rw-r--r--net-libs/http-parser/files/http-parser-2.6.2-darwin.patch16
-rw-r--r--net-libs/http-parser/http-parser-2.6.2.ebuild45
-rw-r--r--net-libs/http-parser/http-parser-2.7.1.ebuild44
-rw-r--r--net-libs/http-parser/metadata.xml15
-rw-r--r--net-libs/iax/Manifest10
-rw-r--r--net-libs/iax/files/0.2.2-debug.patch21
-rw-r--r--net-libs/iax/files/0.2.2-memset.patch12
-rw-r--r--net-libs/iax/files/0.2.2-sandbox.patch19
-rw-r--r--net-libs/iax/iax-0.2.2-r1.ebuild41
-rw-r--r--net-libs/iax/iax-0.2.2-r3.ebuild33
-rw-r--r--net-libs/iax/iax-0.2.2.ebuild29
-rw-r--r--net-libs/iax/metadata.xml8
-rw-r--r--net-libs/ignition-msgs/Manifest4
-rw-r--r--net-libs/ignition-msgs/ignition-msgs-0.7.0.ebuild28
-rw-r--r--net-libs/ignition-msgs/metadata.xml11
-rw-r--r--net-libs/ignition-transport/Manifest4
-rw-r--r--net-libs/ignition-transport/ignition-transport-3.0.1.ebuild36
-rw-r--r--net-libs/ignition-transport/metadata.xml8
-rw-r--r--net-libs/jreen/Manifest5
-rw-r--r--net-libs/jreen/jreen-1.3.0.ebuild73
-rw-r--r--net-libs/jreen/metadata.xml11
-rw-r--r--net-libs/kdav2/Manifest3
-rw-r--r--net-libs/kdav2/kdav2-0.1.0.ebuild23
-rw-r--r--net-libs/kdav2/metadata.xml8
-rw-r--r--net-libs/kimap2/Manifest5
-rw-r--r--net-libs/kimap2/kimap2-0.1.1.ebuild24
-rw-r--r--net-libs/kimap2/kimap2-0.2.0.ebuild24
-rw-r--r--net-libs/kimap2/metadata.xml8
-rw-r--r--net-libs/ldns/Manifest9
-rw-r--r--net-libs/ldns/files/ldns-1.6.17_perl522.patch11
-rw-r--r--net-libs/ldns/ldns-1.6.17-r1.ebuild106
-rw-r--r--net-libs/ldns/ldns-1.6.17.ebuild94
-rw-r--r--net-libs/ldns/ldns-1.7.0.ebuild105
-rw-r--r--net-libs/ldns/metadata.xml19
-rw-r--r--net-libs/liba53/Manifest4
-rw-r--r--net-libs/liba53/liba53-9999.ebuild23
-rw-r--r--net-libs/liba53/metadata.xml11
-rw-r--r--net-libs/libaccounts-glib/Manifest6
-rw-r--r--net-libs/libaccounts-glib/libaccounts-glib-1.21-r2.ebuild48
-rw-r--r--net-libs/libaccounts-glib/libaccounts-glib-1.23.ebuild47
-rw-r--r--net-libs/libaccounts-glib/metadata.xml8
-rw-r--r--net-libs/libasr/Manifest9
-rw-r--r--net-libs/libasr/libasr-1.0.1.201505061057.ebuild20
-rw-r--r--net-libs/libasr/libasr-1.0.1.ebuild16
-rw-r--r--net-libs/libasr/libasr-1.0.2.ebuild16
-rw-r--r--net-libs/libasr/metadata.xml11
-rw-r--r--net-libs/libasyncns/Manifest8
-rw-r--r--net-libs/libasyncns/files/libasyncns-0.8-configure-res_query.patch12
-rw-r--r--net-libs/libasyncns/files/libasyncns-0.8-libdir.patch10
-rw-r--r--net-libs/libasyncns/libasyncns-0.8-r3.ebuild59
-rw-r--r--net-libs/libasyncns/libasyncns-0.8-r4.ebuild61
-rw-r--r--net-libs/libasyncns/metadata.xml5
-rw-r--r--net-libs/libbitcoinconsensus/Manifest10
-rw-r--r--net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.1.ebuild27
-rw-r--r--net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.2.ebuild27
-rw-r--r--net-libs/libbitcoinconsensus/libbitcoinconsensus-9999.ebuild29
-rw-r--r--net-libs/libbitcoinconsensus/metadata.xml15
-rw-r--r--net-libs/libblkmaker/Manifest17
-rw-r--r--net-libs/libblkmaker/libblkmaker-0.3.2.ebuild26
-rw-r--r--net-libs/libblkmaker/libblkmaker-0.4.2.ebuild25
-rw-r--r--net-libs/libblkmaker/libblkmaker-0.4.3.ebuild24
-rw-r--r--net-libs/libblkmaker/libblkmaker-0.5.0.ebuild25
-rw-r--r--net-libs/libblkmaker/libblkmaker-0.5.1.ebuild25
-rw-r--r--net-libs/libblkmaker/libblkmaker-0.5.2.ebuild25
-rw-r--r--net-libs/libblkmaker/libblkmaker-0.5.3.ebuild25
-rw-r--r--net-libs/libblkmaker/metadata.xml19
-rw-r--r--net-libs/libbtbb/Manifest8
-rw-r--r--net-libs/libbtbb/libbtbb-2015.10.1.ebuild132
-rw-r--r--net-libs/libbtbb/libbtbb-2017.03.2.ebuild156
-rw-r--r--net-libs/libbtbb/libbtbb-9999.ebuild156
-rw-r--r--net-libs/libbtbb/metadata.xml17
-rw-r--r--net-libs/libcapi/Manifest6
-rw-r--r--net-libs/libcapi/files/libcapi-3.0.7-remove-libcapi20dyn.patch21
-rw-r--r--net-libs/libcapi/libcapi-3.0.7-r1.ebuild23
-rw-r--r--net-libs/libcapi/metadata.xml8
-rw-r--r--net-libs/libcrafter/Manifest6
-rw-r--r--net-libs/libcrafter/libcrafter-0.3.ebuild37
-rw-r--r--net-libs/libcrafter/libcrafter-9999.ebuild37
-rw-r--r--net-libs/libcrafter/metadata.xml36
-rw-r--r--net-libs/libdmapsharing/Manifest7
-rw-r--r--net-libs/libdmapsharing/libdmapsharing-2.9.37.ebuild47
-rw-r--r--net-libs/libdmapsharing/libdmapsharing-2.9.39.ebuild47
-rw-r--r--net-libs/libdmapsharing/metadata.xml8
-rw-r--r--net-libs/libdom/Manifest6
-rw-r--r--net-libs/libdom/libdom-0.3.1.ebuild39
-rw-r--r--net-libs/libdom/metadata.xml8
-rw-r--r--net-libs/libeXosip/Manifest7
-rw-r--r--net-libs/libeXosip/libeXosip-3.5.0.ebuild37
-rw-r--r--net-libs/libeXosip/libeXosip-4.0.0.ebuild36
-rw-r--r--net-libs/libeXosip/metadata.xml8
-rw-r--r--net-libs/libecap/Manifest7
-rw-r--r--net-libs/libecap/libecap-0.2.0.ebuild26
-rw-r--r--net-libs/libecap/libecap-1.0.0.ebuild27
-rw-r--r--net-libs/libecap/metadata.xml6
-rw-r--r--net-libs/libesmtp/Manifest6
-rw-r--r--net-libs/libesmtp/libesmtp-1.0.6-r1.ebuild39
-rw-r--r--net-libs/libesmtp/libesmtp-1.0.6-r2.ebuild43
-rw-r--r--net-libs/libesmtp/metadata.xml11
-rw-r--r--net-libs/libetpan/Manifest6
-rw-r--r--net-libs/libetpan/files/libetpan-1.0-nonnull.patch12
-rw-r--r--net-libs/libetpan/libetpan-1.8.ebuild75
-rw-r--r--net-libs/libetpan/metadata.xml21
-rw-r--r--net-libs/libflowmanager/Manifest7
-rw-r--r--net-libs/libflowmanager/libflowmanager-2.0.5.ebuild24
-rw-r--r--net-libs/libflowmanager/libflowmanager-3.0.0-r1.ebuild31
-rw-r--r--net-libs/libflowmanager/metadata.xml8
-rw-r--r--net-libs/libgadu/Manifest12
-rw-r--r--net-libs/libgadu/files/libgadu-1.12.0-tests.patch12
-rw-r--r--net-libs/libgadu/libgadu-1.11.4.ebuild67
-rw-r--r--net-libs/libgadu/libgadu-1.12.0.ebuild76
-rw-r--r--net-libs/libgadu/libgadu-1.12.1.ebuild76
-rw-r--r--net-libs/libgadu/libgadu-1.12.2.ebuild72
-rw-r--r--net-libs/libgadu/metadata.xml11
-rw-r--r--net-libs/libgcal/Manifest5
-rw-r--r--net-libs/libgcal/libgcal-0.9.6-r1.ebuild53
-rw-r--r--net-libs/libgcal/metadata.xml8
-rw-r--r--net-libs/libgfbgraph/Manifest5
-rw-r--r--net-libs/libgfbgraph/libgfbgraph-0.2.3-r1.ebuild46
-rw-r--r--net-libs/libgfbgraph/metadata.xml8
-rw-r--r--net-libs/libgmail/Manifest5
-rw-r--r--net-libs/libgmail/libgmail-0.1.11-r1.ebuild26
-rw-r--r--net-libs/libgmail/metadata.xml8
-rw-r--r--net-libs/libgrss/Manifest9
-rw-r--r--net-libs/libgrss/files/libgrss-0.5.0-fix-slotting.patch124
-rw-r--r--net-libs/libgrss/files/libgrss-0.5.0-headers.patch11
-rw-r--r--net-libs/libgrss/libgrss-0.5.0-r1.ebuild40
-rw-r--r--net-libs/libgrss/libgrss-0.7.0.ebuild26
-rw-r--r--net-libs/libgrss/metadata.xml12
-rw-r--r--net-libs/libgsasl/Manifest6
-rw-r--r--net-libs/libgsasl/files/libgsasl-gss-extra.patch21
-rw-r--r--net-libs/libgsasl/libgsasl-1.8.0-r1.ebuild59
-rw-r--r--net-libs/libgsasl/metadata.xml12
-rw-r--r--net-libs/libgssglue/Manifest7
-rw-r--r--net-libs/libgssglue/files/libgssglue-0.3-protos.patch15
-rw-r--r--net-libs/libgssglue/files/libgssglue-0.4-implicit-declarations.patch15
-rw-r--r--net-libs/libgssglue/libgssglue-0.4.ebuild37
-rw-r--r--net-libs/libgssglue/metadata.xml5
-rw-r--r--net-libs/libhackrf/Manifest12
-rw-r--r--net-libs/libhackrf/libhackrf-2014.04.1.ebuild28
-rw-r--r--net-libs/libhackrf/libhackrf-2014.08.1.ebuild41
-rw-r--r--net-libs/libhackrf/libhackrf-2015.07.2.ebuild45
-rw-r--r--net-libs/libhackrf/libhackrf-2017.02.1.ebuild45
-rw-r--r--net-libs/libhackrf/libhackrf-9999.ebuild45
-rw-r--r--net-libs/libhackrf/metadata.xml16
-rw-r--r--net-libs/libhtp/Manifest6
-rw-r--r--net-libs/libhtp/libhtp-0.5.18.ebuild34
-rw-r--r--net-libs/libhtp/libhtp-0.5.22.ebuild34
-rw-r--r--net-libs/libhtp/metadata.xml11
-rw-r--r--net-libs/libhubbub/Manifest6
-rw-r--r--net-libs/libhubbub/libhubbub-0.3.3.ebuild26
-rw-r--r--net-libs/libhubbub/metadata.xml8
-rw-r--r--net-libs/libident/Manifest6
-rw-r--r--net-libs/libident/libident-0.32-r1.ebuild21
-rw-r--r--net-libs/libident/libident-0.32.ebuild18
-rw-r--r--net-libs/libident/metadata.xml5
-rw-r--r--net-libs/libinfinity/Manifest7
-rw-r--r--net-libs/libinfinity/files/infinoted.confd12
-rw-r--r--net-libs/libinfinity/files/infinoted.initd27
-rw-r--r--net-libs/libinfinity/libinfinity-0.6.7.ebuild70
-rw-r--r--net-libs/libinfinity/metadata.xml14
-rw-r--r--net-libs/libircclient/Manifest15
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-build.patch13
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-include.patch10
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-shared.patch53
-rw-r--r--net-libs/libircclient/files/libircclient-1.6-static.patch12
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-build.patch13
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-include.patch10
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-shared.patch50
-rw-r--r--net-libs/libircclient/files/libircclient-1.8-static.patch12
-rw-r--r--net-libs/libircclient/libircclient-1.6-r2.ebuild49
-rw-r--r--net-libs/libircclient/libircclient-1.8.ebuild48
-rw-r--r--net-libs/libircclient/metadata.xml11
-rw-r--r--net-libs/libiscsi/Manifest11
-rw-r--r--net-libs/libiscsi/files/libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch35
-rw-r--r--net-libs/libiscsi/libiscsi-1.15.0.ebuild35
-rw-r--r--net-libs/libiscsi/libiscsi-1.18.0.ebuild35
-rw-r--r--net-libs/libiscsi/libiscsi-1.9.0-r1.ebuild39
-rw-r--r--net-libs/libiscsi/libiscsi-9999.ebuild36
-rw-r--r--net-libs/libiscsi/metadata.xml11
-rw-r--r--net-libs/libisds/Manifest8
-rw-r--r--net-libs/libisds/libisds-0.10.6.ebuild54
-rw-r--r--net-libs/libisds/libisds-0.10.7.ebuild54
-rw-r--r--net-libs/libisds/libisds-9999.ebuild60
-rw-r--r--net-libs/libisds/metadata.xml22
-rw-r--r--net-libs/libktorrent/Manifest5
-rw-r--r--net-libs/libktorrent/libktorrent-2.1.ebuild58
-rw-r--r--net-libs/libktorrent/metadata.xml8
-rw-r--r--net-libs/libkvkontakte/Manifest7
-rw-r--r--net-libs/libkvkontakte/libkvkontakte-5.0.0.ebuild31
-rw-r--r--net-libs/libkvkontakte/libkvkontakte-5.0.0_pre20170128.ebuild32
-rw-r--r--net-libs/libkvkontakte/metadata.xml8
-rw-r--r--net-libs/liblockfile/Manifest13
-rw-r--r--net-libs/liblockfile/files/Makefile.Darwin.in80
-rw-r--r--net-libs/liblockfile/files/liblockfile-1.06-respectflags.patch18
-rw-r--r--net-libs/liblockfile/files/liblockfile-1.13-makefile.patch63
-rw-r--r--net-libs/liblockfile/files/liblockfile-orphan-file.patch19
-rw-r--r--net-libs/liblockfile/liblockfile-1.09.ebuild47
-rw-r--r--net-libs/liblockfile/liblockfile-1.13.ebuild48
-rw-r--r--net-libs/liblockfile/liblockfile-1.14.ebuild48
-rw-r--r--net-libs/liblockfile/metadata.xml8
-rw-r--r--net-libs/libmbim/Manifest13
-rw-r--r--net-libs/libmbim/libmbim-1.10.0.ebuild43
-rw-r--r--net-libs/libmbim/libmbim-1.12.2.ebuild43
-rw-r--r--net-libs/libmbim/libmbim-1.12.4.ebuild43
-rw-r--r--net-libs/libmbim/libmbim-1.14.0.ebuild34
-rw-r--r--net-libs/libmbim/libmbim-1.6.0.ebuild44
-rw-r--r--net-libs/libmbim/metadata.xml8
-rw-r--r--net-libs/libmediawiki/Manifest8
-rw-r--r--net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch15
-rw-r--r--net-libs/libmediawiki/libmediawiki-5.0.0_pre20170128.ebuild24
-rw-r--r--net-libs/libmediawiki/libmediawiki-5.37.0.ebuild24
-rw-r--r--net-libs/libmediawiki/metadata.xml8
-rw-r--r--net-libs/libmicrohttpd/Manifest14
-rw-r--r--net-libs/libmicrohttpd/files/libmicrohttpd-0.9.53-fix-build-without-epoll.patch21
-rw-r--r--net-libs/libmicrohttpd/libmicrohttpd-0.9.51.ebuild57
-rw-r--r--net-libs/libmicrohttpd/libmicrohttpd-0.9.52.ebuild57
-rw-r--r--net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild62
-rw-r--r--net-libs/libmicrohttpd/libmicrohttpd-0.9.54.ebuild57
-rw-r--r--net-libs/libmicrohttpd/libmicrohttpd-0.9.55.ebuild57
-rw-r--r--net-libs/libmicrohttpd/metadata.xml12
-rw-r--r--net-libs/libmirisdr/Manifest4
-rw-r--r--net-libs/libmirisdr/libmirisdr-9999.ebuild23
-rw-r--r--net-libs/libmirisdr/metadata.xml12
-rw-r--r--net-libs/libmnl/Manifest7
-rw-r--r--net-libs/libmnl/libmnl-1.0.3-r1.ebuild31
-rw-r--r--net-libs/libmnl/libmnl-1.0.4.ebuild32
-rw-r--r--net-libs/libmnl/metadata.xml15
-rw-r--r--net-libs/libmrss/Manifest5
-rw-r--r--net-libs/libmrss/libmrss-0.19.2.ebuild51
-rw-r--r--net-libs/libmrss/metadata.xml5
-rw-r--r--net-libs/libnatpmp/Manifest18
-rw-r--r--net-libs/libnatpmp/files/remove-static-lib-20130911.patch74
-rw-r--r--net-libs/libnatpmp/files/remove-static-lib.patch44
-rw-r--r--net-libs/libnatpmp/files/respect-FLAGS-20130911.patch53
-rw-r--r--net-libs/libnatpmp/files/respect-FLAGS-20140401.patch36
-rw-r--r--net-libs/libnatpmp/files/respect-FLAGS.patch40
-rw-r--r--net-libs/libnatpmp/files/respect-libdir-20120821.patch20
-rw-r--r--net-libs/libnatpmp/files/respect-libdir.patch19
-rw-r--r--net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild28
-rw-r--r--net-libs/libnatpmp/libnatpmp-20130911.ebuild28
-rw-r--r--net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild29
-rw-r--r--net-libs/libnatpmp/libnatpmp-20150609.ebuild29
-rw-r--r--net-libs/libnatpmp/metadata.xml8
-rw-r--r--net-libs/libndp/Manifest5
-rw-r--r--net-libs/libndp/libndp-1.6-r1.ebuild29
-rw-r--r--net-libs/libndp/metadata.xml8
-rw-r--r--net-libs/libnet/Manifest20
-rw-r--r--net-libs/libnet/files/1.0.2a-endian.patch20
-rw-r--r--net-libs/libnet/files/1.0.2a-slot.patch189
-rw-r--r--net-libs/libnet/files/libnet-1.1.6-_SOURCE.patch20
-rw-r--r--net-libs/libnet/files/libnet-1.1.6-musl.patch29
-rw-r--r--net-libs/libnet/files/libnet-1.2-_SOURCE.patch20
-rw-r--r--net-libs/libnet/files/libnet-1.2-rc.patch11
-rw-r--r--net-libs/libnet/files/libnet-1.2-sizeof.patch11
-rw-r--r--net-libs/libnet/files/libnet-1.2-socklen_t.patch11
-rw-r--r--net-libs/libnet/files/libnet-gcc33-fix13
-rw-r--r--net-libs/libnet/libnet-1.0.2a-r5.ebuild63
-rw-r--r--net-libs/libnet/libnet-1.1.6-r1.ebuild50
-rw-r--r--net-libs/libnet/libnet-1.1.6.ebuild41
-rw-r--r--net-libs/libnet/libnet-1.2_rc3-r1.ebuild50
-rw-r--r--net-libs/libnet/libnet-1.2_rc3.ebuild44
-rw-r--r--net-libs/libnet/metadata.xml27
-rw-r--r--net-libs/libnetfilter_acct/Manifest7
-rw-r--r--net-libs/libnetfilter_acct/libnetfilter_acct-1.0.2.ebuild46
-rw-r--r--net-libs/libnetfilter_acct/libnetfilter_acct-1.0.3.ebuild50
-rw-r--r--net-libs/libnetfilter_acct/metadata.xml13
-rw-r--r--net-libs/libnetfilter_conntrack/Manifest9
-rw-r--r--net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.4.ebuild42
-rw-r--r--net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.5.ebuild42
-rw-r--r--net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.6.ebuild42
-rw-r--r--net-libs/libnetfilter_conntrack/metadata.xml8
-rw-r--r--net-libs/libnetfilter_cthelper/Manifest7
-rw-r--r--net-libs/libnetfilter_cthelper/files/libnetfilter_cthelper-1.0.0-clang-export.patch387
-rw-r--r--net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0-r1.ebuild30
-rw-r--r--net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0.ebuild25
-rw-r--r--net-libs/libnetfilter_cthelper/metadata.xml8
-rw-r--r--net-libs/libnetfilter_cttimeout/Manifest7
-rw-r--r--net-libs/libnetfilter_cttimeout/files/libnetfilter_cttimeout-1.0.0-clang-export.patch266
-rw-r--r--net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0-r1.ebuild30
-rw-r--r--net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0.ebuild25
-rw-r--r--net-libs/libnetfilter_cttimeout/metadata.xml8
-rw-r--r--net-libs/libnetfilter_log/Manifest5
-rw-r--r--net-libs/libnetfilter_log/libnetfilter_log-1.0.1.ebuild25
-rw-r--r--net-libs/libnetfilter_log/metadata.xml8
-rw-r--r--net-libs/libnetfilter_queue/Manifest5
-rw-r--r--net-libs/libnetfilter_queue/libnetfilter_queue-1.0.2.ebuild28
-rw-r--r--net-libs/libnetfilter_queue/metadata.xml8
-rw-r--r--net-libs/libnfnetlink/Manifest5
-rw-r--r--net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild45
-rw-r--r--net-libs/libnfnetlink/metadata.xml8
-rw-r--r--net-libs/libnfsidmap/Manifest10
-rw-r--r--net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch115
-rw-r--r--net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch22
-rw-r--r--net-libs/libnfsidmap/libnfsidmap-0.24.ebuild45
-rw-r--r--net-libs/libnfsidmap/libnfsidmap-0.25-r1.ebuild48
-rw-r--r--net-libs/libnfsidmap/libnfsidmap-0.25.ebuild44
-rw-r--r--net-libs/libnfsidmap/metadata.xml8
-rw-r--r--net-libs/libnftnl/Manifest9
-rw-r--r--net-libs/libnftnl/libnftnl-1.0.5.ebuild57
-rw-r--r--net-libs/libnftnl/libnftnl-1.0.6.ebuild61
-rw-r--r--net-libs/libnftnl/libnftnl-1.0.7.ebuild59
-rw-r--r--net-libs/libnftnl/metadata.xml11
-rw-r--r--net-libs/libnice/Manifest6
-rw-r--r--net-libs/libnice/files/libnice-0.1.13-gstreamer.patch40
-rw-r--r--net-libs/libnice/libnice-0.1.13.ebuild57
-rw-r--r--net-libs/libnice/metadata.xml8
-rw-r--r--net-libs/libnids/Manifest7
-rw-r--r--net-libs/libnids/files/libnids-1.24-ldflags.patch11
-rw-r--r--net-libs/libnids/files/libnids-1.24-static-libs.patch29
-rw-r--r--net-libs/libnids/libnids-1.24-r6.ebuild53
-rw-r--r--net-libs/libnids/metadata.xml16
-rw-r--r--net-libs/libnipper/Manifest8
-rw-r--r--net-libs/libnipper/files/libnipper-0.12.6-gcc47.patch16
-rw-r--r--net-libs/libnipper/files/libnipper-0.12.6-glibc-2.10.patch13
-rw-r--r--net-libs/libnipper/files/libnipper-0.12.6-multilib-strict.patch13
-rw-r--r--net-libs/libnipper/libnipper-0.12.6-r1.ebuild21
-rw-r--r--net-libs/libnipper/metadata.xml12
-rw-r--r--net-libs/libnsl/Manifest3
-rw-r--r--net-libs/libnsl/libnsl-1.1.0.ebuild33
-rw-r--r--net-libs/libnsl/metadata.xml12
-rw-r--r--net-libs/libntlm/Manifest7
-rw-r--r--net-libs/libntlm/libntlm-1.3.ebuild22
-rw-r--r--net-libs/libntlm/libntlm-1.4.ebuild14
-rw-r--r--net-libs/libntlm/metadata.xml15
-rw-r--r--net-libs/libnxml/Manifest5
-rw-r--r--net-libs/libnxml/libnxml-0.18.3.ebuild47
-rw-r--r--net-libs/libnxml/metadata.xml5
-rw-r--r--net-libs/liboauth/Manifest6
-rw-r--r--net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch50
-rw-r--r--net-libs/liboauth/liboauth-1.0.3.ebuild69
-rw-r--r--net-libs/liboauth/metadata.xml24
-rw-r--r--net-libs/liboping/Manifest9
-rw-r--r--net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch19
-rw-r--r--net-libs/liboping/files/liboping-1.8.0-remove-ncurses-automagic.patch94
-rw-r--r--net-libs/liboping/liboping-1.10.0.ebuild73
-rw-r--r--net-libs/liboping/liboping-1.9.0.ebuild74
-rw-r--r--net-libs/liboping/metadata.xml19
-rw-r--r--net-libs/libosip/Manifest8
-rw-r--r--net-libs/libosip/files/libosip-3.3.0-out-source-build.patch16
-rw-r--r--net-libs/libosip/libosip-3.6.0.ebuild35
-rw-r--r--net-libs/libosip/libosip-4.0.0.ebuild35
-rw-r--r--net-libs/libosip/metadata.xml5
-rw-r--r--net-libs/libosmo-abis/Manifest4
-rw-r--r--net-libs/libosmo-abis/libosmo-abis-9999.ebuild22
-rw-r--r--net-libs/libosmo-abis/metadata.xml8
-rw-r--r--net-libs/libosmo-dsp/Manifest6
-rw-r--r--net-libs/libosmo-dsp/libosmo-dsp-0.3.ebuild40
-rw-r--r--net-libs/libosmo-dsp/libosmo-dsp-9999.ebuild40
-rw-r--r--net-libs/libosmo-dsp/metadata.xml12
-rw-r--r--net-libs/libosmo-netif/Manifest3
-rw-r--r--net-libs/libosmo-netif/libosmo-netif-9999.ebuild22
-rw-r--r--net-libs/libosmo-netif/metadata.xml8
-rw-r--r--net-libs/libosmocore/Manifest9
-rw-r--r--net-libs/libosmocore/files/libosmocore-0.6.0-automake-1.13.patch11
-rw-r--r--net-libs/libosmocore/libosmocore-0.6.6.ebuild37
-rw-r--r--net-libs/libosmocore/libosmocore-0.8.0.ebuild47
-rw-r--r--net-libs/libosmocore/libosmocore-9999.ebuild47
-rw-r--r--net-libs/libosmocore/metadata.xml12
-rw-r--r--net-libs/libotr/Manifest5
-rw-r--r--net-libs/libotr/libotr-4.1.1.ebuild19
-rw-r--r--net-libs/libotr/metadata.xml8
-rw-r--r--net-libs/libpcap/Manifest15
-rw-r--r--net-libs/libpcap/files/libpcap-1.6.1-prefix-solaris.patch35
-rw-r--r--net-libs/libpcap/files/libpcap-1.8.1-cross-compile.patch16
-rw-r--r--net-libs/libpcap/files/libpcap-1.8.1-darwin.patch15
-rw-r--r--net-libs/libpcap/files/libpcap-1.8.1-libnl.patch22
-rw-r--r--net-libs/libpcap/files/libpcap-1.8.1-usbmon.patch16
-rw-r--r--net-libs/libpcap/files/libpcap-9999-cross-linux.patch16
-rw-r--r--net-libs/libpcap/files/libpcap-9999-libnl.patch22
-rw-r--r--net-libs/libpcap/files/libpcap-9999-prefix-darwin.patch14
-rw-r--r--net-libs/libpcap/libpcap-1.8.1-r1.ebuild81
-rw-r--r--net-libs/libpcap/libpcap-1.8.1.ebuild81
-rw-r--r--net-libs/libpcap/libpcap-9999.ebuild72
-rw-r--r--net-libs/libpcap/metadata.xml14
-rw-r--r--net-libs/libpcapnav/Manifest6
-rw-r--r--net-libs/libpcapnav/files/libpcapnav-0.8-includes.patch20
-rw-r--r--net-libs/libpcapnav/libpcapnav-0.8.ebuild40
-rw-r--r--net-libs/libpcapnav/metadata.xml11
-rw-r--r--net-libs/libpri/Manifest21
-rw-r--r--net-libs/libpri/files/libpri-1.4.12-multilib.patch51
-rw-r--r--net-libs/libpri/files/libpri-1.4.12-respect-user-flags.patch47
-rw-r--r--net-libs/libpri/files/libpri-1.4.13-multilib.patch51
-rw-r--r--net-libs/libpri/files/libpri-1.4.13-no-static-lib.patch35
-rw-r--r--net-libs/libpri/files/libpri-1.4.13-respect-user-flags.patch41
-rw-r--r--net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch53
-rw-r--r--net-libs/libpri/libpri-1.4.12-r2.ebuild29
-rw-r--r--net-libs/libpri/libpri-1.4.13.ebuild29
-rw-r--r--net-libs/libpri/libpri-1.4.14.ebuild29
-rw-r--r--net-libs/libpri/libpri-1.4.15.ebuild33
-rw-r--r--net-libs/libpri/libpri-1.5.0.ebuild27
-rw-r--r--net-libs/libpri/libpri-1.6.0.ebuild33
-rw-r--r--net-libs/libpri/metadata.xml8
-rw-r--r--net-libs/libprotoident/Manifest8
-rw-r--r--net-libs/libprotoident/libprotoident-2.0.11.ebuild41
-rw-r--r--net-libs/libprotoident/libprotoident-2.0.12.ebuild41
-rw-r--r--net-libs/libprotoident/libprotoident-9999.ebuild42
-rw-r--r--net-libs/libprotoident/metadata.xml11
-rw-r--r--net-libs/libproxy/Manifest11
-rw-r--r--net-libs/libproxy/files/libproxy-0.4.10-disable-pac-test.patch29
-rw-r--r--net-libs/libproxy/files/libproxy-0.4.11-avoid-nm-build-dep.patch60
-rw-r--r--net-libs/libproxy/files/libproxy-0.4.12-macosx.patch70
-rw-r--r--net-libs/libproxy/files/libproxy-0.4.12-mozjs.pc.patch23
-rw-r--r--net-libs/libproxy/files/libproxy-0.4.13-cmake-37.patch27
-rw-r--r--net-libs/libproxy/files/proxy.123
-rw-r--r--net-libs/libproxy/libproxy-0.4.13-r2.ebuild95
-rw-r--r--net-libs/libproxy/metadata.xml19
-rw-r--r--net-libs/libqmi/Manifest14
-rw-r--r--net-libs/libqmi/libqmi-1.12.6.ebuild42
-rw-r--r--net-libs/libqmi/libqmi-1.14.0.ebuild42
-rw-r--r--net-libs/libqmi/libqmi-1.16.0.ebuild45
-rw-r--r--net-libs/libqmi/libqmi-1.16.2.ebuild45
-rw-r--r--net-libs/libqmi/libqmi-1.18.0.ebuild45
-rw-r--r--net-libs/libqmi/libqmi-9999.ebuild45
-rw-r--r--net-libs/libqmi/metadata.xml18
-rw-r--r--net-libs/librouteros/Manifest6
-rw-r--r--net-libs/librouteros/files/disable_werror.patch11
-rw-r--r--net-libs/librouteros/librouteros-1.1.2.ebuild26
-rw-r--r--net-libs/librouteros/metadata.xml8
-rw-r--r--net-libs/librpcsecgss/Manifest8
-rw-r--r--net-libs/librpcsecgss/librpcsecgss-0.16.ebuild20
-rw-r--r--net-libs/librpcsecgss/librpcsecgss-0.19-r1.ebuild29
-rw-r--r--net-libs/librpcsecgss/librpcsecgss-0.19.ebuild20
-rw-r--r--net-libs/librpcsecgss/metadata.xml8
-rw-r--r--net-libs/librsync/Manifest14
-rw-r--r--net-libs/librsync/files/librsync-0.9.7-fix-testsuite.patch15
-rw-r--r--net-libs/librsync/files/librsync-0.9.7-format-security.patch20
-rw-r--r--net-libs/librsync/files/librsync-0.9.7-getopt.patch17
-rw-r--r--net-libs/librsync/files/librsync-0.9.7-huge-files.patch31
-rw-r--r--net-libs/librsync/files/librsync-0.9.7-implicit-declaration.patch19
-rw-r--r--net-libs/librsync/files/librsync-2.0.0-search.patch12
-rw-r--r--net-libs/librsync/librsync-0.9.7-r3.ebuild36
-rw-r--r--net-libs/librsync/librsync-2.0.0-r1.ebuild30
-rw-r--r--net-libs/librsync/librsync-2.0.0.ebuild27
-rw-r--r--net-libs/librsync/metadata.xml17
-rw-r--r--net-libs/libs3/Manifest6
-rw-r--r--net-libs/libs3/files/libs3-2.0-build.patch83
-rw-r--r--net-libs/libs3/libs3-2.0-r1.ebuild33
-rw-r--r--net-libs/libs3/metadata.xml5
-rw-r--r--net-libs/libsearpc/Manifest3
-rw-r--r--net-libs/libsearpc/libsearpc-3.0.8-r1.ebuild28
-rw-r--r--net-libs/libsearpc/metadata.xml14
-rw-r--r--net-libs/libsignon-glib/Manifest5
-rw-r--r--net-libs/libsignon-glib/files/libsignon-glib-1.12-doc-disable.patch25
-rw-r--r--net-libs/libsignon-glib/libsignon-glib-1.13-r1.ebuild87
-rw-r--r--net-libs/libsignon-glib/metadata.xml8
-rw-r--r--net-libs/libsmi/Manifest8
-rw-r--r--net-libs/libsmi/files/libsmi-0.4.8-CVE-2010-2891.patch19
-rw-r--r--net-libs/libsmi/libsmi-0.4.8-r1.ebuild37
-rw-r--r--net-libs/libsmi/libsmi-0.5.0.ebuild32
-rw-r--r--net-libs/libsmi/metadata.xml8
-rw-r--r--net-libs/libsoup/Manifest7
-rw-r--r--net-libs/libsoup/libsoup-2.56.1.ebuild88
-rw-r--r--net-libs/libsoup/libsoup-2.58.2.ebuild92
-rw-r--r--net-libs/libsoup/metadata.xml13
-rw-r--r--net-libs/libsrsirc/Manifest3
-rw-r--r--net-libs/libsrsirc/libsrsirc-0.0.14-r1.ebuild27
-rw-r--r--net-libs/libsrsirc/metadata.xml19
-rw-r--r--net-libs/libsrtp/Manifest30
-rw-r--r--net-libs/libsrtp/files/libsrtp-1.4.4-invalid-index.patch11
-rw-r--r--net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch52
-rw-r--r--net-libs/libsrtp/files/libsrtp-1.4.4_p20121108-shared.patch55
-rw-r--r--net-libs/libsrtp/files/libsrtp-1.5.2-bindir.patch19
-rw-r--r--net-libs/libsrtp/files/libsrtp-1.5.2-fix-make-install.patch13
-rw-r--r--net-libs/libsrtp/files/libsrtp-2.1.0-pcap-automagic-r0.patch17
-rw-r--r--net-libs/libsrtp/files/libsrtp-CVE-2013-2139.diff46
-rw-r--r--net-libs/libsrtp/files/libsrtp-pcap-automagic-r0.patch19
-rw-r--r--net-libs/libsrtp/libsrtp-1.4.4-r1.ebuild75
-rw-r--r--net-libs/libsrtp/libsrtp-1.4.4-r2.ebuild74
-rw-r--r--net-libs/libsrtp/libsrtp-1.4.4_p20121108-r1.ebuild76
-rw-r--r--net-libs/libsrtp/libsrtp-1.4.4_p20121108.ebuild73
-rw-r--r--net-libs/libsrtp/libsrtp-1.5.2-r1.ebuild79
-rw-r--r--net-libs/libsrtp/libsrtp-1.5.2.ebuild75
-rw-r--r--net-libs/libsrtp/libsrtp-1.5.4-r1.ebuild83
-rw-r--r--net-libs/libsrtp/libsrtp-1.5.4.ebuild77
-rw-r--r--net-libs/libsrtp/libsrtp-1.6.0.ebuild83
-rw-r--r--net-libs/libsrtp/libsrtp-2.0.0-r1.ebuild75
-rw-r--r--net-libs/libsrtp/libsrtp-2.0.0.ebuild73
-rw-r--r--net-libs/libsrtp/libsrtp-2.1.0.ebuild73
-rw-r--r--net-libs/libsrtp/metadata.xml24
-rw-r--r--net-libs/libssh/Manifest11
-rw-r--r--net-libs/libssh/files/libssh-0.5.0-tests.patch11
-rw-r--r--net-libs/libssh/files/libssh-0.7.5-fix-config-buffer-underflow.patch25
-rw-r--r--net-libs/libssh/files/libssh-0.7.5-fix-config-parsing.patch32
-rw-r--r--net-libs/libssh/libssh-0.7.4.ebuild99
-rw-r--r--net-libs/libssh/libssh-0.7.5-r1.ebuild100
-rw-r--r--net-libs/libssh/libssh-9999.ebuild89
-rw-r--r--net-libs/libssh/metadata.xml17
-rw-r--r--net-libs/libssh2/Manifest11
-rw-r--r--net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch30
-rw-r--r--net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch41
-rw-r--r--net-libs/libssh2/libssh2-1.7.0.ebuild43
-rw-r--r--net-libs/libssh2/libssh2-1.8.0-r1.ebuild50
-rw-r--r--net-libs/libssh2/libssh2-1.8.0.ebuild48
-rw-r--r--net-libs/libssh2/libssh2-9999.ebuild50
-rw-r--r--net-libs/libssh2/metadata.xml14
-rw-r--r--net-libs/libtelnet/Manifest6
-rw-r--r--net-libs/libtelnet/libtelnet-0.21.ebuild33
-rw-r--r--net-libs/libtelnet/libtelnet-9999.ebuild33
-rw-r--r--net-libs/libtelnet/metadata.xml11
-rw-r--r--net-libs/libtirpc/Manifest31
-rw-r--r--net-libs/libtirpc/files/libtirpc-0.2.5-stdarg.patch29
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.1-CVE-2017-8779.patch255
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.1_add-des_impl-c-7f6bb9a3467a.patch29
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.1_ifdef-out-yp-headers-742bbdff6ddf.patch30
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.1_remove-des-deps-to-glibc-503ac2e9fa56.patch43
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.1_remove-nis-h-dep-5f00f8c78c5d.patch137
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-dont-use-struct-rpcent.patch51
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-use-memset-not-bzero.patch21
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.2-bcopy-to-memmove.patch49
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.2-bzero-to-memset.patch36
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.2-exports.patch17
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.0.2-glibc-2.26.patch12
-rw-r--r--net-libs/libtirpc/libtirpc-0.2.4-r1.ebuild49
-rw-r--r--net-libs/libtirpc/libtirpc-0.2.4-r2.ebuild60
-rw-r--r--net-libs/libtirpc/libtirpc-0.2.5.ebuild64
-rw-r--r--net-libs/libtirpc/libtirpc-0.3.1.ebuild60
-rw-r--r--net-libs/libtirpc/libtirpc-1.0.1-r1.ebuild60
-rw-r--r--net-libs/libtirpc/libtirpc-1.0.1-r2.ebuild67
-rw-r--r--net-libs/libtirpc/libtirpc-1.0.1-r3.ebuild68
-rw-r--r--net-libs/libtirpc/libtirpc-1.0.1.ebuild55
-rw-r--r--net-libs/libtirpc/libtirpc-1.0.2-r1.ebuild64
-rw-r--r--net-libs/libtirpc/libtirpc-1.0.2.ebuild63
-rw-r--r--net-libs/libtirpc/metadata.xml11
-rw-r--r--net-libs/libtorrent-rasterbar/Manifest19
-rw-r--r--net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-boost-config-header.patch31
-rw-r--r--net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-abicompat.patch157
-rw-r--r--net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-test_ssl.patch21
-rw-r--r--net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-move-header.patch34
-rw-r--r--net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.9-test_torrent_parse.patch41
-rw-r--r--net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.10.ebuild111
-rw-r--r--net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11-r1.ebuild117
-rw-r--r--net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11.ebuild116
-rw-r--r--net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.1.ebuild101
-rw-r--r--net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.2.ebuild102
-rw-r--r--net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.3.ebuild102
-rw-r--r--net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.4.ebuild102
-rw-r--r--net-libs/libtorrent-rasterbar/metadata.xml16
-rw-r--r--net-libs/libtorrent/Manifest6
-rw-r--r--net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild61
-rw-r--r--net-libs/libtorrent/libtorrent-0.13.6.ebuild52
-rw-r--r--net-libs/libtorrent/metadata.xml12
-rw-r--r--net-libs/libtrace/Manifest14
-rw-r--r--net-libs/libtrace/files/libtrace-3.0.20-autoconf-1.13.patch11
-rw-r--r--net-libs/libtrace/files/libtrace-3.0.20-no-examples.patch11
-rw-r--r--net-libs/libtrace/files/libtrace-3.0.20-tinfo.patch21
-rw-r--r--net-libs/libtrace/files/libtrace-4.0.0-no-examples.patch10
-rw-r--r--net-libs/libtrace/files/libtrace-4.0.0-with-numa.patch27
-rw-r--r--net-libs/libtrace/libtrace-3.0.22.ebuild51
-rw-r--r--net-libs/libtrace/libtrace-4.0.0.ebuild58
-rw-r--r--net-libs/libtrace/libtrace-4.0.1.ebuild58
-rw-r--r--net-libs/libtrace/metadata.xml11
-rw-r--r--net-libs/libupnp/Manifest14
-rw-r--r--net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch13
-rw-r--r--net-libs/libupnp/files/libupnp-1.6.21-cflags.patch30
-rw-r--r--net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch13
-rw-r--r--net-libs/libupnp/libupnp-1.6.21.ebuild47
-rw-r--r--net-libs/libupnp/libupnp-1.6.22.ebuild47
-rw-r--r--net-libs/libupnp/libupnp-1.8.1.ebuild47
-rw-r--r--net-libs/libupnp/libupnp-1.8.2.ebuild70
-rw-r--r--net-libs/libupnp/metadata.xml21
-rw-r--r--net-libs/libvncserver/Manifest5
-rw-r--r--net-libs/libvncserver/libvncserver-0.9.11-r1.ebuild72
-rw-r--r--net-libs/libvncserver/metadata.xml31
-rw-r--r--net-libs/libwebsockets/Manifest9
-rw-r--r--net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch22
-rw-r--r--net-libs/libwebsockets/libwebsockets-1.7.9.ebuild47
-rw-r--r--net-libs/libwebsockets/libwebsockets-2.0.2.ebuild47
-rw-r--r--net-libs/libwebsockets/libwebsockets-2.1.1.ebuild67
-rw-r--r--net-libs/libwebsockets/metadata.xml36
-rw-r--r--net-libs/libwhisker/Manifest5
-rw-r--r--net-libs/libwhisker/libwhisker-2.5-r1.ebuild33
-rw-r--r--net-libs/libwhisker/metadata.xml18
-rw-r--r--net-libs/libyahoo2/Manifest6
-rw-r--r--net-libs/libyahoo2/files/libyahoo2-1.0.1-asneeded.patch16
-rw-r--r--net-libs/libyahoo2/libyahoo2-1.0.1.ebuild43
-rw-r--r--net-libs/libyahoo2/metadata.xml8
-rw-r--r--net-libs/libzapojit/Manifest5
-rw-r--r--net-libs/libzapojit/libzapojit-0.0.3.ebuild39
-rw-r--r--net-libs/libzapojit/metadata.xml8
-rw-r--r--net-libs/liquid-dsp/Manifest4
-rw-r--r--net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild43
-rw-r--r--net-libs/liquid-dsp/liquid-dsp-9999.ebuild43
-rw-r--r--net-libs/liquid-dsp/metadata.xml15
-rw-r--r--net-libs/loudmouth/Manifest19
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-async-fix.patch30
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-asyncns-system.patch83
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-drop-stanzas-on-fail.patch47
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-fix-sasl-md5-digest-uri.patch24
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-free-before-closed.patch137
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-glib-2.32.patch13
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-gnutls28.patch15
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-id-tag-in-opening-headers.patch35
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-invalid-unicode.patch144
-rw-r--r--net-libs/loudmouth/files/loudmouth-1.4.3-silence-chdir.patch33
-rw-r--r--net-libs/loudmouth/loudmouth-1.4.3-r2.ebuild95
-rw-r--r--net-libs/loudmouth/loudmouth-1.5.2-r1.ebuild57
-rw-r--r--net-libs/loudmouth/loudmouth-1.5.3.ebuild57
-rw-r--r--net-libs/loudmouth/metadata.xml15
-rw-r--r--net-libs/mbedtls/Manifest4
-rw-r--r--net-libs/mbedtls/mbedtls-2.6.0.ebuild93
-rw-r--r--net-libs/mbedtls/metadata.xml22
-rw-r--r--net-libs/meanwhile/Manifest7
-rw-r--r--net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch213
-rw-r--r--net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch42
-rw-r--r--net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild45
-rw-r--r--net-libs/meanwhile/metadata.xml8
-rw-r--r--net-libs/metadata.xml32
-rw-r--r--net-libs/miniupnpc/Manifest11
-rw-r--r--net-libs/miniupnpc/metadata.xml8
-rw-r--r--net-libs/miniupnpc/miniupnpc-1.8.ebuild49
-rw-r--r--net-libs/miniupnpc/miniupnpc-1.9.20151008.ebuild56
-rw-r--r--net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild54
-rw-r--r--net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild54
-rw-r--r--net-libs/nDPI/Manifest3
-rw-r--r--net-libs/nDPI/metadata.xml10
-rw-r--r--net-libs/nDPI/nDPI-2.0.ebuild23
-rw-r--r--net-libs/nacl/Manifest5
-rw-r--r--net-libs/nacl/metadata.xml8
-rw-r--r--net-libs/nacl/nacl-0_p20110221.ebuild73
-rw-r--r--net-libs/nativebiginteger/Manifest15
-rw-r--r--net-libs/nativebiginteger/files/nativebiginteger-0.6.4-asmfix.patch31
-rw-r--r--net-libs/nativebiginteger/files/nativebiginteger-0.6.4-ldflags.patch17
-rw-r--r--net-libs/nativebiginteger/files/nativebiginteger-0.8.7-asmfix.patch31
-rw-r--r--net-libs/nativebiginteger/files/nativebiginteger-0.8.7-build-system.patch22
-rw-r--r--net-libs/nativebiginteger/files/nativebiginteger-0.8.7-debug-all.patch35
-rw-r--r--net-libs/nativebiginteger/files/nativebiginteger-0.8.7-jcpuid-build-system.patch23
-rw-r--r--net-libs/nativebiginteger/files/nativebiginteger-0.8.7-non-android-warnings.patch11
-rw-r--r--net-libs/nativebiginteger/metadata.xml8
-rw-r--r--net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild35
-rw-r--r--net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild29
-rw-r--r--net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild67
-rw-r--r--net-libs/neon/Manifest5
-rw-r--r--net-libs/neon/metadata.xml28
-rw-r--r--net-libs/neon/neon-0.30.2.ebuild106
-rw-r--r--net-libs/net6/Manifest8
-rw-r--r--net-libs/net6/files/net6-1.3.14-gnutls-3.4.patch27
-rw-r--r--net-libs/net6/metadata.xml11
-rw-r--r--net-libs/net6/net6-1.3.14-r1.ebuild39
-rw-r--r--net-libs/net6/net6-1.3.14-r2.ebuild43
-rw-r--r--net-libs/net6/net6-1.3.14.ebuild39
-rw-r--r--net-libs/netembryo/Manifest5
-rw-r--r--net-libs/netembryo/metadata.xml7
-rw-r--r--net-libs/netembryo/netembryo-0.1.1.ebuild37
-rw-r--r--net-libs/netwib/Manifest6
-rw-r--r--net-libs/netwib/metadata.xml12
-rw-r--r--net-libs/netwib/netwib-5.39.0.ebuild59
-rw-r--r--net-libs/nfqueue-bindings/Manifest7
-rw-r--r--net-libs/nfqueue-bindings/metadata.xml13
-rw-r--r--net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild69
-rw-r--r--net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild67
-rw-r--r--net-libs/nghttp2/Manifest12
-rw-r--r--net-libs/nghttp2/metadata.xml15
-rw-r--r--net-libs/nghttp2/nghttp2-1.10.0.ebuild61
-rw-r--r--net-libs/nghttp2/nghttp2-1.19.0.ebuild62
-rw-r--r--net-libs/nghttp2/nghttp2-1.25.0.ebuild62
-rw-r--r--net-libs/nghttp2/nghttp2-1.26.0.ebuild62
-rw-r--r--net-libs/nghttp2/nghttp2-9999.ebuild67
-rw-r--r--net-libs/nodejs/Manifest23
-rw-r--r--net-libs/nodejs/files/gentoo-global-npm-config.patch40
-rw-r--r--net-libs/nodejs/files/nodejs-8.4.0-shared-nghttp2.patch105
-rw-r--r--net-libs/nodejs/metadata.xml21
-rw-r--r--net-libs/nodejs/nodejs-0.12.17.ebuild122
-rw-r--r--net-libs/nodejs/nodejs-4.6.1.ebuild143
-rw-r--r--net-libs/nodejs/nodejs-6.11.2.ebuild193
-rw-r--r--net-libs/nodejs/nodejs-6.11.3.ebuild193
-rw-r--r--net-libs/nodejs/nodejs-6.9.4.ebuild192
-rw-r--r--net-libs/nodejs/nodejs-7.10.0.ebuild194
-rw-r--r--net-libs/nodejs/nodejs-8.2.1.ebuild194
-rw-r--r--net-libs/nodejs/nodejs-8.4.0.ebuild196
-rw-r--r--net-libs/nodejs/nodejs-8.5.0.ebuild196
-rw-r--r--net-libs/ntirpc/Manifest8
-rw-r--r--net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch60
-rw-r--r--net-libs/ntirpc/metadata.xml14
-rw-r--r--net-libs/ntirpc/ntirpc-1.4.1.ebuild33
-rw-r--r--net-libs/ntirpc/ntirpc-1.5.2.ebuild29
-rw-r--r--net-libs/ntirpc/ntirpc-1.5.3.ebuild32
-rw-r--r--net-libs/obby/Manifest5
-rw-r--r--net-libs/obby/metadata.xml9
-rw-r--r--net-libs/obby/obby-0.4.8-r1.ebuild36
-rw-r--r--net-libs/onion/Manifest6
-rw-r--r--net-libs/onion/files/protos.patch28
-rw-r--r--net-libs/onion/metadata.xml17
-rw-r--r--net-libs/onion/onion-0.8.ebuild71
-rw-r--r--net-libs/onion/onion-9999.ebuild69
-rw-r--r--net-libs/opal/Manifest9
-rw-r--r--net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch396
-rw-r--r--net-libs/opal/files/opal-3.10.9-disable-h323-workaround.patch13
-rw-r--r--net-libs/opal/files/opal-3.10.9-java-ruby-swig-fix.patch29
-rw-r--r--net-libs/opal/metadata.xml39
-rw-r--r--net-libs/opal/opal-3.10.11-r1.ebuild252
-rw-r--r--net-libs/openmq-cclient/Manifest7
-rw-r--r--net-libs/openmq-cclient/files/Makefile.in-469
-rw-r--r--net-libs/openmq-cclient/files/openmq-cclient-4.4.1-aix-gcc.patch13
-rw-r--r--net-libs/openmq-cclient/metadata.xml18
-rw-r--r--net-libs/openmq-cclient/openmq-cclient-4.4.1.ebuild78
-rw-r--r--net-libs/openpgm/Manifest7
-rw-r--r--net-libs/openpgm/metadata.xml8
-rw-r--r--net-libs/openpgm/openpgm-5.1.118-r1.ebuild32
-rw-r--r--net-libs/openpgm/openpgm-5.2.122.ebuild32
-rw-r--r--net-libs/openslp/Manifest18
-rw-r--r--net-libs/openslp/files/openslp-1.2.1-cflags.patch11
-rw-r--r--net-libs/openslp/files/openslp-1.2.1-fbsd.patch12
-rw-r--r--net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch11
-rw-r--r--net-libs/openslp/files/openslp-2.0.0-CVE-2012-4428.patch51
-rw-r--r--net-libs/openslp/files/openslp-2.0.0-CVE-2016-4912.patch15
-rw-r--r--net-libs/openslp/files/openslp-2.0.0-CVE-2016-7567.patch94
-rw-r--r--net-libs/openslp/files/openslp-2.0.0-cflags.patch25
-rw-r--r--net-libs/openslp/files/openslp-2.0.0-namespace.patch773
-rw-r--r--net-libs/openslp/files/slpd-init88
-rw-r--r--net-libs/openslp/files/slpd.service10
-rw-r--r--net-libs/openslp/metadata.xml11
-rw-r--r--net-libs/openslp/openslp-1.2.1-r3.ebuild41
-rw-r--r--net-libs/openslp/openslp-2.0.0-r4.ebuild43
-rw-r--r--net-libs/openslp/openslp-2.0.0-r5.ebuild44
-rw-r--r--net-libs/ortp/Manifest7
-rw-r--r--net-libs/ortp/metadata.xml9
-rw-r--r--net-libs/ortp/ortp-0.20.0.ebuild76
-rw-r--r--net-libs/ortp/ortp-0.23.0-r1.ebuild78
-rw-r--r--net-libs/osptoolkit/Manifest6
-rw-r--r--net-libs/osptoolkit/files/osptoolkit-4.13.0-gcc5.patch17
-rw-r--r--net-libs/osptoolkit/metadata.xml11
-rw-r--r--net-libs/osptoolkit/osptoolkit-4.13.0.ebuild97
-rw-r--r--net-libs/pacparser/Manifest8
-rw-r--r--net-libs/pacparser/files/pacparser-1.3.1-makefile.patch66
-rw-r--r--net-libs/pacparser/metadata.xml26
-rw-r--r--net-libs/pacparser/pacparser-1.3.1.ebuild52
-rw-r--r--net-libs/pacparser/pacparser-1.3.7.ebuild61
-rw-r--r--net-libs/phodav/Manifest9
-rw-r--r--net-libs/phodav/files/70-spice-webdavd.rules1
-rw-r--r--net-libs/phodav/files/spice-webdavd.initd16
-rw-r--r--net-libs/phodav/metadata.xml15
-rw-r--r--net-libs/phodav/phodav-2.1.ebuild55
-rw-r--r--net-libs/phodav/phodav-2.2.ebuild58
-rw-r--r--net-libs/pjproject/Manifest6
-rw-r--r--net-libs/pjproject/metadata.xml24
-rw-r--r--net-libs/pjproject/pjproject-2.5.1.ebuild101
-rw-r--r--net-libs/pjproject/pjproject-2.6.ebuild101
-rw-r--r--net-libs/polarssl/Manifest7
-rw-r--r--net-libs/polarssl/files/polarssl-1.3.9-respect-cflags.patch15
-rw-r--r--net-libs/polarssl/metadata.xml18
-rw-r--r--net-libs/polarssl/polarssl-1.3.9-r1.ebuild93
-rw-r--r--net-libs/polarssl/polarssl-1.3.9.ebuild90
-rw-r--r--net-libs/ptlib/Manifest13
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.10-mga-bison-parameter.patch39
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.10-respect_cflags_cxxflags.patch14
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch29
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.9-disable-telnet-symbols.patch19
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.9-pkgconfig_ldflags.patch11
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.9-respect_cxxflags.patch10
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.9-svn_revision_override.patch18
-rw-r--r--net-libs/ptlib/metadata.xml25
-rw-r--r--net-libs/ptlib/ptlib-2.10.11.ebuild225
-rw-r--r--net-libs/qmf/Manifest6
-rw-r--r--net-libs/qmf/files/qmf-4.0.2-tests.patch13
-rw-r--r--net-libs/qmf/metadata.xml8
-rw-r--r--net-libs/qmf/qmf-4.0.3.ebuild106
-rw-r--r--net-libs/quasselc/Manifest3
-rw-r--r--net-libs/quasselc/metadata.xml13
-rw-r--r--net-libs/quasselc/quasselc-0_p20170111.ebuild41
-rw-r--r--net-libs/qxmpp/Manifest8
-rw-r--r--net-libs/qxmpp/metadata.xml21
-rw-r--r--net-libs/qxmpp/qxmpp-0.8.0.ebuild59
-rw-r--r--net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild72
-rw-r--r--net-libs/qxmpp/qxmpp-9999.ebuild73
-rw-r--r--net-libs/rabbitmq-c/Manifest7
-rw-r--r--net-libs/rabbitmq-c/metadata.xml11
-rw-r--r--net-libs/rabbitmq-c/rabbitmq-c-0.5.0.ebuild42
-rw-r--r--net-libs/rabbitmq-c/rabbitmq-c-0.8.0.ebuild46
-rw-r--r--net-libs/rest/Manifest5
-rw-r--r--net-libs/rest/metadata.xml8
-rw-r--r--net-libs/rest/rest-0.8.0.ebuild59
-rw-r--r--net-libs/ripe-atlas-sagan/Manifest8
-rw-r--r--net-libs/ripe-atlas-sagan/metadata.xml16
-rw-r--r--net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.10.ebuild35
-rw-r--r--net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.11.ebuild36
-rw-r--r--net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.8.ebuild36
-rw-r--r--net-libs/roadrunner/Manifest5
-rw-r--r--net-libs/roadrunner/metadata.xml5
-rw-r--r--net-libs/roadrunner/roadrunner-0.9.1.ebuild37
-rw-r--r--net-libs/rpc2/Manifest9
-rw-r--r--net-libs/rpc2/metadata.xml8
-rw-r--r--net-libs/rpc2/rpc2-2.0.ebuild24
-rw-r--r--net-libs/rpc2/rpc2-2.10.ebuild26
-rw-r--r--net-libs/rpc2/rpc2-2.14.ebuild26
-rw-r--r--net-libs/rpcsvc-proto/Manifest3
-rw-r--r--net-libs/rpcsvc-proto/metadata.xml12
-rw-r--r--net-libs/rpcsvc-proto/rpcsvc-proto-1.2-r1.ebuild31
-rw-r--r--net-libs/serf/Manifest13
-rw-r--r--net-libs/serf/files/serf-1.3.2-disable_linking_against_unneeded_libraries.patch13
-rw-r--r--net-libs/serf/files/serf-1.3.8-openssl.patch28
-rw-r--r--net-libs/serf/files/serf-1.3.8-scons_variables.patch110
-rw-r--r--net-libs/serf/files/serf-1.3.8-static-lib.patch49
-rw-r--r--net-libs/serf/files/serf-1.3.8-tests.patch95
-rw-r--r--net-libs/serf/metadata.xml11
-rw-r--r--net-libs/serf/serf-1.3.8-r1.ebuild70
-rw-r--r--net-libs/serf/serf-1.3.8.ebuild60
-rw-r--r--net-libs/serf/serf-1.3.9.ebuild70
-rw-r--r--net-libs/shairplay/Manifest4
-rw-r--r--net-libs/shairplay/metadata.xml18
-rw-r--r--net-libs/shairplay/shairplay-0_pre20170118.ebuild52
-rw-r--r--net-libs/shairplay/shairplay-9999.ebuild52
-rw-r--r--net-libs/signon-oauth2/Manifest5
-rw-r--r--net-libs/signon-oauth2/files/signon-oauth2-0.21-unused-dependency.patch16
-rw-r--r--net-libs/signon-oauth2/metadata.xml8
-rw-r--r--net-libs/signon-oauth2/signon-oauth2-0.21-r1.ebuild42
-rw-r--r--net-libs/signon-ui/Manifest4
-rw-r--r--net-libs/signon-ui/metadata.xml11
-rw-r--r--net-libs/signon-ui/signon-ui-0.15.ebuild48
-rw-r--r--net-libs/signond/Manifest4
-rw-r--r--net-libs/signond/metadata.xml8
-rw-r--r--net-libs/signond/signond-8.58.ebuild61
-rw-r--r--net-libs/socket_wrapper/Manifest7
-rw-r--r--net-libs/socket_wrapper/metadata.xml12
-rw-r--r--net-libs/socket_wrapper/socket_wrapper-1.1.6.ebuild24
-rw-r--r--net-libs/socket_wrapper/socket_wrapper-1.1.7.ebuild24
-rw-r--r--net-libs/sofia-sip/Manifest5
-rw-r--r--net-libs/sofia-sip/metadata.xml11
-rw-r--r--net-libs/sofia-sip/sofia-sip-1.12.11.ebuild37
-rw-r--r--net-libs/stem/Manifest11
-rw-r--r--net-libs/stem/metadata.xml11
-rw-r--r--net-libs/stem/stem-1.3.0.ebuild38
-rw-r--r--net-libs/stem/stem-1.4.0.ebuild37
-rw-r--r--net-libs/stem/stem-1.4.1.ebuild37
-rw-r--r--net-libs/stem/stem-1.5.4.ebuild43
-rw-r--r--net-libs/telepathy-accounts-signon/Manifest4
-rw-r--r--net-libs/telepathy-accounts-signon/metadata.xml8
-rw-r--r--net-libs/telepathy-accounts-signon/telepathy-accounts-signon-1.0.ebuild32
-rw-r--r--net-libs/telepathy-farstream/Manifest5
-rw-r--r--net-libs/telepathy-farstream/metadata.xml8
-rw-r--r--net-libs/telepathy-farstream/telepathy-farstream-0.6.2.ebuild48
-rw-r--r--net-libs/telepathy-glib/Manifest5
-rw-r--r--net-libs/telepathy-glib/metadata.xml8
-rw-r--r--net-libs/telepathy-glib/telepathy-glib-0.24.1.ebuild66
-rw-r--r--net-libs/telepathy-logger-qt/Manifest8
-rw-r--r--net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch249
-rw-r--r--net-libs/telepathy-logger-qt/metadata.xml8
-rw-r--r--net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild36
-rw-r--r--net-libs/telepathy-logger-qt/telepathy-logger-qt-17.08.0.ebuild32
-rw-r--r--net-libs/telepathy-qt/Manifest8
-rw-r--r--net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch21
-rw-r--r--net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-yes-release.patch17
-rw-r--r--net-libs/telepathy-qt/metadata.xml24
-rw-r--r--net-libs/telepathy-qt/telepathy-qt-0.9.7-r1.ebuild71
-rw-r--r--net-libs/telepathy-qt/telepathy-qt-0.9.7.ebuild106
-rw-r--r--net-libs/tox/Manifest13
-rw-r--r--net-libs/tox/files/confd2
-rw-r--r--net-libs/tox/files/initd30
-rw-r--r--net-libs/tox/files/tox-bootstrapd.conf65
-rw-r--r--net-libs/tox/files/tox-bootstrapd.service15
-rw-r--r--net-libs/tox/metadata.xml27
-rw-r--r--net-libs/tox/tox-0.1.10.ebuild76
-rw-r--r--net-libs/tox/tox-0.1.6.ebuild77
-rw-r--r--net-libs/tox/tox-0_pre20160904.ebuild75
-rw-r--r--net-libs/tox/tox-9999.ebuild75
-rw-r--r--net-libs/udns/Manifest5
-rw-r--r--net-libs/udns/metadata.xml11
-rw-r--r--net-libs/udns/udns-0.4.ebuild52
-rw-r--r--net-libs/uhttpmock/Manifest9
-rw-r--r--net-libs/uhttpmock/metadata.xml8
-rw-r--r--net-libs/uhttpmock/uhttpmock-0.4.0.ebuild43
-rw-r--r--net-libs/uhttpmock/uhttpmock-0.5.0.ebuild43
-rw-r--r--net-libs/uhttpmock/uhttpmock-0.5.1.ebuild43
-rw-r--r--net-libs/vanessa-mcast/Manifest5
-rw-r--r--net-libs/vanessa-mcast/metadata.xml5
-rw-r--r--net-libs/vanessa-mcast/vanessa-mcast-1.0.0.ebuild23
-rw-r--r--net-libs/vanessa-socket/Manifest7
-rw-r--r--net-libs/vanessa-socket/metadata.xml8
-rw-r--r--net-libs/vanessa-socket/vanessa-socket-0.0.12.ebuild29
-rw-r--r--net-libs/vanessa-socket/vanessa-socket-0.0.13.ebuild26
-rw-r--r--net-libs/wandio/Manifest6
-rw-r--r--net-libs/wandio/metadata.xml10
-rw-r--r--net-libs/wandio/wandio-1.0.3.ebuild35
-rw-r--r--net-libs/wandio/wandio-1.0.4.ebuild35
-rw-r--r--net-libs/webkit-gtk/Manifest20
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-1.11.90-gtk-docize-fix.patch10
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-1.6.1-darwin-quartz.patch67
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.2.5-hppa-platform.patch20
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.2.5-ia64-platform.patch12
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.4.1-ia64-malloc.patch20
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.4.11-video-web-audio.patch11
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.4.4-atomic-ppc.patch32
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.4.4-jpeg-9a.patch30
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.4.7-disable-webgl.patch11
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch29
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-alpha-build.patch22
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-ia64-build.patch21
-rw-r--r--net-libs/webkit-gtk/metadata.xml16
-rw-r--r--net-libs/webkit-gtk/webkit-gtk-2.16.6.ebuild288
-rw-r--r--net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild275
-rw-r--r--net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild262
-rw-r--r--net-libs/wvstreams/Manifest15
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch11
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch11
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-autoconf.patch31
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch36
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-gcc47.patch50
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-glibc212.patch23
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-openssl-1.0.0.patch16
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.6.1-parallel-make.patch56
-rw-r--r--net-libs/wvstreams/metadata.xml18
-rw-r--r--net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild105
-rw-r--r--net-libs/wvstreams/wvstreams-4.6.1-r4.ebuild95
-rw-r--r--net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild96
-rw-r--r--net-libs/xrootd/Manifest13
-rw-r--r--net-libs/xrootd/files/cmsd.initd34
-rw-r--r--net-libs/xrootd/files/frm_purged.initd34
-rw-r--r--net-libs/xrootd/files/frm_xfrd.initd34
-rw-r--r--net-libs/xrootd/files/xrootd-no-werror.patch11
-rw-r--r--net-libs/xrootd/files/xrootd.confd21
-rw-r--r--net-libs/xrootd/files/xrootd.initd32
-rw-r--r--net-libs/xrootd/metadata.xml21
-rw-r--r--net-libs/xrootd/xrootd-4.4.0.ebuild82
-rw-r--r--net-libs/xrootd/xrootd-4.5.0.ebuild114
-rw-r--r--net-libs/zeromq/Manifest25
-rw-r--r--net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch105
-rw-r--r--net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch25
-rw-r--r--net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch35
-rw-r--r--net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch70
-rw-r--r--net-libs/zeromq/metadata.xml39
-rw-r--r--net-libs/zeromq/zeromq-2.2.0.ebuild51
-rw-r--r--net-libs/zeromq/zeromq-3.2.3.ebuild61
-rw-r--r--net-libs/zeromq/zeromq-3.2.5.ebuild60
-rw-r--r--net-libs/zeromq/zeromq-4.1.1.ebuild49
-rw-r--r--net-libs/zeromq/zeromq-4.1.6.ebuild55
-rw-r--r--net-libs/zeromq/zeromq-4.2.0-r1.ebuild59
-rw-r--r--net-libs/zeromq/zeromq-4.2.1.ebuild55
-rw-r--r--net-libs/zeromq/zeromq-4.2.2-r1.ebuild57
-rw-r--r--net-libs/zeromq/zeromq-4.2.2-r2.ebuild62
-rw-r--r--net-libs/zeromq/zeromq-4.2.2.ebuild55
-rw-r--r--net-libs/zmqpp/Manifest3
-rw-r--r--net-libs/zmqpp/metadata.xml11
-rw-r--r--net-libs/zmqpp/zmqpp-4.1.2.ebuild34
1142 files changed, 43994 insertions, 0 deletions
diff --git a/net-libs/NativeThread/Manifest b/net-libs/NativeThread/Manifest
new file mode 100644
index 000000000000..bf6f1936fc3b
--- /dev/null
+++ b/net-libs/NativeThread/Manifest
@@ -0,0 +1,6 @@
+AUX Makefile.patch 759 SHA256 3974e6419e2023f6a48fbaf79be80c6fa9ea42b7db2008980497c4814c2b5108 SHA512 6304da105ce09cb5fad241bd5ed6486ae237551143676feab1668c3e8777a68458bedc4d4a53710a115ec4d608985600ef54e0baecd162c1236fdbdcedf88b18 WHIRLPOOL 733d832245e43f62d1b281371d0a73997143b5b1d01b1894fee8286547e190588d6988438a9c150a04c97641cc39162c46e604df12086005d603244d99d62e01
+DIST NativeThread-0_pre20080330.tar.bz2 2707 SHA256 ae5277c25420fc76f59d296400c20562e37ff0ad4ecab63e537b9a053ac5802c SHA512 c6c4b26e82c02cb4039718e8085f54fad3d2492b3905dbd91b8798c1140a819cf1fab1b8346ab2524e0619d2921b4ae9de6ffa9c18138bccd965e67c28b05ed7 WHIRLPOOL 3e723036d948c41184a9e19fd8a351e143ed3e548eb3c99d561e8e829f204c555e7c80d621b294a573215bfb372dbba4dc4f9d0a50dc86742e9aa074ce6a0ecf
+EBUILD NativeThread-0_pre20080330.ebuild 610 SHA256 c2e56c2bd8c7cc257c0e5f833128f06496695be2ad9681d84aadd06728123d86 SHA512 58998886e1fadcef8356678686562a7f83d9cc187bafff11d882c895224f32b83f6b12bbc67f2871683e700e02cdb6feb6c31b4e7e64942e2238a04532d11480 WHIRLPOOL 66c1caebb99cc9f3ff4ee21ad34159ebf927159f724920baf83bf018becd073d372916cca5e088ba763a549dbd61663bada8b13371a27f53d6c8c69151bf3a6e
+MISC ChangeLog 2623 SHA256 97427859e02a9f6d0af133ede17c039f2052df38f73edc046b7baa1ae3ccd03e SHA512 7b8b6714ee40c442117e638ee8046382018835e117151251eae267b3fb853f2846dd5814b746a8740ec616dd508fb84758c2f4421ba7745fbbcb6083dd484833 WHIRLPOOL 4beaca55f70b8abbf74c8e21e9d3314649742044ad4bdaf6729e7c9007511feacf42f0295e796449b77c0a058acfaf35d57228411e764db68000ea23703c134b
+MISC ChangeLog-2015 552 SHA256 13f5840cbe2c84c7471cf8637287624c8457ecf4f0a9e92f5c87cebc814f38be SHA512 842afe95c00b86198fbcc1c1cbb09e0d77d0e2b7a5c188f9768751c0639ab203623baf0b743a915b3c0ecd56f8b7f27217f66be7148e7fe260a947ce95933ca0 WHIRLPOOL 5566346bab0ed32412699c7b0abeb5e61fbec5c890e288c19baecac2424bb20408c60cb7b1c9b181473b24847ea5a3feabc1cf731db484c7dd65e05b9f9de60c
+MISC metadata.xml 256 SHA256 b1fcbeb75e9059c70100ccf278d492d9d2678ba93411e576ae760b3f308675cb SHA512 26e53ead25d8fef36a3759518b200c6a4ea0fc24d2c1f054ed85772cba5644118b231438d723ca25c22a55ed2fcf54e2c467279c9f3b49b6c1ced9997e3f098c WHIRLPOOL 25a36b6972f88def1dae7e912650b8fe3a0383d551c4a57967e1b8f80cde478e680e30c034f0481366f2da1d38a10e092ab4392902fa1b7f93cd801bb3f46dfa
diff --git a/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild b/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild
new file mode 100644
index 000000000000..ce00b3c4ffaa
--- /dev/null
+++ b/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..3800f75787af
--- /dev/null
+++ b/net-libs/NativeThread/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 type="person">
+ <email>tommy@gentoo.org</email>
+ <name>Thomas Sachau (Tommy[D])</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/accounts-qt/Manifest b/net-libs/accounts-qt/Manifest
new file mode 100644
index 000000000000..017280d4c810
--- /dev/null
+++ b/net-libs/accounts-qt/Manifest
@@ -0,0 +1,6 @@
+DIST accounts-qt-1.13.tar.bz2 544655 SHA256 9033891b7f122f578d0ccf22b0e31fc478e644e97f24e7ad8fb54ef0a5da30f0 SHA512 e39da214bd4aa72ac745fa2b7735de41985f9d854b6278d0c69c4dccb24ff411d20052454854dce423a2e6cb40bb1fd4b1f82328dcf6acd10cb290881e5c8c54 WHIRLPOOL 7bcd8d15fb902cde2d35ed855ecbc26658aaa9ddfd20271af65f5586bbef83dfb3697d69536231cd28efc35ba0c773da364290c7b7faf618b15d33be68fc560d
+DIST accounts-qt-1.15.tar.gz 64190 SHA256 cfa826076e04a7d075baac12e73f4e890a3401ac30c7f80ed9e257a5c6bfbfef SHA512 36c80a237bc2d427ce3acb62ac3b2e7878ac7e02b00f17022af326b52edbc7ad3d0cf428fb4e1e2bcc1d0d410054102926f549dc18bea137a9d9ea19a2d268d3 WHIRLPOOL 128ad7cff985cabd60dc869c02749aaf0597c5463806edf314e13a4f67ee5cc26b6b4e50e375c0c147ace6f393b422a1bb9c2120b38b6894400cf221723e200b
+EBUILD accounts-qt-1.13.ebuild 917 SHA256 2d833e9dae6e99f0967d4fd65d5d72197360615aaa41136a9c65c6b357a36649 SHA512 2eb9874c3cec114fd6cef5bf7a30c7ead77824630af2fb8fd1112d85e5f0ac9277babf2893fe7711525c5e201ad31aba07e8bba6327f74083b1cf78418cc39c8 WHIRLPOOL 383a4aefd8598bb40f20c66899bf850c5171c355984dba63f9999a4c62cd306a2f50aacbbb850f0e30b03c59691499217ea34e33839a855a83a5011e3a6eaf6f
+EBUILD accounts-qt-1.15.ebuild 1012 SHA256 b12c05e7973f2a4c599ca0624dbdabb1d94adf98006b765b48f54d28ff903bca SHA512 353f7989378e88fc76ddedee0f060ed4a151cd81bf012867677ea29eba9237eaf4eda09e765aa946836ed7ff688ecfac0cf738c42dbb52b0e23e524d4f553ad1 WHIRLPOOL 140c740d616ee82967b854a5237ecec14810967ca9f9210e13dfd7a3e4ae3b8487c0c304b94069b7029636d46b995f01024496daf569d02574393d94cdc163ce
+MISC ChangeLog 1365 SHA256 dadb223a42a1b6f4c2dbc4620692b32111940a0a95ca0b823c4ca93962a52e5c SHA512 bb4c7feb75b13fd188b6488ae83a0df46151fac9e5c1d2330a42bb55bdae692e77cefc5ba9e3918f5fb49622c9571b026a2221a4100a705a217f5c32c68a9ce1 WHIRLPOOL d76f872e10b2bc1f6f58c724f98f5cb4388eed5d4a7bb899cd4145c01861eab820e1fa7e4246200304cc7b981149ca50b01d709240afff39f58ef3df40ad1400
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/accounts-qt/accounts-qt-1.13.ebuild b/net-libs/accounts-qt/accounts-qt-1.13.ebuild
new file mode 100644
index 000000000000..d3a5206b66b1
--- /dev/null
+++ b/net-libs/accounts-qt/accounts-qt-1.13.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils
+
+DESCRIPTION="Qt5 bindings for libaccounts-glib"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="doc test"
+
+# killed by stack smashing detector
+RESTRICT="test"
+
+RDEPEND="
+ net-libs/libaccounts-glib
+ dev-libs/glib:2
+ dev-qt/qtcore:5
+ dev-qt/qtxml:5
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-qt/qttest:5 )
+"
+
+src_prepare() {
+ sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" -i doc/doc.pri || die
+ use doc || sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die
+ use test || sed -i -e '/^SUBDIRS/s/tests//' accounts-qt.pro || die "couldn't disable tests"
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
diff --git a/net-libs/accounts-qt/accounts-qt-1.15.ebuild b/net-libs/accounts-qt/accounts-qt-1.15.ebuild
new file mode 100644
index 000000000000..234671c8ca8b
--- /dev/null
+++ b/net-libs/accounts-qt/accounts-qt-1.15.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils vcs-snapshot
+
+DESCRIPTION="Qt5 bindings for libaccounts-glib"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="https://gitlab.com/accounts-sso/libaccounts-qt/repository/VERSION_1.15/archive.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc test"
+
+# dbus problems
+RESTRICT="test"
+
+RDEPEND="
+ >=net-libs/libaccounts-glib-1.23
+ dev-libs/glib:2
+ dev-qt/qtcore:5
+ dev-qt/qtxml:5
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-qt/qttest:5 )
+"
+
+src_prepare() {
+ default
+
+ sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" -i doc/doc.pri || die
+ use doc || sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die
+ use test || sed -i -e '/^SUBDIRS/s/tests//' accounts-qt.pro || die "couldn't disable tests"
+}
+
+src_configure() {
+ eqmake5 LIBDIR="${EPREFIX%/}/usr/$(get_libdir)"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
diff --git a/net-libs/accounts-qt/metadata.xml b/net-libs/accounts-qt/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/accounts-qt/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/adns/Manifest b/net-libs/adns/Manifest
new file mode 100644
index 000000000000..bdc45c900f37
--- /dev/null
+++ b/net-libs/adns/Manifest
@@ -0,0 +1,8 @@
+AUX README.security 567 SHA256 ec1bf8c850d6245a69e5308bc71ec4c4d5dbeea7e7a1346bd5b810afd0a5d244 SHA512 5a1538d4d93abc5e465798c43a768efd62d913cd040cdd0d25be5a9232ec30742506a414b93ea8db0f5f9edee2cd5de92d792b85b06197aed6d0f06b97740aeb WHIRLPOOL f2470c898464b4eb775ef4a257f12a521c5c3b6847880a4c35e530741dc19152c01b2f6493d7e36220b13c9a42917e3a4ddca25a4833c69d52ef2771c86f171f
+AUX adns-1.4-cnamechain.patch 5342 SHA256 e4b47f3ce0e36f6b023416a62a9329c2bc322e4c2fc068524772cd174e54b12c SHA512 d625261f570951a42c1b7d61c3f84f9f570ac74855e20afba81ebd593788aa5789c56a99fdc6e81487d7388596b2c197381d0bfaaccd1a6ccf5069cafe8eb7c5 WHIRLPOOL 6339252d3bd1754bc05ad3b85e599a0327823a2a398485cd1b3ff68438552c183f22c6f679d01e635b892a7c8e9374375cab8de851b00421a06ec39bbd3e51d9
+DIST adns-1.4.tar.gz 252668 SHA256 717b92a39117a5d8b04ea7c652c630659c6eecb35211129a8cee95e6524ca9fe SHA512 9c067def9467578edbbaa47d5e9bc822dabc96bb66f58d032f93b842aaf3746783102ecda9303b24c6437db34d1c4819d2a0e13d08c23c9c7be27c8180604775 WHIRLPOOL dd8d0be7de16567df9426229a4fc5b91021ca16de25e8f269828bc77f641b200c1adfc0f11e44c007431e4d57e311a3785a39477c8daba9e8ddd62d49c540aa3
+EBUILD adns-1.4-r2.ebuild 1092 SHA256 589896440c5c4e2427b9ad9766584e195cb33885511ca647edf60545779f5957 SHA512 bffe85e2a15cfb68a1b409ca25a98a01345168ae55f7aebce6da4622f58d772612db1a1594626d18e0effc433311cf990e88687a3a4ec07cc99afe42f2c98898 WHIRLPOOL c2bc3845c6a39803f9b18b822ca0393a30d8b4c7cb246e1655a9cbee4643247d7eaa2052c1a0f3845b384cee8e7e54ad46d928cb3ba65897aaf323399463ac40
+EBUILD adns-1.4.ebuild 970 SHA256 6419173949fd15dd511c62a85dfa5e8e42aeb2a67f7cbad4231ac5eb4c74ff7c SHA512 3ea6c19882ef37eeeeae897444e2c579ad7dcf9622c23f8020d8dc7e8acb64a6105a06096b4a11770a489ac1753b6320ff5c3d402992798dc8aa6915ed808018 WHIRLPOOL 25d3e9940964a9eab2e11977ed666b53dacf0c7d627a410ddf903d1423769df3af86e01cf663cd5dbdb6932f693c54bc7461b2f7903821de8bfbd6adade6c7af
+MISC ChangeLog 2617 SHA256 701cb3b80fa1fbc2a8fd68ac215656f48ddf7e06d1f15f16c877c863daa884d3 SHA512 92544f1f8577b0afb678d588b1c01d4fd3ca6d894d477ac05dbacd192e73ba20aca9a2b64e11e7dcc0dc46786cdd89fc4238eab11870811cda55ef3968e65a09 WHIRLPOOL 972580d2763d85dad63f76fc41197e89e8b7f7bc819ac046e52f6b33484840a5e38127d581e4e844a12572a735d7e1714929f3b7ee7c638dc315bb1c3031ffa7
+MISC ChangeLog-2015 4583 SHA256 032adc9c876bf38d20f93026a590fc255a2397c61508c83b5be8950767d4ea82 SHA512 7f737b38dbea8fce3f8c2a3114c925452b3ea28b5b6d2468c4f2d07bb93209915543fc0aea13d50e8d9064a3ea4d310e9d27a9cb3279fc00f1c8700df569cb4e WHIRLPOOL 433b8b1a0d7d9a93b892c91175f4c52dd8c77c2b0e5f4fdada4c23fcd23002c4c4558d5a2f488fe2aa2942b0790a1ffd2d411669089738c9d228ce91336e7b7d
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/adns/adns-1.4-r2.ebuild b/net-libs/adns/adns-1.4-r2.ebuild
new file mode 100644
index 000000000000..36e6d678aa28
--- /dev/null
+++ b/net-libs/adns/adns-1.4-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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="GPL-2+ LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-cnamechain.patch
+ # remove bogus test wrt bug #295072
+ rm "${S}"/regress/case-cnametocname.sys || die
+ eapply_user
+}
+
+src_configure() {
+ CC=$(tc-getCC) econf
+}
+
+src_compile() {
+ emake AR=$(tc-getAR) RANLIB=$(tc-getRANLIB)
+}
+
+src_install () {
+ dodir /usr/{include,bin,$(get_libdir)}
+ emake prefix="${ED}"/usr libdir="${ED}"/usr/$(get_libdir) install
+ dodoc README TODO changelog "${FILESDIR}"/README.security
+ docinto html
+ dodoc README.html
+ MY_POSTINST_MSG=$(<"${FILESDIR}"/README.security)
+}
+
+pkg_postinst() {
+ ewarn "${MY_POSTINST_MSG}"
+}
diff --git a/net-libs/adns/adns-1.4.ebuild b/net-libs/adns/adns-1.4.ebuild
new file mode 100644
index 000000000000..6fcb37315725
--- /dev/null
+++ b/net-libs/adns/adns-1.4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="GPL-2+ 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
+ MY_POSTINST_MSG=$(<"${FILESDIR}"/README.security)
+}
+
+pkg_postinst() {
+ ewarn "${MY_POSTINST_MSG}"
+}
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..9edf69461c01
--- /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: adns-1.0/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
+--- adns-1.0/src/internal.h 2 Oct 2003 17:01:46 -0000 1.3
++++ adns-1.0/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: adns-1.0/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
+--- adns-1.0/src/query.c 2 Oct 2003 17:01:47 -0000 1.3
++++ adns-1.0/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: adns-1.0/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
+--- adns-1.0/src/reply.c 2 Oct 2003 17:01:47 -0000 1.3
++++ adns-1.0/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..6f49eba8f496
--- /dev/null
+++ b/net-libs/adns/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/aqbanking/Manifest b/net-libs/aqbanking/Manifest
new file mode 100644
index 000000000000..8540e9ec8dbc
--- /dev/null
+++ b/net-libs/aqbanking/Manifest
@@ -0,0 +1,11 @@
+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
+DIST aqbanking-5.6.10.tar.gz 3687687 SHA256 cdf0bea79f52173778be71be7d00f667e32adf04372defe917380f32efd611f4 SHA512 2429be829bf8c7b81b608ceb39d1f7f7f1876b52961d98356c611196577c89991983a0e87575605deda1e4ef71c68a20466457c827c36910b316178d9a37352a WHIRLPOOL a44f8c232a985922e78fbe68daf73cc8225cb99c207e136b76fbfe0e25a86636fd6c3283576e2599128bf3a452a96bbb93b833168fc1b085b9cea35e769369a3
+EBUILD aqbanking-5.0.25.ebuild 1567 SHA256 0ffd4ad1f1e1b52f3c41d5564b98b8e4b8404cf6a19868b0754a83db4f42f2e1 SHA512 a2dc72258ce9152d6ce80bdc01a4e47c34aeab4d3e3caa6f51849943921f2eab327f75c059872b01f34f393f951dff274a6695bcc440b87868591f2242a22f95 WHIRLPOOL 06a7925364b2ccf0a5a178e40c4dfca771c7815785ab7750786c87f46dfc9dd5e6278d0d2e95b222725429b92cb652cb1399bb392cd7e19c4a3a45985b629452
+EBUILD aqbanking-5.4.3_beta.ebuild 1539 SHA256 d2ec0a11933320b25883c57551f126a84f96ddc33d0963a14644b1db83234109 SHA512 b2dad0ae974b37b968a17452137d3814a2bcaa18257a82f27bd6183f6f4f25ff3c1610df84be69ec06c23f8ffecb3afaa72cd360924c0d48757ca61c1d47c883 WHIRLPOOL 0643d27c02a519d8c8ef2e2f2329de13725f299db150ccd36bb0e8aaae535e4ef2bc6d5da52915b62f16b9778d2e9249162bf64cecb3a44eec264b68ff780eb1
+EBUILD aqbanking-5.5.1.ebuild 1628 SHA256 17e6b444be27ce3d26f4ee7a6ae5b9dcd4cc151023b0574db99f141272e806ae SHA512 6c056113c100c93b32fd2f18c63cd88b1b0a3b424bd1ecb1c3994c5eb0cab7170682aee47d031799fb60e916828e95a60516eb507b2d8d43e6f33b12e03e3ce2 WHIRLPOOL 485640a2f8a39739c26729a4ba47899031c539498071c8b8ed79cd2cf1e9a50d68a6c242e3302d0f10a6646224dc9027500c60e74110fda72682532e575e43a5
+EBUILD aqbanking-5.6.10.ebuild 1600 SHA256 600f162c5afc7e86dfff3cfc97f055fab3da442a9c16f60bf4f73587d182cfa6 SHA512 5c13fcd67aebe5c8b4f19aa5b326794b267375c3a156544617da1573c7f24b87377b50a0c9e6d050ebd54d13435663ef9f2e1b9fdc8876f6b6f47e662f635e6c WHIRLPOOL e7056bcfb8bd1b90882ce79b98d21bd9423194a63cecbf38329350455a8396219a5a4b53309bb7b0b668bdec9c9d07f48e762b5e21ea36b750d257936e141f61
+MISC ChangeLog 3197 SHA256 a8b1ea12820b75f125c06504ca577d53cffd4d66b701fe55bc8aeb5576b28fc2 SHA512 a7f1be3066a1b9690c373c7e02f0cc2ff776fd74ccef1714234b57cefcbdad7778b1e0acf9267a25cd7e6eb659eeb73c58df9cfc9847b7b0ba583747b35d2fc6 WHIRLPOOL 5ec4dd4a536734b2badc9a63c29902e5ebeb7e3bd660aa67a53818590567bd22f52911a7f615901e5149f7fa88f44dc52cebfd9fe3dcb0ad2c873e9c5e5a7cdd
+MISC ChangeLog-2015 13358 SHA256 9ee6dd742db23c8811f15bcb8391db6979b422f03ed381b82a83f3a42b1903d9 SHA512 7f3cf77317ef1629e985f68a39b3b6b90bdcd66da131d80d8f3296140e188c6d380dcad73873239120be85d7f879185ea42ed89e3faf564b8657064be9f8a481 WHIRLPOOL e754587a1d72a722d1cf2fa11db924550f0644e7324034176abfebb62357e7fe059e9bd4f4bf6c07885549045cf88169f540803dec70646848388e33a716638c
+MISC metadata.xml 412 SHA256 d316d1f8c72cb99fb705c6310db94a70a5e49714e2f5112bfc6036c3420ef97a SHA512 d32767c7a1c63a22e61318687c3591d86b2adaab9773d3330b451c099306412003bb07f449c3cbf0791b8d2370e742ecc3922076e9bc8e6c0a1ad7fc92d24999 WHIRLPOOL a7a17870beb0755e466700f5f0ce3a789d7f51b21fa5e4be0489e624107459b72b220efef40b0fc1cf3a569384119c678b2e81b29a6d5553cc3c454e64e1ef9e
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..2a554913c83b
--- /dev/null
+++ b/net-libs/aqbanking/aqbanking-5.0.25.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="Generic Online Banking Interface"
+HOMEPAGE="https://www.aquamaniac.de/sites/aqbanking/index.php"
+SRC_URI="https://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..cf4c093fd6f2
--- /dev/null
+++ b/net-libs/aqbanking/aqbanking-5.4.3_beta.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+MY_P="${P/_beta/beta}"
+DESCRIPTION="Generic Online Banking Interface"
+HOMEPAGE="https://www.aquamaniac.de/sites/aqbanking/index.php"
+SRC_URI="https://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..391c320abb1a
--- /dev/null
+++ b/net-libs/aqbanking/aqbanking-5.5.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+MY_P="${P/_beta/beta}"
+DESCRIPTION="Generic Online Banking Interface"
+HOMEPAGE="https://www.aquamaniac.de/sites/aqbanking/index.php"
+SRC_URI="https://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/aqbanking-5.6.10.ebuild b/net-libs/aqbanking/aqbanking-5.6.10.ebuild
new file mode 100644
index 000000000000..de06edeee681
--- /dev/null
+++ b/net-libs/aqbanking/aqbanking-5.6.10.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+MY_P="${P/_beta/beta}"
+DESCRIPTION="Generic Online Banking Interface"
+HOMEPAGE="https://www.aquamaniac.de/sites/aqbanking/index.php"
+SRC_URI="https://www.aquamaniac.de/sites/download/download.php?package=03&release=206&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"
+ 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 -rv "${ED}"/usr/share/doc/ || die
+
+ 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..24b547cfcad1
--- /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 type="person">
+ <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..6930ac2d0811
--- /dev/null
+++ b/net-libs/axtls/Manifest
@@ -0,0 +1,17 @@
+AUX axhttpd.confd 181 SHA256 5eff31a8656c735ec9b85eac8d0a92c497132d5337fd5dff6f9e311e6b223a65 SHA512 319cbe1c8121f00eba310bce664ba67828964572e53e1290804a28d7dda8e017ace27ddbab78248d0935d4e8b2c6321b8294befc99a29f5e949333718516b0b7 WHIRLPOOL c70ac3f443e0a1fe9c25af2db6d8703bcc7d2d78d135de024f5687bf9667528e3f5fdbca90c3f8ab8867d11af02a33a0d8e1b9a6446e3be547b0e785c7dd33ec
+AUX axhttpd.initd 515 SHA256 4ca81785bdafa7285fdc9c2f31c54af1a1b267a75766a120ea87b384fb73a747 SHA512 8d538a03b9102b28aeb539714b5b886b9d7e5ad0496641e40a9c72c85bb4dc96f51f56482c346a0b2386e4fe5b1e34500f78bfc605fa4f8a968d487bbe534015 WHIRLPOOL 0fc1acbd9886e4759eab80dd9dc2c7acd1e34ce813ecbbeeff062a6206455e50c432abbe0457202f37012929d8e67d1a02ed58e52e3f1215fe498049e9015652
+AUX config 3064 SHA256 e85c8bd84f34045b52cefc7e3df94373f87cab22d495efe7ca737b1e6cfaa7ed SHA512 6589e3912ba9231db660b8afe71a6e233807108a8662860667dcae3b6cc4d77fa405503d6eb9d520669cd26fb67f418095b6174b88527c290818fc6400cb65b0 WHIRLPOOL 603b5913eab935d978e48fb36e2178323e3e6ead479a09ae0317ec1ff5c2bf7bde83c66e7965a7a8423ab9c4cce37e8aba44f1eb7e2329d38dbe31a861ec78e3
+AUX explicit-libdir-r1.patch 1578 SHA256 82e5b1d5efd48f4fbd30c4bc41b3673526bd982c050f1756d6146483bd2770d5 SHA512 8e10b10eb6959e309e504a0ff2c16795e258f0fab57b97ffb3b64a6c3b84de8e782cc1697983ed7ff0a05a211e43146ecf39588782e8d3c813a4aa053d94557a WHIRLPOOL c0ca0eef64220941c7917a732505147c3a86f79fb6cf1d2817eb4bea0038df976f73cbf4fda372030fb6a6493c852158a34d9ae7444dc1d4e2fe92612607141c
+DIST axTLS-1.5.3.tar.gz 1309853 SHA256 367ce7918b9e7738d853d5eaaa9d4fbdb362c5b323d4c0622a72d891f6b8d8e6 SHA512 d37fb1341259b079ed234512a96656d67e005c50d9f8e0c856fb140c9da35267624e065134e0cc8310f70e5cf5d196c7dd34f01e2a7a5cc29e77e7ca46c25281 WHIRLPOOL 92de1a06da740adf0238550d36a75216bace6c7fb867e82d38f2ca2362dcf0e41810191933aa788ffda080367b6beb312f1a9a240ab687a6c4f324988d36a81c
+DIST axTLS-2.1.1.tar.gz 1305982 SHA256 6ea445bb7f3ce072242df7f687f531c9d18079681990f93cd4f65f43ef2057a1 SHA512 55619d5e02ce466bab223ebc1036ef39c6491d11126ed70f2712a427de2c7e396086a97d3607c9cb69685ade0763e2e55f2c94f9ba746d8ce7b34b0d1996f51a WHIRLPOOL 0e05ec073735f0ed334cb6d84c901c162f413a26485a79ec166ee5bbf9ed02708056093d31d5a00bd4374727a6eb08146f538ede04450145101d5eeb03409986
+DIST axTLS-2.1.2.tar.gz 1317506 SHA256 38deea2ba07104c7d0e719e06f8bdc35990ac55e5926a26628f7ac240677fd2e SHA512 29e915c0b8549cf93f0664525c84281dd64159dcb3703badec382d203d0209b4f97d7cb875c710610da8e50a7e28d2b94ac161d1fd5fb625d492b15869333ada WHIRLPOOL b6164acd82bb48a8020ab695642aa85b4a7782f2488cf25ec1c21618c4ec5e1ac16496057ebe21f158b29c2bd1133c40a089c1c5740e8a9f8817be585186b83b
+DIST axTLS-2.1.3.tar.gz 1316776 SHA256 555ce7adf743c97ca7562e4e5644f8d678c9d88139aeeadb758282f1d37db8a9 SHA512 aa116b671bf0fa059cb77f9e5c0307c48ab476b7ce7017f1d4b2e6362d9d527e534908cb30ec3667eec8c49566f950de3ae4ec0adf5b603fb4efb571eaffc596 WHIRLPOOL 366c8e1109ffe1082ca8a89758ec38b7b01ec9b24c5885171b1a36a4323b5915c81f78f50b4ce2999e14dc907cee624ad52256ffeccccaf5771e4545186b242c
+DIST axTLS-2.1.4.tar.gz 1316768 SHA256 e53dd20e2b619349bc48b631176a38742ea600333fd0349df83c6366b7be05bb SHA512 ce301719a12f5b836e3c67a169119d2836382b7b97d39f4010b8b8a644a6751b9f948a6c91f8dc6c39d19f5723311af7aca8958f9052e72cb38a9907247af3e6 WHIRLPOOL 6304f783df3006393ed01c82b011d3acf93d4ece675974f41e261a6ea20371378eaee8f6ca396b66694950583c59554a5b1c784d26c5fa02714483805ab3fb46
+EBUILD axtls-1.5.3.ebuild 4658 SHA256 f901a46ab6f16c6baf8252a66da40a399a2d63966d35e23262e8690886cff1ab SHA512 49d2cd35f692d828e16b56bb6eb0ed2cdc45329fdbf1641fbab53418e237141ad233121e3d1aa663df146ab13cecfefa6c2318457cbcd6f2cd8db1aa9046b2f9 WHIRLPOOL b32a55c7eb1859b54dbbd708b17c03d178dde85cda22affbd958ad4fb9b3eb154dd09af355e2b193762acd5d9080303b7d9ccba5f3607d942092f617aee9cb56
+EBUILD axtls-2.1.1.ebuild 4666 SHA256 0ea032ed20353314b1003fec2ad5c38dc2068b35618e29a358fdbd4bd6bee7e6 SHA512 433b2d36a5e0b0e4b32d7b4724c6dbd7dcc243e5888a51c51cc2da435c908f472ba09cfc5a059cf4a8eb2a721128a3e3bc2ec160b905454b1001d3507adb5a7a WHIRLPOOL 7b3b6ad47f4e8996a924408573d941d266b85d6bb7f4d6ef081710b0b73d1079b081dd1c80e3f3d7dcfc327f3e17e61b5be4d71712bf5537e4fa9e04350c47df
+EBUILD axtls-2.1.2.ebuild 4666 SHA256 0ea032ed20353314b1003fec2ad5c38dc2068b35618e29a358fdbd4bd6bee7e6 SHA512 433b2d36a5e0b0e4b32d7b4724c6dbd7dcc243e5888a51c51cc2da435c908f472ba09cfc5a059cf4a8eb2a721128a3e3bc2ec160b905454b1001d3507adb5a7a WHIRLPOOL 7b3b6ad47f4e8996a924408573d941d266b85d6bb7f4d6ef081710b0b73d1079b081dd1c80e3f3d7dcfc327f3e17e61b5be4d71712bf5537e4fa9e04350c47df
+EBUILD axtls-2.1.3.ebuild 4683 SHA256 9dc2c17e47dc46f1c165599bbfb728e4ffc82eee01f488bd3d19075725059d30 SHA512 bc0d776ad2356009fedde4315e53e486c0a8638e913561a9f2f44260f8f17eb0bc2e42f3e0748a57369a03beed5baf08780d48d75627452d533d1c63fab70c14 WHIRLPOOL 1714109e079c897014cce988b47d9f573fc154e816d71cd6c20e533a59f73883e9e8b4f818e490f23ad7569610e6baa15eec59cc3fbc859177e297d1f0e8ad07
+EBUILD axtls-2.1.4.ebuild 4687 SHA256 d7b0e29aebb94fabeb10da317c96e63b17d256534f6d9a5299b608b0058bfd1a SHA512 e266f60307098635db515eca0e6dc4aaed14d6c0ebd9b11184afe8bb34a20a1eee9367e8ee8e44ce843811d13c39ea7ba8b114657cdeeaa9c74656175ed33dda WHIRLPOOL 18e066109fe414be7573a7608f987696a67fec31a70dfc73302b7312be14d3061f6bcf20c8b2588ab00213a6ef3165fb2d4930a75c02b9d0d47e87845d6d151b
+MISC ChangeLog 4099 SHA256 968a536c0b0b7b0546c8e34bb2f9e47ec46d73eca507e0d48c128454bf6b6cee SHA512 c6f21424f63f68d6adfe2b61e9599bb69dca9538785ff1dcdf6bb9817c409d62e672f9c27f01dd52a563ccc2af88a708bd5bf9d7b5b2a386bcb0000771b73d37 WHIRLPOOL e76ca51d2ff1cab28833a0fe9f4bbdb542aa6f53a65b707d784fa71587ee2f4980e5fbc2a19bb250b759a42f8c19fe5917d9ae21917e4f1dfc79293dddd91597
+MISC ChangeLog-2015 7324 SHA256 9bcc860808864b9a4cb5bca7831ccc105b7c448ab68b6b7dbab264775207d797 SHA512 0fa7eabb3cb882ed1e93be4605adcaad8f19c251cba71907767348b9e5b11a3f645f9189703b58299290850cdcf8ac8cb54e5ac86c9f87003bc46bc167ccfcb2 WHIRLPOOL d40ed5f71382b38b2d1dba037d99fa1b796a0b6d67ce3f60d1c1dcb1738f9c5b9c3d90429924dfd448ed2a61819937f01bc3777b7ed954d917d2ff8901287cba
+MISC metadata.xml 632 SHA256 5759ad35dd5f28984f2a9694f3371c64b31f9ed2abf938cf6a114e64283bf6ac SHA512 bfd387d998bcf2a457ff01752b553307b0de430cb9372115b366ab80a10866ede54b8ee149c726aba6f12c8cc3c5ea089dc5b25083e95594d8912e181a8626b0 WHIRLPOOL 12eac6a1ff0ab622111d48a78615dd3b2dfeb1002054bce1b9af1532dff55821bff0f0779df72155886a2ef3b3a7b03b40b8f0e51e7e5d6bcd771ade8db8ba22
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..47c0da37b128
--- /dev/null
+++ b/net-libs/axtls/axtls-1.5.3.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-2.1.1.ebuild b/net-libs/axtls/axtls-2.1.1.ebuild
new file mode 100644
index 000000000000..26c6da079834
--- /dev/null
+++ b/net-libs/axtls/axtls-2.1.1.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/1"
+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-2.1.2.ebuild b/net-libs/axtls/axtls-2.1.2.ebuild
new file mode 100644
index 000000000000..26c6da079834
--- /dev/null
+++ b/net-libs/axtls/axtls-2.1.2.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/1"
+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-2.1.3.ebuild b/net-libs/axtls/axtls-2.1.3.ebuild
new file mode 100644
index 000000000000..a701820d392d
--- /dev/null
+++ b/net-libs/axtls/axtls-2.1.3.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit 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/1"
+KEYWORDS="~amd64 arm ~arm64 hppa ~mips ppc ppc64 ~s390 ~sparc ~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
+
+ eapply "${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
+
+ eapply_user
+
+ 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-2.1.4.ebuild b/net-libs/axtls/axtls-2.1.4.ebuild
new file mode 100644
index 000000000000..b9c459a225e2
--- /dev/null
+++ b/net-libs/axtls/axtls-2.1.4.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit 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/1"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~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
+
+ eapply "${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
+
+ eapply_user
+
+ 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..d74045cc9d2a
--- /dev/null
+++ b/net-libs/axtls/files/axhttpd.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+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..c471ce95fd91
--- /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 type="person">
+ <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..6bb6cc073704
--- /dev/null
+++ b/net-libs/balde-markdown/Manifest
@@ -0,0 +1,5 @@
+DIST balde-markdown-0.1.tar.bz2 260429 SHA256 face375e275fae323b1e01c1cf430479e163d7130f3b1cffc310564bf71bf2b1 SHA512 ba0a952d1f8480f6173a8af6eb662741ac04db4e39d65158afac97606c2faaaff973dce384b2bc1d42aabbdd345cd451fc5624f1c6d2f941f2630b2e76a01d10 WHIRLPOOL cbfdb1e1d457b4f6963999d9a4472d6f8bed21a8562f38dbf2c48a31e48ec30028c71f0f2084c7274ca0921e032fe52ec05aad53a671c911c48af765cfb4baa7
+EBUILD balde-markdown-0.1.ebuild 748 SHA256 5cab0703db534bf75334bbab6f791fc80f3aa9aee07274d34aeee53fefcb9bd7 SHA512 b8504ac49904712ff9bf458e6fe6d588fafca3f7b246b1b0961e2512544cfbe2eadda037ce090f9509a9265748891c894a445dbccb6cb4859e94b9d345aef52a WHIRLPOOL a701f8a21659c72ebf190e10f4d751908a79939b6e71cf71ed1d28c579ebeed4897cb1e05110f2758c53bf85988858f05b4e992e2d63a7138ca64ae91f7722a9
+MISC ChangeLog 2193 SHA256 c4d6d6850a1f59366718bcdb94ed909d83552a019a6dff7e896c852237282c35 SHA512 2d0a022322a7690b354ff41342911e6ec8e9fbfaaf5455571b064a99d59631fb90810423461f596c3987d30c1a29bf9e071f63040ce60889354fc4a44d18d663 WHIRLPOOL 4eb569647852c57ad2f84ba9dca49b8aa0fd1895921c02013d104e9b0c757c67f61ce5e274daeb9778fa4e73fbd900703209d5bda7005477f8338601d4b1621c
+MISC ChangeLog-2015 652 SHA256 46990bbf111d5c1ae037bbff5783a050b2096db7bcee079ea02b76e27923b8b7 SHA512 b4f6bafb13e4de34d438399046016b3bf77cc52004e3b168a216a3569e95db2ee64c1f38636fdc8d13fd9d677ff013f632b7452d761a3e22887e77a28417ae9d WHIRLPOOL 51bf7a27fb0f9181cf1554e47dd28602c0605df9a42dff20829cd2f4e79ea950c7fbab8c831a92ac01c6c7e8f9bba699cfc18a032e82b9306235e072ff0d90a7
+MISC metadata.xml 618 SHA256 d6238a93b6b048aa303421d23e22fab771c5db8236ffe83b001a9579c194ee4c SHA512 daeb67e040a4de1d728268acd0ce8bb013c4b055d8cf5fdb7bb2985a6de42df2564195d4a2abb8eff49a464c7f69c610612a5a4a66e576f03a1293160ecd7662 WHIRLPOOL 95d8f2c4b0c3bfa98d66551c525570f5d504b372e22c3e88b85d0c0166d9b6ccad8710a54ec3b00a2dfba7174db41c78cf584209d3d9aaf1c6a05cda65ee1910
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..c0dd7e59022b
--- /dev/null
+++ b/net-libs/balde-markdown/balde-markdown-0.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/balde/${PN}.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..eb24f7a037d2
--- /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 type="person">
+ <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..cae6e740bfc2
--- /dev/null
+++ b/net-libs/balde/Manifest
@@ -0,0 +1,5 @@
+DIST balde-0.1.1.tar.bz2 360412 SHA256 0da03157d0c87d8699ff36d98636ebfd3ca62bd0d4db15ea567601eaa0e40dba SHA512 fafb9e9344ecb1caf6a4451b99adb3505fb728015e2bcce3d81162f679a70267e49a0dc194c6c977a7a155f9b5ae3318fdfcb63fb0223e43943c0fc5e8503acd WHIRLPOOL bff449dfaf1ed45d6655fc861ab69b95a114abf41e5395f3988937af2c465d096f845e2bbb4294fb7fcc8b8ace8c125f149e074a636a0ab130975124a886cef5
+EBUILD balde-0.1.1.ebuild 1015 SHA256 acfed9def879181cf5a2897ab1d89bde6b6b99dcd090e4f8bd3afc2cfbc8b7d7 SHA512 02b12191c41fb211218822a80fb57b7f9ec6d11a3d820bfac7ed58a004ef28248fa41ae05ca00e519fd30b04ac755137d5fe2cd54315c0962feb4398a7a2ce7b WHIRLPOOL 2714239563b2c2ccd3c00220c81c7ae293760a26585f68d63eca527d0a46b4c41901919dfec559bccf28dc7721b4ec3cf82de0b63563f718cbbd89d946b0fb9f
+MISC ChangeLog 2170 SHA256 e4a245931bc13b2029ad8532f34bb4d169f0860ae5e4d0bc6fbf5e93de09a8d7 SHA512 312fe9680eab2efe1e51098d395d6cca35c1f883e68c508c6f7ff43692cd2984e3ae6be4ce8afabd69d3b1052723bc12c7c53bdfb5e54120674a0608ca5d9f91 WHIRLPOOL 4315232feb3f51b8fffffa905a2845c4fbbffd13817fd71b931131e8998ba58d67b5919544cad5245ec2af253dd8c25cd4fc4f620b3dbba56c7e6f43f1ca2abd
+MISC ChangeLog-2015 603 SHA256 6958ba5ecc1abcf40b4568e6aa6a7ca264a51c22fd9469823ad0f5ebb4e0ce1e SHA512 2e46ea93536e7733a8a2f4e35ff212c19f368521aa0e9284fc5f3b6b457f954623902ac7fbc4fcee16353566d1ba32892ca284ae5a9e78e22a6ab140cb9cf883 WHIRLPOOL 96410c2434f772daa62f98d8de31e336aa3ad5259291924593050004f4b490b606bb69cebe9446009d5ce30f5b249df5e6b8d07a565951adc3ac0304540b9f2d
+MISC metadata.xml 620 SHA256 6e95bf227a76101ea30d44005891ca5de8b1f6554af8f84fed3d8c59496ac9cc SHA512 3b2647198c171ec5a7a58d03c8312eca6fe5cf5011b3472a28cdff2e934fd69df78fc80ebb6b6d78d651b6a326750dba3156456680c048ff3e4747aff7c20b23 WHIRLPOOL 6bc5f0a4552d4a6729fd7f35d4cd1d2afe37093063454bccac07f776471b8aa63454250ddcc8fb39faa9a21f2f364916e0da96000b22b40dbff7661a95e9269a
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..bac205a6c7dd
--- /dev/null
+++ b/net-libs/balde/balde-0.1.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit git-r3 autotools
+fi
+
+DESCRIPTION="A microframework for C based on GLib and bad intentions"
+HOMEPAGE="https://balde.rgm.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..77a6a96e754c
--- /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 type="person">
+ <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/biblesync/Manifest b/net-libs/biblesync/Manifest
new file mode 100644
index 000000000000..bac5302e2446
--- /dev/null
+++ b/net-libs/biblesync/Manifest
@@ -0,0 +1,5 @@
+DIST biblesync-1.1.2.tar.gz 86620 SHA256 886e1ac165b8900254c00a182fa34e3680ef3aa25051418470f15ea09ac02005 SHA512 7725c8228e2dff79edaf065ff4d4816a6cf214d1d874817345cc4154142144bce479ca1ae871053886bff4f6610715a27bce81c25c2a636444d5873e93bfdc62 WHIRLPOOL ae89ac316cc70415ec4e0e458e7d8173b5a59741475bf1638f90c1614618058a664118bbb22d931e936fb7c4a1e8b4897f75a1d9cb7538ab0d8b8b7b96c81da6
+EBUILD biblesync-1.1.2-r2.ebuild 585 SHA256 9eff4e2d408b514aaec81ad205c3597c1277dd37b68fe182baa3fcd04f1e9629 SHA512 b570763ec10cfeed0b1a6b532a69cd811ea4eeaef846bfe8446f0382d08fb70c1b2d51256b5d73f1e065e0dba0fbffbab32b0d333dadd2f75acac57c0e6f231d WHIRLPOOL 3f023f02b22d2765e91fecb5b26fc03f488736352b924618d70b1985020a07c5ba233fc1c0ecd73dbe7105fd7152ef81058ac61e3ad98d3e92ec21a9e0069a34
+EBUILD biblesync-1.1.2.ebuild 418 SHA256 98126bc305aeddbff67a5f3d4b3c51bbfd65caa6e950470dfb3c329e7b27c05c SHA512 7a930e2c8fb83562881a7887381d4310810c2e4efc904aca14b60905dd97f7316f343a52b712a4106cca44c5e602c5fa1d1abaeb1cb405cb49a55cc9e5c4eeee WHIRLPOOL 3e2913cda8c472f7b382d1a23942e29200e4da8122ed21a1b7b0b923e17017afd596c5c987e18e767aac182e1b7002702e5a143754010ee7f49bed28e624099b
+MISC ChangeLog 707 SHA256 6d89b4c1174cf2f35779e1baaeafef8e662656b8588020376fa3ecf2b2dc8520 SHA512 efd4d975ba4feb92467f41f9d8475be397cf64bad0b4f55dbb2967fdc7afffc90705b5ea111dd9dc434e19269b40635cc74028ab9116a2e08c2efdadbce08e0a WHIRLPOOL 2b4025ba6c5592b5bb69a08f0961f07c79b6023bd2701573fa9b2545d3d37e2429bd202a68d9d3715cbcc580968f4bf3af4172977a9467dcc11401e50709cc65
+MISC metadata.xml 300 SHA256 260213edc5b68387a1114a98ae4d39826a027839ebc12052b829abbcbeac2150 SHA512 0e8ea5d19ca48a68c4266c8cefb5c29d43d56c2ba61f271460ac35d5d8be18486c84ade898e2a8b647648afa24a19ee04ee60f2fca5a0fe358920deec2418340 WHIRLPOOL 62596739ee28f6197e50c4734677be2b8a132d6716e1b26017fe66760f1e4a1a53bcf5417d69a0cbd40d78dca0ec13ef892dde020440506c99a14f04647762b7
diff --git a/net-libs/biblesync/biblesync-1.1.2-r2.ebuild b/net-libs/biblesync/biblesync-1.1.2-r2.ebuild
new file mode 100644
index 000000000000..f486c14a1bd8
--- /dev/null
+++ b/net-libs/biblesync/biblesync-1.1.2-r2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils toolchain-funcs
+
+DESCRIPTION="A multicast protocol to support Bible software shared co-navigation"
+HOMEPAGE="http://www.crosswire.org/wiki/BibleSync"
+SRC_URI="mirror://sourceforge/gnomesword/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="static"
+
+DEPEND="dev-util/cmake"
+RDEPEND=""
+
+src_configure() {
+ local mycmakeargs=(
+ "-DBUILD_SHARED_LIBS=$(usex !static)"
+ "-DLIBDIR=/usr/$(get_libdir)"
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/biblesync/biblesync-1.1.2.ebuild b/net-libs/biblesync/biblesync-1.1.2.ebuild
new file mode 100644
index 000000000000..60cb06895614
--- /dev/null
+++ b/net-libs/biblesync/biblesync-1.1.2.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="A multicast protocol to support Bible software shared co-navigation"
+HOMEPAGE="http://www.crosswire.org/wiki/BibleSync"
+SRC_URI="mirror://sourceforge/gnomesword/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE=""
+
+DEPEND="dev-util/cmake"
+RDEPEND=""
diff --git a/net-libs/biblesync/metadata.xml b/net-libs/biblesync/metadata.xml
new file mode 100644
index 000000000000..139d2b70ed62
--- /dev/null
+++ b/net-libs/biblesync/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 type="project">
+ <email>theology@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gnomesword</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/c-client/Manifest b/net-libs/c-client/Manifest
new file mode 100644
index 000000000000..5b2032c091f4
--- /dev/null
+++ b/net-libs/c-client/Manifest
@@ -0,0 +1,10 @@
+AUX c-client-2006k_GENTOO_Makefile.patch 2441 SHA256 6f7bf2d23f346f0f8eed4c4ae61e5b5c95d1a12e15e7fb4192a5a723754255f8 SHA512 35b9dd0737986e466dfbfc5388827b09934b32a9a7922bba3d7b4a4bd40dcaf2985a7f2d5bd3e884ad8d33c61eaabdc7f797d6af450b3f85cd0dacec764233e0 WHIRLPOOL 56c5ca98b651de9711f261f5cb1346a517c14bedca4c44d9bc0da4201b75264a8dd1568952f693c93a0fb80d905b52f4d121fefaac1d51b08d9096514fbaaaa4
+AUX c-client-2006k_GENTOO_amd64-so-fix.patch 665 SHA256 77de7621946c69638295ac11275124d0c405a4c6ba284a068f9a96c4994f3184 SHA512 213f06e133704ed2bb9fc6900edb7a4505bf6965409ecf76502bf9cafdf7c981bca552479f8ffaa1a355d2f1c1c08dbe0453fa5bce06590f6627d0e622c70879 WHIRLPOOL e111b86dbc52ec97851d229366cec17b7999c3924bd33da52f2290d0ab0afabdfe75db8eb4e0e359c96ad1d7265c28eee92d1a1337ba25ddaa3cb003ef106d1e
+AUX c-client-2007f-ldflags.patch 1652 SHA256 93665645dd70488bace8ec335e2deed02ef4e4b238405745bcefd7505859a239 SHA512 d30d523ffe8ac704278d3bb8cf03219d5cefc9eff0280495effbfd759062e45ae7df9b53a147cf0b8f9751657c5909de7cff316726569821c2fb2fc6eb8300c7 WHIRLPOOL 2995cddff81ecadc10ca593b1c1a782237a887f3ff3cb8f7d38cfc4ad67edb6d3430e45243faa4f7394cf7f4075abf852d56dbd6ebe405eb04c371b03eb2ef26
+AUX c-client-2007f-topal.patch 1078 SHA256 dbee5c80c04ccb11292d23661fddf43783bc59f65896168c37e807a370718345 SHA512 f81914d9d0acf92625d2a4956aa82e9639bc36ab12c608dafb8137afe619f6acc5d9647d05a1827bfe27b21c9dd774bd458c8cfa2e5c2e449ed956daed674b00 WHIRLPOOL b60bdd61a7b9561aba4b25cb825040c9691769cd58e21597eae143df157f933268b40b661928453dde999c4201eefc8c27dcf268b9fd8447875cadf45e19d59d
+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
+EBUILD c-client-2007f-r6.ebuild 4539 SHA256 ae7bd3e85adec59b6151ebb607a45ef452db09dab76ff9e92600b49a722d8c42 SHA512 58106409125a1c4d7c27d90d6bad559219682b0d941c5284084daaee214b78e09a3cdb14c32f8c35d315de0f5ff9b55db3f26348a1b5ce5b6de5c22c7e9dda22 WHIRLPOOL ceba06b61ac51d083f4f35ee2652e4104feab6bc33a0f4db6ab18dd8b7f216f893620522598ecdd0eff5cf612a3127b318b018210e6dded3408b4dd4837c7c22
+MISC ChangeLog 3496 SHA256 5cda659b886bff6f35e7b835c796fc54cf77f0c6eee21f1a909bddd55d4b6c39 SHA512 87abfff4bc052319c72b8280276c6c67abc7d421f343ee185576fc90f1252ad6f10fa798f44503d1db687f0fc2bc8963f698d4d53924e78e0b2933927109f87e WHIRLPOOL 5d89f4099ab094057ab0128b9c42db399491ef90dbb46f3a95f5544b44868cf7b09be96a6d3c89658a119fde27783c66eb633c86116798fe7faa70dbdaec3578
+MISC ChangeLog-2015 14233 SHA256 d0a8cf94b35e132099fc75b3bfc9b31b75f6ae6ccae3c9aede297ba0c64ceb03 SHA512 6d2421703cf5cd8dec434f27eb133038e5f0eef85c0a80ccdb74d749a07ed67325d7526e825afa295e2bde473519eec175851acc38fe55c8c61cb83766e53c81 WHIRLPOOL b478a38cde07cb494b31fa3efa57e960bdb704f4be524ca2aa4222c36f83af42ff97c3b3e863f2f4e7a7228b3009e0711eb9878f62b709afe6906ba2b7c4d6ff
+MISC metadata.xml 567 SHA256 7d4bf7db8317d23ac6a403c2ad392eced3682921c5bcc4b25cb13df911cc9c62 SHA512 7b49251f5fffaf31b3ba67c0e68f05a1917e04e79aead3c26061f35d8c7f27215878c7e0dde22f8d1cf8e8dc7bec45b71269c0ccf2149e0a8ae0465b9931f78e WHIRLPOOL 808c959613874b6a150fc0f6d6b418df585da26f2c47027da4c4be5f4ed70c03fcdb115c242107e5691258950fee33491ee09a554f0112338af9ff8ad7096fd8
diff --git a/net-libs/c-client/c-client-2007f-r6.ebuild b/net-libs/c-client/c-client-2007f-r6.ebuild
new file mode 100644
index 000000000000..6f539a984877
--- /dev/null
+++ b/net-libs/c-client/c-client-2007f-r6.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+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 ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="doc +ipv6 kerberos kernel_linux kernel_FreeBSD libressl pam ssl static-libs topal chappa"
+
+RDEPEND="
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= ) )
+ !net-mail/uw-imap
+ kerberos? ( app-crypt/mit-krb5 )
+"
+DEPEND="${RDEPEND}
+ kernel_linux? ( pam? ( >=sys-libs/pam-0.72 ) )
+"
+
+src_prepare() {
+ default
+
+ # Tarball packed with bad file perms
+ chmod -R u+rwX,go-w . || die "failed to fix permissions"
+
+ # 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 "failed to fix compiler flags and SSL paths in the Makefile"
+
+ # 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 "failed to fix our libdir in the Makefile"
+
+ # 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 "failed to fix the FreeBSD ACTIVEFILE path in the Makefile"
+
+ # Apply a patch to only build the stuff we need for c-client
+ eapply "${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.
+ eapply "${FILESDIR}/${PN}-2006k_GENTOO_amd64-so-fix.patch"
+
+ # Remove the pesky checks about SSL stuff
+ sed -e '/read.*exit/d' -i Makefile \
+ || die "failed to disable SSL warning in the Makefile"
+
+ # Respect LDFLAGS
+ eapply "${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 "failed to fix build flags support in the Makefile"
+
+ use topal && eapply "${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'
+ if use ipv6 ; then
+ ipver="IP=6"
+ touch ip6 || die "failed to create ip6 file"
+ fi
+ use ssl && ssltype="unix" || ssltype="none"
+ if use kernel_linux ; then
+ # Fall back to "slx" when USE=pam is not set. This ensures that
+ # we link in libcrypt to get the crypt() routine (bug #456928).
+ use pam && target=lnp passwdtype=pam || target=slx 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 "failed to add ssl init statement to linkage.c"
+ fi
+
+ # Documentation
+ 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-2007f-ldflags.patch b/net-libs/c-client/files/c-client-2007f-ldflags.patch
new file mode 100644
index 000000000000..2f1cf506db75
--- /dev/null
+++ b/net-libs/c-client/files/c-client-2007f-ldflags.patch
@@ -0,0 +1,33 @@
+--- a/src/osdep/unix/Makefile~ 2011-06-07 16:04:29.000000000 +0300
++++ b/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..b15fa4e6e991
--- /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
+*** a/src/c-client/mail.h 2008-08-08 18:34:22.000000000 +0100
+--- b/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
+*** a/src/c-client/mail.c 2008-06-04 19:39:54.000000000 +0100
+--- b/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..ffe3eff9f30d
--- /dev/null
+++ b/net-libs/c-client/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="doc">Install RFCs related to IMAP</flag>
+ <flag name="topal">Enable support for net-mail/topal
+ 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..0ba12673615c
--- /dev/null
+++ b/net-libs/canlock/Manifest
@@ -0,0 +1,7 @@
+AUX canlock-2b-make.patch 2986 SHA256 ae0b0122e9a60eb81947767df1513ef1f0d92bb4ced19a0a4045a36b142eae5f SHA512 4c41aedb6b26e9205726ad992354f57daef192d6c6ceaa9b1fe961839725a5b831f5c16dcd2bf2e451499539e22f1f1ed7b0ec113844d0c1306afa5e69dc4db5 WHIRLPOOL 78ef8e3e9eb51a99c22ded56135422532d6bc2d767abc6b520ff9f6d500e27f289dd4769606beca664bb23d92674af1e92acf7037bca7b42c287035a55389825
+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
+EBUILD canlock-2b.ebuild 1109 SHA256 f7a4eacdb5d519f8af040bed7d2f2ee69f76f8448d058bae2866225f961374a6 SHA512 41368cbc1d21ca9eafa48a1c38fa1dbc892543b508c4549fb5a4b4b8c30bcfd6e246a4f09082bf8d26a03692d789a3043bf1b4e76c658d62deb23f761d290455 WHIRLPOOL 12a8c1083e57bd4f9e2401a55ab1036c167944058610d950b60bc64c5a21697d6daca0ef43e4dbdfc7eb2cccc7bbe84d3717adad6ef6032fc8d5b7d1791d772d
+MISC ChangeLog 2480 SHA256 ba9aff43cd4a6e4fe2c763b51789af85787d913b5b81d938bc33126f45e9d699 SHA512 8c335e26af302835ab1f03805347675d6c512cd234e636fa9ee79f7ef7e2dc6190bae2ea5a213508552623ef2e1dddfb5154e945337fd86141f5ebff5c41ce4c WHIRLPOOL 460a7dd0268429f7bad2c37c32d4fe868b65c144d93cadfb7b4926e68800e0e0abfb7f1ac342e556e2bcd79a0e751c079574d207c6c997aeb067928a56765296
+MISC ChangeLog-2015 1258 SHA256 ffddbb6052e944ff7f19e42cfa4d1789289bb5b750ff5189cee42bbec27e7e0c SHA512 7e2d7d3d501a5c9b455fd03c6b7e43dfcc33d7cb85203a2e736f85e6e6eb593815635b92f92685cade3398a8d3c7bb2ca6330ecf3f415828a3277a51928c6310 WHIRLPOOL e82e81a9d3259d287d323d8f2f91970fde8b9ba2b4fcd1ed5717a9e71a31d510c68e3337e3f4694531c05a3b4b339fddd21392f23c61064625a26d31b407d0d6
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/canlock/canlock-2b.ebuild b/net-libs/canlock/canlock-2b.ebuild
new file mode 100644
index 000000000000..9d58b0a2dc63
--- /dev/null
+++ b/net-libs/canlock/canlock-2b.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils multilib toolchain-funcs
+
+MY_P="${P/-/_}"
+DESCRIPTION="A library for creating and verifying Usenet cancel locks"
+HOMEPAGE="https://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..6f49eba8f496
--- /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>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/net-libs/ccnet/Manifest b/net-libs/ccnet/Manifest
new file mode 100644
index 000000000000..07b1fc892d3b
--- /dev/null
+++ b/net-libs/ccnet/Manifest
@@ -0,0 +1,5 @@
+DIST ccnet-6.0.7.tar.gz 179356 SHA256 c4e02b5b77d774ffaa47235e6e265ecce00f656766a2f232397ce86eeb3162fa SHA512 66df998bb544ad614479d853820e3ee3119c2b08087d82a2a0633202c860447a7ac79f3639e587d531c2443def3cd58bf9ccdb2fed350c8bd7005737fb3d85fd WHIRLPOOL 27022bcae05958ad34c3b26221f7278184068fba119b63bfb4b13fe1f74ac19b61a34deb2e8b9047e6005c95abb0191299e3c105058e3937d8b873f1c75df73f
+DIST ccnet-6.1.0.tar.gz 179362 SHA256 6b91c1a1a00622a2a07669dae144dd7fcd8f11275912384aa65d33da05088a60 SHA512 0053d342cf9256a37ca2ebf774794c791cb08caa7d608035c1b307a271e11719da1d4c272870ab51ad1cd8d8c0a84d22959b513865ddf98b4691cba35bc93018 WHIRLPOOL fd0a421fcd6433134520d7e9a667a3937af329b2761cc353095cc98814f7cd37b19b4b4593094f4e5d153ecbc632ccb569fb99c328c8c7c7cf547b33f19e4ad7
+EBUILD ccnet-6.0.7.ebuild 873 SHA256 5c9c9437184ef96821feb16f3a70d3966c258b57a6a475879bbbbcf4ffaf50dc SHA512 6ebabe35a41860198c5f32a01c59ef0505b78238747dcbe705570d42b42dcd61cf89a4faee2036b7e04b7294eaad88aa471135abba20739745352fd4d2b8f593 WHIRLPOOL 55c59525e6c90afe7070d91126cbddf64107ffb5567ede255cd850a8635d9d430f8fe8e1dfc9cf5333ccf61dba49ad0707d15a7bc6bd94cbc3ed6a69f979335a
+EBUILD ccnet-6.1.0.ebuild 873 SHA256 5c9c9437184ef96821feb16f3a70d3966c258b57a6a475879bbbbcf4ffaf50dc SHA512 6ebabe35a41860198c5f32a01c59ef0505b78238747dcbe705570d42b42dcd61cf89a4faee2036b7e04b7294eaad88aa471135abba20739745352fd4d2b8f593 WHIRLPOOL 55c59525e6c90afe7070d91126cbddf64107ffb5567ede255cd850a8635d9d430f8fe8e1dfc9cf5333ccf61dba49ad0707d15a7bc6bd94cbc3ed6a69f979335a
+MISC metadata.xml 414 SHA256 6f4a4b00829ea746ddc7504c27463a980c9153f701d9e5c65f7da7e564280815 SHA512 d3687845c8d2b3f8bed69df446341ebcea3fa151bf956d2c87c4aeca43c4a5af29cec35e9dc894b7f95d97e2f144324e78cb0d68d62c08c7db3c86f3587b045f WHIRLPOOL ca82580de4585773b4dde68ea88c3520d5647b23fdfad196db53cd0ab99df53c1c88d961abc82d80eb6e39edefe032fa65f6e481452b9ec29d6413c2e1c0e7d8
diff --git a/net-libs/ccnet/ccnet-6.0.7.ebuild b/net-libs/ccnet/ccnet-6.0.7.ebuild
new file mode 100644
index 000000000000..e78f3357f6ea
--- /dev/null
+++ b/net-libs/ccnet/ccnet-6.0.7.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit autotools python-single-r1 vala
+
+DESCRIPTION="Ccnet is a framework for writing networked applications in C"
+HOMEPAGE="https://github.com/haiwen/ccnet http://seafile.com/"
+SRC_URI="https://github.com/haiwen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+-with-openssl-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ net-libs/libsearpc[${PYTHON_USEDEP}]
+ >=dev-libs/glib-2.16.0:2
+ >=dev-libs/libevent-2.0
+ dev-libs/openssl:0=
+ dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ $(vala_depend)"
+
+src_prepare() {
+ default
+ sed -i -e "s/(DESTDIR)//" libccnet.pc.in || die
+ sed -i -e 's/valac /${VALAC} /' lib/Makefile.am || die
+ eautoreconf
+ vala_src_prepare
+}
diff --git a/net-libs/ccnet/ccnet-6.1.0.ebuild b/net-libs/ccnet/ccnet-6.1.0.ebuild
new file mode 100644
index 000000000000..e78f3357f6ea
--- /dev/null
+++ b/net-libs/ccnet/ccnet-6.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit autotools python-single-r1 vala
+
+DESCRIPTION="Ccnet is a framework for writing networked applications in C"
+HOMEPAGE="https://github.com/haiwen/ccnet http://seafile.com/"
+SRC_URI="https://github.com/haiwen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+-with-openssl-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ net-libs/libsearpc[${PYTHON_USEDEP}]
+ >=dev-libs/glib-2.16.0:2
+ >=dev-libs/libevent-2.0
+ dev-libs/openssl:0=
+ dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ $(vala_depend)"
+
+src_prepare() {
+ default
+ sed -i -e "s/(DESTDIR)//" libccnet.pc.in || die
+ sed -i -e 's/valac /${VALAC} /' lib/Makefile.am || die
+ eautoreconf
+ vala_src_prepare
+}
diff --git a/net-libs/ccnet/metadata.xml b/net-libs/ccnet/metadata.xml
new file mode 100644
index 000000000000..d33b04603d35
--- /dev/null
+++ b/net-libs/ccnet/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>moschlar@metalabs.de</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">haiwen/ccnet</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/ccrtp/Manifest b/net-libs/ccrtp/Manifest
new file mode 100644
index 000000000000..4cfe14478ff7
--- /dev/null
+++ b/net-libs/ccrtp/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD ccrtp-2.0.9.ebuild 1094 SHA256 7a59195e2081d22968b1955d3823af1770ac1768f46b02f1141601fb55c3a92b SHA512 b7e86d6d707151f4bda0cb5fd22cae8a1fdade7cd6d4e7fbd821fade8d4cbe446b1da2fb4bc878bd4837eb03b1ad1998ca2cc08c5f124b4d995270845aa4038e WHIRLPOOL 5bbf09b222ec98343706b68dc3184de332519b05f3260e71c002e20d2724edfa615d83bca283af7d71a7dafd6d3516a20c5ed257335349f9e980a4c0267123bf
+EBUILD ccrtp-2.1.2.ebuild 1096 SHA256 b90225477f7d4d2d0a0399c641aefa506910e09dc3d6c92a30590f57b41a47de SHA512 a0273ca7d0015e0bd4bc625ab7b7c99b5af2aa427938edf87df752b2f1b12310553923fc049fab47e1225bc5e8e3762ec7eef2cd2454384cf116459a858c8cde WHIRLPOOL 0140913f2e70dbd2fc77ec378727aea7d7c85412b215c94d5ad5430c75c2e801b44bcf04a1fbc01c49315c81808a79ca9ab5585bb4ab029fc550e221bd126cda
+MISC ChangeLog 2871 SHA256 46e3213d8fc7c4be348917eaf0ddfc96fcf8722aec8c5daadef40613898c4a46 SHA512 97d36cca484895fccb6ef8d555d6c91d837aea7bf578311191f99a15761b89cd3b8d671bbcc80ba46bab0cc938dce5f8e23d3f2c3b6c4e380b4415e4d4c712d3 WHIRLPOOL 8594b88cd702d8dda033312dc1635af2e076a931a161f88af7d03b4711978e1b5af1dcf08c7bcebd255cefa68ec2bb9664728c335d530f20b4417c87402b4bd0
+MISC ChangeLog-2015 5486 SHA256 58ca320d89b5988fcca50f9c1ea440b0fe519e698e3b22e67a63076da3669be5 SHA512 0f41ef7abdf8b1a430d2cfb7f41a48a25d9257c09559e2c2e75a291718b5d15cb7e98fc23dd49402c37c8df9aa75475751ac4c2da4d0e0e9b8fda7f3d09d97db WHIRLPOOL 3c0e1aa869e6fe47c02b2510c7ff61f145eeb36375b75771f3adc96ee13f4b4d1ac08d367393aacf131afa4b3d5de4f60d7ca44ec97363ebd10ebf0c7b6afa6d
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
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..77778d752ddc
--- /dev/null
+++ b/net-libs/ccrtp/ccrtp-2.0.9.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib
+
+DESCRIPTION="GNU ccRTP - Implementation of the IETF real-time transport protocol"
+HOMEPAGE="https://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..02cf6d4014df
--- /dev/null
+++ b/net-libs/ccrtp/ccrtp-2.1.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib
+
+DESCRIPTION="GNU ccRTP - Implementation of the IETF real-time transport protocol"
+HOMEPAGE="https://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..6f49eba8f496
--- /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-needed -->
+</pkgmetadata>
diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest
new file mode 100644
index 000000000000..be583e243e59
--- /dev/null
+++ b/net-libs/courier-authlib/Manifest
@@ -0,0 +1,17 @@
+AUX courier-authlib-0.65.0-sqlite.patch 798 SHA256 e5ca1d2240c8606aa4a74f891f1b607e2404858caf6d684535e27f769aa7f0cc SHA512 f9148c23195cb9ec3265fcc86a2c8ea4c0d114046d81e527dd5759f45844b425f5270fcec52fd497e82b8272fa99984e7facb8cca6f696956896ad177c5f81fb WHIRLPOOL 4528dde0adcf66f1c2eedc62ce1c8dfc0a8b2550a843128bad53d6a3f3afc3a70ede3ff2ad6b7d963fa4ef79dddc14e4b818d1d268c7d5a536c71fe3ab5ec05c
+AUX courier-authlib-r1 985 SHA256 4754f12b129eb347227c0044d2a1747f943ca334746905d02d487229ec69bffb SHA512 ff5022dcc50c9bd9c112cac0ac3a47b37d496603aaef4db2cdd1b96236b5c3deff085e742301a9144dd8113cf5b51d0ee32b4a50e574274855fc1614f4769cd3 WHIRLPOOL 76be1e298efd3cf171cae109d084163a3ae8e637114e40ae284b4fb276bda39aea709b5733f68f97afaec8f7ce92942d840339ec3c16fdb12717f3397f334a1c
+DIST courier-authlib-0.65.0.tar.bz2 2303751 SHA256 db3e34ee2b075897864c44aaae924388c74b32ed40b83f0fcf8626a060c1ea47 SHA512 edc4a51bc0d748e7d6cdbf9e9c67c43eeedd9e3846d91a8eea24613f6fb5125d2e713ef7fd63cbbe1905205f2a406b4ff3f31d7c3fb7028939123dbc728d8e38 WHIRLPOOL d86ad93ebe701f0742e83988ad14bb750c98ada952fbc6422641840b0074b8f285ca41c0f6458b79c36196a435c99c76d767e8cf3fdf3110107b25112712887a
+DIST courier-authlib-0.66.3.tar.bz2 2085083 SHA256 033402a86e334999eaf17c1b722d6f6cc1961fccb5d2ee88342dfd6c5d534961 SHA512 09d97c8efc79d84437feefca13f5161c0e113864b9c971a4a980b359c9c14699f8d07eac6b52ac0a7d30f9770656e672f64c3445ecf4dcad88f51a427310d530 WHIRLPOOL 4763eaadf6da2cd014f68638a8e2b6be6f00bb64234251c65b0de3af821e2484232919a52bac515fccefa1967ff0c4b3d79516d769ce73c0f2ac57802b6818f9
+DIST courier-authlib-0.66.4.tar.bz2 2192331 SHA256 a874fa50e83d9b1385f97a47879af781a1aa09f49cdaa7d77e7ea3e5983a4a26 SHA512 0987bc9d33a013ae842e0ea3e4e83ef9d6196c2f923a6970e049a36b8ccddbf0c4465c43c7e27d6718480e981f573795f6417478de1ff685264f3439e8dffdc9 WHIRLPOOL 4140435ab87bb73613c4561bbc0108a55697d179701dae890a8133e8cef49fb1b131894bf3feb4f292801cb33f7b577cbc6d4ee268852d56e546e0e80e81ba83
+DIST courier-authlib-0.67.0.tar.bz2 2194546 SHA256 d416b9c57ecd9afe6e22d40b26c2e6f9aa87bf7abbe8ca7d04768c30635594a3 SHA512 6e3da28d555761177727c44b1422bf5baf6ffbf28f53cea89a4a8e13daa5433803deba1614295d9679c41b5be4750f464e7869a2d3ecbfd91ae84e7281c4f3ef WHIRLPOOL 9821a3806ca7e6f7ba029d8ee2488a49bc07d493b178980bca520a7bc1f22302dc77d4dc6c2a2807137ea5c2e819436467faf18a0c5da618771bafaf16773ca5
+DIST courier-authlib-0.68.0.tar.bz2 2194982 SHA256 9096118823ababfac8f46a1a7393765a414ea3628c9413bfba39af5d70fd3e2e SHA512 5c4adaf0fd69f4b9e780962aa3f9eeac6b15cea3f302288ff4549ce2b0be9ea0808b4501670ef3c4e0419c3d27505c256c082f795dea4683dd5265fd7dcab93b WHIRLPOOL 81f9dc58d5c5e90f846421302762ea81e6bd2ec830725d047d88d2dd01f528fb0e2e2bcca796183f1ced9336ed622521b64e67e3cb6ae1fd3eb39f30bec4b2f9
+EBUILD courier-authlib-0.65.0-r3.ebuild 5175 SHA256 a16b8785567e0772c52940b2e9d1f6664fb45aa02fc270e4a31a767569c2b149 SHA512 21951d196ed25cf049554b2ac9cf3ba31542851c1e50af44f946e8c87e6be24a2840af4b0fb577fdc5a61b31de7adc28d16df8c4cdf1df7af9e4938d720c236a WHIRLPOOL d3dafe4410f81e1650e5f0b65c07a49e17adbcce1f68c85ef2f0bd0fe1614a81b52e0f4cdf49efccc102bea09ba3c8b97ed230d0b6cd3892bb2347adb0ae1c97
+EBUILD courier-authlib-0.66.3.ebuild 4477 SHA256 150702f9e9d8f3ca6558b712b57e08903b3adb26faa924e9775a44034745f200 SHA512 d3aaffc33d5f5733e0888ee4bd505ceb1b63660c38e42c06107e2c11f617b924012c141b8e913cc4146e89b053dc3a2d89e024cdc794a79cfaa86db47fa9e2ef WHIRLPOOL dfb60a98ed96cc8885ab5046f264b8feb609b9d8eb387521c603544aa4e2a3f4127f706f24716330b1ffdd8a328ea4aeefa49f07535388ee12540b9442cb4a1c
+EBUILD courier-authlib-0.66.4-r1.ebuild 4528 SHA256 3340ac61ecaaacc7494f61c071b2fa8c1221c4dce5ae61f5bfb7e4ced09de3aa SHA512 b7d13d41e3ca759473b8077eeac71f1d77e5077755a38494f97c58221b8fbe2336a2741f64eb75a1de662b0d09e3e286d9a47de71385a79c9b4ac2520db348b4 WHIRLPOOL f3d9a187c6a28f8e76564ed27df2a2b08d754b051eb08c5dc0415da337bf507448463d988afd52b9c0c7a7f4f31edb6fd50ab5ee057dc1c7f4145e9c1fc53e92
+EBUILD courier-authlib-0.66.4.ebuild 4519 SHA256 ba447afa06199063c66a85e8bb5f63194f27f10f16329cc8971830b0b45229e0 SHA512 580b4d8cda440e1a5ffcb053786a98f9e8339309818ac549b6a690e311a4dbf960f0680e929e3c9af99e6abcca2bf621e4b3b76ff6d68f16a3b401584e060e79 WHIRLPOOL 6ab0d33d3d65c29a395883d7a76691cbf51fc55587a7437eecb443ed70ec887cffe5622e9af1b36ffc6fc052e523452fd799aaee99aa6afd9ed798c22a51a990
+EBUILD courier-authlib-0.67.0.ebuild 4572 SHA256 42f04f6f470d24295a6d38c0835b752ed9ad67b1c1c5f9dcb33fa84cdf27973b SHA512 8826c4008f5f062019873ccd1429c2cacf593a43e9a10d57affec2348207796796f1c28cd713c057b4d9bf2256282f4f9bb79167079e4cbed6c7003c3af7fa5b WHIRLPOOL cc9e6a1f54cb775cf1d8fd0691af919bf8a9c16dc0657a7858fff4d1b8637bb7c95a66110f0d9f5bc9352c06d2cc9af48c210c3c9b160f93711847d3685edb66
+EBUILD courier-authlib-0.68.0-r1.ebuild 4572 SHA256 89f9299af0d4afc6ca1d2fe5259ff083e18e5039ff1ce537e84fc25ee87211e2 SHA512 a5cefe8f503cd3bf34f2bd4ffa375415c8b28232d6056b624193596678dfc2fd14eacf8d786681267979a0e694882847ca2405c528f88a3390c2914b32f54a77 WHIRLPOOL 3b0fc443f35ed588d1fee5dd5c79a77899bd57d1beea195f6eaaf108f6a793752374c6cfdd70741a76220fcb7cf2e6bead820d5bee159c6b68bd9b04cc824b62
+EBUILD courier-authlib-0.68.0.ebuild 4572 SHA256 42f04f6f470d24295a6d38c0835b752ed9ad67b1c1c5f9dcb33fa84cdf27973b SHA512 8826c4008f5f062019873ccd1429c2cacf593a43e9a10d57affec2348207796796f1c28cd713c057b4d9bf2256282f4f9bb79167079e4cbed6c7003c3af7fa5b WHIRLPOOL cc9e6a1f54cb775cf1d8fd0691af919bf8a9c16dc0657a7858fff4d1b8637bb7c95a66110f0d9f5bc9352c06d2cc9af48c210c3c9b160f93711847d3685edb66
+MISC ChangeLog 5638 SHA256 cbeebca86db1e7c89d5e444516eed4fc3b8eabf2f1be2be327a807f4e298a0d2 SHA512 7dc22d23f2a2107f45d196627a4bdc2f69ae7cb902cac47d4bb8cfe33fbc37bc39d9420457f9bcc30147f62a237aa70867522e8d1c10265ab6e737cd743dccfc WHIRLPOOL e9bad36d983f0268f11aa46575c051f26433ce76b3c36d244eca91c7b1b92ced19f80537936effeaf5328b93bf78d33ae034afd73d50df11330b45fc3e0d4028
+MISC ChangeLog-2015 27982 SHA256 284947fcd5dde21892e1bbee9f2f469d79643060c6c3c17b872f1f81da40ef44 SHA512 676f669862fa7d8b661af9b570e33e6615a6fac5f1770dfc56cfcf6cc2a10ac4bccfe184ca20b5eaf140be538463c0edca2539414a5d992aee379dbccf6d4386 WHIRLPOOL ff74da051f333e3834a35f53d24392a8936d4f343547222f53b221c11baa1fffecf785dc361744f4aef45a86ef860f4805e2cee3baf53d470f1bba91ceb588f2
+MISC metadata.xml 405 SHA256 13af3487dfc2a719e395ac185eb030b41d2fc7d81827ffb7659ea961d762333f SHA512 ca3fcfc719c6c05c2f693a1e4896f7788acbfd083dce4358a94e1c0227b7d50d4e06f657ba80236a574b052fca6c03bce45a256bd65aa963915f4f577a413bbe WHIRLPOOL 4f23a6d3e2cb9c3b7e372ba445d671b203e051dd9be8cea04d9039975751f24c37382641edc042456d2e4bf15dbb0546f40c5e560d7e4ec87abf00deef83b4ef
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..799dbee020f7
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.65.0-r3.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.3.ebuild b/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild
new file mode 100644
index 000000000000..6fce828d46c8
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic multilib user
+
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips 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/courier-authlib-0.66.4-r1.ebuild b/net-libs/courier-authlib/courier-authlib-0.66.4-r1.ebuild
new file mode 100644
index 000000000000..080367a27abf
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.66.4-r1.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic multilib user
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~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 libressl mysql pam postgres sqlite static-libs"
+
+RESTRICT="!berkdb? ( test )"
+
+DEPEND="net-mail/mailbase
+ >=net-libs/courier-unicode-1.3
+ gdbm? ( sys-libs/gdbm )
+ !gdbm? ( sys-libs/db:= )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ 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/courier-authlib-0.66.4.ebuild b/net-libs/courier-authlib/courier-authlib-0.66.4.ebuild
new file mode 100644
index 000000000000..8da68de656b0
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.66.4.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic multilib user
+
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips 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 libressl mysql pam postgres sqlite static-libs"
+
+RESTRICT="!berkdb? ( test )"
+
+DEPEND="net-mail/mailbase
+ =net-libs/courier-unicode-1.3
+ gdbm? ( sys-libs/gdbm )
+ !gdbm? ( sys-libs/db:= )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ 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/courier-authlib-0.67.0.ebuild b/net-libs/courier-authlib/courier-authlib-0.67.0.ebuild
new file mode 100644
index 000000000000..958e0b90c40f
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.67.0.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~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 libressl mysql pam postgres sqlite static-libs"
+
+RESTRICT="!berkdb? ( test )"
+
+DEPEND="net-mail/mailbase
+ >=net-libs/courier-unicode-1.3
+ gdbm? ( sys-libs/gdbm )
+ !gdbm? ( sys-libs/db:= )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ 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
+
+ DOCS=( AUTHORS ChangeLog* INSTALL NEWS README )
+ HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html )
+ if use mysql ; then
+ DOCS+=( README.authmysql.myownquery )
+ HTML_DOCS+=( README.authmysql.html )
+ fi
+ if use postgres ; then
+ HTML_DOCS+=( README.authpostgres.html README.authmysql.html )
+ fi
+ if use ldap ; then
+ DOCS+=( README.ldap )
+ dodir /etc/openldap/schema
+ cp -f authldap.schema "${D}/etc/openldap/schema/" || die
+ fi
+ if use sqlite ; then
+ HTML_DOCS+=( README.authsqlite.html README.authmysql.html )
+ fi
+ einstalldocs
+
+ 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/courier-authlib-0.68.0-r1.ebuild b/net-libs/courier-authlib/courier-authlib-0.68.0-r1.ebuild
new file mode 100644
index 000000000000..fafe3ceee10e
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.68.0-r1.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~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 libressl mysql pam postgres sqlite static-libs"
+
+RESTRICT="!berkdb? ( test )"
+
+DEPEND="net-mail/mailbase
+ >=net-libs/courier-unicode-2.0
+ gdbm? ( sys-libs/gdbm )
+ !gdbm? ( sys-libs/db:= )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ 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
+
+ DOCS=( AUTHORS ChangeLog* INSTALL NEWS README )
+ HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html )
+ if use mysql ; then
+ DOCS+=( README.authmysql.myownquery )
+ HTML_DOCS+=( README.authmysql.html )
+ fi
+ if use postgres ; then
+ HTML_DOCS+=( README.authpostgres.html README.authmysql.html )
+ fi
+ if use ldap ; then
+ DOCS+=( README.ldap )
+ dodir /etc/openldap/schema
+ cp -f authldap.schema "${D}/etc/openldap/schema/" || die
+ fi
+ if use sqlite ; then
+ HTML_DOCS+=( README.authsqlite.html README.authmysql.html )
+ fi
+ einstalldocs
+
+ 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/courier-authlib-0.68.0.ebuild b/net-libs/courier-authlib/courier-authlib-0.68.0.ebuild
new file mode 100644
index 000000000000..958e0b90c40f
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.68.0.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~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 libressl mysql pam postgres sqlite static-libs"
+
+RESTRICT="!berkdb? ( test )"
+
+DEPEND="net-mail/mailbase
+ >=net-libs/courier-unicode-1.3
+ gdbm? ( sys-libs/gdbm )
+ !gdbm? ( sys-libs/db:= )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ 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
+
+ DOCS=( AUTHORS ChangeLog* INSTALL NEWS README )
+ HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html )
+ if use mysql ; then
+ DOCS+=( README.authmysql.myownquery )
+ HTML_DOCS+=( README.authmysql.html )
+ fi
+ if use postgres ; then
+ HTML_DOCS+=( README.authpostgres.html README.authmysql.html )
+ fi
+ if use ldap ; then
+ DOCS+=( README.ldap )
+ dodir /etc/openldap/schema
+ cp -f authldap.schema "${D}/etc/openldap/schema/" || die
+ fi
+ if use sqlite ; then
+ HTML_DOCS+=( README.authsqlite.html README.authmysql.html )
+ fi
+ einstalldocs
+
+ 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..5730139a02af
--- /dev/null
+++ b/net-libs/courier-authlib/files/courier-authlib-r1
@@ -0,0 +1,40 @@
+#!/sbin/openrc-run
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..d9850f835e50
--- /dev/null
+++ b/net-libs/courier-authlib/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <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..c1d736f3c53d
--- /dev/null
+++ b/net-libs/courier-unicode/Manifest
@@ -0,0 +1,11 @@
+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
+DIST courier-unicode-1.4.tar.bz2 434338 SHA256 2174f4cdd2cd3fe554d4cbbd9557abac0e54c0226084f368bcb2e66b0e78cf96 SHA512 1d9cc3efbbafa88631e37de0647d2e873a8264a02a0ce588687b90e15dedb60c23058312abbc771ed1ddf824ba7c81b16adebfe9db69da953b9856eb66d31264 WHIRLPOOL b91ba85efc8a5b2b6f14f4b08f43cc2a49a99ad0e56a642d9f48a62d3459359982b55e9a2e256161eed5b1ea32a287ecaa8500bf14411a6d1244a3c4a0ebaa47
+DIST courier-unicode-2.0.tar.bz2 446215 SHA256 6b46011d465918af7d0ed41fbf21d918449820bd3ef7e651dbc56eb2933a8711 SHA512 32fe0aae62d7f7f7ac6832b28515b83642753c6bd881e95494254b7055686dc38d85488aa26a99d82a5b42aa5cce308bccc2b471580603f690ed6e405cc91e8a WHIRLPOOL d79e7ce40a3914bb1b2c634ee82aac39da99775d42bfc5aa9d4fa6b3fc68f10e59214a190826f5d2fb479ae50e2c84138faac665d823c9a69f7a0616b5fbf7d7
+EBUILD courier-unicode-1.1.ebuild 440 SHA256 92c71ec7636254368e3f01c75fdeeb9fad100e5f58e9b5c62ef576842b81c52a SHA512 3e2e121bedf09408d04c80666d840fcc6716b26b6adef9089d9c90e0b7f0ad9e61625909136a91491bf5adec8229e5e0548ccc5874cb88aec67c7e5031ef57da WHIRLPOOL 4d8837f93d08b2ed3fe377040c8a7e43a76c021272104836564f8b86adc8f45da6fee4954d9745c859dd756aa9e519fd9ec6252a9950d318844dcd59fc63abb5
+EBUILD courier-unicode-1.3.ebuild 461 SHA256 f403ccdec559c318ca0b8305499ac5f01c12c1561b84962b25263e2f025eefc4 SHA512 4606860d16283dc1476efde6f7671bb2ba7798c0a6f5ee756d0f86f2ade5a61d33fb763c109a6dcac907d6f8b62e9491ac08d181f8dc820333fa9ef7a2d54021 WHIRLPOOL 97045009a092f23b1fb37b359678c37911ff0d3f17802c9215b861ccf88a24f5b8b57e4b4300e76f565cb2e5364093f98658de7d71cb151ed6ce8b91fafc7ce7
+EBUILD courier-unicode-1.4.ebuild 477 SHA256 789ac374d2cfd4669ef894a65e21513f28f9cbb65820e08d2c562f38e9eae935 SHA512 478ec4301b74cdbeb76f627dbc6c46605ea27314df686e236a04c290537f22b61f9a17ecf51a7c2641b363f4a2c6a71b41354a1cd13ff1a7f229d0d418d6f0fc WHIRLPOOL c9d997de04b34dd44e329f6555ebc5fd047b043cb4569827e96f41193eedc8d94db6b21e62df19593cf5e93d42ed9f856026dbea8e5599f21621c02a6d6e3755
+EBUILD courier-unicode-2.0.ebuild 482 SHA256 ff7858e1330b6b6d6a490d67bff30316ab1786554cffdfab5cdafe4f034ebcfb SHA512 8091fb06b485407bca3119709ac8b71d209ff2dad451c632ec79e66ab72b7c1c6c69e3f7e4b348ab2d5d43b660e502bc0ccbf4f6686624b4bcabeb6909ada654 WHIRLPOOL 2f503ea6ef2b169ddf6891965aa3766507872bfefeca0a646bec55d0ce8181b0174774cf14e319351f953ce9807471c9b3bdda6f1df7c34d0f4eeeacb808bfc9
+MISC ChangeLog 3254 SHA256 48e06a022f95ad6223505f7b1aee793111d763a6ca888adffe619711bf420136 SHA512 45c89b4d9b37412a4d35f902d5f9ffe0226d954f195f9f690f58faf6bf1e21fa0d3a42945f05b1b32b0b52ffae8c51d2979ebb5e84e236905dfa5925b9355705 WHIRLPOOL 4ab217bf925aacb613ea2c7d94bc89c16c3b5f0d36c258327717c1fcc27246032a51abc22bfbd1453b67b576a435b939053e3261d578102d2c58ad318f36dd67
+MISC ChangeLog-2015 2173 SHA256 d5cdded4394b340a521c2e6d45cbb053f0055108c9e6abe73a6e03f9177b8091 SHA512 1346efc796cf09604e8ff5970127f7775e297975835a8f624fa372a1a3c16f062193e71e6c80e2a6f9b08822da071417fb62266d64fd8c126243d4cfa02c98f9 WHIRLPOOL fe52830e3fa3d84f618e03dcbb0d231f53bc600ecc14ebada6b179233daaff8e8c9cc4c5430415c453b9539950be9c9458df9f50e4e3e42951f51d35d14552e4
+MISC metadata.xml 398 SHA256 4bbff1999c2cc33c22fe73712bef7802f69a8c9c859e992d3acc2be0f921d915 SHA512 78789db4f9e2b92e56c3833245f64c31bc274f6986b70af9c3bda21e5c6d3c6b3987a6a97e0ec73aa619d71ee814fa6a263ed8d295ec7473481134769414396b WHIRLPOOL 3e2cdc716d7152c6706af981f82d85e8fa2daf8ea1ba24be62bb230e0f4bd75bce0292f68dc4d4efd366e1b418a00f7c441a5e9c9bf4a041e57152dd06ae3ccc
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..746220b94881
--- /dev/null
+++ b/net-libs/courier-unicode/courier-unicode-1.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..5fee21dfd05e
--- /dev/null
+++ b/net-libs/courier-unicode/courier-unicode-1.3.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+src_install() {
+ default
+ prune_libtool_files
+ dodoc AUTHORS ChangeLog README
+}
diff --git a/net-libs/courier-unicode/courier-unicode-1.4.ebuild b/net-libs/courier-unicode/courier-unicode-1.4.ebuild
new file mode 100644
index 000000000000..d477926f5430
--- /dev/null
+++ b/net-libs/courier-unicode/courier-unicode-1.4.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+src_install() {
+ default
+ prune_libtool_files
+ dodoc AUTHORS ChangeLog README
+}
diff --git a/net-libs/courier-unicode/courier-unicode-2.0.ebuild b/net-libs/courier-unicode/courier-unicode-2.0.ebuild
new file mode 100644
index 000000000000..1915f69cb71b
--- /dev/null
+++ b/net-libs/courier-unicode/courier-unicode-2.0.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+ 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..b55b53b7c65e
--- /dev/null
+++ b/net-libs/courier-unicode/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hanno@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </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..d5689b331c9b
--- /dev/null
+++ b/net-libs/cppzmq/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD cppzmq-0_pre130717-r1.ebuild 662 SHA256 af28333230570e6dc201053138dd06a337050f0bbd2d42142d17b8a49b3aa73e SHA512 7e50eb1243161ecc53f1c46cb5742cc18e57818f4f8cc81a2063db692d05928fe72ccec51e0b166aba3298676d7709940342e8959aa1094cd2ff199d409f1882 WHIRLPOOL 6afdbec1878ef8bf3d037219b785f7a971468b16c7b5bbc9cc05e891bd2c9305fe11a98f89e93cdf857d5c5359af99230be3d06e42ad0f97467f45b8bf1316b0
+EBUILD cppzmq-0_pre150606.ebuild 662 SHA256 af28333230570e6dc201053138dd06a337050f0bbd2d42142d17b8a49b3aa73e SHA512 7e50eb1243161ecc53f1c46cb5742cc18e57818f4f8cc81a2063db692d05928fe72ccec51e0b166aba3298676d7709940342e8959aa1094cd2ff199d409f1882 WHIRLPOOL 6afdbec1878ef8bf3d037219b785f7a971468b16c7b5bbc9cc05e891bd2c9305fe11a98f89e93cdf857d5c5359af99230be3d06e42ad0f97467f45b8bf1316b0
+MISC ChangeLog 2703 SHA256 9eb498bc641c6fb960e451bbfe253f3da10f81b5d892c51afde4e7969a57c50e SHA512 e78b1ba02a4be8090053e895d2a1801ab2126f420fbadf82da346610d37de233bba1b9c7b3bd7d80780b027fff474ab494d5935b11352e87111f08ce57038fd8 WHIRLPOOL 515daf3063213364b4e4a2470f1a5a48c413bc05b793e75081c5b6f670f2aa73cd6f17962880be218cea83070aa3024c096fd6c9df666d2afb5e1b2a6e1097ab
+MISC ChangeLog-2015 1336 SHA256 fa7c754bb50dc263417006a56c51a1312810efe201ec7ea10783224925358ffc SHA512 8a196914a51073429d4a1af9ef79e2ec1487bbcae645d181081c679e42d3b5d1423742835dee4377d493bd8f4ab23fb48ad045e7301e7405b5ce0f5a6e40872e WHIRLPOOL ad1f0ef5da3afca0ddb39e9acc344d52a70466ad2e99568982dd7a7d021827ef0940b37ddbe95c9176b13df76e41cac620ca9f1ba9d30cad49dfee19bdfb4777
+MISC metadata.xml 341 SHA256 cc94f97fa288895be66448030215a0d701c33d9abbf0240d03252c38765ef462 SHA512 20bc14d462ee04fe3bce142640dacf724ff8970bb23e71f97bad89a2837cd0184d77304f34faa8780436c1824d458433d4b0ad644150234d7b11be094963131b WHIRLPOOL 4f5dbafc645743446e9e9c8e5e8251a5a744eb2183269fee47f05e28e1b8acac3a48558d97553a757fa3d9279b50bf31c9fdb42b123fa4f0ba6a6033e1371c12
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..e4e77133a7d0
--- /dev/null
+++ b/net-libs/cppzmq/cppzmq-0_pre130717-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="High-level CPP Binding for ZeroMQ"
+HOMEPAGE="https://github.com/zeromq/cppzmq"
+SRC_URI="https://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..e4e77133a7d0
--- /dev/null
+++ b/net-libs/cppzmq/cppzmq-0_pre150606.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="High-level CPP Binding for ZeroMQ"
+HOMEPAGE="https://github.com/zeromq/cppzmq"
+SRC_URI="https://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..0a1645c905b4
--- /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>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </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..fc49f947d0ab
--- /dev/null
+++ b/net-libs/cvm/Manifest
@@ -0,0 +1,9 @@
+DIST cvm-0.76.tar.gz 91957 SHA256 0b0bbc21ad7bbe6acab66a85369502c2907e522fa2fd5c33c6f584ad1ccc000e SHA512 f3634be766e1381a95c09514547679f458e92b5f4de468b5d3b4e5f7e8f1eb8d1aa7eb5e2b15a374cbf51cc5f6e6269e7f5e7d9daf8d2adfaed37d2e11f472fa WHIRLPOOL 5fa4e5ec354ec114929da41e73a3505b077fb6cf14111ec7d3ea87985a3b1fe67aef740f34f77d448ee4c751ee22ca37fb7f5a6c5fe297a1e37b531deb52f69b
+DIST cvm-0.82.tar.gz 93615 SHA256 5c209c2ac911ba5473b1ef1b78407afa6821eca26de476291a7362fee616d0fe SHA512 a9d94d993f91395a3a1c5dd16570ddf05d725b799754d4fd7d76959774fabc6f73356dbcd61a4ff28cca8551bd7d7c55249009da5d801a0d883e63aaf778c013 WHIRLPOOL bc7745db28aa078f429325675df743c76845a9566da9d953712c66d3ed3c659ab7034f398276ec968263c36c4e701e5d020444503c3d371663f13b92e92dea97
+DIST cvm-0.96.tar.gz 127999 SHA256 b85121b2f4b160b27c95705bd83a871675ed4b65b8bcb259a0877f37606224e9 SHA512 23adf39571bf414fa61084ac824a54b3cb37ef32a46c72ad50734743fb66bb923168eb866d72fba7f88397b37831e2ce7603c7d543996b28761ed1d5b053d73d WHIRLPOOL 9c8189438ec4d38ab180a14adfa760fef0d25fdc18a44dd98ee29b2c84c3b0d0dc1f175f37a33a1017d1370f944747ab3b6a4480a7a031f5f10b0c25f848619c
+EBUILD cvm-0.76.ebuild 1451 SHA256 048c7e8e469a6d0dd7fcddac647b0d6a477b3163963de8dea8f8a9d7a2f5b4f9 SHA512 e0cdea110fa6acff28b95bb9eede58dd63dc4dfd9c6c22aa9ae2c2ede0b8d926d5f4adf458be62054358aad5f9329ea9b64441ca0dada3b60d825ae4fd956eb2 WHIRLPOOL 5b1158c896e11661e030c46b7d1d79f00328df0930c18cd201c7177f515ee2b8f7ede56f5f12ab8ef5aeabbea3e71518d3223f1b9e100a1f4f5cf3b92f387767
+EBUILD cvm-0.82.ebuild 2950 SHA256 0f9e44b6472756c8598ec09592d1891c36c5e9145e2548e71561d7507986e470 SHA512 316e2bcf7c1ca1ec79e1b4cc0d7b2bcd6ebf58ff33dad936142d907f11922ab9872aae646b059c474cf287c85829bc1a045fcfe1f0a0f789c7d81beb912358be WHIRLPOOL c439f1a376cfc08ad231d1aa9b788a442c58720e6f01263ead19cfed080759f2c02f31120fb8bb7f6aade2efa4eb6d01807ec72b5dfc08578f9caea61a5ba344
+EBUILD cvm-0.96.ebuild 2986 SHA256 2a3556782d0cccd4b7fcc5ba5201217aa0ff87ab182f2b9fb8f0a961f2c9e566 SHA512 f01eb0a15617e1394c0f9de3094f9f625206a10c52d123116090252fa4ee2075147246c93e04455a784c9eb71147a0c8655eda4a5b784cc3bcd647dcfbeb496d WHIRLPOOL 6902ca5279b47e331e10df8862fcbf2a64f2dc0c3e38487549b7b716c468084c026da208f54000031ddae4465f1ff6806ecbcdb66c8f43a324956568b943a6b2
+MISC ChangeLog 2246 SHA256 6508d353690d691e851cbcbf5caf7ab5d98f2a02974c9c4dbed9b92e6a7538ac SHA512 a04a402422693b97f4488d81aca92dcdeb68ce2c56eea2679bf8eb5be27b4a707d11f3f32448912cca44e3e57ffbd20cb5e53eb154b518bacb320ec7fa85966d WHIRLPOOL 99b4828942394eae9c5f2d861ff8a1b70f0f4908de169721221d76c87e7ffadef579610a2ec395ac2b52e198da62bb4e8cffed5cf063a18b2e5cc656dc5f1f01
+MISC ChangeLog-2015 3646 SHA256 ed8046dc28f1f90afb7a811ce43d583d6c80023bd3f62d108942779a9d26cc14 SHA512 7207fd7142389f88f9501acde54e5c9cd74c2baaabcd5d940638affaf36a4492764a42bd5e0b52fa1860795e3852cb2873e8accbf4fe36e5bc5899421a7e85b9 WHIRLPOOL 8693c4608b6daddb3527fe3a4b90d6d7f97c6f5af37978d193f099528f6180dc8364545549b1d19eeec9daf39ee23128cc3c3ae18d8d4f2328eeb638cf7c9529
+MISC metadata.xml 296 SHA256 990fcf5d8d2e7d3b446c46d94a2b0504bc4f860651207e3c34c398af5be9e9e6 SHA512 75d265987a3c3e83685a00d760965bc8e4e796429017c05642de2fcda4e37891dd06386df57dfe2d0e2b294916316389a1d72dc09e9feebdf5db3abe2626e34b WHIRLPOOL bfba938dc8db30a20213984a72fb3e80d1776eeeec1c0bc1cf44329a66275aa6c0d0f2e9db99fbffebe7e3967f5c34366ba3b92d417f5265d03d604692e741fe
diff --git a/net-libs/cvm/cvm-0.76.ebuild b/net-libs/cvm/cvm-0.76.ebuild
new file mode 100644
index 000000000000..63d425f003e3
--- /dev/null
+++ b/net-libs/cvm/cvm-0.76.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..089b8e086f77
--- /dev/null
+++ b/net-libs/cvm/cvm-0.82.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..1317cf1ef901
--- /dev/null
+++ b/net-libs/cvm/cvm-0.96.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..db5dda48e725
--- /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 type="person">
+ <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..58f08be1530f
--- /dev/null
+++ b/net-libs/czmq/Manifest
@@ -0,0 +1,8 @@
+AUX version.sh 736 SHA256 5da73f6e4f6a7a66d1d91e8a5b184a4a03e50d063a8742601e28bd2ddbb69a3f SHA512 e7c0c49477a7bc8e01bb84a133bef817a5942e8c13db3cbab05f8fd1a5abcbd821dab4016634363b077c869b93becce4ec1431b3e1d28fa969169cf0b9f6051a WHIRLPOOL 30866f4dc515df42d98e405bb66553a09bb1d4380fa4648632c0c1a41bd7913c54872acf3b1e73f8317b7a5022eb08ac1d7fdd5ecbb95062b522ab703532ba9d
+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
+EBUILD czmq-2.2.0-r2.ebuild 851 SHA256 b9abe2822174d070654585ee74243d8444efe9b7f0961e8cb297b807b7b99eec SHA512 6205a1ad6bed9903a6c9f4702776cd71a7f2f61e8d27dd720f6f6fa731ed2119bcf7d73c053484c636b980f0037dd797a95bd2b71e1b8d7812b2ca3ffbc77d1e WHIRLPOOL c9af1d6407eea458b51c2ffb9b42164ed2bbfffcca4733401d31bdb7a0a1e22027613c4d736ae1606e67e721f47f98e366d055c49a6ddfc888cf1ce7a62570b9
+EBUILD czmq-3.0.2.ebuild 1080 SHA256 bea3597aecf3939c148522a791592ce471a20d64a22a2d1b7b71d3d757e27c37 SHA512 83aa4332c7ffb69f5da0c658d223f788a8d662b8b04e6a0bac6f004f8d7c9d3ba2d3c2b963f4bd652e5b763a8f5efcd156c36d8a9cd0d919c3b23665cf6e7dc3 WHIRLPOOL f48071b3dd40a6ed8d45ed250d4b699cca214cd07a5638f3049cbbff7cee2ed2f689f6ae078c5854ee5aa769dca384c0b92c96ab8ed0b838cd8b102e67d63339
+MISC ChangeLog 3478 SHA256 757db86cf1cdf4cc879ab9a07fcab16810f4f1f5d899e5086921b3557689620a SHA512 18735be9bf95ea39896a07755f4037c239f6d6b3334b60a33fa12fe0494bde30ccbda78be311e0b64204e3335a1b4e65d824161ce78af9f76b37e0c887147dba WHIRLPOOL 88f2c5ea809f9b8fd8face6d36c92a6b9f237f82e120197ce3b4dfb1764d6a97236a8bbb589a00f06194b15d6855360469fabb465224ca2c9b230c3a81b625b2
+MISC ChangeLog-2015 3415 SHA256 f8727d91cf262de7e70197994962425cf936f386de2eb4af28287608e0733190 SHA512 35d9995287470b810cfd2b20893c53f2a4780dde8823ece4288dd2c8a6873b2703077f4e423892ec718447b692673ba88374482a4d8ba907f8d115c842fb758e WHIRLPOOL 2d2dc37738f954e46d1edc22c56d01543fbb82251b50633e4e524c2dbf151fb7739c318b509341aac6a16ccbf1a4dba476ecb33e3db6ac77c1139693b502c922
+MISC metadata.xml 250 SHA256 30b1bb7b14b007d86ed39979509c9dd66cdb38c4e99d8ac51cdcf64f7a06b246 SHA512 a1bc64b7a0364dde9db421a418f54cdf74b3099650d261e854c3bc2176dd67584b130654ffabd11e5cfb0974a508dabe822ae234bab6527acced73efc510700c WHIRLPOOL 1c21807eadd3597a7d0a12c422af8dcd6f17730aee84e2cb64887abe0d792ec05938f2032deec01b2bf6678d468dfb9bcebd2ff22ed3814c438808e22bb145a1
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..b3e2ccc2e54e
--- /dev/null
+++ b/net-libs/czmq/czmq-2.2.0-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..3bbe065064fc
--- /dev/null
+++ b/net-libs/czmq/czmq-3.0.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~arm64 hppa x86"
+IUSE="doc static-libs test"
+
+RDEPEND="
+ sys-apps/util-linux
+ net-libs/zeromq
+"
+DEPEND="${RDEPEND}
+ 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
+
+ cat >> src/Makemodule-local.am <<-EOF
+ src_libczmq_la_LDFLAGS += -pthread
+ EOF
+
+ 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
+ mv "${ED}"/usr/share/man/man1/makecert{,-cmzq}.1 || 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..7c5a822d2398
--- /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 type="person">
+ <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..76e7231ed7ba
--- /dev/null
+++ b/net-libs/daq/Manifest
@@ -0,0 +1,12 @@
+AUX daq-2.0.2-libpcap-check.patch 1000 SHA256 10f12cc3f73e12d09f4d377e8bb5141fe388131552815f608a4a8ab7d7f14c1f SHA512 9382026f9d93ae922299ae25a98b6e38c2bbb0619009f73feef6a7ce1ce499b5bde886323be80c7863cf8ed0c245f2b04d244166073f2435c6db915ca5afa17f WHIRLPOOL 685e66d9dc945f1abcbc1bad6c6023d3e3c10296e403361ef374698b408a98f7b138a0264298b8741ee831daa9d5e9a7b39ee3a21f0fa60ceef09129c2cb6236
+AUX daq-2.0.2-parallel-grammar.patch 1355 SHA256 7494c8c8123b95221dd86835dc95bfae6beff40ec3609e05f911149560eab2e1 SHA512 18ba4e4cdaf9551504d201b76f3983e3eb33a267c2f5952006e9297e7c5de88ff1464adb103ffce9dba99339bdbbffc616ff6b659ce20179c55a1bb0173b4483 WHIRLPOOL 0f52257399d9b1eadb912248ed412ed4ec5aed02da09f75b4227a5fbeb177d999b3d2f826543a87bb383f06abf0380614efd13815bd2075bb128e0d318d52e4b
+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
+EBUILD daq-0.6.2-r1.ebuild 1902 SHA256 aa3bab6351c8b9d16f493d318b3dc31af867ca120733ac5318612462fee3f73c SHA512 aa0552a61045f7332930082e9ed36557f973a39acc449143c35fda76b5e7a7f9da3dc521ec041956b038e70aa125fb75a0c2d4a3e4cdf660c9dec479e082ddf8 WHIRLPOOL e8d1ff783cabf71108701ce9c24f34192e881b2ab948082045a963cb0f70510cab796c079e50e0f4b63611f388d3e33cb5334bf0a46e6983d9cf0173d8661963
+EBUILD daq-0.6.2.ebuild 1932 SHA256 b5475a518e71587f2f5ccd20f46b886d5080209153c011781461751b8a07f653 SHA512 9b25bca43e52172bc9f1a3c43dc90d6bebfa2934eeeea579f7e4e8e3d0a9ae3210ae53249f4aab723fbf2d026dc053755462426f1d14cfa0f2a420222c2a091a WHIRLPOOL c94b04a8ea857ffd7095fdfc311dd005d5b64b8c3c430c2efa7bb98d3a53dca75bc4f4e67679ab731a9ac9fcf3a4af15e4e20d4d03a24cf3b3654d643fb88bc5
+EBUILD daq-2.0.0.ebuild 1901 SHA256 976b0754552e41a344151645e5d28d863e1eeadc005c9aa7f1366c2d7b3fcb3b SHA512 ce7a7fbd708e662da4b1ebd4bed6b688e8339feb9a15db188e74925f122ab421775e1a5698d2bec1d6a204a7c9667fb0a54749cd98595d45e89ba925e012d254 WHIRLPOOL 8780f9e68a1d0cb9c18280b820b0b2289337e5ea694c813bbb3225e2da62cb9f6331a71b13f5413ae46b1382e10800a814de62ab190b54568f36117ced081e0d
+EBUILD daq-2.0.2.ebuild 2001 SHA256 24c3204d1b70cce54823809dfec6539950c7d88e3c5e39a376a547f5dc9bbb7e SHA512 554b8c496b10d62ca9cefd1239738c64108b6d63a61401dbfc57109f22b255f7a24a5f419f859bd8672b073850b6604f233ac0be15d4739da15c2c0bad6435a5 WHIRLPOOL 581b24dcaf1ba9aabd50e0e4f69ee80cfda494503ec5d963ddcdbbab8b6c7b80b64a555eaf8869f701a505f0bc098ccba057b49fe0b8b3ef4878b99dafa5e242
+MISC ChangeLog 3029 SHA256 0a6fa8232c41026525f49bc40031d0b0d4d4833d81b16e21bdcb3f9e271b15ce SHA512 a5f4ef43166b803b2dc9db885f1c4f1f5eb78b444751e7a9cbda0760814e59b91edae0a9904c08e0794b2a8dd597aebee5055a97a8d2647bcb8fa93fad9c530d WHIRLPOOL a3060a3a9db7de0133e51327bc1dd650119095cb68eadf0bb83552f5cd9fde494bd71bceb747c252b66d47eadde755cc954754c7351f7174d75d5373e1792e30
+MISC ChangeLog-2015 3584 SHA256 d4d0c74ec18e5090d114ae03afe2bca5369d019a6b2779c7e71b616d64cf22d7 SHA512 5da373fb017e428285e808b72e5297fb53fb550f85433c7886d2ea22a03b7092ada1fb85c2ded74128f216d6448465eb2bc7d7f2ed9b93973bb5b2df70fac102 WHIRLPOOL 956c1bb58c42f4d85b5eb8eb9ba0e4cc52417ea6e9ceecd53341e53edbdfddecf8ba60ee5cb817390b56988b90f9e5479e0e93ac3bf92fcd217582052b01cf24
+MISC metadata.xml 1632 SHA256 1570226e470f608acb9c136149529c6c6d6d7237bdc3e0c6d3d5876b6e157745 SHA512 4c42b743534c4466ba4ccf566e01b6e9a8805e09312fd4fe6622cd318e062d1a68f17c9698333a5d65c199418234d80f05f660ae9e1ce9b664e11b2ca46afd29 WHIRLPOOL ca1f5264c681eba87110653f738d3753a3b3666f24ddac2b665e7ef3a12bf252bb546e96efc0df0be60084d13286c0682efc91ba68553a577f0462721a515df0
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..09c66a2d3497
--- /dev/null
+++ b/net-libs/daq/daq-0.6.2-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7070a8c4883d
--- /dev/null
+++ b/net-libs/daq/daq-0.6.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..b910b5c04777
--- /dev/null
+++ b/net-libs/daq/daq-2.0.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..35b35c7c306a
--- /dev/null
+++ b/net-libs/daq/daq-2.0.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..0c66111f5409
--- /dev/null
+++ b/net-libs/daq/metadata.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>jason.r.wallace@gmail.com</email>
+ <name>Jason Wallace</name>
+</maintainer>
+<maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<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/dleyna-connector-dbus/Manifest b/net-libs/dleyna-connector-dbus/Manifest
new file mode 100644
index 000000000000..021797303d98
--- /dev/null
+++ b/net-libs/dleyna-connector-dbus/Manifest
@@ -0,0 +1,5 @@
+DIST dleyna-connector-dbus-0.2.0.tar.gz 324464 SHA256 e791511206761282a658bb8253de076dcb1f8c8fbdc81219efe5ffe80cb2bea5 SHA512 0a1fc71fe299b295e86e47f2e356c89abc77f710e84bebe0f26fdb2ccbba5e693d5c8fc73133d46d902ba700f4369ade988f571ae7475f3325d5d5cce382f1d2 WHIRLPOOL 31c8cbbfd48c13bcabed8ac7fa966e7f3a96b1ddb76e104092ebcfc2ce54c5a15f5bc6ba944b2170219737d9cb8f643eea816a035a4d1628248c26ef142d627f
+EBUILD dleyna-connector-dbus-0.2.0.ebuild 550 SHA256 0a57831a4f57885d2465ff5825e42ebc888ca03439f0c980b353760698b0870f SHA512 146cb0b62321ddb1c3efc9145e9818ce6f29b30a56927624d9da848fb3bcd01d280dc277e613eafc2f13bb9e9919243407b5f8746e3177027cf2ceb1e3c0b204 WHIRLPOOL 9ea0e17da624d1e9f7975a21436b2d7c2bb6475d28d8634ab40ca862aec9e21f75656b8fb2f355cb9f4bab23fec3211d5d56befe403c7051fa1fc1fc2ff3cd61
+MISC ChangeLog 2933 SHA256 28d00ecf3c58c1cc366e86ca0d23d78b4b5ce6b2af1e7bc26366378ef50babcb SHA512 3b2f39056fc7e5f1f435a6d8d7680ccb9605801c5544afc8ba195c75572081694a6a68cd979c4e7dde12f7740dde7e635b2e354357977ec7fa747b86d79525bc WHIRLPOOL a14cd9037a31f4c8aac93561afb41c1b1e9bd10bf8bb9c8c7b4af1a913b9dd1c950de00eb2de1ee5ab90c10306fd4063392d783fa6f098e0b6d1ef9f110db83f
+MISC ChangeLog-2015 488 SHA256 5e17fe6bf3458c9a20f696bf6fb24b10d664207a0d52fa55c6ecc90ea9aab77e SHA512 1f572994a1d55e0eee2ce746b2906a5b8d3db21ce63c2c5c3e1aa52ca51869965e92dc6292598e559a9c0609319dffa8d1161adbe6e11521e3b69073dd6facc3 WHIRLPOOL 82a61665579c140a5ddcd342b2d4da0f3190cabba0e400e9f147a25d685b7922c9f4acb56d59c6c06799b50587765de28ed8f69eb4e9efb7ae67b5df2b9b520d
+MISC metadata.xml 253 SHA256 8f92439176f4cd2ba6a060c523c6b29ab210cd9aab7903b6db6eecc6654b1e21 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 WHIRLPOOL d5d853bd8a39a54c45728e16a1aa295e014e0a3a105a01ec6b3c93a4f53d7b7055644708301751b7f5be68543056d3f0bd611d5ce0be442eb5d06f5e032fe154
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..9bca0dc65e27
--- /dev/null
+++ b/net-libs/dleyna-connector-dbus/dleyna-connector-dbus-0.2.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~arm64 x86"
+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..996e7cacd217
--- /dev/null
+++ b/net-libs/dleyna-connector-dbus/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/dleyna-core/Manifest b/net-libs/dleyna-core/Manifest
new file mode 100644
index 000000000000..10281c928e44
--- /dev/null
+++ b/net-libs/dleyna-core/Manifest
@@ -0,0 +1,5 @@
+DIST dleyna-core-0.5.0.tar.gz 337307 SHA256 de3027acf5718eae837b5f126bd49b8111189fb075e040d43b480d2b9b114aae SHA512 8611ae61482dcb0ca55513ed4ce7cae9372f88d710033e5abbaeb3c06533a7b2ac143757776bf9ced0dd3f0149ee9f2e42e90fac3ecbbeb42f38d13aeae7849f WHIRLPOOL 8f99dfb1d7c76c2f89e35dc835795f87ee044437184a45abe4250b4104c50954034245d570b40cf73a8311806678d14fe3ab723037fd7ccfcdae8ff35e317823
+EBUILD dleyna-core-0.5.0.ebuild 526 SHA256 5292fc682f002f0b5730a4cd8a66f4acc134c50ed60b101edfddef1f422bdeaf SHA512 bd43e7286f2bfe97e81550ee52f1dd8e22da4e30b52898748c9cd8748ecbff7ada87c02130cb55cc8ecab393a19391f457ed7bb027ffd48710514d3d742ba3f3 WHIRLPOOL e5f1480e8f25798b579773480562d525930aa9785cee78a93dbea6af8391bf6560c5ddebf3e4c09ce192e2960946ec8a673eb36f5ca2014ce3e85689fb8f24fa
+MISC ChangeLog 2867 SHA256 47ca3e8368445a358bd327c6c86fc93f776f66011544fbfa2569340dc983ea9f SHA512 dd7b16c3058124b1b91dc352d991189ef6d4f4a26a73b678034b859ac215cc4ebb783612a70916639494845448b7a9420da7089fddd4f8c05b34397b39bbb6be WHIRLPOOL 6cedb9a17226c1969f93ce6e2671b0fc1f494bb891fe6f5a41b649a9715962cfd2bb260f9c6fc4941b66c6875525f3b112b2a6c47836d8fd4151dc01097a0aed
+MISC ChangeLog-2015 561 SHA256 cc392e71f33cc62696542ce5e241e571aeb264d62acf92ccfa0841673013c5e1 SHA512 a303dee3aba4ff1f16c1ca9188912aadc27cbd2af89addc36fc71a70c2995a79ea8d2d1735bff1db19b3e0e770e97710a6e977f67dd90a95682a6c9de61568c3 WHIRLPOOL 2412b410a39b6ecad5a0adb4f5bb0722638fa38410c916a48a4a78056d30f493afd404692722d7d41eaa1407d74e8f30814763c7d2aacf4d666f36e11e802f2d
+MISC metadata.xml 253 SHA256 8f92439176f4cd2ba6a060c523c6b29ab210cd9aab7903b6db6eecc6654b1e21 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 WHIRLPOOL d5d853bd8a39a54c45728e16a1aa295e014e0a3a105a01ec6b3c93a4f53d7b7055644708301751b7f5be68543056d3f0bd611d5ce0be442eb5d06f5e032fe154
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..c7130c6becdc
--- /dev/null
+++ b/net-libs/dleyna-core/dleyna-core-0.5.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~arm64 x86"
+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..996e7cacd217
--- /dev/null
+++ b/net-libs/dleyna-core/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/dleyna-renderer/Manifest b/net-libs/dleyna-renderer/Manifest
new file mode 100644
index 000000000000..bf599b7a8a83
--- /dev/null
+++ b/net-libs/dleyna-renderer/Manifest
@@ -0,0 +1,5 @@
+DIST dleyna-renderer-0.5.0.tar.gz 378208 SHA256 a62e98991b268f3a23d1c3e2275cdffb114a440d0b364e45480c8028573a6bc3 SHA512 28802057d6e0b7da24fd8abb11748faeb78ea6ef15ce85d83907497ff252c86cec1072a919e64bab6df0a375e0092c1281569802515fb87d9dc083098f1d4820 WHIRLPOOL 7cb73ba0fcaf203d9ca0617728d1a266b02e48a58c72e613368ef5db1c5fd67034975cfec33246ebbbc9e1537f1b5a200e1c6635cb9154f1086efc2dc68577ae
+EBUILD dleyna-renderer-0.5.0.ebuild 769 SHA256 bf7d896a7a569a5f7318e393ff07185358d6dd7eef052103cad5543c39c46127 SHA512 efcd60c6106305a41b5677a7aa961a9f3334d0b5f99ef41ec73837fc5108d5dda92483cfacf3db620738889ed2a892578d278d8d6ebfa19041418b0023d2abd6 WHIRLPOOL 3cb8d83dfcf2af44d491d422fac11352e2b59dd191fca1122a8e5583744ff5fca3cf349775b1946d812a75be3504a4a8bbc089d1f321ec579aa462966311eca6
+MISC ChangeLog 2637 SHA256 60cc222fdb7c832915349aa8b56013910ff16603463675bf9f3450fde9e44c75 SHA512 5b652a61c9b2d31027e96300cfb58a7d07df259100e08af23ba83a1e3ad47017f1d27b0d68412cc350010c0ce5cd3d016c0d6e6f0bf9fb493609e2a7928fe23f WHIRLPOOL fef522e666471df4dbde10e976e5971f8c29c553ed370bd5ca25000859a93f13e3e3ae93c193cbd81e01c2dad3611684a10bf685b9898b5da6a31f8507d036f0
+MISC ChangeLog-2015 464 SHA256 02d61264d44619a21bb720049bba98169e7df3834264a326090fc7f289213c0d SHA512 c16a6feae1945da8306c481de2741c5ff235ff81b625d078bdd02fb37c36841ad9203aaec52e3558cd6a6ca35fb357bec85197398692272f25018da86f446ff4 WHIRLPOOL cd8731fe4d9c0aa9603ddb0310e17e5f219866f3c3972c5f30fd42c515793b43125e9deda25fa7d10733809ef17a6026b74fbf0c0606e9e6338ec52f15920685
+MISC metadata.xml 253 SHA256 8f92439176f4cd2ba6a060c523c6b29ab210cd9aab7903b6db6eecc6654b1e21 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 WHIRLPOOL d5d853bd8a39a54c45728e16a1aa295e014e0a3a105a01ec6b3c93a4f53d7b7055644708301751b7f5be68543056d3f0bd611d5ce0be442eb5d06f5e032fe154
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..518fbb875465
--- /dev/null
+++ b/net-libs/dleyna-renderer/dleyna-renderer-0.5.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..996e7cacd217
--- /dev/null
+++ b/net-libs/dleyna-renderer/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/dslib/Manifest b/net-libs/dslib/Manifest
new file mode 100644
index 000000000000..2d61c4035319
--- /dev/null
+++ b/net-libs/dslib/Manifest
@@ -0,0 +1,5 @@
+DIST dslib-3.0.tar.gz 85076 SHA256 2c2439c35aa01166c0e259bc27ddccdccc5801779a78d13ebdd8c51b88ac8aa0 SHA512 070e93fc89a50b379400613ff8991c8cbf6b58e2997f11dba917f943f3539e5b248f6a357f75f905bdacead3fc1eb0afbcc0a2af1bdcf9ce0cfc8884132c7ed9 WHIRLPOOL 3940df68c3e0235b59e198e76eb80bdc828d6a6c160ec2c4156e86d3aac8124fc5b7f75e6f5a00c29a85ec80e9195c1dc049080efcd88329134b21909138f064
+EBUILD dslib-3.0-r1.ebuild 620 SHA256 c876357d825fe220f757d56026e84decba99ffede43b495dad325c60fab5e989 SHA512 a54322754c4433b8d56e39867d9a950d2fac2259f5f0a32652d48c056b061af317e03b09bec2d94fe22b4d98d9846e2aab9e90f1c1d2f838c93a9c43d757aec5 WHIRLPOOL b46ffd68ce213a725b6860fe21c9f1cf67b21c135393a9444e47649ab494a9cc828f1ed0ef75d0e4b4aec9a8885065124c37de01ae55fd7ab7a08270f33260f3
+MISC ChangeLog 2172 SHA256 93f86661e63593d6f1979e4db72b8ca1a83e5c2713faf7508572c96f9e4bea05 SHA512 b2c60e44a75b762b1cc050d9768350278556518c1ba29d1b15bd8db8e76905d3fc0fcef3b44b7c8c307eba3b9f2f76f1b2531a21e693e3115aea1b561e3d7b92 WHIRLPOOL a8f0e995482c04b246ba6d62456eaeb745889c29a2a72d6794a9bc0256b88c595d84a0163d2c60c3c3ef2f505fba262e4bb7f9e53fc1bff06dd57660b4506318
+MISC ChangeLog-2015 2983 SHA256 d79a49fdb4edc0632a3752acb26c5425f6d570d0f6f8d9ebda42d282e8e6e47b SHA512 9145e57abd81ae10a5d5fd2f2d6c1fb2097aef34f432d79d195893278e39f963548daec0634d0ba309c7a01b0abbea8dee6998ad75c50eb8db8c03b8338df6e2 WHIRLPOOL 733aa5905a79fa85e4b93431a7b2ae786d5da75b8c72dd7c45736163d3f7cc725d684bf68095c4783cbbd860e98c3c8f7218dcc303e6a0047c05a7eba2494fb2
+MISC metadata.xml 393 SHA256 0436dc7f6761aeff3448d90a9663ebf7509a30b51f75909fe2020afd6c0a42ab SHA512 70ead64a4d7352266986e2e45ea600b019c4fde8a195ab6e2b0ba0772bf07b64d733c809e5f749fa4844249ca9cdc40973a4d4f5783e5cd3a5090f75bd31b8fa WHIRLPOOL 2b1d761c921162b0bfa3763cc938bced64639f7cf5a3a31a7e66ea356c8945d9f4d4c78a9738f4b25a1ebb9dee066cb0485506c503b8cb567b08d0fde699157a
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..e90c3c8f22d4
--- /dev/null
+++ b/net-libs/dslib/dslib-3.0-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..0db98bb955fd
--- /dev/null
+++ b/net-libs/dslib/metadata.xml
@@ -0,0 +1,10 @@
+<?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-needed -->
+</pkgmetadata>
diff --git a/net-libs/enet/Manifest b/net-libs/enet/Manifest
new file mode 100644
index 000000000000..5037348bdadf
--- /dev/null
+++ b/net-libs/enet/Manifest
@@ -0,0 +1,9 @@
+DIST enet-1.2.2.tar.gz 413454 SHA256 6ce4e183ebfe980201b39174ad952993dbd8e8a7c325903fd520074ac7c2e20f SHA512 2c28ab4b650dd4165ee5913c1bc80dc47e43f2363a5fdd7f3aa9be8fb3afbc8aff7a6bce731f7dac45eb930fc6338cd811c07e8dedca5554a7dd32293685062d WHIRLPOOL f63da36d2cc5c1dc15f0f88234620536c300c64906c1e9f3bfddcd6cf70aa81bd37b653c34dd0d25baae4022addcd17b9b9f4863f7899e1630fc22f08c095fcd
+DIST enet-1.3.13.tar.gz 669090 SHA256 e36072021faa28731b08c15b1c3b5b91b911baf5f6abcc7fe4a6d425abada35c SHA512 82501c0248330a3a6bcac907907760e59b18cb662ebb42fe2c91e1557f1bc8ab452bf3fe7477dc01fa7a6e3b6124e1eb8eac46382d5bbebb2394879f9568b5df WHIRLPOOL ede7f9f331d34b8469af360d9e54b7c543d6fec0e5672943b2da3ce48a33c12e4fcb4a48b800b5bea6ec2e204b82503dbae404bb1f327e60bc7319309585fe3a
+DIST enet-1.3.7.tar.gz 522150 SHA256 15acbfd8e3aaf353320a60c785093cdf34f2ae207bcdd489503ca3f37659fe15 SHA512 b715347d94d8c5361033002e366f2cd7b8dd263faf7e84bd3d120de770f85025749fed4325c08f12d27875a112fb534a0464f8776bea6c3df2f048b57e5623f0 WHIRLPOOL 2ed39a5669ba74e11a08b70a5518a5314b43dad7629132f7e75f10445bea6491bdf27cd6ca34f9434a65fee236074169173687823f76bba3d66a2959a3478916
+EBUILD enet-1.2.2.ebuild 514 SHA256 3edd08e71e34786683a3f2ea1f846e58568c93f320dcd6b0430e2552e6e3b6f7 SHA512 31e3c60c7374bb2c0b150b82484b04bcd5ddc1ac1d45749acec2e520489ddd9f485939153b6c6272e408db86eed89eb8e91654344636007d5ca5f892c396a0fa WHIRLPOOL 31a0ff8d712b1b44bd8e04a2389e9f4c002e1b59df993b6a338e801779753a085c94dba51ab406ac03375d0acc5659f24cb99da39ef02a07021e87fd0ee2eafb
+EBUILD enet-1.3.13.ebuild 534 SHA256 80ae7da19aea17e3504272826621193294f42f16bacfc33312c86703320062ec SHA512 7ac184be6f2044d08ffcc7ec58596711d1aaf4fb406b8896eb0dd05a62ccec33bdf157ced6992d5d5683d6f87af3b0a1d1a6d81f72af9739c4201e15feca5429 WHIRLPOOL c487d759359fc5ec037373f1223c7643ce6a0cad94d50156f44bfc7a9a4bbce5a54a718055e10f6aafc4c8edcfadcaed199e5fad09bb25a8008fd1a9228c8f78
+EBUILD enet-1.3.7.ebuild 680 SHA256 6b14dba42f7fe1cd528ba6c91ea545e89402ccc5db8164a1333c7bccbdc2ab57 SHA512 65280725be46ef84c6ffc5035352fbb37e3038a5abd39b294ee8b05d155393bf11711ab8e947d91dba2ab90b540de884c3d2857983578a5bd9e6145a4bcba858 WHIRLPOOL 3aef9a95b533f6f32600c928f33acf8bd2a27430394c872a244d08df4a50a92d3b2fa4caf8cdbef2af60754793f80a8e2eebb601be2db9895a23bd9fd3fc3127
+MISC ChangeLog 2593 SHA256 b9e02dac1e1cdabfaca40cbec25b07a3cf8467a732dfe0a0d9bd85588409518b SHA512 150b73df8ba5cf6eee2afd6395f34c5b6c35c25ae83bc2096b4f48bc063a4f1881f605a2bc11f29f1a2bf3c49221f70cfab2965ca141d936de0b16aba4928064 WHIRLPOOL f437838e11a3bde00d54980de62d3a554e254aeec89d71a844bacd1ba8f7269467fa7a6ee8c5091385c936b262703c6a5ff9aa8aa10c0ee8c12e480b49cdac05
+MISC ChangeLog-2015 4712 SHA256 62a94607dc02f756dd550264dd634bb2c80709eeda91aade5a0b3b700f0458de SHA512 740c1a36be0ede758001034072b9bea3cf14a7a104624d029e3dc5ee143971ca985a0901e2d83e2737775682a3b7549d15540714aa9490364646e680b66d9a63 WHIRLPOOL 1f191735a5232874a3c858377831ceca808cd855669d66fc40732f7a24c10462e90c85b77f42c3a9a357abd7b516b9d321cad3321ebf3c76bd0263baaddcfb2d
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
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..6d020d098e73
--- /dev/null
+++ b/net-libs/enet/enet-1.2.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.13.ebuild b/net-libs/enet/enet-1.3.13.ebuild
new file mode 100644
index 000000000000..f69c8392ee09
--- /dev/null
+++ b/net-libs/enet/enet-1.3.13.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+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/7"
+KEYWORDS="amd64 ~ppc ~ppc64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="!${CATEGORY}/${PN}:0"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
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..262a049a6b4b
--- /dev/null
+++ b/net-libs/enet/enet-1.3.7.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..a535b8852829
--- /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 type="person">
+<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..79d84894a409
--- /dev/null
+++ b/net-libs/farstream/Manifest
@@ -0,0 +1,8 @@
+AUX farstream-0.1.2-introspection-tag-order.patch 4840 SHA256 f540ea6f239e291f9ffc5b806cfea9f9cd0c4f13963e900719a5ee3a3f370124 SHA512 a0fddf3dbbee8dd89ef05fe4df1c3c76fd6f4750d9b6aa8287691e51adc97b4e52e5bc84995918e526ebe44f61c099aa4b1f443d56da5978b6a8b88aa6e98bf9 WHIRLPOOL 03dc7a3a6285214b20833fd89de341e1f4235e01893eccbe8db0ce4cbf55e670309d6cfa22df8d13baff10e0c19058b7c76523f4b56c4c6d793ce85ab446ea6f
+DIST farstream-0.1.2.tar.gz 1265972 SHA256 fa5a40597b47b59d124f7fd57f66704b030d576cdc0d90e107c7a592f05e73d9 SHA512 7d9ddde5d17205752a17298fb90cf855a828b2ae58746fbdc7e47749cee5e5eac4fd56f97f58251a5d253901cdd555e9cfade6016b6d92df99daefbe850e2910 WHIRLPOOL 273d20082152ff09adf8e64481b1b7c7ba7e6a24fc09addc219880fbee7f1e6b9845ce727c032fa3c364e8d2440736fd0324015426591b7e9766f11054828294
+DIST farstream-0.2.8.tar.gz 1315548 SHA256 2b3b9c6b4f64ace8c83e03d1da5c5a2884c1cae10b35471072b574201ab38908 SHA512 7ec5c57f8778f4107cb628dbf411e38b726152cf78920127dff4423239ff7e4980b6b4f938abba2aa21ab984b1e3053e7e648611322a0ce94df0af576df99a7e WHIRLPOOL 70772016e9c6fcdf64dc2ec32cafe074ef7fa193cae7114625ab0c2501fcdd1f8eccc4e98a31bb0d69ee58047602951259970797183d5dba065f28fe920dbf71
+EBUILD farstream-0.1.2-r2.ebuild 2374 SHA256 7b1257ff8af276674e1ce40eace8c94073fdfb4e9393b83b996f71352b656748 SHA512 1222e9257b9ac280dd94b1e2f75f12369db67ae8efbce4ab6403404b37e60b63de9c06c797eb716ea8150c642cf323153e7ee4a1e246ff51b9a5de69e76ca56c WHIRLPOOL abdbfa46ec75143977fe78d2e8e04e001201de0ff27f9bb78382d95700354896a721a57ba7db576fb717f057df1d2e283a12e3b6df80728c9fa94299ef9c9ad7
+EBUILD farstream-0.2.8-r1.ebuild 1798 SHA256 44b766cd0c1fa19b1c7ceb2cc4964d3a3932c01d2a66e3c4db65a502b78c796b SHA512 14fd32dc609227d6ffb30e749531c4e5de786a088ebe57005ee2d195377e745e0fe33671329f67b0dd982a6bfabef1f39e502232e1e4e53e11e3882e3d58909c WHIRLPOOL 57de8d285c0d2f2b2a1ec3c5502999e6331726f2b337b8c14454d19a119999261d268f7da94bd72ae88af813211ee3786afa47b184e5520011c9ef1504fe08f5
+MISC ChangeLog 6754 SHA256 2ed84573d3d6123e205c825df18d2e960d10a373276f300233b15491d6a7dea6 SHA512 8fde9675f5f75b3696f3772fd8f848777e82ea1bbac5cd89282feff78d7a9a0bd19584d2607b9e06e142ce148f120e05374e19f0e755e1eb3b6f2f20e804a342 WHIRLPOOL 050f884afbf75ec2e75890bd4b90ad8afe0cb0c61fe81b495cdbba4b7d2e76b3858e4ce24a2474e7546b15b9022ecac477b7be4e426f20a85beaea586c41b975
+MISC ChangeLog-2015 7448 SHA256 bb30647a4b894f73fb05c36f62f0fb8b56361d45abe641d67290683af7181613 SHA512 4edca020c07c5b0484de7b24061deba18df92917cd531831a26697551433aa4503fc4785e1c1cb24d5f1a35a5836860eae3bef11969e621009d4f9953a21ef89 WHIRLPOOL 76f245049e1b91afca52b7dd53b6db158ba10b43d198741b83cb8d71255d55c965cd86443acf72a47201aa96e520f65dc53d631a25c82a43a1f85a8418302ffc
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
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..fd42212ec0f7
--- /dev/null
+++ b/net-libs/farstream/farstream-0.1.2-r2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="Audio/video conferencing framework specifically designed for instant messengers"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/Farstream"
+SRC_URI="https://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/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.8-r1.ebuild b/net-libs/farstream/farstream-0.2.8-r1.ebuild
new file mode 100644
index 000000000000..c9d897179778
--- /dev/null
+++ b/net-libs/farstream/farstream-0.2.8-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-any-r1
+
+DESCRIPTION="Audio/video conferencing framework specifically designed for instant messengers"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/Farstream"
+SRC_URI="https://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,fsmsnconference,fsrtpxdata,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..39980802b1da
--- /dev/null
+++ b/net-libs/farstream/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/ftplib/Manifest b/net-libs/ftplib/Manifest
new file mode 100644
index 000000000000..395784bf484c
--- /dev/null
+++ b/net-libs/ftplib/Manifest
@@ -0,0 +1,10 @@
+AUX ftplib-4.0-crash.patch 3277 SHA256 220c4908630f74f3a78f636718aa0fdb99a0f14c3702f8673b35e9a08753363c SHA512 9030a24aec67cc7a857bcb8b22aec66a8175ef3ce2bc6a82444301b06a2a51c7e9c3d439684189aab046c7f61aeb8405370d224ee63c357698a34f0421c5768e WHIRLPOOL 812226805ef77ed631339ea66d8b28fbddbc5d2443a6e8389d7290417af884639687c72098c1fa96958d123c3d26d9d46f6d40529a76dd9878a17527026a55a4
+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
+EBUILD ftplib-3.1.1.ebuild 1095 SHA256 bc03bd0c07a94f755f0923e082b0ce0739f98df3dbe4f938750b1f7e4f51875f SHA512 f7556af1e04bc9e668b4997e2981561fd922a1c624bcf8df51b2ef30ffa6acff08209151460f68b5d0751d1c7ab2c169570d7040fb39d21ff0da2d450f8a938b WHIRLPOOL 4921420a17df37818fb9d2698fccc076c1d7160d5c838d93b3ee7ac54d3600b15d00fa475b1dd5a0d52f79bb22e5cfc5f016074b02cf2c3707b165ca9378d3c0
+EBUILD ftplib-4.0-r1.ebuild 1016 SHA256 224f4c2fc3a4c9ce4286ced6af61bb640ba03fa916242660dc580283c147e02d SHA512 f5d86f2761d039891b94eb163c4700a3ec55d14155cc848cec69df02d20b4063576b786f53aafb582eb604f4d33b67154a7f934be575885e328efbd61e6d3aa8 WHIRLPOOL 21b799d094028e52ca254bfb764ec8b7e2283381dfe476bb6f9cb99211b99eff3d2785f5896e287d34e777f036e49e5233ff76e839d0694ca538e45afcc3a4e7
+EBUILD ftplib-4.0.ebuild 863 SHA256 644cb1e09798f40922465de287d73da69da333178f7a0e42e6acc32bcd941f5b SHA512 5d3a79f831504f72d66045bcfc7f159590525ace2d3d745cbe32394318dfc88f9b3905ffe5a98a778b185796782b29aee4e660654a17b99e2bdbfe334fcf0c4f WHIRLPOOL df3d5102b11ff0fc47f57803945ba6530402ca69ab8047929a2321ad441723279cc96d5e5ed30a818d3d35ea94af0b47fab451d9d0760aaaef368827ce019074
+MISC ChangeLog 2555 SHA256 9cb4bbe6fa114ad2f2add3c59a60dda3a5f3cc715665934b4c8a6c048c982aaa SHA512 24511a09837cb19daf5ae3e12756871d13f6df0047ff6f145bb9a3c7e111bca9a1ac6069c74a84731f5868691cd59a699caf5c550a360391f703de228160460a WHIRLPOOL 23dd95485567db7508358a4721042c2e282a7eeee413af9a91cb6beda2c7e90d52106d32c8ff73cb0a68bf28fb02a1c3de07da2b852ce009b5e4bab581a15cc5
+MISC ChangeLog-2015 761 SHA256 2392951563923072adcb4081ed5299e8d3e54d8a57ea48f3623e7f7b3212f564 SHA512 4af471f57fa058d1d9eaf5c6cb01761abc579fc28b20036f650a64ab4a36befa82e59c108e807acd760071e79413df232ebbefc352573b55bfca44b9ba21e3a3 WHIRLPOOL a5f4bf98189353014f2c87ac3ebf6ba42848e9e00fe9a52c8126ca476f16ec821f35ef0f8064d5c92e0885e941563dc39f67adacfee52037d85e14eb2e895932
+MISC metadata.xml 227 SHA256 01fa256b46c60492ca90de4799686bcfdc89c3d2657c020fb5a6035deee6af24 SHA512 d39fc0676c06bf09884fa817e0d5dc386a536d5626a9c2cf34ddb8b7e29d612ecb2c617214788ffe729c5118c632c119e03ce6d38f17114c48c090c82a2ec2e5 WHIRLPOOL 9420098faad521e4aa31e2458613159422d2548449cdaf06be90bdbcd53435f73e8a9e343718368a0beadb058abae8803ffa1425ef62859f1b605c2e0d8344e7
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..dc54756b3b4e
--- /dev/null
+++ b/net-libs/ftplib/ftplib-3.1.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..9d3e7f9c5192
--- /dev/null
+++ b/net-libs/ftplib/ftplib-4.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..11dcd2fe2bd0
--- /dev/null
+++ b/net-libs/ftplib/ftplib-4.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..106575f01e53
--- /dev/null
+++ b/net-libs/ftplib/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 type="project">
+ <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..855719ff9697
--- /dev/null
+++ b/net-libs/glib-networking/Manifest
@@ -0,0 +1,5 @@
+DIST glib-networking-2.50.0.tar.xz 435380 SHA256 3f1a442f3c2a734946983532ce59ed49120319fdb10c938447c373d5e5286bee SHA512 a1e9d28a546f83d461057f088ca2467a32be110f444c8ede1cbfeb20244637d8d5fb5b5b0ee4485feb517beebc3536671442bbfdd3ba01663b52e6da138bd7fe WHIRLPOOL c9d2fa9c36fa9e48991ebf09c5719ccb6e0cb72bcdc5a878ea7d1db71d7edf2614ff6a4c91839860cb3f92aae336fd6033c26d8905c06730369e1256435ee47a
+EBUILD glib-networking-2.50.0.ebuild 2308 SHA256 f5af352a49d39986cafaa1f0f73525b72ff12211ec93e72a644824cf5f04d97d SHA512 1a9517ee0e22d261aec3f6cfbcfa7abe7709968a1960dfddf5c963163873faec0a5ab091e5c940fa0550786fc0dd9be709c79fa9d969a6a1bc2be260590f2569 WHIRLPOOL cf65d6c3c4286e0830231ad455a4168b654f93a93cdef3b87d113d5d32f0af778cc2e5000baf8dd720656b25e814cc865791daccd6e652a66312b432f52b9638
+MISC ChangeLog 7755 SHA256 dec93942dd959d7b4303e5d42416357445c093e43cec2adcfb84ca2343627a00 SHA512 adc610d0c8d1b40406aee8d84efab2a1262db2db6699597938542220f444fd0138e9e443ad2b622044a609b4a66811afe7d0f2280d6cf34fe32e6dd204aad888 WHIRLPOOL d1d21498a694fbcba74deeaa2af4d8dd2959194912906f4ef9acab4013feb4c5b8768d28ef0bd076fbfc5a62884ff1606815784c60e76a99aeb75627ca9c7379
+MISC ChangeLog-2015 15406 SHA256 23918eed03354b6dd370825f0a75ceecf1813990177bdf42ecd91f92545cb066 SHA512 ee073f26740b63eede4e4852e1b3d2e54241503c80d19a7d4e0fce0914926709e8081336dc0f7a4b59d12a201777d0b3ed996e259e8b9ab8ee4ea7ace9704b77 WHIRLPOOL 8362601f27c0939564666260ed5ea49e83b5b35b861d537f27ddb5fe5d1726b1cf6dc17069494fd1a0e093c04379b25f31543cfddcc6e685431114b035994340
+MISC metadata.xml 494 SHA256 86287bb4e2ba4170ac85550225ab37204785978a63f2432eb51e9b50ef7a380c SHA512 40a0f76e5ed695d7700526e1d6d854a50cc00f37e065bf332be51addad6a4be4567c313ca8ce8259fa809ded1f023daeb77f36ff660650d5d525465e952ea048 WHIRLPOOL 49f7381454bec2b224785ef08093c51c69b633e49bca8fbd71992bfbc665e10a412f7d26bd80b5cc3f0b5c2857b4e4e85a3ae53766d20410a9151e03f4806403
diff --git a/net-libs/glib-networking/glib-networking-2.50.0.ebuild b/net-libs/glib-networking/glib-networking-2.50.0.ebuild
new file mode 100644
index 000000000000..37abdfa1ecf6
--- /dev/null
+++ b/net-libs/glib-networking/glib-networking-2.50.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2 multilib-minimal virtualx
+
+DESCRIPTION="Network-related giomodules for glib"
+HOMEPAGE="https://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.46.0: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}
+ >=sys-devel/gettext-0.19.4
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ test? ( sys-apps/dbus[X] )
+"
+# eautoreconf needs >=sys-devel/autoconf-2.65:2.5
+
+src_prepare() {
+ default
+ # Disable SSLv3 requiring fallback test, which fails with net-libs/gnutls[-sslv3], bug 595952
+ # https://bugzilla.gnome.org/show_bug.cgi?id=782853
+ sed -i -e '/\/tls\/connection\/fallback\/SSL/d' "${S}"/tls/tests/connection.c || die
+}
+
+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() {
+ # XXX: 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
+
+ virtx emake check
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+
+ multilib_pkg_postinst() {
+ gnome2_giomodule_cache_update \
+ || die "Update GIO modules cache failed (for ${ABI})"
+ }
+ multilib_foreach_abi multilib_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+
+ multilib_pkg_postrm() {
+ gnome2_giomodule_cache_update \
+ || die "Update GIO modules cache failed (for ${ABI})"
+ }
+ multilib_foreach_abi multilib_pkg_postrm
+}
diff --git a/net-libs/glib-networking/metadata.xml b/net-libs/glib-networking/metadata.xml
new file mode 100644
index 000000000000..c28b1613d4c5
--- /dev/null
+++ b/net-libs/glib-networking/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <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..cbf0a63198b7
--- /dev/null
+++ b/net-libs/gloox/Manifest
@@ -0,0 +1,11 @@
+DIST gloox-1.0.18.tar.bz2 700080 SHA256 16730e7fd4679e098a6d6c1f94ee72aca825e8f40e6744f5921ac32fdf22548e SHA512 b8387796914e237fa07cff17862f8eafad8506173a3bcd7a659158daf845a33606b3ec58822c2f0f8f629aa1ee68a2ac58489dba83516cb7da264da3678317a7 WHIRLPOOL 6b38e7e3d480083fd98fc4d5f8c2402faf1c5242d3201c29d40995cafd2aadafb20780c7219a1a55497ab95754ea1c5b8f79756fed9f2f3b84780dc060f4b1d0
+DIST gloox-1.0.19.tar.bz2 700335 SHA256 88466ab52ca99bfb22a74b738d9713a9cda0b06e539108354156ba408a5283f8 SHA512 6f62773aeb24631ea5edbbf2267275f9e6005bed240dfbd121784238709d85097a096d16b3cd7cb45d34b2daeab026dbb3b84994c504ba03180d9dff90f9fbb5 WHIRLPOOL 98586156b3a88807b3f1aca25b9fb06f17581b4a1e834cf1692b406b879f4f759ec424dfb36527bc0945774a798647a8b033a9ae860960b4f214f9a35051c00f
+DIST gloox-1.0.20.tar.bz2 701114 SHA256 0243086c0f4f0440d6d8e55705f83249a4463a1d75a034be42b5312e8886dea8 SHA512 b94269487875ae32631b5b15eeebe3293c6b8ab4080a6e15926c575305841a609a5e4da25bff266806ef4b65c1db14e9a9e5dabf8af8b174773cbdc37cfa12f8 WHIRLPOOL 872fa9587d9ab1a07197c40790f5ae72748df6f7d835a206c92da5819456118c8c7dc2f70fcf289e2840b272051436f204503ba12b143a33a48c4f150a36db34
+DIST gloox-1.0.9.tar.bz2 670206 SHA256 143dd50e1edc4eb1d304fa28bdd6ab9e53b60c37c1726dd0e34c06c51f9a453e SHA512 a3fa7acc76fdca0421030e71b6a13ca0b04589946df2a781609f1bddae5329299d68ce99a4a94a0760206b112759636379ce67d220422b99302fc799964bfa22 WHIRLPOOL 414eb34fa3ec11ae929f84198d95ed0da9de0739655ae1188ac3eb03998de5cecb9c165ad284496b405b49126236b628dc5b4579e855b10377add145fabb63b1
+EBUILD gloox-1.0.18.ebuild 1034 SHA256 61c818f5145bbe91e873a81712338bf642a094d9bc7f59019329c37153310de3 SHA512 1715e363458fede6ded96566ea70f380ca8875417ca911f4873db3e4c5d501e180d836a24ed398ca252553df4159f70faa00342dd0465ee9b6aa4a877aa551f5 WHIRLPOOL 130183e5b50f61b239757c77a7ad23f28335889fc0bf0252647f6e0135a2d2e483c2e7e5e5d3778d7c9ecca6e887eb71b63ea5537d3b16cd051271db989b24bb
+EBUILD gloox-1.0.19.ebuild 1058 SHA256 3c5015335debdfd8dab125c4e128f78c542e1d348a507d58b2fd1e281e571364 SHA512 37f496c9a2f2761c58b2b3d3350b8639b54fd31be7736964ed5ab7f6e7f1b3cff9bfa4c3411a45f27419b7f17a3e006cd8e15bb040129b65b0fc80b9d97cfbe1 WHIRLPOOL d1341047bcdc7e1dfb6ebc06ede45bf7f5fdb796ffef72846891ef0f6b6c303b49cf061f57449ffe9fce09c24322f4d948f11bc5de02439a396d4cac50114c55
+EBUILD gloox-1.0.20.ebuild 1058 SHA256 3ee0f23ecdf031e1a6e4d9646c16134d52d8c0ff6bd2db7025450185d2e36c0d SHA512 93f02a2cc0551d23a629409480740f80dace9796621b8e5f1097babf9af7f936ee9b8ef81b721d8ca25e7f64ce4aaf9329407674699bcbbbeafd9d2964ac5a1b WHIRLPOOL 50f29ae86cac7757d1ac6c32ad63f034e45ac53df2ffe5c4c7d8b2ba864a3e669e23e3651c151588899fd90785dc3726554a509218168e71ca7040fc5660038d
+EBUILD gloox-1.0.9.ebuild 771 SHA256 567cdc83bfa9d6e524d1ee6fdbfb1121998d58f3405c20c559c665b26243a226 SHA512 0f984b9e82532ae6edc411f6fc12845e1b8aba67bd028d68175bccef38f1f229eeb5fe5112040a5afc2ab687ac85709cfd591f0075aa1a1cdacc84249fad24a0 WHIRLPOOL c99deb08640777a81828020e6b25ffb55e5a2996b3ddbf82e491a0b403006571dc0f0a837e20ebfe30e487f2afa14ab07f10fcf96e34c62ad870004964ac62ce
+MISC ChangeLog 4397 SHA256 7a433aa21474a7ba55950b036ec79db78060bbdf0c723b6918be6394cf6c0bf1 SHA512 40adbffdbbbe4c6aecb99651475bb07e49962b49c53dd7d144780a0139bf1fc2aa565f161a7334eb580fbf0043911d3dba350f1100fa72bfde949e61bfa0ec06 WHIRLPOOL 611017cf23c3810a47db94448d522405d68c480d2f5d556dc5e99c0c737cb5815e6150874b47d60e2b0ad40bd62dc43316a84eb55350b4c5a459ab209b727956
+MISC ChangeLog-2015 5113 SHA256 9764305b6c484a602dd7b7d4878a5c04a3999f645aee62a7af86137974739397 SHA512 2d31099ee1c33d0f9a0d2793f23e2536000c4785609c788966d2c425792635363f441afb7a3395cbc8a7f1885f1fce89070ce541203be198d3d112dddeff5465 WHIRLPOOL e44580c9b663914efb5bbbd458b70a3f63b567c1018b6a25415f24b1fbcbadb2b70a38e27d89987f5c06b8b30083985d9ed94011fbdad054a0b4914cd96ea1be
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/gloox/gloox-1.0.18.ebuild b/net-libs/gloox/gloox-1.0.18.ebuild
new file mode 100644
index 000000000000..7472539b1e7c
--- /dev/null
+++ b/net-libs/gloox/gloox-1.0.18.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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/15"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~ia64 ~sparc ~x86"
+IUSE="debug gnutls idn libressl ssl static-libs test zlib"
+
+DEPEND="idn? ( net-dns/libidn )
+ gnutls? ( net-libs/gnutls )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ zlib? ( sys-libs/zlib )"
+
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+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.19.ebuild b/net-libs/gloox/gloox-1.0.19.ebuild
new file mode 100644
index 000000000000..b645b9a04135
--- /dev/null
+++ b/net-libs/gloox/gloox-1.0.19.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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/16"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~ia64 ~sparc ~x86"
+IUSE="debug gnutls idn libressl ssl static-libs test zlib"
+
+DEPEND="idn? ( net-dns/libidn )
+ gnutls? ( net-libs/gnutls )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ zlib? ( sys-libs/zlib )"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ # Examples are not installed anyway, so - why should we build them?
+ econf \
+ --without-examples \
+ $(usex debug "--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
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}
diff --git a/net-libs/gloox/gloox-1.0.20.ebuild b/net-libs/gloox/gloox-1.0.20.ebuild
new file mode 100644
index 000000000000..09007f443980
--- /dev/null
+++ b/net-libs/gloox/gloox-1.0.20.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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/17"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~ia64 ~sparc ~x86"
+IUSE="debug gnutls idn libressl ssl static-libs test zlib"
+
+DEPEND="idn? ( net-dns/libidn )
+ gnutls? ( net-libs/gnutls )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ zlib? ( sys-libs/zlib )"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ # Examples are not installed anyway, so - why should we build them?
+ econf \
+ --without-examples \
+ $(usex debug "--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
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}
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..3251794a33ee
--- /dev/null
+++ b/net-libs/gloox/gloox-1.0.9.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..6f49eba8f496
--- /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>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/net-libs/gnet/Manifest b/net-libs/gnet/Manifest
new file mode 100644
index 000000000000..ecb94ab39ced
--- /dev/null
+++ b/net-libs/gnet/Manifest
@@ -0,0 +1,12 @@
+AUX gnet-2.0.8-check-usage-update.patch 1256 SHA256 f6013b797ba9f5e0bf0bcf9f0d3686d672b29e059bd1c1d99b244288d40a16d5 SHA512 e69486e5240c9816991c6774fb24b8edd4709f8310f2fc5fb2d6ac59e96f9e30b74553834e4c6eb7a48e476dcee6dadb43224449d2ec9ff98b568965c3f40e81 WHIRLPOOL a893a33d3ff8eed735d33ff685e8c10f04ad123a4a6cbe415942b1d31ffa1a6e746ced95d71dfdd7b28acaf960830ce76882a449c51c0a4a9b57b46d00c5e63f
+AUX gnet-2.0.8-context-leak.patch 838 SHA256 ff68ff73a8b46d6b78713aacb47ae558671dc241a01019b63fd0638c9fe102f8 SHA512 7d9a86f2580659372679846ae64050481064081c77f0019b1edddc3e565da13ba2f683a856d483268dd7a2c75d319956b5fab9393c5af8dba132457a2dba620d WHIRLPOOL 867d21e0b5e806e4e6fe3aa6bc33593bfccaa41495fcc38688e48852b512f77cdd6f6b7b000ddb322616197b2c4a816d677555ee0ec6756cd6671b826680f936
+AUX gnet-2.0.8-fix-pkgconfig-abuse.patch 830 SHA256 a6e9008880da95d4d57c4e8cbf92ca41f5dac9b6e8fa4e82fd9cda9eb240d5f7 SHA512 59b07d390fc1c8478346e86430e1fd8fb81286d4e68b8d3014bb59099855586e828292458071ebf02309f7b56e77918025ed7d43bf0df82270d0f17dcbb4bc6f WHIRLPOOL 59aec0dfa87b279c1ff3d617604d364b9a96a192b18fa3bc8745f1b77b3a2876646bc46754ea970ef09221c847925a7afe4ef971cafed563cf16781c2388fb5a
+AUX gnet-2.0.8-network-tests.patch 811 SHA256 0883e4a0d6c19e96f2f168b201966fe33ced2f17462fcd0231c682b2fdfd7b76 SHA512 c500dc6806f84eb1e6121fb35b6275f3cbabe3957aecdc246e4c68ae95b39e33fe1d82f76df767e1a463cb58aa9150e4469f7b30ab57a9d66a218f8064b48cb5 WHIRLPOOL e3f00018f4fb441eadb5b1e70980e084813a56d53cf850b9145831bc3cbaeb3e2fdfcd6f7371922f96ce07063fd4234ff28d9ab93364ef9019710c0c407b912d
+AUX gnet-2.0.8-test-existing-domain.patch 1000 SHA256 4f9cc07979fe08b63f5b0c64461e7ad698348d82ecd2f6b9edc74a60d1e9ef4d SHA512 5c514357bd7ef59a4d97154c436aaf60e38e4fd1aa479df1a750df2329369e486bae6e74e1e5dace5b0a8e0b8d130707c6b2b87deb1aeca3ed9a2c95974bab4e WHIRLPOOL 7a6f46db09c65908784918d8418b16bb9b1b5ef5de572132058b463705331aac542d5b4b4851da196d535affc81c218f81bc19eb8ef15e9399026558ae776e1b
+AUX gnet-2.0.8-unittest-build.patch 1041 SHA256 6ee1a7a7bf0090ac07129d6723faf812c280dac14344e289a96e9f4fe4334df5 SHA512 f7cec5602a33a14083117188190881bd4e6cca188a16d854b9d48fe5fab7653386f7e8e116d2c3eedc30595068e844078b73286cc80e2d165f7acec0b8376773 WHIRLPOOL c63ccdb0a23a48e151bb63f6a2a67b1ada93c409b43b9daef50d4e6d031098ce7602c87cbcb479ca799c5747509ee0543771c842b69ad5f508e0092ff9f01d95
+AUX gnet-2.0.8-unittest-service.patch 1093 SHA256 a83fa961f1d25e02f22eadd51ad0cd03ebd9c65512915c1962c7a6401b434f1e SHA512 2b815264462491b072a7ffb2f8413999149aa249d33d5500fc2279b523c518a31c4dcb1baf3c5554bdfef0c6f4c112ebf1d26b19f211a0a7ace9f867e07c037b WHIRLPOOL 7a5c4096d7dccfbe0468793f8097c211b2d46c6c7259d18a7eef0e9d61c29e55e7e49148f498b97b4a972a82903711f6ecd74e15bfcbd34175c8e328e0e34eac
+DIST gnet-2.0.8.tar.bz2 514019 SHA256 14034c7ef571a93f2aca21b2280fa86b35ef5730541d3eb57557dd42d7cc506b SHA512 b52ce73c62eb93d7f68a124128780dcf6c6795e82436d0882469dd7873d482c6b87c77d4efa9f69838a58313d7d958abad5b41a89620014c239030d0294cf11f WHIRLPOOL f259f28194b9932f30a72cfe9cbd7a645dbf18a0d02b8b3a506e4bf90ffb77a76f45500142d0b7b2e2c370f0da2f40e99710f5599336ff7d1080de108a60cbfd
+EBUILD gnet-2.0.8-r2.ebuild 1971 SHA256 737d37fb88cd71ab8b111b699ebfe3fe3995aba6f5c7fe1c8e1c707516c5e1e9 SHA512 5a39460034ce9131a07a7f861cc017344878a505f9779b0cd32f0f03c7c8220b7d629761f4389a7484877659f1a375ad803ec37621ece792ea562708913ad4bf WHIRLPOOL f881b97dd40c2df5ccea1660ea1716b9c95dbbe6a880bc60e90a084543cc0a011f3f5447fae6c9c36c880ec7be57f12df5ead03323cbb9f973b342dd6b7cd699
+MISC ChangeLog 2945 SHA256 2c79811bee59dc891aadf19a822cb7c4e1e026fad29c06e1551ec590bbd9238a SHA512 eb95293e299d3ee77edcd167d2310d2f41067f6193b6888d659e974aa9da1b6e41b30ee52081d3d464d04d2a6d74efd08a2f84aff57f84cabd75402e5391df6e WHIRLPOOL c593631377e3108c84b9771e90edf1402349a5ddaaef26b86a1a879657f9348ddc7f2114b97a8c3d213abf6c4bb5f0577d1f99b9dae115385ec324f71584dba8
+MISC ChangeLog-2015 11445 SHA256 2c44db54f2f7cd736605f49f8ea6f943590c76061cd289d38ca7c535482400ec SHA512 7733e0056232ba1680231e0cb86213a9ff111a6814a18975f6ccd02cc7e3e4720a25b7aa41670011d8e32943dc8ee1247610cef8b2bd6116bbc51d07ba79b6c0 WHIRLPOOL f8a65802983c73e9e82da0274cbdacc1774e74c8fac9a434d06aed47f833c3f45aa60c4abff96bf195c32244257d0ad57b28455ca7bed65227be403c905abf69
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
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-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..2f980c56423d
--- /dev/null
+++ b/net-libs/gnet/gnet-2.0.8-r2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="yes"
+GNOME_TARBALL_SUFFIX="bz2"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="A simple network library"
+HOMEPAGE="https://wiki.gnome.org/Projects/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..39980802b1da
--- /dev/null
+++ b/net-libs/gnet/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/gnome-online-accounts/Manifest b/net-libs/gnome-online-accounts/Manifest
new file mode 100644
index 000000000000..6b651007599a
--- /dev/null
+++ b/net-libs/gnome-online-accounts/Manifest
@@ -0,0 +1,9 @@
+DIST gnome-online-accounts-3.22.5.tar.xz 1404888 SHA256 a8a4894ea5c6ba4508f8fec539287f2ebaf2c9bcf4426463b6724ca58b9d8982 SHA512 5c87decaeb64850be02c3191088d518a5c3b84cb8d202692ff50b59dbf83f28a56f5bf34873ec9cc16301da3f8b3f41a892cf6a67f9e9f9f2bf35a8bde07a258 WHIRLPOOL abc5c08bcc384159ff021fcec960baf707b49bbacf1d07984b01d7180244c8e4424e4c14ce3cdb7fd89c0e88dd33bfa40dbfcd32e1ace1a6730ef64d143ba64f
+DIST gnome-online-accounts-3.22.6.tar.xz 1404728 SHA256 464248492840f6e3c6b3a30c54dad4995c1e348bce04c899a6a26b7a2551f7e5 SHA512 6b5370447ccc5407ed5abd32b70c94c52de1166466e731e2a0295800e598be5c068a8fd6c492d439bce1a7faea8ed3638f689438d42e335997892738b51ed673 WHIRLPOOL 44494f1fb48e17874120ebf0a5b765f40dbb277030d01ee073377a5030af18249a422397f6f63dc2ebebdd759d083e021cf4c1bae556fc217d64026d4afec5c0
+DIST gnome-online-accounts-3.24.3.tar.xz 1410696 SHA256 252e58eb953032f84731724ff2e8c8afb403ca803bd35382eabcfeee9c703854 SHA512 356e3b967f1821303926334d00cb2df875d81d20bb38905ba754b4aa03644aabd561e1da2de8df2325fac50b8d02e3422f2bc4f22bdbc3fe8b32c11ded738ce2 WHIRLPOOL ffaa8943b5d21989b70384712346a6846c1db991ceca61d53041e807316d63b8997381bb5ae7595a60f1cb6729e639ecd42b8a198d9fbf3721a5df9898fc9e66
+EBUILD gnome-online-accounts-3.22.5.ebuild 2349 SHA256 7ba6d34f56e8d10e2f052075e7c189ebb29ae7d9e3c19686d777cfd4242b427c SHA512 139d7c40e5fa01a3a9e4f90f3e2a350b450ef82c13f94ac2208fd9184099a01924e26616f7a17ccce826839a254f0b02f1eab9c4b0663d8249f389e92c9c366a WHIRLPOOL 9ed1f6677e8a2f57604e34b4a621efa0b995e833fe7947fdbf3ccea06df13277c7d0a2a767fcecd23c510cbd3f6891abd63310de64aadd88bbd9ce2e1183e3a5
+EBUILD gnome-online-accounts-3.22.6-r1.ebuild 2473 SHA256 47cd2c29cd0b56bb8f6f99258f7ce1109996b4b14a517b9c8a2b00c192461ff0 SHA512 992f6003eb9fcf683a62a8f45aa63a9e2a59f3b962396a7443dad80642ede06b112caa4b8b26af6781fc5ca28ea76a22269381e94ed7bfde92fb3e40f9bb2d1c WHIRLPOOL 014204469620dedc072774584c04d807d6923f884e65c0cc320a3f7b305f90d48d06a44d9d3bd10dfb586292995d5a6c6572ef9ea4ee14c771633e34cb0e9019
+EBUILD gnome-online-accounts-3.24.3.ebuild 2473 SHA256 6ac7794c79943e543795aeba7813f9ac2581b02045a9e24a2ee778017e8100be SHA512 d4191659707cd43ccd3c843233890700fbfce1379fb4edc4d2f97d847607168d240b1d8ac82d46b3822b11f5042b8f2588a0e47ed7a9b03befe14efd2ab7480e WHIRLPOOL f961257d5244fa5b90df4a36e8931de5d48d49a33fbcb0ac42e80ec279b853800a8bbea41b0990c4ade75c4845fd172f62b815bb7dad98f05de31ab843dd2f76
+MISC ChangeLog 8528 SHA256 b4e49992d5c0f21e95fe0d96838b16885163ca5ea684b92e6ed2f4e15bf187fe SHA512 4fb5faddd15e26590d74b14fe3ec186aa5a912a6ae332766b6fbdf90006827f3557230dc757f381e21e167d2354bb62d2b6bcf6bc8ba68a9970790ea466b449b WHIRLPOOL 40077ee11250f856b21a79342b15e8992bb0177356c0a2e6011a9dcdc61fed07c7863291fb4c01cf63b2f6d9f3220ebd0102ac00c1b51bb079e500a8648c9c98
+MISC ChangeLog-2015 9567 SHA256 aaca8489a27e3f97315745e9baf0a81756e383789b4f72efb640efe128cecf3e SHA512 da224604f471b220af662ab97055dafe7ba3a183e815d7a54b4c0aae4b66e525c7e1fa886d3afaed96f38606085aed1f219fd5db04646c10d04d5ae18fba7433 WHIRLPOOL cda8948541042f5e0039cac0063d834fafcd65bafa440be1fbc1953275b46665d6725d06dab4f10802f311a0f9fd9da1d4ca9b88c3c79f64209453861242c0c9
+MISC metadata.xml 473 SHA256 9670807777cb87e84bfb63d1f2b976f042c42b8a306e4e5323e3ed9a85dff0a8 SHA512 fe0bb40a0e1962c67a0208b6c2b9603ae37966b4427b5141efa7f63163fff3eed542a58400c0ac31e508589074c80d130de56733b55c7b10270e2e89de093a03 WHIRLPOOL 5de1ba810f50ad347e72c1a5cb4daf2f70affb3944681cf9bf2b7c9b5c44128447e6640b0bd4f15108fcfccd0e14a6829a61abc5a6b5cc0ed58bd97b64ab0479
diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.5.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.5.ebuild
new file mode 100644
index 000000000000..4a28c5848389
--- /dev/null
+++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.5.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="GNOME framework for accessing online accounts"
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts"
+
+LICENSE="LGPL-2+"
+SLOT="0/1"
+IUSE="debug gnome +introspection kerberos" # telepathy"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~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.40: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.19.12:3
+ x11-libs/pango
+
+ introspection? ( >=dev-libs/gobject-introspection-0.6.2:= )
+ kerberos? (
+ app-crypt/gcr:0=[gtk]
+ 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}
+ $(vala_depend)
+ 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() {
+ gnome2_src_prepare
+ vala_src_prepare
+}
+
+src_configure() {
+ # TODO: Give users a way to set the G/FB/Windows Live secrets
+ # telepathy optional support is really a badly one, bug #494456
+ gnome2_src_configure \
+ --disable-static \
+ --enable-backend \
+ --enable-documentation \
+ --enable-exchange \
+ --enable-facebook \
+ --enable-flickr \
+ --enable-foursquare \
+ --enable-imap-smtp \
+ --enable-lastfm \
+ --enable-media-server \
+ --enable-owncloud \
+ --enable-pocket \
+ --enable-telepathy \
+ --enable-windows-live \
+ $(usex debug --enable-debug=yes ' ') \
+ $(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.22.6-r1.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.6-r1.ebuild
new file mode 100644
index 000000000000..f5e78d51ff8c
--- /dev/null
+++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.6-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="GNOME framework for accessing online accounts"
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts"
+
+LICENSE="LGPL-2+"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+IUSE="debug gnome +introspection kerberos vala" # telepathy"
+REQUIRED_USE="vala? ( introspection )"
+
+# 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.40: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.19.12:3
+ x11-libs/pango
+
+ introspection? ( >=dev-libs/gobject-introspection-0.6.2:= )
+ kerberos? (
+ app-crypt/gcr:0=[gtk]
+ 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}
+ vala? ( $(vala_depend) )
+ 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() {
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # TODO: Give users a way to set the G/FB/Windows Live secrets
+ # telepathy optional support is really a badly one, bug #494456
+ gnome2_src_configure \
+ --disable-static \
+ --enable-backend \
+ --enable-documentation \
+ --enable-exchange \
+ --enable-facebook \
+ --enable-flickr \
+ --enable-foursquare \
+ --enable-imap-smtp \
+ --enable-lastfm \
+ --enable-media-server \
+ --enable-owncloud \
+ --enable-pocket \
+ --enable-telepathy \
+ --enable-windows-live \
+ $(usex debug --enable-debug=yes ' ') \
+ $(use_enable kerberos) \
+ $(use_enable introspection) \
+ $(use_enable vala)
+ #$(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.24.3.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.24.3.ebuild
new file mode 100644
index 000000000000..f5fea7795c11
--- /dev/null
+++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.24.3.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="GNOME framework for accessing online accounts"
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts"
+
+LICENSE="LGPL-2+"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+IUSE="debug gnome +introspection kerberos vala" # telepathy"
+REQUIRED_USE="vala? ( introspection )"
+
+# 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.44: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.19.12:3
+ x11-libs/pango
+
+ introspection? ( >=dev-libs/gobject-introspection-0.6.2:= )
+ kerberos? (
+ app-crypt/gcr:0=[gtk]
+ 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}
+ vala? ( $(vala_depend) )
+ 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() {
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # TODO: Give users a way to set the G/FB/Windows Live secrets
+ # telepathy optional support is really a badly one, bug #494456
+ gnome2_src_configure \
+ --disable-static \
+ --enable-backend \
+ --enable-documentation \
+ --enable-exchange \
+ --enable-facebook \
+ --enable-flickr \
+ --enable-foursquare \
+ --enable-imap-smtp \
+ --enable-lastfm \
+ --enable-media-server \
+ --enable-owncloud \
+ --enable-pocket \
+ --enable-telepathy \
+ --enable-windows-live \
+ $(usex debug --enable-debug=yes ' ') \
+ $(use_enable kerberos) \
+ $(use_enable introspection) \
+ $(use_enable vala)
+ #$(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..009604473b86
--- /dev/null
+++ b/net-libs/gnome-online-accounts/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<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..d218bc98c13e
--- /dev/null
+++ b/net-libs/gnutls/Manifest
@@ -0,0 +1,13 @@
+DIST gnutls-3.5.12.tar.xz 7212652 SHA256 63cb39a5eaa029381df2e49a74cfb7be89fc4a592445191818ffe1e66bde57cb SHA512 8fec23e7e494a2e15e0f938115cae1ba3fee952d634db387f983b01096f68ca4313b23bc4c439d3c7fdd07c861eac4913a7c2343c8704961588ae195886ec90c WHIRLPOOL f7309aa89e75ed75371893ba4e4ac89f9f8bc7a61ef10ae4c4986aec290ae2dc5108cd3cc6463af6700ddab3754c6fcbd10ac95d3c40c4549cfdf6b3289f8a72
+DIST gnutls-3.5.13.tar.xz 7226468 SHA256 79f5480ad198dad5bc78e075f4a40c4a315a1b2072666919d2d05a08aec13096 SHA512 e98f23a589042f879936c3f8b474535e695fb7dd68a9e81323668c013241f765c2d3af6c6a072ecf867acc1e551ec46e15bb842144d3a06bdd5d2f4fc3d828a7 WHIRLPOOL 89439e7adba634698642a247c418569c0ea6ca6155bfb5dce17c8ed69d2506a37d9ad793122aaaec92adffefa75cb23a857c49ef722c5cf506700fe0c34b6028
+DIST gnutls-3.5.14.tar.xz 7228200 SHA256 4aa12dec92f42a0434df794aca3d02f6f2a35b47b48c01252de65f355c051bda SHA512 c55384bdf835c0f7715bfb10b7fa0ac30d26d53ffa5f32af78844cf27985407eed034af77413fb2e94e3a0c0a5fb0597d66f5dbbbe72e5e0658bfeeafa6f7829 WHIRLPOOL c6ae68898983184d00dde78a38a3398b677541ae6316a25544668f183423da1f6c3c7f3709f896f6c135e6907d832d6980f102d77b40758f9cf81c25f68cb086
+DIST gnutls-3.5.15.tar.xz 7238928 SHA256 046081108b8b1fe455a13a4c5a4eaa0368e185b678f1670fe09a11a2d7ecfad5 SHA512 046cf3adf6cc3d38fd431f2ff28ddabb65f3c13379516d105316a04c7128be89c5f7ed3df6a034fc06e9ab2e154c2cde2f5cbe8530a1e58cc4b4fb72e158134b WHIRLPOOL 811cca49bdd144107b6c25de31b3209694a8590107953fc3c4ecafddba48339e98cf1dc8e489addb04f0ac525411e96e505fd8edb342dca4e02f97dde3f26ffe
+DIST gnutls-3.6.0.tar.xz 8024972 SHA256 2ab9e3c0131fcd9142382f37ba9c6d20022b76cba83560cbcaa8e4002d71fb72 SHA512 e5f36d7e8d64e8432098e30549c321745d3605eeb85aba2a04bfa92146ca771961f0e2f3682bcae36be5b6095acd25996104a4213ce7b3466d61332a5188dc03 WHIRLPOOL e8e479d7a0adc14c969b7364f58505f68ed92054fb8d8ba862f59d9ab64578e83ae02309ec9b5da2e63fc5dec799d86e434abc32394dbf414dc46bf46b15b0c8
+EBUILD gnutls-3.5.12.ebuild 4241 SHA256 7cc2f99c8c204729d41c215edfc3694bf7c1c867a6299a294c733efa54ef524a SHA512 4539b39dd14e81432d005d6e008a44cd86b85db93cc809eb11ec213060a85fa84bd2d3e39728b421f8c506b4075dede2011618d1ee8f7b15870aa2cc8d2b63db WHIRLPOOL 2e57007bec6aaf2c0fab154062a1c1c0149bdce8822ff7baf27c2501c86ef736bcce558e7fce3a088d8d1b6776b23ea39e5ace4ab5806a625d7b7aed3305d249
+EBUILD gnutls-3.5.13.ebuild 4240 SHA256 5ced6157f89a13698570d9b81a5928d19e474d99119f9a0c222844dee05c50a2 SHA512 cbfe9e36d49a1ca28bd9ea9912c5593359f885cec4d6c10cc3ba30bf791ff355c368a9ad3e46163d34c32e2583667291e01ba33b40eda3deb5c44e5b901cf336 WHIRLPOOL e5594b1deec3fd384a5589143a0b7f8c82f3b458a3c1d07fd0f8e39c843f1fa8b95521534bee265f863e19c654203baccd274c23f53ac440b3fb7ab82712e7b3
+EBUILD gnutls-3.5.14.ebuild 4248 SHA256 b49907c8f76b45f5bb41090a06ff12ce2a6b9f84f95b94f192938b050ecbf04d SHA512 c253bf6aaf6fe42d8dcc50327fde08d50dd19b07ecdbe2fd62d4918061ffded044140c95b5473dfb064b7e57d77cff889b86417720a8c42d9f981218d45654da WHIRLPOOL eece35197be71f02fbb954db0b35d5ef270927b2b31eb100f9ceb7f1430da5d293332baebc842fd61b99a1c480d2134a393d75c0faed6e25be78eeff1317afa7
+EBUILD gnutls-3.5.15.ebuild 4348 SHA256 60325da7c14160c32e04a9debd687c857ec204b66f62067b56c8b31b3d7b7f8f SHA512 9937ce68b1e6322a60ad8e03b1e75dbdce825444aa879e563a77002040ac0d26b6b98739ac5b1f70827d93621f873e1f822cf5bc58f1766a7d70207781e75b83 WHIRLPOOL a71d1bfc14f273791af793de045e68810bbfd8c4c0ef0b0d734efee7e8ff283aa87996d91ec97a9331461dca1b7f331db2283fd1136e6ed57640852c83d3f53b
+EBUILD gnutls-3.6.0.ebuild 3965 SHA256 9711114c2b419436ccfa3fae4044802e22fa35471bd9285cfc3408f36be50989 SHA512 87f609adfed0b553b68dac75a4a89a17b6e51a28be4ebb8a4ba810bfa1f984ee6d57a5f0a7c91f32a5af3c0e7548b7abe9ec471352b905227a8897ffbc435f29 WHIRLPOOL 5466e3f81ca9c0ff730274225c38c36d0addb985b2e3c3cf27522cf71d7ae2602039398b4f695185391f77233cd6045edb9cf371988b6d48cb3509fc3f1fcafb
+MISC ChangeLog 17487 SHA256 745581f186ce927f027e522a8526063db87e0f641ee11341812bb5f63f9b33f4 SHA512 c002d5c6d3dbfb1b0d6fb98971e1a0863984504f8f8dd6a3e14e14b8345e3e1707ae5048cdddd84417a527c8c654f5d947d4dd5d722f98b21349a1ec199c03e1 WHIRLPOOL 1497e5ef4f12af6e20ab11ce5fedd3b90e590886d423e5cf2aeb3839ce1b5a0077370b13683c2c17f921524e8e4e988a4c72cbfd757148097bed92ce1ef6f803
+MISC ChangeLog-2015 82624 SHA256 4fe397e159cdb07634ca978c94cc0b39eca917b0ba6ba076d8a604a493048226 SHA512 5e51b3daec255369511ffdab025e38c8b0328981534f78ee9b878ce53b101c2a66227b6990743010dc842fbf283748227a39edee290ddcb0c9caabb783c248c1 WHIRLPOOL 7eac80b27265b5035b09fc24c318602153f84bbaa242b5a490380fa2134a5bbe2ba4f946d5d34057c7f99b4c6a1a8fcbb2e53026418347ffda04d6477cd95be7
+MISC metadata.xml 1258 SHA256 0f335e67df2ab489b81c80fb737d5fb1b25dae656584918b6215c433c0daf9ad SHA512 ac9c2dcecc76ae124eb4c208ba23c75129a67beb5ea32b0ef6bcf2797c5b87229d72cb16c3d84bbdc930226ab80fd9e289fecc718ee9ea853ccd8e558d630d73 WHIRLPOOL 8b88a362d1d836661449dd281af3eadb54f60e7174783e7930beac53b1f2a811533550ad48ca57c2f0f9dadbf8e273419feddadb19ee4829eb956300bfa1a9e9
diff --git a/net-libs/gnutls/gnutls-3.5.12.ebuild b/net-libs/gnutls/gnutls-3.5.12.ebuild
new file mode 100644
index 000000000000..3cc5187823c8
--- /dev/null
+++ b/net-libs/gnutls/gnutls-3.5.12.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit libtool ltprune 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"
+
+LICENSE="GPL-3 LGPL-2.1"
+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 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
+IUSE="+cxx dane doc examples guile +idn nls openpgp +openssl pkcs11 sslv2 sslv3 seccomp static-libs test test-full +tls-heartbeat tools valgrind zlib ${IUSE_LINGUAS// / linguas_}"
+
+REQUIRED_USE="
+ test-full? ( guile pkcs11 openpgp openssl idn seccomp tools zlib )"
+
+# NOTICE: sys-devel/autogen is required at runtime as we
+# use system libopts
+RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
+ dev-libs/libunistring:=[${MULTILIB_USEDEP}]
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
+ >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
+ tools? ( sys-devel/autogen )
+ 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}] )
+ idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ doc? ( dev-util/gtk-doc )
+ nls? ( sys-devel/gettext )
+ valgrind? ( dev-util/valgrind )
+ test? (
+ seccomp? ( sys-libs/libseccomp )
+ )
+ test-full? (
+ guile? ( >=dev-scheme/guile-2 )
+ app-crypt/dieharder
+ app-misc/datefudge
+ dev-libs/softhsm:2[-bindist]
+ net-dialup/ppp
+ net-misc/socat
+ )"
+
+DOCS=(
+ README.md
+ doc/certtool.cfg
+)
+
+HTML_DOCS=()
+
+pkg_setup() {
+ # bug#520818
+ export TZ=UTC
+
+ use doc && HTML_DOCS+=(
+ doc/gnutls.html
+ )
+}
+
+src_prepare() {
+ default
+
+ # 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
+
+ # Use sane .so versioning on FreeBSD.
+ elibtoolize
+}
+
+multilib_src_configure() {
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
+
+ # remove magic of library detection
+ # bug#438222
+ local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
+
+ # 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 \
+ --without-included-libtasn1 \
+ $(use_enable cxx) \
+ $(use_enable dane libdane) \
+ $(multilib_native_enable manpages) \
+ $(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 test tests) \
+ $(multilib_native_use_enable seccomp seccomp-tests) \
+ $(multilib_native_use_enable valgrind valgrind-tests) \
+ $(multilib_native_use_enable test-full full-test-suite) \
+ $(use_enable nls) \
+ $(use_enable openpgp openpgp-authentication) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable tls-heartbeat heartbeat-support) \
+ $(use_enable sslv2 ssl2-support) \
+ $(use_enable sslv3 ssl3-support) \
+ $(use_enable static-libs static) \
+ $(use_with pkcs11 p11-kit) \
+ $(use_with zlib) \
+ $(use_with idn) \
+ $(use_with idn libidn2) \
+ --without-tpm \
+ --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
+ "${libconf[@]}" \
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --all
+
+ if use examples; then
+ docinto examples
+ dodoc doc/examples/*.c
+ fi
+}
diff --git a/net-libs/gnutls/gnutls-3.5.13.ebuild b/net-libs/gnutls/gnutls-3.5.13.ebuild
new file mode 100644
index 000000000000..096f0e9dbb4f
--- /dev/null
+++ b/net-libs/gnutls/gnutls-3.5.13.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit libtool ltprune 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"
+
+LICENSE="GPL-3 LGPL-2.1"
+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 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
+IUSE="+cxx dane doc examples guile +idn nls openpgp +openssl pkcs11 sslv2 sslv3 seccomp static-libs test test-full +tls-heartbeat tools valgrind zlib ${IUSE_LINGUAS// / linguas_}"
+
+REQUIRED_USE="
+ test-full? ( guile pkcs11 openpgp openssl idn seccomp tools zlib )"
+
+# NOTICE: sys-devel/autogen is required at runtime as we
+# use system libopts
+RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
+ dev-libs/libunistring:=[${MULTILIB_USEDEP}]
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
+ >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
+ tools? ( sys-devel/autogen )
+ 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}] )
+ idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ doc? ( dev-util/gtk-doc )
+ nls? ( sys-devel/gettext )
+ valgrind? ( dev-util/valgrind )
+ test? (
+ seccomp? ( sys-libs/libseccomp )
+ )
+ test-full? (
+ guile? ( >=dev-scheme/guile-2 )
+ app-crypt/dieharder
+ app-misc/datefudge
+ dev-libs/softhsm:2[-bindist]
+ net-dialup/ppp
+ net-misc/socat
+ )"
+
+DOCS=(
+ README.md
+ doc/certtool.cfg
+)
+
+HTML_DOCS=()
+
+pkg_setup() {
+ # bug#520818
+ export TZ=UTC
+
+ use doc && HTML_DOCS+=(
+ doc/gnutls.html
+ )
+}
+
+src_prepare() {
+ default
+
+ # 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
+
+ # Use sane .so versioning on FreeBSD.
+ elibtoolize
+}
+
+multilib_src_configure() {
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
+
+ # remove magic of library detection
+ # bug#438222
+ local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
+
+ # 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 \
+ --without-included-libtasn1 \
+ $(use_enable cxx) \
+ $(use_enable dane libdane) \
+ $(multilib_native_enable manpages) \
+ $(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 test tests) \
+ $(multilib_native_use_enable seccomp seccomp-tests) \
+ $(multilib_native_use_enable valgrind valgrind-tests) \
+ $(multilib_native_use_enable test-full full-test-suite) \
+ $(use_enable nls) \
+ $(use_enable openpgp openpgp-authentication) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable tls-heartbeat heartbeat-support) \
+ $(use_enable sslv2 ssl2-support) \
+ $(use_enable sslv3 ssl3-support) \
+ $(use_enable static-libs static) \
+ $(use_with pkcs11 p11-kit) \
+ $(use_with zlib) \
+ $(use_with idn) \
+ $(use_with idn libidn2) \
+ --without-tpm \
+ --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
+ "${libconf[@]}" \
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --all
+
+ if use examples; then
+ docinto examples
+ dodoc doc/examples/*.c
+ fi
+}
diff --git a/net-libs/gnutls/gnutls-3.5.14.ebuild b/net-libs/gnutls/gnutls-3.5.14.ebuild
new file mode 100644
index 000000000000..050387e4052d
--- /dev/null
+++ b/net-libs/gnutls/gnutls-3.5.14.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit libtool ltprune 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"
+
+LICENSE="GPL-3 LGPL-2.1"
+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 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
+IUSE="+cxx dane doc examples guile +idn nls openpgp +openssl pkcs11 sslv2 sslv3 seccomp static-libs test test-full +tls-heartbeat tools valgrind zlib ${IUSE_LINGUAS// / linguas_}"
+
+REQUIRED_USE="
+ test-full? ( guile pkcs11 openpgp openssl idn seccomp tools zlib )"
+
+# NOTICE: sys-devel/autogen is required at runtime as we
+# use system libopts
+RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
+ dev-libs/libunistring:=[${MULTILIB_USEDEP}]
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
+ >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
+ tools? ( sys-devel/autogen )
+ 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}] )
+ idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ doc? ( dev-util/gtk-doc )
+ nls? ( sys-devel/gettext )
+ valgrind? ( dev-util/valgrind )
+ test? (
+ seccomp? ( sys-libs/libseccomp )
+ )
+ test-full? (
+ guile? ( >=dev-scheme/guile-2 )
+ app-crypt/dieharder
+ app-misc/datefudge
+ dev-libs/softhsm:2[-bindist]
+ net-dialup/ppp
+ net-misc/socat
+ )"
+
+DOCS=(
+ README.md
+ doc/certtool.cfg
+)
+
+HTML_DOCS=()
+
+pkg_setup() {
+ # bug#520818
+ export TZ=UTC
+
+ use doc && HTML_DOCS+=(
+ doc/gnutls.html
+ )
+}
+
+src_prepare() {
+ default
+
+ # 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
+
+ # Use sane .so versioning on FreeBSD.
+ elibtoolize
+}
+
+multilib_src_configure() {
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
+
+ # remove magic of library detection
+ # bug#438222
+ local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
+
+ # 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 \
+ --without-included-libtasn1 \
+ $(use_enable cxx) \
+ $(use_enable dane libdane) \
+ $(multilib_native_enable manpages) \
+ $(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 test tests) \
+ $(multilib_native_use_enable seccomp seccomp-tests) \
+ $(multilib_native_use_enable valgrind valgrind-tests) \
+ $(multilib_native_use_enable test-full full-test-suite) \
+ $(use_enable nls) \
+ $(use_enable openpgp openpgp-authentication) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable tls-heartbeat heartbeat-support) \
+ $(use_enable sslv2 ssl2-support) \
+ $(use_enable sslv3 ssl3-support) \
+ $(use_enable static-libs static) \
+ $(use_with pkcs11 p11-kit) \
+ $(use_with zlib) \
+ $(use_with idn) \
+ $(use_with idn libidn2) \
+ --without-tpm \
+ --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
+ "${libconf[@]}" \
+ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --all
+
+ if use examples; then
+ docinto examples
+ dodoc doc/examples/*.c
+ fi
+}
diff --git a/net-libs/gnutls/gnutls-3.5.15.ebuild b/net-libs/gnutls/gnutls-3.5.15.ebuild
new file mode 100644
index 000000000000..f4f614daebed
--- /dev/null
+++ b/net-libs/gnutls/gnutls-3.5.15.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit libtool ltprune 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"
+
+LICENSE="GPL-3 LGPL-2.1"
+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 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
+IUSE="+cxx dane doc examples guile +idn nls openpgp +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind zlib ${IUSE_LINGUAS// / linguas_}"
+
+REQUIRED_USE="
+ test-full? ( guile pkcs11 openpgp openssl idn seccomp tools zlib )"
+
+# NOTICE: sys-devel/autogen is required at runtime as we
+# use system libopts
+RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
+ dev-libs/libunistring:=[${MULTILIB_USEDEP}]
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
+ >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
+ tools? ( sys-devel/autogen )
+ 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}] )
+ idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ doc? ( dev-util/gtk-doc )
+ nls? ( sys-devel/gettext )
+ valgrind? ( dev-util/valgrind )
+ test? (
+ seccomp? ( sys-libs/libseccomp )
+ )
+ test-full? (
+ guile? ( >=dev-scheme/guile-2 )
+ app-crypt/dieharder
+ app-misc/datefudge
+ dev-libs/softhsm:2[-bindist]
+ net-dialup/ppp
+ net-misc/socat
+ )"
+
+DOCS=(
+ README.md
+ doc/certtool.cfg
+)
+
+HTML_DOCS=()
+
+pkg_setup() {
+ # bug#520818
+ export TZ=UTC
+
+ use doc && HTML_DOCS+=(
+ doc/gnutls.html
+ )
+}
+
+src_prepare() {
+ default
+
+ # 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
+
+ # Use sane .so versioning on FreeBSD.
+ elibtoolize
+}
+
+multilib_src_configure() {
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
+
+ # remove magic of library detection
+ # bug#438222
+ local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
+
+ # TPM needs to be tested before being enabled
+ libconf+=( --without-tpm )
+
+ # 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
+ [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
+
+ # Cygwin as does not understand these asm files at all
+ [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
+
+ ECONF_SOURCE=${S} econf \
+ $(multilib_native_enable manpages) \
+ $(multilib_native_use_enable doc gtk-doc) \
+ $(multilib_native_use_enable doc) \
+ $(multilib_native_use_enable guile) \
+ $(multilib_native_use_enable seccomp seccomp-tests) \
+ $(multilib_native_use_enable test tests) \
+ $(multilib_native_use_enable test-full full-test-suite) \
+ $(multilib_native_use_enable tools) \
+ $(multilib_native_use_enable valgrind valgrind-tests) \
+ $(use_enable cxx) \
+ $(use_enable dane libdane) \
+ $(use_enable nls) \
+ $(use_enable openpgp openpgp-authentication) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable sslv2 ssl2-support) \
+ $(use_enable sslv3 ssl3-support) \
+ $(use_enable static-libs static) \
+ $(use_enable tls-heartbeat heartbeat-support) \
+ $(use_with idn libidn2) \
+ $(use_with idn) \
+ $(use_with pkcs11 p11-kit) \
+ $(use_with zlib) \
+ --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
+ --without-included-libtasn1 \
+ "${libconf[@]}"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --all
+
+ if use examples; then
+ docinto examples
+ dodoc doc/examples/*.c
+ fi
+}
diff --git a/net-libs/gnutls/gnutls-3.6.0.ebuild b/net-libs/gnutls/gnutls-3.6.0.ebuild
new file mode 100644
index 000000000000..c8182318d3df
--- /dev/null
+++ b/net-libs/gnutls/gnutls-3.6.0.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit libtool ltprune 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"
+
+LICENSE="GPL-3 LGPL-2.1"
+SLOT="0/30" # libgnutls.so number
+KEYWORDS=""
+IUSE_LINGUAS=" en cs de fi fr it ms nl pl sv uk vi zh_CN"
+IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind ${IUSE_LINGUAS// / linguas_}"
+
+REQUIRED_USE="
+ test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )"
+
+# NOTICE: sys-devel/autogen is required at runtime as we
+# use system libopts
+RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
+ dev-libs/libunistring:=[${MULTILIB_USEDEP}]
+ >=dev-libs/nettle-3.1:=[gmp,${MULTILIB_USEDEP}]
+ >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
+ tools? ( sys-devel/autogen )
+ 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}] )
+ idn? ( >=net-dns/libidn2-0.16-r1[${MULTILIB_USEDEP}] )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ doc? ( dev-util/gtk-doc )
+ nls? ( sys-devel/gettext )
+ valgrind? ( dev-util/valgrind )
+ test? (
+ seccomp? ( sys-libs/libseccomp )
+ )
+ test-full? (
+ guile? ( >=dev-scheme/guile-2 )
+ app-crypt/dieharder
+ app-misc/datefudge
+ dev-libs/softhsm:2[-bindist]
+ net-dialup/ppp
+ net-misc/socat
+ )"
+
+DOCS=(
+ README.md
+ doc/certtool.cfg
+)
+
+HTML_DOCS=()
+
+pkg_setup() {
+ # bug#520818
+ export TZ=UTC
+
+ use doc && HTML_DOCS+=(
+ doc/gnutls.html
+ )
+}
+
+src_prepare() {
+ default
+
+ # 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
+
+ # Use sane .so versioning on FreeBSD.
+ elibtoolize
+}
+
+multilib_src_configure() {
+ LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
+
+ # remove magic of library detection
+ # bug#438222
+ local libconf=($("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g'))
+
+ # TPM needs to be tested before being enabled
+ libconf+=( --without-tpm )
+
+ # 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
+ [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
+
+ # Cygwin as does not understand these asm files at all
+ [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
+
+ ECONF_SOURCE=${S} econf \
+ $(multilib_native_enable manpages) \
+ $(multilib_native_use_enable doc gtk-doc) \
+ $(multilib_native_use_enable doc) \
+ $(multilib_native_use_enable guile) \
+ $(multilib_native_use_enable seccomp seccomp-tests) \
+ $(multilib_native_use_enable test tests) \
+ $(multilib_native_use_enable test-full full-test-suite) \
+ $(multilib_native_use_enable tools) \
+ $(multilib_native_use_enable valgrind valgrind-tests) \
+ $(use_enable cxx) \
+ $(use_enable dane libdane) \
+ $(use_enable nls) \
+ $(use_enable openssl openssl-compatibility) \
+ $(use_enable sslv2 ssl2-support) \
+ $(use_enable sslv3 ssl3-support) \
+ $(use_enable static-libs static) \
+ $(use_enable tls-heartbeat heartbeat-support) \
+ $(use_with idn) \
+ $(use_with pkcs11 p11-kit) \
+ --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt" \
+ --without-included-libtasn1 \
+ "${libconf[@]}"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --all
+
+ 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..9f796b4b07fc
--- /dev/null
+++ b/net-libs/gnutls/metadata.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>crypto@gentoo.org</email>
+ <name>Crypto</name>
+ </maintainer>
+ <use>
+ <flag name="dane">
+ Build libgnutls-dane, implementing DNS-based Authentication of
+ Named Entities. Requires <pkg>net-dns/unbound</pkg>
+ </flag>
+ <flag name="openpgp">
+ Enable openpgp support
+ </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>
+ <flag name="tls-heartbeat">
+ Enable the Heartbeat Extension in TLS and DTLS
+ </flag>
+ <flag name="sslv2">
+ Support for the old/insecure SSLv2 protocol
+ </flag>
+ <flag name="sslv3">
+ Support for the old/insecure SSLv3 protocol
+ </flag>
+ <flag name="test-full">
+ Enable full test mode
+ </flag>
+ <flag name="valgrind">
+ Enable usage of <pkg>dev-util/valgrind</pkg> in debug
+ </flag>
+ </use>
+ <slots>
+ <subslots>Reflect ABI compatibility of libgnutls.so</subslots>
+ </slots>
+</pkgmetadata>
diff --git a/net-libs/gsnmp/Manifest b/net-libs/gsnmp/Manifest
new file mode 100644
index 000000000000..52b3bd246111
--- /dev/null
+++ b/net-libs/gsnmp/Manifest
@@ -0,0 +1,8 @@
+AUX gsnmp-0.3.0-g_access.patch 264 SHA256 fb4547325c4f7b35b9fcbb336964a42705540754bc7337c79822276e39dfa3a4 SHA512 2254bfb7d30c28d0e099bf9f2ee02152f2eb948b14ffc194631f4f3da42914da3644635420f9ddbea757b21b980ed9eb5523158a31eb7c458966ebe9d86aa68e WHIRLPOOL 5a3a10c3d851acc1bc1f09f70bc4be44389dd2d0e53df54f7415be74cc3f93acc4f83c0e3ad9ada613630948d86d37c516c20f063ec3a30768ca77564fdf516b
+AUX gsnmp-0.3.0-pkg_config.patch 710 SHA256 a2e9b500b351dd2cdba05d94a183ed0e75ab753fb15c7ebb54aae450eea9bdc0 SHA512 95c9413863152970705273a54e6ecd51a071cd7bba8ce0d1614dd1bf677f11b9f948caf02de450e261a50cf65d468bc7f11e300ccea9cd21a0e41a659616e55f WHIRLPOOL f64015cf70dc30bc79c90106272afc4cb44eed0b8fb5347a7861282cba920c0ea19f5bfad8cb9b003fb532b9c008e43fc4fd4861b9b1319887a4c02c7ee57f46
+AUX gsnmp-0.3.0-underquoting.patch 181 SHA256 a45bff5f76d644d3ae6135c788ece810b0db7c5ae35e95730b7e31cf0b3bb9bc SHA512 5d77d7c36e79dfc78499f83957a0e40628fc67011c15f44f6ae8c8c731d1429acdd95a43c6a39e0353d1b0ce7702fb9c1facbf51800d11141e408e815d91ed69 WHIRLPOOL e31774448cef11f6a7b85dec2c89948a94712191c84fbaaa53054b268fe8ff871e1bcfbb9e2221a40619463fafc613a104a77cb0ac94463485855f9a6f8eb3d0
+DIST gsnmp-0.3.0.tar.gz 423137 SHA256 e428b61071b8ba2971fc8737ed2987210b04a71ffde307900df12c06a0bed0f9 SHA512 dcba2eb5ae31704fe6dc3e0b98f3032666b7b2be1efdff0f60a3cf4d0e0c3384563d72e5289a8d10c447f00da73f646a1963ffe08b46c7bc165972ac1b07c8b1 WHIRLPOOL 1ada5531cf66c623f9d1c32ecc5f60cd6f86c8cd8dc2cf75b1bf23be1369ee0f085e3dd98e6495cb85c47a2a8f4f40a414230c96d6f9161fc592841323554af5
+EBUILD gsnmp-0.3.0.ebuild 785 SHA256 14e48497a9629c9e634eabbcf32c1e74a179d43ded2f7b6ad830825f8ad16f73 SHA512 efb513c20efcd56fff191a39a0d14e68dc086ed0f94a91c8cf0cd6258c4e1fe13cadf4c89133e2b77083a3d2c5a71c5246e3ec5360f311eeabe50561ab91f7be WHIRLPOOL 8ad89449336dcb687e03b0fbbe84df7ea7ebeb9b477ac15af258ce0b9ac4e0d8bf49ab8fd7362ecd0ffc254efeeab755bf26d1ebcc32b3684690914b29fef383
+MISC ChangeLog 2927 SHA256 416f7f1dfd134bbb1a39425aa29b3b3294382394fa3038524a239c485943d82e SHA512 e23ba4deb1014b983e7250a65c500a7e6cd1e460626b15b92780e53ea67bd23de715f013974df89a7a40ef855eea0a313ba9c9b2ed92b7bb7d89372fd9589ff6 WHIRLPOOL 12c25853718ae67fd4b0c69f884f4ad47e03a3992c4a769d55d4d6fd9d4347a2fa1ef27944e9baa281a813a668e5aae63ad236837bd9d7fe634d18afdd70d24b
+MISC ChangeLog-2015 1531 SHA256 e1ea4da64b7bcce69856c9324ebf617d92b05f8596661278382a92029ed246a6 SHA512 ad0c7a84e286ea406fe7b66ea21d3a6b313b6416ed627be694b8ec53a46dce837f09d0102e1e7d3f49853ac666f8f558bb567c40c57ae1edfdafc6fd73f593fa WHIRLPOOL b3cd5751a206af2c621606e2278c981a102d3b19f7761fea5aaa11101072ff91544bd3c46cb147cbb01bdf91d68f13b7dd14c4c51ec77aabc1f4e8382882cab4
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
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..0adc810d0566
--- /dev/null
+++ b/net-libs/gsnmp/gsnmp-0.3.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..74c2baebb4ec
--- /dev/null
+++ b/net-libs/gsnmp/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/gsoap/Manifest b/net-libs/gsoap/Manifest
new file mode 100644
index 000000000000..446f2ea09d9d
--- /dev/null
+++ b/net-libs/gsoap/Manifest
@@ -0,0 +1,14 @@
+AUX gsoap-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch 614 SHA256 5964ea1b815bc5382cabc6f1235fd0a4c4c313e07d1d4452eecde0a04c9fda40 SHA512 7a63d83db669ea0eba5dd43fb7a65e8a8b6bf6d397bf3884ab84eb5661f2b4fb0f19a9aead2851772d3d84e6b2ec470b67a2589f82fa28f7a27cb9b59d7890d8 WHIRLPOOL 8ccc13b32b1cd5c37e8863429039a7cf8f60b369469226ceef4a9f0a0d398fee0512d6fc8445f0519c66ca778847e6e96827cd4141aabc29457487388cd7c0f3
+AUX gsoap-2.7.40-shared_libs.patch 6866 SHA256 f660f40a0d4fcf85aaa58205e6740685d27a018d0aa09bb09fe205e28b3e6698 SHA512 289c09f08d5881232fe169d37a0a76b58f8ec823305dd24f62b4cc04d7d1801be5b475ccd87c1f4ec3779c7972cb962a8a196d80e5fff91755d9b76bae0ac941 WHIRLPOOL 8793e69c5b564656ba5bb9ecd81157bdfd6d2cb1752813162ba69fa3e07cf5df653b33268b02660d82c729bbb48eaa6b2e37079b9bd852dc9003ff707d6468ab
+AUX gsoap-2.8.52-shared_libs.patch 6582 SHA256 3512d1822e5e3383270f900509095ab73f97fcdff207838d7b220066bc4dcc52 SHA512 7ddbd3c2597892357da0ced383b2286e057e5e3c44eec3fd96b2ecbb4759bb5624c047e77482c495d46796e20d0e587e637f7b3a0ca3a05ceeae40e63fd5049c WHIRLPOOL a4f24de6153aa1071c4e04d16994603db1fdde99694d11f4f07f49b50af4d23aa92f3a7f9684bc184550b928cb8c9a74ad848519d116e4e30919e6f771e91853
+DIST gsoap_2.8.40.zip 36317175 SHA256 54ef56d9c55a6a7a00ae57f8cb0b3266af1b26e623070be2ef20833626157f77 SHA512 fc26899e780a7d797544f21aa7beaabc6c1507b7097c4a229a641e4be763733a40e96ce0d5181024eae19653de9513a5b35d51c8b12e85078423e30d0b898a6f WHIRLPOOL 6f795590a5b1e36d796200e3669b3a2aa45c016aa3acaae6291c09543422530a12e977a159a2f892b328cd7813633f41966432e75fd36268bfe4c6d9d1bb6fbf
+DIST gsoap_2.8.51.zip 34505931 SHA256 3e7bb24a9e492f5cb86daca34054c9787152f1d7b70add36b789d03816d5ffa1 SHA512 491e31ce6be02c577b6184335672a0805e2287418a7e26d9b0f009aab8af462ddef7d7a1893dc867db5362c5f2a1e0022d0a45865d81e43286ce16c649da6910 WHIRLPOOL 78bf9dd3c20e3a7683e20de263c1f608e69039ae505533dc7695dd1b0031d222ea99ca3991e8b046af66943215a7ce4c4db3a0efafc6933d74907dda71815d05
+DIST gsoap_2.8.52.zip 34464252 SHA256 96ad6ce7be175742e693b19e3d72e0f04752a70845c7e0ad539cb882f2e7800a SHA512 ec08b8f49651e51754f5a404db83e1fb9d636bf84646cb9783be4aaf8c1b60adfb6f25722b2bdd55fb6812a9943296b1e9569e3b33df50d2d93a7a4494d13d55 WHIRLPOOL b2caa3fad3c33b3bb86a145fdec37da7a2be2e0dc2f40c9fa6b5352c1657190464a78c0ce9d047de03a5a5a9ff7701354ac2e1c938bd9a56fe0c3731d397fc4c
+DIST gsoap_2.8.54.zip 34520149 SHA256 158ed9c674941c382850e8e96ac9b0174f4e7aacb25794349bd07f52261921c8 SHA512 59e59dbcb0c7b6f13771c0cd26412941da0a15e05c539dcfaa7deecd83e15b50656454daf6c80eefb85e2d8830748a4fd48970e6de68fd1e2b96ce9a7c0d1874 WHIRLPOOL d49c92051c27b1db0a4e07c2767c2e62b1524b65a3f3198d00e4b7ff19105e5afcd87bc2616d0ccd5cea8534da9f212c54ba9ca9fd6a8bfc9ae90cf1c64b6dda
+EBUILD gsoap-2.8.40.ebuild 1529 SHA256 fc4fb050208cbd5a618cc29565f476ba226c3fd90728f99b55b3d874dba08331 SHA512 bfb8cf32d5b1b9d9ae29c24322f5f60515be953a057a0e1d3a12789f5d3f6d9cda8ae406c4a099de96a935811f310ea6bc9280d9b5ea410872fd5400f2f93353 WHIRLPOOL 6adc70e3c8ddd4cc2f2929a54d375d313871dc07aff982a5b769468a0de810b94622bdb2dabef14ec59c86601301ec3771074bc79b3a1e200ddb7e022c90dce5
+EBUILD gsoap-2.8.51.ebuild 1636 SHA256 9bb47a4f68bdbfb8ab9a82c5367093bd6934d7de6abc430f21246fe0e432ef4f SHA512 b7dd63458a2ba950a066cb2ad498bd0c7def67b0bde38e90a20ab89bc71a17e8d39f7edb27cd21d721a0646cb351b26aed241b624e1718fb565e1d71d51d3b36 WHIRLPOOL cead46dfe5473528145b2dd531790d8263808ed7055829926181f70e91b9bd2fa0861229818637a5364916959e2a5f25bd7a28559d5e262bcf0e222ed1294fbb
+EBUILD gsoap-2.8.52.ebuild 1635 SHA256 ec13aac044472dc26cea7dc039bad5f73625dfa2da39cb2ad0d9b8bf25aa84b3 SHA512 9b7161fb76128c0ac50c29b8f3675e423bd24f5ca3e28d6923ab833594a8c13fe8fabc431ae7c9a00dd25f1222f6a50d7b50c411dae2d7e02dc5fb67e59fc4e2 WHIRLPOOL 77516230cca02a0c6fff69119b936bcb453e567df1d9fa4cf8b5662abc2c9f204369c907dfdab5c4f815c0a8e03452a9852677e30c61a08749c3618a1fd2dd81
+EBUILD gsoap-2.8.54.ebuild 1635 SHA256 ec13aac044472dc26cea7dc039bad5f73625dfa2da39cb2ad0d9b8bf25aa84b3 SHA512 9b7161fb76128c0ac50c29b8f3675e423bd24f5ca3e28d6923ab833594a8c13fe8fabc431ae7c9a00dd25f1222f6a50d7b50c411dae2d7e02dc5fb67e59fc4e2 WHIRLPOOL 77516230cca02a0c6fff69119b936bcb453e567df1d9fa4cf8b5662abc2c9f204369c907dfdab5c4f815c0a8e03452a9852677e30c61a08749c3618a1fd2dd81
+MISC ChangeLog 11300 SHA256 1887249abc74d566bed0e4afed70deecee7da371f8bb73acf1bf0ed52bc73dff SHA512 3239e7d01e011690af462d418a42ca526d94092df1182b73f4e7e6132da49c5638094247defa6350d409b195bda45e737efbb98f939a8589512a1047a43986e9 WHIRLPOOL 21d3081091f33bf9a632a1c7d9610df77c28833cb36469302ec0934dc0ea924163351292ea10585b0ee695e0261e73c3aea0415be263f48946d8bf09f4e88636
+MISC ChangeLog-2015 5692 SHA256 a7ad026af447b7bbcd0a6b1da405bed660e1099819f70aaddc8a4023a5f107a2 SHA512 b34492777c404e094538ec31c3d9e79962c6d3df42841b74b3966407bc39ce6b6c558682084767dab0dbb4ef292ffaa3c71b296e675b89c264efc94768dc5d7c WHIRLPOOL 3a07362e605d5fa7288031749bc9321211effdaa9a1d52890d0b4968826d99f3b0a0fc472301a682ac235bfb662c9031553cbe49bea2c1c11e90d981f18134e8
+MISC metadata.xml 451 SHA256 a1130744c16abdf2ebaaaa25f295001aebeaac9a0dcbc6bb8f2b2bb12a78ec60 SHA512 ec9e11f668d654db228da6e81da0ac048df98a45f35ec3bf73b7f6b6c050c99f7f064c264e3dc79fa07fc7a713f715ad8836eef6a4984e3786be52c448822ba1 WHIRLPOOL aa14b879511833b108a04312f6def5cb70ee9c323a5c398d84aa9a9c1c449bda11ed7dea8eef3e1c07154ef3b024490b197ba6256a9d64c3886974e7a725eda7
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/files/gsoap-2.7.40-shared_libs.patch b/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch
new file mode 100644
index 000000000000..829e0e45a58c
--- /dev/null
+++ b/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch
@@ -0,0 +1,146 @@
+diff -Naur a/configure.ac b/configure.ac
+--- a/configure.ac 2016-12-11 04:12:26.000000000 +0000
++++ b/configure.ac 2017-01-10 13:41:24.743162628 +0000
+@@ -17,7 +17,7 @@
+ AC_PROG_YACC
+ AC_PROG_CPP
+ AC_PROG_RANLIB
+-#AM_PROG_LIBTOOL
++AM_PROG_LIBTOOL
+ AC_PROG_LN_S
+ AC_PROG_AWK
+ AC_PROG_INSTALL
+@@ -242,16 +242,18 @@
+ WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} -lgnutls -lgcrypt -lgpg-error -lz"
+ SAMPLE_INCLUDES=
+ SAMPLE_SSL_LIBS="-lgnutls -lgcrypt -lgpg-error -lz"
+- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
+ else
+ AC_MSG_RESULT(no)
+ WSDL2H_EXTRA_FLAGS="-DWITH_OPENSSL -DWITH_GZIP"
+ # an ugly hack to get httpda and smdevp plugins to conditionally
+ # compile with wsdl2h when OPENSSL is available
+- WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} ../plugin/httpda.c ../plugin/smdevp.c ../plugin/threads.c -lssl -lcrypto -lz"
++ WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} ../plugin/httpda.c ../plugin/smdevp.c ../plugin/threads.c -lcrypto"
+ SAMPLE_INCLUDES=
+ SAMPLE_SSL_LIBS="-lssl -lcrypto -lz"
+- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
+ fi
+ if test -n "$ZLIB"; then
+ WSDL2H_EXTRA_FLAGS="-I${ZLIB}/include ${WSDL2H_EXTRA_FLAGS}"
+@@ -270,13 +272,15 @@
+ WSDL2H_EXTRA_FLAGS=
+ SAMPLE_SSL_LIBS=
+ SAMPLE_INCLUDES=
+- WSDL2H_SOAP_CPP_LIB="libgsoap++.a"
++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
+ fi
+ AC_SUBST(WSDL2H_EXTRA_FLAGS)
+ AC_SUBST(WSDL2H_EXTRA_LIBS)
+ AC_SUBST(SAMPLE_INCLUDES)
+ AC_SUBST(SAMPLE_SSL_LIBS)
+-AC_SUBST(WSDL2H_SOAP_CPP_LIB)
++AC_SUBST(WSDL2H_SOAP_CPP_SHARED_LIB)
++AC_SUBST(WSDL2H_SOAP_CPP_STATIC_LIB)
+
+ # enable the compile of the samples
+ AC_ARG_ENABLE(samples,
+diff -Naur a/gsoap/Makefile.am b/gsoap/Makefile.am
+--- a/gsoap/Makefile.am 2016-12-11 04:12:27.000000000 +0000
++++ b/gsoap/Makefile.am 2017-01-10 13:41:36.487140423 +0000
+@@ -49,6 +49,29 @@
+ libgsoapssl___a_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
+ libgsoapssl___a_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
+
++lib_LTLIBRARIES = libgsoap.la libgsoap++.la libgsoapck.la libgsoapck++.la libgsoapssl.la libgsoapssl++.la
++SOVERSION = 0
++libgsoap_la_SOURCES = stdsoap2.c dom.c
++libgsoap_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
++libgsoap_la_LDFLAGS = -version-info $(SOVERSION)
++libgsoap___la_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp
++libgsoap___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
++libgsoap___la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapck_la_SOURCES = stdsoap2_ck.c dom.c
++libgsoapck_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
++libgsoapck_la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapck___la_SOURCES = stdsoap2_ck_cpp.cpp dom_cpp.cpp
++libgsoapck___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
++libgsoapck___la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapssl_la_SOURCES = stdsoap2_ssl.c dom.c
++libgsoapssl_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
++libgsoapssl_la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapssl_la_LIBADD = -lssl -lcrypto -lz
++libgsoapssl___la_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
++libgsoapssl___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
++libgsoapssl___la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapssl___la_LIBADD = -lssl -lcrypto -lz
++
+ BUILT_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp stdsoap2_ck.c stdsoap2_ck_cpp.cpp stdsoap2_ssl.c stdsoap2_ssl_cpp.cpp
+
+ include_HEADERS = stdsoap2.h
+diff -Naur a/gsoap/samples/autotest/Makefile.am b/gsoap/samples/autotest/Makefile.am
+--- a/gsoap/samples/autotest/Makefile.am 2016-12-11 04:12:27.000000000 +0000
++++ b/gsoap/samples/autotest/Makefile.am 2017-01-10 13:44:39.954389922 +0000
+@@ -14,7 +14,7 @@
+ WSDLINPUT=$(srcdir)/examples.wsdl
+ SOAPHEADER=$(srcdir)/examples.h
+ SOAP_CPP_SRC=soapC.cpp soapServer.cpp
+-SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.a
+
+ $(SOAP_CPP_SRC) : $(WSDLINPUT)
+ $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
+@@ -40,6 +40,6 @@
+ autotest_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
+ autotest_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
+ autotest_SOURCES=$(SOAP_CPP_SRC) soapTester.cpp duration.cpp long_time.cpp struct_tm.cpp struct_tm_date.cpp
+-autotest_LDADD=$(SOAP_CPP_LIB) $(SAMPLE_EXTRA_LIBS)
++autotest_LDADD=$(SOAP_CPP_SHARED_LIB) $(SAMPLE_EXTRA_LIBS)
+
+ CLEANFILES= *~ *.h *.cpp *.xml *.log *.nsmap
+diff -Naur a/gsoap/samples/databinding/Makefile.am b/gsoap/samples/databinding/Makefile.am
+--- a/gsoap/samples/databinding/Makefile.am 2016-12-11 04:12:27.000000000 +0000
++++ b/gsoap/samples/databinding/Makefile.am 2017-01-10 13:43:51.788258087 +0000
+@@ -14,7 +14,7 @@
+ WSDLINPUT=$(srcdir)/address.xsd
+ SOAPHEADER=$(srcdir)/address.h
+ SOAP_CPP_SRC=addressC.cpp
+-SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.la
+
+ $(SOAP_CPP_SRC) : $(WSDLINPUT)
+ $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
+@@ -28,6 +28,6 @@
+ address_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
+ address_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
+ address_SOURCES=$(SOAP_CPP_SRC) address.cpp
+-address_LDADD=$(SOAP_CPP_LIB)
++address_LDADD=$(SOAP_CPP_SHARED_LIB)
+
+ CLEANFILES= *~ address.h *C.cpp *H.h *Stub.h *.nsmap
+diff -Naur a/gsoap/wsdl/Makefile.am b/gsoap/wsdl/Makefile.am
+--- a/gsoap/wsdl/Makefile.am 2016-12-11 04:12:28.000000000 +0000
++++ b/gsoap/wsdl/Makefile.am 2017-01-10 13:42:08.991078959 +0000
+@@ -10,7 +10,7 @@
+ AM_LDFLAGS=-L$(srcdir) -I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
+ AM_CPPFLAGS=-I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
+ SOAP=$(top_builddir)/gsoap/src/soapcpp2$(EXEEXT)
+-SOAP_CPP_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_LIB)
++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_SHARED_LIB)
+ SOAP_CPP_SRC=wsdlC.cpp
+ SOAPHEADER=$(srcdir)/wsdl.h
+ SOAP_FLAGS=-SC -pwsdl -I$(srcdir) -I$(top_srcdir)/gsoap/import
+@@ -29,6 +29,6 @@
+ wsdl2h_CXXFLAGS=$(C_DEBUG_FLAGS) $(WSDL2H_EXTRA_FLAGS) $(WSDL2H_IMPORTPATH)
+ wsdl2h_CPPFLAGS=$(AM_CPPFLAGS) $(SOAPCPP2_NONAMESPACES) -D$(platform)
+ wsdl2h_SOURCES=wsdl2h.cpp wsdl.cpp wadl.cpp schema.cpp types.cpp service.cpp soap.cpp mime.cpp wsp.cpp bpel.cpp $(SOAP_CPP_SRC)
+-wsdl2h_LDADD=$(SOAP_CPP_LIB) $(WSDL2H_EXTRA_LIBS)
++wsdl2h_LDADD=$(SOAP_CPP_SHARED_LIB) $(WSDL2H_EXTRA_LIBS)
+
+ CLEANFILES= *~ *C.cpp *H.h *Stub.h *.nsmap
+
diff --git a/net-libs/gsoap/files/gsoap-2.8.52-shared_libs.patch b/net-libs/gsoap/files/gsoap-2.8.52-shared_libs.patch
new file mode 100644
index 000000000000..9437de86f61f
--- /dev/null
+++ b/net-libs/gsoap/files/gsoap-2.8.52-shared_libs.patch
@@ -0,0 +1,145 @@
+--- gsoap-2.8/configure.ac
++++ gsoap-2.8/configure.ac
+@@ -17,7 +17,7 @@
+ AC_PROG_YACC
+ AC_PROG_CPP
+ AC_PROG_RANLIB
+-#AM_PROG_LIBTOOL
++AM_PROG_LIBTOOL
+ AC_PROG_LN_S
+ AC_PROG_AWK
+ AC_PROG_INSTALL
+@@ -259,15 +259,17 @@
+ WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} -lgnutls -lgcrypt -lgpg-error -lz"
+ SAMPLE_INCLUDES=
+ SAMPLE_SSL_LIBS="-lgnutls -lgcrypt -lgpg-error -lz"
+- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
+ else
+ AC_MSG_RESULT(no)
+ WSDL2H_EXTRA_FLAGS="-DWITH_OPENSSL -DWITH_GZIP"
+ # compile with wsdl2h when OPENSSL is available
+- WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} -lssl -lcrypto -lz"
++ WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} -lcrypto"
+ SAMPLE_INCLUDES=
+ SAMPLE_SSL_LIBS="-lssl -lcrypto -lz"
+- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
+ fi
+ if test -n "$ZLIB"; then
+ WSDL2H_EXTRA_FLAGS="-I${ZLIB}/include ${WSDL2H_EXTRA_FLAGS}"
+@@ -286,7 +288,8 @@
+ WSDL2H_EXTRA_FLAGS=
+ SAMPLE_SSL_LIBS=
+ SAMPLE_INCLUDES=
+- WSDL2H_SOAP_CPP_LIB="libgsoap++.a"
++ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoap++.a"
++ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
+ fi
+ AM_CONDITIONAL(WITH_OPENSSL, test "x$with_openssl" = "xyes" -a "x$with_gnutls" != "xyes")
+ AC_SUBST(WITH_OPENSSL)
+@@ -294,7 +297,8 @@
+ AC_SUBST(WSDL2H_EXTRA_LIBS)
+ AC_SUBST(SAMPLE_INCLUDES)
+ AC_SUBST(SAMPLE_SSL_LIBS)
+-AC_SUBST(WSDL2H_SOAP_CPP_LIB)
++AC_SUBST(WSDL2H_SOAP_CPP_SHARED_LIB)
++AC_SUBST(WSDL2H_SOAP_CPP_STATIC_LIB)
+
+ # enable the compile of the samples
+ AC_ARG_ENABLE(samples,
+--- gsoap-2.8/gsoap/Makefile.am
++++ gsoap-2.8/gsoap/Makefile.am
+@@ -49,6 +49,29 @@
+ libgsoapssl___a_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
+ libgsoapssl___a_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_NO_C_LOCALE) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
+
++lib_LTLIBRARIES = libgsoap.la libgsoap++.la libgsoapck.la libgsoapck++.la libgsoapssl.la libgsoapssl++.la
++SOVERSION = 0
++libgsoap_la_SOURCES = stdsoap2.c dom.c
++libgsoap_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
++libgsoap_la_LDFLAGS = -version-info $(SOVERSION)
++libgsoap___la_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp
++libgsoap___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
++libgsoap___la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapck_la_SOURCES = stdsoap2_ck.c dom.c
++libgsoapck_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
++libgsoapck_la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapck___la_SOURCES = stdsoap2_ck_cpp.cpp dom_cpp.cpp
++libgsoapck___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
++libgsoapck___la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapssl_la_SOURCES = stdsoap2_ssl.c dom.c
++libgsoapssl_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
++libgsoapssl_la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapssl_la_LIBADD = -lssl -lcrypto -lz
++libgsoapssl___la_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
++libgsoapssl___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
++libgsoapssl___la_LDFLAGS = -version-info $(SOVERSION)
++libgsoapssl___la_LIBADD = -lssl -lcrypto -lz
++
+ BUILT_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp stdsoap2_ck.c stdsoap2_ck_cpp.cpp stdsoap2_ssl.c stdsoap2_ssl_cpp.cpp
+
+ include_HEADERS = stdsoap2.h
+--- gsoap-2.8/gsoap/samples/autotest/Makefile.am
++++ gsoap-2.8/gsoap/samples/autotest/Makefile.am
+@@ -14,7 +14,7 @@
+ WSDLINPUT=$(top_srcdir)/gsoap/samples/autotest/examples.wsdl
+ SOAPHEADER=$(top_srcdir)/gsoap/samples/autotest/examples.h
+ SOAP_CPP_SRC=soapC.cpp soapServer.cpp
+-SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.a
+
+ $(SOAP_CPP_SRC) : $(WSDLINPUT)
+ $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
+@@ -40,6 +40,6 @@
+ autotest_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
+ autotest_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
+ autotest_SOURCES=$(SOAP_CPP_SRC) soapTester.cpp duration.cpp long_time.cpp struct_tm.cpp struct_tm_date.cpp
+-autotest_LDADD=$(SOAP_CPP_LIB) $(SAMPLE_EXTRA_LIBS)
++autotest_LDADD=$(SOAP_CPP_SHARED_LIB) $(SAMPLE_EXTRA_LIBS)
+
+ CLEANFILES= *~ *.h *.cpp *.xml *.log *.nsmap
+--- gsoap-2.8/gsoap/samples/databinding/Makefile.am
++++ gsoap-2.8/gsoap/samples/databinding/Makefile.am
+@@ -14,7 +14,7 @@
+ WSDLINPUT=$(top_srcdir)/gsoap/samples/databinding/address.xsd
+ SOAPHEADER=$(top_srcdir)/gsoap/samples/databinding/address.h
+ SOAP_CPP_SRC=addressC.cpp
+-SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.a
+
+ $(SOAP_CPP_SRC) : $(WSDLINPUT)
+ $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
+@@ -28,6 +28,6 @@
+ address_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
+ address_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
+ address_SOURCES=$(SOAP_CPP_SRC) address.cpp
+-address_LDADD=$(SOAP_CPP_LIB)
++address_LDADD=$(SOAP_CPP_SHARED_LIB)
+
+ CLEANFILES= *~ address.h *C.cpp *H.h *Stub.h *.nsmap
+--- gsoap-2.8/gsoap/wsdl/Makefile.am
++++ gsoap-2.8/gsoap/wsdl/Makefile.am
+@@ -10,7 +10,7 @@
+ AM_LDFLAGS=-L$(top_srcdir)/gsoap/wsdl -I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
+ AM_CPPFLAGS=-I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
+ SOAP=$(top_builddir)/gsoap/src/soapcpp2$(EXEEXT)
+-SOAP_CPP_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_LIB)
++SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_SHARED_LIB)
+ SOAP_CPP_SRC=wsdlC.cpp
+ SOAPHEADER=$(top_srcdir)/gsoap/wsdl/wsdl.h
+ SOAP_FLAGS=-SC -pwsdl -I$(top_srcdir)/gsoap/wsdl -I$(top_srcdir)/gsoap/import
+@@ -30,9 +30,9 @@
+ wsdl2h_CPPFLAGS=$(AM_CPPFLAGS) $(SOAPCPP2_NONAMESPACES) -D$(platform)
+ wsdl2h_SOURCES=wsdl2h.cpp wsdl.cpp wadl.cpp schema.cpp types.cpp service.cpp soap.cpp mime.cpp wsp.cpp bpel.cpp $(SOAP_CPP_SRC)
+ if WITH_OPENSSL
+-wsdl2h_LDADD=$(SOAP_CPP_LIB) $(top_srcdir)/gsoap/plugin/httpda.c $(top_srcdir)/gsoap/plugin/smdevp.c $(top_srcdir)/gsoap/plugin/threads.c $(WSDL2H_EXTRA_LIBS)
++wsdl2h_LDADD=$(SOAP_CPP_SHARED_LIB) $(top_srcdir)/gsoap/plugin/httpda.c $(top_srcdir)/gsoap/plugin/smdevp.c $(top_srcdir)/gsoap/plugin/threads.c $(WSDL2H_EXTRA_LIBS)
+ else
+-wsdl2h_LDADD=$(SOAP_CPP_LIB) $(WSDL2H_EXTRA_LIBS)
++wsdl2h_LDADD=$(SOAP_CPP_SHARED_LIB) $(WSDL2H_EXTRA_LIBS)
+ endif
+
+ CLEANFILES= *~ *C.cpp *H.h *Stub.h *.nsmap
diff --git a/net-libs/gsoap/gsoap-2.8.40.ebuild b/net-libs/gsoap/gsoap-2.8.40.ebuild
new file mode 100644
index 000000000000..055659c71e95
--- /dev/null
+++ b/net-libs/gsoap/gsoap-2.8.40.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+MY_P="${PN}-2.8"
+
+DESCRIPTION="A cross-platform open source C and C++ SDK for 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 libressl gnutls +ssl"
+
+RDEPEND="
+ sys-libs/zlib
+ gnutls? ( net-libs/gnutls )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl )
+ )
+"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ sys-devel/flex
+ sys-devel/bison
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ # Fix Pre-ISO headers
+ eapply "${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.md
+
+ prune_libtool_files --all
+
+ if use examples; then
+ rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o || die
+ 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.51.ebuild b/net-libs/gsoap/gsoap-2.8.51.ebuild
new file mode 100644
index 000000000000..345507edae77
--- /dev/null
+++ b/net-libs/gsoap/gsoap-2.8.51.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+MY_P="${PN}-2.8"
+
+DESCRIPTION="A cross-platform open source C and C++ SDK for 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 libressl gnutls +ssl"
+
+RDEPEND="
+ sys-libs/zlib
+ gnutls? ( net-libs/gnutls )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl )
+ )
+"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ sys-devel/flex
+ sys-devel/bison
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ # Fix Pre-ISO headers
+ eapply "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch"
+
+ # enable shared libs https://bugs.gentoo.org/583398
+ eapply "${FILESDIR}/${PN}-2.7.40-shared_libs.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.md
+
+ prune_libtool_files --all
+
+ if use examples; then
+ rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o || die
+ 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.52.ebuild b/net-libs/gsoap/gsoap-2.8.52.ebuild
new file mode 100644
index 000000000000..28cf845a3274
--- /dev/null
+++ b/net-libs/gsoap/gsoap-2.8.52.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+MY_P="${PN}-2.8"
+
+DESCRIPTION="A cross-platform open source C and C++ SDK for 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 libressl gnutls +ssl"
+
+RDEPEND="
+ sys-libs/zlib
+ gnutls? ( net-libs/gnutls )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl )
+ )
+"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ sys-devel/flex
+ sys-devel/bison
+"
+
+PATCHES=(
+ # Fix Pre-ISO headers
+ "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch"
+
+ # enable shared libs https://bugs.gentoo.org/583398
+ "${FILESDIR}/${PN}-2.8.52-shared_libs.patch"
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ 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.md
+
+ prune_libtool_files --all
+
+ if use examples; then
+ rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o || die
+ 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.54.ebuild b/net-libs/gsoap/gsoap-2.8.54.ebuild
new file mode 100644
index 000000000000..28cf845a3274
--- /dev/null
+++ b/net-libs/gsoap/gsoap-2.8.54.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+MY_P="${PN}-2.8"
+
+DESCRIPTION="A cross-platform open source C and C++ SDK for 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 libressl gnutls +ssl"
+
+RDEPEND="
+ sys-libs/zlib
+ gnutls? ( net-libs/gnutls )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl )
+ )
+"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ sys-devel/flex
+ sys-devel/bison
+"
+
+PATCHES=(
+ # Fix Pre-ISO headers
+ "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch"
+
+ # enable shared libs https://bugs.gentoo.org/583398
+ "${FILESDIR}/${PN}-2.8.52-shared_libs.patch"
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ 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.md
+
+ prune_libtool_files --all
+
+ if use examples; then
+ rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o || die
+ 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..c4563902eff2
--- /dev/null
+++ b/net-libs/gsoap/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <maintainer type="person">
+ <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..1629df187461
--- /dev/null
+++ b/net-libs/gssdp/Manifest
@@ -0,0 +1,5 @@
+DIST gssdp-1.0.2.tar.xz 312352 SHA256 a1e17c09c7e1a185b0bd84fd6ff3794045a3cd729b707c23e422ff66471535dc SHA512 eac1d3db495d0433c27ad84c33c23a25b3ebdf5c85bb2d5f5b2198c00aae484f2128c22838534b9b4bf4c9787795241acafe30d00407912bdb9945422cbdc103 WHIRLPOOL ac1fe834851b55169597cadc20ae4f2ac291056b2738b04e29f08d87eb1d6bb8654037b5b818cd1bc79aaed47db9e1e69c0019c5c8f093ee7ce17dac0a0f863a
+EBUILD gssdp-1.0.2.ebuild 1430 SHA256 6ee2db20440f4512f1f96c7ccb20c9056bd26fc92849fc8594581b10c25b3551 SHA512 0cfade0dba0442915247ff4474e5518edd214158148474b8726d60aef3d1bf66553881c93c9c51f1eda5bd46a1a7a748e0509be8d5faf394496255a05ecac20e WHIRLPOOL 7b1bedee2daf22d023db05fb90099abc0ef34633d5bc312404762a0829d7854ab5eaea0ec4f23ef41c01e3286ac2a20c36ccded4d2dc0b26aa38585efd0b9022
+MISC ChangeLog 5171 SHA256 7ccb5f1f46aaeba2ac022e5f530f82260f0a243c056b4e36b2720806c748a1d1 SHA512 e476c00b9d0f994c8454830135609f11a3d944196373ff3747e030f51605e89bfab440aae9b505cddb9280e3b60e6b1b521587ec80d696e5fcb7872945b7b56c WHIRLPOOL b9fd28d9ebae8c5470d9e73529e7f394438c2ed5e8b39bc867824c4b9d1c315b2981eef542932e8f2bec508fe6dc57aea2909160d02358f064d5d4df01f1650a
+MISC ChangeLog-2015 10447 SHA256 ed37cc049fae352cff49307648a38b8a9dc407aa2b8a906f68e3a462211eda2f SHA512 05aa21d58016cc229bc64ae4b16373247b288c16e51a7c2ded2cb9a807e7f58845e3fb64c99331fcb6422cb907c6747d2c5a3a95bb0b6d575cefdecd1ef5d670 WHIRLPOOL adcecf833f9f9daf54384c91602286cc5342ceb611eace01acf8b577b0ab9dd76dfe65795d6d6ef93c34c60f6b927d7d70c3f992d062eacd1888e9484501d111
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/gssdp/gssdp-1.0.2.ebuild b/net-libs/gssdp/gssdp-1.0.2.ebuild
new file mode 100644
index 000000000000..1e4733766a17
--- /dev/null
+++ b/net-libs/gssdp/gssdp-1.0.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+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 ~arm64 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-1.36:= )
+ !<net-libs/gupnp-vala-0.10.3
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.14
+ 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/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..39980802b1da
--- /dev/null
+++ b/net-libs/gssdp/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/gtk-vnc/Manifest b/net-libs/gtk-vnc/Manifest
new file mode 100644
index 000000000000..a3704b5cf8bd
--- /dev/null
+++ b/net-libs/gtk-vnc/Manifest
@@ -0,0 +1,7 @@
+DIST gtk-vnc-0.6.0.tar.xz 439104 SHA256 9559348805e64d130dae569fee466930175dbe150d2649bb868b5c095f130433 SHA512 38d37753bd8c88d112c046eb8430383b073b6516c72660b3e53612986a6772b72e3e6037f61e7a3700980ab1509c1f44fbfe0b80594c8a5e5520df166212f158 WHIRLPOOL e156f368a9d70e90077253b031db49f5f58e2f248b3e15bc11340f01f6bcbd342cf08dd9810c8ee447ab372159d09c3353aa5ce6195f67c677e7c43a563a75c0
+DIST gtk-vnc-0.7.1.tar.xz 444380 SHA256 f34baa696615ef67666e8465b4d0ac563355e999a77d2cc42ad4625a24f7aab1 SHA512 5d62f60e1c9fe70f93a9d21c529145459f0d59d588631597d533ecba94864271d1095599db9447ac4843814be61af7a7c947f69e5a9cd26db7e811f2c4e95f0c WHIRLPOOL b4736926bbd8ad49c6b2dd2a1b921a35a9ca5b8987c04b03ea588efe09b3db20eade41204d0a0542ee683efd6d2ec23636c13bc2e214ed452d885aef1302902a
+EBUILD gtk-vnc-0.6.0.ebuild 4272 SHA256 cd9d2c1d0ac45f531199575435c401bda98a722bb7e13e4d662080973094070d SHA512 b2a232de413a5be9ef4f0ff8764ffc533f6c6498b3348da255674942e8d474f93327b584db6697afc926cf827808ad0f3334b44d2baca94a1b49fceb4d18ed41 WHIRLPOOL 5ad6090b08b6e471e605dd42a5cf47d148fcb2789b8ab3b781345f314a256934a35e38396270d1e1d6611651a0310b6fcc127b6876da399eef81d378d0900a8b
+EBUILD gtk-vnc-0.7.1.ebuild 4273 SHA256 558f01a088c039aa038150325d454d3b8abd50e6b83afaa01c2ca951fe9fd8ff SHA512 3f9a38184a33a20c19e94861a22c8ec6ea03cfe3c9c7c76bd831fe3343cf781908a19ab7f24f4e35ad3918b9764bc2ffe872f0c5abe2fec3918396402c9f03ef WHIRLPOOL 4a1a6fa51a2129a4919d6322ebd95c03b49c7ffd391249e0bbaf84194f3bfafd8207dfc7ffb58fa64966fdd2c853b1c08dc0605f67b28373d735990c33006573
+MISC ChangeLog 3566 SHA256 b3fe6a69fac240ab4d92d7f391665ca02dd0d3d0b5219dfdcd54bbbf0b1d9254 SHA512 6120268845595f9fa76af003600818ce924d6426b611ca086a64449a9cc7fafd09906a0c2ed02e3e380cd1a9a05ae8d2d78efeccd08befff5f944de832874ed0 WHIRLPOOL fdafc9210492328154646791c614402d2969949ca23c5c6d0594e643bf54b9533db20533ab73f3ad9d2dcd7a402233143f8ab02b9a15cf74911eb3ec085b71b5
+MISC ChangeLog-2015 18144 SHA256 2e2e10e3799768848762378e009823ba9a184d506ddd268bbe1207082343a913 SHA512 32da60bfd0f5b28e97eace4df4ca280041760ad64a179394549681fc5de85e1cf6f77b53ad4f07b705773e7ccf0882d2ca0d7410d9457f5fec497527f1360c4e WHIRLPOOL f4ea0319830cbddec3c8a0a2a30e3614ad78ae0b45e7f1f4f231690680397a7b97a63f92a5479d15f3d2ff36a1239b8ad8f439511d734dc238246196122efa68
+MISC metadata.xml 496 SHA256 53d3267fa5e4b2fa703d429175dc45ff76cc7424290cc81172acb937eb1ccbf8 SHA512 202c723c8a0b40f56f57c6949f3826d53cddd2a90133546863c7f2a166cffd212fe2e25275315b68fa0946e539472336ce462ea17ce5d6c032503d8726b83ad0 WHIRLPOOL 9589da2666927d8e080224292e5593dc04448e117b326818f5b53a59dfc615d19209050fc4bfafcea450c664b397289f95e5f3f626696e796616b44a3ac1df7d
diff --git a/net-libs/gtk-vnc/gtk-vnc-0.6.0.ebuild b/net-libs/gtk-vnc/gtk-vnc-0.6.0.ebuild
new file mode 100644
index 000000000000..e8d0f456c9b3
--- /dev/null
+++ b/net-libs/gtk-vnc/gtk-vnc-0.6.0.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.16"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 multibuild 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-3.0:0=
+ >=x11-libs/cairo-1.2
+ >=x11-libs/gtk+-2.18:2
+ x11-libs/libX11
+ gtk3? ( >=x11-libs/gtk+-2.91.3:3[introspection?] )
+ 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
+
+compute_variants() {
+ MULTIBUILD_VARIANTS=( 2.0 )
+ use gtk3 && MULTIBUILD_VARIANTS+=( 3.0 )
+}
+
+src_prepare() {
+ prepare() {
+ mkdir -p "${BUILD_DIR}" || die
+
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ python_foreach_impl prepare
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant prepare
+
+ # 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
+
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ $(use_with examples)
+ $(use_enable introspection)
+ $(use_with pulseaudio)
+ $(use_with sasl)
+ --with-coroutine=gthread
+ --without-libview
+ --disable-static
+ --disable-vala
+ )
+
+ configure_python() {
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ ${myconf[@]} \
+ --with-gtk=2.0 \
+ --with-python
+ }
+
+ configure_normal() {
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ ${myconf[@]} \
+ --with-gtk=${MULTIBUILD_VARIANT} \
+ --without-python
+
+ # for gtk3, python support is via gobject-introspection
+ # Ex: from gi.repository import GtkVnc
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ python_foreach_impl run_in_build_dir configure_python
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant run_in_build_dir configure_normal
+}
+
+src_compile() {
+ 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" \
+ gtkvnc_la_LIBADD="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la" \
+ gtkvnc_la_DEPENDENCIES="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la"
+ }
+
+ compile_normal() {
+ gnome2_src_compile
+
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ local GTK2_BUILDDIR="${BUILD_DIR}"
+ python_foreach_impl run_in_build_dir compile_python
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant run_in_build_dir compile_normal
+}
+
+src_test() {
+ local MULTIBUILD_VARIANTS
+ compute_variants
+
+ multibuild_foreach_variant run_in_build_dir default
+}
+
+src_install() {
+ 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" \
+ gtkvnc_la_LIBADD="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la" \
+ gtkvnc_la_DEPENDENCIES="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la"
+ }
+
+ install_normal() {
+ gnome2_src_install
+
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ local GTK2_BUILDDIR="${BUILD_DIR}"
+ python_foreach_impl run_in_build_dir install_python
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant run_in_build_dir install_normal
+}
diff --git a/net-libs/gtk-vnc/gtk-vnc-0.7.1.ebuild b/net-libs/gtk-vnc/gtk-vnc-0.7.1.ebuild
new file mode 100644
index 000000000000..bb4c26646411
--- /dev/null
+++ b/net-libs/gtk-vnc/gtk-vnc-0.7.1.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.16"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 multibuild 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-3.0:0=
+ >=x11-libs/cairo-1.2
+ >=x11-libs/gtk+-2.18:2
+ x11-libs/libX11
+ gtk3? ( >=x11-libs/gtk+-2.91.3:3[introspection?] )
+ 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
+
+compute_variants() {
+ MULTIBUILD_VARIANTS=( 2.0 )
+ use gtk3 && MULTIBUILD_VARIANTS+=( 3.0 )
+}
+
+src_prepare() {
+ prepare() {
+ mkdir -p "${BUILD_DIR}" || die
+
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ python_foreach_impl prepare
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant prepare
+
+ # 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
+
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ $(use_with examples)
+ $(use_enable introspection)
+ $(use_with pulseaudio)
+ $(use_with sasl)
+ --with-coroutine=gthread
+ --without-libview
+ --disable-static
+ --disable-vala
+ )
+
+ configure_python() {
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ ${myconf[@]} \
+ --with-gtk=2.0 \
+ --with-python
+ }
+
+ configure_normal() {
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ ${myconf[@]} \
+ --with-gtk=${MULTIBUILD_VARIANT} \
+ --without-python
+
+ # for gtk3, python support is via gobject-introspection
+ # Ex: from gi.repository import GtkVnc
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ python_foreach_impl run_in_build_dir configure_python
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant run_in_build_dir configure_normal
+}
+
+src_compile() {
+ 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" \
+ gtkvnc_la_LIBADD="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la" \
+ gtkvnc_la_DEPENDENCIES="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la"
+ }
+
+ compile_normal() {
+ gnome2_src_compile
+
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ local GTK2_BUILDDIR="${BUILD_DIR}"
+ python_foreach_impl run_in_build_dir compile_python
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant run_in_build_dir compile_normal
+}
+
+src_test() {
+ local MULTIBUILD_VARIANTS
+ compute_variants
+
+ multibuild_foreach_variant run_in_build_dir default
+}
+
+src_install() {
+ 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" \
+ gtkvnc_la_LIBADD="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la" \
+ gtkvnc_la_DEPENDENCIES="${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la"
+ }
+
+ install_normal() {
+ gnome2_src_install
+
+ if [[ ${MULTIBUILD_ID} == 2.0 ]] && use python ; then
+ local GTK2_BUILDDIR="${BUILD_DIR}"
+ python_foreach_impl run_in_build_dir install_python
+ fi
+ }
+
+ local MULTIBUILD_VARIANTS
+ compute_variants
+ multibuild_foreach_variant run_in_build_dir install_normal
+}
diff --git a/net-libs/gtk-vnc/metadata.xml b/net-libs/gtk-vnc/metadata.xml
new file mode 100644
index 000000000000..c977e3a032f8
--- /dev/null
+++ b/net-libs/gtk-vnc/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>virtualization@gentoo.org</email>
+ <name>Gentoo Virtualization Project</name>
+ </maintainer>
+ <use>
+ <flag name="gtk3">Build the gtk3 gtk-vnc library and other gtk3 assets</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/gupnp-av/Manifest b/net-libs/gupnp-av/Manifest
new file mode 100644
index 000000000000..6c3d3c646038
--- /dev/null
+++ b/net-libs/gupnp-av/Manifest
@@ -0,0 +1,5 @@
+DIST gupnp-av-0.12.10.tar.xz 370552 SHA256 8038ef84dddbe7ad91c205bf91dddf684f072df8623f39b6555a6bb72837b85a SHA512 dbecef1f725dd05e1d4f7f9dede02f26a022d8d3c98ed2344d28746b74fb81703026df8cdd7ed0f3060b55a5da6d88def1e92a80e1f1892ad7c0806124ef5269 WHIRLPOOL e9498fc1298e8736b94f64f843c65827f9a103c73ec458ed8c86d048c4f250097bffa7c5482cccbdebd7381c4107981a85c15b2660654c01e6449ca2897c421d
+EBUILD gupnp-av-0.12.10.ebuild 884 SHA256 052278a929d23601dfbae2fd4d5b8c3ee85c6139726f5cc5b05e0a0721ac2fa3 SHA512 3af4660bcf16c591283bbdacd5e99ef67b1c58b52a9eaafad415c779eea1d31ffc7115712e8913ab48071c3ef6b37679a5e01151692521e749b221eb2af8fe48 WHIRLPOOL 6e04a28954ae12b789f284189bd9f19879927ecbb99c168fc4ce74ef8cf5ff07a03be315829d17b5c2ed27d379dd36c35b7dbf13a98ec8b19453483b858b004d
+MISC ChangeLog 3626 SHA256 c7223c9047ff66ebc598630ab3212b0c4010e93ab46a76a2ff418a7cc806ae95 SHA512 c3f0e437a10d178699b8214e99e962c1d29e62e517de6c738160bb90ecfcef3e93fd13eee32a9e8b047bde14213b9835ae04453de1bca1a5fe739b914d6a76df WHIRLPOOL c79b12d6f4d562b9e238d7bff85ffa120e23782273451b68f28ae776c070ba0da932bbf067f18dda3c23ae1bd3ed47de80c778110a602f8646c4c3f57d48e70a
+MISC ChangeLog-2015 6542 SHA256 a3935d05b3dd00b63a6fd677e67c499e1ffdb12442b71774684db03e778d06c8 SHA512 031c3c5a6352620b81a27f31a43cb778275b928b76e028168f50a754cdfbea3b30aa527cc128026b5c3bd9537fce4f90ba4ede0d36a31090f536f9c898875b1d WHIRLPOOL dbb48d71253e8299208f423c8c2afdefe92b82e20d73c7b16ba60393d96666c91101a050e0b9f2e3468df864c5f5e683e6ea0418948a3d6f5e7239bbba870f57
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/gupnp-av/gupnp-av-0.12.10.ebuild b/net-libs/gupnp-av/gupnp-av-0.12.10.ebuild
new file mode 100644
index 000000000000..0f2fc3c91fad
--- /dev/null
+++ b/net-libs/gupnp-av/gupnp-av-0.12.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="Utility library aiming to ease the handling UPnP A/V profiles"
+HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP"
+
+LICENSE="LGPL-2"
+SLOT="0/2" # subslot: soname version
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="+introspection"
+
+RDEPEND="
+ >=dev-libs/glib-2.34:2
+ >=net-libs/libsoup-2.28.2:2.4[introspection?]
+ dev-libs/libxml2
+ introspection? ( >=dev-libs/gobject-introspection-1.36:= )
+ !net-libs/gupnp-vala
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.10
+ virtual/pkgconfig
+ introspection? ( $(vala_depend) )
+"
+
+src_prepare() {
+ use introspection && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ $(use_enable introspection) \
+ --disable-static
+}
diff --git a/net-libs/gupnp-av/metadata.xml b/net-libs/gupnp-av/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/gupnp-av/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/gupnp-igd/Manifest b/net-libs/gupnp-igd/Manifest
new file mode 100644
index 000000000000..65a6d8c7ccfc
--- /dev/null
+++ b/net-libs/gupnp-igd/Manifest
@@ -0,0 +1,11 @@
+AUX gupnp-igd-0.1.11-disable_static_modules.patch 250 SHA256 c7a2802e832c27000765f7988025e3c8fe24953224958523e6f3cc739c4d05bd SHA512 93e656357e1191972f14cf0e23a1a6eb5929af022e431e1c37f0f1196b6fbed874bcb27f1b787b634308bdcfbf9c7c5375df83385669ab6989c6eb2e0f891d86 WHIRLPOOL 2afd47cea0d7e62821d59ac3780cc8864585d1e246709948971b071f66ddd0afdb73d5044c6649018ecf5b7b5a765f45aca5ccc4bf4dcefc51a0254bf48eee72
+AUX gupnp-igd-0.2.2-underlinking.patch 502 SHA256 4effb10a35e213758303d47d2490d4879332cfa06e5230243e212f0b70fae740 SHA512 89db92780320e6d2144b358d553c8aac1d68afa2b5a254c701079e8efe7b73be84e5f3214ce96292bab8febfc9a792d9586a445f0a3b20d7a77d3482790264d8 WHIRLPOOL c23ce2cb2557a61e0e5854656041e766eaea60f08d9727df4279da4e8c5633ecce6afd6428508fc8a89e974efead5840e5aca337eaefd162775e50d60b2de99b
+DIST gupnp-igd-0.2.2.tar.xz 262216 SHA256 73b6a98a0f13b29b34c3bfc07f99f78b1319211cb95a8585752873af2b9067d3 SHA512 5e876b5e759f483b270d85f2125ede5db304b3664f22a6b4e68943ba5dbc6fe597e59ef44f23e284d15ee00809c28fc6194b44faa345cc6aec62927958a53583 WHIRLPOOL 71d33882f94fdab4b517df1abcf5e8bb1944a7dcde150cd69954fd32ca2b208a95d2324f9d4215be7fd1016d72eb376c3332f2e84216afe0d8d25a18be4d7fbc
+DIST gupnp-igd-0.2.3.tar.xz 269920 SHA256 ccaf49f9d4f38ac646f1b00341d4db767291e56592286da0e0eb0835811f462d SHA512 74b4a6e34fe89b7fa92125664bb09354601fe0b476b909fc6c233027ec58914619c88e5bd951a675d7ccfc33d01b0fdddb21eb915d38c7ff824364dc62c319ac WHIRLPOOL badd5a9a5f6e73a6b9db41e5604fa7e3bd911026bd317b61e782750422a7ea1065bd0287c9925fdbf5f74ee1483efdaf66a30b7977f5a480f264419494177eb0
+DIST gupnp-igd-0.2.4.tar.xz 272004 SHA256 38c4a6d7718d17eac17df95a3a8c337677eda77e58978129ad3182d769c38e44 SHA512 4da8d401935c4237661310aec0acb38e9c9fe54aeb6b2ef1c9533a8576dbd2d9f9db3b50c4e86b7efc81c80059a10ea52f73517dab23f3cdc0f91a5c0944dab8 WHIRLPOOL c1536fa137dd2e7101f68b047fc1cdf9459ee6d822da964e12b3d995ee18d9f8c07b26c1eeb394dc6de91b9d54e18ff3e35155492ca43223d51d3b27e7fb4a55
+EBUILD gupnp-igd-0.2.2-r1.ebuild 1961 SHA256 108453a3095f77ba533d200ae3fe28ba21ea194586e8948178dcf1e8a478685a SHA512 a7baf58308432c73e332cbae8783d49ca45b91d64777aab3512e740c7eb7e0e0b92821e81817f6a361a3533a85f2f56566f4ec7352f84b9df02ed5883c356dab WHIRLPOOL d706dabde8a7d267e6c5cfe594a17d1c0bfd286a80823ceea569806d39c53c550332385c3efe152fab5fabe258c7f405fea3668b482c40d924d5b4b4bb9ff685
+EBUILD gupnp-igd-0.2.3-r1.ebuild 2308 SHA256 371054036ac4601a2bff1e34c60dfd67d17857ca3a73c1cf414bc671480050ee SHA512 dc7fba2565e178a4c75642ed8ac1af48022b7ea17ee40cb6af1887fae8fce447537a06c279c9ce0d247aa6dc76d9a17af50002f58b54124e4fe3ae79238bc6eb WHIRLPOOL 8b97a2854bdcef2e0fbd98aeb0d800e9611b3ad172c59531fb14533bdf5904a7840e20d76dbfd9eddbff01674170a53e9be9879d133c20abe5c9cfc5903b4bc5
+EBUILD gupnp-igd-0.2.4.ebuild 2338 SHA256 069d0f84517f1fed5d5511ed2ce40aeb2d239ce24505d0adeb789e80e067d1c2 SHA512 3a251b986fcbbe0bafd702a62e86cebdba7fd70743a8760541569cf7582d4cf7363d425ec297e6e38ff6de7d0a8c5cdc07aad43e94c2670a66745c8facbd69ee WHIRLPOOL 150615a1ea0224b342a60aff28e07097e1e253943984ef95239e2630856b14c5b9c1306c0c0b6f2935d4b43e6c2daabe25fe0bd083e6878c2d4913811539124b
+MISC ChangeLog 3349 SHA256 8d657b74ab832b55a1e91a1fbd34da9f37f7150737e0532be9d647fdc0b1a7fe SHA512 6f93f3f52d50a1aad5f690d162c299c3843e20308b4729a1a05135be2137beaac59044f10099e0461c7cf1de978da4ea506b322e8a58ca673f18cc6fe82c0f2c WHIRLPOOL 5116bbf47972cbdc24f6b79853d2636dba19c2a218f079d07f9a2444e56d4a4108d566c8bfb790583fd836c9d5f0a2efd449afec4280643ca5b7e6e5d3a82941
+MISC ChangeLog-2015 9262 SHA256 ee0f072f1caa92614b8b6726256d6f9138cacedf05c8887cd8544b3e198e04a7 SHA512 870dfece4cc212da3d5755280591eb78740b6bf7810449d4e9af839c145da72aaf75cafb884fe11569f0dbb874b56932617cf85bf45fef6848daa1a5327dfae2 WHIRLPOOL 32522d7f9b718a0fa112d1446f8422aa47827e8d60b9234d6d2192b4e7eec7ffa67364dad8672b71f8a168f907162eee3185ecbd0f4057faf62a78a36eeb59f2
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/gupnp-igd/files/gupnp-igd-0.1.11-disable_static_modules.patch b/net-libs/gupnp-igd/files/gupnp-igd-0.1.11-disable_static_modules.patch
new file mode 100644
index 000000000000..ccd4b8da2fea
--- /dev/null
+++ b/net-libs/gupnp-igd/files/gupnp-igd-0.1.11-disable_static_modules.patch
@@ -0,0 +1,10 @@
+--- a/python/Makefile.am
++++ b/python/Makefile.am
+@@ -27,7 +28,7 @@
+
+ igd_la_LDFLAGS = \
+- -module -avoid-version
++ -module -avoid-version -shared
+
+ pygupnp-igd.c: $(srcdir)/pygupnp-igd.override $(srcdir)/pygupnp-igd.defs
+ $(PYCODEGEN) \
diff --git a/net-libs/gupnp-igd/files/gupnp-igd-0.2.2-underlinking.patch b/net-libs/gupnp-igd/files/gupnp-igd-0.2.2-underlinking.patch
new file mode 100644
index 000000000000..0e1dfb48a388
--- /dev/null
+++ b/net-libs/gupnp-igd/files/gupnp-igd-0.2.2-underlinking.patch
@@ -0,0 +1,16 @@
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c4f7d47..f13b398 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -10,7 +10,7 @@ AC_STDC_HEADERS
+ AC_PROG_LIBTOOL
+ AC_FUNC_MMAP
+
+-PKG_CHECK_MODULES(LIBGUPNP, gobject-2.0 >= 2.14 gupnp-1.0 >= 0.18 gthread-2.0)
++PKG_CHECK_MODULES(LIBGUPNP, gobject-2.0 >= 2.14 gupnp-1.0 >= 0.18 gthread-2.0 gssdp-1.0)
+
+ # glib-genmarshal
+ GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
diff --git a/net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild b/net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..f1c343c3cbfb
--- /dev/null
+++ b/net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils gnome.org python-r1
+
+DESCRIPTION="Library to handle UPnP IGD port mapping for GUPnP"
+HOMEPAGE="http://gupnp.org"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="+introspection python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ net-libs/gssdp
+ >=net-libs/gupnp-0.18
+ >=dev-libs/glib-2.16:2
+ introspection? ( >=dev-libs/gobject-introspection-0.10 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-libs/gobject-introspection-0.10
+ >=dev-python/pygobject-2.16:2[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+# The only existing test is broken
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-underlinking.patch
+ "${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
+ )
+
+src_prepare() {
+ rm missing || die
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
+
+ # Python bindings are built/installed manually.
+ if use python; then
+ sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am Makefile.in || die
+ fi
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ --disable-gtk-doc
+ $(use_enable introspection)
+ $(use_enable python)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+
+ if use python; then
+ python_copy_sources
+
+ building() {
+ cd "${BUILD_DIR}"/python || die
+ emake \
+ PYTHON_INCLUDES="-I$(python_get_includedir)" \
+ pyexecdir="$(python_get_sitedir)"
+ }
+ python_foreach_impl building
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use python; then
+ installation() {
+ cd "${BUILD_DIR}"/python || die
+ emake \
+ DESTDIR="${D}" \
+ pyexecdir="$(python_get_sitedir)" \
+ install
+ }
+ python_foreach_impl installation
+ fi
+}
diff --git a/net-libs/gupnp-igd/gupnp-igd-0.2.3-r1.ebuild b/net-libs/gupnp-igd/gupnp-igd-0.2.3-r1.ebuild
new file mode 100644
index 000000000000..2286f628e1be
--- /dev/null
+++ b/net-libs/gupnp-igd/gupnp-igd-0.2.3-r1.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+AUTOTOOLS_AUTORECONF=true
+
+inherit eutils gnome.org multilib-minimal python-r1
+
+DESCRIPTION="Library to handle UPnP IGD port mapping for GUPnP"
+HOMEPAGE="http://gupnp.org"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+introspection python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
+ >=net-libs/gssdp-0.14.7[${MULTILIB_USEDEP}]
+ >=net-libs/gupnp-0.20.10[${MULTILIB_USEDEP}]
+ introspection? ( >=dev-libs/gobject-introspection-0.10 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-libs/gobject-introspection-0.10
+ >=dev-python/pygobject-2.16:2[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ sys-devel/gettext
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+"
+
+# The only existing test is broken
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
+)
+
+multilib_src_configure() {
+ local myconf=(
+ --disable-static
+ --disable-gtk-doc
+ $(multilib_native_use_enable introspection)
+ # python is built separately
+ --disable-python
+ )
+
+ ECONF_SOURCE=${S} \
+ econf "${myconf[@]}"
+
+ if multilib_is_native_abi; then
+ ln -s "${S}"/doc/html doc/html || die
+
+ python_configure() {
+ mkdir -p "${BUILD_DIR}" || die
+ cd "${BUILD_DIR}" || die
+
+ ECONF_SOURCE=${S} \
+ econf "${myconf[@]}" \
+ --enable-python
+ }
+
+ use python && python_foreach_impl python_configure
+ fi
+}
+
+multilib_src_compile() {
+ default
+
+ if multilib_is_native_abi && use python; then
+ local native_builddir=${BUILD_DIR}
+
+ python_compile() {
+ emake -C "${BUILD_DIR}"/python \
+ VPATH="${S}/python:${native_builddir}/python" \
+ igd_la_LIBADD="\$(PYGUPNP_IGD_LIBS) ${native_builddir}/libgupnp-igd/libgupnp-igd-1.0.la"
+ }
+
+ python_foreach_impl python_compile
+ fi
+}
+
+multilib_src_install() {
+ default
+
+ if multilib_is_native_abi && use python; then
+ local native_builddir=${BUILD_DIR}
+
+ python_install() {
+ emake -C "${BUILD_DIR}"/python \
+ VPATH="${S}/python:${native_builddir}/python" \
+ DESTDIR="${D}" install
+ }
+
+ python_foreach_impl python_install
+ fi
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files
+}
diff --git a/net-libs/gupnp-igd/gupnp-igd-0.2.4.ebuild b/net-libs/gupnp-igd/gupnp-igd-0.2.4.ebuild
new file mode 100644
index 000000000000..7bbcda8a9220
--- /dev/null
+++ b/net-libs/gupnp-igd/gupnp-igd-0.2.4.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+AUTOTOOLS_AUTORECONF=true
+
+inherit eutils gnome.org python-r1 multilib-minimal xdg-utils
+
+DESCRIPTION="Library to handle UPnP IGD port mapping for GUPnP"
+HOMEPAGE="http://gupnp.org"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ppc64 ~sparc x86"
+IUSE="+introspection python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
+ >=net-libs/gssdp-0.14.7[${MULTILIB_USEDEP}]
+ >=net-libs/gupnp-0.20.10[${MULTILIB_USEDEP}]
+ introspection? ( >=dev-libs/gobject-introspection-0.10 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-libs/gobject-introspection-0.10
+ >=dev-python/pygobject-2.16:2[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ sys-devel/gettext
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+"
+
+# The only existing test is broken
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
+)
+
+multilib_src_configure() {
+ xdg_environment_reset
+
+ local myconf=(
+ --disable-static
+ --disable-gtk-doc
+ $(multilib_native_use_enable introspection)
+ # python is built separately
+ --disable-python
+ )
+
+ ECONF_SOURCE=${S} \
+ econf "${myconf[@]}"
+
+ if multilib_is_native_abi; then
+ ln -s "${S}"/doc/html doc/html || die
+
+ python_configure() {
+ mkdir -p "${BUILD_DIR}" || die
+ cd "${BUILD_DIR}" || die
+
+ ECONF_SOURCE=${S} \
+ econf "${myconf[@]}" \
+ --enable-python
+ }
+
+ use python && python_foreach_impl python_configure
+ fi
+}
+
+multilib_src_compile() {
+ default
+
+ if multilib_is_native_abi && use python; then
+ local native_builddir=${BUILD_DIR}
+
+ python_compile() {
+ emake -C "${BUILD_DIR}"/python \
+ VPATH="${S}/python:${native_builddir}/python" \
+ igd_la_LIBADD="\$(PYGUPNP_IGD_LIBS) ${native_builddir}/libgupnp-igd/libgupnp-igd-1.0.la"
+ }
+
+ python_foreach_impl python_compile
+ fi
+}
+
+multilib_src_install() {
+ default
+
+ if multilib_is_native_abi && use python; then
+ local native_builddir=${BUILD_DIR}
+
+ python_install() {
+ emake -C "${BUILD_DIR}"/python \
+ VPATH="${S}/python:${native_builddir}/python" \
+ DESTDIR="${D}" install
+ }
+
+ python_foreach_impl python_install
+ fi
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files
+}
diff --git a/net-libs/gupnp-igd/metadata.xml b/net-libs/gupnp-igd/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/gupnp-igd/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/gupnp-ui/Manifest b/net-libs/gupnp-ui/Manifest
new file mode 100644
index 000000000000..fbc9b8eb79f6
--- /dev/null
+++ b/net-libs/gupnp-ui/Manifest
@@ -0,0 +1,6 @@
+AUX gupnp-ui-0.1.1-underlinking.patch 755 SHA256 059515ed657f4d01ecdb266581c36cfd5c4b0c1cf3253243793f00683724762e SHA512 1dba9b59bbbfff77886573fa53dc03207a72a7f483e5c67274dd8a7ec8846a2dd2d01bb95044ed96f96c568d87b2105016d6d429180116b4a3a290a1f9bf0d39 WHIRLPOOL 576bbadfd119e81a279c6618dd6b48087a82457d9b374d40ad0f20650971bedbaf648704ee076f42506c6f7153ef61f7431b99243be6d3c02a56fc5273d3848f
+DIST gupnp-ui-0.1.1.tar.gz 362414 SHA256 54446978d10507b58bb171671a8fe50cff5a7cf1ad8457bf2b5b45837a7bda38 SHA512 eae64352e96e6cc54411b5f9276a4386b60bc4af21246d3387024b8d5b7243ef988a98739adecc068f7d26fd85887b7500c4e9d89993aa68e5fe746ddc93dcab WHIRLPOOL f8e9325c7e4d81573a22fb0d30de28c216128239de922caf37382d9d161835ab3f5b468b4f431177faa4d59caa44717b68bf31deb312c63488f926800c6413d3
+EBUILD gupnp-ui-0.1.1.ebuild 739 SHA256 d2398395a140908a893c228152409805a2155c5b51f27a55659bb23d92e14551 SHA512 c5e464e329a4e961ba12f90fda6c63a7ef605d40dacc87e6e3f6c6cc5f8d9e8b3711d5ca735d361279b319a3b2b87be1cd9182bf78564519c2a1d5ad30589b38 WHIRLPOOL 1bd5662e6a09bd75d94d8f7ce038f97a13097e48a7dc269f85e1e3318c790793edd8437663e0e6ed9331f6046ac028941d8388e798424d1c5b087e566226b4a6
+MISC ChangeLog 2713 SHA256 d455cf09309af143b2e050cd6fc960288a1a4d84aa52ed3d021d130b5d216b2b SHA512 338f4d9747ddcf7ff09c4130a2ac408b78e8416fcee8d4d5fb22f2917a18ac2b8e2e59352622d951ddd960948d364621f8845fd4279240fc2f7c60bbec0cad94 WHIRLPOOL 815f5666ceae646d2dd353f47f543278023241b960da5a9b463965371e818bec9e265968776b1b631f4f99a4f97a89a4dc78666bc6a09a43b148fc3be7d4c9c2
+MISC ChangeLog-2015 792 SHA256 a2bca8c38fd685d88fa9df40b5624299887237ad12a60a70523d61d93f6d7ce6 SHA512 4939a064958b029a802c0d7dfcdfc907c5cf28c7bdb06c277c0cfb4f577687c0a8b1f3c2d1c8e95d24e35909223339ac865c599f39bb964e322ef327361e2c03 WHIRLPOOL 89bf8e9243e4e197b232e18923ac81e44ad3ba1f301b57a356aeecf938065cb2ebd6c89bdfb5e26986295b5d76ae4bbc15b2a3d9e7112e313698900f67199128
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/gupnp-ui/files/gupnp-ui-0.1.1-underlinking.patch b/net-libs/gupnp-ui/files/gupnp-ui-0.1.1-underlinking.patch
new file mode 100644
index 000000000000..207eecc7f12c
--- /dev/null
+++ b/net-libs/gupnp-ui/files/gupnp-ui-0.1.1-underlinking.patch
@@ -0,0 +1,25 @@
+--- configure.ac
++++ configure.ac
+@@ -11,7 +11,7 @@
+ AC_PROG_LIBTOOL
+
+ PKG_CHECK_MODULES(LIBGUPNP_UI, gupnp-1.0 >= 0.3 gtk+-2.0)
+-
++PKG_CHECK_MODULES(GSSDP, gssdp-1.0)
+ PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
+
+ # Debugging
+--- tests/Makefile.am
++++ tests/Makefile.am
+@@ -1,9 +1,9 @@
+-AM_CFLAGS = $(LIBGUPNP_UI_CFLAGS) $(GTHREAD_CFLAGS) -I$(top_srcdir)
++AM_CFLAGS = $(LIBGUPNP_UI_CFLAGS) $(GTHREAD_CFLAGS) $(GSSDP_CFLAGS) -I$(top_srcdir)
+
+ noinst_PROGRAMS = test-view
+
+ test_view_SOURCES = test-view.c
+-test_view_LDADD = $(top_builddir)/libgupnp-ui/libgupnp-ui-1.0.la $(GTHREAD_LIBS)
++test_view_LDADD = $(top_builddir)/libgupnp-ui/libgupnp-ui-1.0.la $(GTHREAD_LIBS) $(GSSDP_LIBS)
+
+ CLEANFILES = $(BUILT_SOURCES)
+ DISTCLEANFILES = $(BUILT_SOURCES)
diff --git a/net-libs/gupnp-ui/gupnp-ui-0.1.1.ebuild b/net-libs/gupnp-ui/gupnp-ui-0.1.1.ebuild
new file mode 100644
index 000000000000..b76fb5174a79
--- /dev/null
+++ b/net-libs/gupnp-ui/gupnp-ui-0.1.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils
+
+DESCRIPTION="Collection of simple GTK+ widgets on top of GUPnP"
+HOMEPAGE="http://gupnp.org"
+SRC_URI="http://gupnp.org/sources/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ net-libs/gupnp"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-underlinking.patch
+)
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --disable-gtk-doc
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/net-libs/gupnp-ui/metadata.xml b/net-libs/gupnp-ui/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/gupnp-ui/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/gupnp/Manifest b/net-libs/gupnp/Manifest
new file mode 100644
index 000000000000..2727b6cbd811
--- /dev/null
+++ b/net-libs/gupnp/Manifest
@@ -0,0 +1,5 @@
+DIST gupnp-1.0.2.tar.xz 421792 SHA256 5173fda779111c6b01cd4a5e41b594322be9d04f8c74d3361f0a0c2069c77610 SHA512 a22082b10725abe233a8b3212a988a7c7e52a617aefe2029f25572d371560264cddd15eab2ad4637880b4be3b4bdb85dbc5c47c8da338667152c86eaecd7e165 WHIRLPOOL ac7c07d93eaa70f02cdb611954ef912fb8947c23b9e39a155923bb25612da0afec91a661a8059a54cf9693bc0a9a8060f4103bd316fc06ba39c62d9580efa65a
+EBUILD gupnp-1.0.2.ebuild 2011 SHA256 df65aa9e30d8642514961931a9dbcf0110a2c24bafa16f391a566fa5a9a066d9 SHA512 c3dee380560695f76e4ad94fc473ba1ade3281d7006692b7a155073304c1abc0b4e3df0173ef56f1c24609253c504566b2505fd278e6c3b827f08bd2a5243ea3 WHIRLPOOL 4963cfd554b0dc5891922bac66234b1604be3298a5d6718b07f08fb23e15d1b45a5c925569e22d60af4c1620d5935596b4558442fcdce255388f9b886f56651d
+MISC ChangeLog 5442 SHA256 d0501d21d1b929d46ce17e526cd6a5d481c8b0c5a9e4ea7a3b637e433462d5fa SHA512 d307078892e306dd9f832c25150128ac449f9b818f4b2df59efdd35850b249b10ef829e74fad33ed42f99dd9b71ce615e28d62def2c442a671102320f0500a12 WHIRLPOOL 0f0d94205dd2ee11deb770c2ee6357ddd4e5c41a93e7b411b8130175da3a9a291faf1e13b3dc0ab76d0cff1023664f6deb72f363576552326cc8997a5d378c3a
+MISC ChangeLog-2015 12626 SHA256 0aabb37fcdf226b4ad764c8372530446c8e1ca6208fdc2cc71497dbdaa02eea5 SHA512 7badb47abc989934accd14f1b0d6e2cf0e960d6dfb35c924d0ff5db18fcd6133773bf7069f2e7fba5469c042c44d0a2125a7a6f1cca7b0e5e74f6e6fe4e1decf WHIRLPOOL 16037a061383c9b5ae92da092d1f2c2fa1c38295926dca23f44900c0b45bb62125503eae6a3155cf6688c5e7b58dacea7d0a623a06f8bc1d224b6d47bac34f7a
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/gupnp/gupnp-1.0.2.ebuild b/net-libs/gupnp/gupnp-1.0.2.ebuild
new file mode 100644
index 000000000000..19b46e745292
--- /dev/null
+++ b/net-libs/gupnp/gupnp-1.0.2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+VALA_USE_DEPEND="vapigen"
+# FIXME: Claims to works with python3 but appears to be wishful thinking
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit gnome2 multilib-minimal python-r1 vala
+
+DESCRIPTION="An object-oriented framework for creating UPnP devs and control points"
+HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP"
+
+LICENSE="LGPL-2"
+SLOT="0/4"
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~ppc ppc64 ~sparc x86"
+
+IUSE="connman +introspection kernel_linux networkmanager"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ ?? ( connman networkmanager )
+"
+
+# prefix: uuid dependency can be adapted to non-linux platforms
+RDEPEND="${PYTHON_DEPS}
+ >=net-libs/gssdp-0.14.15:0=[introspection?,${MULTILIB_USEDEP}]
+ >=net-libs/libsoup-2.48.0:2.4[introspection?,${MULTILIB_USEDEP}]
+ >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
+ >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}]
+ >=sys-apps/util-linux-2.24.1-r3[${MULTILIB_USEDEP}]
+ introspection? (
+ >=dev-libs/gobject-introspection-1.36:=
+ $(vala_depend) )
+ connman? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
+ networkmanager? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
+ !net-libs/gupnp-vala
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.14
+ sys-devel/gettext
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+"
+
+src_prepare() {
+ use introspection && vala_src_prepare
+ gnome2_src_prepare
+}
+
+multilib_src_configure() {
+ local backend=unix
+ use kernel_linux && backend=linux
+ use connman && backend=connman
+ use networkmanager && backend=network-manager
+
+ ECONF_SOURCE=${S} \
+ gnome2_src_configure \
+ $(multilib_native_use_enable introspection) \
+ --disable-static \
+ --with-context-manager=${backend}
+
+ if multilib_is_native_abi; then
+ ln -s "${S}"/doc/html doc/html || die
+ fi
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ python_foreach_impl python_doscript tools/gupnp-binding-tool
+}
diff --git a/net-libs/gupnp/metadata.xml b/net-libs/gupnp/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/gupnp/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/h323plus/Manifest b/net-libs/h323plus/Manifest
new file mode 100644
index 000000000000..bb7886c979d1
--- /dev/null
+++ b/net-libs/h323plus/Manifest
@@ -0,0 +1,9 @@
+AUX h323plus-1.25.0-ptlib-2.10.10.patch 668 SHA256 cc590730e3218c6a6a9b80613bd258b047bb75556d2493988109d248aaa7f5f6 SHA512 8c1c1777663a77fbe38d3c033ca388c3dbfaeeef2665a5564d8f482bbe26146d6f79be71100fb395dc35c33fcccda9c6eb0a4cfe9746aa968933e287343b1c93 WHIRLPOOL f87e5cb5a42e6009c422eca99f7a84bfb5b992a379face7c611188cf4c8f7ed92488b4509b9047243cf892b6061eed6514a335a2f6e7a240ff95e50dd84d9e81
+AUX h323plus-1.25.0-ptrace-debugoptionlist.patch 470 SHA256 72df4e0a97be69605ed980a7c857ede3fde42c13c8ea330d6d39181690f6d7ee SHA512 a12809c96ad236a1c3d9aed07976ea64653227f612676f0bac34fde6638e1719ade9fbd31e54f601c6dcefb52170788cead570b6dfdd2e1763b7b55d85e3d9ba WHIRLPOOL 8fb55c14c98647ac70c5d76f05fa4a9995b6f84618fb4385dc8fd1f6d06ac22339923f21efcda8e22147ca62307c241f8632a990c7a15fac6c2a912db7b0ef5b
+AUX h323plus-1.25.0-ptrace-param.patch 598 SHA256 c3035c2a869d391084efb6a0b2b048ad04c0799796e076e06f7211271934c642 SHA512 b51686ec30930cbf4749f233625a9f26651f7a93570468e70ff7e423fc74508f0495b74e565ff7f907a2e775572a54dc7253ebe8434e1d4f5a2b1b990638c09d WHIRLPOOL babe144faaf833ab7f1f29f21af9000be3123736dd8bf030eea339adf8b48d9618266c13e82b4810f836ddc42d8233cfb37a7a0c46ff03c9590d2958cc6cbea4
+DIST h323plus-v1_25_0.tar.gz 4193136 SHA256 1f4c10f4a087493fdc62e1b27041966f2fa2163941db99b1afe1551968fef190 SHA512 f0b8b26a0062eadc183af60d25302f95d06720dffe23f0bc0c9568ce34d7aae10acef434da9e09839fe19fcdc9f7f5d47396eb7c684ef55e457556abb66a682d WHIRLPOOL d3267238a8eea5537bff1e5b55c84adb3b011ed51f21da1c451f8f28e8bdc537b94a8f294e85cf07ed2d54e53ac6cdc279c365714e556261c8fb799d5ba9a154
+EBUILD h323plus-1.25.0-r1.ebuild 1836 SHA256 ef36c6522d381c00dc88e16c159e06b9ac63fb8667931f06af98e3fc0028d87d SHA512 a0cdc1e6f52db1fe609c4e673a2e18d5c463cfdc8f48409454a8ce9c9eca80586311ff2026e445d47a97d71c8ab0a6a0e621ff45b45cb8c9a6a2051747de5f36 WHIRLPOOL 36bcfc03e7e8300d2762889de9172894d3d07187ffc1bde104624e1454aaf8ce9cfebd4bc83f52bc4a3aa28913a8dd5e9470a490b33ea47b31ca6ed2d2a6aa06
+EBUILD h323plus-1.25.0-r2.ebuild 1882 SHA256 ec47651b7a0ba540015bae2de869047d190807e36fd7181a9be6a86aa791afc2 SHA512 404ea34aa939aeb2316342afde62286f6da1790aa2b5270cfa1bf4b6334611b6814fbb2300fb4790d2db2d72e5538c3ed4b9048d8e5f54a9854f57f8757f1512 WHIRLPOOL 811ca62ffd85397aaa9b5e5fe3a3b1fe37270f24508bd948bc3661954ef1f9e694c33123193f16e7ce90ee9fb689fe37fb745c2af716d940f0b352ab54bd365f
+MISC ChangeLog 3173 SHA256 6117fb0ab26c0ed3013e403bf79a4bde868d7ec7cdb53cef349fb58151b2c7db SHA512 742c47a8ef3d7b134746b85c3297706d62b46824ed8c8060ab4943c3f360484e36416ea31e81e0d5575946b42418c09cab7e27fdca527e614856de5fe6d69f67 WHIRLPOOL c7579ac9eb5c45c9f169367128b5a97dd3b42f7d2bc70e66e5628c46238977d01cb06356c59547292fa868844c97305dfe56b5ddf5696b5698c5e0c3068caa10
+MISC ChangeLog-2015 1405 SHA256 822ef7523fbb8fb0dbb430029f684b670c097de83adfb8d474f9a2362ec72ab7 SHA512 d9508a4f673cbb59188db8cc72afc701b68cd25927bc5171ebeb5d11f8ef3c276eb12faa73b0a495a70f4771bc20355ba142c0e125ed33a4094b52534079e971 WHIRLPOOL fb2c0521563714130233162653fb1e975d99e22f6fb8f3f68284373ccd30413c7d0275c91d48db00d3826d0d84f17d58dff36e1cb59329120eaf54d605458666
+MISC metadata.xml 429 SHA256 09a450a0a1b75e49f89718b7a84735f1e21d67a9d0be78c9d067761c475bd205 SHA512 6f4be02d7183a2a7376ee3d003b91f6996f2b7d4793ee9c91bd038f584efd7f892c8e4065979f50616a9119109f62831904109e834055de2386e176f97cbdb4b WHIRLPOOL 5a3bee270569f4513f9efd30bd7065314127d86a42c0a6aa3e97229b8bcf0b9877ae30f655c0746ba7276e609f1f3a44f6e6f18440074b6e4ff5ec629172b9b8
diff --git a/net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch b/net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch
new file mode 100644
index 000000000000..74856a099c0f
--- /dev/null
+++ b/net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch
@@ -0,0 +1,15 @@
+Fix macro definition for ptlib-2.10.10 compatibility
+http://lists.packetizer.com/pipermail/h323plus/2012-December/002543.html
+
+diff -ur a/include/openh323buildopts.h.in b/include/openh323buildopts.h.in
+--- a/include/openh323buildopts.h.in 2012-09-21 05:53:21.000000000 +0200
++++ b/include/openh323buildopts.h.in 2013-03-05 19:26:25.251373540 +0100
+@@ -35,7 +35,7 @@
+ #include <ptbuildopts.h>
+ #include <ptlib/../../revision.h>
+
+-#if PTLIB_MAJOR == 2 && PTLIB_MINOR < 10
++#if PTLIB_MAJOR == 2 && PTLIB_MINOR <= 10
+ #define PTLIB_VER ( PTLIB_MAJOR*100 + PTLIB_MINOR*10 + PTLIB_BUILD )
+ #else
+ #define PTLIB_VER ( PTLIB_MAJOR*1000 + PTLIB_MINOR*10 + PTLIB_BUILD )
diff --git a/net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch
new file mode 100644
index 000000000000..7e800f490f19
--- /dev/null
+++ b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch
@@ -0,0 +1,13 @@
+diff -ur a/src/h323pluginmgr.cxx b/src/h323pluginmgr.cxx
+--- a/src/h323pluginmgr.cxx 2012-11-29 17:23:26.000000000 +0100
++++ b/src/h323pluginmgr.cxx 2013-02-22 18:56:33.100356993 +0100
+@@ -1543,7 +1543,9 @@
+ PopulateMediaFormatOptions(codecDefn, fmt);
+ PopulateMediaFormatFromGenericData(fmt,
+ (PluginCodec_H323GenericCodecData *)codecDefn->h323CapabilityData);
++#if PTRACING
+ OpalMediaFormat::DebugOptionList(fmt);
++#endif
+ return true;
+ }
+
diff --git a/net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch
new file mode 100644
index 000000000000..c69e703f42c0
--- /dev/null
+++ b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch
@@ -0,0 +1,18 @@
+diff -ur a/src/rtp.cxx b/src/rtp.cxx
+--- a/src/rtp.cxx 2012-12-10 18:56:08.000000000 +0100
++++ b/src/rtp.cxx 2013-02-22 18:54:35.360358638 +0100
+@@ -1164,9 +1164,13 @@
+ return e_ProcessPacket;
+ }
+
+-
++#if PTRACING
+ void RTP_Session::OnRxSenderReport(const SenderReport & PTRACE_PARAM(sender),
+ const ReceiverReportArray & PTRACE_PARAM(reports))
++#else
++void RTP_Session::OnRxSenderReport(const SenderReport & sender,
++ const ReceiverReportArray & reports)
++#endif
+ {
+ userData->OnRxSenderReport(sessionID,sender,reports);
+
diff --git a/net-libs/h323plus/h323plus-1.25.0-r1.ebuild b/net-libs/h323plus/h323plus-1.25.0-r1.ebuild
new file mode 100644
index 000000000000..cd5e799e4520
--- /dev/null
+++ b/net-libs/h323plus/h323plus-1.25.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 protocol, successor of OpenH323"
+HOMEPAGE="http://www.h323plus.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV//./_}.tar.gz"
+
+IUSE="aec debug +sound +video"
+SLOT="0/${PV}"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
+
+DEPEND=">=net-libs/ptlib-2.6.4:=[wav]
+ aec? ( >=media-libs/speex-1.2_rc1 )
+ sound? (
+ media-sound/gsm
+ dev-libs/ilbc-rfc3951
+ )
+ video? (
+ media-libs/libtheora
+ virtual/ffmpeg
+ )"
+RDEPEND="${DEPEND}
+ !net-libs/openh323"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-param.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-debugoptionlist.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptlib-2.10.10.patch
+}
+
+src_configure() {
+ # TODO: support for h.263/h.264/sbc(bluetooth)/celt/spandsp
+ #export OPENH323DIR=${S}
+ econf \
+ PTLIB_CONFIG="${EPREFIX}/usr/bin/ptlib-config" \
+ $(use_enable video) \
+ $(use_enable sound audio) \
+ $(use_enable aec) \
+ $(use_enable debug asntracing)
+ # revision.h does not exist in ptlib(?)
+ sed -i "/revision.h/d" include/openh323buildopts.h || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)"
+ # these should point to the right directories,
+ # openh323.org apps and others need this
+ sed -i -e "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/$(get_libdir):" \
+ openh323u.mak || die
+ sed -i -e "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ openh323u.mak || die
+ # this is hardcoded now?
+ sed -i -e "s:^\(OPENH323DIR[ \t]\+=\) "${S}":\1 /usr/share/openh323:" \
+ openh323u.mak || die
+}
diff --git a/net-libs/h323plus/h323plus-1.25.0-r2.ebuild b/net-libs/h323plus/h323plus-1.25.0-r2.ebuild
new file mode 100644
index 000000000000..6abbd14d31f1
--- /dev/null
+++ b/net-libs/h323plus/h323plus-1.25.0-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 protocol, successor of OpenH323"
+HOMEPAGE="http://www.h323plus.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV//./_}.tar.gz"
+
+IUSE="aec debug +sound +video"
+SLOT="0/${PV}"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
+
+DEPEND=">=net-libs/ptlib-2.6.4:=[-debug,wav]
+ aec? ( >=media-libs/speex-1.2_rc1 )
+ sound? (
+ media-sound/gsm
+ dev-libs/ilbc-rfc3951
+ )
+ video? (
+ media-libs/libtheora
+ virtual/ffmpeg
+ )
+ net-nds/openldap
+ dev-libs/openssl:0="
+RDEPEND="${DEPEND}
+ !net-libs/openh323"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-param.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-debugoptionlist.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptlib-2.10.10.patch
+}
+
+src_configure() {
+ # TODO: support for h.263/h.264/sbc(bluetooth)/celt/spandsp
+ #export OPENH323DIR=${S}
+ econf \
+ PTLIB_CONFIG="${EPREFIX}/usr/bin/ptlib-config" \
+ $(use_enable video) \
+ $(use_enable sound audio) \
+ $(use_enable aec) \
+ $(use_enable debug asntracing)
+ # revision.h does not exist in ptlib(?)
+ sed -i "/revision.h/d" include/openh323buildopts.h || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)"
+ # these should point to the right directories,
+ # openh323.org apps and others need this
+ sed -i -e "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/$(get_libdir):" \
+ openh323u.mak || die
+ sed -i -e "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ openh323u.mak || die
+ # this is hardcoded now?
+ sed -i -e "s:^\(OPENH323DIR[ \t]\+=\) "${S}":\1 /usr/share/openh323:" \
+ openh323u.mak || die
+}
diff --git a/net-libs/h323plus/metadata.xml b/net-libs/h323plus/metadata.xml
new file mode 100644
index 000000000000..304a5e0c2a93
--- /dev/null
+++ b/net-libs/h323plus/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="aec">Enable acoustic echo cancellation</flag>
+ <flag name="sound">Enable audio codecs</flag>
+ <flag name="video">Enable video codecs</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">h323plus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/http-parser/Manifest b/net-libs/http-parser/Manifest
new file mode 100644
index 000000000000..b0d1efda4d3b
--- /dev/null
+++ b/net-libs/http-parser/Manifest
@@ -0,0 +1,13 @@
+AUX 0001-makefile-fix-DESTDIR-usage.patch 2216 SHA256 785012d9e0efb70c4dcc137f354ab57afabdcb0fb7c8cb2580c3c4a7e9add330 SHA512 ebb481df21cb312824ed65e7d6a3e7b237451071235566595da97c09b165767693ec3c47c27c451bfbdc2d62cc45c7d5d9f996b80789dc7fedaa2543c94c9065 WHIRLPOOL 8d6ddfaaf636d3360a42bc12917d972b520723d8fc05db2d87bf71ea5c3f850d45f65da85b34f8f2243ffe31acaa2d0364f3b15432e507447e6d40151a4ba40a
+AUX 0002-makefile-quote-variables.patch 1848 SHA256 80fdf673731f27f328d45f4da7daa613613d8db40f1dc84d2ce65fad0130c054 SHA512 3637abedbf330af0f4a9721081db99fe0f6400322f21f77ab16d580546a9d200d40bc584e8dbb51adec249c2d468730c6e2487ccda3786626909d988b7f8856a WHIRLPOOL e946f75eb854f7ae81d79bdfced973b43bacdb4227c806b706287b59fef81ccd849f952e950332336681da8d1bbaeab9401a864f83a95937cdc9d5797471ebbe
+AUX 0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch 1286 SHA256 9854f5f205ec0959cc10cab80d16ff54f33a9979e5fd310ba9a4624b60c84ee9 SHA512 8202d665963234ce6dd84439f281921cb959424024c2fec8a27b65693b3466cab8674a3549d22fdb2fc07edf69f94440368ef77738ae4be2a5d94c13e3c814bb WHIRLPOOL 041200f8fa60bb8a0a24ed2bb5c8bae72d45c796c124613053c32c61f81ab2ee7ffb75f6d5a42b7623da6ff2afaeed436a2e74275d79dad7768d05735562cd02
+AUX 0004-makefile-add-CFLAGS-to-linking-command.patch 1038 SHA256 e69fa304327dbb0626edaf147b73dc9fb4718b656b225794a04937206929c0df SHA512 e18c163f2069795fb6b744ad9f6e44eb9efca7f560460a6759bc0121a404bfe8109031c0f43d36d4987bda3411e0a433dbab6d0eabb2dbb5c79f1ce878251aae WHIRLPOOL e9196da8b6544a30258c3ae9bcdceda318317b97b14adb4fc7d7f2636f0ac664e7d0ef024be61aca9d5e0d45e85792d90b3bd9507076a73d266f11733053bc7c
+AUX 0005-makefile-fix-install-rule-dependency.patch 1090 SHA256 04898654adef3f3dbf1e29e66f8e9fc4467f68389e224beb03387d33ee263212 SHA512 4cd120f406eeeb1e5a60c7d8955cdfead50d99b60f91a0fcdb2ae19403d08e5ed5619885c9e434ce40ffb442b317ee8c32ef636960429036f9bff92492f03968 WHIRLPOOL e522fd3eaab1f94c13f33900b37755776c5c48910fa87ccc875b3b08198a21f983bf2728b81b1f2cd64263d1a22940e3daef2d9f97acf708a437584328498ebb
+AUX http-parser-2.6.2-darwin.patch 452 SHA256 293d5852e3fba89fa9280ba80f0a8fbb321abbc43e9d5f9dd60120c4744743d1 SHA512 32b6e637597d57ae511dd421f300f74c9f12c72746989d61455ea00cd0585ed96e2787e0ca0d965f66bc4b7875bd157e90e20f6f6682b20a8d95ae7ccbccdeb1 WHIRLPOOL 5ffd0e71b3f1f72c2d9c3d8982c7d6c0a0a8229d60354a0dfa63320ae8d6ada445587beb0ad8c0d92b52bfbc2c3b2a063a5e864f01f33cd265d3b07306a7f4e1
+DIST http-parser-2.6.2.tar.gz 48292 SHA256 80fffc3b64ef6968cecdd4b299a96986007dff4bd12ae6c58cbcb506959b90ad SHA512 e19e5377b3eb7f149c428196826fb878564fdfa3716ff6df5a3845c51586aee0582e252e09d1f8ebad1163b3e66632ff0c6e78f6acb2f0da20d7a06e734406c1 WHIRLPOOL 25e5f3ff8bc37d8a06d1929e31683326bb4d3a13f1e899e4f357787973be56fc007dd4ad16567067a9bce587ddc81360f777332a097fbb6dcf22cbad26872962
+DIST http-parser-2.7.1.tar.gz 48578 SHA256 70409ad324e5de2da6a0f39e859e566d497c1ff0a249c0c38a5012df91b386b3 SHA512 c0fe86455db1a563a5c668f118dfa9a27b9a637ee1c0e2f2f18a5b816352436ed90435ea978e3f3d85b037d3c630234e47d609dc3b7086b898286c4e54d9f031 WHIRLPOOL be51ed5aed8a01d8d544a21a87f3d1c928c1e2bdca95c71f42ff291a9381381e9fa6d437e52b5818526e59ea81fdf3d92792b6c4f32af62ff169582d57d7ee1d
+EBUILD http-parser-2.6.2.ebuild 1395 SHA256 16a3ff3d919f5d2db9a691e838b6aaddcf842b46acb6719dfc28a002b7369f34 SHA512 ff59a0b6f3b7aef3ca79483384df88eafaf7ad80f05ea809288c6798ce0234f83a9dd41b5b2c80a865c70cb449574b0f2100c87bec2a5c2fecf432874b5a07f3 WHIRLPOOL 291e960e0e308c4d0adf5136a2b997e9de629e5060a8560e3305d7b697ff6f43bb4d9280cd9fb31132973cf0b9b01484dc6734d0e436e9384cabb420f2934fa4
+EBUILD http-parser-2.7.1.ebuild 1353 SHA256 f8e27451128c6a61cd43ec0e430c79400fd7f7e41f9f317d67aa4b505c2acc38 SHA512 0a7730443f49ec26ea9b0c146adbc1a86902446a04a4ee927017ca6c89af193d760758277656204d5f26562dba41dd70c26fae6d2f562d3a07b4fd074b1e8464 WHIRLPOOL 17afb9ef655dcfd1a66b5744584a6004a156795469a0099847a8f4993f75ee573435d3545009d80a0e05426f20604c7da988b7bb9e69cd00a860f8016f641b0e
+MISC ChangeLog 5050 SHA256 f0a226799e7a51377005b1e91012fa66a202af5e902e344594301d452dc08e80 SHA512 3017ad7480f15e28f2b2f18cb90362020cce0aadf844a608e4bbcb37ec97261e25bcbd5c0ae1a78f485c60ef3e6d5c144e009d44fd43f2d50aae121e1f09b637 WHIRLPOOL e8d64ac62705400f31d85c221380a036ba5203e6946e66ede6433847ef38a21aa420792b6616ed59483445351bc7b8f82325b3f98cd530ba1d72f316c60527c8
+MISC ChangeLog-2015 2207 SHA256 a4e427c1f74e2d4d526f67acb0556015956bb98236bfefba4935f7ff7f6de6ad SHA512 dcd33ae28a0652cbe4ab4b86e84ccec084613bde19cd83e74a1c18a90fde1dd97ed820957128f9e0039772d9bbc724b744836fe117ed83ea89e1c8c8811dea2c WHIRLPOOL 05b8b8baa9221698172d95565fc1f937137e663cb95a76fd1e5dc4fce2d390797e512cc4dc48637f5fbd5683ad4e3388975d75faa963afc0ce28a86828779808
+MISC metadata.xml 450 SHA256 49a13ea0730b767e16e500d6cc7b0f7efba56aebea798c63c510cb5db7c6460f SHA512 6204bade65b7aad07bc628a4c0b24ee4fb14d145356732a43b51d41c3fdc92c2592497ecf5e92fcbd6423a2ae2eaa8a46edacd92e92e0fe99aed3da4499889a3 WHIRLPOOL d6c9600d03c3913a3e598f56fcb7c0e3fd7b9b296fbef70c89cc77ecf83792be94343b24cbd5ccb041d6ba6ea442e197e0c961869a39789cfbf1f47edbf5b39c
diff --git a/net-libs/http-parser/files/0001-makefile-fix-DESTDIR-usage.patch b/net-libs/http-parser/files/0001-makefile-fix-DESTDIR-usage.patch
new file mode 100644
index 000000000000..a819cf441d32
--- /dev/null
+++ b/net-libs/http-parser/files/0001-makefile-fix-DESTDIR-usage.patch
@@ -0,0 +1,64 @@
+From 7fbc87986baa09c342abb21e34613e8bbdc3c9c7 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@hasufell.de>
+Date: Mon, 2 Nov 2015 16:24:43 +0100
+Subject: [PATCH 1/4] makefile: fix DESTDIR usage
+
+DESTDIR is not supposed to be set inside other variables. It is
+standard to have this variable in install/uninstall rules, so it
+can be reliably set separately no matter what other variables are set
+to.
+This also avoids potential bugs with setting SONAME or seds on
+installed files (like pkgconfig) which then might include the
+temporary DESTDIR directory.
+
+DESTDIR is really just for installing into a temporary directory or
+a chroot, mostly used by package managers.
+---
+ Makefile | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 33c8ba0..76153a0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -55,7 +55,7 @@ CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
+ LDFLAGS_LIB = $(LDFLAGS) -shared
+
+ INSTALL ?= install
+-PREFIX ?= $(DESTDIR)/usr/local
++PREFIX ?= /usr/local
+ LIBDIR = $(PREFIX)/lib
+ INCLUDEDIR = $(PREFIX)/include
+
+@@ -123,19 +123,19 @@ tags: http_parser.c http_parser.h test.c
+ ctags $^
+
+ install: library
+- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
+- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
+- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
++ $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
++ $(INSTALL) -D $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
++ ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
+
+ install-strip: library
+- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
+- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
+- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
++ $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
++ $(INSTALL) -D -s $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
++ ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
+
+ uninstall:
+- rm $(INCLUDEDIR)/http_parser.h
+- rm $(LIBDIR)/$(SONAME)
+- rm $(LIBDIR)/libhttp_parser.so
++ rm $(DESTDIR)$(INCLUDEDIR)/http_parser.h
++ rm $(DESTDIR)$(LIBDIR)/$(SONAME)
++ rm $(DESTDIR)$(LIBDIR)/libhttp_parser.so
+
+ clean:
+ rm -f *.o *.a tags test test_fast test_g \
+--
+2.6.1
+
diff --git a/net-libs/http-parser/files/0002-makefile-quote-variables.patch b/net-libs/http-parser/files/0002-makefile-quote-variables.patch
new file mode 100644
index 000000000000..096ac6b6bd69
--- /dev/null
+++ b/net-libs/http-parser/files/0002-makefile-quote-variables.patch
@@ -0,0 +1,50 @@
+From 9bce473ba7417b45bfdb59d4151a8857dcfff4ad Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@hasufell.de>
+Date: Mon, 2 Nov 2015 16:27:06 +0100
+Subject: [PATCH 2/4] makefile: quote variables
+
+Make does not take care of this in make rules. If any of the variables
+DESTDIR, INCLUDEDIR or LIBDIR contain whitespaces, then the related
+install command will fail.
+
+This is even more important for the uninstall rule.
+---
+ Makefile | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 76153a0..8c4a9d7 100644
+--- a/Makefile
++++ b/Makefile
+@@ -123,19 +123,19 @@ tags: http_parser.c http_parser.h test.c
+ ctags $^
+
+ install: library
+- $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
+- $(INSTALL) -D $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
+- ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
++ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
++ $(INSTALL) -D $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
++ ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+
+ install-strip: library
+- $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
+- $(INSTALL) -D -s $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
+- ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
++ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
++ $(INSTALL) -D -s $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
++ ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+
+ uninstall:
+- rm $(DESTDIR)$(INCLUDEDIR)/http_parser.h
+- rm $(DESTDIR)$(LIBDIR)/$(SONAME)
+- rm $(DESTDIR)$(LIBDIR)/libhttp_parser.so
++ rm "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
++ rm "$(DESTDIR)$(LIBDIR)/$(SONAME)"
++ rm "$(DESTDIR)$(LIBDIR)/libhttp_parser.so"
+
+ clean:
+ rm -f *.o *.a tags test test_fast test_g \
+--
+2.6.1
+
diff --git a/net-libs/http-parser/files/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch b/net-libs/http-parser/files/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch
new file mode 100644
index 000000000000..cafe68d220c9
--- /dev/null
+++ b/net-libs/http-parser/files/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch
@@ -0,0 +1,35 @@
+From f45b38c42e7e92a5d0215c44dcf306616536011e Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@hasufell.de>
+Date: Mon, 2 Nov 2015 16:32:11 +0100
+Subject: [PATCH 3/4] makefile: fix SONAME symlink, it should not be a full
+ path
+
+The symlink destination being a full path doesn't give any benefit and
+may break a few use cases of copying these files to a different
+destination, while preserving the symlink.
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 8c4a9d7..cbe93e8 100644
+--- a/Makefile
++++ b/Makefile
+@@ -125,12 +125,12 @@ tags: http_parser.c http_parser.h test.c
+ install: library
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+ $(INSTALL) -D $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
+- ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
++ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+
+ install-strip: library
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+ $(INSTALL) -D -s $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
+- ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
++ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+
+ uninstall:
+ rm "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+--
+2.6.1
+
diff --git a/net-libs/http-parser/files/0004-makefile-add-CFLAGS-to-linking-command.patch b/net-libs/http-parser/files/0004-makefile-add-CFLAGS-to-linking-command.patch
new file mode 100644
index 000000000000..e21cd715499b
--- /dev/null
+++ b/net-libs/http-parser/files/0004-makefile-add-CFLAGS-to-linking-command.patch
@@ -0,0 +1,31 @@
+From 62b1450cfe2e0df2d912279d38edf1b916020101 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@hasufell.de>
+Date: Mon, 2 Nov 2015 16:39:31 +0100
+Subject: [PATCH 4/4] makefile: add CFLAGS to linking command
+
+Although we compile the objects explicitly there are some CFLAGS
+that may also affect linking, which is not always obvious.
+
+This can also be a problem for toolchains that support multiple ABIs
+and need to set CFLAGS=<abi selector>, which will cause linking
+to either fail or produce an unusable executable/library.
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index cbe93e8..ae16f08 100644
+--- a/Makefile
++++ b/Makefile
+@@ -102,7 +102,7 @@ libhttp_parser.o: http_parser.c http_parser.h Makefile
+ $(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
+
+ library: libhttp_parser.o
+- $(CC) $(LDFLAGS_LIB) -o $(SONAME) $<
++ $(CC) $(CFLAGS_LIB) $(LDFLAGS_LIB) -o $(SONAME) $<
+
+ package: http_parser.o
+ $(AR) rcs libhttp_parser.a http_parser.o
+--
+2.6.1
+
diff --git a/net-libs/http-parser/files/0005-makefile-fix-install-rule-dependency.patch b/net-libs/http-parser/files/0005-makefile-fix-install-rule-dependency.patch
new file mode 100644
index 000000000000..da966373063f
--- /dev/null
+++ b/net-libs/http-parser/files/0005-makefile-fix-install-rule-dependency.patch
@@ -0,0 +1,33 @@
+From b67bfbe6a07529dd82e2ee83b6848d017e6e422f Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@hasufell.de>
+Date: Mon, 2 Nov 2015 16:51:28 +0100
+Subject: [PATCH 5/5] makefile: fix install rule dependency
+
+Otherwise the install rule will recompile the library, no matter
+if it has already been compiled.
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ae16f08..df0b59f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -122,12 +122,12 @@ parsertrace_g: http_parser_g.o contrib/parsertrace.c
+ tags: http_parser.c http_parser.h test.c
+ ctags $^
+
+-install: library
++install: $(SONAME)
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+ $(INSTALL) -D $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
+ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+
+-install-strip: library
++install-strip: $(SONAME)
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+ $(INSTALL) -D -s $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
+ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+--
+2.6.1
+
diff --git a/net-libs/http-parser/files/http-parser-2.6.2-darwin.patch b/net-libs/http-parser/files/http-parser-2.6.2-darwin.patch
new file mode 100644
index 000000000000..b04b4a32bb01
--- /dev/null
+++ b/net-libs/http-parser/files/http-parser-2.6.2-darwin.patch
@@ -0,0 +1,16 @@
+Makefile: set install_name on Darwin
+
+https://bugs.gentoo.org/show_bug.cgi?id=546098
+https://github.com/nodejs/http-parser/issues/356
+
+--- http-parser-2.6.2/Makefile
++++ http-parser-2.6.2/Makefile
+@@ -62,6 +62,8 @@
+ ifneq (darwin,$(PLATFORM))
+ # TODO(bnoordhuis) The native SunOS linker expects -h rather than -soname...
+ LDFLAGS_LIB += -Wl,-soname=$(SONAME)
++else
++LDFLAGS_LIB += -Wl,-install_name,$(LIBDIR)/$(SONAME)
+ endif
+
+ test: test_g test_fast
diff --git a/net-libs/http-parser/http-parser-2.6.2.ebuild b/net-libs/http-parser/http-parser-2.6.2.ebuild
new file mode 100644
index 000000000000..33986a95474a
--- /dev/null
+++ b/net-libs/http-parser/http-parser-2.6.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs multilib multilib-minimal
+
+DESCRIPTION="Http request/response parser for C"
+HOMEPAGE="https://github.com/nodejs/http-parser"
+SRC_URI="https://github.com/nodejs/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86 ~amd64-linux ~x64-macos ~x64-solaris"
+IUSE="static-libs"
+
+# https://github.com/nodejs/http-parser/pull/272
+PATCHES=(
+ "${FILESDIR}"/0001-makefile-fix-DESTDIR-usage.patch
+ "${FILESDIR}"/0002-makefile-quote-variables.patch
+ "${FILESDIR}"/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch
+ "${FILESDIR}"/0004-makefile-add-CFLAGS-to-linking-command.patch
+ "${FILESDIR}"/0005-makefile-fix-install-rule-dependency.patch
+ "${FILESDIR}"/${PN}-2.6.2-darwin.patch
+)
+
+src_prepare() {
+ tc-export CC AR
+ epatch "${PATCHES[@]}"
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
+ use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
+}
+
+multilib_src_test() {
+ emake CFLAGS_DEBUG="${CFLAGS}" test
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+ use static-libs && dolib.a libhttp_parser.a
+}
diff --git a/net-libs/http-parser/http-parser-2.7.1.ebuild b/net-libs/http-parser/http-parser-2.7.1.ebuild
new file mode 100644
index 000000000000..94a06a97b5ec
--- /dev/null
+++ b/net-libs/http-parser/http-parser-2.7.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs multilib-minimal
+
+DESCRIPTION="Http request/response parser for C"
+HOMEPAGE="https://github.com/nodejs/http-parser"
+SRC_URI="https://github.com/nodejs/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos ~x64-solaris"
+IUSE="static-libs"
+
+# https://github.com/nodejs/http-parser/pull/272
+PATCHES=(
+ "${FILESDIR}"/0001-makefile-fix-DESTDIR-usage.patch
+ "${FILESDIR}"/0002-makefile-quote-variables.patch
+ "${FILESDIR}"/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch
+ "${FILESDIR}"/0004-makefile-add-CFLAGS-to-linking-command.patch
+ "${FILESDIR}"/0005-makefile-fix-install-rule-dependency.patch
+)
+
+src_prepare() {
+ default
+ tc-export CC AR
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
+ use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
+}
+
+multilib_src_test() {
+ emake CFLAGS_DEBUG="${CFLAGS}" CFLAGS_FAST="${CFLAGS}" test
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+ use static-libs && dolib.a libhttp_parser.a
+}
diff --git a/net-libs/http-parser/metadata.xml b/net-libs/http-parser/metadata.xml
new file mode 100644
index 000000000000..58faa9ffa1f1
--- /dev/null
+++ b/net-libs/http-parser/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bugs@bergstroem.nu</email>
+ <name>Johan Bergström</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nodejs/http-parser</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/iax/Manifest b/net-libs/iax/Manifest
new file mode 100644
index 000000000000..b6178c10c725
--- /dev/null
+++ b/net-libs/iax/Manifest
@@ -0,0 +1,10 @@
+AUX 0.2.2-debug.patch 684 SHA256 bbe0f3cda8171521faa53515d85404249c5cde97e682eccafe903710ef052060 SHA512 5d8299df8c5f73466ee7e9a8523793f787906717268bc991f2f02e63dbe8e592fee97fbee5f227d7e350e7091557bdbae8820f9367b7a1a7de43cff74503c0c9 WHIRLPOOL 834fb1bd9e8dc41956abc67dbdf35c1e51b3e93e4a6e0a1e44ae501adf1225365b0b12a6db73b3d760c22bc57f3bb61e9addf01ba2cffe94e8bc2f7c915bd80e
+AUX 0.2.2-memset.patch 482 SHA256 c90dc739c13ff8e34037fa03928580f7f80e7e51b8cd83dde4660410bcf66771 SHA512 70f98b10b5899326d5480ea72e785038320b22ec3c7ff42015a716de425313c42b79184063ef7fbdf29c1164d0ecf316d2621685065a84fe7f305c7aab2d0a87 WHIRLPOOL e10110713eb66ad30aa0c255039c15fa6bd567c40f431b1c5a02f9c6716e3ca81182ff4348603baa5a4cb2592aeefba01a2dc4f992cbde32025943ff4510aebe
+AUX 0.2.2-sandbox.patch 753 SHA256 7bda0ef143742136a2fde3420693b74218dcc07a4b855d40546a20b065d0caff SHA512 b6d726272c62ffdd2c6f8bdc484990ef8ab6a0b9bf4909c896d6d7e41f2df027b6eb37f0c077b39fa05f849e6d5c40a341af2239dc312285e6ef3d3084a1c5bf WHIRLPOOL c654b7663a0a1a13df2e35908525fdd96b3da6f7b2446d04882e6818a42f47dc34116772f3d6761c06938747396eb264bcc0690726e0d8c686b41de7e1fab670
+DIST iax-0.2.2.tar.gz 139379 SHA256 7c3caf939a821440407931a13838dd0dfea21fbec373d1985e2604df5d149cb8 SHA512 f86fc56c9f31665e849e8528d2852e06abd803e8d02fa6098d68eefecccc263ded97d1870e9ee157ec1610fefc92b8f14f2d858fbce115c5da83a6dec1eea210 WHIRLPOOL c5b3c1148b93fc2411f316e80aad73c1c5eb83ad8c01dd6ecabf6d62b64f4cafd20bb83bfb1ba7a197e27afc71ba48c4ac8571489f48c298783f8f94865518ed
+EBUILD iax-0.2.2-r1.ebuild 1110 SHA256 6f7fb8d35157c5453c42494ba2378d0a174e2b4781eb27a32e0620a6cce0a007 SHA512 d0416db04ea7fe0f674c476bcab031e7b99596cea948dce526bde31b0bdeb4b0076dc4068d0a13b404622ae3d41a75f23ccb4751e81fe2392d342d6ca7799d99 WHIRLPOOL c4690ea597ad3ab00b9130fe2d84d8bb8b517c69ec17f1a467a5dd1a4de5ff381c7d3bc6e307e1b33eece8e50abd9b377b9ed9dcc78df46c27cde184819099b9
+EBUILD iax-0.2.2-r3.ebuild 718 SHA256 52147f1c9f52a9d4e3548b97c6756e060941bbca350aeeeefd3ac97c50eac268 SHA512 b42e54f48e515c6bb195a0168d576b22b1c0f500798e38ed369dae1b24c70b75f29a96aaa6d1a0b1574b338131949ab8d04872ef45bc480645fa8dda50d26fa7 WHIRLPOOL c81bcb78cd110539ee9c880538afb8c4cdd0aab7c55be93d7c474087ace1ffe3f9d777cfb070d9505f5200854935b29a1ca8805929e9e1e3420ac1c9a90d9bc4
+EBUILD iax-0.2.2.ebuild 544 SHA256 d6059d2ffb12fae8fe60b66890c57d0ed559000d27e24522737fd0baab36c612 SHA512 66d08edf5b744af7e6e4056b4e6e377c0801d5efed4fa2fe055375ee3895fdc88e0a2e81c912ccfc20e525e2e87f597e0c9eca882fd181ae07bcbd078405ed39 WHIRLPOOL a28ab9bc749c204332e1cfc41ab5783c18a31ff0c5ea00eaecc1e8d8e7bddebe7cb2bfaad02ec92ee43cfa8eeb0ebcc161c94b90868fb036949174a99987f5bd
+MISC ChangeLog 2740 SHA256 cfb03e36f65e66642abe1e6b326f47ff6b9c2d405c31a0ead9500136a7e59a35 SHA512 b53d73d03dc7b5e23eea040fba5aeb511bcb84b47279a6f70827e1d1e88747531ea7f68839a9998afbe292e749cbcf23f1be9fdd567f2d5ef3426f00580fdd6f WHIRLPOOL f2e409965e83ef861fc317b027a6fc0a77108fe8c809a5610f502abc402714bcd495e95e826eb4c83aa7cf581d326e0b4807246ec10507329a851c0b5fded43a
+MISC ChangeLog-2015 2052 SHA256 ae5a451206ac5f2c16c7763b82372094275085f8004410cf87b3e374b7cd60f8 SHA512 96ff2454bd96e057152c65e473ad4ff44aaea5d172e8de0b548d3254ad536d5e8929a5318a4b6a7cd03e265592bf91f904700e4dfd500a84fc0774d4870a7e9c WHIRLPOOL d57c0669b6194663748fa73b671607cbc46723880b0e3cccaf183f84ed599546bb011b849d4ebac86c5071fbcfa11c795ccf37290f6b88bfa624e9f7be64b800
+MISC metadata.xml 294 SHA256 cd5047c375c13f8f1530aee86812734a5936853e1104b8e6880430e67f337bca SHA512 d2a7e75b1cd19f4218697e94518b8b6a225437924352c200fb3ba180197ace527752e1b12f490c3a265e8f9952976ad1078743985d83b19239447d658230a42a WHIRLPOOL cb30a8025363918418ee1076be580ff37e6998592441693d34822187205be243a0a1b7a7f28ea553d5c88cf08140167fceb7ed2f1b88b20fe34942732b72dcd2
diff --git a/net-libs/iax/files/0.2.2-debug.patch b/net-libs/iax/files/0.2.2-debug.patch
new file mode 100644
index 000000000000..68efdfdd237a
--- /dev/null
+++ b/net-libs/iax/files/0.2.2-debug.patch
@@ -0,0 +1,21 @@
+diff -uNr iax-0.2.2.ORIG/configure.in iax-0.2.2/configure.in
+--- iax-0.2.2.ORIG/configure.in 2014-05-13 13:23:35.083867921 +0100
++++ iax-0.2.2/configure.in 2014-05-13 13:24:25.879870451 +0100
+@@ -25,6 +25,8 @@
+ fi
+
+ if test "$enable_extreme_debug" = yes ; then
++ AC_DEFINE(DEBUG_SUPPORT)
++ AC_DEFINE(DEBUG_DEFAULT)
+ AC_DEFINE(EXTREME_DEBUG)
+ fi
+
+diff -uNr iax-0.2.2.ORIG/src/Makefile.am iax-0.2.2/src/Makefile.am
+--- iax-0.2.2.ORIG/src/Makefile.am 2014-05-13 13:23:35.082867921 +0100
++++ iax-0.2.2/src/Makefile.am 2014-05-13 13:24:32.439870777 +0100
+@@ -1,5 +1,4 @@
+ CFLAGS += -g -Wall -Wstrict-prototypes -I .
+-CFLAGS += -DDEBUG_SUPPORT -DDEBUG_DEFAULT
+ CFLAGS += $(UCFLAGS)
+
+
diff --git a/net-libs/iax/files/0.2.2-memset.patch b/net-libs/iax/files/0.2.2-memset.patch
new file mode 100644
index 000000000000..08408eef98f7
--- /dev/null
+++ b/net-libs/iax/files/0.2.2-memset.patch
@@ -0,0 +1,12 @@
+diff -uNr iax-0.2.2.ORIG/src/md5.c iax-0.2.2/src/md5.c
+--- iax-0.2.2.ORIG/src/md5.c 2014-05-13 13:26:51.570877706 +0100
++++ iax-0.2.2/src/md5.c 2014-05-13 13:27:08.567878553 +0100
+@@ -165,7 +165,7 @@
+ MD5Transform(ctx->buf, (uint32 *) ctx->in);
+ byteReverse((unsigned char *) ctx->buf, 4);
+ memcpy(digest, ctx->buf, 16);
+- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
++ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
+ }
+
+ #ifndef ASM_MD5
diff --git a/net-libs/iax/files/0.2.2-sandbox.patch b/net-libs/iax/files/0.2.2-sandbox.patch
new file mode 100644
index 000000000000..2dc141a73b18
--- /dev/null
+++ b/net-libs/iax/files/0.2.2-sandbox.patch
@@ -0,0 +1,19 @@
+diff -uNr iax-0.2.2.ORIG/src/Makefile.am iax-0.2.2/src/Makefile.am
+--- iax-0.2.2.ORIG/src/Makefile.am 2014-05-13 12:45:58.343755528 +0100
++++ iax-0.2.2/src/Makefile.am 2014-05-13 12:46:30.044757107 +0100
+@@ -9,10 +9,9 @@
+ EXTRA_DIST = md5.h frame.h iax-client.h iax.h
+
+ install:
+- mkdir -p $(includedir)/iax
+- install -m 644 md5.h $(includedir)/iax
+- install -m 644 frame.h $(includedir)/iax
+- install -m 644 iax.h $(includedir)/iax
+- install -m 644 iax-client.h $(includedir)/iax
+- /sbin/ldconfig
++ mkdir -p $(DESTDIR)$(includedir)/iax
++ install -m 644 md5.h $(DESTDIR)$(includedir)/iax
++ install -m 644 frame.h $(DESTDIR)$(includedir)/iax
++ install -m 644 iax.h $(DESTDIR)$(includedir)/iax
++ install -m 644 iax-client.h $(DESTDIR)$(includedir)/iax
+
diff --git a/net-libs/iax/iax-0.2.2-r1.ebuild b/net-libs/iax/iax-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..5bdaf96a5ee8
--- /dev/null
+++ b/net-libs/iax/iax-0.2.2-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE="debug snomhack"
+
+src_prepare() {
+ if ! use debug; then
+ sed -i -e "s:-DDEBUG_SUPPORT -DDEBUG_DEFAULT ::" src/Makefile.in \
+ || die "sed failed"
+ fi
+
+ # use users CFLAGS and LDFLAGS
+ sed -i -e "s:CFLAGS =:CFLAGS+=:" src/Makefile.in || die "sed failed"
+ sed -i -e "s:\(libiax_la_LDFLAGS = \):\1@LDFLAGS@:" src/Makefile.in \
+ || die "sed failed"
+
+ # fix sandbox violations
+ sed -i -e "s:\(\$(includedir)/iax\):\$(DESTDIR)\1:" src/Makefile.in \
+ || die "sed failed"
+ sed -ie -e "/\/sbin\/ldconfig/d" src/Makefile.in || die "sed failed"
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug extreme-debug) \
+ $(use_enable snomhack)
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+}
diff --git a/net-libs/iax/iax-0.2.2-r3.ebuild b/net-libs/iax/iax-0.2.2-r3.ebuild
new file mode 100644
index 000000000000..8f8fb31fe582
--- /dev/null
+++ b/net-libs/iax/iax-0.2.2-r3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools eutils
+
+DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug snomhack"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-debug.patch"
+ epatch "${FILESDIR}/${PV}-memset.patch"
+ epatch "${FILESDIR}/${PV}-sandbox.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug extreme-debug) \
+ $(use_enable snomhack)
+}
+
+src_install () {
+ default
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+}
diff --git a/net-libs/iax/iax-0.2.2.ebuild b/net-libs/iax/iax-0.2.2.ebuild
new file mode 100644
index 000000000000..69b8e7d96bf5
--- /dev/null
+++ b/net-libs/iax/iax-0.2.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+IUSE=""
+
+DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
+HOMEPAGE="http://www.digium.com/"
+LICENSE="LGPL-2"
+DEPEND=""
+RDEPEND=""
+SLOT="0"
+SRC_URI="http://www.digium.com/pub/libiax/${P}.tar.gz"
+
+D_PREFIX=/usr
+
+KEYWORDS="x86 ppc"
+
+src_compile() {
+ ./configure --prefix=${D_PREFIX} --enable-autoupdate
+
+ export UCFLAGS="${CFLAGS}"
+
+ emake || die
+}
+
+src_install () {
+ make prefix="${D}"/${D_PREFIX} install
+ dodoc NEWS AUTHORS README
+}
diff --git a/net-libs/iax/metadata.xml b/net-libs/iax/metadata.xml
new file mode 100644
index 000000000000..e0ad3a6e3323
--- /dev/null
+++ b/net-libs/iax/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 type="person"><email>chainsaw@gentoo.org</email></maintainer>
+ <use>
+ <flag name="snomhack">Use slower memset for SNOM phoneem</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/ignition-msgs/Manifest b/net-libs/ignition-msgs/Manifest
new file mode 100644
index 000000000000..752cf5bc8c45
--- /dev/null
+++ b/net-libs/ignition-msgs/Manifest
@@ -0,0 +1,4 @@
+DIST ignition-msgs-0.7.0.tar.bz2 327753 SHA256 5e749ddad57e3e471e01cfc240a9602595dc095952cf34436c40864add08b9dc SHA512 78b35eb6c9b53bd567d227191009cfb8628afa70f244cf05ad9440f370aa9c51a649160c9c65d13e81a48a3a34553614e9835e9a37fb91cad330c363f0a5f62f WHIRLPOOL 8d0f08bd289946713dab64b1a543b815192e0ac60c3d061545e64a135079ea6aa597bce559fb621914ef51ee875f0667b200fd0ce3bba61a578e6ddd3f916a7e
+EBUILD ignition-msgs-0.7.0.ebuild 901 SHA256 b9f5394640d69496c68f514770feeb63e1f097fb2f5524f22b06011bccb73113 SHA512 58e5851d77dfb52085c7f3311829a9076d8f3a54d1917aff7587d054e164646f10e47f7ea540eff93b19cfa3a829f6993b28a291501ec45be2e85a7ea6b11489 WHIRLPOOL 2fefa3ba13a5246b49ff4dc3cf0d2b96a642c6c6d753ac4569e80eb5b07e57ad1671a18ac9cea750c40c3d5f62c8377b0c4293e624d1e8224b3ccedcb088414f
+MISC ChangeLog 693 SHA256 3c33b6a1dca70b6b65b1fba9c90648e0e8563dcb18dd7992354efd516b86b7b7 SHA512 2added0e5265fdf1de178adc1b98ede7ecf18c2b6516a66916e48cbf1b80ce0f4f3d7a3536d4ae26fb9456cdb112c17ee8dc8aab93a98fa55170f682de6d9175 WHIRLPOOL 60ef1a16c108d8810e949e7bbd95a8d89b89ae2af7571c9dda37185938ce8dfac566f6d40d202891054b8cfc0ef2d3d7db35323f22ab4c9435ede37bdb353ab6
+MISC metadata.xml 342 SHA256 b606461779b25769a789b2fb5b800fe785b4f9c2bd2385ed5c347022eb888ffd SHA512 4ec21d1b2f7525d07b3bbc624ec55edf1282652c74ee548e77c1b25c0242b0f01f846bdbe2203dca8c0217f25e5fc50ad6ff57f33694ea223941c8aaa8bc35fe WHIRLPOOL 2cae2d0219dd4596b5eac710bdea70ac4b17b37db8b3a3a29f86f56331e4542dcb99daf82ac7dfad59805f7ed2478decda6887c07067fe07120cec4ff0a292d7
diff --git a/net-libs/ignition-msgs/ignition-msgs-0.7.0.ebuild b/net-libs/ignition-msgs/ignition-msgs-0.7.0.ebuild
new file mode 100644
index 000000000000..93ae81eb5bb8
--- /dev/null
+++ b/net-libs/ignition-msgs/ignition-msgs-0.7.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Protobuf messages and functions for robot applications"
+HOMEPAGE="http://ignitionrobotics.org/libraries/messages https://bitbucket.org/ignitionrobotics/ign-msgs"
+SRC_URI="https://osrf-distributions.s3.amazonaws.com/ign-msgs/releases/${P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-libs/protobuf:=
+ sci-libs/ignition-math:3="
+RDEPEND="${DEPEND}"
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+src_configure() {
+ # upstream appends this conditionally...
+ append-flags "-fPIC"
+ echo "set (CMAKE_C_FLAGS_ALL \"${CXXFLAGS} \${CMAKE_C_FLAGS_ALL}\")" > "${S}/cmake/HostCFlags.cmake"
+ sed -i -e "s/LINK_FLAGS_RELWITHDEBINFO \" \"/LINK_FLAGS_RELWITHDEBINFO \" ${LDFLAGS} \"/" cmake/DefaultCFlags.cmake || die
+ cmake-utils_src_configure
+}
diff --git a/net-libs/ignition-msgs/metadata.xml b/net-libs/ignition-msgs/metadata.xml
new file mode 100644
index 000000000000..9b5bce8e868c
--- /dev/null
+++ b/net-libs/ignition-msgs/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="bitbucket">ignitionrobotics/ign-msgs</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/ignition-transport/Manifest b/net-libs/ignition-transport/Manifest
new file mode 100644
index 000000000000..b971433bfdf9
--- /dev/null
+++ b/net-libs/ignition-transport/Manifest
@@ -0,0 +1,4 @@
+DIST ignition-transport3-3.0.1.tar.bz2 384679 SHA256 c2b8dd5f391a30f1239893b51d4ea487fd47bfe12ccdb3876a83df192df666be SHA512 a2e80d3b5a8b0ca327bd8892d1177f8316d3e2dbbb6f064626e00eb5e67572519377290973527d69ab4a8ff3970c350a7066625429d3a8403a5be8d491fb89c6 WHIRLPOOL 986b4af3deb1d24c3a4f9ff89b3e526efbf68f278b9ed0fff513fbf095e2f1752a4552a8c652545619fa3f5223f0353b68c728af0623f0ec66a2f6bc5aee01a5
+EBUILD ignition-transport-3.0.1.ebuild 1049 SHA256 0c2757e617617cbe3cb31845528738fcfe23aa0be4de19a5a6224d88f144954e SHA512 0f327196dcff9067c14c14b8287bff381654f6ec84687bd3bf2c953c0b5e006eb0f535655c9d35d358a83b0373a012fc0cde14e994c1d68e89ac4a3f943c84ca WHIRLPOOL 1e3d777bb1c30ba1b2176aa47f2d40bbe0541647593fc19efa04181bf38b22b0926e1820bb51fc45bc6ee85392380c80d9e2da410782ebb6e783dc5f17020c7b
+MISC ChangeLog 3296 SHA256 05f37ec56ff1635d9cee1c7a4c2f8bcfcd5be06daf45fd07df5b5eb7a8cef9ce SHA512 b6174d5e9beae6404ce8c95a7af03e2d9df395478f91947d0c3cbcd0810c4526d5252c0cc2481c51c132a0bee8d7786544001d33fba545b45798e7492dd876a6 WHIRLPOOL 0c5f4141394e83522ee3f1ceafecc49a9664a7838f8ce5d3d38abf5a4dca4ce12e7247f217436f60467dbd95bf1e52a3f0d08874f40cdd796dd295bc27c94cb0
+MISC metadata.xml 243 SHA256 15deb598d18c4f8b8de5be1aa70b9f355143d083acd82d6ecb15eef490960590 SHA512 c9d5c1cdd2874fe293f21f7584c6e15ef9439bd82b0d2e862e3e34c9a9e0e3191370fee2727b9d4d8647fb85cf56a39fdd6c1e0003ada1554496aad311ef335c WHIRLPOOL 1a3dcdd25c150262234f12dc0b25a8a5f67acf1ae5e7e7195b472ed0c7ee869a105c19125f8e58401c8ff7a8b2ca86db6b0cf382045130a50dbb79f3cd3cf5ec
diff --git a/net-libs/ignition-transport/ignition-transport-3.0.1.ebuild b/net-libs/ignition-transport/ignition-transport-3.0.1.ebuild
new file mode 100644
index 000000000000..8c6b71bda1c3
--- /dev/null
+++ b/net-libs/ignition-transport/ignition-transport-3.0.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils vcs-snapshot flag-o-matic
+
+DESCRIPTION="Combines ZeroMQ with Protobufs to create a fast and efficient message passing system"
+HOMEPAGE="http://ignitionrobotics.org/libraries/transport"
+SRC_URI="http://gazebosim.org/distributions/ign-transport/releases/${PN}3-${PV}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="3/3"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ net-libs/ignition-msgs:=
+ dev-libs/protobuf:=
+ >=net-libs/zeromq-3.2.0:=
+ sys-apps/util-linux
+ net-libs/cppzmq
+"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ virtual/pkgconfig"
+CMAKE_BUILD_TYPE=RelWithDebInfo
+S="${WORKDIR}/${PN}3-${PV}"
+
+src_configure() {
+ # upstream appends this conditionally...
+ append-flags "-fPIC"
+ echo "set (CMAKE_C_FLAGS_ALL \"${CXXFLAGS} \${CMAKE_C_FLAGS_ALL}\")" > "${S}/cmake/HostCFlags.cmake"
+ sed -i -e "s/LINK_FLAGS_RELWITHDEBINFO \" \"/LINK_FLAGS_RELWITHDEBINFO \" ${LDFLAGS} \"/" cmake/DefaultCFlags.cmake || die
+ cmake-utils_src_configure
+}
diff --git a/net-libs/ignition-transport/metadata.xml b/net-libs/ignition-transport/metadata.xml
new file mode 100644
index 000000000000..6ca4a599be8f
--- /dev/null
+++ b/net-libs/ignition-transport/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 type="person">
+<email>aballier@gentoo.org</email>
+<name>Alexis Ballier</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/jreen/Manifest b/net-libs/jreen/Manifest
new file mode 100644
index 000000000000..c9aecf8ba28b
--- /dev/null
+++ b/net-libs/jreen/Manifest
@@ -0,0 +1,5 @@
+DIST jreen-1.3.0.tar.gz 287827 SHA256 f93c3d338c011c0945dacb14eb9da3be9541028c9eaa6f2024e688eb8a49b07e SHA512 7b8267aa7d0e18c28dfeb6a1c7c0495d87bd2712fe10a0c6283f0cf89b72d2c67f98f97a812c9f34496af43eb00ddd94b7e60e942634fb03d0119f94a3d08464 WHIRLPOOL 6a6e0f469e344eab2f0c745411091867bddeaeabf0dad8ff8ebb58521d1d9a0b07d6bb389fb9cf937cfc2974b834951baf4de514eef6ae5c087f72c6c0d6f604
+EBUILD jreen-1.3.0.ebuild 1364 SHA256 5dca5d3fdb3981d06e7c3d3d2615d831b337adac99eff270f8edb9e589d5d8fc SHA512 5df25a082f5112b2f32ed4f3ef2d59335db868023f1eb4259adf5f635ea237144cb6a0dd430f76fb6367ceafc1d883dc027134dfc82bbbf707bc204bcfdd282e WHIRLPOOL 61045fb1cd57eaf524fde32b6dfc8cd73348566db20b10091f3e4eae17ec52a9ac0f580cdf5fe15f24488063ae5c92052b500d8d26118b9566ab8c5f29ec5858
+MISC ChangeLog 3385 SHA256 9e54396ec22b152e3f3fcf1ed23b2eacd2fb09ef3c31b30750cfd311980133ff SHA512 94d74d8ba1a72f82ba91c27616d6720052bd735b13f518ff61aa0298a083705b0104fdaefcd2bd68d0bfae5383c0e598a5fc884a4ac2988b72ed16aa94833bb7 WHIRLPOOL baeb4c087500406a7452c15a573ec69ef9407cdc5aea4f13ee13cfa0eb28a4f6d9ff57055df2ae3a7c3fdd6a0235647899bd77b647f1502982acdea14b993722
+MISC ChangeLog-2015 3184 SHA256 f878da5e3ee9c891b2bbd590e05ea0354a32aeede63db7f2cd15cba30280f5e1 SHA512 ec6f31d770f494612b9cd7fd9e0dbabe195f3724983a6b67f82cac16051fa6c6eb8802210ed89be70e8b72d7fa131b215fe086b70a84b5784f33976d5a74ce11 WHIRLPOOL 54b9e13b3cce78b4e237cb0a5b57fac405f56ad8f21afacf8985383d2efa8ebc0c911d19e162cb878a25dce262583c14089adbeab8a62637bc5082447c66dc10
+MISC metadata.xml 331 SHA256 261d4724d2b702fdf218b8f0ec6c7d850201d2643f0fee9e3139196546a767d0 SHA512 0fdd8e27d2048fc9430b7f0e079794298095dc3987fe7bfedb81dbc6fb85490fd0642f6f7b1d669a00b2a657b64b0b7b0f155d9787f5082954ad2c840355d301 WHIRLPOOL 9951f412c60ff0e7aaf36e56cda4f1a2f2973d07d2e255dbf7af23aa2ee304577bdc38b8be64a41dfef9b9c43c3b0c486a94587dba1b31fe51c12ce2393c8c90
diff --git a/net-libs/jreen/jreen-1.3.0.ebuild b/net-libs/jreen/jreen-1.3.0.ebuild
new file mode 100644
index 000000000000..aea62ff61251
--- /dev/null
+++ b/net-libs/jreen/jreen-1.3.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} != *9999* ]]; then
+ SRC_URI="https://github.com/euroelessar/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 ~ppc x86"
+else
+ GIT_ECLASS="git-r3"
+ EGIT_REPO_URI="https://github.com/euroelessar/${PN}.git"
+fi
+
+inherit cmake-utils multibuild ${GIT_ECLASS}
+
+DESCRIPTION="Qt XMPP library"
+HOMEPAGE="https://github.com/euroelessar/jreen"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug +qt4 qt5"
+
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ media-libs/speex
+ net-libs/libgsasl
+ sys-libs/zlib
+ qt4? (
+ dev-qt/qtcore:4[ssl]
+ dev-qt/qtgui:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5
+ )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS ChangeLog README.md )
+
+pkg_setup() {
+ MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
+}
+
+src_configure() {
+ myconfigure() {
+ local mycmakeargs=()
+
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ mycmakeargs+=( -DJREEN_FORCE_QT4=ON )
+ fi
+ if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ mycmakeargs+=( -DJREEN_FORCE_QT4=OFF )
+ fi
+
+ cmake-utils_src_configure
+ }
+
+ multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+ multibuild_foreach_variant cmake-utils_src_compile
+}
+
+src_install() {
+ multibuild_foreach_variant cmake-utils_src_install
+}
+
+src_test() {
+ multibuild_foreach_variant cmake-utils_src_test
+}
diff --git a/net-libs/jreen/metadata.xml b/net-libs/jreen/metadata.xml
new file mode 100644
index 000000000000..d95a04314e21
--- /dev/null
+++ b/net-libs/jreen/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">euroelessar/jreen</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/kdav2/Manifest b/net-libs/kdav2/Manifest
new file mode 100644
index 000000000000..f8c2731676e3
--- /dev/null
+++ b/net-libs/kdav2/Manifest
@@ -0,0 +1,3 @@
+DIST kdav2-0.1.0.tar.xz 47012 SHA256 0e4028c4f1f76b315bb54eb7d3e216e7456a445085c47cdca0f7a58368fe6c36 SHA512 4d4e19ed9b8b44f5eea7d40d24dd4accd6b41ea5020b492d83d85ff7fee1e0bc72f50667a31b8021fe9aaa45fbaa6dea86fdb81a4f4db45d9d16ba98adb636b4 WHIRLPOOL 6211fe4d2142be8d2f2643797786d1bc0c115933dd74a046575491d820a4962f94866f01a8d54beee1bca121dab8832fed12b3f22566c314fb4b3fe02d8b424c
+EBUILD kdav2-0.1.0.ebuild 475 SHA256 64023b5a7a4826b98dc15133b9beb87ba9170595b7df3317ff0b1a4476eaaa2f SHA512 947b7a85e1e99ed2f842b72e3fb6e5186efef1a91c4072bd22ffbfadb9fe542b3336b718cd6d89ac4b54634364f0db857607326ac5a95b7796b67c818ba6967e WHIRLPOOL b866e4d934db3f21853b1d32edab59cdfda45f1cb799376fe95bbb757a090b72942d85f3525d751b158c1ec623c85d9636e971e4d68c0faf2d7e70987c6ef6b7
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/kdav2/kdav2-0.1.0.ebuild b/net-libs/kdav2/kdav2-0.1.0.ebuild
new file mode 100644
index 000000000000..4cab5434a661
--- /dev/null
+++ b/net-libs/kdav2/kdav2-0.1.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="KJob based DAV protocol implementation"
+SRC_URI="mirror://kde/unstable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcoreaddons)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtxml)
+ $(add_qt_dep qtxmlpatterns)
+"
+RDEPEND="${DEPEND}"
diff --git a/net-libs/kdav2/metadata.xml b/net-libs/kdav2/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/kdav2/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/kimap2/Manifest b/net-libs/kimap2/Manifest
new file mode 100644
index 000000000000..0a1b67db1307
--- /dev/null
+++ b/net-libs/kimap2/Manifest
@@ -0,0 +1,5 @@
+DIST kimap2-0.1.1.tar.xz 91572 SHA256 c51c7b0546020dc112b1f5d402e3c082196fb3c968b7145acae53015bcbc6842 SHA512 165d6399f409d39a92aaee5337b78e15ec7ab4820816765942a8d86c05b11038c856c1be43e79f0b0a44784671714426b64f33ca3779126539e97ed347d38d69 WHIRLPOOL 30b1d812c35b7577844b9616471ed37302b0f3ba0fec067e76c5919c424bb640a164987876fb3d4b075cd9a9bd10b4613ad225638909697233f300464763145b
+DIST kimap2-0.2.0.tar.xz 91624 SHA256 b99125de1f8170c62d79dcc4baa456b64340d428e127ee993df470ce76a7ea33 SHA512 33258217767cec2f0a3b7f47d733701fb90239b32ae8ae96bcac4215b059e7ab245d4c151e18f924c13f5a7bbfc890ecac6ccdccc40c91e008e44b67c322a8d4 WHIRLPOOL c69e41051addba6a996dabf4e52401ea46742dd36b0ca9ebaccabd2f8b7e9de0dd9500f1c7bffb870b28c7799039d11cc007a6fe4e72442626209c641c33dc43
+EBUILD kimap2-0.1.1.ebuild 501 SHA256 96586944b6a42c86607ca2da2ee560db2a9c158ec3005a959d987ce1777c4e6c SHA512 386ad70ff988d9e1ef7cbd90ede90aee829a843e615b1b1462bc940a0b844dad6be3f91b8636b42aa92dfa52b5f71fe5e2e8e06f3d6d70c22a8a069f586a6e0d WHIRLPOOL fd5e0efbfa2dfc9926014e455acee78893692b2ec1e0c3c21dc28a18783b16f4b5fbbb6cb036de4934390f345b0c846dbd979ea32bf27afb3e860ce9430d7f14
+EBUILD kimap2-0.2.0.ebuild 501 SHA256 96586944b6a42c86607ca2da2ee560db2a9c158ec3005a959d987ce1777c4e6c SHA512 386ad70ff988d9e1ef7cbd90ede90aee829a843e615b1b1462bc940a0b844dad6be3f91b8636b42aa92dfa52b5f71fe5e2e8e06f3d6d70c22a8a069f586a6e0d WHIRLPOOL fd5e0efbfa2dfc9926014e455acee78893692b2ec1e0c3c21dc28a18783b16f4b5fbbb6cb036de4934390f345b0c846dbd979ea32bf27afb3e860ce9430d7f14
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/kimap2/kimap2-0.1.1.ebuild b/net-libs/kimap2/kimap2-0.1.1.ebuild
new file mode 100644
index 000000000000..f949479249a0
--- /dev/null
+++ b/net-libs/kimap2/kimap2-0.1.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit kde5
+
+DESCRIPTION="Library for interacting with IMAP servers - successor of kimap"
+SRC_URI="mirror://kde/unstable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcodecs)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_kdeapps_dep kmime)
+ $(add_qt_dep qtnetwork)
+ dev-libs/cyrus-sasl:2
+"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
diff --git a/net-libs/kimap2/kimap2-0.2.0.ebuild b/net-libs/kimap2/kimap2-0.2.0.ebuild
new file mode 100644
index 000000000000..f949479249a0
--- /dev/null
+++ b/net-libs/kimap2/kimap2-0.2.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit kde5
+
+DESCRIPTION="Library for interacting with IMAP servers - successor of kimap"
+SRC_URI="mirror://kde/unstable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcodecs)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_kdeapps_dep kmime)
+ $(add_qt_dep qtnetwork)
+ dev-libs/cyrus-sasl:2
+"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
diff --git a/net-libs/kimap2/metadata.xml b/net-libs/kimap2/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/kimap2/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/ldns/Manifest b/net-libs/ldns/Manifest
new file mode 100644
index 000000000000..2c87ef7573b7
--- /dev/null
+++ b/net-libs/ldns/Manifest
@@ -0,0 +1,9 @@
+AUX ldns-1.6.17_perl522.patch 313 SHA256 85c3fed85d634d7b53b14af9c55636ac03ccd8346b05d5c60e9b86d01e5c715a SHA512 e9239eedaaa54712454133c1750da0e02b71e89df6e43fb787ac1c4c6dbe548dc7a52f7bc7632c7aa52c003a641d00616fef0bed28ecf5e27dffb56a65e48d25 WHIRLPOOL e14207e09fa9361d46abd3ce7a6fb154b02626ed805f0ac4f614576dd745af1bf120a5c103317669a3aa743d0697bbf05fa3a015cf704ec31c5a69e1da274e69
+DIST ldns-1.6.17.tar.gz 1315403 SHA256 8b88e059452118e8949a2752a55ce59bc71fa5bc414103e17f5b6b06f9bcc8cd SHA512 5de42b4b8622591db51efb0956735deee9cd5e0bee12249a03b65c5b45d7c51bf9c2edb310ef9d7431af49aef77d968bfa2455a7dedfa80cde3d433436c83785 WHIRLPOOL 08c8a13df3dbeccd5dc5ceeb52730a61ab231e70a85524e826f9275bbcde6e09d6e2fc5234303a6bceb431d2b91f510140ce61a2b59d77afbb2759a0627c7cb7
+DIST ldns-1.7.0.tar.gz 1304424 SHA256 c19f5b1b4fb374cfe34f4845ea11b1e0551ddc67803bd6ddd5d2a20f0997a6cc SHA512 8a4e48bcc2a244b92447a9830b60efbb656fb7955f3559ef2eb6f8e724c4c0208776350c44ccf7dcf1ffe0b7b9d9ccc4cbddc5bc16e8888db494ab4d0bce3bd8 WHIRLPOOL 4450b94dd3e2586230f1691b626947cad7ac2031e343d1e522343570d5b713cfd4bacd52e91713139a88c2fe2406f5f42594d2da0a0474c807f47fd2e98726b1
+EBUILD ldns-1.6.17-r1.ebuild 2502 SHA256 0138a78f67f4a2835b33659233cc1788e84f84f56cd5441c412039e4cced05d5 SHA512 30aa360319dd0e9e3a4095fa988ed940a899af72b448b2d4d33fa18f57eee3557eaa20fcc4988deb7821d7ec6a12de88a9f687edb7b964883ffd51e58d14ae83 WHIRLPOOL 871c76ba78d84ed4e78430581fc5a135486247a06bf43f794f2391b3c59e1a6ce79ce1f50f99fb321cfa9d232cce930345e13f970cae6422592e644b113b11a1
+EBUILD ldns-1.6.17.ebuild 2196 SHA256 3f6f2021fdb8cf5943845b5a828f3fb697a8a57c05064950c3f9e5d4269a301a SHA512 70b0785d6380ae4ce03702a5ce396b00275e7dd1548abc96a49444a23e9e370aabc7585d5683fabfca6f512f70ce5acdb7e793d72417a451582920d1f9a7fad5 WHIRLPOOL fc9581744d3e62444473161ce61500d115cf33cb753fcae4c97840d579a20cf61c509fa26726ecfbedb1d078061d9b5bcbbaea06847be7f856c9376f7bde8444
+EBUILD ldns-1.7.0.ebuild 2508 SHA256 2a52ba3fb1d768e77467e80ed263255b658583e1ee7124e079bc2079f32275dd SHA512 b21195493edb2683f23687d6f3c9175f5b2fe2360f65f56c269f97f785f3b1c6d55e34b37199dafde606484b8215b82c98c2bc49c243e958412f115c480e7c6e WHIRLPOOL 20bf660233583e9783d1393f69aa438f854d89b515ddc13d857b91ff42c00d844e183e761d2060c67e84371e2d16c14bb9ad9cb41ac0a6040acf1e50124aeae1
+MISC ChangeLog 3159 SHA256 e2183590addb10926cb301d8881b58ca96cceac6393d6325642c11d67e41fbfd SHA512 407791c924e6678502709e430ec51e701b21f682433ea12dac9423d7c25760ff99145e9f5d859608a9b6cf015f378f0ef415a9afc05ae1d96af22211ee3ea88c WHIRLPOOL 7c5b717b3f0b9609debc037bf947a8ef5c257715285807394f090d4b855ada7896bddb73fdd045dce86b4da4ed31e7b7a61ffba266c62aaf2e5cd6358c143005
+MISC ChangeLog-2015 9504 SHA256 a893ea92ef0b9356db6c3a454e9c2324e08e4b5117ee858b0977da62d387da6a SHA512 d35b4668568fed22e1f809f29c372cfdea260fafcdcbfb2595564afb84169f6248792b49e1e0ce42b8214edcfc949a985720e6788e94fc4ea5379d163e2edb8e WHIRLPOOL 19e6c305ed9b3f138803b4ff0ce53254b32a3f208bd34819d9590b4d36a0ced94b471170a29f646804f6003cd5ed2340b5d38b9a64f2073668b43a267addd93b
+MISC metadata.xml 743 SHA256 6a2c24089662c2c80c12b0b747828d344de690108a4d4672099edd1660feb91f SHA512 b8d5c5fd107fb7dd7dc2d7d19fbb91a07a2a619b6c9ddd9146d9359c06ed96059c87d169b7c2022760e4117283372c01b6f5231edf975bbab9c72a3ee8347f35 WHIRLPOOL 5ef5f175de8397737146d78fb3dfedd192dd6b9172be488073387508c77972dec0d06dc7881c620fc736b9475ef8f9c4944ea58fa0ea0a1a1466de25ca97b835
diff --git a/net-libs/ldns/files/ldns-1.6.17_perl522.patch b/net-libs/ldns/files/ldns-1.6.17_perl522.patch
new file mode 100644
index 000000000000..ef9c82c8f6b9
--- /dev/null
+++ b/net-libs/ldns/files/ldns-1.6.17_perl522.patch
@@ -0,0 +1,11 @@
+--- a/doc/doxyparse.pl 2014-01-10 22:04:41.000000000 +0100
++++ b/doc/doxyparse.pl 2015-07-15 18:31:33.744755996 +0200
+@@ -273,7 +273,7 @@
+
+ print MAN $MAN_MIDDLE;
+
+- if (defined(@$also)) {
++ if (@$also) {
+ print MAN "\n.SH SEE ALSO\n\\fI";
+ print MAN join "\\fR, \\fI", @$also;
+ print MAN "\\fR.\nAnd ";
diff --git a/net-libs/ldns/ldns-1.6.17-r1.ebuild b/net-libs/ldns/ldns-1.6.17-r1.ebuild
new file mode 100644
index 000000000000..c0b67b5178fd
--- /dev/null
+++ b/net-libs/ldns/ldns-1.6.17-r1.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib-minimal python-single-r1
+
+DESCRIPTION="a library with the aim to simplify DNS programming in C"
+HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="dane doc +ecdsa gost libressl python +ssl static-libs vim-syntax"
+
+# configure will die if ecdsa is enabled and ssl is not
+REQUIRED_USE="ecdsa? ( ssl )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ python? ( ${PYTHON_DEPS} )
+ dane? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ ecdsa? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[-bindist,${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gost? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ ssl? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}
+ python? ( dev-lang/swig )
+ doc? ( app-doc/doxygen )
+"
+
+RESTRICT="test" # 1.6.9 has no test directory
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/ldns-config
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}_perl522.patch"
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable ssl sha2) \
+ $(use_enable gost) \
+ $(use_enable ecdsa) \
+ $(use_enable dane) \
+ $(use_with ssl ssl "${EPREFIX}"/usr) \
+ $(multilib_native_use_with python pyldns) \
+ $(multilib_native_use_with python pyldnsx) \
+ --without-drill \
+ --without-examples \
+ --disable-rpath
+}
+
+multilib_src_compile() {
+ default
+
+ if multilib_is_native_abi && use doc ; then
+ emake doxygen
+ fi
+}
+
+multilib_src_install() {
+ default
+
+ if multilib_is_native_abi && use doc ; then
+ dohtml -r doc/html/.
+ fi
+}
+
+multilib_src_install_all() {
+ dodoc Changelog README*
+
+ prune_libtool_files --modules
+ use python && python_optimize
+
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins libdns.vim
+ fi
+
+ einfo
+ elog "Install net-dns/ldns-utils if you want drill and examples"
+ einfo
+}
diff --git a/net-libs/ldns/ldns-1.6.17.ebuild b/net-libs/ldns/ldns-1.6.17.ebuild
new file mode 100644
index 000000000000..c83ddb745d94
--- /dev/null
+++ b/net-libs/ldns/ldns-1.6.17.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib-minimal python-single-r1
+
+DESCRIPTION="a library with the aim to simplify DNS programming in C"
+HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="dane doc +ecdsa gost python +ssl static-libs vim-syntax"
+
+# configure will die if ecdsa is enabled and ssl is not
+REQUIRED_USE="ecdsa? ( ssl )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dane? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ ecdsa? ( >=dev-libs/openssl-1.0.1h-r2:0[-bindist,${MULTILIB_USEDEP}] )
+ gost? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ python? ( ${PYTHON_DEPS} )
+ ssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ python? ( dev-lang/swig )
+ doc? ( app-doc/doxygen )
+"
+
+RESTRICT="test" # 1.6.9 has no test directory
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/ldns-config
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}_perl522.patch"
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable ssl sha2) \
+ $(use_enable gost) \
+ $(use_enable ecdsa) \
+ $(use_enable dane) \
+ $(use_with ssl ssl "${EPREFIX}"/usr) \
+ $(multilib_native_use_with python pyldns) \
+ $(multilib_native_use_with python pyldnsx) \
+ --without-drill \
+ --without-examples \
+ --disable-rpath
+}
+
+multilib_src_compile() {
+ default
+
+ if multilib_is_native_abi && use doc ; then
+ emake doxygen
+ fi
+}
+
+multilib_src_install() {
+ default
+
+ if multilib_is_native_abi && use doc ; then
+ dohtml -r doc/html/.
+ fi
+}
+
+multilib_src_install_all() {
+ dodoc Changelog README*
+
+ prune_libtool_files --modules
+ use python && python_optimize
+
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins libdns.vim
+ fi
+
+ einfo
+ elog "Install net-dns/ldns-utils if you want drill and examples"
+ einfo
+}
diff --git a/net-libs/ldns/ldns-1.7.0.ebuild b/net-libs/ldns/ldns-1.7.0.ebuild
new file mode 100644
index 000000000000..5e5b25fd009c
--- /dev/null
+++ b/net-libs/ldns/ldns-1.7.0.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib-minimal python-single-r1
+
+DESCRIPTION="a library with the aim to simplify DNS programming in C"
+HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="+dane doc +ecdsa gost libressl python +ssl static-libs vim-syntax"
+
+# configure will die if ecdsa is enabled and ssl is not
+REQUIRED_USE="ecdsa? ( ssl )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ python? ( ${PYTHON_DEPS} )
+ dane? (
+ !libressl? ( >=dev-libs/openssl-1.0.1e:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ ecdsa? (
+ !libressl? ( >=dev-libs/openssl-1.0.1e:0[-bindist,${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gost? (
+ !libressl? ( >=dev-libs/openssl-1.0.1e:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ ssl? (
+ !libressl? ( >=dev-libs/openssl-1.0.1e:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}
+ python? ( dev-lang/swig )
+ doc? ( app-doc/doxygen )
+"
+
+RESTRICT="test" # 1.6.9 has no test directory
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/ldns-config
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable ssl sha2) \
+ $(use_enable gost) \
+ $(use_enable ecdsa) \
+ $(use_enable dane) \
+ $(use_with ssl ssl "${EPREFIX}"/usr) \
+ $(multilib_native_use_with python pyldns) \
+ $(multilib_native_use_with python pyldnsx) \
+ --without-drill \
+ --without-examples \
+ --disable-dane-ta-usage \
+ --disable-rpath
+
+ # >=openssl-1.1.0 required for dane-ta
+}
+
+multilib_src_compile() {
+ default
+
+ if multilib_is_native_abi && use doc ; then
+ emake doxygen
+ fi
+}
+
+multilib_src_install() {
+ default
+
+ if multilib_is_native_abi && use doc ; then
+ dohtml -r doc/html/.
+ fi
+}
+
+multilib_src_install_all() {
+ dodoc Changelog README*
+
+ prune_libtool_files --modules
+ use python && python_optimize
+
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins libdns.vim
+ fi
+
+ einfo
+ elog "Install net-dns/ldns-utils if you want drill and examples"
+ einfo
+}
diff --git a/net-libs/ldns/metadata.xml b/net-libs/ldns/metadata.xml
new file mode 100644
index 000000000000..01302fa69414
--- /dev/null
+++ b/net-libs/ldns/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 type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <longdescription lang="en">
+ ldns is a library with the aim to simplify DNS programming in C. All
+ lowlevel DNS/DNSSEC operations are supported. We also define a higher
+ level API which allows a programmer to (for instance) create or sign
+ packets.
+ </longdescription>
+ <use>
+ <flag name="dane">Enable DNS-based Authentication of Named Entities (DANE) support</flag>
+ <flag name="ecdsa">Enable ECDSA support</flag>
+ <flag name="gost">Enable GOST support</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/liba53/Manifest b/net-libs/liba53/Manifest
new file mode 100644
index 000000000000..3c87871ea9e8
--- /dev/null
+++ b/net-libs/liba53/Manifest
@@ -0,0 +1,4 @@
+EBUILD liba53-9999.ebuild 433 SHA256 e3a849a6e35e80e85de991c5732e422545c2e523668bc510bef37e70f94eea35 SHA512 27731b011de4712d5ecb7e63ff1d7bf96bbea64babfc0e950156daa05e454c66bf79eeaf18001c0766181d0b9e57aec4319e6a68e3173d80bbab60454328afb2 WHIRLPOOL 5765ca0f6d88f6f74487a6fbda369fd5cdbc4f29cf4e54921a775fbcd63cf3720a0823df4cf82d578660f5f1e4197db246941bdb555457717d95b55587f7cd65
+MISC ChangeLog 2422 SHA256 d9efa9f6d803557bd42048a1acca5ba22381200c31af15211baade745c74f323 SHA512 1e5512c40e721a84aed1c7f367e7dcd04a49f05abc379d1d7261c7b74ecdab6ff81547d9029efd3755133a4c25793bcac80e5319c9c54cca7cebbd6613572fe1 WHIRLPOOL 37f168b644caf2b7c5318c98aba5a5de1610a5444ec8dab5dc111923dda4b7fe881bfe8bf8adc8f2f6d85ba24c15479030ff199c4f0dbec104437275437e00e1
+MISC ChangeLog-2015 350 SHA256 f1c08a7d7d121b350bd94dba1db8b8c3272a7f611bdadd3d309282d9e48f0776 SHA512 df84c67c6de46ba9d55b22188de47a6ce0077c61e67102b8df97120bd8a3d489d9dc68b88ea4ff92a28e437738cfa20046bc3aff9ff1c3d3f26fe3407afbb668 WHIRLPOOL aa721e0375502ddf796b621feffc932507d8ac3db65dc6f4d2ccbe3473f83c57f70ef9b23b6b3c8052200c4e0b7875cde72400ec317f5f069075d4326a5d5a6e
+MISC metadata.xml 323 SHA256 507f0a19b84624247f00c987a4bfc3693b5dc57c44f7857500599b370ba720a2 SHA512 e8c544b1f06b9d2527f39d1b259b3d373d6d6b78d2c96e213d9209f4f8a65d332b5d3223ba93e5a6e4df5c10eb74fe0b4e43de491f8f8346db1042147e07fcd1 WHIRLPOOL c488657c655582ea68055c4e73d47a5e6cc3ec0af5ad5f4c43b55d51e25f537b8f93936ef622f07f9acc751e3556ff811ed8c20877b916f26c6228eab499cd12
diff --git a/net-libs/liba53/liba53-9999.ebuild b/net-libs/liba53/liba53-9999.ebuild
new file mode 100644
index 000000000000..30b03d7b29d2
--- /dev/null
+++ b/net-libs/liba53/liba53-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit git-2
+
+DESCRIPTION="A5/3 Call encryption library"
+HOMEPAGE="https://github.com/RangeNetworks/liba53"
+EGIT_REPO_URI="https://github.com/RangeNetworks/${PN}.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_install() {
+ mkdir -p "${D}/usr/lib" "${D}/usr/include"
+ default
+}
diff --git a/net-libs/liba53/metadata.xml b/net-libs/liba53/metadata.xml
new file mode 100644
index 000000000000..705f45003207
--- /dev/null
+++ b/net-libs/liba53/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>radio@gentoo.org</email>
+ <name>Radio</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">RangeNetworks/liba53</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libaccounts-glib/Manifest b/net-libs/libaccounts-glib/Manifest
new file mode 100644
index 000000000000..a416a1672b50
--- /dev/null
+++ b/net-libs/libaccounts-glib/Manifest
@@ -0,0 +1,6 @@
+DIST libaccounts-glib-1.21.tar.gz 127061 SHA256 27cb75f3f2f0ce736b77f0fd0432f8d565297f0735846a2862577eadaec92488 SHA512 3eef882597392387a962dddbc49e4428f7e11e329fac1c3f4d39f3ef315118274b253e36095754d6392802cf298f2bfc0adf30b9a114b047082cda231bb10f60 WHIRLPOOL 46f8f04958199b4b1b91f1b03b66772e1a46440f390c30fef43c09f1171af28d41f57fb92d1303263d1771d21ff9e035729ff2396637894dd811dc0fd314f059
+DIST libaccounts-glib-1.23.tar.gz 127931 SHA256 b4686af19b86cbedc0eb6a00aceee70f2c61254013d2cadd8aba15e9c540fff7 SHA512 88fec1fed7a135375516363e4b7f1330d45a6337bbfb45dd35dabce87097ee4e550e968870541e1b496c2ee3db1bd26e0665f4155f1e64d1cc7b6b74d5b71b5c WHIRLPOOL 90d200bec667dd1bd7666d040a432494e1ce703e54ba38ceecd1850059991c3927c638228b9287e19e9d5971fbe4d8197470934c1a6542f729d0fc450b7e0377
+EBUILD libaccounts-glib-1.21-r2.ebuild 826 SHA256 8811d89173837c8fb6c234ea65f8b2c8af09b759e91fb0d758fe8c0da0b278b4 SHA512 1e5c60ace5100e2a7a1bc5c7643ab93401725a152716b2e412f2885612450653477caea0ac4ec05e31b18cbd265112227a27fece5cca3b78454248d42d962c78 WHIRLPOOL b97092d2e26b42ffd79b556bdf1e1f8580c905515945fb539592fe26ff08519668a529cf5b4182cd4f14d255c231a880170b1ce138e80d76671f926e34dcae0c
+EBUILD libaccounts-glib-1.23.ebuild 820 SHA256 e07342eb7d388e98a40c4d9791693615b522d3a3f8e7361c306e7566c1f715a7 SHA512 481f1a558781fc31905fcc8a6599e77f52cf80721868a74f7882bd767dc1247fe05f4dfe4d2f873498eeb75ad34bee2a00f1cd48ad1ab95c3542a4297a3585a3 WHIRLPOOL 3abf2eb85ea8a374ea7c76b92175af204543aea988495a6caa384ddcd1d7755bf6a119275192fd80adef6f6f9885cd3d7a20e4c65a1d723c6af3f7931584124c
+MISC ChangeLog 3385 SHA256 872627cf78c551afce5d35894f715cfd2e2462cbeff225571bd15e24ca792677 SHA512 92ee5fd595976004eb2e811e2f42125deb6a372f976065b67f88d219bc4fd5e6816d78e3076c50561bc13cba0d223f08fa3c65e0541ae4aebe7b5e1d6d43d091 WHIRLPOOL 0bf8c1f3c023f7a28316793cb8d470b53e009b3d18d047f74745588db00ff423d912a4115eae6e311eec28dea944c586aec29973b2d6a26ee6323cdd72d0d011
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/libaccounts-glib/libaccounts-glib-1.21-r2.ebuild b/net-libs/libaccounts-glib/libaccounts-glib-1.21-r2.ebuild
new file mode 100644
index 000000000000..e7b1dda81e88
--- /dev/null
+++ b/net-libs/libaccounts-glib/libaccounts-glib-1.21-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils vcs-snapshot xdg-utils
+
+DESCRIPTION="Accounts SSO (Single Sign-On) management library for GLib applications"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="https://gitlab.com/accounts-sso/libaccounts-glib/repository/archive.tar.gz?ref=VERSION_${PV} -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="debug"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-libs/glib:2
+ dev-libs/libxml2
+"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc
+"
+
+RESTRICT="test"
+
+DOCS=( AUTHORS NEWS )
+
+pkg_setup() {
+ xdg_environment_reset
+}
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-python \
+ --disable-tests \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/libaccounts-glib/libaccounts-glib-1.23.ebuild b/net-libs/libaccounts-glib/libaccounts-glib-1.23.ebuild
new file mode 100644
index 000000000000..928af3370a31
--- /dev/null
+++ b/net-libs/libaccounts-glib/libaccounts-glib-1.23.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils vcs-snapshot xdg-utils
+
+DESCRIPTION="Accounts SSO (Single Sign-On) management library for GLib applications"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="https://gitlab.com/accounts-sso/libaccounts-glib/repository/archive.tar.gz?ref=VERSION_${PV} -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="debug"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-libs/glib:2
+ dev-libs/libxml2
+"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc
+"
+
+DOCS=( AUTHORS NEWS )
+
+pkg_setup() {
+ xdg_environment_reset
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-python \
+ --disable-tests \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/libaccounts-glib/metadata.xml b/net-libs/libaccounts-glib/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/libaccounts-glib/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libasr/Manifest b/net-libs/libasr/Manifest
new file mode 100644
index 000000000000..0501e551223f
--- /dev/null
+++ b/net-libs/libasr/Manifest
@@ -0,0 +1,9 @@
+DIST libasr-1.0.1.tar.gz 403110 SHA256 262471e312d623e4951a133ed4c16a74d57f0a02554ca4ed7b4b575456620182 SHA512 94afed300327622e597d3678525b0d30a0a4a812966040a92a7b7b73beebb2209c7e6931cea07841aba745e14cda6df0dea9a7e098a94121768850e1d0e8d5ef WHIRLPOOL 7b946c6ab05b59417a58910a08436cfa7dfb2e85cf86151c58dfe3c8c15fd0e2f21f6f7915796d1246f54a43586a11818fb8842ce1278f18396d673f30c05477
+DIST libasr-1.0.2.tar.gz 406428 SHA256 a6f5d1c6306938156da3427525572b9b16c1e6be6c69845d390bb63f41a58b34 SHA512 a4825a30130f70a452044c484871ac37459e1c1e6659c4c38dead7d3abbdaecb3517b7accb46586537975fee033857566fd279ecf97ae87dc80bb6bcdd467d3e WHIRLPOOL ae830fa1430f71d352b1a90cc465e9fbaff8d188dc7ac1c730267e8a940385531868e4d25a6c4cdcee5ebf6e9a2e91100771c845f3eb645b7c95487bfdf64027
+DIST libasr-201505061057.tar.gz 405953 SHA256 50ad9ed14ab0eb2abd27cfd45047f49b5470ec48717e2d024b017fa43c69f69d SHA512 f3a5630fea9493c1638de7508cbf4c8d99db8bc5873dd874e48e05378ca551e6982590fb3ede6ea73ed5384eaf8968ebee0919a7c9ea463384d3f94f5c880f16 WHIRLPOOL 0de07edea847340cf5d67799b4a2e96cf407f9310d0c36d3a125a787eaf38bf0a57b7fa412143f8c3e2dc476148c07f58bd47897bc20ee99f36cfc17ca8d0a97
+EBUILD libasr-1.0.1.201505061057.ebuild 500 SHA256 8dffc72743e5ad8f3dbd22d711ef978f4b61013f4b221545e25fef886817d11c SHA512 e37efa3f5f2e9be31c8da61044a0c0c0a4daa510ec66219a99c1aa9b316d51162f0beede5f775fb3a1e24dbc050fd542b6eee0f0a7dd5952986f6b40e6ba462f WHIRLPOOL 89efa21d83fb31f30e7efcb712557be97efcf0360bf5cf1c891c686e6f082033cf55b82a4e437e88be19f04ec30a1f28f2c909a4c8c78027dde2f312b46b19e5
+EBUILD libasr-1.0.1.ebuild 386 SHA256 e02bae809a2944b0362a315d49895e1441f2875df9a58a0fa3b81f3ab28610bb SHA512 87a940c391ca5de9b19e5a43a75113e3016813b542df84f6d5d8ec19d2c4a4d27d4d6767f1c89158429c5fe2b009033e39b5715eb789567dbe82106562790d8f WHIRLPOOL 8052e192a813d1a4078695ab4571bb58d19c2090f9efb404ffa0416a9ed307fe684ad343b27e6fcc9348d02c4526ea3184b986e506448c1cbf49ef00c1ac9fc7
+EBUILD libasr-1.0.2.ebuild 400 SHA256 7c8284ac454f45a8dce9ff6d94c3b52efb479e88165035ecf8769a031c3d8b0b SHA512 bc790a9487ec9c6d66f9c13ed70cb9c3790946534d6290d57cbceccdc44cfc06f4182097e31d03d622bc599400310c7802fdae3bd54d6555d6079b0403c3df14 WHIRLPOOL 9eed91adb7388eeb427ff7a633bdfcafa124811048cf6fff21170f426e2f3cb1bd14e115fd7421e8c4206b4842e34ae4cecba40013721719ae98da446836c68b
+MISC ChangeLog 2424 SHA256 287b0a9e02a7adee9469f4f35e3d7894e7cbed45bd5677b4bdf74e4989539021 SHA512 0728bf2a23530a7438b532f1a4af09c89ea9a2d33fc061f59a4f8b0fdc6b48818a3f0b1e151af6b445ad5b4690e15000c07c8bcbd67d31eae0b9134154d931ab WHIRLPOOL acffbbc9aa691c98c650188685a13141e4131ab6d7e85d7f91ffb7aebe030ddc13e39b8419818391d73fe1f7f4cbf5c3ed4539323f0b5877b577daa798eeb3fc
+MISC ChangeLog-2015 977 SHA256 440b21d5abd823896e40b43be40b9b694fdfced6be233a346931c23c9a648c42 SHA512 495054e1ef90e90a45974d487baa0e0ad71b1b0a9d0d2b562e528cf26636c10cd7574105df1a5c979d8112c9ff91229baf9456b5cc59fdf68322bfe78d95939a WHIRLPOOL 143d3421508dfa073b6c89737a4662a66769d905a7d4070b5f7e36833af0a29667f3b58cc9b9250c5bd912e64193923f8203f38eb77bdaa2578b16152a5ead1a
+MISC metadata.xml 331 SHA256 02ac6513aa3dd80920dc14cd382ef0040d1a7ca3291b6cea1b308d1c8a53f7ef SHA512 dedfef00a1e0f26438a1e0fbc9b53fc64566bd6def05260410d21aa3ff941ef0c5c9dbc205b3516052b0409943acbfb431e4702c87d1c94e9950ab9492f68850 WHIRLPOOL ac1a39264f8fa0a8d532dfdec0cdf785c96fb1e9b258d5e13d094f24a91e1e713936b1285cccc9036db076d5b7b25c210a51e246de3611f62165e58e70fb28c2
diff --git a/net-libs/libasr/libasr-1.0.1.201505061057.ebuild b/net-libs/libasr/libasr-1.0.1.201505061057.ebuild
new file mode 100644
index 000000000000..c5c2c51038e3
--- /dev/null
+++ b/net-libs/libasr/libasr-1.0.1.201505061057.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator
+
+DESCRIPTION="Async Resolver Library from OpenBSD/OpenSMTPD"
+HOMEPAGE="https://github.com/OpenSMTPD/libasr"
+SRC_URI="https://www.opensmtpd.org/archives/${PN}-$(get_version_component_range 4-).tar.gz"
+
+LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-$(get_version_component_range 4-)"
diff --git a/net-libs/libasr/libasr-1.0.1.ebuild b/net-libs/libasr/libasr-1.0.1.ebuild
new file mode 100644
index 000000000000..d8319ee927a2
--- /dev/null
+++ b/net-libs/libasr/libasr-1.0.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Async Resolver Library from OpenBSD/OpenSMTPD"
+HOMEPAGE="https://github.com/OpenSMTPD/libasr"
+SRC_URI="https://www.opensmtpd.org/archives/${P}.tar.gz"
+
+LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
diff --git a/net-libs/libasr/libasr-1.0.2.ebuild b/net-libs/libasr/libasr-1.0.2.ebuild
new file mode 100644
index 000000000000..d58a1e625377
--- /dev/null
+++ b/net-libs/libasr/libasr-1.0.2.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Async Resolver Library from OpenBSD/OpenSMTPD"
+HOMEPAGE="https://github.com/OpenSMTPD/libasr"
+SRC_URI="https://www.opensmtpd.org/archives/${P}.tar.gz"
+
+LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
diff --git a/net-libs/libasr/metadata.xml b/net-libs/libasr/metadata.xml
new file mode 100644
index 000000000000..f301cb057c99
--- /dev/null
+++ b/net-libs/libasr/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zx2c4@gentoo.org</email>
+ <name>Jason A. Donenfeld</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">OpenSMTPD/libasr</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libasyncns/Manifest b/net-libs/libasyncns/Manifest
new file mode 100644
index 000000000000..14d13129fd28
--- /dev/null
+++ b/net-libs/libasyncns/Manifest
@@ -0,0 +1,8 @@
+AUX libasyncns-0.8-configure-res_query.patch 428 SHA256 43ca32a57eb1291e337774ad8245640e87085ec491dd6d5763676171b269395c SHA512 ed338a91575f9e642c3da9764348fb7d4e5b2d0da4ef9a849a4cb176df96776100e59b419bbc9206395252d8317c20c5cfe1b68e008825fde1192e24dc9f8ce0 WHIRLPOOL f0d04d4ae5587a86596761d017deffe967c86b64be0807a9c0b697b1dcdde7ec66ee97852d28e3b195e6bfd5767f3b271184662a8da521824e2b265c8dd28c08
+AUX libasyncns-0.8-libdir.patch 299 SHA256 c2bf66ff8c68748f1f0322b2e94c1e493fe2431e3f4c9c080282851c8ba17b63 SHA512 b4a42a4241034756feeacdcd9a7d6e57a8b2d9ae945b149e05c6ea9d8b33791733601ef9d153e75d7979079cdf4c02c4136f881236e2a2b393ce070021c3a2b0 WHIRLPOOL cdfba4653f28a15b254691f07ac3192e7b97f94fe2c1a90584ebcaaadb21016196a5465279091472c37ad92fe498a628b9639e3a5cf0a7b5c003862f460a49cb
+DIST libasyncns-0.8.tar.gz 341591 SHA256 4f1a66e746cbe54ff3c2fbada5843df4fbbbe7481d80be003e8d11161935ab74 SHA512 2daad3a2d9eb875e0575843d9e9e2787be6cbba89211fd073fa8898ff80e0a891c7da1a7b0ef70f306318cb3a963ecd65d53d24d08b5f6b98e7cd2a3b3bdcda7 WHIRLPOOL b57b449bf96584667e0d411f4b491c2e52f0fd9c129ad579f82878e3ec612bec636f1a4792f9c63c3174e30938acbc1ed70eb81391903259ea63b79dfaa7e0d8
+EBUILD libasyncns-0.8-r3.ebuild 1359 SHA256 e18ed696677666a9a9bdf8318edac1612be42440cd3e6f0b7c030fb488ecb7d4 SHA512 4f391029eee067d8f0b97064ba636544d0b5d38e1346d8a273305940caa0e727f58644fce68d1092b988bffe56cd3d69779bcd62d9f686f076af7a5a1957a64e WHIRLPOOL 505e22798934c2e83b1ef70e43b3d3cf62cbdad27f1766a117265ee8b3d9beb4aab1a417ff47e425dd76e15458a1d783ee557d7fbdce2af6cdb58a30059f5fe1
+EBUILD libasyncns-0.8-r4.ebuild 1496 SHA256 78cf81384d83a494038f024c974e6e852ef47a5a6ac089f2fb3886bdbf63c1c4 SHA512 482faf372b26c26f323adb2ff2cd0c104b72a7a7559587eff4d072db2916f643b3094b5930f49dd83ab89586cfdc79a17818c4699484e6daed2794d36bcd9cc9 WHIRLPOOL 892dde78c623df7262e03c40d4c0798f41916a3cddeb35be74c71c927eeb4020fe08d8cd1c8593479bcd19f3ed4e61f56fba306bbcf37e9c620c69dfec69eacc
+MISC ChangeLog 2852 SHA256 28d72dfce62c6726c2b294b15d61e13e02ff61b0a5ee132aee2f74de15272fad SHA512 80beb5c88db68b253880c05ed92ccfe9679beae16ef6d199f790eb9fc2949a06f759ef4f69bc2f0ec553879cabb3427d3faa16c8b1766153fffe42639993f68f WHIRLPOOL afcdf5db9a40b20e9a2e3c45fa1f299b43d3795aab3f36ed5e763da0d9689d83335465cffc554ada5f70e40f00466a6497d0689062eabeaff95c9fd90aa95245
+MISC ChangeLog-2015 5996 SHA256 da71f01e35b6500582d2e496c6e1b0fa718457649a6657937269ac379381e1f3 SHA512 f296a56ac88f766d8b2adcb0bba235520f98fc180ad3b61ebcb8fa7c6241024706584c30614f9ebcbf0d9ea52cb921a3324b5c36f3256316d82f6d9ec33e4eb5 WHIRLPOOL 5e44f0357034adbf4a3260c8135157729df60e7b79715ac6d5e515178c4652fcce0aefa0ba1e3ea40c83a7cfc097d5ea0a842daa93bd52a17a1f43a6ab3477bf
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/libasyncns/files/libasyncns-0.8-configure-res_query.patch b/net-libs/libasyncns/files/libasyncns-0.8-configure-res_query.patch
new file mode 100644
index 000000000000..ebc206b78feb
--- /dev/null
+++ b/net-libs/libasyncns/files/libasyncns-0.8-configure-res_query.patch
@@ -0,0 +1,12 @@
+diff -ur a/configure.ac b/configure.ac
+--- a/configure.ac 2009-10-15 03:42:51.000000000 +0200
++++ b/configure.ac 2015-10-07 02:18:06.571175156 +0200
+@@ -82,6 +82,8 @@
+ ACF_SEARCH_FUNCTION([res_query], [-lresolv, -lbind],
+ [], [AC_MSG_ERROR([res_query not found])],
+ [AC_LANG_PROGRAM([[
++ #include <netinet/in.h>
++ #include <arpa/nameser.h>
+ #include <resolv.h>
+ ]], [[res_query(0, 0, 0, 0, 0);]])
+ ])
diff --git a/net-libs/libasyncns/files/libasyncns-0.8-libdir.patch b/net-libs/libasyncns/files/libasyncns-0.8-libdir.patch
new file mode 100644
index 000000000000..44deca5dca2c
--- /dev/null
+++ b/net-libs/libasyncns/files/libasyncns-0.8-libdir.patch
@@ -0,0 +1,10 @@
+--- libasyncns-0.8/libasyncns.pc.in.orig 2011-03-27 03:45:59.804339219 +0100
++++ libasyncns-0.8/libasyncns.pc.in 2011-03-27 03:46:12.368119660 +0100
+@@ -1,6 +1,6 @@
+ prefix=@prefix@
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
++libdir=@libdir@
+ includedir=${prefix}/include
+
+ Name: libasyncns
diff --git a/net-libs/libasyncns/libasyncns-0.8-r3.ebuild b/net-libs/libasyncns/libasyncns-0.8-r3.ebuild
new file mode 100644
index 000000000000..6cc4ce9577e3
--- /dev/null
+++ b/net-libs/libasyncns/libasyncns-0.8-r3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic libtool multilib multilib-minimal
+
+DESCRIPTION="C library for executing name service queries asynchronously"
+HOMEPAGE="http://0pointer.de/lennart/projects/libasyncns/"
+SRC_URI="http://0pointer.de/lennart/projects/libasyncns/${P}.tar.gz"
+
+SLOT="0"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux"
+
+IUSE="doc debug"
+
+RDEPEND=""
+DEPEND="doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ # fix libdir in pkgconfig file
+ epatch "${FILESDIR}/${P}-libdir.patch"
+ elibtoolize
+}
+
+multilib_src_configure() {
+ # libasyncns uses assert()
+ use debug || append-cppflags -DNDEBUG
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --disable-dependency-tracking \
+ --disable-lynx \
+ --disable-static
+}
+
+multilib_src_compile() {
+ emake || die "emake failed"
+
+ if multilib_is_native_abi && use doc; then
+ doxygen doxygen/doxygen.conf || die "doxygen failed"
+ fi
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if multilib_is_native_abi && use doc; then
+ docinto apidocs
+ dohtml html/*
+ fi
+}
+
+multilib_src_install_all() {
+ find "${D}" -name '*.la' -delete
+}
diff --git a/net-libs/libasyncns/libasyncns-0.8-r4.ebuild b/net-libs/libasyncns/libasyncns-0.8-r4.ebuild
new file mode 100644
index 000000000000..73535f3dd2b4
--- /dev/null
+++ b/net-libs/libasyncns/libasyncns-0.8-r4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools-multilib eutils flag-o-matic libtool multilib multilib-minimal
+
+DESCRIPTION="C library for executing name service queries asynchronously"
+HOMEPAGE="http://0pointer.de/lennart/projects/libasyncns/"
+SRC_URI="http://0pointer.de/lennart/projects/libasyncns/${P}.tar.gz"
+
+SLOT="0"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
+
+IUSE="doc debug"
+
+RDEPEND=""
+DEPEND="doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ # fix libdir in pkgconfig file
+ epatch "${FILESDIR}/${P}-libdir.patch"
+ # fix configure check for res_query
+ epatch "${FILESDIR}/${P}-configure-res_query.patch"
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # libasyncns uses assert()
+ use debug || append-cppflags -DNDEBUG
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --disable-dependency-tracking \
+ --disable-lynx \
+ --disable-static
+}
+
+multilib_src_compile() {
+ emake || die "emake failed"
+
+ if multilib_is_native_abi && use doc; then
+ doxygen doxygen/doxygen.conf || die "doxygen failed"
+ fi
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if multilib_is_native_abi && use doc; then
+ docinto apidocs
+ dohtml html/*
+ fi
+}
+
+multilib_src_install_all() {
+ find "${D}" -name '*.la' -delete
+}
diff --git a/net-libs/libasyncns/metadata.xml b/net-libs/libasyncns/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/libasyncns/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/libbitcoinconsensus/Manifest b/net-libs/libbitcoinconsensus/Manifest
new file mode 100644
index 000000000000..3c14d0a58fe8
--- /dev/null
+++ b/net-libs/libbitcoinconsensus/Manifest
@@ -0,0 +1,10 @@
+DIST bitcoin-0.13.1.knots20161027.patches.tar.xz 386532 SHA256 b3242fa3bf7959de31aba47b4124e582d0a3d2924a5fe48f91676ef586a5d2f0 SHA512 de4fee50bb6fcf416f4d0d52283ae4b80fd06a544e9312808bec167b471bc1a20d6ded1ebba92cef937b2bd7ebae19c5c1153d6a10dad40cba4fb6c0a98b4fb6 WHIRLPOOL 768d3d1fdfe15d5d36d3d724224e3e33da5292764b3264bba89e3186e03d05cf57e957c071850bacc0fb49c7aae6cfd01bb649ffd82acfa4cfe695ef4b7e3b43
+DIST bitcoin-0.13.2.knots20170102.patches.tar.xz 434012 SHA256 837dbc5a69a25a844681971e3b5bc22c93655e893fc579094556c10bc038488a SHA512 a19b9d469ff03396375c6f97e3e1f7f24243518e4ca46390bc33debbe5c09dffc8ee8fff4d656b385e38ef0c70e46a474170fd377b8cb94d6cdc2ff58114b061 WHIRLPOOL a5eaf1076eae2162d672ad705e8085e7034e163095d0645cd3ee522a11062fba8928a2d2dad94bda28538698f61fe46b3501fe978ff7940237e3f6895eafa6ae
+DIST bitcoin-v0.13.1.tgz 5955845 SHA256 8523eb58fcbba68d07ccff0ce3a8878c3de9c9b532949d36dae56969bf3594e0 SHA512 396196fa5325b650c61b966820454712d7e6c3e7a61cb95bacab59a0b6257d113c60105393a2ad1c33623ae81026e15c7356433fd7bafe2888e6b961487259c3 WHIRLPOOL 6795bdd3d57b358c97ffa71f4dbfdae938500c0be190bdaf73829575f34d1a17443e34d71ddb1cae495640b01e8be3de8b8de490cd34ce6fe680c0069e9fd067
+DIST bitcoin-v0.13.2.tgz 6088472 SHA256 f2148eef9ad1a938e2ca053d4ba5712f05245afbcff616e839011ec07324352a SHA512 2c053f1f55a426499e50cbadfccfd7c47be25fd10bb8e3d21fb6f408261c5a0c35f2745891e0eeb0fe953428337e40b6dc730499fcd3ba465315d592352833ca WHIRLPOOL fb25d8cc0360435f1a8c2eb3465911d080eecc9247cb8373ca73bf5bf8a1cce02028e9f0e86102d55049c7a1c164fd04d3e777976c3aa66a21ce5f9ff3d602eb
+EBUILD libbitcoinconsensus-0.13.1.ebuild 608 SHA256 7572e2d4ac9459d5878fb814cc9c5d2d281b0810755c7df11e09a3e7ef07fa4b SHA512 20581062b5cc1dd73e8334aa127b750f2b73e38544076ab77c5f9d9659d186f4d46b4e0ecf31317d16893dfef89e194eaef310e108d76115e3d8b359edb3339f WHIRLPOOL 71b57b44fc84f5003610dbf301480bb14b8e61949e9e40608352ad410f980afad30640c9caba5768d290811b354244fd6e74497dfa1b9cea6013dbaf9daf0f47
+EBUILD libbitcoinconsensus-0.13.2.ebuild 608 SHA256 546686a61a9096d3c803ae11c2559be8625681969c953eab0dd75ac09be426fc SHA512 62b1de1e117af3f66721df34519a40f3347e51914f0f3deab203225d684a4056e0db09a1e2c8acdcaf97b492018d6ab726f9e2b6e0b87b3200d203df9ea66348 WHIRLPOOL 08f2fcfe23e0de392d133d3282f48d63072794c623ddf7e3b8c74d14a75d672dea169df4dc8b281cfa31ff76fcf49241847b90f31fb402c0b68919266e6443e1
+EBUILD libbitcoinconsensus-9999.ebuild 512 SHA256 0b375889f0204a60b26a5e6aae02e186b652403498f8367ea4dd9848d2669a15 SHA512 4c8b7bdfdded19b7907ad5f8dcd5541ab15c585381604d619a20f3ad1fd7672936b1d25951406613490c5a11e880c5f866d45d250a72625e865aa08370a365fb WHIRLPOOL e43c62b0fb340ae563e5af5c7e71cfda98e7e571133827443c4e5b651cfa756878e41accffd3c47994ab82f32bf6c98a4e12bc1ba012d127703e1e64dfdf4d13
+MISC ChangeLog 5707 SHA256 7b830c9571076a4a3a3d7571319a8862d386101a25b54193966db4259617e7ac SHA512 e96dbd8fafbf2eb7f4ffc9c69f731e4c4e4be467114e64eb8c928e4d59a4f9e2544ec5570814c09f1ca97957761f5ceba33f95f619c0f3732fafe2afb48f69b4 WHIRLPOOL 6cd4263fb2e177cab9237dd0d89ea0c872acac4f684065dde5597fca794978d0ec573e6ef011b15feec57a38d204b7b717d6f99c1f90ebb600cd7fd8ed01b892
+MISC ChangeLog-2015 1336 SHA256 54884913fb97fc5d1373a3ed3464ee90f8ab4b631f156eb239ad2fcdcff2d4cd SHA512 324efe2b4882fb518c0b0383a1f11c48084ea9f23d1f2e4f7716baecffcb3e6385431a16c33e87c49346e0e229d3381c5a4b7080ff87b1af1834b24833ffd693 WHIRLPOOL 91f20af4d18574421db240ab7f36143edc3151b610a42dfa2eb4d359586864eb3f10e09d6a1ac8bda851dd099b5a36b8e7620e2f4f97d7d7e9b087bb94c762a6
+MISC metadata.xml 454 SHA256 c2a58f933149537d2d583ec1a4aa0cc2e18df2de758db007baae7924a2fc09fa SHA512 e666cfd44fff4e75dc6af1b49a81b88233ad5c48ad213dcc4b359ded3ad3752bdf73e89d647357cf71eaba8e67256acdc4c9b1f284f273477e25f2c228ff2a83 WHIRLPOOL 0e73c4c060dee16e5d47b7a0267cdad2141851bd4565c1a3455f63d559c5ce1e4487308fc4401f84f376c4cfb214072a6330a0a132d63354d46473b9d8fcd300
diff --git a/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.1.ebuild b/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.1.ebuild
new file mode 100644
index 000000000000..e516fab57970
--- /dev/null
+++ b/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2010-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+BITCOINCORE_COMMITHASH="03422e564b552c1d3c16ae854f8471f7cb39e25d"
+BITCOINCORE_LJR_DATE="20161027"
+BITCOINCORE_IUSE="test"
+BITCOINCORE_NEED_LIBSECP256K1=1
+BITCOINCORE_NO_DEPEND="libevent"
+inherit bitcoincore eutils
+
+DESCRIPTION="Bitcoin Core consensus library"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+src_configure() {
+ bitcoincore_conf \
+ --with-libs
+}
+
+src_install() {
+ bitcoincore_src_install
+ dodoc doc/bips.md
+ prune_libtool_files
+}
diff --git a/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.2.ebuild b/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.2.ebuild
new file mode 100644
index 000000000000..e73d7c962e84
--- /dev/null
+++ b/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.13.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2010-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+BITCOINCORE_COMMITHASH="0d719145b018e28d48d35c2646a5962b87c60436"
+BITCOINCORE_LJR_DATE="20170102"
+BITCOINCORE_IUSE="test"
+BITCOINCORE_NEED_LIBSECP256K1=1
+BITCOINCORE_NO_DEPEND="libevent"
+inherit bitcoincore eutils
+
+DESCRIPTION="Bitcoin Core consensus library"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+src_configure() {
+ bitcoincore_conf \
+ --with-libs
+}
+
+src_install() {
+ bitcoincore_src_install
+ dodoc doc/bips.md
+ prune_libtool_files
+}
diff --git a/net-libs/libbitcoinconsensus/libbitcoinconsensus-9999.ebuild b/net-libs/libbitcoinconsensus/libbitcoinconsensus-9999.ebuild
new file mode 100644
index 000000000000..33b88996fcee
--- /dev/null
+++ b/net-libs/libbitcoinconsensus/libbitcoinconsensus-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2010-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+BITCOINCORE_IUSE="test"
+BITCOINCORE_NO_DEPEND="libevent"
+inherit bitcoincore eutils
+
+DESCRIPTION="Bitcoin Core consensus library"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+
+src_prepare() {
+ bitcoincore_src_prepare
+ epatch "${FILESDIR}/bugfix_bench_checks.patch"
+}
+
+src_configure() {
+ bitcoincore_conf \
+ --with-libs
+}
+
+src_install() {
+ bitcoincore_src_install
+ dodoc doc/bips.md
+ prune_libtool_files
+}
diff --git a/net-libs/libbitcoinconsensus/metadata.xml b/net-libs/libbitcoinconsensus/metadata.xml
new file mode 100644
index 000000000000..54ddf8fd823f
--- /dev/null
+++ b/net-libs/libbitcoinconsensus/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>luke-jr+gentoobugs@utopios.org</email>
+ <name>Luke Dashjr</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">bitcoin/bitcoin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libblkmaker/Manifest b/net-libs/libblkmaker/Manifest
new file mode 100644
index 000000000000..7308829a8ca2
--- /dev/null
+++ b/net-libs/libblkmaker/Manifest
@@ -0,0 +1,17 @@
+DIST libblkmaker-0.3.2.tgz 17893 SHA256 161dc59400eaaff210a0910b7b4c4feadad3b151422ec2ffc927ef183f8cf661 SHA512 e45c50c11676995171f6fb27346a42843a2c035c391ab84b5e565f5fff109a4ced6cdafb6c662572eb7243b25d2014400e9516cdbbd0d65f4ea31da7d0e74bdf WHIRLPOOL d1704692e844e59a5dac5760c96ab2b5d5c1df2bac6ac3e448e918ec88630cd281ef489e36d7559801608537ee9e761eb687b48c01dc5d31439dc533fedb3af7
+DIST libblkmaker-0.4.2-github.tgz 13708 SHA256 3eb6f855efb56cd87e8c2e8b52089337379c15cd33d4049c8090b39d92d5453e SHA512 b5ac42ed1be14b10a93828c3c34f1d176d9128a8cb263bda1a55cd5c9d7157f8b501a3943ee60705f572aae7bec7098a9353032499457dbbec80c105796a95cf WHIRLPOOL a84111c6d38443269cdc627663d228871be0d5435ad28cafb3b74596f85c57f1700e5e54d60dd8a875534d4eda8fd14dc483b6aa5e3619e9d0df8b2ec3a7aea5
+DIST libblkmaker-0.4.3-github.tgz 13712 SHA256 c0341616b60f421b274513b271bddd0ae8ea876ce508f3d81acd0b4f7d6125fb SHA512 a8686fc0cd757a214e24476c2fc8bac4511e6522ba977134150c0084dd2a3d7620f3378f4c454dcefb675840b71597f37d5b696a74ad0251b5d3921082c23285 WHIRLPOOL 196e1e6d34a7b091ee37de26587b7831a5e104b9d5e25e9671648fcd50db4167289429c31e2a645acb939658b1c7183bce443e57c3aaab6a31b42c3764c54db8
+DIST libblkmaker-0.5.0-github.tgz 13577 SHA256 06cf13c3de8f191ce16f40b2f2af940826d92bf2b25544b3b1bc8648b04f0a42 SHA512 64f90a652485f8c192a0d1e6184e44a0d4372907954f0abd855973099436f87a1c02a0ee383b86b22825427c7df5f46b06a9be9c55747942281cd6fc0e1aa33a WHIRLPOOL 992f9d3d5a2fe6e95f4198df97c32fc43007b336a962c13f04f8a751794e2c70bd6be05706324f6e79bfb30c598aa46b20f9b25187d93acfab398ba158a474d3
+DIST libblkmaker-0.5.1-github.tgz 13655 SHA256 f9d1ccdc2931ed7fe8248b2541e0e0cbf85da3434e2adf41e1ddeffdcec185bd SHA512 45dd0638b3d1188131d9104a86230f87910fcde225198f4d23cc69f31fc1a86077d83a89780a9ddf686dd286bcbfcb59e1a94f4dfe4e6397236a76bef50f9b14 WHIRLPOOL 5e62a57f2726ac5389c36e5072ba0fd778294eb1dadd517172b91e270a16a8c3edbc4b92c3ff6fb9a8bd8e2280face5ed1f09d216eeaf5d098ec06f6e56c4676
+DIST libblkmaker-0.5.2-github.tgz 13657 SHA256 3208d76056276ed6c27da7fc7ce4322a37cf98058deb4ea16d70087bc15e87a8 SHA512 ea3f3d2779d126c4ac55ba5bdf38dc0766559bb56609e0116e3221dd0ea058a2195c8f7b17d4d7611bb764044e79bc238130f8628f189e1f1169db11badbc824 WHIRLPOOL b5104be057b8f913d9322e6c7d3858bf63acb3e258f81400af4d6a9e2e5393e7efa1e7bd9f41a7962a705866c9b8eb901c8eb8ef7fe6050bd2781cf423a46594
+DIST libblkmaker-0.5.3-github.tgz 14161 SHA256 549193640d4cc7022725754833d9d8a7639c41e1a7d2c5f2588be65857cc0970 SHA512 57edcd583879d6abea716b6817a99dc345485392d149ddc6bb2ff9bac76d22f84cd960dc0746852e7c944a10b85d26c57fb107eac79680f77829c9bbc03c202d WHIRLPOOL be9d91f6a1e7ae1707e9454be3089f189b4a599a8af1cf54f45c750aeac19568622728485c6221e77ecd23def3f6c5fc205e48f8c312ebd3a7cf248e535ce842
+EBUILD libblkmaker-0.3.2.ebuild 548 SHA256 415c1b6f8f224618360e9de2ff3549a815f60c2355c56f5aad9dec9da54d18bb SHA512 4a4926662f5e9755f610000eb2a192443659bc02ff9d2f523f50b316ad3c07007f4448c7ad773b79003e4e795e18eacca1ebab52d763f85ef81947a9b70e19c2 WHIRLPOOL 4463ba1a130e53774de5fab1a49fa410eb66d428f1c224af7aa6440ba50ad58bd0c58b30864b297ddd4223994c746706b5b4d0726e8f0543bc92b6757fe869b7
+EBUILD libblkmaker-0.4.2.ebuild 573 SHA256 039554e77c893b169c097b05ec97cf5ddb5f2a66b0f5d238058183735c1d65b8 SHA512 87b26cd3863b89af14173d1b1b71f02fa71a8da0cfdb3c87af8e8f43c925b86c0c6d57bfe40efefa974b4f8744a3ff144efceb2a1ff01bf3246b44e9c69d06f2 WHIRLPOOL 0f7365adbc141b8783210b0799c374ad137b15843752e3afe5e1c1a032a946cabe4b63ae9533b829852f6a1fd4e9f8d60f9bdd68c922965edba3aa300d0b2aa1
+EBUILD libblkmaker-0.4.3.ebuild 520 SHA256 fe83b722e03bf43184dc2a00b391fbe0403b73d6d43049ca0df65ddd8aef10ea SHA512 c1ad5993227c768f36077e370b0e37ff426d5dcf04235d830f6b841b5f0fabd94231163b2337ea24c07d0b9ca20573a51c5bf2b71be1fdff5a9668ec21650198 WHIRLPOOL 118438dd2d535fddd354772b69a732cf88898d1a5301d844b00cb03ee5fed55ddad657df87487db84c512c87df97d67c10aaa240422f2742ae9b415bc3ac81ac
+EBUILD libblkmaker-0.5.0.ebuild 542 SHA256 915a716cce55e42370efc82d58fc90126fd9fb03f95ec5969a911cfa28234259 SHA512 8cc1cf3ed130f60f115bdccef4769693c6fc9ba7fa4a9b913d27ad905b27eb01fa834182a1093004f13b4cbf627e14517346bac57143083c5c58261a46d94259 WHIRLPOOL 93d030debd06ace67609f99f500ca0b33f9d3969a8c0d40041a19fc103a1635f1ab6b3b41d579946eb9878ae8b6b2f27cfae1e81fe5273925729042083601e7f
+EBUILD libblkmaker-0.5.1.ebuild 542 SHA256 915a716cce55e42370efc82d58fc90126fd9fb03f95ec5969a911cfa28234259 SHA512 8cc1cf3ed130f60f115bdccef4769693c6fc9ba7fa4a9b913d27ad905b27eb01fa834182a1093004f13b4cbf627e14517346bac57143083c5c58261a46d94259 WHIRLPOOL 93d030debd06ace67609f99f500ca0b33f9d3969a8c0d40041a19fc103a1635f1ab6b3b41d579946eb9878ae8b6b2f27cfae1e81fe5273925729042083601e7f
+EBUILD libblkmaker-0.5.2.ebuild 542 SHA256 915a716cce55e42370efc82d58fc90126fd9fb03f95ec5969a911cfa28234259 SHA512 8cc1cf3ed130f60f115bdccef4769693c6fc9ba7fa4a9b913d27ad905b27eb01fa834182a1093004f13b4cbf627e14517346bac57143083c5c58261a46d94259 WHIRLPOOL 93d030debd06ace67609f99f500ca0b33f9d3969a8c0d40041a19fc103a1635f1ab6b3b41d579946eb9878ae8b6b2f27cfae1e81fe5273925729042083601e7f
+EBUILD libblkmaker-0.5.3.ebuild 542 SHA256 915a716cce55e42370efc82d58fc90126fd9fb03f95ec5969a911cfa28234259 SHA512 8cc1cf3ed130f60f115bdccef4769693c6fc9ba7fa4a9b913d27ad905b27eb01fa834182a1093004f13b4cbf627e14517346bac57143083c5c58261a46d94259 WHIRLPOOL 93d030debd06ace67609f99f500ca0b33f9d3969a8c0d40041a19fc103a1635f1ab6b3b41d579946eb9878ae8b6b2f27cfae1e81fe5273925729042083601e7f
+MISC ChangeLog 3015 SHA256 620a5806230ea3e7c55f67385d7c2883019ee354c003cec522f1702b27146089 SHA512 914c9af848741ea02e14769e1f8558fea5f77a16c0d5dbe9ca8463391070d8fcc06cdecc96b0ef6f78a5c8e841f0f89bcfd0ffb4ff446a66206a1ff3fd9d1d02 WHIRLPOOL 44088e59574367ecf51cf545ebfa54e7d870dbf116754168c0b1d892d8b496fc2b05146a7d142ec89d3aa66eb816c92910c04f6ba301a874b53712f5ad1ab2ab
+MISC ChangeLog-2015 2066 SHA256 7a7e42cbcb53273aa4f40774c8da3ffed11c339eea016585d4408109e3bbd298 SHA512 d2f8d59603e0cba02b72b3effb93b5105cdf3e7ccb402416c39413984ff02a334082d63acdf646b6cc88048e003a895e2eb29d84399336c68577dbff460d7098 WHIRLPOOL 970c719cf92fbf0d433b8b650e554f4e9195688e6fa98151977203194ae3344807718d6ef60add5abda2b99d1bca1b3c0d15f539bb23a2b4b432c9534efdda18
+MISC metadata.xml 571 SHA256 466bd202f99a3a628422fe64879b94c6e8b327048d4549fe387456e27ac2cee7 SHA512 efdfe85835a576ce80fd8c82642834b607525d32a771e272088ea78899049c686d3fe144cee6ea1d38b136d135378673842bd27ca4ff2052368fbb355bbb2996 WHIRLPOOL d51bbca79bf297e340de8fdabb6bc6159de3f6bd1b83aed309df035d4c72652a487aa23e5cd375eef78bbd699e3d3825431b24107cfdcb440a29ee8ebcba1182
diff --git a/net-libs/libblkmaker/libblkmaker-0.3.2.ebuild b/net-libs/libblkmaker/libblkmaker-0.3.2.ebuild
new file mode 100644
index 000000000000..08fdd6051633
--- /dev/null
+++ b/net-libs/libblkmaker/libblkmaker-0.3.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="C implementation of getblocktemplate (BIP 22)"
+HOMEPAGE="https://gitorious.org/bitcoin/libblkmaker"
+LICENSE="MIT"
+
+SRC_URI="https://gitorious.org/bitcoin/${PN}/archive/v${PV}.tar.gz -> ${P}.tgz"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~mips ~ppc ~ppc64 x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/jansson-2.0.0
+"
+RDEPEND="${DEPEND}
+ !<net-misc/bfgminer-3.0.3
+"
+
+S="${WORKDIR}/bitcoin-libblkmaker/"
+
+src_prepare() {
+ ./autogen.sh || die
+}
diff --git a/net-libs/libblkmaker/libblkmaker-0.4.2.ebuild b/net-libs/libblkmaker/libblkmaker-0.4.2.ebuild
new file mode 100644
index 000000000000..7e280f376cd3
--- /dev/null
+++ b/net-libs/libblkmaker/libblkmaker-0.4.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="C implementation of getblocktemplate (BIP 22)"
+HOMEPAGE="https://gitorious.org/bitcoin/libblkmaker"
+HOMEPAGE="https://github.com/bitcoin/libblkmaker"
+LICENSE="MIT"
+
+SRC_URI="https://github.com/bitcoin/libblkmaker/archive/v${PV}.tar.gz -> ${P}-github.tgz"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/jansson-2.0.0
+"
+RDEPEND="${DEPEND}
+ !<net-misc/bfgminer-3.0.3
+"
+
+src_prepare() {
+ ./autogen.sh || die
+}
diff --git a/net-libs/libblkmaker/libblkmaker-0.4.3.ebuild b/net-libs/libblkmaker/libblkmaker-0.4.3.ebuild
new file mode 100644
index 000000000000..f553ed3d872b
--- /dev/null
+++ b/net-libs/libblkmaker/libblkmaker-0.4.3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="C implementation of getblocktemplate (BIP 22)"
+HOMEPAGE="https://github.com/bitcoin/libblkmaker"
+LICENSE="MIT"
+
+SRC_URI="https://github.com/bitcoin/libblkmaker/archive/v${PV}.tar.gz -> ${P}-github.tgz"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/jansson-2.0.0
+"
+RDEPEND="${DEPEND}
+ !<net-misc/bfgminer-3.0.3
+"
+
+src_prepare() {
+ ./autogen.sh || die
+}
diff --git a/net-libs/libblkmaker/libblkmaker-0.5.0.ebuild b/net-libs/libblkmaker/libblkmaker-0.5.0.ebuild
new file mode 100644
index 000000000000..e5bd51134072
--- /dev/null
+++ b/net-libs/libblkmaker/libblkmaker-0.5.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="C implementation of getblocktemplate (BIP 22)"
+HOMEPAGE="https://github.com/bitcoin/libblkmaker"
+LICENSE="MIT"
+
+SRC_URI="https://github.com/bitcoin/libblkmaker/archive/v${PV}.tar.gz -> ${P}-github.tgz"
+SLOT="0/7"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/jansson-2.0.0
+ dev-libs/libbase58
+"
+RDEPEND="${DEPEND}
+ !<net-misc/bfgminer-3.0.3
+"
+
+src_prepare() {
+ ./autogen.sh || die
+}
diff --git a/net-libs/libblkmaker/libblkmaker-0.5.1.ebuild b/net-libs/libblkmaker/libblkmaker-0.5.1.ebuild
new file mode 100644
index 000000000000..e5bd51134072
--- /dev/null
+++ b/net-libs/libblkmaker/libblkmaker-0.5.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="C implementation of getblocktemplate (BIP 22)"
+HOMEPAGE="https://github.com/bitcoin/libblkmaker"
+LICENSE="MIT"
+
+SRC_URI="https://github.com/bitcoin/libblkmaker/archive/v${PV}.tar.gz -> ${P}-github.tgz"
+SLOT="0/7"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/jansson-2.0.0
+ dev-libs/libbase58
+"
+RDEPEND="${DEPEND}
+ !<net-misc/bfgminer-3.0.3
+"
+
+src_prepare() {
+ ./autogen.sh || die
+}
diff --git a/net-libs/libblkmaker/libblkmaker-0.5.2.ebuild b/net-libs/libblkmaker/libblkmaker-0.5.2.ebuild
new file mode 100644
index 000000000000..e5bd51134072
--- /dev/null
+++ b/net-libs/libblkmaker/libblkmaker-0.5.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="C implementation of getblocktemplate (BIP 22)"
+HOMEPAGE="https://github.com/bitcoin/libblkmaker"
+LICENSE="MIT"
+
+SRC_URI="https://github.com/bitcoin/libblkmaker/archive/v${PV}.tar.gz -> ${P}-github.tgz"
+SLOT="0/7"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/jansson-2.0.0
+ dev-libs/libbase58
+"
+RDEPEND="${DEPEND}
+ !<net-misc/bfgminer-3.0.3
+"
+
+src_prepare() {
+ ./autogen.sh || die
+}
diff --git a/net-libs/libblkmaker/libblkmaker-0.5.3.ebuild b/net-libs/libblkmaker/libblkmaker-0.5.3.ebuild
new file mode 100644
index 000000000000..e5bd51134072
--- /dev/null
+++ b/net-libs/libblkmaker/libblkmaker-0.5.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="C implementation of getblocktemplate (BIP 22)"
+HOMEPAGE="https://github.com/bitcoin/libblkmaker"
+LICENSE="MIT"
+
+SRC_URI="https://github.com/bitcoin/libblkmaker/archive/v${PV}.tar.gz -> ${P}-github.tgz"
+SLOT="0/7"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/jansson-2.0.0
+ dev-libs/libbase58
+"
+RDEPEND="${DEPEND}
+ !<net-misc/bfgminer-3.0.3
+"
+
+src_prepare() {
+ ./autogen.sh || die
+}
diff --git a/net-libs/libblkmaker/metadata.xml b/net-libs/libblkmaker/metadata.xml
new file mode 100644
index 000000000000..bd88e505296a
--- /dev/null
+++ b/net-libs/libblkmaker/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 type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>luke-jr+gentoobugs@utopios.org</email>
+ <name>Luke Dashjr</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">bitcoin/libblkmaker</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libbtbb/Manifest b/net-libs/libbtbb/Manifest
new file mode 100644
index 000000000000..fa6270c561f8
--- /dev/null
+++ b/net-libs/libbtbb/Manifest
@@ -0,0 +1,8 @@
+DIST libbtbb-2015-10-R1.tar.gz 221859 SHA256 95f493d379a53ec1134cfb36349cc9aac95d77260db4fdb557313b0dbb5c1d5a SHA512 550d793326cfb4d31ed00d46faf3521ccafc133614f866961ba6226dff41d3deda428b45f01178e0dea7925635a64e843f0510049408c3f299ad427f2c0832ac WHIRLPOOL 4ac8697150ff5215765a5331695bfc6d2967ff61a4fc89820dd8e3c72f52f51f3d5aff2b4f020de6c728cd368a295a90bbd0bb1cebb60d895c84d5219cc70e77
+DIST libbtbb-2017-03-R2.tar.gz 303689 SHA256 2b3ea5f07b7022e862f367e8a9a217e1d10920aecdc4eba7b7309724fb229cfd SHA512 bb7b58a33198fd64fba5f0254cfbb71120c70476d594a7aaf82c77f770d1a6e89b4571f42d3d15c1d93d5246c9145c33ba8724a5ee5ad84e96f748d9f32275b5 WHIRLPOOL d594162d36224ae12d719ecb1139099e6cebb3719dec34dee7e3702ffcdf446e77b7d8efed94415dcdb08410de25150fb5a75a0b00f2fa1bb08e67b0577d715a
+EBUILD libbtbb-2015.10.1.ebuild 2879 SHA256 f3b8e32fdece349d87de99273fec035c8a325fc1125a2e96ad354573baf140ea SHA512 6f54ec710561eec1af908e4670da73167c8d431d7013fcb5588eca6f250375cec0127a40dcb3fefa5a3c1be1900367340a40ce7e8d1865bb59f7344bdc22108d WHIRLPOOL 9044097dc9a6f82954e2223dcd686295c6dd1ec92ec943428d77c6011f7bea3ddb0ab3d02e033d4b52b1abad52a536a7188a5a94079a6571519776d7463ecd26
+EBUILD libbtbb-2017.03.2.ebuild 3653 SHA256 2b01e6cb987391b906108a6b7ea1072300cfac64d20fe52d5ea302949c43e5d9 SHA512 ab2bce27d74c21af2bf5a1702c1d650756ed6fd1968d4ac8d575e6f9e28867f4e71fcf940154d9d35482a13d1eb4b04bcd4dea48ebe73487fbddf18b650b0e08 WHIRLPOOL a41d1a047d555b4d203e051dcaef9c311ebf640d97f9b5bae5fdf827eac943f68d1cd4d29df386171873fa2e5bb1cd383f92959049ae7410413bacec8fdb36b2
+EBUILD libbtbb-9999.ebuild 3653 SHA256 2b01e6cb987391b906108a6b7ea1072300cfac64d20fe52d5ea302949c43e5d9 SHA512 ab2bce27d74c21af2bf5a1702c1d650756ed6fd1968d4ac8d575e6f9e28867f4e71fcf940154d9d35482a13d1eb4b04bcd4dea48ebe73487fbddf18b650b0e08 WHIRLPOOL a41d1a047d555b4d203e051dcaef9c311ebf640d97f9b5bae5fdf827eac943f68d1cd4d29df386171873fa2e5bb1cd383f92959049ae7410413bacec8fdb36b2
+MISC ChangeLog 4550 SHA256 7645c889cd4fc584226262caaa43c4272afdb893ad5ebe2bf46079780f49acd1 SHA512 6230c10940993c5f281dcd5bf153da0ab74ac2f675a135a105a3ffa2744e5de5f8478045a0efb9f3d0666ce98161e2c781301c656b1087a9acfc40d091e235ab WHIRLPOOL 586884c54f82244d589ce7ee6c413eaa5a81f2aae27163ba716b584b84ede5a8d184a93fdf814f0738d67feccd463f2b9dc851004ec7e3547a9d3f3a5730b11b
+MISC ChangeLog-2015 4051 SHA256 838b25f868d4e631c6ce24ac19e811cae67fe062d4fe4e769147b05fa27490e9 SHA512 03dea1e49c67648d01da966d02cb572c0112f4fa89f43d91445d719fad1c5e0c880af74fb2632e40b0db957a7e1f0b91cc93a53aaeeb66bbd3725bee13993809 WHIRLPOOL ca44ea78807a257c3ce79b5a73e7c277a7c1bf4bff53ff466cb4740496ad964026098a00903f646f1477eb9ab5c7c099ed96f3112566346d1c5d489607bf3978
+MISC metadata.xml 683 SHA256 4739c579d88c0ba7121dd3a35e08141bf524384e7d8b3b6305108876b70ef747 SHA512 a04ffdba72e48c1431e20bfb656a89060ab1a781356c126bcc50eb294437d07d98f758b601c849e2c8eec2a93a20333ae2acf8fe34b4d152cfa36cfa22b6813b WHIRLPOOL 4ed1107431c2b3d2aa02266e927efee435c665fbb996bf4e4d913e07ce1bebae64cfac86646d889c1ca5fda44991ffe6593766b3bb57e74af7fae5bee7bb1a23
diff --git a/net-libs/libbtbb/libbtbb-2015.10.1.ebuild b/net-libs/libbtbb/libbtbb-2015.10.1.ebuild
new file mode 100644
index 000000000000..7734344c353f
--- /dev/null
+++ b/net-libs/libbtbb/libbtbb-2015.10.1.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multilib cmake-utils
+
+DESCRIPTION="A library to decode Bluetooth baseband packets"
+HOMEPAGE="http://libbtbb.sourceforge.net/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ MY_PV=${PV/\./-}
+ MY_PV=${MY_PV/./-R}
+ S=${WORKDIR}/${PN}-${MY_PV}
+ SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+IUSE="+pcap +wireshark-plugins"
+
+RDEPEND="
+ pcap? ( net-libs/libpcap )
+ wireshark-plugins? (
+ >=net-analyzer/wireshark-1.8.3-r1:=
+ !>net-analyzer/wireshark-1.98
+ )
+"
+DEPEND="${RDEPEND}
+ wireshark-plugins? ( dev-libs/glib
+ virtual/pkgconfig )"
+
+get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; }
+
+which_plugins() {
+ if has_version '>=net-analyzer/wireshark-1.12.0'; then
+ plugins="btbb btbredr"
+ elif has_version '<net-analyzer/wireshark-1.12.0'; then
+ plugins="btbb btle btsm"
+ fi
+}
+
+src_prepare(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_prepare
+
+ if use wireshark-plugins; then
+ which_plugins
+ for i in ${plugins}
+ do
+ sed -i 's#column_info#packet#' wireshark/plugins/${i}/cmake/FindWireshark.cmake || die
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_prepare
+ done
+ fi
+}
+
+src_configure() {
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ local mycmakeargs=(
+ -DDISABLE_PYTHON=true
+ -DPACKAGE_MANAGER=true
+ $(cmake-utils_use pcap PCAPDUMP)
+ $(cmake-utils_use pcap USE_PCAP)
+ )
+ cmake-utils_src_configure
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)"
+ )
+ cmake-utils_src_configure
+ done
+ fi
+}
+
+src_compile(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_compile
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_compile
+ done
+ fi
+}
+
+src_test(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_test
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_test
+ done
+ fi
+}
+
+src_install(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_install
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_install
+ done
+ fi
+}
diff --git a/net-libs/libbtbb/libbtbb-2017.03.2.ebuild b/net-libs/libbtbb/libbtbb-2017.03.2.ebuild
new file mode 100644
index 000000000000..b29bdf569323
--- /dev/null
+++ b/net-libs/libbtbb/libbtbb-2017.03.2.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_OPTIONAL=1
+
+inherit multilib cmake-utils python-single-r1
+
+DESCRIPTION="A library to decode Bluetooth baseband packets"
+HOMEPAGE="http://libbtbb.sourceforge.net/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ MY_PV=${PV/\./-}
+ MY_PV=${MY_PV/./-R}
+ S=${WORKDIR}/${PN}-${MY_PV}
+ SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+IUSE="extras static-libs wireshark-plugins"
+
+RDEPEND="extras? ( ${PYTHON_DEPS} )
+ wireshark-plugins? (
+ >=net-analyzer/wireshark-1.8.3-r1:=
+ )
+"
+DEPEND="${RDEPEND}
+ wireshark-plugins? ( dev-libs/glib
+ virtual/pkgconfig )"
+
+REQUIRED_USE="extras? ( ${PYTHON_REQUIRED_USE} )"
+
+get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; }
+
+which_plugins() {
+ if has_version '>=net-analyzer/wireshark-2.2.0'; then
+ plugins=""
+ elif has_version '>=net-analyzer/wireshark-1.12.0'; then
+ plugins="btbb btbredr"
+ elif has_version '<net-analyzer/wireshark-1.12.0'; then
+ plugins="btbb btle btsm"
+ fi
+}
+
+src_prepare(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_prepare
+
+ if use wireshark-plugins; then
+ which_plugins
+ for i in ${plugins}
+ do
+ sed -i 's#column_info#packet#' wireshark/plugins/${i}/cmake/FindWireshark.cmake || die
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_prepare
+ done
+ fi
+}
+
+src_configure() {
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ local mycmakeargs=(
+ -DENABLE_PYTHON=$(usex extras)
+ -DBUILD_STATIC_LIB=$(usex static-libs)
+ -DBUILD_ROOT="${ED}"
+ )
+ cmake-utils_src_configure
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)"
+ )
+ cmake-utils_src_configure
+ done
+ fi
+}
+
+src_compile(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_compile
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_compile
+ done
+ fi
+}
+
+src_test(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_test
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_test
+ done
+ fi
+}
+
+src_install(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_install
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_install
+ done
+ fi
+}
diff --git a/net-libs/libbtbb/libbtbb-9999.ebuild b/net-libs/libbtbb/libbtbb-9999.ebuild
new file mode 100644
index 000000000000..b29bdf569323
--- /dev/null
+++ b/net-libs/libbtbb/libbtbb-9999.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_OPTIONAL=1
+
+inherit multilib cmake-utils python-single-r1
+
+DESCRIPTION="A library to decode Bluetooth baseband packets"
+HOMEPAGE="http://libbtbb.sourceforge.net/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ MY_PV=${PV/\./-}
+ MY_PV=${MY_PV/./-R}
+ S=${WORKDIR}/${PN}-${MY_PV}
+ SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+IUSE="extras static-libs wireshark-plugins"
+
+RDEPEND="extras? ( ${PYTHON_DEPS} )
+ wireshark-plugins? (
+ >=net-analyzer/wireshark-1.8.3-r1:=
+ )
+"
+DEPEND="${RDEPEND}
+ wireshark-plugins? ( dev-libs/glib
+ virtual/pkgconfig )"
+
+REQUIRED_USE="extras? ( ${PYTHON_REQUIRED_USE} )"
+
+get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; }
+
+which_plugins() {
+ if has_version '>=net-analyzer/wireshark-2.2.0'; then
+ plugins=""
+ elif has_version '>=net-analyzer/wireshark-1.12.0'; then
+ plugins="btbb btbredr"
+ elif has_version '<net-analyzer/wireshark-1.12.0'; then
+ plugins="btbb btle btsm"
+ fi
+}
+
+src_prepare(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_prepare
+
+ if use wireshark-plugins; then
+ which_plugins
+ for i in ${plugins}
+ do
+ sed -i 's#column_info#packet#' wireshark/plugins/${i}/cmake/FindWireshark.cmake || die
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_prepare
+ done
+ fi
+}
+
+src_configure() {
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ local mycmakeargs=(
+ -DENABLE_PYTHON=$(usex extras)
+ -DBUILD_STATIC_LIB=$(usex static-libs)
+ -DBUILD_ROOT="${ED}"
+ )
+ cmake-utils_src_configure
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)"
+ )
+ cmake-utils_src_configure
+ done
+ fi
+}
+
+src_compile(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_compile
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_compile
+ done
+ fi
+}
+
+src_test(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_test
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_test
+ done
+ fi
+}
+
+src_install(){
+ CMAKE_USE_DIR="${S}"
+ BUILD_DIR="${S}"_build
+ cmake-utils_src_install
+
+ if use wireshark-plugins; then
+ for i in ${plugins}
+ do
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
+ BUILD_DIR="${WORKDIR}"/${i}_build
+ cmake-utils_src_install
+ done
+ fi
+}
diff --git a/net-libs/libbtbb/metadata.xml b/net-libs/libbtbb/metadata.xml
new file mode 100644
index 000000000000..7e1cb0b65dbb
--- /dev/null
+++ b/net-libs/libbtbb/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 type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <use>
+ <flag name="extras">Install pcapdump and btaptap tools</flag>
+ <flag name="pcap">Add support for network packet capture via <pkg>net-libs/libpcap</pkg></flag>
+ <flag name="wireshark-plugins">Build the wireshark plugins for bluetooth baseband sniffing</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">greatscottgadgets/libbtbb</remote-id>
+ <remote-id type="sourceforge">libbtbb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libcapi/Manifest b/net-libs/libcapi/Manifest
new file mode 100644
index 000000000000..54bdbf994d29
--- /dev/null
+++ b/net-libs/libcapi/Manifest
@@ -0,0 +1,6 @@
+AUX libcapi-3.0.7-remove-libcapi20dyn.patch 890 SHA256 5630fbf3394580a928fc080cab49936a416eb375251210c346137786751a5b04 SHA512 7e5216d7dab21d397da85b6b8c6c5a3e4cd3b0a724ff30baeb9a4651981e1cf3cdae64f6b2a628026132e492d49f142a249db0a99f82cdb281efeddacd3a986e WHIRLPOOL 90980cf45c1502da84e583568dfbd505c6508f8977a4c216c5aa5dfb9705c0edce18df071c9886251a752467189afa6cee173ae30c07f3945301fbe0f49c2a14
+DIST libcapi20-3.0.7.tar.bz2 474174 SHA256 f36c7d1d8a46dd76b1e3443d6f5478ad16177d3f91c9f67bc654608167020293 SHA512 c14e493f34fbd8477aed8efc0e6ee8dc07c6007be75610d59a15ce23f48cd5cd53da1b1ac64c11e7516df5aff40877c76ce7a6d72b5c7b1d24beee7592a51bbe WHIRLPOOL 7ba7530ea680a22d0538af8d14e66b51735c7e125f9450d845794a96c964dcf968daf4a02afd1b2a00e66b9898d5b6d00074aab418363c100815a2301d7ab3b4
+EBUILD libcapi-3.0.7-r1.ebuild 546 SHA256 16aae3873205fab298e130be04774a9f90202974160ef9804f1a285d8dd382bf SHA512 d90cec11655871aa604d70fe5397bc98735aa02e4fcf6e483fdcd72584d32c0ffd24b93f3c5dd9804df28e51a9b4e7a9d2762867a6e98a3c5ba8c28ff032477a WHIRLPOOL 277a2aa75e1cb600451547fb2e6e245cc3db061d24b6fd4fdc8b6fdfbb90166c5d645252b9c28a0e09302973e345ca77f9d7d5698a564fbf92ba3f65524523d6
+MISC ChangeLog 2773 SHA256 e6d334b93b718c14f6a1056d813b9da132e34d4c585b7acb262046659f1f9914 SHA512 3d74f9533317c732771a9fca2fcaff4ce7748865852ae220d49fe91eb2dc565e8acd25a0ab3efaf15ab3985a710ddca41bc712a6f00e27b963f9a18cc24b7c36 WHIRLPOOL 22e6d48fb3a6986b5627a4683b8f26eca8d77adcbd740b41c3dd0d166db9ff894ab36d1ffe89330cbedbb25501fe703eb59d218caaa9ee9cec17ebfe266b3a8b
+MISC ChangeLog-2015 847 SHA256 5d935482f8d30fc5b8baba2e9b64802769dd66c14eeeeba584846d85a681af7d SHA512 1da11e85e1fcfa1835ea359f653646f9975f3028b210527f227b038dda5e5a6287808ceaf1f70f3bb4bc9ce2516d48f016de30ca00f5f2fec258d3c870a03a39 WHIRLPOOL 92b9dcdc7912fb11aea3eea9df1e1d5b0351e71ca62bc44c3e5a650ab6b2a66c382a43b4ffc7361384bc17a5d168fa64d91e6d055b3e9dfc56feb3d9ad0f6d44
+MISC metadata.xml 247 SHA256 961cf69381a48989b52cb5815e3fa4dfbf8acf61667a11527aa62e80ebdf996a SHA512 150c10fea209759328d07c0c018cfe5e89e632e4a5e1954f12ed48e75e0a7a7f9fc084cde4214fcf074b9504dc78b79e788c05db6cecc9521f6afdd852892c9a WHIRLPOOL 3a1f9d69dba3b5ca3094e21356a6a242069714fadb2097c7eabe73611d95fb0d56bb97ba9ae799c668fb711e06663b311cf13b6ebc07d1aa220c46322f1c7550
diff --git a/net-libs/libcapi/files/libcapi-3.0.7-remove-libcapi20dyn.patch b/net-libs/libcapi/files/libcapi-3.0.7-remove-libcapi20dyn.patch
new file mode 100644
index 000000000000..1e8d9a88afac
--- /dev/null
+++ b/net-libs/libcapi/files/libcapi-3.0.7-remove-libcapi20dyn.patch
@@ -0,0 +1,21 @@
+diff --git a/Makefile.am b/Makefile.am
+index 46f308c..df8ea69 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -7,7 +7,6 @@ MAINTAINERCLEANFILES = configure aclocal.m4 Makefile.in config.h.in
+ stamp-h.in
+ include_HEADERS = capi20.h capiutils.h capicmd.h capi_mod.h capi_debug.h
+ lib_LTLIBRARIES = libcapi20.la
+-lib_LIBRARIES = libcapi20dyn.a
+
+ libcapi20_la_SOURCES = capi20.c capifunc.c convert.c capi_defs.h compat/byteswap.h
+ libcapi20_la_LDFLAGS = -version-info ${LIBCAPI_VERSION}:${LIBCAPI_VERSION_RELEASE}:${LIBCAPI_VERSION_AGE} -lc -rdynamic
+@@ -35,8 +34,6 @@ lib_capi_mod_rcapi_la_CFLAGS = -fno-strict-aliasing
+ lib_capi_mod_rcapi_la_LDFLAGS = -shared -version-info @CAPI_MODULE_LOADER_VERSION@:0:0 -no-undefined
+ lib_capi_mod_rcapi_la_LIBADD = libcapi20.la
+
+-libcapi20dyn_a_SOURCES = capidyn.c
+-libcapi20dyn_a_CFLAGS = -fPIC
+ libcapi20_la_LIBADD = $(LIBADD_DL)
+
+ if WIN32
diff --git a/net-libs/libcapi/libcapi-3.0.7-r1.ebuild b/net-libs/libcapi/libcapi-3.0.7-r1.ebuild
new file mode 100644
index 000000000000..e8956cc46aea
--- /dev/null
+++ b/net-libs/libcapi/libcapi-3.0.7-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+inherit autotools-multilib
+
+DESCRIPTION="CAPI library used by AVM products"
+HOMEPAGE="http://www.tabos.org/ffgtk"
+SRC_URI="http://www.tabos.org/ffgtk/download/libcapi20-${PV}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+S="${WORKDIR}/capi20"
+
+RDEPEND="!net-dialup/capi4k-utils"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-remove-libcapi20dyn.patch" )
diff --git a/net-libs/libcapi/metadata.xml b/net-libs/libcapi/metadata.xml
new file mode 100644
index 000000000000..8c68ad9f558e
--- /dev/null
+++ b/net-libs/libcapi/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 type="person">
+ <email>NP-Hardass@gentoo.org</email>
+ <name>NP-Hardass</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libcrafter/Manifest b/net-libs/libcrafter/Manifest
new file mode 100644
index 000000000000..912919d0a5fb
--- /dev/null
+++ b/net-libs/libcrafter/Manifest
@@ -0,0 +1,6 @@
+DIST libcrafter-0.3.tar.gz 104051 SHA256 4608b10470aaa5a711b13b7c9db93fc6c3daca8c26ae7e81b0d7aa8af3a497aa SHA512 7c396ba942b304dddfaa569adb44697f75568d3ef2ed48dda758e281f3b7c172439309033bbf5498069a4a61a952f93e41af99b129ce874ce76b5ec08da58116 WHIRLPOOL 9444ba34eb9c0f4072bb52d1bc1a0712e274c344af61059f60f626a4465476d65606918bb759e236c97bb8c49733e498f9fa8593862058fb0e0aa397bf489eea
+EBUILD libcrafter-0.3.ebuild 658 SHA256 c90af20878393aa6a388cebd764750b8c5e2d61f7076b67f7428bcab7e792266 SHA512 3a8b09162802b69465e798b52e13c291e1d9521807a37b4e3fc4f2988e5581985a8270decd9b8ce1786371d3b07d0e79aae599c60e6ddc94cd5c46e14c9ab6cc WHIRLPOOL 4cc57f43a43386237b9ef353d0973cc9125fac81121b04a7f5bc80bbda2743a9d38ad4ae60cfa2d916b2e77e7b4d3a79f75e84c90280fe23f3d7e3d19aa7e428
+EBUILD libcrafter-9999.ebuild 637 SHA256 f7c33d79451651c906785391dad813d5b7315a8ad3c62b43a32716ca8cc6909b SHA512 6d8ec46b293ce4cf17236b00f07cc01795d536577027d7bcab42128446dfe80d734270401a93719ad95de394490025f86c2ddd1c4f86030309eeb026accc62b7 WHIRLPOOL 6a88f284b55c095ae31b198241a5aabf153b80dc8e088878ab197cc9a9b1acf7eaf3802bba41475b95605e69eb03ee552a6bd06a1392e2218745852712d6d56c
+MISC ChangeLog 2942 SHA256 3f1eecf4ceb99c8b8f6e942ac46a62fe77cae5d8b4086a26c13d5a60bf204c82 SHA512 03f350a032275ef9df1d72694c147a550a3719ccc4f11c725971170ed50d86c94e5958bc01584352c6e7de5ec9de59aa7328974cb575c6c4d57b61955b6e4ed5 WHIRLPOOL 8b35245e3f6386e600c943b04fdcc1eb3e931103e7bbf7c6be0aab10cab685e50f316ea16e1c82bd5bf1a837c8c44ee5d8b529fb9d9c0b3aef46f29a884ec73e
+MISC ChangeLog-2015 1062 SHA256 1c61f79f440d319de66dc3c7e22b216cf1eac941784dc584d9ec11ab7a58a2a1 SHA512 e12c2c3aa92b4ee294f5df359a398eac667f2342a6544c9b93b954fabbba5042f89330d883e7ba9c430d9a45126bb36212f316051153394444343d608cf9753f WHIRLPOOL 569cde5be8134038c40fa9dd78497993413f84084f78d67e6e101dba270b5ac36d325fe01f69531960cbba8f7d06c74f62b05c031300c3faf122d3c19b66aacf
+MISC metadata.xml 1647 SHA256 ba8cff4e6d3857cf23b028b72e3005493dc7fc57be058a3650f619855545c3b9 SHA512 6e1ee9e3402a26c3981552ff8fd7193f75dae388fb6d1e59739e1cc4e6f027c995cc68b1984fc13d39d56c152fee6b4b6ee82c9c79f6033627b5e9e0261bdc87 WHIRLPOOL d160a5b7253236a6aecfcc257194ea0d46bd60a06157addbab3c06900eb9fccb4693affd58cec91c83533b4bcb1eb463c57d6d8c7b57de6d630001125d734a13
diff --git a/net-libs/libcrafter/libcrafter-0.3.ebuild b/net-libs/libcrafter/libcrafter-0.3.ebuild
new file mode 100644
index 000000000000..aafb4400f9e0
--- /dev/null
+++ b/net-libs/libcrafter/libcrafter-0.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="A high level C++ network packet sniffing and crafting library"
+HOMEPAGE="https://github.com/pellegre/libcrafter"
+SRC_URI="https://github.com/pellegre/${PN}/archive/version-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ net-libs/libpcap
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+S=${WORKDIR}/${PN}-version-${PV}/${PN}
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ prune_libtool_files
+}
diff --git a/net-libs/libcrafter/libcrafter-9999.ebuild b/net-libs/libcrafter/libcrafter-9999.ebuild
new file mode 100644
index 000000000000..561ca127a53c
--- /dev/null
+++ b/net-libs/libcrafter/libcrafter-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils git-r3
+
+DESCRIPTION="a high level library for C++ designed to make easier the creation and decoding of network packets"
+HOMEPAGE="https://github.com/pellegre/libcrafter"
+EGIT_REPO_URI="https://github.com/pellegre/${PN}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="static-libs"
+
+RDEPEND="
+ net-libs/libpcap
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+S=${WORKDIR}/${P}/${PN}
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ prune_libtool_files
+}
diff --git a/net-libs/libcrafter/metadata.xml b/net-libs/libcrafter/metadata.xml
new file mode 100644
index 000000000000..a6af28bc39c2
--- /dev/null
+++ b/net-libs/libcrafter/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <longdescription lang="en">
+Libcrafter is a high level library for C++ designed to facilitate the creation
+and decoding of network packets. It is able to craft or decode packets of most
+common networks protocols, send them on the wire, capture them and match
+requests and replies.
+It enables the creation of networking tools in a few lines with a interface
+very similar to <pkg>net-analyzer/scapy</pkg>.
+A packet is described as layers that you stack one upon the other. Fields of
+each layer have useful default values that you can overload.
+
+The library is designed to be used in multithreaded programs where you can
+combine several tasks simultaneously. For example, you can easily design
+something that sniffs, mangles, and sends at the same time you are doing an
+ARP-Spoofing attack.
+It also contains a very naive implementation of the TCP/IP stack (fragmentation
+is no handled yet) at user level that enables working with TCP streams. This
+facilitates the creation of tools for data injection on arbitrary connections,
+IP spoofing and TCP/IP session hijacking.
+
+Supported protocols are:
+
+Ethernet, SLL (Linux cooked-mode capture), ARP, DHCP, DHCP options, IP, IP
+options, IPv6, ICMP, ICMPv6, ICMP extensions, ICMPv6 extensions, TCP, TCP
+options, UDP and DNS
+</longdescription>
+ <upstream>
+ <remote-id type="github">pellegre/libcrafter</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libdmapsharing/Manifest b/net-libs/libdmapsharing/Manifest
new file mode 100644
index 000000000000..ab1a1ac84821
--- /dev/null
+++ b/net-libs/libdmapsharing/Manifest
@@ -0,0 +1,7 @@
+DIST libdmapsharing-2.9.37.tar.gz 760469 SHA256 9b6847b4021596913c927cca51600727cd44582b4417a3b1ec6967d0ab42ec79 SHA512 db64c7e9ca6d8e06fdbec44853d8667a5d698244bc0881beae6aee447d464882accd885685636b3cd84735fe16eaa3b7bf692f2ac217525a9b86f5a12c810e8f WHIRLPOOL b8055b26a08417eb88950d35ab3c8c1bdbd26e86c0908edd65a4190e59f34a572731afd14b3283ed04311245e2c4731cbeeb4b6afd7d74ae6a50958ce2fecdbe
+DIST libdmapsharing-2.9.39.tar.gz 757492 SHA256 a90dc0681ae81700e46efc539f70edb6edd936b782a9a695434bea660a43a5ef SHA512 7003b947e1982735b647c1fa8e7e80e05322acf4ed4b5c1c28708da00a0bfe3eecac01bc2ddf59966e7db045f14fc78e749a2859d7e909bcea41164939f15b4a WHIRLPOOL 1d033a2ccc1d02ef1f4e916251c06b39a7ce52dc9c9b577a4a793518b41f4bef015ac654a8b3517a9539f0d6be671b245e7113b733ee4de5b1b630af837f8403
+EBUILD libdmapsharing-2.9.37.ebuild 1203 SHA256 f08507f5dae43865fb4db91a9ed760c36f70c29519a4f71883796e4ea52dda6c SHA512 13d867ddf86b407038b53a07ec951e9429f4753eed43736d8c4387981e065dc2c0eeda31e444b9db7a3d8ff25f5956922b32b6f6f3efc8c322110d2afc10b34e WHIRLPOOL 6f99eb7227fcdab9d4e1729daa33a3b63b1d598a39dd12544560aaa7e0ab970ec582e2451c896661b0289ca6e3cc17dd2c6f0b4f3a82d8b1e196b9a1b420806d
+EBUILD libdmapsharing-2.9.39.ebuild 1205 SHA256 66e02ba3d350971d7271937c642b6d74dbbb3086fe3f11e39f0b4e76fc4c57bf SHA512 44bae173731b902855aa2c1e7442cf742b378be58c8df3f96a7f384628a704f963121863ffc829db8e4aceb5ac88176c82899267575355e88b7ac7eba490522a WHIRLPOOL ecc30d881ac6852597fc56e5586661504d7480bfa9dc4b601b75359b444df9bb1f6bc878a22667438dede6face43c4424cdd5ce33f86471d957529c41c1848b2
+MISC ChangeLog 4891 SHA256 b7ca7edf52a400ed359177286f784eac212ba4d0881b2d9721f01ce11b8618e2 SHA512 f82a1a524a9e30819857ea908b5504630893ee2f07150af149c85d79fdbda5680bba5305b2b66e0ca71af7551799e77bb771ee830c46a02505f05320193c2186 WHIRLPOOL b7801a9520e2788ec9f7a6ff6500e34a0c819d3d537f9738bc786bdba8fffc42a032c24056600ad8b478d0637b13f596ff3e7e61644aa2e5d32e59feeff76d55
+MISC ChangeLog-2015 4625 SHA256 36dd1a2b6ca89a5d505006bec6d0faa4c96853cec966f1615bcb53137986306c SHA512 48357cdd58d588baaee2f469cd3dd2611ac129369266b02c3be7c744fde8c649004b74ee7b207ddd0061731c7819155a12bd983a4e145552173060acd96ab2fd WHIRLPOOL 7b4628332b0a661eb41a1738510bb2e60fa13e0cecb9a15b62d162cc07d7a1f1ed714541abe63d8bfaec12726377f4d4248e72d1c8d0c8f6e21a6d886939acc5
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/libdmapsharing/libdmapsharing-2.9.37.ebuild b/net-libs/libdmapsharing/libdmapsharing-2.9.37.ebuild
new file mode 100644
index 000000000000..cbe44efe8d62
--- /dev/null
+++ b/net-libs/libdmapsharing/libdmapsharing-2.9.37.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="A library that implements the DMAP family of protocols"
+HOMEPAGE="http://www.flyn.org/projects/libdmapsharing"
+SRC_URI="http://www.flyn.org/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="3.0/2"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="+introspection test"
+
+# Vala/libgee/gtk+:2 is only used when maintainer-mode is enabled
+# Doesn't seem to be used for anything...
+RDEPEND="
+ >=dev-libs/glib-2.36:2
+ x11-libs/gdk-pixbuf:2
+ >=net-dns/avahi-0.6[dbus]
+ >=net-libs/libsoup-2.48.0:2.4
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0
+ sys-libs/zlib
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= )
+"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig
+ test? ( >=dev-libs/check-0.9.4 )
+"
+
+src_prepare() {
+ # Remove useless CFLAGS alteration in configure
+ sed -e 's/CFLAGS -O2/CFLAGS/' \
+ -i configure.ac configure || die
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --with-mdns=avahi \
+ $(use_enable introspection) \
+ $(use_enable test tests) \
+ $(use_enable test check)
+}
diff --git a/net-libs/libdmapsharing/libdmapsharing-2.9.39.ebuild b/net-libs/libdmapsharing/libdmapsharing-2.9.39.ebuild
new file mode 100644
index 000000000000..1f4570f41416
--- /dev/null
+++ b/net-libs/libdmapsharing/libdmapsharing-2.9.39.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="A library that implements the DMAP family of protocols"
+HOMEPAGE="http://www.flyn.org/projects/libdmapsharing"
+SRC_URI="http://www.flyn.org/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="3.0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+introspection test"
+
+# Vala/libgee/gtk+:2 is only used when maintainer-mode is enabled
+# Doesn't seem to be used for anything...
+RDEPEND="
+ >=dev-libs/glib-2.36:2
+ x11-libs/gdk-pixbuf:2
+ >=net-dns/avahi-0.6[dbus]
+ >=net-libs/libsoup-2.48.0:2.4
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0
+ sys-libs/zlib
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= )
+"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig
+ test? ( >=dev-libs/check-0.9.4 )
+"
+
+src_prepare() {
+ # Remove useless CFLAGS alteration in configure
+ sed -e 's/CFLAGS -O2/CFLAGS/' \
+ -i configure.ac configure || die
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --with-mdns=avahi \
+ $(use_enable introspection) \
+ $(use_enable test tests) \
+ $(use_enable test check)
+}
diff --git a/net-libs/libdmapsharing/metadata.xml b/net-libs/libdmapsharing/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/libdmapsharing/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libdom/Manifest b/net-libs/libdom/Manifest
new file mode 100644
index 000000000000..8ab69a751990
--- /dev/null
+++ b/net-libs/libdom/Manifest
@@ -0,0 +1,6 @@
+DIST libdom-0.3.1-src.tar.gz 868959 SHA256 1b1e8a940547cedfe718b3258de875837d2a4335f7498c7d555125211662c763 SHA512 a7acd64a99145483274a44bd47af16474eadab5e6cf46847c61775c8d9fc03aa8cb4ad21fa63377b8c758c9556c140d626a2c3b2be31072fb5afdc2cee589e0c WHIRLPOOL 276fa57775ec96f6b0d547f123ad17bbcaf8703f90523e59d39d18881992449720c2cd26ffcbe9816fa409e51cd1668c936b4820d68b400826d72ed0f0690445
+DIST netsurf-buildsystem-1.5.tar.gz 38196 SHA256 dbc6afc639f6987b704e6ff4427668787ee7efba77e1bbf76b614699b5daaf71 SHA512 02d85e8f1d2101194a678f7ccf84051390953285a46951d7b327556f8df1a0c416620bd4c7a615e25de438d5d27cfffb69ec5d94eb8379a295dab4c85a96cae4 WHIRLPOOL 7b7d595a2e399b361e71769e509a129af42da5ce823f1b55183efb53898ac2ae731593eb13e1ecc2271ea26ee0948ac35bf99fea280eb72a2bb00164b4b29f09
+EBUILD libdom-0.3.1.ebuild 1066 SHA256 017e7491ec8adcec7b505501909b5d8159bb34a8f684038ba9f4bba1ecc4292c SHA512 ca234dbc7f51c92e2877a693b1bb713984f98032b85f664a522ea64e5047690814d528ada14433352ec7e8f730f7f6f1451cafb5fa455aeda5920ab30c74f476 WHIRLPOOL d60a4632f62f7e9d83263c1c10215d14355cd78321649bcd67a78463354a20480e3005c3cbe64d8d2ef36976625fb4d167822eef7b0cbae8f0892f49541b88e3
+MISC ChangeLog 3425 SHA256 958a47b0d3b4d2b91043545711b3eaa9ebfe820dfc713a0422229aa51fad8a72 SHA512 64871656f2287c35215441f95a4e0b2a785403b2ba833f6325d36ca1f62999c8ae7f020d8dc65e5dcf828ce3987e1dabeab7802f88d18f2450b7ef8e2704368c WHIRLPOOL cbb77b0df2adc275bae44a0acd9f587c81f43cd580eb394e7c548b24f9e5f5e4d183e4e157df96c0d8ff39f8349f0d29054dff943b8b16fece7f5387237f48fb
+MISC ChangeLog-2015 1945 SHA256 741106f7bf666568d848a8e559eebe92ebe14fdd99caa2a9ab0d9934ae1a047e SHA512 9c674105cb0fcefc1af2a93fce5853d670984a651909a606e38a9cb4a059185aeff3abb5f1b54f1b42b3802382fb70ff7a28c5316c32f5a768668b27e508f11a WHIRLPOOL 008adb75901f2c30530a4df2eebeb608ea4052f4df02af9b8400f86c202b669aed18cd9b2f8218bf9c86a5c1430efb2421b0b231754ac134fea732ac90e35dad
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/net-libs/libdom/libdom-0.3.1.ebuild b/net-libs/libdom/libdom-0.3.1.ebuild
new file mode 100644
index 000000000000..460b2a411916
--- /dev/null
+++ b/net-libs/libdom/libdom-0.3.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+NETSURF_BUILDSYSTEM=buildsystem-1.5
+inherit netsurf
+
+DESCRIPTION="implementation of the W3C DOM, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libdom/"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~m68k-mint"
+IUSE="expat test xml"
+
+RDEPEND=">=dev-libs/libparserutils-0.2.1-r1[static-libs?,${MULTILIB_USEDEP}]
+ >=dev-libs/libwapcaplet-0.3.0[static-libs?,${MULTILIB_USEDEP}]
+ >=net-libs/libhubbub-0.3.1-r1[static-libs?,${MULTILIB_USEDEP}]
+ xml? (
+ expat? ( >=dev-libs/expat-2.1.0-r3[static-libs?,${MULTILIB_USEDEP}] )
+ !expat? ( >=dev-libs/libxml2-2.9.1-r4[static-libs?,${MULTILIB_USEDEP}] )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-perl/XML-XPath
+ dev-perl/libxml-perl
+ dev-perl/Switch )"
+
+REQUIRED_USE="test? ( xml )"
+
+src_configure() {
+ netsurf_src_configure
+
+ netsurf_makeconf+=(
+ WITH_EXPAT_BINDING=$(usex xml $(usex expat yes no) no)
+ WITH_LIBXML_BINDING=$(usex xml $(usex expat no yes) no)
+ )
+}
diff --git a/net-libs/libdom/metadata.xml b/net-libs/libdom/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/net-libs/libdom/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 type="person">
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libeXosip/Manifest b/net-libs/libeXosip/Manifest
new file mode 100644
index 000000000000..dd12f83763a2
--- /dev/null
+++ b/net-libs/libeXosip/Manifest
@@ -0,0 +1,7 @@
+DIST libeXosip2-3.5.0.tar.gz 472081 SHA256 46010e62a6f675df13e5be759d033b6bce1bd5882eebb4acd553f9dd3b461afc SHA512 67e04cd53aedaa25f7fd9b79923e075ecc4773dff0b5fd0ce0db01ebf22c09da62c6a686bf9afd6c90e6f086ee24301736c1e0d95c8b98e062ff414ad8a20016 WHIRLPOOL 08f586e826df0313f3ff3526da391930f40ff1a4c858957d5979d2c7b2f8b9b881072ec7a856c16e2a08c53af00fa061eef6fe96032bc204cf1fb601a7ccee2a
+DIST libeXosip2-4.0.0.tar.gz 526339 SHA256 5267a82a9c05990bfde629eb7f73b24a8812a2ecc4614600e022257dfac8b2e5 SHA512 8e286e1e533c12bce26a164e42286c3239556860863a877438f63a694e47055f17fb98eb0f2ed91cac72f0645e8bf4dd9b922b5065357f16c0bacafc99406f51 WHIRLPOOL 35b0ad25ce415fbfde40eda93fb6e5a694136b25d4c327356db848e0ad354891729bafe81babd74e9a11de6a45f051f029acb802d9f4aaeb894f3462d05bcc75
+EBUILD libeXosip-3.5.0.ebuild 813 SHA256 10c2a68a914c74b76ecb8fdd35a1be3109a1b480d00336ee4eb899fb1381d3d7 SHA512 a0bd69ca9aaa7d08739ad4199dc89df1e73bed0bddf6a6cb3cce59e813911bb2ce7b49fdfecc6e4d667364d9225c76a0a686a963fc5731aac653d3cecd4adc82 WHIRLPOOL fa85c560aacc774db4370e26b2def17d19d823c04fad8942be692bed534d198c92a797a4331ffec5e42e2289c0376f8b2c98de677d0d52d24dec433cab53df89
+EBUILD libeXosip-4.0.0.ebuild 814 SHA256 b54d1c9ab3641fe36875a6af1713ce2cc6c54aefb81fa698dcc52959672d47d3 SHA512 1ea89be192724874489399527e135dff066e1b69eb5a9f56a6d64c6c4f1489f8f50ced23c8baf3f86564b21f5c2d20915754ae02bd13fad3aaae0b7e9cf39d14 WHIRLPOOL c37503ab3e4b7558a5e8bd73107fe1220d0dd4d152cfe22d89e56abc6d736f2163b230b524f14c5227d9c9614e7d2385bef7a77636f00d0339d6e8b40aebe917
+MISC ChangeLog 3161 SHA256 45d16cca1041735750dec67c99de73fd86299f635e1b2bd33f0c16ed969e80ab SHA512 82cf58be39de058d63ad3d549482b94cb89e05a88065e53c0b126b4613d55f89b7ae34fad2c7530b13a1930bfce01c697e4518ce814377b82f891d2e5d652834 WHIRLPOOL 5c4a25c4964f71638c39db7f9ca223c19be59c026b77c0f8ffb228e332e4893c37760f0be2ef845b530f5669627c6005e14129c6f477c92000135ac079bf65a6
+MISC ChangeLog-2015 3740 SHA256 f9d751dc63fa0eea43bb4e670f658d1b949a4273bd4aa92e63679dfd935dd108 SHA512 367bdceab3ecfb794161721c09db4032b7af018bd5ecad2741fad481cf8baaf51b6fa19ac1667299404e92f0d039e7c697ece07d1ed662f40184bd04a65d1d48 WHIRLPOOL b2e4b0aeca405f011f1da3efe390e9c18bb3af8178ea9a03b3fbe839baefe038f0b8e86edc107c855b6c23e518646cb58b7408403edb32b63dbdedf5e45f83d2
+MISC metadata.xml 248 SHA256 b5c63f0f23e0e075d4500623d5a81b2bdcc9f2418d993fa2b37bec8a40610571 SHA512 7f794e2ea42e0db5ef80003a8981af42fb6a85acb3b3d1b9f003821e0085ea958eac3d60b6cd35bb5148702015455c6bb58fddea93009fa2302c11db142bdba1 WHIRLPOOL 01adf244be7437744610dede995e767f95bba5f6d9b1a24b7c93d2c4fac1192708857fed95c91a2801a92342ce88b5ae34b085237dda30ec665de31b02ea464b
diff --git a/net-libs/libeXosip/libeXosip-3.5.0.ebuild b/net-libs/libeXosip/libeXosip-3.5.0.ebuild
new file mode 100644
index 000000000000..322a25facbbe
--- /dev/null
+++ b/net-libs/libeXosip/libeXosip-3.5.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils
+
+MY_PV=${PV%.?}-${PV##*.}
+MY_PV=${PV}
+MY_P=${PN}2-${MY_PV}
+DESCRIPTION="library to use the SIP protocol for multimedia session establishement"
+HOMEPAGE="https://savannah.nongnu.org/projects/exosip/"
+SRC_URI="mirror://nongnu/exosip/${MY_P}.tar.gz"
+
+KEYWORDS="amd64 ppc x86 ~ppc-macos ~x86-macos"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="+srv ssl"
+
+DEPEND=">=net-libs/libosip-3.2.0
+ <net-libs/libosip-4
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ econf \
+ --enable-mt \
+ $(use_enable ssl openssl) \
+ $(use_enable srv srvrec)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/libeXosip/libeXosip-4.0.0.ebuild b/net-libs/libeXosip/libeXosip-4.0.0.ebuild
new file mode 100644
index 000000000000..384ed3cee6ce
--- /dev/null
+++ b/net-libs/libeXosip/libeXosip-4.0.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils versionator
+
+MY_PV=${PV%.?}-${PV##*.}
+MY_PV=${PV}
+MY_P=${PN}2-${MY_PV}
+DESCRIPTION="library to use the SIP protocol for multimedia session establishement"
+HOMEPAGE="https://savannah.nongnu.org/projects/exosip/"
+SRC_URI="mirror://nongnu/exosip/${MY_P}.tar.gz"
+
+KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos ~x86-macos"
+SLOT="0/$(get_version_component_range 1-2)"
+LICENSE="GPL-2"
+IUSE="+srv ssl"
+
+DEPEND=">=net-libs/libosip-4.0.0:=
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ econf \
+ --enable-mt \
+ $(use_enable ssl openssl) \
+ $(use_enable srv srvrec)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/libeXosip/metadata.xml b/net-libs/libeXosip/metadata.xml
new file mode 100644
index 000000000000..6781a909e3c2
--- /dev/null
+++ b/net-libs/libeXosip/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-needed -->
+<use>
+ <flag name="srv">enable support for SRV records DNS queries</flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/libecap/Manifest b/net-libs/libecap/Manifest
new file mode 100644
index 000000000000..e083dfd9da56
--- /dev/null
+++ b/net-libs/libecap/Manifest
@@ -0,0 +1,7 @@
+DIST libecap-0.2.0.tar.gz 337696 SHA256 19e195d60cf67ec3b49fe4d109823d753546b5da115230499ad1a9cb65ca92d2 SHA512 5d39444ec79846b14a7f4292e51bb880befd2cbf581b257d5087517cfae1dce55e4439a90c08e0b8f5b3e8b2431dde8c6fab771c826489024f17625cfc8c777e WHIRLPOOL 2bf13955d9bb8ed598fa30cf004f79fe697a701623ea72556064614f66a1b29992ab5bab5442f50960e712ea938049574f624d39cc5fb0a5881523ece6fa445b
+DIST libecap-1.0.0.tar.gz 343468 SHA256 64c7bb52e04d218903dbc6c7cc4c62cfc22a6db468d1e0f8dac58e0f8620c4be SHA512 7d34b5a9b6843d6b09efc4fa390c7a2d3dda7a2ae5e82d5021295e436ca9afb7c1f70bc6f25a68e4c430fb6e33ee9f602655c9c830fccd46a8f554774813b452 WHIRLPOOL 2f727ac0ef2a7919775df0e8856bc72e8867db3768af27f70d3871f940bce8a6e8aaa3471c913a3c68a7ff04d86c611b1a526b63d448dd054c40d823dd8524f2
+EBUILD libecap-0.2.0.ebuild 587 SHA256 ac9137f3e06b67ce4faab6742ef732b60e393bbd4117e987b92855384b5909cb SHA512 bd999e6f1a3e13f2864bd28b43b8c29a3c2e6a09e5817c982b0a412ca0b69998d2d31e173ef3cd3135309f0b437633dfa243c4beeabc6c74da7f9d927caaa8f9 WHIRLPOOL 7cbdb889a3bc55c7d6484dd94dbb3bf796659e7c4af49e517aaf62188e2ad463ee69b072431745cfc572f7a8e2e2cb8133a349e7d5bedfcc5dd546beeb520131
+EBUILD libecap-1.0.0.ebuild 608 SHA256 eead2ec78489b3e343610502f17bf71ea830a1db64b0405939108251e882a3b2 SHA512 3e590fbc8f1583455780f05fcd1351b4ad1229e19c1a24e5f43489b7f0e774b2b77d8a9f281c2d889054329b0f4b3853f39d3d15ccbd2d0aa495ab84e9c133d0 WHIRLPOOL 5b76b8444903190942c16f5161e136be3d202facb88ae3d704631d10c518fbd01f3519bd9dda843a2141374b4f7317091d6d879270476b6c6f2ff28fc58ccc45
+MISC ChangeLog 2228 SHA256 65eb9a39a474a725b701b76ed86960797832e4b36a526c67744ab1df12b2f4a9 SHA512 d5eb5c01fbd4e4606cd4499e9c7ecade147b6be3f0051f9509b9bd82756c9f8a555fa62e2f162fe3492a19543e1c1f56ca92b7851eac123f0d86d2e2b66220d5 WHIRLPOOL b9719294cf62c6cd5a4376056e0ac138d4af416f4a7b8065414f8a1e280d661a15f1845346cf84ea97fd771af4005e790a14ffb78e178567d1bc0cd521979f0c
+MISC ChangeLog-2015 5825 SHA256 d286ad84eacf57c223eac824c11bd90180549097e48c5b9609ae3d4be2689835 SHA512 14b8f7a27e8cca7dccf2331a11053269cfcbca9f8ff0275cb9f27e4c4202171f4c89146ff128486cc56dac1a808f0ddd6f3bc5b9aae0e2823f3636662531745d WHIRLPOOL b33cf6243eb2ff87c9b2655f2f14935ac3cd82f46245ab7c5d1b3bd033399dfe235514dda77d4ecacf4695723e4338f7dac47cbac94dc4033c49939e335cff73
+MISC metadata.xml 415 SHA256 3e305e110fa738f1cd03478bba0778f9236a18c74caf75ab3dfb06ab025d41e0 SHA512 7f74e14bff83c5a8ccee44aac553502cb71e55e8d2da98967e8bba2fa44643be2508dbf0b8e47f6e3abb6e554cfc03f3ae53238f06987357dc7c3ea103aac394 WHIRLPOOL ed75529550d5462c16d303fcb967b89cfa234ebe1516cdd8cc3fdb8ad56c7713916b94ca3e2e1dfd695c5c3e5308af010918f4df9e69485e158a8ce0fca787d0
diff --git a/net-libs/libecap/libecap-0.2.0.ebuild b/net-libs/libecap/libecap-0.2.0.ebuild
new file mode 100644
index 000000000000..b6df9511af45
--- /dev/null
+++ b/net-libs/libecap/libecap-0.2.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools-utils eutils toolchain-funcs
+
+DESCRIPTION="API for implementing ICAP content analysis and adaptation"
+HOMEPAGE="http://www.e-cap.org/"
+SRC_URI="http://www.measurement-factory.com/tmp/ecap/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0.2"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
+IUSE="static-libs"
+
+RDEPEND="!net-libs/libecap:0"
+
+DOCS=( CREDITS NOTICE README change.log )
+
+src_prepare() {
+ default
+
+ # Respect AR. (bug #457734)
+ tc-export AR
+}
diff --git a/net-libs/libecap/libecap-1.0.0.ebuild b/net-libs/libecap/libecap-1.0.0.ebuild
new file mode 100644
index 000000000000..2aa50f372422
--- /dev/null
+++ b/net-libs/libecap/libecap-1.0.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools-utils eutils toolchain-funcs
+
+DESCRIPTION="API for implementing ICAP content analysis and adaptation"
+HOMEPAGE="http://www.e-cap.org/"
+SRC_URI="http://www.measurement-factory.com/tmp/ecap/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="1"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
+IUSE="static-libs"
+
+RDEPEND="!net-libs/libecap:0
+ !net-libs/libecap:0.2"
+
+DOCS=( CREDITS NOTICE README change.log )
+
+src_prepare() {
+ default
+
+ # Respect AR. (bug #457734)
+ tc-export AR
+}
diff --git a/net-libs/libecap/metadata.xml b/net-libs/libecap/metadata.xml
new file mode 100644
index 000000000000..0987c1f2bb30
--- /dev/null
+++ b/net-libs/libecap/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person"><email>eras@gentoo.org</email></maintainer>
+<longdescription>eCAP is a software interface that allows a network application, such as an HTTP proxy or an ICAP server, to outsource content analysis and adaptation to a loadable module</longdescription>
+</pkgmetadata>
diff --git a/net-libs/libesmtp/Manifest b/net-libs/libesmtp/Manifest
new file mode 100644
index 000000000000..86feb5f0dcd9
--- /dev/null
+++ b/net-libs/libesmtp/Manifest
@@ -0,0 +1,6 @@
+DIST libesmtp-1.0.6.tar.bz2 365506 SHA256 d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b SHA512 c122fc5995b76771cce2db58c9e59597cc3a76d273feb6fc26b869f118e91bdf98a5721ee2d1de8175c376af018b5806b0379bbeba2f5da95108916028fd8dda WHIRLPOOL 6bce1e05ca48c300917c1d079ce31f95d2e0d7b2339af9d69a126e63af94ff9585d5add3b6ab9d22c6e889fd2bb5ce50af32adbb246ed67ecd7a340b97f7d97f
+EBUILD libesmtp-1.0.6-r1.ebuild 967 SHA256 96d3030998a8d6a175d06baa2c90c1473ba671818f25eeb91b8a203512fc4e97 SHA512 000ae3c5e86225865e21068eac31f5786c7b64399b167c96fb9b909cfe2d592f9e80358f4888ae0a5e614acfad035f2f3bbaede773db9e325b32565fc13b0d7f WHIRLPOOL 890f29c30f3c4f4858153f76982beef76d85c70608a5e5cb35a671d762e753725e58a3832a1e526b0be9031e67770eb9ae689a49d4a3426a61ea09c5f09c7787
+EBUILD libesmtp-1.0.6-r2.ebuild 1045 SHA256 e0becd99bab82b4d21068623b9a0637f6cbacedc9ed7aebf39df69450937a91f SHA512 b936f522eebadc5cd006ba739d9cebe058114c111d3741f1397de914841beb9e89a31d3f92348bac16b20c94cd32d14aa0cecd59e03fa717e73ce9f0e12134ce WHIRLPOOL 9ec4b8b3a010e230b85daea3e003d4a6e691184e9cdb2ef8bb6c9d594da8424372954953a57bda0c0dd2f8133c03ba42da3a167241c6a18d3d9206b096af7a3b
+MISC ChangeLog 2851 SHA256 84d359ff22bc6d54c576732d3fdcd6416959937b48f3c326c0e5cf44700929a1 SHA512 c5d1431813585c6dad39539cf1fec4c00e94767552562955667bd74f6dffff87255a4f9f02cc3836c62dd8d8b72167a2de92dec9a5ba446f149b10b43c7240b9 WHIRLPOOL e504e670d762cb31a7b0d4e1c7736c3c87625ca53614da2b4fefd80a8e0cc178568f3dba5fd91042f3a887a21b4204e483cc362e5eab5f3c63cb6fe67f379454
+MISC ChangeLog-2015 8022 SHA256 6c46d4935f169a632227f771484563a72d920e3dc02f9a70b52a3b1165663105 SHA512 cf3a965df220eaedea43a86881a020875bcf56cf6f50455a2f3679a7a4225860c3a486cd39a3bd4a43699ff91039046ea149a60ab1679cdf29df7e82a5852ed0 WHIRLPOOL fdb76f88c24cbd1d88124ee491fb039011933c8ab4d4a9f73321075ae777326203c981d317af93e32e5989d5bb2e6800ee24dc90624d193233a21e33d4ddddee
+MISC metadata.xml 321 SHA256 84577bb00d19ff21b9c1db4ed5222e23c77766efbc9e7d3e2bdb0b2e6e3a9e7a SHA512 3c6ccf3306108819ea43dde5d404399d51249b4e87a9f70eca92939d31cf5e9136fb1ddc7db19022b9fab70ff768e4b962b8eed5b68acfb7edd05ec8355c3a5e WHIRLPOOL 16d8692e5baf68673e9cbf784640b00a11efbb22928e4bc91d826cc2dbdc0f2d7f7e81101973f7638fed161e9caaed84ab05c0b305ac9da10ffe6ca7a5c1afb9
diff --git a/net-libs/libesmtp/libesmtp-1.0.6-r1.ebuild b/net-libs/libesmtp/libesmtp-1.0.6-r1.ebuild
new file mode 100644
index 000000000000..37f67a7a3a35
--- /dev/null
+++ b/net-libs/libesmtp/libesmtp-1.0.6-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit libtool
+
+DESCRIPTION="lib that implements the client side of the SMTP protocol"
+HOMEPAGE="http://www.stafford.uklinux.net/libesmtp/"
+SRC_URI="http://www.stafford.uklinux.net/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="debug ntlm ssl static-libs threads"
+
+RDEPEND="ssl? ( dev-libs/openssl )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ --enable-all \
+ $(use_enable ntlm) \
+ $(use_enable threads pthreads) \
+ $(use_enable debug) \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS Notes README TODO
+ insinto /usr/share/doc/${PF}/xml
+ doins doc/api.xml
+}
diff --git a/net-libs/libesmtp/libesmtp-1.0.6-r2.ebuild b/net-libs/libesmtp/libesmtp-1.0.6-r2.ebuild
new file mode 100644
index 000000000000..94e06e2dc463
--- /dev/null
+++ b/net-libs/libesmtp/libesmtp-1.0.6-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit libtool
+
+DESCRIPTION="lib that implements the client side of the SMTP protocol"
+HOMEPAGE="http://www.stafford.uklinux.net/libesmtp/"
+SRC_URI="http://www.stafford.uklinux.net/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="debug libressl ntlm ssl static-libs threads"
+
+RDEPEND="
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ --enable-all \
+ $(use_enable ntlm) \
+ $(use_enable threads pthreads) \
+ $(use_enable debug) \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS Notes README TODO
+ insinto /usr/share/doc/${PF}/xml
+ doins doc/api.xml
+}
diff --git a/net-libs/libesmtp/metadata.xml b/net-libs/libesmtp/metadata.xml
new file mode 100644
index 000000000000..69221f3df10f
--- /dev/null
+++ b/net-libs/libesmtp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<use>
+ <flag name="ntlm">Enable support for NTLM authentication</flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/libetpan/Manifest b/net-libs/libetpan/Manifest
new file mode 100644
index 000000000000..e3226018a43b
--- /dev/null
+++ b/net-libs/libetpan/Manifest
@@ -0,0 +1,6 @@
+AUX libetpan-1.0-nonnull.patch 404 SHA256 b392551bc510f587f65cbf3476979ad9325dac0e0f1a87267a65ca1eaab65dd6 SHA512 3800d6e2dbb50985290b8a141ee2fe6ff92bee8516567f55ea14e634b41e11d1074cd8df6e6de30996e0d86e54cd659300da0d61ad63fc10f713d672aa3b4f6e WHIRLPOOL c4b0f8afe4d4ff0ac71d4336da2f19c18105f3d6e837588ffd5610633488eafa9e8a25d93793ec1d2c07f6c83284cd875384f0b51647464a687609ef2052e80f
+DIST libetpan-1.8.tar.gz 6188927 SHA256 4e67a7b4abadcf3cc16fa16e1621a68e54d489dadfd9a7d1f960c172e953b6eb SHA512 a5e97998803cc56dbd54356153c8579b52a9675fe95fbf642c3158215428d9d2cb30c4e0060c5f4dd760634fff5b1c2a32ce4bb70a5f2bc6398a071ce95e1efd WHIRLPOOL 41e7e184a3f1789726055cb8bc9941057eb0c4b7bf6057dd94519b46905c1dd9fa45c403fa05c45eaa2b36a03af74b35097348ed471b9428f6bf4e864dbdd791
+EBUILD libetpan-1.8.ebuild 2093 SHA256 899ed7b0cd08278e6081f1b322bec128cd00310be60846b1ab1bc5c919d07788 SHA512 23d9195d9665ad24c58cc1c7b570e48ddc157cae14cc69dbd814124525bc70de3aaa33687a5a914aade21241c082c1b16f5014f8618795cc53ebdbf6b8b0e933 WHIRLPOOL e289857e54888ef1f957ea97f07074d5eabd8c53fb6f907933c5fdf192cb0d535df19e834094c1b34f0c233b6f66f7a064b8302c5b3b65e6dcaaf6f3a526f606
+MISC ChangeLog 5775 SHA256 7064b34a0a8114df8fda49d5b905ea56f49936b204266b407aa59f8f0aaac620 SHA512 1e9962241caea25e198cdcc27301cc6a08c7a267ef9e96c0a31a80c6e174757efe74f1efe46a66b9fe6219a1096d150a3dfc4addc8b3bd70afd580762c95aa07 WHIRLPOOL 871728a1d6a3765eac73876c8aea8f155d988a9996a84ef361b4c2507c0aeea18f4bec09a023edda8271b26b96f5798ccc4e8e0957da03cd1033f5a233a12fba
+MISC ChangeLog-2015 12993 SHA256 8be8ac4b736397661a10cbca248ada5b64e0a2d04ac9637e5a71a4f89745d97d SHA512 4691e6f9efffd020561d25b08e530cbecfeb9c54491a054b512a70cef8618e9fd298e86e345548f91750e1d0feee5af5971f78bc231243288b2fcb53fafdc219 WHIRLPOOL b4b50cf07352e30d29f2b6322aade9d7d23682a0be011163546919b9f6ecc0f8be0defba0a4a011c5e8acfeeaa04d47206e080fa968d291f243ba58b7d7528e7
+MISC metadata.xml 772 SHA256 f2308ce74877061835b4b0cd631277586b1c4291a8f763edeff868fc81fff44b SHA512 275d042363fa741049c659c40a0f5d7a1f62a0b40f6b4972752e4464fad2206031954fe62999fb10cf73095e43aa8985442b355908c6a443c8a28b7fdbd06366 WHIRLPOOL 2f2a00dea44fad0dac59ca6823a5d4dc1b787827c2237a9631a43cf80ab5cf9b0ff8762ca42b61d73e2d79e8653aa643a49666de5e76e2ffd3824a7551efed86
diff --git a/net-libs/libetpan/files/libetpan-1.0-nonnull.patch b/net-libs/libetpan/files/libetpan-1.0-nonnull.patch
new file mode 100644
index 000000000000..138f038315c3
--- /dev/null
+++ b/net-libs/libetpan/files/libetpan-1.0-nonnull.patch
@@ -0,0 +1,12 @@
+https://sourceforge.net/mailarchive/forum.php?thread_name=k2vfc2c80ae1004051048n4a2b5ab0y85ab946c2a556544%40mail.gmail.com&forum_name=libetpan-devel
+--- a/src/low-level/nntp/Makefile.am
++++ b/src/low-level/nntp/Makefile.am
+@@ -35,6 +35,8 @@
+ AM_CPPFLAGS = -I$(top_builddir)/include \
+ -I$(top_srcdir)/src/data-types
+
++CFLAGS += -Wno-nonnull
++
+ noinst_LTLIBRARIES = libnntp.la
+
+ libnntp_la_SOURCES = \
diff --git a/net-libs/libetpan/libetpan-1.8.ebuild b/net-libs/libetpan/libetpan-1.8.ebuild
new file mode 100644
index 000000000000..b6dfb6cdbfb7
--- /dev/null
+++ b/net-libs/libetpan/libetpan-1.8.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="A portable, efficient middleware for different kinds of mail access"
+HOMEPAGE="http://libetpan.sourceforge.net/"
+SRC_URI="https://github.com/dinhviethoa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="berkdb debug gnutls ipv6 liblockfile libressl sasl ssl static-libs"
+
+DEPEND="sys-libs/zlib
+ berkdb? ( sys-libs/db:= )
+ ssl? (
+ gnutls? ( net-libs/gnutls:= )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )
+ sasl? ( dev-libs/cyrus-sasl:2 )
+ liblockfile? ( net-libs/liblockfile )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.0-nonnull.patch
+)
+
+pkg_setup() {
+ if use gnutls && ! use ssl ; then
+ ewarn "You have \"gnutls\" USE flag enabled but \"ssl\" USE flag disabled!"
+ ewarn "No ssl support will be available in ${PN}."
+ fi
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s/-O2 -g//" \
+ configure.ac
+
+ eautoreconf
+}
+
+src_configure() {
+ # in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so
+ # libtool recognises it as valid shell (bug #300211)
+ use prefix && export CONFIG_SHELL=${BASH}
+ # The configure script contains an error, in that it doesn't check the
+ # argument of --enable-{debug,optim}, hence --disable-debug results in
+ # --enable-debug=no, which isn't checked and debugging flags are blindly
+ # injected. So, avoid passing --disable-debug when we don't need it.
+ local myeconfargs=(
+ $(usex debug '--enable-debug' '')
+ $(use_enable berkdb db)
+ $(use_with sasl)
+ $(use_enable ipv6)
+ $(use_enable liblockfile lockfile)
+ $(usex ssl "$(use_with gnutls) $(use_with !gnutls openssl)" '--without-gnutls --without-openssl')
+ $(use_enable static-libs static)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ if ! use static-libs ; then
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+ fi
+}
diff --git a/net-libs/libetpan/metadata.xml b/net-libs/libetpan/metadata.xml
new file mode 100644
index 000000000000..2bdf901416e6
--- /dev/null
+++ b/net-libs/libetpan/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <longdescription lang="en">
+ libEtPan ! is a mail purpose library. It will be used for low-level mail
+ handling : network protocols (IMAP/NNTP/POP3/SMTP over TCP/IP and
+ SSL/TCP/IP, already implemented), local storage (mbox/MH/maildir),
+ message / MIME parser
+ </longdescription>
+ <use>
+ <flag name="liblockfile">Enable support for liblockfile library</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">dinhviethoa/libetpan</remote-id>
+ <remote-id type="sourceforge">libetpan</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libflowmanager/Manifest b/net-libs/libflowmanager/Manifest
new file mode 100644
index 000000000000..fc1e8c2401f4
--- /dev/null
+++ b/net-libs/libflowmanager/Manifest
@@ -0,0 +1,7 @@
+DIST libflowmanager-2.0.5.tar.gz 375800 SHA256 00cae0a13ac0a486a6b8db2c98a909099fd22bd8e688571e2833cf3ee7ad457e SHA512 356967ac3fd6c9cb9c3378c7101df486a80d660511e22141c473f67e8eccd5cb3a5c9a86d5c5b7528904f6cada687334f48e273116c3ca6e13e1236dadd3d2cb WHIRLPOOL eff61b24cefdda644b63ccbb5202d725bfb78ddc0e2c37a0ad2ecbda64517243e6af4dfb146d4a6e9ec3c73e21314e1c33198927e3930fbd66cf1f24329d3891
+DIST libflowmanager-3.0.0.tar.gz 405501 SHA256 0866adfcdc223426ba17d6133a657d94928b4f8e12392533a27387b982178373 SHA512 7f6eebb996c50ffa7f2882e0448c95b88cbef433fbc40928a6d111a86c3006ef80cc71b4cb5e73dbe13753410cd88bfcfd32616a0969e417e5a832684b5f0aca WHIRLPOOL b1774686fc222c44598530f769b9658c8c07a470a0537f4ae7f2a655736651e34a712432496cfe468efec54b8ae484354e55af16bc9020d8428e6c9500c2e249
+EBUILD libflowmanager-2.0.5.ebuild 507 SHA256 a58c6cd7b2da1bfe5ead70631a2809a26025500a53d94a1261ffbfee0f7aeb88 SHA512 7da41c24f2ce90d3e6d5f1fc1d9c09f72068f65eebfd0fe7b4350a49b5dee3ffb6f93a0c2cc7470a3a19afa62804420b9dabdebfbde69bc364ee6d129db3035e WHIRLPOOL 49613b00067d1b1e94954ecf28268e05cb18562c8b3b5fe3d92d5e37e46ecc9558f3a649a8e68efaa07abb0fba33f7fc1d3ad7ec594b6c1f8935b06578125bf7
+EBUILD libflowmanager-3.0.0-r1.ebuild 572 SHA256 e21134db0c837d90163f10e6af8945008a69c25dfc9645199f7ed76da337b42b SHA512 378ad957297eeb229b45a00d2ac7fbc47329fafe8fa990f9a4590f80254fa69600066288c83f47a4c790ad4c7a8695e48ecc50cac1a6d4770b783267cbd3926c WHIRLPOOL 6c2e28573f0aaf389fe54fcdbf6774657e0e37eaf7efa9b56cdf46b93a586d6ad0693b866580cc11d7f05d4154baf058e34ed7fe73e5cf0e78227eb9fec10970
+MISC ChangeLog 2613 SHA256 909dcd61ab44a94f96f9a39af97489360d8117d0dfb395409d7bfd0fad1362ea SHA512 0ba2e886cd52a0cf68e560baa4ede34e8b76f95a92837e92f988b0b18100b52acf8e62bcf1a35e62450112dd0adcc4770538dda34e1702e12a48fc61131c5b3a WHIRLPOOL 816cd02bbac0a10a98e83951375b427565f072ecc0ccda536fc60e11689caba81af4b6248827af96fd77997f53d00542d5263d1440a9a18fc17da6233ab6c85b
+MISC ChangeLog-2015 547 SHA256 9afd0ffe130b27274ddb652ee5b52f542e885bc79597f25f5ea888bec869dc23 SHA512 0011ea529b9fdef980e39de117aa563d1383663933e473221581c17e210aad2f044cd0f6d76343b0de5cb6b337e54a73f4d0a5c3a305c13a62dab1f4bb5441bf WHIRLPOOL f51afd4465ea84c842cb15b5dffb0dbaeca7a81fde410cd0c8036ef511cb67ce0f9052891c5342b165f0d73cffc1e8f17256b586722335d83ba66bda669b4174
+MISC metadata.xml 280 SHA256 b04c5b9d91f6c4d6e36583488fd032751034d1e035085609c9bdf7677cf1e83f SHA512 8b56802e5524808b11ab857779ce04fb2d07cae87376f67490178601a9aecf7ad9f95743709b46048a425598d4cf8dcf01ef78cc97009d78e26a7728453150ef WHIRLPOOL 6f3756b9ac748acccb6ac5a4de133cf93988e8c904f606376fecbb6a21ce038e86437fecca43b2521538da2570d33ff1a6a1e0cab290a3d71a9b4f2734f16328
diff --git a/net-libs/libflowmanager/libflowmanager-2.0.5.ebuild b/net-libs/libflowmanager/libflowmanager-2.0.5.ebuild
new file mode 100644
index 000000000000..19004211a935
--- /dev/null
+++ b/net-libs/libflowmanager/libflowmanager-2.0.5.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A library that measures and reports on packet flows"
+HOMEPAGE="http://research.wand.net.nz/software/libflowmanager.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+DEPEND="
+ >=net-libs/libtrace-3.0.6
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
diff --git a/net-libs/libflowmanager/libflowmanager-3.0.0-r1.ebuild b/net-libs/libflowmanager/libflowmanager-3.0.0-r1.ebuild
new file mode 100644
index 000000000000..05a50cf545b1
--- /dev/null
+++ b/net-libs/libflowmanager/libflowmanager-3.0.0-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A library that measures and reports on packet flows"
+HOMEPAGE="http://research.wand.net.nz/software/libflowmanager.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/3"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+DEPEND="
+ >=net-libs/libtrace-3.0.6
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ prune_libtool_files
+}
diff --git a/net-libs/libflowmanager/metadata.xml b/net-libs/libflowmanager/metadata.xml
new file mode 100644
index 000000000000..2c2a7923cfc8
--- /dev/null
+++ b/net-libs/libflowmanager/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libgadu/Manifest b/net-libs/libgadu/Manifest
new file mode 100644
index 000000000000..a4a4c436e868
--- /dev/null
+++ b/net-libs/libgadu/Manifest
@@ -0,0 +1,12 @@
+AUX libgadu-1.12.0-tests.patch 453 SHA256 b4e844c701ab956d4b8fa6ed16b03235510f51c5c634238c8fd43d2da0cbc82f SHA512 e024677ac361675e02518c692c9ecf2b1ea2a74fba3ed55506c67f70c911821421128214691487b09a8c315776f11afe5390135afcc7c33e04175f419ee69b39 WHIRLPOOL 1f4f27caa8943500dad229329cb311b5062e8bd10299ca289a7a80b21471e6f8d79039b9807be6e85a51a7602ea6c1e947b925dc0556dc1cdfb11d1599f25b4c
+DIST libgadu-1.11.4.tar.gz 210937 SHA256 95d445a6fefa7b9c7af2f552f090cf6760e3fc7b5c563ec563f11a9fe1f408d5 SHA512 3fc8e414470864eb953d6d0d7dc6071679907c435d76e05a0b95a2e58365fc795427679f893d337dbf9896611a6bf68047c36806b977643cf4a773d930916639 WHIRLPOOL 4f13869f871e1a57f9aeccb9530c222960bee515065090a72a141d4a3212493df9007af7494598a26ee86a7e0cde18c8fd1b253024944b71538ca93bc94640f0
+DIST libgadu-1.12.0.tar.gz 290361 SHA256 536862af3beeeb9a3d17bc73c880204200a8aa1e1cbbf97e01486e024b955037 SHA512 62d1db0e0a59ce7e9a27a2002eea26e69b476a5bddeec129ec6e37d6141dc74e51b177a2cacd232031253d19d223f20ae68df1981f1f673485447950a0bc6670 WHIRLPOOL 1d4cf9634dc652368ce79f276f61a48faae7759d874f906c10e0fce24b0ff76542bfa0df632eb715536c5e775352c180422cca94dfcfae9ebb5b85cbc87409c5
+DIST libgadu-1.12.1.tar.gz 296079 SHA256 15a2c017274ab69b05919b1f4c1bbcec0ceab46cbe1024c5fcce63c58c660310 SHA512 4786bcc517dcead278fed05c35e254d963ee42f029b09a59bfe01052cbe438fa4a0d86c17dcfa2ee39d2365f28864f887d28772a5e70ce2ece190714bec45590 WHIRLPOOL dffc9439bf5bb79dbd3fec276535004c05d885f75649824c8538f155512869a558cf6760ae7e2329032f66cab6ec53463d9a30ce164c92d7a76e779c2ac3a6b8
+DIST libgadu-1.12.2.tar.gz 298884 SHA256 f53e703d7ad93ce222dbf7fc0cec77f62813af38817a3678e799e91f1c69c94d SHA512 d3b4fde94327ef312b1df668b8eb73fea9325c9258d85aa65e2746b73f00c2606ebe23f3330493a135a0fec1d0f24988f0cec607d4d899d880853ee8bf60e677 WHIRLPOOL 149569096dc810bcc9307c6b6d4ccf31d2f458f23d83ae6a73dcdd6e5d488c24640771a7f8130303c87148d94a8d7e245b1c2fd0af928d1b8f55993c3d5efc78
+EBUILD libgadu-1.11.4.ebuild 1299 SHA256 654f02cb336c2b2323d9704318ee939694b0d071a4b09483b2be6f00f92da574 SHA512 77fce206ce7324e7a10b6c7e1c4e49fcc3815b3c4442ff9ba1b80460fef971f487aaf6504cbeb4f2162e912f87d565f052f5e859d22806bd122cace801a969bb WHIRLPOOL 59f1356c7cd55b5e2fa290ce69755aa55e3648b377c12bc17827033cb17db30e7a3dbb0744583940f1e315bce3a345f238ebc0c1c1b6d3f483702fdbf1bfc3ce
+EBUILD libgadu-1.12.0.ebuild 1421 SHA256 95176a82e882c693acbc7abde6840424363e0581d52dca79c34f79955ac45c9d SHA512 1601544bbd6e29c6c134bdb7e2e94e4dafce2b845d6e5d13bdb6ab2f955b718bb90b91217c2c42460834997be3d0c216e8df4a3ea84ec0ed0ff1257aa868add0 WHIRLPOOL d0bdb3bc974f2d160fb07318a0ccfb1dff03b8b6eb12dd4cafd8281ee413e9ed3a6ab2ff7b67d5e16661e4330b1db3f1cea40476b4603da9e0a5693f8eb188a2
+EBUILD libgadu-1.12.1.ebuild 1435 SHA256 164f59eb6e47fe77e280a2a62546f2e15912a796d1b8b9801119e7259879f198 SHA512 6a2f97e833816e212202b8e21a45fe9505371e4c1060670000fffc9ac77852baefb729dc46f2431b9e63acbc4759caebcbfdec650e84a7c0e32d8252314e8531 WHIRLPOOL b10c08a5a9d71bb667b26a1df94acd5ab820a56038ef72879dc03445c27fa541c506ac98c3f225146e845a54aa86668537004f80de69268ae0ae61251f5ee14e
+EBUILD libgadu-1.12.2.ebuild 1394 SHA256 34aff6474d5dad70de5ef4dfe59eff1766d38f0224667edc368df463b5bfa09e SHA512 180cb5fbf375ecf8979906b28cd561d4dd3e800aadc4ae53de01c99fd72c90e9f28d2eee10d7555fed11ebbcdf68661af6062f6f23e818930699ea065998222b WHIRLPOOL 32e01ac7e5d7dcd8fe6d36beca0800a0b6fe2902418e4c978f29eb106b442791ef069dd2dd66f1303a29382170435644fa855d1e458bff52cf910860d6a8a1e7
+MISC ChangeLog 2757 SHA256 f49af3bbf56e607c0a4a740b35e1c312e067bae0e11c5df4a91f3dd35117ecf7 SHA512 094fb0f06c34e376eb068a9d785697d93281043df5489c92a7687d41084b9b436c7798b0e45690accf73a817877986869e304e53b6112c47c1ee5b12716150bf WHIRLPOOL d619fb08dcbe5d93405b381bb8bb096336434b53a76520ff85748976f65e5316d53fdc937a79b49d81004f4b301395fed5a56ed41dc031a73bc888f32561c4da
+MISC ChangeLog-2015 12520 SHA256 25ef3868fd4e3b60ba5c215a794b3466b9094cee007a156f6864df00163fa9a3 SHA512 5da546a3480a3bd2002b125e5a1f2a53ade688c2dccecadf954e6b96b86b34f6ecf2dbffa89b74c743905722fb5f2506597fa2512dfae98979823685c752a23d WHIRLPOOL 71416570823b5967cbfce0ec1be2f0ae92aa69673c33aaa8490df3f0b47e85b487ff9c81a421d78c0bba862d0d56e2f1160e0b34dd6d80b3756d9cc99e042816
+MISC metadata.xml 332 SHA256 c6d72dfad4da1d6a3bcc78fbb7b69c02f0f21e6c9f00a5fe50394378523f9e26 SHA512 1b4a93d0fce0c628f5e85500c8f325423c961cb755eac978627abbdb039cd56de08b48afcc443b0a52b84c1ea82fe75758770dcfa0efe7639a530ee80262135e WHIRLPOOL 7e7fd708808783744970ded844cdd23945db329ba6c08a9265fafa7115ebe4f4dc2a0007f3949d3c4248c77e0a443218e90d619b8cdee8cff880b53d091ff40e
diff --git a/net-libs/libgadu/files/libgadu-1.12.0-tests.patch b/net-libs/libgadu/files/libgadu-1.12.0-tests.patch
new file mode 100644
index 000000000000..56e1da45b096
--- /dev/null
+++ b/net-libs/libgadu/files/libgadu-1.12.0-tests.patch
@@ -0,0 +1,12 @@
+diff -ruN libgadu-1.12.0/test/manual/lib/base64.c my/test/manual/lib/base64.c
+--- libgadu-1.12.0/test/manual/lib/base64.c 2014-06-13 20:41:37.000000000 +0200
++++ my/test/manual/lib/base64.c 2014-08-13 03:08:00.612006311 +0200
+@@ -30,7 +30,7 @@
+ #include <openssl/bio.h>
+ #include <openssl/buffer.h>
+
+-char *gg_base64_encode(const char *input, ssize_t len)
++char *gg_base64_encode2(const char *input, ssize_t len)
+ {
+ BIO *bmem, *b64;
+ BUF_MEM *bptr;
diff --git a/net-libs/libgadu/libgadu-1.11.4.ebuild b/net-libs/libgadu/libgadu-1.11.4.ebuild
new file mode 100644
index 000000000000..7c85cae4fd94
--- /dev/null
+++ b/net-libs/libgadu/libgadu-1.11.4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils
+
+DESCRIPTION="This library implements the client side of the Gadu-Gadu protocol"
+HOMEPAGE="http://toxygen.net/libgadu/"
+SRC_URI="https://github.com/wojtekka/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+# Bug 373215, last checked 2012.01.28
+RESTRICT="test"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+SLOT="0"
+IUSE="doc gnutls ssl static-libs threads"
+
+REQUIRED_USE="
+ gnutls? ( ssl )
+"
+COMMON_DEPEND="
+ sys-libs/zlib
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? ( >=dev-libs/openssl-0.9.6m )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+"
+RDEPEND="${COMMON_DEPEND}
+ !=net-im/kadu-0.6.0.2
+ !=net-im/kadu-0.6.0.1
+"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+DOCS=(AUTHORS ChangeLog NEWS README)
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with threads pthread)
+ )
+
+ if use ssl; then
+ myeconfargs+=(
+ $(use_with gnutls gnutls)
+ $(use_with !gnutls openssl)
+ )
+ else
+ myeconfargs+=(
+ --without-gnutls
+ --without-openssl
+ )
+ fi
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ use doc && HTML_DOCS=(docs/html/)
+ autotools-utils_src_install
+}
diff --git a/net-libs/libgadu/libgadu-1.12.0.ebuild b/net-libs/libgadu/libgadu-1.12.0.ebuild
new file mode 100644
index 000000000000..1448b9f64340
--- /dev/null
+++ b/net-libs/libgadu/libgadu-1.12.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils
+
+DESCRIPTION="This library implements the client side of the Gadu-Gadu protocol"
+HOMEPAGE="http://toxygen.net/libgadu/"
+SRC_URI="https://github.com/wojtekka/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+SLOT="0"
+IUSE="doc gnutls ssl static-libs test threads"
+
+REQUIRED_USE="
+ gnutls? ( ssl )
+"
+COMMON_DEPEND="
+ >=dev-libs/protobuf-c-0.15
+ sys-libs/zlib
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? ( >=dev-libs/openssl-0.9.6m )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+ test? (
+ dev-libs/expat
+ dev-libs/libxml2:2
+ net-misc/curl
+ )
+"
+RDEPEND="${COMMON_DEPEND}
+ !=net-im/kadu-0.6.0.2
+ !=net-im/kadu-0.6.0.1
+"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+PATCHES=(
+ "${FILESDIR}/${P}-tests.patch"
+)
+
+DOCS=(AUTHORS ChangeLog NEWS README)
+
+src_configure() {
+ local myeconfargs=(
+ --with-protobuf
+ $(use_enable test tests)
+ $(use_with threads pthread)
+ )
+
+ if use ssl; then
+ myeconfargs+=(
+ $(use_with gnutls gnutls)
+ $(use_with !gnutls openssl)
+ )
+ else
+ myeconfargs+=(
+ --without-gnutls
+ --without-openssl
+ )
+ fi
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ use doc && HTML_DOCS=(docs/html/)
+ autotools-utils_src_install
+}
diff --git a/net-libs/libgadu/libgadu-1.12.1.ebuild b/net-libs/libgadu/libgadu-1.12.1.ebuild
new file mode 100644
index 000000000000..bde28ad49fc6
--- /dev/null
+++ b/net-libs/libgadu/libgadu-1.12.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils
+
+DESCRIPTION="This library implements the client side of the Gadu-Gadu protocol"
+HOMEPAGE="http://toxygen.net/libgadu/"
+SRC_URI="https://github.com/wojtekka/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+SLOT="0"
+IUSE="doc gnutls ssl static-libs test threads"
+
+REQUIRED_USE="
+ gnutls? ( ssl )
+"
+COMMON_DEPEND="
+ >=dev-libs/protobuf-c-0.15
+ sys-libs/zlib
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? ( >=dev-libs/openssl-0.9.6m )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+ test? (
+ dev-libs/expat
+ dev-libs/libxml2:2
+ net-misc/curl
+ )
+"
+RDEPEND="${COMMON_DEPEND}
+ !=net-im/kadu-0.6.0.2
+ !=net-im/kadu-0.6.0.1
+"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.12.0-tests.patch"
+)
+
+DOCS=(AUTHORS ChangeLog NEWS README)
+
+src_configure() {
+ local myeconfargs=(
+ --with-protobuf
+ $(use_enable test tests)
+ $(use_with threads pthread)
+ )
+
+ if use ssl; then
+ myeconfargs+=(
+ $(use_with gnutls gnutls)
+ $(use_with !gnutls openssl)
+ )
+ else
+ myeconfargs+=(
+ --without-gnutls
+ --without-openssl
+ )
+ fi
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ use doc && HTML_DOCS=(docs/html/)
+ autotools-utils_src_install
+}
diff --git a/net-libs/libgadu/libgadu-1.12.2.ebuild b/net-libs/libgadu/libgadu-1.12.2.ebuild
new file mode 100644
index 000000000000..6864f7ad5739
--- /dev/null
+++ b/net-libs/libgadu/libgadu-1.12.2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils
+
+DESCRIPTION="This library implements the client side of the Gadu-Gadu protocol"
+HOMEPAGE="http://toxygen.net/libgadu/"
+SRC_URI="https://github.com/wojtekka/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+SLOT="0"
+IUSE="doc gnutls ssl static-libs test threads"
+
+REQUIRED_USE="
+ gnutls? ( ssl )
+"
+COMMON_DEPEND="
+ >=dev-libs/protobuf-c-1.0.0
+ sys-libs/zlib
+ ssl? (
+ gnutls? ( net-libs/gnutls:0 )
+ !gnutls? ( >=dev-libs/openssl-0.9.6m:0 )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+ test? (
+ dev-libs/expat
+ dev-libs/libxml2:2
+ net-misc/curl
+ )
+"
+RDEPEND="${COMMON_DEPEND}
+ !=net-im/kadu-0.6.0.2
+ !=net-im/kadu-0.6.0.1
+"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+DOCS=(AUTHORS ChangeLog NEWS README)
+
+src_configure() {
+ local myeconfargs=(
+ --with-protobuf
+ $(use_enable test tests)
+ $(use_with threads pthread)
+ )
+
+ if use ssl; then
+ myeconfargs+=(
+ $(use_with gnutls gnutls)
+ $(use_with !gnutls openssl)
+ )
+ else
+ myeconfargs+=(
+ --without-gnutls
+ --without-openssl
+ )
+ fi
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ use doc && HTML_DOCS=(docs/html/)
+ autotools-utils_src_install
+}
diff --git a/net-libs/libgadu/metadata.xml b/net-libs/libgadu/metadata.xml
new file mode 100644
index 000000000000..8a8b311634f6
--- /dev/null
+++ b/net-libs/libgadu/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>reavertm@gentoo.org</email>
+ <name>Maciej Mrozowski</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">wojtekka/libgadu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libgcal/Manifest b/net-libs/libgcal/Manifest
new file mode 100644
index 000000000000..5cd388c4a956
--- /dev/null
+++ b/net-libs/libgcal/Manifest
@@ -0,0 +1,5 @@
+DIST libgcal-0.9.6.tar.bz2 555942 SHA256 3197d76c462438d0a761c47d199e402b9d9f05f86a7f9c304313a79ecc5a1503 SHA512 be2e0592a19531fa202017e529dad765a1bd6f9205ffdaba33bfd32231ad5eafb0237081fda8c5bbbe605e07204fc7895e2168b72718dde6cc660c97c08bbf26 WHIRLPOOL f4a4f7df4da7e231af6cd292a4f642017d5fd734eb4c16bdefbb45cad5a32fe0f5ba3f53d4277c250a8782c56acd03e5499f093e662d193a9ad3f2eb80b1791b
+EBUILD libgcal-0.9.6-r1.ebuild 963 SHA256 bdc1a9dd5d9a15d7f60ed0e549d05af93006759fda7d88c55a30f555e2da791a SHA512 1c4f2d2638e08a548fcb42f7ee25a98017f3c4e30c073292f3ab1a15d1fe1da0bf6f8858b03690a7bed6d5267d3ce53cb73de5e0bd346e47f734e3496785006b WHIRLPOOL 401ae7dbf9c1f80d155c76eb4d0c4ce488557faf3d4ec836c7e23d4aa757dd942e06ed7db5015c51cac8cfc3fa366de2bed7dc9fee4e083d9cdfb80e3a1c1295
+MISC ChangeLog 2852 SHA256 5a3a0ff1f183e234db1f47bbec279edbf68f8c184bf28bae5d4ac76aa878d0a7 SHA512 514965e029d50b81899bf8317110ff1afd00972de0473bdcd87fc11ac046c6caba8bd24db72bc952baa760faaa5697a24509213c1b7747049c5f0093538389be WHIRLPOOL 7dee6c0eb81aaacc29b712c144478acb500339696367bc0825f2a9b8e048fc821bb35afe79c02a464aeef7092804c8a675f81ca67e5fb4aa546ed8b58d913e9e
+MISC ChangeLog-2015 708 SHA256 8ae5893ed88c55e4526b21b6bc66704a1b47d847acd835d9575a2331c19d50fa SHA512 722ca5b042e538b809b0f8cfabf127b7e683d1aeff2c9b18f827ec970aa8fba6c205ee84315d207b2043b43117b7bcec56b615ac3139682dd3d8e541792aa6a2 WHIRLPOOL ac3260556c3d80eb63ec5f5cefaf47b229eb5d93f3acde792f00d8228140bbd29b35afc50321287c2a45a9b21d559b60f05045a04364813364d620f4a234147e
+MISC metadata.xml 244 SHA256 24d63fa92d9e6d7152a0d21ea347dd5f25d94b44113d0a6b512b3c31fe631f73 SHA512 8620ac8d738f462d1a75a76cfcca8794e75ecb77c63a053ad4dd5e2a0ddd8e6a2d7973d45d3cec7d08c9013b170b7661392d221d79c9be22efb3ab9620f4c623 WHIRLPOOL 8fee1b8004f7f3911bb0c92e2a09d1019c90c9974e09bf7e4e4700bda8cf2a5465890433ee288dadd7ac59c9c791d1b0f067e2cc4b1c2fb4f99f03b43e81d6d5
diff --git a/net-libs/libgcal/libgcal-0.9.6-r1.ebuild b/net-libs/libgcal/libgcal-0.9.6-r1.ebuild
new file mode 100644
index 000000000000..0069e5558340
--- /dev/null
+++ b/net-libs/libgcal/libgcal-0.9.6-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="C/C++ interface to the Google Data API"
+HOMEPAGE="https://code.google.com/p/libgcal/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc test"
+
+# Some tests fail
+RESTRICT="test"
+
+RDEPEND="
+ dev-libs/libxml2:2
+ >=net-misc/curl-7.18.2
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-libs/check )
+"
+
+DOCS=( README )
+
+src_configure() {
+ mycmakeargs=(
+ -DENABLE_TESTS=OFF
+ $(cmake-utils_use debug CURL_DEBUG)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use doc && cmake-utils_src_compile docs
+}
+
+src_install() {
+ use doc && HTML_DOCS=( "${BUILD_DIR}/docs/doxygen/html/" )
+ cmake-utils_src_install
+}
+
+src_test() {
+ mycmakeargs+=(-DENABLE_TESTS=ON)
+ cmake-utils_src_configure
+ cmake-utils_src_make test
+}
diff --git a/net-libs/libgcal/metadata.xml b/net-libs/libgcal/metadata.xml
new file mode 100644
index 000000000000..855b8c7d6567
--- /dev/null
+++ b/net-libs/libgcal/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-needed -->
+ <upstream>
+ <remote-id type="google-code">libgcal</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libgfbgraph/Manifest b/net-libs/libgfbgraph/Manifest
new file mode 100644
index 000000000000..9d0c9508ccfa
--- /dev/null
+++ b/net-libs/libgfbgraph/Manifest
@@ -0,0 +1,5 @@
+DIST gfbgraph-0.2.3.tar.xz 270772 SHA256 da1179083cde2b649d7491c745250a00d292e390fd620b7dd2dd95a122dae0b6 SHA512 4e03beb4172a591c7d1eb4cfac56009b0d25183168f73344d24ac47554334d1edf2c5087c523025cee5d565182a02dc7ef72adc66cff1e4ad53a1d0990d3afb8 WHIRLPOOL a81075deaf0cdef21d8b9994b96d508cafe48ab00bbf0632baacf688508b4ec678cb3073c4e83b1a0b64f2c5c032b57a4189eca42f34c278ceda8ebe8b11e172
+EBUILD libgfbgraph-0.2.3-r1.ebuild 1001 SHA256 adb2e8f9c5db0e38ecbee718f2a10cfe3f9537143b03199b82c23caaf7c65fd4 SHA512 366c5066efac6f9084e88609e29f5cbec26d35e4558f26f5de97248b4274832ea0899f85b8cadfbc5420c9470f19e1d2a9a815b19db9750357111335ffe3681e WHIRLPOOL 89dc42d83055df9673360a11139f4dcfacbbd30ccf63fc372c089655e668a5d42d9b4f08489fd773736fa6606551c77a2a9731fea0ed4439f058dfd43373d8e3
+MISC ChangeLog 2863 SHA256 414d0a6eb26531fa499fbad5e6c06b06ad4d10d75813c8c46e16652524127ab9 SHA512 c97ba56aef98d9a02860855934834aaaaf290883c0c60c6b7a7af5a9626ee1254483035e0dec1dce13f3b52640d2b6f0937885376a7735a9893f2c0c27ea2604 WHIRLPOOL aee43b53540fde9434076e1faa68ff013e9c7ce4b5c1ba0a6bdb1d2f7697bf329710b7c2e29522c7781fa85a2c972efb4e5d916507f30c2ca039549351b1819d
+MISC ChangeLog-2015 843 SHA256 80be26caadba073980f8095c8ba69ae511acd9e4d78a3d44877ab0d8391daa03 SHA512 08ee52690589294729c96a2ccfda811e66e7d38339f892ebbb1ca3a4147b4298ee1649dd0150fd5d21faaac03b3118d24ca5259d922a08136d1b09cabed8332e WHIRLPOOL 968304f43d7363a3873ffbdc1bb6122bb2504fc8f71b6e99eb7cbf2a51423feaf14b49a3ffc72d4748be176909a105a4d0db7c5903742fa7f1c3526bfd5d132c
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/libgfbgraph/libgfbgraph-0.2.3-r1.ebuild b/net-libs/libgfbgraph/libgfbgraph-0.2.3-r1.ebuild
new file mode 100644
index 000000000000..58d7d357528e
--- /dev/null
+++ b/net-libs/libgfbgraph/libgfbgraph-0.2.3-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME_ORG_MODULE="gfbgraph"
+
+inherit gnome2
+
+DESCRIPTION="A GObject library for Facebook Graph API"
+HOMEPAGE="https://git.gnome.org/browse/libgfbgraph/"
+
+LICENSE="LGPL-2.1+"
+SLOT="0.2"
+KEYWORDS="amd64 x86"
+IUSE="+introspection"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/json-glib[introspection?]
+ net-libs/libsoup:2.4[introspection?]
+ net-libs/gnome-online-accounts
+ net-libs/rest:0.7[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.14
+ virtual/pkgconfig
+"
+
+# FIXME: most tests seem to fail
+RESTRICT="test"
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable introspection)
+}
+
+src_install() {
+ gnome2_src_install
+ # Remove files installed in the wrong place
+ # Also, already done by portage
+ # https://bugzilla.gnome.org/show_bug.cgi?id=752581
+ rm -rf "${ED}"/usr/doc
+}
diff --git a/net-libs/libgfbgraph/metadata.xml b/net-libs/libgfbgraph/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/libgfbgraph/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libgmail/Manifest b/net-libs/libgmail/Manifest
new file mode 100644
index 000000000000..3bfdeca6c286
--- /dev/null
+++ b/net-libs/libgmail/Manifest
@@ -0,0 +1,5 @@
+DIST libgmail-0.1.11.tar.gz 30433 SHA256 2d94f1230f591dfa6d1b726338063f28b89b2f82ba5b866ab077c86c598de43e SHA512 a6e08ff1c2a50930289eb4b79ccffe458ef64bc01e4eb5db83a9e8155b349187808743e8152a3437a6db0a9cdc96b0a3ccd24b2d8edc44ef5ffdc707c98c3114 WHIRLPOOL bd79e1e5c8fb44e8c31b085dc1f602589521099ae630e289997a60cf7252769e6829bf38584654b08d515501becf2d6555a20cca5ae9730363283571d5848bcf
+EBUILD libgmail-0.1.11-r1.ebuild 601 SHA256 543ea9f9f78e3386a3b6960a9c6b7010b40792ef1ebe03cf9280ece7be82ffba SHA512 c86025495ccdd2af473db9d27482368daed4519979ac0d9912e95e73a745e1662d8217ae21c9d0b207d372bb5f8955769c8b8b5838bc440ac92abe597b9eefaf WHIRLPOOL 1db7cabe5b0690a61172f89f0a080f083a2a8eb114ddb4237c25be68f9248d6646498eda9bac1a716a0455942c572938051917583bdba7a29f6db6d22c55cf7b
+MISC ChangeLog 2467 SHA256 744445fdc9f1583c79f8693cb50ac64169bc90313b0d7fefe2300b3a26758d02 SHA512 411adbeb082bdb27ddfb0d8b07f9afd6269579f655f9ff377d903b59317d26b2b46d84e5e9c8ed010d5f1e630986b4dc7cc0724188ed0e08c9a0fc987e34c3a1 WHIRLPOOL 470b5a3bcd3271a4651d456c7e10d0b6b09e5ce547dda03ad96154503cc3ce874f9392fac440ce7e0423bee2a7e23369e561d717969d023b883f6b767c7a6a58
+MISC ChangeLog-2015 3335 SHA256 a10e27899a852295c24cdfc21097ff29f999304fd14ea043dd642d42a4e045a9 SHA512 aae2b59c252ec3de355b9c6ddcd81b46756a70c3874bc9d0cfbd28b3db68f45602f29656eb43e345824a448187eb6f978aa5d302911f8076f8204b81b060704a WHIRLPOOL 77ca7ecbc73ffe433c0ac653ddd4bb5de00c921590068b57176fc198760029ba8303a2350bd630c835a70d225b50c376c73346d325ecafa4c2be5179439a7dcf
+MISC metadata.xml 245 SHA256 27ae1840738e104d3ee4e28087213c3fd6b92327d2bd4f5080c4a2166fba232b SHA512 db79f83c623ddcf4f00b895c54a21c218a6ccb03882ec756301cfa27d0439c7139a80bf3dea36721f0b2a2088d91de96ecd3f36d5f297c376d7e9838fed63d7f WHIRLPOOL ea977470e81f87aaba4fb6b36c71ef4e507d73a9de11319e3f71c43990d68748be978e549ba7c3840b9646e8e514b97bf78bf73073973b78709090f6acdb3081
diff --git a/net-libs/libgmail/libgmail-0.1.11-r1.ebuild b/net-libs/libgmail/libgmail-0.1.11-r1.ebuild
new file mode 100644
index 000000000000..227ad134049c
--- /dev/null
+++ b/net-libs/libgmail/libgmail-0.1.11-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings to access Google's gmail service"
+HOMEPAGE="http://libgmail.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE=""
+
+DEPEND="dev-python/clientcookie[${PYTHON_USEDEP}]
+ dev-python/mechanize[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
diff --git a/net-libs/libgmail/metadata.xml b/net-libs/libgmail/metadata.xml
new file mode 100644
index 000000000000..7cc5c4eeadd7
--- /dev/null
+++ b/net-libs/libgmail/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">libgmail</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libgrss/Manifest b/net-libs/libgrss/Manifest
new file mode 100644
index 000000000000..706a3347a93c
--- /dev/null
+++ b/net-libs/libgrss/Manifest
@@ -0,0 +1,9 @@
+AUX libgrss-0.5.0-fix-slotting.patch 3986 SHA256 1afeb4aed5366db5487b8c59da032d9d3b0a6683c24305131776a32d73b2ba27 SHA512 797b2290d1a7bb40b3a89c2fcd7cb8f26c0cdd242e510c51880bf6aacbe511f74207b35c9d114a8cee6854cf4379f13c0297b080493a787c27039fbf0a6d69c3 WHIRLPOOL 538bf63f847d65e4c9462b7e0af54a5867f7d2736cd0cfc077a691d417019959d278ac80b3beee7e7a3f9da69a951f0ed761d0b0074a5759d17f5a295aa20268
+AUX libgrss-0.5.0-headers.patch 268 SHA256 c59355e1d062f4ca64b6ebfcf1b81734d6cc557cabfa38b2bcad9981de5cb0a6 SHA512 4352a3f80f5dccd164adacd32a3568df7c7274bac9a80cb4aac2d2e41cf62e40156a4aa96e4cd420f8279821b17dc63a51bafeab2cd7b5e1d3c0d760c503f738 WHIRLPOOL f081a0b4db7f6f862d91cce12bdcdab87f8a3abb3a1b322be6fdc9f7ca7c6a121ddc549dbf0558c12cbf05d83902be0d529e570a906383d6ab1f05edd2834a3c
+DIST libgrss-0.5.0.tar.gz 439634 SHA256 a0b5d9cc18b90891c20b3645567b31edda1e6f61e6a4c2f314ac77490bb767b1 SHA512 189c49b7bdf029160e72d3d89c6779e193373e5a3af7f810041bf325d0b5543bb87b414d833a13e028a589b96a4d53bb223e88667d18d2c53f610d6086bb60ea WHIRLPOOL 5fe0b4c53e3d66ac95fdb7d9032454d62c80fd8640c5af48574e10eff15f997d767fa821fb16b4fd4eda8ede1563411ae821c9f2980f9861f3c93131fe7a130c
+DIST libgrss-0.7.0.tar.xz 362360 SHA256 6709c0f630a915ea7d5f1ac88ac173ef974d8d7406f43bd4be70d3e71fd554d9 SHA512 22a4f13ee979932575c6efd25bfd2fb184ea113aa34254d9e4bfb64cfbbd9b277dd235b8c9be037baf8c85bea7ba3bc1478ec3c7a3c87e63aeddb1774959c780 WHIRLPOOL 6b5c8a8a5140af90db1dba1368b6cec638a68fe1f3b2fee5e79b143e6d8d576df087e5be3d0a927afb602c4ebf9733d781ce0e65d7122e0c6d8eaeda26f7fcd0
+EBUILD libgrss-0.5.0-r1.ebuild 870 SHA256 48ce33d372c36930d5bf92ffce860d1ede7d8ac40c582ba91856aa5b8520a350 SHA512 2661759badc30857e449aa5f53b167e4ed9a7cb0b9e29c65194d8b09a9c53ff4fd1da7d26c83a42186d3cff9399730c88d6e86ef4c0c692697a06fc2b4060871 WHIRLPOOL 42c95608fbe0cecc4aaa5a0ab8a794a4d449792f14a99983fd65e9c18cce1d0be393dd4b11ab4bf6e9ca2cbc87c32f4ed3183cce926af836018071a7c11e3655
+EBUILD libgrss-0.7.0.ebuild 615 SHA256 824103d1aee5509dfd31b8dc3208917f4b5a9df6163edf2d0a99ba1fdb870e63 SHA512 d5f4d2cff93db961c456684cd26894a343082be9d1ad4f72d71134718842941890c3ecdeaf0124567fb8aed957aba8ebf054239e5795eb13ce7efdd130cc76a4 WHIRLPOOL 0ed8cae8e92c9722626850ef1b9ebf1c616b204d41f3fa6aa93d7bee80b88f84d6b781ef87b5b0928a99abd059dce848fa13b6cdab9facf4dff3ba5083302fc0
+MISC ChangeLog 3298 SHA256 f24356216053dccd2f9e22d1cb418571aa94ee445bbde13c2eb4dcfa18716622 SHA512 eac877d1cc30d8287a9cede0c60048fbdde4b6321e94874ee5cd2d8137f0bb43f7702054e034fd146ec9539fdfe04ff19cd5baafe3a8e460e69a1da15f03c7d3 WHIRLPOOL c2039fdb364c906794ba3903f2c9e699b94e66778562cbe5f3471a3981b0434475318b35f34df56d4571cedb104adf6e740931d87305ec76bf4d3ce388e042b7
+MISC ChangeLog-2015 3162 SHA256 adbe345ebae9fb38d71368d480b627bda45117495077dbec672e7ed933aa63d0 SHA512 acab6746e74d382c7f905af0427001593a32ce7b9323ca541c0309ed6c7d38940ad52caef2ed8dd0e194b49b20ade05a610db8fd031321c311e4ec5c7f9b9a94 WHIRLPOOL 16873442a0231f64cc3524591991bbc3c330726346f177a7c3ace8ba808657bd1c09025ccbb5eca34d10199fa41a02bd9cf14c8dab0b7bb745d75c153550458f
+MISC metadata.xml 392 SHA256 f3a1ab1b6973d93d6371a74b0fc5a6fc711b7e0b6bfb1efbb22b27575d072141 SHA512 ea3b3f271fba72e28c4d0ab6db46c4fe58d5bac4999192a324ecea7f5199b8191cdaaaba89fc437bc24fa146a29a61a17f3df12bbc3d32c69a6aa91a795c05e3 WHIRLPOOL 9ac5286d9f91ab5ad02f0bec2acda45b54f1371c32eacd6743ebd18b0c847751e94663f15d7f0e1c91cf092103ce7304f6e2fbe3749b7fcb59b34d130199668f
diff --git a/net-libs/libgrss/files/libgrss-0.5.0-fix-slotting.patch b/net-libs/libgrss/files/libgrss-0.5.0-fix-slotting.patch
new file mode 100644
index 000000000000..01146aeb0902
--- /dev/null
+++ b/net-libs/libgrss/files/libgrss-0.5.0-fix-slotting.patch
@@ -0,0 +1,124 @@
+From 4b93347fee20ea18196cab9f702be88ecd23f54e Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Mon, 1 Apr 2013 16:07:21 +0200
+Subject: [PATCH 1/2] Fix parallel installation for API version 0.5
+
+---
+ Makefile.am | 5 +++--
+ configure.ac | 3 +++
+ doc/reference/Makefile.am | 4 ++--
+ libgrss.pc.in | 4 ++--
+ src/Makefile.am | 12 ++++++------
+ 5 files changed, 16 insertions(+), 12 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 8547d3b..a13acf4 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,11 +1,12 @@
+ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = src doc
+ EXTRA_DIST = autogen.sh
++CLEANFILES = libgrss-$(LIBGRSS_API_VERSION).pc
+
+ pcfiledir = $(libdir)/pkgconfig
+-pcfile_DATA = libgrss-0.5.pc
++pcfile_DATA = libgrss-$(LIBGRSS_API_VERSION).pc
+
+ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+
+-libgrss-0.5.pc: libgrss.pc
++libgrss-$(LIBGRSS_API_VERSION).pc: libgrss.pc
+ @cp -f $< $@
+diff --git a/configure.ac b/configure.ac
+index 61effa3..443140b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,6 +1,7 @@
+ m4_define([libgrss_major_version], [0])
+ m4_define([libgrss_minor_version], [5])
+ m4_define([libgrss_micro_version], [0])
++m4_define([libgrss_api_version], [0.5])
+
+ m4_define([libgrss_version],
+ [libgrss_major_version.libgrss_minor_version.libgrss_micro_version])
+@@ -46,10 +47,12 @@ AC_CHECK_FUNCS([strptime localtime_r])
+ LIBGRSS_MAJOR_VERSION=libgrss_major_version
+ LIBGRSS_MINOR_VERSION=libgrss_minor_version
+ LIBGRSS_MICRO_VERSION=libgrss_micro_version
++LIBGRSS_API_VERSION=libgrss_api_version
+ LIBGRSS_VERSION=libgrss_version
+ AC_SUBST(LIBGRSS_MAJOR_VERSION)
+ AC_SUBST(LIBGRSS_MICRO_VERSION)
+ AC_SUBST(LIBGRSS_MINOR_VERSION)
++AC_SUBST(LIBGRSS_API_VERSION)
+ AC_SUBST(LIBGRSS_VERSION)
+
+ dnl libgrss checks
+diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
+index 644642d..eafbc65 100644
+--- a/doc/reference/Makefile.am
++++ b/doc/reference/Makefile.am
+@@ -7,7 +7,7 @@ AUTOMAKE_OPTIONS = 1.6
+ # of using the various options.
+
+ # The name of the module, e.g. 'glib'.
+-DOC_MODULE=libgrss
++DOC_MODULE=libgrss-@LIBGRSS_API_VERSION@
+
+ # The top-level SGML file. You can change this if you want to.
+ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
+@@ -71,7 +71,7 @@ expand_content_files=
+ # e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
+
+ INCLUDES=-I$(top_srcdir) $(LIBGRSS_CFLAGS)
+-GTKDOC_LIBS=$(top_builddir)/src/libgrss-1.0.la $(LIBGRSS_LIBS)
++GTKDOC_LIBS=$(top_builddir)/src/libgrss-@LIBGRSS_API_VERSION@.la $(LIBGRSS_LIBS)
+
+ # This includes the standard gtk-doc make rules, copied by gtkdocize.
+ include $(top_srcdir)/gtk-doc.make
+diff --git a/libgrss.pc.in b/libgrss.pc.in
+index cdd0f6f..3d75924 100644
+--- a/libgrss.pc.in
++++ b/libgrss.pc.in
+@@ -6,6 +6,6 @@ includedir=@includedir@
+ Name: libgrss
+ Description: GObject RSS handling library
+ Version: @VERSION@
+-Libs: -L${libdir} -lgrss-1.0
+-Cflags: -I${includedir}/libgrss
++Libs: -L${libdir} -lgrss-@LIBGRSS_API_VERSION@
++Cflags: -I${includedir}/libgrss-@LIBGRSS_API_VERSION@
+ Requires: gobject-2.0 libxml-2.0 libsoup-2.4
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 8587d73..8e0bb5c 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -74,18 +74,18 @@ feed-marshal.c: feed-marshal.list
+ echo "#include \"feed-marshal.h\"" > $@ && \
+ $(GLIB_GENMARSHAL) $< --prefix=feed_marshal --body >> $@
+
+-lib_LTLIBRARIES = libgrss-1.0.la
++lib_LTLIBRARIES = libgrss-0.5.la
+
+-libgrss_1_0_la_LIBADD = $(LIBGRSS_LIBS)
+-libgrss_1_0_la_SOURCES = \
++libgrss_0_5_la_LIBADD = $(LIBGRSS_LIBS)
++libgrss_0_5_la_SOURCES = \
+ $(sources_public_h) \
+ $(sources_private_h) \
+ $(sources_c) \
+ $(NULL)
+-libgrss_1_0_la_LDFLAGS = $(LDADD)
++libgrss_0_5_la_LDFLAGS = $(LDADD)
+
+-libgrssincludedir = $(includedir)/libgrss
+-libgrssinclude_DATA = $(sources_public_h)
++libgrss_0_5_ladir = $(includedir)/libgrss-@LIBGRSS_API_VERSION@
++libgrss_0_5_la_HEADERS = $(sources_public_h)
+
+ CLEANFILES = $(pcfile_DATA)
+
+--
+1.8.1.5
+
diff --git a/net-libs/libgrss/files/libgrss-0.5.0-headers.patch b/net-libs/libgrss/files/libgrss-0.5.0-headers.patch
new file mode 100644
index 000000000000..5e129d0eb9ab
--- /dev/null
+++ b/net-libs/libgrss/files/libgrss-0.5.0-headers.patch
@@ -0,0 +1,11 @@
+--- a/src/utils.h 2013-11-08 00:04:21.877945385 +0100
++++ b/src/utils.h 2013-11-08 00:05:45.397901242 +0100
+@@ -34,6 +34,8 @@
+ #include <errno.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/socket.h>
++#include <arpa/inet.h>
+
+ #include "libgrss.h"
+
diff --git a/net-libs/libgrss/libgrss-0.5.0-r1.ebuild b/net-libs/libgrss/libgrss-0.5.0-r1.ebuild
new file mode 100644
index 000000000000..fa23ad7e9b84
--- /dev/null
+++ b/net-libs/libgrss/libgrss-0.5.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="yes"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="LibGRSS is a library for easy management of RSS/Atom/Pie feeds"
+HOMEPAGE="https://wiki.gnome.org/Projects/Libgrss"
+SRC_URI="http://gtk.mplat.es/libgrss/tarballs/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0.5"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-libs/glib-2.30.2:2
+ >=dev-libs/libxml2-2.7.8:2
+ >=net-libs/libsoup-2.36.1:2.4
+"
+DEPEND="${RDEPEND}
+ app-text/gnome-doc-utils
+ >=dev-util/gtk-doc-am-1.10
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # Fix soname/.pc
+ epatch "${FILESDIR}"/${P}-fix-slotting.patch
+
+ # Fix build with newer glibc
+ epatch "${FILESDIR}"/${P}-headers.patch
+
+ eautoreconf
+ gnome2_src_prepare
+}
diff --git a/net-libs/libgrss/libgrss-0.7.0.ebuild b/net-libs/libgrss/libgrss-0.7.0.ebuild
new file mode 100644
index 000000000000..03098268a1b6
--- /dev/null
+++ b/net-libs/libgrss/libgrss-0.7.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2
+
+DESCRIPTION="LibGRSS is a library for easy management of RSS/Atom/Pie feeds"
+HOMEPAGE="https://wiki.gnome.org/Projects/Libgrss"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="+introspection"
+
+RDEPEND="
+ >=dev-libs/glib-2.42.1:2
+ >=dev-libs/libxml2-2.9.2:2
+ >=net-libs/libsoup-2.48:2.4
+ introspection? ( >=dev-libs/gobject-introspection-1.42 )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.10
+ virtual/pkgconfig
+"
diff --git a/net-libs/libgrss/metadata.xml b/net-libs/libgrss/metadata.xml
new file mode 100644
index 000000000000..563664136c35
--- /dev/null
+++ b/net-libs/libgrss/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<upstream>
+ <bugs-to>https://bugs.gnome.org</bugs-to>
+ <changelog>https://git.gnome.org/browse/libgrss</changelog>
+ </upstream>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libgsasl/Manifest b/net-libs/libgsasl/Manifest
new file mode 100644
index 000000000000..e97db8fb7f78
--- /dev/null
+++ b/net-libs/libgsasl/Manifest
@@ -0,0 +1,6 @@
+AUX libgsasl-gss-extra.patch 861 SHA256 f2b82d9718b007bf9174131bb48f72f29349926e593b887057e99033b8ed4e48 SHA512 67fdf2a74829bc5164ddf92decd3478bfc6a474171dc74f4088636e424aa78146b9b5c7c8d961753cc2a2a391f7e3b0c071f6c391dd680cf9b3ee6c8c8bb0040 WHIRLPOOL 1ba8cf5a4570b2d4c6c5a571d0b3f5ee896afa996e6377770e9febaf5f112924fc6b4b369e98f4378f1cf041e26259c0d3e8ab7bc2736630a2beb2bfcc68b97d
+DIST libgsasl-1.8.0.tar.gz 1208417 SHA256 3adfb49f9c92a719dea855fd1840d698cde55d4648d332a69032ba8bea207720 SHA512 7e591d12404919559bf67590f862270ffcae2030a14097cdaf92820aa79619b3048541e9f83b3fcb98a84622c44a52ecaceeebb1be55b9e9f68fb1790ade8721 WHIRLPOOL 8ac141dad470a0f1df808093d99a56009b3e00593c9dd8a195f11a53b1bb24a3527e6986fd64ecc875842af305f9a72dd83d105070c0e3e0958622a3bb47cd97
+EBUILD libgsasl-1.8.0-r1.ebuild 1300 SHA256 7d68e8b884c91fe5020e0b80a771db91073b6b90d065a531a45c24f072752947 SHA512 94e121027fe9ed617bfddee24cbc975a3330980dce1abf7515ccfca1c74d6b29bcebd991e3ecb2d67f397513e79049f0ae3d08889432e6d235ad7e58fb7c9ed4 WHIRLPOOL b7ce94c5e34e9250e0bc647e8b4acccdc0a88cda65562246123e11cd314b08c16479cb3604bd25f4d6ea6da34f8e16b671d926829926249f659b05b440a56617
+MISC ChangeLog 3020 SHA256 d1d39fbb5c6bb63f4567bac4aa5af864b33147c2d8fbc80a3a1713c7a7c5c690 SHA512 c2cb86df70146507667a819520676f427dfc832d2325c9a451a4dce09d8983c025433cd1d73207e6871d257a28d383eaed8df741f3cd00f4d319393422282b1a WHIRLPOOL 3af23480c221f2afe9db4ee48b66125cec9983fba222115d38787f44b9eb5cb4bf91b484b68a5b24b2329e646f28d013cb1fce3e9622dee7b8254c4263d16a29
+MISC ChangeLog-2015 11092 SHA256 a0754588c8ea6e41e2122932a7b755a9514262aee5026301227d9478efbd9c87 SHA512 61730ae0a347d07f2ee1aed431d224bff481b7c5e42ebf13e23fbf3e889bdab9abbe0cfd3df762faa7428817345af2c9f2127770b8336afcdb71c11ec3475a59 WHIRLPOOL ca8395cc5424a9116205cd1522e91061b7332f824cfd2733a02424c2f4a74a3eac0912e54b4252e171d998c1fd73709ca23ad13793551b673757534d65686c25
+MISC metadata.xml 441 SHA256 d3d1804d2c025e912715791c9c22764b5a765a888a6b7958528f5fd98bd0d921 SHA512 cc5006f1d1b90b71cab02baa92eb82485161248a3680807a461ce7af38a4259d80eb831341c8b42bf764c6b76d4c8228d80966657c6875221234ac66f7d35e89 WHIRLPOOL 5e56a9713d6b0e87ad528c2cb69f62c4a27e01ed37d12a95f418b7c9260517e4a79eca47fef5aecf0ce6473400a623b1261c13a695dc588bd54dacfbb6e4303e
diff --git a/net-libs/libgsasl/files/libgsasl-gss-extra.patch b/net-libs/libgsasl/files/libgsasl-gss-extra.patch
new file mode 100644
index 000000000000..e9ec10d183c4
--- /dev/null
+++ b/net-libs/libgsasl/files/libgsasl-gss-extra.patch
@@ -0,0 +1,21 @@
+Gentoo bug #359005
+--- a/gl/m4/gss-extra.m4
++++ b/gl/m4/gss-extra.m4
+@@ -19,7 +19,16 @@
+ AC_CHECK_FUNCS([gss_decapsulate_token])
+ AC_CHECK_FUNCS([gss_oid_equal])
+ AC_CHECK_FUNCS([gss_inquire_mech_for_saslname])
+- AC_CHECK_FUNCS([GSS_C_NT_HOSTBASED_SERVICE])
++ AC_MSG_CHECKING([for GSS_C_NT_HOSTBASED_SERVICE])
++ AC_EGREP_CPP(hostbased_service_gss_nt_yes, gssapi.h,
++ [#include <gssapi.h>
++ #ifdef GSS_C_NT_HOSTBASED_SERVICE
++ hostbased_service_gss_nt_yes
++ #endif],
++ [AC_DEFINE(HAVE_GSS_C_NT_HOSTBASED_SERVICE,,
++ [Define if your GSSAPI implimentation defines GSS_C_NT_HOSTBASED_SERVICE])
++ AC_MSG_RESULT([yes])],
++ AC_MSG_RESULT([no]))
+ if test "$gssapi_impl" != "gss"; then
+ AC_CHECK_HEADERS([gssapi.h gssapi/gssapi.h])
+ if test "$ac_cv_header_gssapi_h$ac_cv_header_gssapi_gssapi_h" = "nono"; then
diff --git a/net-libs/libgsasl/libgsasl-1.8.0-r1.ebuild b/net-libs/libgsasl/libgsasl-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..33b6be88f5a9
--- /dev/null
+++ b/net-libs/libgsasl/libgsasl-1.8.0-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+DESCRIPTION="The GNU SASL library"
+HOMEPAGE="https://www.gnu.org/software/gsasl/"
+SRC_URI="mirror://gnu/${PN/lib}/${P}.tar.gz"
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="idn gcrypt kerberos nls ntlm static-libs"
+DEPEND="
+ gcrypt? ( dev-libs/libgcrypt:0 )
+ idn? ( net-dns/libidn )
+ kerberos? ( virtual/krb5 )
+ nls? ( >=sys-devel/gettext-0.18.1 )
+ ntlm? ( net-libs/libntlm )
+"
+RDEPEND="${DEPEND}
+ !net-misc/gsasl"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-gss-extra.patch"
+)
+
+src_prepare() {
+ default
+ sed -i -e 's/ -Werror//' configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ local krb5_impl
+ if use kerberos; then
+ krb5_impl="--with-gssapi-impl="
+ krb5_impl+=$(has_version app-crypt/mit-krb5 && echo "mit" || echo "heimdal")
+ fi
+ local myeconfargs=(
+ $(use_with gcrypt libgcrypt)
+ $(use_with idn stringprep)
+ $(use_enable kerberos gssapi)
+ ${krb5_impl}
+ $(use_enable nls)
+ $(use_enable ntlm)
+ $(use_enable static-libs static)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ if ! use static-libs; then
+ rm -f "${D}"/usr/lib*/lib*.la
+ fi
+}
diff --git a/net-libs/libgsasl/metadata.xml b/net-libs/libgsasl/metadata.xml
new file mode 100644
index 000000000000..d80abe5cbe8b
--- /dev/null
+++ b/net-libs/libgsasl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+<use>
+ <flag name="gcrypt">Use <pkg>dev-libs/libgcrypt</pkg> for low-level crypto</flag>
+ <flag name="ntlm">Add support for Microsoft's NTLM mechanism using <pkg>net-libs/libntlm</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/libgssglue/Manifest b/net-libs/libgssglue/Manifest
new file mode 100644
index 000000000000..84f26353cb87
--- /dev/null
+++ b/net-libs/libgssglue/Manifest
@@ -0,0 +1,7 @@
+AUX libgssglue-0.3-protos.patch 415 SHA256 ff0b6e78ab30222f813fcb538a60dafdfb806a23e45ed41d2be1b6f0a1e27c30 SHA512 0993ce5908d1388490c195cd7da7950d019ac2937e4aa374dad515b12c9775ebbc578f2635b508b333fd8f961b4f8816db7c5e4891ace07f042c7ea6588c0307 WHIRLPOOL 284e2d0e6a34e9f173cf127de0df7439cb07f40ac14d0a7bfc0c981dea9fd0770881d583654cb6cf6f522ad6f3c87df0dad8ff93d0f0aa945fd79a1d7a04aaf9
+AUX libgssglue-0.4-implicit-declarations.patch 470 SHA256 71140624b5fd12828c37a88ca74e767916051d53790cb2073d504b9aba6e82f6 SHA512 3bfe59382a33538c0930d41443899a08178a74e5045d0faac2bda0ce2c5556fcf77cd930a26c26b8d8e8af6b3682fb65e6bdeff2b990d8b810f5ef917c4c8ada WHIRLPOOL 9e6ace04467381c2923d1e1c6aa2047865964e855f9b3f9d103e29606ee3c3f2d22143865693b6f7adf07f08de894249201168c5eeb1488bfd911dbf9481dee9
+DIST libgssglue-0.4.tar.gz 346984 SHA256 3f791a75502ba723e5e85e41e5e0c711bb89e2716b7c0ec6e74bd1df6739043a SHA512 25d514c08320e42851ff153d7691267a8454f205492faf942f566aa30c1ac1c83bd095732a1a0fcc010ba3a5d48b4c95a196ad05bc821598cc1fc3a2c4960d29 WHIRLPOOL 5f050ea5c429dcc97050e23e6b89bff175c5150916bc0a6b351faf31e4d962b6d81df1f4984ae5f9e44119550809a57818a5ccc6f65af77cbf5f73b19de28cb9
+EBUILD libgssglue-0.4.ebuild 839 SHA256 def598cc4d2aa25f332e6076f7ed410645ba184f1d266db82af8fc42a1453735 SHA512 d318f0ac3b1c81bda4a017c5e412b3cb16d467615a9ca5a6ee2b53e1bb0c61425c47ab5a760ad931dfa3624ed6b4065176a8cd6154799735a89796067d3f4bd5 WHIRLPOOL ba994fa38db85009b84ab9be466331d741f05649e404251bbae2603bf91481faa78287778ac38ede754083f6ef9e7caaeef959b3da12308d2305a4f5bda653e4
+MISC ChangeLog 2552 SHA256 3d35e72a3b54bcc62851af3fa2b61446d84c41e6565a47480c157feaa3905929 SHA512 8b078f881be059a7b998f47077d5fb58c2a4640f6e3a61f99de40e1ff6871875769ba465add72040efca12b6f8e1782abff0f32538f641280ed753a9de40b1dd WHIRLPOOL 7749e69f2e3a4b15ac58cd64ceb4d27b0c2a857a57f083203b2a7403bb03bbf7d41c75d1bf1939304d83b3dc9d62aca51054b8dbf0e3e8decac4c75dfbd37a40
+MISC ChangeLog-2015 2946 SHA256 34787a2fb3841bfdfda74da0a2085f7e0102fd999b0f94a2349c38cc043e1ef4 SHA512 ac9ba2afd2e027a88c38460730c287341e3d165ed23bc477ef95547c88794c7cf6b6b6e495d4eda7634f73a23b3f9cc2ccdfd208db32c047b6ea591b471eab03 WHIRLPOOL 431db413685b1eef5b0aa440a6f0038f480a4608fc82fc4066d6f476b4f4712a61d1617c09874e7698393f032f5a5a33fcf1ef14dae2917a101323085dbb96df
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/libgssglue/files/libgssglue-0.3-protos.patch b/net-libs/libgssglue/files/libgssglue-0.3-protos.patch
new file mode 100644
index 000000000000..5aaf6d03aaac
--- /dev/null
+++ b/net-libs/libgssglue/files/libgssglue-0.3-protos.patch
@@ -0,0 +1,15 @@
+add missing prototype to header
+
+--- a/src/mglueP.h
++++ b/src/mglueP.h
+@@ -477,6 +477,10 @@ OM_uint32 generic_gss_str_to_oid
+ gss_OID * /* oid */
+ );
+
++OM_uint32
++generic_gss_copy_oid_set(OM_uint32 *minor_status,
++ const gss_OID_set_desc * const oidset,
++ gss_OID_set *new_oidset);
+
+ gss_OID gss_find_mechanism_from_name_type (gss_OID); /* name_type */
+
diff --git a/net-libs/libgssglue/files/libgssglue-0.4-implicit-declarations.patch b/net-libs/libgssglue/files/libgssglue-0.4-implicit-declarations.patch
new file mode 100644
index 000000000000..6a98569128d0
--- /dev/null
+++ b/net-libs/libgssglue/files/libgssglue-0.4-implicit-declarations.patch
@@ -0,0 +1,15 @@
+* g_initialize.c:275:5: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]
+* g_initialize.c:275:5: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration]
+
+--- src/g_initialize.c
++++ src/g_initialize.c
+@@ -29,6 +29,9 @@
+ #include "mglueP.h"
+ #include <stdlib.h>
+
++#include <unistd.h> /* getuid, geteuid */
++#include <sys/types.h> /* ditto */
++
+ #include <stdio.h>
+ #include <string.h>
+ #include <ctype.h>
diff --git a/net-libs/libgssglue/libgssglue-0.4.ebuild b/net-libs/libgssglue/libgssglue-0.4.ebuild
new file mode 100644
index 000000000000..651e2aeed115
--- /dev/null
+++ b/net-libs/libgssglue/libgssglue-0.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="exports a gssapi interface which calls other random gssapi libraries"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="!app-crypt/libgssapi"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-0.3-protos.patch \
+ "${FILESDIR}"/${PN}-0.4-implicit-declarations.patch
+}
+
+src_configure() {
+ # No need to install static libraries, as it uses libdl
+ econf --disable-static
+}
+
+src_install() {
+ default
+ prune_libtool_files
+
+ insinto /etc
+ doins doc/gssapi_mech.conf
+}
diff --git a/net-libs/libgssglue/metadata.xml b/net-libs/libgssglue/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/libgssglue/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/libhackrf/Manifest b/net-libs/libhackrf/Manifest
new file mode 100644
index 000000000000..3dc67bb59b99
--- /dev/null
+++ b/net-libs/libhackrf/Manifest
@@ -0,0 +1,12 @@
+DIST hackrf-2014.04.1.tar.xz 14375500 SHA256 83ef987d31d314d6d99a227a18c31c34a44e996a28841234e59e53c5d8ab5a72 SHA512 1929c7af1de0c9ad1afcf56d53c5db13ef362f3ef896f3549841eeea87aec5e1133c63da740688739278b13e772b70d510a4a1035440b5b6aad2e9438a694892 WHIRLPOOL 0fa45438b4aa84e3e16b975949cead0010f6271ec89b8e2f69fcfdbd5c5a722d803a6f7d017b272b3c71773768b32bbeae00a6a43879a9268c7d84315282a93a
+DIST hackrf-2014.08.1.tar.xz 14376904 SHA256 624c46163161896b8347a73e9edeb1188433f032df7cd00eda9a242c2a5bc98a SHA512 2bb2e9398479f635fc4cb73875d9728c689f5d29bfbdcaae661d98ecafe51d38ac8768dd4f38b87766195d9ed08757e76d790030edf6f6f572d547146287c073 WHIRLPOOL c33430279d0757e104f09ecafce2df859f33f8de9139dd6491a11d86ed3e241ba3ef298d1d0994113e695c46ab211daf573262815a8a1fc5349fd44642da3910
+DIST hackrf-2015.07.2.tar.xz 14415212 SHA256 5e3d9c36928b88cdbc0d66ee54e24e8682972dba478abfca0e31069515b870b6 SHA512 a4f7b7800ece9b260d5c8c374f5544aa55cd2e97e10c6a0b33cf476e2ad4811321ffb1308d9dfb2168b2624cd3af616d1c314ad86bcd6f4c3fd0897319fa2cbd WHIRLPOOL 8dfee4fb55be913f44d8ab905fc7c6b1fd703e16b01aa41191e97ab726a3b04d6a78670ae47c2d3bada64e38d42cabcf7f39b646fba55b436cbcab312be1f198
+DIST hackrf-2017.02.1.tar.xz 15409352 SHA256 1dd1fbec98bf2fa56c92f82fd66eb46801a2248c019c4707b3971bc187cb973a SHA512 7cd6ad9aa8fef8afed41c48a3358bff18c6b2a9a112b13daabda87726e0e3ca4cf1e0c0c6ff9689bdd49f854e2e5887a84ccd7975abef43a43b75ecf8a5236ce WHIRLPOOL 96b057560237e554465e1a8ad336f72a53409574612b6449b1e09c8842278c365274f274c118adfca15a17ec69fd20f42d739e658fc06f65024e54ac6657c7f4
+EBUILD libhackrf-2014.04.1.ebuild 671 SHA256 a7d21ff71b542ba98d077233363142ac93809c02a612d87501ad0d70730b9922 SHA512 739ee11926e00ce289b5a80cb39b0f9c0061b99382364c3f8084ef7a9c2092dd19d7a8d0908d07dc03024e677e47f03d7b322615aabb744552efeb8f3d8ea76f WHIRLPOOL e43eef13ddc5872f576b4941eb34e26183f7a29ee247d5e28d2afc0c1900263a354f77ff158897b904aa1437d448ef32d236d6f4dd8b5a29a801e5dc58d023f4
+EBUILD libhackrf-2014.08.1.ebuild 878 SHA256 5f8bffbf12474dbd5176c789ad17cb0973f296c6ac70c9ae2bf19065ecce60b0 SHA512 09937011ec15856fd3a0bac7c11f3c8e7ca2fff6a5cbc072ad9a08695982330231ee5c132d98fe72244b19aa46a46e0b46071375882f36cf5125f42198fdf309 WHIRLPOOL 99b482458bcc239467d3b3f85feea71d9da38230d9a3f3bfddc1af10a9f182812989a1aca2fddfeb063bd3037a14f7de366a3274db94ce05e69de985bdde432b
+EBUILD libhackrf-2015.07.2.ebuild 1026 SHA256 ffa4300c61d34eefcfd3560a664b98ea4394dd3d063d5d32fcb595500e708fc9 SHA512 f0edc37331a90968939a1cb0891e37d8ca9f5ccaa7e934a082d3235548cc235563443abcf92bc8d39839c7177bfefcbeababc6bae5a22ac9c218bd2cd494f8eb WHIRLPOOL 14892783d745a8579e5843b369c0339aa1eee0fa939bcf60dafb3f187d2c3a799f6b24b1b418e777b396de301150692c82bda69f5674e1a1f9a77ea1289d2fae
+EBUILD libhackrf-2017.02.1.ebuild 1023 SHA256 132c273cfbd1fd74afb06993914b17f9ebacaa0dcf0c138d1b365e305027fbfe SHA512 294a3c13016822a75531d8bde30e9bb1f3832494d0f944f77975dd817be573e332f709f4aa8f20599424396c6e2ba32f122a50822fc344e669d9b5014006ff59 WHIRLPOOL f5dee9a22cb1e394c8e8de8ae92c475ff07a1685cceb9a9744c0d4ecacbe72829c646a37270a46c117c4df6348a68e00fd892d6671a241bf59e335e1fc570c28
+EBUILD libhackrf-9999.ebuild 1023 SHA256 132c273cfbd1fd74afb06993914b17f9ebacaa0dcf0c138d1b365e305027fbfe SHA512 294a3c13016822a75531d8bde30e9bb1f3832494d0f944f77975dd817be573e332f709f4aa8f20599424396c6e2ba32f122a50822fc344e669d9b5014006ff59 WHIRLPOOL f5dee9a22cb1e394c8e8de8ae92c475ff07a1685cceb9a9744c0d4ecacbe72829c646a37270a46c117c4df6348a68e00fd892d6671a241bf59e335e1fc570c28
+MISC ChangeLog 2957 SHA256 5e965ee9ec9f5628d446587959a13e4b5698eec3fde60b1027f99a2d9dbaf534 SHA512 b7d09d90a66a7416b9af8caa082de1e471a3d5cd1e0e88d66021c7c29299873999176eac8e3e195dd609b7be703d633a10ee6b629c289a75f4026711643544a0 WHIRLPOOL 4c4754bec0d5da28d407c079d2d224d048f761a804ddbc5bc3bdb2b34a15b8442dfb45941e8cdcf13d197a9d9a123853dd46a0227283cb82f51850999779d63d
+MISC ChangeLog-2015 1669 SHA256 e1b07cacc714b6b253910379bc6a6e682e92aad9db64f8595f59f2c49984753d SHA512 b124a550959a445a39588c144ea45b663af06a4b21c7cc0bf058d75726019042c30afc9e5bf9e3b3374b3ecb9fc58a0b70fa0f883bc74cca318b9b562e252583 WHIRLPOOL fbbe455335f0689f9efc549cc79395e58a8745b38e474aff3809931f96c0d40b8c87c07dea0e4158d4a87825bc54fdaa2d2bf18ade9e7e7e9a6c1e48133a051b
+MISC metadata.xml 477 SHA256 3ca98f0c1fdb1de571555e0f69a5afee0a7fa7e0354aafbc71a5cf0d07b503bd SHA512 ba679c6d4942d6a0f8efb480f820434676e37148bc60b481e9b7b0fe13b6037ee8c450632a85de25ed08e96b6e3308ee7b54b8a5f5130cd43827ad811d59a825 WHIRLPOOL 3c35bfaf22c3ac428fab36875c4e25709a89fde7ed5ba75140d11d76ca67d4fc863b47a2b97bf36731aaafd59f1b1171c6c24cd3b1267d94f2df494292fe5abd
diff --git a/net-libs/libhackrf/libhackrf-2014.04.1.ebuild b/net-libs/libhackrf/libhackrf-2014.04.1.ebuild
new file mode 100644
index 000000000000..d674575992fc
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-2014.04.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="library for communicating with HackRF SDR platform"
+HOMEPAGE="http://greatscottgadgets.com/hackrf/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/mossmann/hackrf.git"
+ inherit git-2
+ KEYWORDS=""
+ EGIT_SOURCEDIR="${WORKDIR}/hackrf"
+ S="${WORKDIR}/hackrf/host/libhackrf"
+else
+ S="${WORKDIR}/hackrf-${PV}/host/libhackrf"
+ SRC_URI="mirror://sourceforge/hackrf/hackrf-${PV}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~ppc ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+IUSE=""
+
+DEPEND="virtual/libusb:1"
+RDEPEND="${DEPEND}"
diff --git a/net-libs/libhackrf/libhackrf-2014.08.1.ebuild b/net-libs/libhackrf/libhackrf-2014.08.1.ebuild
new file mode 100644
index 000000000000..fc72fea1fd62
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-2014.08.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils udev
+
+DESCRIPTION="library for communicating with HackRF SDR platform"
+HOMEPAGE="http://greatscottgadgets.com/hackrf/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/mossmann/hackrf.git"
+ inherit git-2
+ KEYWORDS=""
+ EGIT_SOURCEDIR="${WORKDIR}/hackrf"
+ S="${WORKDIR}/hackrf/host/libhackrf"
+else
+ S="${WORKDIR}/hackrf-${PV}/host/libhackrf"
+ SRC_URI="mirror://sourceforge/hackrf/hackrf-${PV}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~ppc ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+IUSE=""
+
+DEPEND="virtual/libusb:1"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i 's#plugdev#usb#' 53-hackrf.rules
+}
+
+src_install() {
+ cmake-utils_src_install
+ udev_dorules 53-hackrf.rules
+}
+
+pkg_postinst() {
+ einfo "Users in the usb group can use hackrf."
+}
diff --git a/net-libs/libhackrf/libhackrf-2015.07.2.ebuild b/net-libs/libhackrf/libhackrf-2015.07.2.ebuild
new file mode 100644
index 000000000000..5eccf9765911
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-2015.07.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils udev
+
+DESCRIPTION="library for communicating with HackRF SDR platform"
+HOMEPAGE="http://greatscottgadgets.com/hackrf/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/mossmann/hackrf.git"
+ inherit git-2
+ KEYWORDS=""
+ EGIT_SOURCEDIR="${WORKDIR}/hackrf"
+ S="${WORKDIR}/hackrf/host/libhackrf"
+else
+ S="${WORKDIR}/hackrf-${PV}/host/libhackrf"
+ SRC_URI="https://github.com/mossmann/hackrf/releases/download/v${PV}/hackrf-${PV}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~ppc ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+IUSE="+udev"
+
+DEPEND="virtual/libusb:1"
+RDEPEND="${DEPEND}"
+
+src_configure(){
+ mycmakeargs=(
+ $(cmake-utils_use_enable udev INSTALL_UDEV_RULES)
+ )
+ if use udev; then
+ mycmakeargs+=(
+ -DUDEV_RULES_GROUP=usb
+ -DUDEV_RULES_PATH="$(get_udevdir)/rules.d"
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ use udev && einfo "Users in the usb group can use hackrf."
+}
diff --git a/net-libs/libhackrf/libhackrf-2017.02.1.ebuild b/net-libs/libhackrf/libhackrf-2017.02.1.ebuild
new file mode 100644
index 000000000000..1034297b69fd
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-2017.02.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils udev
+
+DESCRIPTION="library for communicating with HackRF SDR platform"
+HOMEPAGE="http://greatscottgadgets.com/hackrf/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/mossmann/hackrf.git"
+ inherit git-r3
+ KEYWORDS=""
+ EGIT_CHECKOUT_DIR="${WORKDIR}/hackrf"
+ S="${WORKDIR}/hackrf/host/libhackrf"
+else
+ S="${WORKDIR}/hackrf-${PV}/host/libhackrf"
+ SRC_URI="https://github.com/mossmann/hackrf/releases/download/v${PV}/hackrf-${PV}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~ppc ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+IUSE="+udev"
+
+DEPEND="virtual/libusb:1"
+RDEPEND="${DEPEND}"
+
+src_configure(){
+ mycmakeargs=(
+ -DENABLE_INSTALL_UDEV_RULES="$(usex udev)"
+ )
+ if use udev; then
+ mycmakeargs+=(
+ -DUDEV_RULES_GROUP=usb
+ -DUDEV_RULES_PATH="$(get_udevdir)/rules.d"
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ use udev && einfo "Users in the usb group can use hackrf."
+}
diff --git a/net-libs/libhackrf/libhackrf-9999.ebuild b/net-libs/libhackrf/libhackrf-9999.ebuild
new file mode 100644
index 000000000000..1034297b69fd
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils udev
+
+DESCRIPTION="library for communicating with HackRF SDR platform"
+HOMEPAGE="http://greatscottgadgets.com/hackrf/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/mossmann/hackrf.git"
+ inherit git-r3
+ KEYWORDS=""
+ EGIT_CHECKOUT_DIR="${WORKDIR}/hackrf"
+ S="${WORKDIR}/hackrf/host/libhackrf"
+else
+ S="${WORKDIR}/hackrf-${PV}/host/libhackrf"
+ SRC_URI="https://github.com/mossmann/hackrf/releases/download/v${PV}/hackrf-${PV}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~ppc ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+IUSE="+udev"
+
+DEPEND="virtual/libusb:1"
+RDEPEND="${DEPEND}"
+
+src_configure(){
+ mycmakeargs=(
+ -DENABLE_INSTALL_UDEV_RULES="$(usex udev)"
+ )
+ if use udev; then
+ mycmakeargs+=(
+ -DUDEV_RULES_GROUP=usb
+ -DUDEV_RULES_PATH="$(get_udevdir)/rules.d"
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ use udev && einfo "Users in the usb group can use hackrf."
+}
diff --git a/net-libs/libhackrf/metadata.xml b/net-libs/libhackrf/metadata.xml
new file mode 100644
index 000000000000..d919b0faf9cc
--- /dev/null
+++ b/net-libs/libhackrf/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>radio@gentoo.org</email>
+ <name>Radio</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">hackrf</remote-id>
+ <remote-id type="github">mossmann/hackrf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libhtp/Manifest b/net-libs/libhtp/Manifest
new file mode 100644
index 000000000000..8de91fe53ca8
--- /dev/null
+++ b/net-libs/libhtp/Manifest
@@ -0,0 +1,6 @@
+DIST htp-0.5.18.tar.gz 799444 SHA256 53f81a2b639edbd9df9f1f0cebcfe9c2a2b381f9d61e2944c020b855a7e89a79 SHA512 e3efaedb74b8a0655b58922f2d0a079f5dfb5dcead117e21394d5d76ff93a3a7260ab56994468764ceeaa2dd584bcfa988b146efb85831e8a98efcda06b28876 WHIRLPOOL 816456580434b2254af8e88e24ff80e5721966ee742bbb89870324e9edcf12bfee4a54727855937c7bbb0d44ba9423dcf714f93a713287dbf0777ca5eeb93c86
+DIST libhtp-0.5.22.tar.gz 5773159 SHA256 0f5ba5b0316b3c0caaa5c45a792271a61d01c667e76f8e37f1d186cb865f5663 SHA512 3daf7241e8abca34bf348e0fc805c755472ebba01a869d5523637a81dfd6b9b3019941dff2e75d6e0978ebfbd60d917191e355aa43a2391500ecaaddab487ebc WHIRLPOOL 59a530fec6bba98c1714ca49394167cfb4a6ba079562a28e6c10a0b9fbf82e71e1ab7a7532050a20c2908a6b0673f55812cb9be81ad9da249b9296a1d6698b97
+EBUILD libhtp-0.5.18.ebuild 802 SHA256 476ff572d1016d75dc46eb60670ecce797cc3ce1ce75d3a17fcd0a7967adec8c SHA512 1c139e3f3a386782dff1ab7353770eae82a8c1279119a7acae157145f46495a48e6024679f9ff7883f1052662444a75d6a000aff0b396812adc861d72f2e30bf WHIRLPOOL 7ba80a697e0e2e943cf31caa2e68da7fc610a35f7228448e5d7d959e5dba6733117a22b2531abaeb55fe918478aa6ec06e0f29f5eb839f4b66b562f34ec05b78
+EBUILD libhtp-0.5.22.ebuild 802 SHA256 2cad276e68e26e0ae43541e3aa4f848adb3509f5bb0cd135337e923701a3dc4a SHA512 16e21e57bf13a605e40900f81406b378f5c05332bdd537c5279968975b80ba78d76f0129b8c083d7c234c5520589f2eecad0e1328fee3a11af4ce90c4b072f67 WHIRLPOOL b67ef6b192306c4f9a07b909fd12870213e532d0ad0b33600cdc85cf2c0d2d8268fd0c93331ea409698fef3567cd802829efd2a2e5e40e4c39a079dcacf0274a
+MISC ChangeLog 553 SHA256 1efc12c0aeb11ad98523f3f4c6b2d7cfb1f0ff5ba4678ace6839a65fa1e1dee8 SHA512 01c040ea9b0386bc1a2659d9390c0618e437cc5924a44c1c5d8edb4b66c72c01095b231029eba2c664561ba19fcb5e7ffc6a05c4f1500016b96c19d183ddc83b WHIRLPOOL e8bd4c07e06eabb7c12dffc9162fad883bee55eced03abcd339f99620d95647a9658fd82c0fb2ba87b787f3fe4055091db0dec762f9b8d1145d5a475f0dec6ac
+MISC metadata.xml 335 SHA256 c5ff99f9625ccc08ec295739773f45886147a2881eee703fad34e65f9677fffc SHA512 90a08acb6435b763b420630ba709b4206cd9de5f026665c43cc51fee0c58cd711024c013e7ce07a1b80e960835d5dcec77d030ca99f67df379cc31eaaee39bd6 WHIRLPOOL c0d7e644ab01b98c3faf981a6e4fa608bce6f5adc225301adf3524e81503c89c403ccf563b529ec0685c3a4681ca480d5797742e2d2df7eacda2d7307accdaf1
diff --git a/net-libs/libhtp/libhtp-0.5.18.ebuild b/net-libs/libhtp/libhtp-0.5.18.ebuild
new file mode 100644
index 000000000000..f583f27a6312
--- /dev/null
+++ b/net-libs/libhtp/libhtp-0.5.18.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib-minimal
+
+MY_P=${P#lib}
+
+DESCRIPTION="security-aware parser for the HTTP protocol and the related bits and pieces"
+HOMEPAGE="https://github.com/OISF/libhtp"
+SRC_URI="https://github.com/OISF/${PN}/releases/download/${PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+IUSE="debug static-libs"
+
+RDEPEND="sys-libs/zlib[static-libs?]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+multilib_src_configure() {
+ # The debug configure logic is broken.
+ ECONF_SOURCE=${S} \
+ econf \
+ $(usex debug '--enable-debug' '') \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libhtp/libhtp-0.5.22.ebuild b/net-libs/libhtp/libhtp-0.5.22.ebuild
new file mode 100644
index 000000000000..2f19228060c9
--- /dev/null
+++ b/net-libs/libhtp/libhtp-0.5.22.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="security-aware parser for the HTTP protocol and the related bits and pieces"
+HOMEPAGE="https://github.com/OISF/libhtp"
+SRC_URI="https://github.com/OISF/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+IUSE="debug static-libs"
+
+RDEPEND="sys-libs/zlib[static-libs?]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # The debug configure logic is broken.
+ ECONF_SOURCE=${S} \
+ econf \
+ $(usex debug '--enable-debug' '') \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libhtp/metadata.xml b/net-libs/libhtp/metadata.xml
new file mode 100644
index 000000000000..ee432479ac41
--- /dev/null
+++ b/net-libs/libhtp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>vapier@gentoo.org</email>
+ <description>feel free to update</description>
+</maintainer>
+<upstream>
+ <remote-id type="github">OISF/libhtp</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/net-libs/libhubbub/Manifest b/net-libs/libhubbub/Manifest
new file mode 100644
index 000000000000..9f6cbafd1b5d
--- /dev/null
+++ b/net-libs/libhubbub/Manifest
@@ -0,0 +1,6 @@
+DIST libhubbub-0.3.3-src.tar.gz 783945 SHA256 066dffd127ead12da60050aa13b80891fb996d00197767d038e48ac163402780 SHA512 28a5668257eda8cf1ca0395505522eb0f847a4cceee46de067fcfb171baa114876156a7e2671fff93602b2de63c640095e1a940e4725afb24bd14b4fd5f64526 WHIRLPOOL c2f5459064e75699231f59dcfa56823d721aba8dc5062c5996807109f0bca1019a8a0b8371bb0934a49b8f98805d89ae9131d203379117f13e6ed2ee7eacae09
+DIST netsurf-buildsystem-1.5.tar.gz 38196 SHA256 dbc6afc639f6987b704e6ff4427668787ee7efba77e1bbf76b614699b5daaf71 SHA512 02d85e8f1d2101194a678f7ccf84051390953285a46951d7b327556f8df1a0c416620bd4c7a615e25de438d5d27cfffb69ec5d94eb8379a295dab4c85a96cae4 WHIRLPOOL 7b7d595a2e399b361e71769e509a129af42da5ce823f1b55183efb53898ac2ae731593eb13e1ecc2271ea26ee0948ac35bf99fea280eb72a2bb00164b4b29f09
+EBUILD libhubbub-0.3.3.ebuild 669 SHA256 af69a03034ceed78092f207eb574474f9625b4277accb947beee11c8ddb575a6 SHA512 8ed759024a6073b10366709c7fc486dfe35c2df5367be17083804898e80d99765bb5e9a850643154c5b4813be1a945a41f10567d451361e80d770eded3d03ad1 WHIRLPOOL 5ba9c1327d8efed848f77ea1b92642dc604c464d7ed9d5acc5ea038f6d2c1d48f1ddb236e6b923a94268a199a0ba06c8354ad5fdc03c681c14ac8357553e04a7
+MISC ChangeLog 3356 SHA256 8ae08cb81569084d3f7dba28510f06137044a80ba2c6105e4547ff4186079449 SHA512 08dffd7606debebd62fcb647b8ac3a2926bbc40ae0951769f5549762e0e088a48a1d61ba123fc02c18c9219230877f2779da0021b74d2a67553627351c77d7b7 WHIRLPOOL baeee00213f385cfa798ece774f96d95d9db7e8f15ec3f6e35e7130e63453ea5b38da37f064de6f25418f78fb8445cf84ee85d95a0ee78ea7f6bcc6fb3be61ac
+MISC ChangeLog-2015 1983 SHA256 9d995464159ea0f38de8821d1b649c1b6972be754f78eedca00515a4a658e14e SHA512 d5b0c8b5da49a4f19018eea874949d34a2c66add0ed4efb33dafd2569e098df137c361fb1ca06f92baad99a29f5648fbe4b218f27a8401dbae189c03b38a5044 WHIRLPOOL 6f15402aff2574f8270d563689db5232c0d97d11d9ec60130eeb25c7c4d3be2e0226e574969427e6abfa2b0089f5c14ceefd3f34bcb2bb4448a0049589ec5df1
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/net-libs/libhubbub/libhubbub-0.3.3.ebuild b/net-libs/libhubbub/libhubbub-0.3.3.ebuild
new file mode 100644
index 000000000000..794f46b89bee
--- /dev/null
+++ b/net-libs/libhubbub/libhubbub-0.3.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+NETSURF_BUILDSYSTEM=buildsystem-1.5
+inherit netsurf
+
+DESCRIPTION="HTML5 compliant parsing library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/hubbub/"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="amd64 arm ~ppc x86 ~m68k-mint"
+IUSE="doc test"
+
+RDEPEND=">=dev-libs/libparserutils-0.2.1-r1[static-libs?,${MULTILIB_USEDEP}]
+ !net-libs/hubbub"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-lang/perl
+ >=dev-libs/json-c-0.10-r1[${MULTILIB_USEDEP}] )"
+
+DOCS=( README docs/{Architecture,Macros,Todo,Treebuilder,Updated} )
+
+#RESTRICT=test
diff --git a/net-libs/libhubbub/metadata.xml b/net-libs/libhubbub/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/net-libs/libhubbub/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 type="person">
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libident/Manifest b/net-libs/libident/Manifest
new file mode 100644
index 000000000000..fd52a355d5d9
--- /dev/null
+++ b/net-libs/libident/Manifest
@@ -0,0 +1,6 @@
+DIST libident-0.32.tar.bz2 205831 SHA256 a88a24adc377322008aaf7bf7078e6d409f5327e9515ce0d755345dd249dce22 SHA512 5e5d0e3dd2514fa5af9dba02eca52cc8015d091fca05beeb23bae1c98d33a1a1313081cafc9e1e49d2beb5c524beaf1eb3679ff54330164aa170d74dbd84b244 WHIRLPOOL 9f3068e654e37f289d095cf744459c449fee42919f668444e363012c0e201b8206eb37ed40d13ad29dd456cc5eb924b00eda2857bbac4c1bf390624ac020d617
+EBUILD libident-0.32-r1.ebuild 536 SHA256 516a53cb267784a85c91388b137dffb2b547065b46d2c8d6c7190eeb6bf0bb63 SHA512 e7e1642fb16c85405030f7239dd2dcfa78444a142142eab49407929f257b15716a0f56f155fe560a2724793ee8ee014283df407cb468f4e37bee5846f868a6fa WHIRLPOOL 41d08401176aafbb9ae175a42d2f095350a8940c407cfed35be759424ceb19e6af17de403597c108aba6152ad6c354723ba82f4ab86ea871afabaf7fa6418891
+EBUILD libident-0.32.ebuild 507 SHA256 30abe26bb36ea8f820a4b324c8f5f8a85a1fcf1634c0b29b34bb5673919fa7b5 SHA512 4eb6f180aa0cf6926801c0f1b5bc5a401feeb0a1ef4880fe48a426ae1711af73e044dd704f9a7f33d7b88442ae857bacddd961da95c1d47d403b8f2c6fa59fc9 WHIRLPOOL 908b44daad41ad35c9a02a9392a661b49f1c23f7d1d77c3806c17d595cfb91b64168896d2d7ed8a0927d6bce602e6c1cf684edb11a727e181234aa9caa01b6ab
+MISC ChangeLog 2523 SHA256 dae24d508e757f983042ded55dd77222ec039c48876aad3419d02ff379c98f19 SHA512 061cea2283a83c311a95cfc285ea565167f092ffb28e32cb78c874a21d59d7778ea0de8c5975f29404bac7314bf1e3aef49c4eba2330728b939cab91adbe5f7e WHIRLPOOL 79fcb2d00baeabd986312668585e82b03bc3eb8985cf41c30bf9d0cfaadce23a9f9ae0981c3575fa42e8a7c2faefc24ab663e3d7d38ff50d990cd3e7fa8ce302
+MISC ChangeLog-2015 2330 SHA256 b1fda5b301a97744fde997dca0e9ea8a3d93a98c65b85b10c7b85faf8d0f5c24 SHA512 d747ccb0b6a76c1a636b6554b8f968605b4466330dc6b7a8a1fd3f5555b33900bccbcc1d527cf01f931ab5266071cba12accee0c9b51b9cc927335755bb978b2 WHIRLPOOL 6998cb75eb7d35acd1dc6e1c0240bfb8a636b90e9364bdfcf326594b583cdda1e760527c38d9f0a4796f9c9d56f3363b727b27b9c04bc5f427904c8a23696452
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/libident/libident-0.32-r1.ebuild b/net-libs/libident/libident-0.32-r1.ebuild
new file mode 100644
index 000000000000..ddc844ff9b61
--- /dev/null
+++ b/net-libs/libident/libident-0.32-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A small library to interface to the Ident protocol server"
+HOMEPAGE="http://www.simphalempin.com/dev/libident/"
+SRC_URI="http://people.via.ecp.fr/~rem/libident/${P}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/libident/libident-0.32.ebuild b/net-libs/libident/libident-0.32.ebuild
new file mode 100644
index 000000000000..2fbc80f2281e
--- /dev/null
+++ b/net-libs/libident/libident-0.32.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A small library to interface to the Ident protocol server"
+HOMEPAGE="http://www.simphalempin.com/dev/libident/"
+SRC_URI="http://people.via.ecp.fr/~rem/libident/${P}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ppc64 s390 ~sparc x86"
+IUSE=""
+
+DEPEND=""
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/libident/metadata.xml b/net-libs/libident/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/libident/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/libinfinity/Manifest b/net-libs/libinfinity/Manifest
new file mode 100644
index 000000000000..5303761c4bcc
--- /dev/null
+++ b/net-libs/libinfinity/Manifest
@@ -0,0 +1,7 @@
+AUX infinoted.confd 395 SHA256 f5a7063c677736b97754c79eddfa0bac365cc0488683076340c515c150be48e7 SHA512 c2c68e2af841699c33d71acfad6efd3034f4944b25a56bc912fd117590d8e8862684ed061065ebeb0de0c18cb75a9abdeeb997cd785abca4c5278f53a51cae95 WHIRLPOOL 2afb12906fd27a6816b7db569693b5a3c389498ac567edba9ce9c8212889618c7ac3e62fc82b4345680ebd35e76782a0227b55c6901983331e8049500457faa1
+AUX infinoted.initd 527 SHA256 ab8e1c8b659e6b942a3b360dc1e880b89df018c8ba77a16725fe56f40485070d SHA512 f652f40e82746bb9592968b65c64a59dda9373671d04a17e1054d69047f5463f72f9d7f08fe3eeb0b718a3631f286d60713e48d4178ab5850f44b71905def72e WHIRLPOOL 0a6a97f32293a1b91c5f17ea258263739459cde2e2bb38524535abd36b91ad140cbc14a98c6cbed705368cc118399e268fe63cf77ebdfea2a484182664bc45c9
+DIST libinfinity-0.6.7.tar.gz 1989993 SHA256 4ca20160221de2b139e2d32efd1e7fdec0b2e429041d807f23a35bb6da6fbcc1 SHA512 9142badee0976019937c29d9badd404d64e49031007863c254c312d999b9790fa4f2ff80ac982b709744e1bfa532b1bc331b3bf1d55aac3ac70c9cae6a7afd3b WHIRLPOOL eb2f35e870b001c7d35b8be0042de1b2de4775a23020c9ed700b215ec5f189831640ab1e817940db7d87db988a6901a6d5a75143600c710f7221120b90f694e4
+EBUILD libinfinity-0.6.7.ebuild 1668 SHA256 2bc120ef6a2d651018037ff8d6ccde720e42a4c02c004ba3686fdde5f75e7bca SHA512 68609acd0b74fb5bbfefd428940a27b239f0d3fb49d96af82d24a722b7bc85f4fefdac2c094b26724680df197568bc87f3fa2c9916128bcfd81526ea88cfccec WHIRLPOOL 9d20cffd75f8a6bd27dea7ea5208b1c239546c2e83b9e0aacc52b067a8a26cabe9609ac58ddb77b8f0f672bca49f26c40591515e8df90fa435af18f90fd1557c
+MISC ChangeLog 3246 SHA256 56a01071c86f443fab4fa28f13b6b9492515c12d103c4a63d9a961ad22958991 SHA512 eae6bf02b4b56475fea554042def07471a33bcf3e0ecba85caf580d705ab85b97dee9d17435ddfad3870d52ecbd1e49f79ba37c0e126440c1de8faaa3b12f786 WHIRLPOOL 43170954049b37cb65aaaf62acd17141561f4dc049659111c01ddd4bc55647d167b71d025e8a8a6c254fa5d993399b3014d083aa3698592ff050a96a48cfbe6e
+MISC ChangeLog-2015 3043 SHA256 4626c055708d575ed73ae566107a4bc6265c6af2777145ab34352c42283edc71 SHA512 396ace92d0e00ec3c7c495c426eb533324f1487d176b77b955a10c6ebf0a4348234c21493e89ebe7a51ceef68c1f311314c95837de367d3faee214f3047b352b WHIRLPOOL 8d4c66b9a615c54c5a1132089468a8ec13b9cd844c5f198e63ccc34d1e80da823411f1c230bc591c128871efd24764883506dadb5de88aa20d9a79d45399b1ba
+MISC metadata.xml 448 SHA256 a554b285e5dc3e79c0b1583162de95742630aa6d2b3394049cf35e428b57794c SHA512 5788fac149e97927026493acd5db7e7898123886971a2a09f29584587556db38ad992db7422be6b111896199708836ce8b5c5485461f7d5511fd7a6c0ef53c0e WHIRLPOOL a28a128f87d220fadf9696e583d92a4be2626d4c12c6ce6dfcc4f48f0f07403e008420130b15d9afbd55a58629df62040e2f82aa1ad0f9344590bcfdf27c8a94
diff --git a/net-libs/libinfinity/files/infinoted.confd b/net-libs/libinfinity/files/infinoted.confd
new file mode 100644
index 000000000000..81e62a4d9515
--- /dev/null
+++ b/net-libs/libinfinity/files/infinoted.confd
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/infinoted for Gentoo Linux
+
+USER="infinote"
+GROUP="infinote"
+UMASK="007"
+
+PIDFILE="/var/run/infinoted.pid"
+
+# Please read `infinoted --help` for other options.
+# This is a fast setup for local networks only (maybe not even those),
+# make sure you use appropriate security on untrusted networks.
+OPTIONS="--root-directory=/var/lib/infinote --security-policy=no-tls"
diff --git a/net-libs/libinfinity/files/infinoted.initd b/net-libs/libinfinity/files/infinoted.initd
new file mode 100644
index 000000000000..a235ceaec463
--- /dev/null
+++ b/net-libs/libinfinity/files/infinoted.initd
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting infinoted"
+ start-stop-daemon \
+ --start --quiet --background --make-pidfile \
+ --pidfile /var/run/infinoted.pid \
+ --exec /usr/bin/infinoted \
+ --user ${USER} --group ${GROUP} --umask 007 \
+ -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping infinoted"
+ start-stop-daemon \
+ --stop --quiet \
+ --pidfile /var/run/infinoted.pid
+ eend $?
+}
diff --git a/net-libs/libinfinity/libinfinity-0.6.7.ebuild b/net-libs/libinfinity/libinfinity-0.6.7.ebuild
new file mode 100644
index 000000000000..ebfb42c2b8b3
--- /dev/null
+++ b/net-libs/libinfinity/libinfinity-0.6.7.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils eutils versionator user
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="An implementation of the Infinote protocol written in GObject-based C"
+HOMEPAGE="http://gobby.0x539.de/"
+SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gtk server static-libs zeroconf"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/libxml2
+ net-libs/gnutls
+ sys-libs/pam
+ virtual/gsasl
+ gtk? ( x11-libs/gtk+:3 )
+ zeroconf? ( net-dns/avahi )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext
+ doc? ( dev-util/gtk-doc )"
+
+DOCS=(AUTHORS NEWS README.md TODO)
+
+pkg_setup() {
+ if use server ; then
+ enewgroup infinote 100
+ enewuser infinote 100 /bin/bash /var/lib/infinote infinote
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable doc gtk-doc)
+ $(use_with gtk inftextgtk)
+ $(use_with gtk infgtk)
+ $(use_with gtk gtk3)
+ $(use_with server infinoted)
+ $(use_with zeroconf)
+ $(use_with zeroconf libdaemon)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use server ; then
+ newinitd "${FILESDIR}/infinoted.initd" infinoted
+ newconfd "${FILESDIR}/infinoted.confd" infinoted
+
+ keepdir /var/lib/infinote
+ fowners infinote:infinote /var/lib/infinote
+ fperms 770 /var/lib/infinote
+
+ dosym /usr/bin/infinoted-${MY_PV} /usr/bin/infinoted
+
+ elog "Add local users who should have local access to the documents"
+ elog "created by infinoted to the infinote group."
+ elog "The documents are saved in /var/lib/infinote per default."
+ fi
+}
diff --git a/net-libs/libinfinity/metadata.xml b/net-libs/libinfinity/metadata.xml
new file mode 100644
index 000000000000..33f9840bfeb4
--- /dev/null
+++ b/net-libs/libinfinity/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+ <use>
+ <flag name="server">
+ Build and install the server binary including init.d/conf.d-scripts.
+ Needed if you want to host an infinote server for gobby.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libircclient/Manifest b/net-libs/libircclient/Manifest
new file mode 100644
index 000000000000..a045c2d7a807
--- /dev/null
+++ b/net-libs/libircclient/Manifest
@@ -0,0 +1,15 @@
+AUX libircclient-1.6-build.patch 376 SHA256 84057216f2d1efcd83e01a40762769ea616ed0aa0f6564a563799309016817a3 SHA512 1dd6a8a7c71b331ab1fc6a5d5f0c204bcc0c09362271df1f3304f78291555f3cf7c4fba278123c4d12f59793e9cf8cc867aae365aef82a51bb2b019c804b558b WHIRLPOOL cfe4975c43b3ca7984b9e4bfd888266ef3f061c14bfa27994992aafaea99ddfbb9d4fab6587ea4fa44002c02d2501090b169f704af62a94b0d3ac82cc6955153
+AUX libircclient-1.6-include.patch 289 SHA256 3378f4e8cda60ec99696915910bcbd4b61816e9870f54d7adc95fe4ade7433dd SHA512 62e3c1cfe8843eb16efe9e803785ba759100e3cf4c82b7f9f2fe11bd92a5fe9ad85707ef21c6231e3ee23f6e283711f643db76e79699574b3fb01eb893977d02 WHIRLPOOL dd12d5410a4f7d2a50d6fe16e73c2ea3f6d829be26c0899f8d0f9aab9b0ad4c9460df697e53aa6ee6acb9458720c2d74a03f6e60425ec968d43c6771708a1a20
+AUX libircclient-1.6-shared.patch 2286 SHA256 d65301d303d4db244b3ed1732be37889dd9b3e5736b374be62e0179f88229b0a SHA512 aa0cb079d206748c68ac5fbd066f78271b15f76e06a443c38ea54d35e1e2ccffb500cddd4d6a361c094b199ded876d7b47a1d08ebadbc48ea57d2bbefabf3f30 WHIRLPOOL 24aa695c459c5b50d0920fd605ccf9db2f1c06077173b8d97eb1db0290382f32fbdab56887c280924b54c31507f07a6ac05f23c3f7d7c252ccadcc48a0d9d25b
+AUX libircclient-1.6-static.patch 213 SHA256 858ebe3da96e25a3925353796f1b06d33d1859c5d795105dcca849f591e8dde1 SHA512 b370de10c348928dc75c1844b2c9f02b832ef4f44a6c7ab887e1ede35e8dbcc7fcfd427e472e35ffebc33fa98556d1cbac25be233c4ed4d5d267912c12ee9397 WHIRLPOOL a81a549fb5d32d4b28d89b50cc66d80b8df592e4b6cfe95e4a6d40e11367a1965cb33c726dbbc054603153749445591a478110a332876d7c1b864e760159e8e7
+AUX libircclient-1.8-build.patch 340 SHA256 3306196346f113343986c057ff7255797c15ef3a04f8efcfdbcdfadfc0baab0d SHA512 44ab22464672b1f5e5ff8266ce3b4ebd8356175da2803a6f8cfc2b1e581f03c5a96f2a12a4b0bcef7bce4aeb8b6c9e31a0f149ffb2ac1b200d040e734dbbb640 WHIRLPOOL 38b3abfd748163f2144bfda796192c77cd750d11b9567049de73dd68ebab52abb2012a7fd272ae5465d4cdd2ff4362925ca7f173c776f52656cecf485d63b9db
+AUX libircclient-1.8-include.patch 289 SHA256 3378f4e8cda60ec99696915910bcbd4b61816e9870f54d7adc95fe4ade7433dd SHA512 62e3c1cfe8843eb16efe9e803785ba759100e3cf4c82b7f9f2fe11bd92a5fe9ad85707ef21c6231e3ee23f6e283711f643db76e79699574b3fb01eb893977d02 WHIRLPOOL dd12d5410a4f7d2a50d6fe16e73c2ea3f6d829be26c0899f8d0f9aab9b0ad4c9460df697e53aa6ee6acb9458720c2d74a03f6e60425ec968d43c6771708a1a20
+AUX libircclient-1.8-shared.patch 2348 SHA256 fd13c719277ad67fa3b69817e3f2be5edf4efabcb4a026a353894a49be46bc70 SHA512 e61b6c2d56be6cefb4320a93dae96d2fb0dbaf9818246ba1b9be88ab21d3302108d4cfb650cf0db564c50b2913d67ac24183221f2f522eab21097cbbbb37b642 WHIRLPOOL aa872bc2328463df08933795161504d975227a5e05c106bb74d8965da912d6d32b40f5d3dbe1c9da6310463e4af3e1307c4aa81a84934de44a536ade98087bb9
+AUX libircclient-1.8-static.patch 209 SHA256 69ae2cd1eaa37bf58ebd7b7b80cee83168c529ed61e1ac37ed0bd88d031f6ae4 SHA512 b1161ce28e5a8d668c852ee0ac336c186426a9467156c66ebe4805a722297ec225cc6b859c13003741d05a15ced1ccfaca0a20d98bf0bf933fc84fc1a97d8827 WHIRLPOOL 39eb77673cbe6c70456017c47303d241e7e7f60e01d42e0a00fb20557d6d6fcb3e0677d73fe1e2e735303a490b4599a1dd071544cdc5c320f4fef696407e34c7
+DIST libircclient-1.6.tar.gz 392788 SHA256 6c511923023398bcd7627cf3305054befacf6874203cb0de36bdbe658779e953 SHA512 94a68f27fcb12c918fa347d4ee44747e08e016245048c81f179b9a45081bd336c329e7185a3bc46deb28c9c77e1eff5dc53de7e723b1ed5ee2c1d3cc57ce0548 WHIRLPOOL f0958c14f923b97e38d230e3d9a27aa08ef9162c0749ef0defb7b107083b27f3458dc652944672cae76527258b788045dcc040d33f055df70a5cab8e16da9ca1
+DIST libircclient-1.8.tar.gz 291803 SHA256 2cf8523ac683588f2785b08159a2df3e4d15939ee655c0024aa86334149de8f6 SHA512 f19e4b55cf49091ab2c83ff3d5cace2252daad6bf23cb61b7677b9c6055fe8a8a7d891f6e1e5962481c836f47b7dcd35ef563c8807737ac81e3c4cee253cfc4a WHIRLPOOL 39550aa403445ca333aeeca2108c6a5e67cbf2eb1f53d313aa4e970f39b702f3862698a0ce7956ad0c93034d9b0f59313b695a7666910872eb9505dd2e895e1b
+EBUILD libircclient-1.6-r2.ebuild 1097 SHA256 900cd6064579b29e2bcb18e5631021db70e9217b0f3c669d4513862e90fef3c7 SHA512 afa58d5fc2e91249fb9f97e3b366be1729714c0af38fcc93482cf8d2c7d23def5f47a387ec90596475174a7282e6c3540d7d8a5b3dd1c649ec84289f290b2919 WHIRLPOOL 6f65d5fec9afdc8cce5236e5e751930ab78aeffc61e8e7bfac0b356098df746850c0395d544fcbe6f4b25bd627abfba47f4968e783e2823d66a3a496e11754da
+EBUILD libircclient-1.8.ebuild 1135 SHA256 136fb1420d23a9c4a338241e33c06a800f38a3ce8a51ad54cdc4e3e08fa7cc53 SHA512 c638d79b35913a4c095ce6a8b2b7122bed056fa0dd01242837067fe1273181d898970961647afeed42311a9cccfb1c6cdf00f0af4f33b6bdcbe899fa76517d03 WHIRLPOOL 6c0ca6aafcfe3ae261daaf9e99718eaf936445114a6d9582e9eaba48c31b85d10697192ae0cd6a3f956f7c55bd1c45b5c499b7e6dbeb2561b9c8429fd3af603a
+MISC ChangeLog 2986 SHA256 129a5b80e22cf72d56258bff6ec11121c3211a87966b7fc488c7d9533eb17fd5 SHA512 dcddac4e5c4f2f740a83f2fdd3a5c4cdb93af9525d03a058aba61f0a2cc8ba75ed788a41f0126d5f1112d661d1baf95121bacdce07d12530db48fa1548a1e87b WHIRLPOOL 0dbc11a63e2a6ba372ea665f24149aa909901fb7deb841ce07b660b287f9ebfcca05c6968f2fd34244bce0c7c8e0f58686661d3837d658772d70f6497b923ec5
+MISC ChangeLog-2015 4265 SHA256 d3d12df1e9a1a03d805b5035145bae27b9d38fb4e399797ab8a4327ae5122b77 SHA512 d6e22732fcf46daa00a0b5c91b08bdcf5d28127c44c9ac843cef3b4c190ed8b83ea63b835b1d247b410c703bc6c65509fe7536a80b2c7257bb69495daa18b4e7 WHIRLPOOL e94fa0a493de2a3f32e59dd73c70ee5c74e6236f14ccb3dc7303cc078f06493e97ef4e3eca75fef964e2bdb301324b2b62016a552eb373050eb893b0116da4a2
+MISC metadata.xml 335 SHA256 14fcc84073ed083210dcf8db8cfdb23295eeb7f92e70b41e1c89fb81839313a5 SHA512 af62ea7ba30a57f3271bded0d53a9122693e992d1050667701ba54bb33d6851b6ddabecf5f54bbdf8aebb212bd3e6a5999a8e8c1b2bbdd6666243ccb24a6182b WHIRLPOOL 856ed3aa653303c14ce1eb945ea2469df7ecf0ce7307ba66993c9ee330f61da28674f34277c425e96369e318261064adfce03ffe04228df09e9ec97e40cb764e
diff --git a/net-libs/libircclient/files/libircclient-1.6-build.patch b/net-libs/libircclient/files/libircclient-1.6-build.patch
new file mode 100644
index 000000000000..d3d6c0f3edf9
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.6-build.patch
@@ -0,0 +1,13 @@
+--- libircclient-1.6/configure.in
++++ libircclient-1.6.new/configure.in
+@@ -61,9 +61,7 @@ AC_CHECK_FUNCS([localtime_r socket])
+ AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LIBS="$LIBS -lsocket")
+
+ if test "$use_debug" = "yes"; then
+- CFLAGS="${CFLAGS} -g -DENABLE_DEBUG"
+-else
+- CFLAGS="${CFLAGS} -O3"
++ CFLAGS="${CFLAGS} -DENABLE_DEBUG"
+ fi
+
+ # Choosing the target
diff --git a/net-libs/libircclient/files/libircclient-1.6-include.patch b/net-libs/libircclient/files/libircclient-1.6-include.patch
new file mode 100644
index 000000000000..c5bce1dfd947
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.6-include.patch
@@ -0,0 +1,10 @@
+--- libircclient-1.6.orig/include/libircclient.h
++++ libircclient-1.6/include/libircclient.h
+@@ -130,6 +130,7 @@
+ #define IN_INCLUDE_LIBIRC_H
+ #include "libirc_errors.h"
+ #include "libirc_events.h"
++#include "libirc_rfcnumeric.h"
+ #include "libirc_options.h"
+ #undef IN_INCLUDE_LIBIRC_H
+
diff --git a/net-libs/libircclient/files/libircclient-1.6-shared.patch b/net-libs/libircclient/files/libircclient-1.6-shared.patch
new file mode 100644
index 000000000000..44fe9ded64b6
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.6-shared.patch
@@ -0,0 +1,53 @@
+--- libircclient-1.6/src/Makefile.in
++++ libircclient-1.6/src/Makefile.in
+@@ -1,10 +1,13 @@
+ # $Id$
+ CC = @CC@
+-CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@
++CFLAGS = -fPIC -Wall -DIN_BUILDING_LIBIRC @CFLAGS@
+ AR=@AR@ cr
+ RANLIB=@RANLIB@
++INSTALL = install
++LN = ln -sf
+ INCLUDES=-I../include
+ DESTDIR=
++APIVERSION = 1
+
+ OBJS = libircclient.o
+
+@@ -14,19 +17,24 @@
+ shared: libircclient.so
+ shared_mingw: libircclient.dll
+
+-install: lib
+- -mkdir -p $(DESTDIR)@prefix@/include
+- -mkdir -p $(DESTDIR)@prefix@/lib
+- cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h
+- cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h
+- cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h
+- cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h
+- cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h
+- cp libircclient.so $(DESTDIR)@prefix@/lib/
+- cp libircclient.a $(DESTDIR)@prefix@/lib/
++install: install-headers install-static install-shared
++install-headers:
++ $(INSTALL) -d $(DESTDIR)@prefix@/include
++ $(INSTALL) -m0644 ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h
++ $(INSTALL) -m0644 ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h
++ $(INSTALL) -m0644 ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h
++ $(INSTALL) -m0644 ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h
++ $(INSTALL) -m0644 ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h
++install-shared:
++ $(INSTALL) -d $(DESTDIR)@libdir@
++ $(INSTALL) -m0755 libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION)
++ $(LN) libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so
++install-static:
++ $(INSTALL) -d $(DESTDIR)@libdir@
++ $(INSTALL) -m0644 libircclient.a $(DESTDIR)@libdir@/libircclient.a
+
+ libircclient.so: libircclient.o
+- $(CC) -shared -s -o libircclient.so libircclient.o @LIBS@
++ $(CC) $(CFLAGS) -shared -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o $(LDFLAGS) @LIBS@
+
+ libircclient.dll: libircclient.o
+ $(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@
diff --git a/net-libs/libircclient/files/libircclient-1.6-static.patch b/net-libs/libircclient/files/libircclient-1.6-static.patch
new file mode 100644
index 000000000000..4ecbb3362223
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.6-static.patch
@@ -0,0 +1,12 @@
+--- libircclient-1.6.orig/src/Makefile.in
++++ libircclient-1.6/src/Makefile.in
+@@ -9,6 +9,9 @@
+ DESTDIR=
+ APIVERSION = 1
+
++prefix = @prefix@
++exec_prefix = @exec_prefix@
++
+ OBJS = libircclient.o
+
+ all: @TARGET@
diff --git a/net-libs/libircclient/files/libircclient-1.8-build.patch b/net-libs/libircclient/files/libircclient-1.8-build.patch
new file mode 100644
index 000000000000..86ea64efd55a
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.8-build.patch
@@ -0,0 +1,13 @@
+--- libircclient-1.7.orig/configure.in
++++ libircclient-1.7/configure.in
+@@ -61,9 +61,7 @@
+ AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LIBS="$LIBS -lsocket")
+
+ if test "$use_debug" = "yes"; then
+- CFLAGS="${CFLAGS} -g -DENABLE_DEBUG"
+-else
+- CFLAGS="${CFLAGS} -O3"
++ CFLAGS="${CFLAGS} -DENABLE_DEBUG"
+ fi
+
+ # Choosing the target
diff --git a/net-libs/libircclient/files/libircclient-1.8-include.patch b/net-libs/libircclient/files/libircclient-1.8-include.patch
new file mode 100644
index 000000000000..c5bce1dfd947
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.8-include.patch
@@ -0,0 +1,10 @@
+--- libircclient-1.6.orig/include/libircclient.h
++++ libircclient-1.6/include/libircclient.h
+@@ -130,6 +130,7 @@
+ #define IN_INCLUDE_LIBIRC_H
+ #include "libirc_errors.h"
+ #include "libirc_events.h"
++#include "libirc_rfcnumeric.h"
+ #include "libirc_options.h"
+ #undef IN_INCLUDE_LIBIRC_H
+
diff --git a/net-libs/libircclient/files/libircclient-1.8-shared.patch b/net-libs/libircclient/files/libircclient-1.8-shared.patch
new file mode 100644
index 000000000000..1fbc0e693502
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.8-shared.patch
@@ -0,0 +1,50 @@
+--- libircclient-1.7.orig/src/Makefile.in
++++ libircclient-1.7/src/Makefile.in
+@@ -1,8 +1,10 @@
+ # $Id$
+ CC = @CC@
+-CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@
++CFLAGS = -fPIC -Wall -DIN_BUILDING_LIBIRC @CFLAGS@
+ AR=@AR@ cr
+ RANLIB=@RANLIB@
++INSTALL=install
++LN=ln -sf
+ INCLUDES=-I../include
+ DESTDIR=
+ APIVERSION = 1
+@@ -15,19 +17,24 @@
+ shared: libircclient.so
+ shared_mingw: libircclient.dll
+
+-install:
+- -mkdir -p $(DESTDIR)@prefix@/include
+- -mkdir -p $(DESTDIR)@libdir@
+- cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h
+- cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h
+- cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h
+- cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h
+- cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h
+- cp libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION)
+- ln -fs libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so
++install: install-headers install-static install-shared
++install-headers:
++ $(INSTALL) -d $(DESTDIR)@prefix@/include
++ $(INSTALL) -m0644 ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h
++ $(INSTALL) -m0644 ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h
++ $(INSTALL) -m0644 ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h
++ $(INSTALL) -m0644 ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h
++ $(INSTALL) -m0644 ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h
++install-shared:
++ $(INSTALL) -d $(DESTDIR)@libdir@
++ $(INSTALL) -m0755 libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION)
++ $(LN) libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so
++install-static:
++ $(INSTALL) -d $(DESTDIR)@libdir@
++ $(INSTALL) -m0644 libircclient.a $(DESTDIR)@libdir@/libircclient.a
+
+ libircclient.so: libircclient.o
+- $(CC) -shared -s -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o @LIBS@
++ $(CC) $(CFLAGS) -shared -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o $(LDFLAGS) @LIBS@
+
+ libircclient.dll: libircclient.o
+ $(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@
diff --git a/net-libs/libircclient/files/libircclient-1.8-static.patch b/net-libs/libircclient/files/libircclient-1.8-static.patch
new file mode 100644
index 000000000000..b820a19c73d1
--- /dev/null
+++ b/net-libs/libircclient/files/libircclient-1.8-static.patch
@@ -0,0 +1,12 @@
+--- libircclient-1.7.orig/src/Makefile.in
++++ libircclient-1.7/src/Makefile.in
+@@ -9,6 +9,9 @@
+ DESTDIR=
+ APIVERSION = 1
+
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++
+ OBJS = libircclient.o
+
+ all: @TARGET@
diff --git a/net-libs/libircclient/libircclient-1.6-r2.ebuild b/net-libs/libircclient/libircclient-1.6-r2.ebuild
new file mode 100644
index 000000000000..1f6a2f5bbe59
--- /dev/null
+++ b/net-libs/libircclient/libircclient-1.6-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Small but powerful library implementing the client-server IRC protocol"
+HOMEPAGE="http://www.ulduzsoft.com/libircclient/"
+SRC_URI="mirror://sourceforge/libircclient/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="doc ipv6 ssl static-libs threads"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-shared.patch \
+ "${FILESDIR}"/${P}-include.patch \
+ "${FILESDIR}"/${P}-static.patch
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable threads) \
+ $(use_enable ipv6) \
+ $(use_enable ssl openssl) \
+ $(use_enable ssl threads)
+}
+
+src_compile() {
+ emake -C src $(usex static-libs "shared static" "shared")
+}
+
+src_install() {
+ emake -C src DESTDIR="${D}" $(usex static-libs "install" "install-shared")
+ insinto /usr/include/libircclient
+ doins include/*.h
+
+ dodoc Changelog THANKS
+ if use doc ; then
+ doman doc/man/man3/*
+ dohtml doc/html/*
+ fi
+}
diff --git a/net-libs/libircclient/libircclient-1.8.ebuild b/net-libs/libircclient/libircclient-1.8.ebuild
new file mode 100644
index 000000000000..ae8c3dd134df
--- /dev/null
+++ b/net-libs/libircclient/libircclient-1.8.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Small but powerful library implementing the client-server IRC protocol"
+HOMEPAGE="http://www.ulduzsoft.com/libircclient/"
+SRC_URI="mirror://sourceforge/libircclient/${P}.tar.gz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="doc ipv6 ssl static-libs threads"
+
+DEPEND="ssl? ( dev-libs/openssl:0 )"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-shared.patch \
+ "${FILESDIR}"/${P}-static.patch \
+ "${FILESDIR}"/${P}-include.patch
+ mv configure.in configure.ac || die
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable threads) \
+ $(use_enable ipv6) \
+ $(use_enable ssl openssl) \
+ $(use_enable ssl threads)
+}
+
+src_compile() {
+ emake -C src $(usex static-libs "shared static" "shared")
+}
+
+src_install() {
+ emake -C src DESTDIR="${D}" install-shared $(usex static-libs "install-static" "")
+ insinto /usr/include/libircclient
+ doins include/*.h
+
+ dodoc Changelog THANKS
+ doman man/libircclient.1
+}
diff --git a/net-libs/libircclient/metadata.xml b/net-libs/libircclient/metadata.xml
new file mode 100644
index 000000000000..a9199d52a252
--- /dev/null
+++ b/net-libs/libircclient/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">libircclient</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libiscsi/Manifest b/net-libs/libiscsi/Manifest
new file mode 100644
index 000000000000..868b5cd5efe9
--- /dev/null
+++ b/net-libs/libiscsi/Manifest
@@ -0,0 +1,11 @@
+AUX libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch 1281 SHA256 884929674ad0251cc053d6a89ee704b767d98e5563199d1faa00f0c004d574dd SHA512 f77a5eafefedebde4923150a41cff5c551eaa3289b8f0324e931857ab75e1351dc4b7863f3f952a21feebbe8790859a6d934902afc789a5afe01734c0df06eb2 WHIRLPOOL a2611ff139f081cce522b3d7016a0c243f25874964e6c56b8a003dd4b88462009a81bf8c1026083c2020c288af9fdd4bfff61d96af498d097302e1c0289daed1
+DIST libiscsi-1.15.0.tar.gz 223380 SHA256 489e625e58c1e6da2fa3536f9c4b12290f2d3fb4ce14edc0583b8ba500605c34 SHA512 22c566d4cf10454b9c6208d64f5dab8e32806a5036cd328f8b2d8bf14f9e9c2d519db8df4fc8884f468bad27d645ccf719502d49f6937eace88f590946366e06 WHIRLPOOL f5618c985467df1b76689ae0601d8ec8a251a61ac1d7d7a5e44165b8710827530fbd2595ed87d0b83226fecc5ef8cb5e89dfa90cd6760db800856d5e2367ce69
+DIST libiscsi-1.18.0.tar.gz 271603 SHA256 464d104e12533dc11f0dd7662cbc2f01c132f94aa4f5bd519e3413ef485830e8 SHA512 9869fd86f8ba237d71256b16d0f94ef69fb67fac315bb7a596c4d8d6ed3abba710edf9b5f5a27f5777f7b5d2feb33c09764c27a4e6c56e38dd2566836cffe36e WHIRLPOOL bf0c9b92df030b9b9a9b4045e57b38c1042e623dc0482ead06755c2e9ad980d30e6703ae01ac32d16d0a037b3a41278c5fdce4a315f87c71a3fb7fcba07114d5
+DIST libiscsi-1.9.0.tar.gz 182123 SHA256 64d7d6fdb53f0cc4163a0f1dc6cc94618f34a52c4836cf25a42f3769dfd46bbf SHA512 cf88c0f32a21193499720d24f215fb02e7a46ef07999ef59cdad9cad14f92399b3d2e46e8e6f54574dc77225a5b437608216da242971e0d6f35c71830371415a WHIRLPOOL 63af85f03e032ff034b7ce3331f8cb74ffa79c4621efb9873e0b3c76f3f9620439c11216f33d1e97c784f98ecff516048e53f66d88d51dc81578e7e535135588
+EBUILD libiscsi-1.15.0.ebuild 665 SHA256 6d6e95c7d7f8b6d73b838e01825d0edfd2b0e9b7878d85c4746c12959b8cbeba SHA512 115aa25c4d047dd22adc008ba092c256b1c030b21a55d6f2cbded255771b1596e5a6756b86b28864fc74ab45b661e23ea6095b3ec33ed09fb8b6d755acdd0e97 WHIRLPOOL fd91397b039bcc9dca254215dd6a34bb9c172c2ad2d307a2a55c9013fd2d97ffb84f32bf1b401d9102128046de8532f1e326230e3848bfce3f40df7b28bf49fb
+EBUILD libiscsi-1.18.0.ebuild 699 SHA256 f9d564989472c04f6af9d01c04ff6882c7be8c94922d7e3e68eecbc848c0cc19 SHA512 3aa3494efc4bd9f4c623758d8957aabbe5634aa9e67104bf0ed1d79b26cc57038e6f9d274834182b72684208f300dcd163c11c0047c03e1e055dc8be2040bd51 WHIRLPOOL 7f3d08fde6931cb7086f5cf7f9e667511a75831aea5cdc8e6b7daf883df4bae2b4f60272f95513a3e3fb0d60e12a03726e45715c5142e863dcd0d450de9cf759
+EBUILD libiscsi-1.9.0-r1.ebuild 794 SHA256 88ed5bfb8c826c5a51355fb367bd5f07cc575e2a8b0adbaa18f49982f245849c SHA512 ac93fed787a8fd79ac0843c1cb3fa3a3291bdd0f0b83f0adb601426f5199568c8ef4d30515eb83279a1e202721aea1745fb920af3613a96a76f5e87947859eff WHIRLPOOL c5fc6f516ccf73282f1c8e714ad41f3ddf24744c8b478cbffc57f78b16898fc346277a8f234ea975cfde9124ecef9da69b0f4362c867f96585904feda637862f
+EBUILD libiscsi-9999.ebuild 639 SHA256 7cc8769a225b8302836972acd835fe44bb7e42108b4d986dbe698a716012c5d4 SHA512 45c93c5fb0cfc20ba74c11777711308075fd9f658f2ba2e99421ea2002a159fd90bd0f9297a6bd0d43fdd0e768ec97fa0d52e7e85053b0b7524d6904592dad48 WHIRLPOOL a8acd3eab7fd984e4e437edc3ccde892562c98bdf01e9fd30e9b9d94a9231399dcf62d8a0fcb83f87ecd79b5246749f36e8298daa44bd10274382e3721deae27
+MISC ChangeLog 3630 SHA256 1d4ea3a43a7c83c402977c5e30ee86637c145c3384021353df5052546a27ca7a SHA512 14a63653d89792f624d74f0edcdcc633e3a9b6df1c8ba92396cbf2b45463b1e4b428971cd1da528901c4bee3787df2b92d41c4408b9163a99ac41fa6a9d71f7d WHIRLPOOL 2bdcb122d0d485d243bb3b93cdb5d08c45a17de05b759c0e640dd61a2d9b8d9d5ca76ba65db74d03d4c01335d5754127be2706101824f4a9950fa9ff18adfecb
+MISC ChangeLog-2015 1625 SHA256 75e14a8efdc9f963d9f4454683742a32c6af5f530b9f95c305d79c5e8d9b45f0 SHA512 19817346eeea0f547546ed011efe503de3d34367a8fdacf584cafa8f62c975af82d44cb238e61403a7e46a9fe867e4abb20ebfa06e2edb04def1ca346203ad63 WHIRLPOOL 4be48cc362ec4ec06f26d2bd30d0c628dff7a8a054ff811e9e2d14224f83f9852b2ab837a6ec4aab420dbb2345a67fdfbab49a1ddffc34a43771215a71fe4bd1
+MISC metadata.xml 324 SHA256 acc5de6bd44ad16002cdb2da31b22a32d847966b5215397fd8f96415f4f314e7 SHA512 d21be5331e52f187aef986c0caf9fc02ad3d189240c2bde38f296f6e5991ebbd2467b52bc4f12e5053ce08e799007d5af2dad6385a801ed5cdf13e70ed705b55 WHIRLPOOL 910444d2a86c82964c6661038ffaa73efb6c70faeddd08c5951f0ba14d845f39837a4bd169347121cfcc185aada5126125d366f9d4d75bd6472dd125164f15db
diff --git a/net-libs/libiscsi/files/libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch b/net-libs/libiscsi/files/libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch
new file mode 100644
index 000000000000..31868ceab099
--- /dev/null
+++ b/net-libs/libiscsi/files/libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch
@@ -0,0 +1,35 @@
+From 2d43a056a9e7b57bc03d580a850a8dca534e61d5 Mon Sep 17 00:00:00 2001
+From: Doug Goldstein <doug.goldstein@pikewerks.com>
+Date: Wed, 5 Jun 2013 14:28:48 -0500
+Subject: [PATCH] Allow users to disable -Werror at configure time
+
+Some users and distro packagers might not want to build with -Werror,
+this allows them to disable using -Werror but enables it in the default
+case so as to maintain the current behavior.
+---
+ configure.ac | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9d06e3a..6dce230 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -11,8 +11,14 @@ AC_CANONICAL_HOST
+ AM_CONDITIONAL(LD_ISCSI,
+ [expr "$host_os" : linux > /dev/null 2>&1])
+
++AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror],
++ [Disables building with -Werror by default])])
++
+ if test "$ac_cv_prog_gcc" = yes; then
+- WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing"
++ WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-strict-aliasing"
++ if test "x$enable_werror" != "xno"; then
++ WARN_CFLAGS="$WARN_CFLAGS -Werror"
++ fi
+ fi
+ AC_SUBST(WARN_CFLAGS)
+
+--
+1.8.2.1
+
diff --git a/net-libs/libiscsi/libiscsi-1.15.0.ebuild b/net-libs/libiscsi/libiscsi-1.15.0.ebuild
new file mode 100644
index 000000000000..119afd5414e2
--- /dev/null
+++ b/net-libs/libiscsi/libiscsi-1.15.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+DESCRIPTION="iscsi client library and utilities"
+HOMEPAGE="https://github.com/sahlberg/libiscsi"
+SRC_URI="https://github.com/sahlberg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/libgcrypt:0="
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-manpages \
+ --disable-werror \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/libiscsi/libiscsi-1.18.0.ebuild b/net-libs/libiscsi/libiscsi-1.18.0.ebuild
new file mode 100644
index 000000000000..3f5ace830f0d
--- /dev/null
+++ b/net-libs/libiscsi/libiscsi-1.18.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="iscsi client library and utilities"
+HOMEPAGE="https://github.com/sahlberg/libiscsi"
+SRC_URI="https://github.com/sahlberg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 x86"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/libgcrypt:0="
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-manpages \
+ --disable-werror \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-libs/libiscsi/libiscsi-1.9.0-r1.ebuild b/net-libs/libiscsi/libiscsi-1.9.0-r1.ebuild
new file mode 100644
index 000000000000..37483db963b6
--- /dev/null
+++ b/net-libs/libiscsi/libiscsi-1.9.0-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF="1"
+inherit eutils autotools-utils
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-2
+ SRC_URI=""
+ EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git"
+ KEYWORDS="~alpha ~hppa ~ppc64"
+else
+ SRC_URI="https://github.com/sahlberg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha amd64 ~hppa ~ppc64 x86"
+fi
+
+DESCRIPTION="iscsi client library and utilities"
+HOMEPAGE="https://github.com/sahlberg/libiscsi"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+QA_FLAGS_IGNORED="usr/bin/ld_iscsi.so"
+
+myeconfargs=( "--disable-werror" )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-00*.patch
+
+ epatch_user
+
+ autotools-utils_src_prepare
+}
diff --git a/net-libs/libiscsi/libiscsi-9999.ebuild b/net-libs/libiscsi/libiscsi-9999.ebuild
new file mode 100644
index 000000000000..6defe3546295
--- /dev/null
+++ b/net-libs/libiscsi/libiscsi-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools git-r3
+
+DESCRIPTION="iscsi client library and utilities"
+HOMEPAGE="https://github.com/sahlberg/libiscsi"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS=""
+IUSE="static-libs"
+
+RDEPEND="dev-libs/libgcrypt:0="
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-manpages \
+ --disable-werror \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-libs/libiscsi/metadata.xml b/net-libs/libiscsi/metadata.xml
new file mode 100644
index 000000000000..923fcb8eb476
--- /dev/null
+++ b/net-libs/libiscsi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ryao@gentoo.org</email>
+ <name>Richard Yao</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">sahlberg/libiscsi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libisds/Manifest b/net-libs/libisds/Manifest
new file mode 100644
index 000000000000..749b8056f83d
--- /dev/null
+++ b/net-libs/libisds/Manifest
@@ -0,0 +1,8 @@
+DIST libisds-0.10.6.tar.xz 724120 SHA256 49ca70acef5dd5d092a03643f4d2f96ff8250b135eb55558a5f62fa1fd3f8a8a SHA512 602c4e7f047dedff131cda941d02ea41fca7b8ea80eb668ab8f7ab2626a013ddc1a86f1e2c7b5759adf266c7c22c515284e6d4fdd9fd594ad310bed1be6016f4 WHIRLPOOL 2968e6aee47c57c87c9d7a3a94aa0b4e1a0aae41cb2949ce39e4a65eb47c0099ac7cdc96832deaa0b99f71aa4e4e32f94aa7a3b6a6aa70c2c1dff9f1ab53c4d1
+DIST libisds-0.10.7.tar.xz 724840 SHA256 8a738d3bf0f4dd150fe633607cc9a4d29cd62b61e1d2acf38cedf265b5f08589 SHA512 ba2ef11c2983cb3bc8f779e7af3fb8319d38a786911e68c6b53c25aff339b4630bdf78886825ea3da671e87f689cab376cd9e41398f3f74608af932abe7a0023 WHIRLPOOL 2025157d09371d4b804776f9fe373eec12275ca178673c16b0863d66b17a85b4ba5b9993d33ade9d86d18e1b22968bb81c8136429cf0053260c3798aba2f2cf8
+EBUILD libisds-0.10.6.ebuild 1160 SHA256 f53632faafbf21749c11c4c3522fb7e26e41eb984923c8d229fbc6e1a6f0f8e2 SHA512 dcf884de16b11260aa3db9436a3298c2dd4e36a3f7b25646e336654da908faebf1cca5b2fc61784c87f2defe56f13473ea578269fae972904652c15b85af15ef WHIRLPOOL 76f9eeb434e23fc0d89d8adcd41915e87a6be7e87afc305163e8f7da1d9c09ffcaa708878cab4b7212cf61558b7800a7d6b275400c6391f764a3aa132448ab1a
+EBUILD libisds-0.10.7.ebuild 1160 SHA256 f53632faafbf21749c11c4c3522fb7e26e41eb984923c8d229fbc6e1a6f0f8e2 SHA512 dcf884de16b11260aa3db9436a3298c2dd4e36a3f7b25646e336654da908faebf1cca5b2fc61784c87f2defe56f13473ea578269fae972904652c15b85af15ef WHIRLPOOL 76f9eeb434e23fc0d89d8adcd41915e87a6be7e87afc305163e8f7da1d9c09ffcaa708878cab4b7212cf61558b7800a7d6b275400c6391f764a3aa132448ab1a
+EBUILD libisds-9999.ebuild 1208 SHA256 2a4632034c8150861a3259f99941d3cfeb767e66a9d8db4064790c8abced8b8f SHA512 440120e6d3d583780020b4c2e22a8f0598c2c28ec81da44c4df4c4018142e0051fbcf9aa7fd0e69ecddadbd3b09f8f4b38441284c7b8ca784f7efc162ab5847a WHIRLPOOL 40e7e0e610b24eb505a16a29fe6c341d824358d315c84bd4e5191043b881335ee938feadf3f732943eb851be17d74de3113c3fb5b0d8e1b0a176708aec788060
+MISC ChangeLog 2272 SHA256 094b5b013c7af4c6aa75fe1477e4c6e2e6353900436a0c07f839d70201bb9ac1 SHA512 e34c7faefc2e72363a23b4055991b974678fc603f3dde99d2a9fa59c1c27470a170caae6b0fd216fbd2ed97586477fb92f67b31463fb02115deef0b441aad30d WHIRLPOOL ef74da2ae25ef36503f07eeb520d310467dc69ed74c16b6048acaa3452e1c71f3c7430efee1cbe68a105b8887d9460f29d37f3e8d1fc1d347f3fd891e1c279b5
+MISC ChangeLog-2015 3291 SHA256 d83d31cd13d317c2f3281e28735b2198d2dce6cd753c46c8410f9ffa9e048552 SHA512 7863ebd959eb6b477e234beadb925546c8aa49cbdee960eecd32a3cb35781de5dafd2c8dd98578265d38418be04b4e813407dc8ead7522b45890e356e3aa569c WHIRLPOOL 7e0d7740d11a6997dd0fbdeb5e862ca1944f8a4e8ca489041a262154976e8193ca0a3a8135e055bbba56eba85ba7a412a6357ebccb478e82aa1ee1014a83f955
+MISC metadata.xml 755 SHA256 54cc2f427cc46499e4fd8a9e4c1baef69d63d01de7f04cdc4d6bef917c3231dc SHA512 0fbbc4c9b853e178b1e8b56c66e38efbf8db29d806892fec9a80ae8b89827c32a2da1c127265cd9e40cd0b03d0a59e2cc23a0b24cf1efc1adab7f88d701f460c WHIRLPOOL 27de52eb5f1e406fdb39ea49e188e0197bc4ad3222f1a972445e3e38d6848381baab30997dfac1002f3e36c15ef066c53ffa90789960899b5798f63491510c5c
diff --git a/net-libs/libisds/libisds-0.10.6.ebuild b/net-libs/libisds/libisds-0.10.6.ebuild
new file mode 100644
index 000000000000..f0c245e83cd7
--- /dev/null
+++ b/net-libs/libisds/libisds-0.10.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Client library for accessing ISDS Soap services"
+HOMEPAGE="http://xpisar.wz.cz/libisds/"
+SRC_URI="http://xpisar.wz.cz/${PN}/dist/${P}.tar.xz"
+KEYWORDS="~amd64 ~mips ~x86"
+
+LICENSE="LGPL-3"
+SLOT="0"
+IUSE="+curl debug nls openssl static-libs test"
+
+COMMON_DEPEND="
+ dev-libs/expat
+ dev-libs/libxml2
+ curl? ( net-misc/curl[ssl] )
+ openssl? ( dev-libs/openssl:= )
+ !openssl? (
+ app-crypt/gpgme
+ dev-libs/libgcrypt:=
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( >=net-libs/gnutls-2.12.0 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !openssl? ( >=app-crypt/gnupg-2 )
+"
+
+DOCS=( NEWS README AUTHORS ChangeLog )
+
+src_configure() {
+ local myeconfargs=(
+ --disable-fatalwarnings
+ $(use_with curl libcurl)
+ $(use_enable curl curlreauthorizationbug)
+ $(use_enable debug)
+ $(use_enable nls)
+ $(use_enable openssl openssl-backend)
+ $(use_enable static-libs static)
+ $(use_enable test)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}
diff --git a/net-libs/libisds/libisds-0.10.7.ebuild b/net-libs/libisds/libisds-0.10.7.ebuild
new file mode 100644
index 000000000000..f0c245e83cd7
--- /dev/null
+++ b/net-libs/libisds/libisds-0.10.7.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Client library for accessing ISDS Soap services"
+HOMEPAGE="http://xpisar.wz.cz/libisds/"
+SRC_URI="http://xpisar.wz.cz/${PN}/dist/${P}.tar.xz"
+KEYWORDS="~amd64 ~mips ~x86"
+
+LICENSE="LGPL-3"
+SLOT="0"
+IUSE="+curl debug nls openssl static-libs test"
+
+COMMON_DEPEND="
+ dev-libs/expat
+ dev-libs/libxml2
+ curl? ( net-misc/curl[ssl] )
+ openssl? ( dev-libs/openssl:= )
+ !openssl? (
+ app-crypt/gpgme
+ dev-libs/libgcrypt:=
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( >=net-libs/gnutls-2.12.0 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !openssl? ( >=app-crypt/gnupg-2 )
+"
+
+DOCS=( NEWS README AUTHORS ChangeLog )
+
+src_configure() {
+ local myeconfargs=(
+ --disable-fatalwarnings
+ $(use_with curl libcurl)
+ $(use_enable curl curlreauthorizationbug)
+ $(use_enable debug)
+ $(use_enable nls)
+ $(use_enable openssl openssl-backend)
+ $(use_enable static-libs static)
+ $(use_enable test)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}
diff --git a/net-libs/libisds/libisds-9999.ebuild b/net-libs/libisds/libisds-9999.ebuild
new file mode 100644
index 000000000000..316c2d9f97c7
--- /dev/null
+++ b/net-libs/libisds/libisds-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+[[ ${PV} = 9999* ]] && inherit git-r3 autotools
+
+DESCRIPTION="Client library for accessing ISDS Soap services"
+HOMEPAGE="http://xpisar.wz.cz/libisds/"
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="git://repo.or.cz/${PN}.git"
+else
+ SRC_URI="http://xpisar.wz.cz/${PN}/dist/${P}.tar.xz"
+ KEYWORDS="~amd64 ~mips ~x86"
+fi
+
+LICENSE="LGPL-3"
+SLOT="0"
+IUSE="+curl debug nls static-libs test"
+
+COMMON_DEPEND="
+ app-crypt/gpgme
+ dev-libs/expat
+ dev-libs/libgcrypt:0=
+ dev-libs/libxml2
+ curl? ( net-misc/curl[ssl] )
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+RDEPEND="${COMMON_DEPEND}
+ >=app-crypt/gnupg-2
+"
+
+DOCS=( NEWS README AUTHORS ChangeLog )
+
+src_prepare() {
+ default
+ [[ ${PV} = 9999* ]] && eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-fatalwarnings
+ $(use_with curl libcurl)
+ $(use_enable curl curlreauthorizationbug)
+ $(use_enable debug)
+ $(use_enable nls)
+ $(use_enable static-libs static)
+ $(use_enable test)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}
diff --git a/net-libs/libisds/metadata.xml b/net-libs/libisds/metadata.xml
new file mode 100644
index 000000000000..976189dae44d
--- /dev/null
+++ b/net-libs/libisds/metadata.xml
@@ -0,0 +1,22 @@
+<?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 type="person">
+ <email>petr.pisar@atlas.cz</email>
+ <name>Petr Pisar</name>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> as crypto backend
+ instead of <pkg>app-crypt/gpgme</pkg> and
+ <pkg>dev-libs/libgcrypt</pkg></flag>
+</use>
+
+</pkgmetadata>
diff --git a/net-libs/libktorrent/Manifest b/net-libs/libktorrent/Manifest
new file mode 100644
index 000000000000..5808a9f74e70
--- /dev/null
+++ b/net-libs/libktorrent/Manifest
@@ -0,0 +1,5 @@
+DIST libktorrent-2.1.tar.xz 355476 SHA256 3eefdcceec73410c558e82d7be22eb2ed18679e9ab64f34cc100b54e186fe26f SHA512 28d7a4b8ee45ddcbadb3ca9d6e568120803081b0ecd3e9436ed721860717b98538c522653ea47975123f0819548d0cabe1973baffed887fcbbca11d84ea5ebe4 WHIRLPOOL ad1bae538f64495f611b71ac539137aa156c31ed51c7c9f0ac5031378799b811146913fd5621fc586aa91187a5299f4c80d5c500bbacb08b4926d904df1fadcc
+EBUILD libktorrent-2.1.ebuild 1319 SHA256 cd0a6ef0f8363adfc45a7f00be6eab7bf4c241ef75215ff58172266ccc320f3f SHA512 6855115e765b8b57586ed7e0f2aee4defd13b3faf33561c86e0f2ad56576647a6f67f27bf35d6d74a7a437d74590c1e50dfe4bd9f8b47c4e87fbad8b8a4ca739 WHIRLPOOL 42468ce935fb7384ab724a62d122cafbdcb7d42a3ab461ad06381d738be0bc62bb93e57504d043dc1b209b60ea8eb89faa99d2e97d1b462b1c02e65b3b4668b4
+MISC ChangeLog 3692 SHA256 bba410e143a886a62ad4e364dd7f0dfc5b5cd305e9a6a60a5e965571e33325f8 SHA512 04261a680fa8b5a4a8c12d70f5fe7e66d6a62de009eb5d40dde7686fe19c6a320d0442a45c44322134382ebb5b7f95216c389603713dfef05ef1a102e05f7530 WHIRLPOOL 5a1afa504217161c519b1fbf3fd549119254906a2a69eb42c3b9219db02bcc43ae1485fb7113054385946676d421d1991cc020eb37fbd86469900243ab628615
+MISC ChangeLog-2015 7377 SHA256 67ca19d980abe3832d816e3d4a40b8f5dd398709779bf6b71d172b21d1131815 SHA512 66b194998e0a5906d28e1b0cc124adaf4315a12f8e14319d8f18382064fcc548288f7933d3363422565f173e9a739cd763ef6540133521ac218534519a61b299 WHIRLPOOL 93016fb77e90b7339674575f073c051d1aa050aa8b29d6ed224ba76c4d2cf3a0c0a3a975d4fb72918fabe74b7174c3f8bbf8a2a6adbb97205ff75de0c2a3da33
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/libktorrent/libktorrent-2.1.ebuild b/net-libs/libktorrent/libktorrent-2.1.ebuild
new file mode 100644
index 000000000000..32db434dfa3c
--- /dev/null
+++ b/net-libs/libktorrent/libktorrent-2.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="BitTorrent library based on KDE Frameworks"
+HOMEPAGE="https://www.kde.org/applications/internet/ktorrent/"
+SRC_URI="mirror://kde/stable/ktorrent/5.1/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+KEYWORDS="amd64 ~arm x86"
+IUSE=""
+
+COMMON_DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcrash)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep solid)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtxml)
+ app-crypt/qca:2[qt5]
+ >=dev-libs/gmp-6.0.0a:0=
+ dev-libs/libgcrypt:0=
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ sys-devel/gettext
+"
+RDEPEND="${COMMON_DEPEND}
+ !net-libs/libktorrent:4
+ !dev-libs/botan[gmp(-)]
+"
+
+src_prepare() {
+ kde5_src_prepare
+
+ # Gentoo workaround because gmp.h in MULTILIB_WRAPPED_HEADERS is breaking this
+ sed -i -e "/^find_package/ s/\"\${LibGMP_MIN_VERSION}\" //" \
+ CMakeLists.txt || die
+ sed -i -e "/^find_dependency/ s/ \"@LibGMP_MIN_VERSION@\"//" \
+ KF5TorrentConfig.cmake.in || die
+}
+
+src_test() {
+ # failing network tests
+ local myctestargs=(
+ -E "(fin|packetloss|send|transmit)"
+ )
+
+ kde5_src_test
+}
diff --git a/net-libs/libktorrent/metadata.xml b/net-libs/libktorrent/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/libktorrent/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libkvkontakte/Manifest b/net-libs/libkvkontakte/Manifest
new file mode 100644
index 000000000000..37f8efb99c40
--- /dev/null
+++ b/net-libs/libkvkontakte/Manifest
@@ -0,0 +1,7 @@
+DIST libkvkontakte-5.0.0.tar.xz 59116 SHA256 00f11a13e1c3c10c7abd53b300237a9b7ab5c9b3b80e0381e01993e82c768193 SHA512 bc7fa3d2d8a815c3a8b2265bf45500c10ac31383883a6a19802c5d01be5c16c1e72a8fe0c2c7cc086c9a7403ce001df0629e546caa872a2ae599e3a2650ef1af WHIRLPOOL 1fa6a02a5dfb03c623fff02b8c52660e2a663b33b6142a42e07ee718b58be412acc36d9617600720b461481702350acf28f9a4164fb487860548cdc5da650e3b
+DIST libkvkontakte-5.0.0_pre20170128.tar.xz 41512 SHA256 0a6009846a6455d143d2f00a59cea2047e3506100ef7fe566dfe60bf7df2a0b6 SHA512 12da0a4e471945af2b6f4373aa6996288bc41303ccaff19436d9c8d508cafbc43333bde0a104ba0cde5b3f383284d975f8217599b38f1e5a9e9da0dc57bcaa3c WHIRLPOOL 1b57726f110fb8c85ad792098a326a2e98ac1b9948159fc617e2b41323aa31c81d6f32be5a97dd155e8a92789c116ff4538228d8039d819a2daced1b87973666
+EBUILD libkvkontakte-5.0.0.ebuild 728 SHA256 8a1dc1bddbde9d8758a7dbeee31299c62b5cf96ce5d05650ccc85701b18b322c SHA512 cae776cc265ac6b08e2625ca4149cbfffcd68fa0dd183e6d02ea6aa04596dc02caed45a48be03d062e417880825f8ad11cb07c6382c5284b9b4434892aa610d0 WHIRLPOOL 68d20a3c904bbe56f21ae1d8fb91ee0af2148d1fbfd68ee0c8d841cb6a89829147523e905e9f36cdb0c29a96344ae433af33d2444982c63e8df4aafccd78cb27
+EBUILD libkvkontakte-5.0.0_pre20170128.ebuild 736 SHA256 7abf9e0873213aaf4ff7de62a2c54a5f74de6300727a6f9d6df5feca91c7b242 SHA512 d2d362ba2ffe48d77d0a4898b90728c931cf9887473a510dd3f3fbe8286b52e0b2b69ab8b32624c1db84979e3597f5c4849a6695880cd284302dfa1800e51aa8 WHIRLPOOL e2044e9374529eb6ece8b3af053be3137374987a13e0d85976432221a6d946d016d67454971c829d842d27e102f98128aef69e16f8e6300031bdccbb394a78fb
+MISC ChangeLog 3356 SHA256 885a84a7dbfa77100e87b3621c2943c8b725b1821c52ecb1754d6f09ceca4916 SHA512 c7ced2ac736e9da408ad53a96d170262db268af7ddbbb8801b434b7017af9812c5814ea336242290e74fdd2ca2741602342739328cc44f2d97b73e9384ebadb2 WHIRLPOOL f37d55fe01e2555a523118a6c3a718fb0674f7d20d1b85d4de1631c616765768464c9835059eb42b6a299ff4e17c5af6e2c7b19b1d087bf58dc514e2dab91b1f
+MISC ChangeLog-2015 7958 SHA256 e534be6bd7f4b60534f5d054b46d625919856aee2dc2efbe5609a0fa0457d044 SHA512 52b2d59cb7393a70d4e8c30b21182ede734a521fc68d36f1f70eca56df857df3d2d3c2ad8f19c8ed5315ae023865672f78815d719dac70d3f0456c13a8437d15 WHIRLPOOL 4da6957010eb147df344a70427b8f64df71f04bf06f0c825fde98588448edff9c39b62c1e9018abe94057cf54fb08062e7c231b0ccdba8508a7bddb5d081f003
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/libkvkontakte/libkvkontakte-5.0.0.ebuild b/net-libs/libkvkontakte/libkvkontakte-5.0.0.ebuild
new file mode 100644
index 000000000000..be1e7027d23e
--- /dev/null
+++ b/net-libs/libkvkontakte/libkvkontakte-5.0.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="true"
+inherit kde5
+
+DESCRIPTION="Library for accessing the features of social networking site vkontakte.ru"
+HOMEPAGE="https://www.digikam.org/"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-2+ || ( LGPL-2.1 LGPL-3 )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdewebkit)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+"
+RDEPEND="${DEPEND}"
+
+# accessing network
+RESTRICT+=" test"
diff --git a/net-libs/libkvkontakte/libkvkontakte-5.0.0_pre20170128.ebuild b/net-libs/libkvkontakte/libkvkontakte-5.0.0_pre20170128.ebuild
new file mode 100644
index 000000000000..187754fd2091
--- /dev/null
+++ b/net-libs/libkvkontakte/libkvkontakte-5.0.0_pre20170128.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="true"
+inherit kde5
+
+DESCRIPTION="Library for accessing the features of social networking site vkontakte.ru"
+HOMEPAGE="https://www.digikam.org/"
+SRC_URI="https://dev.gentoo.org/~asturm/${P}.tar.xz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdelibs4support)
+ $(add_frameworks_dep kdewebkit)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+"
+RDEPEND="${DEPEND}"
+
+# accessing network
+RESTRICT="test"
diff --git a/net-libs/libkvkontakte/metadata.xml b/net-libs/libkvkontakte/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/libkvkontakte/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/liblockfile/Manifest b/net-libs/liblockfile/Manifest
new file mode 100644
index 000000000000..cdcfcaaa2c85
--- /dev/null
+++ b/net-libs/liblockfile/Manifest
@@ -0,0 +1,13 @@
+AUX Makefile.Darwin.in 2074 SHA256 3f8f82d8f6c9664ce11eaeaed5dfb22c4aaf8481f493f5c6d06eaeadf208b54b SHA512 cf2a9cee280ada8a05d239da0284eb16323bb04985790da0c737d880488a28fc03fe59aa276092681d25a444bc532e57c20ed8f549804f125e9a20cdb3b59f22 WHIRLPOOL 71e2641ee10994fe20cad0a46bdf77cbe9e0fe2c86bd626e91f9203dcebe33f1c0179ae6f590fbc9d30f358c364498195707f8c8623275b7d340ee5922600fd3
+AUX liblockfile-1.06-respectflags.patch 665 SHA256 c1ef8e3baa31291d5ac32e9ab76c4fcdb669852b1b3a6502fef74ced9566b386 SHA512 560aaf84c59c90b6c19f8cd8290e54bcbe7e1e5dad226b8c332be7a67789f68d29d19bd6110ffa907c587d80dc370f68fb4db88442015723a526cb77079441d6 WHIRLPOOL af77a3f10e2835c3997b1687407d08f3df9bfdbe15ac5c8846be41674c8adcfa2f53eee5baef077288744e19665cdfc58926caf21cd3ba3cd7ae226e3b4f92b9
+AUX liblockfile-1.13-makefile.patch 2368 SHA256 d47813355d90aa791b87655d34bbfaed65f650f00d85f1f92fcf35a0e79d9ad4 SHA512 65c73a6717d466f60bee814920be455496ea958db86d0004c30a4bed1d5554a0b7e9917d8380dda097c38b2b91b2cdac08095cde2c48dbba85bd4a1920e980a0 WHIRLPOOL 3722008c3586acb998bb75833b5a522581bcc20847d3e2849fd6ff45d13deb84710bfca97de2cfa8ea237cc2c6c9120f189a1c3a3b6a66a4f4e0fb3b84eb2a55
+AUX liblockfile-orphan-file.patch 613 SHA256 5e058b5c370a6256947ae664c9f44ba0eee59d0c80dd062a032fc9ec5a216859 SHA512 e42d5db372211a1c685c75b68542ecc0a9aa0810620cfd82fc0e76769120a058c691d04d6217ec428f956b0c0789a61fd08bca793260edf081e711e7d8626b0e WHIRLPOOL 126933d4cc8977142c0b614d6711fde427bbee088fb465a0fe74f516a814c54bef789a304e7b9db1584cf87c86bd12bf02bffa97b227017a340de64cc10c8f73
+DIST liblockfile_1.09.orig.tar.gz 32178 SHA256 16979eba05396365e1d6af7100431ae9d32f9bc063930d1de66298a0695f1b7f SHA512 8577f8bfa9c78983d6a409bc449be0d981e599a6a5f2fc8b43f76a238810ec5e3c180e27280719398f31041ed837fe8ba61df208ce77db77a354453e4579848a WHIRLPOOL 4365bd4f90207a97ec8421f60bcf2d61c4565eecc9435fd920b31ede3e182856783d21ad466632ea8d18e0378f3401637185235ef90e50d6bc10d093ae4d8a42
+DIST liblockfile_1.13.orig.tar.gz 67720 SHA256 5c5622dbcb5366c8f0c96f9df4f5b1fe3807cdca6faee58a460da8ed7e071d03 SHA512 509b00e6841ecdbd6bef0fdf620a31f49b2e07d29c7dd2407297a3e92ded568933d75390f7cab43dd514949c6ccf8924e621324a8d4bbde4c71847b7b257318a WHIRLPOOL 4b38d0d7c2a3e2091e44e1c161e73ba4b764b09a9fda3c4bd26ccabe0f3ad7ed3666f508814e3a8a6fa1aa7ddc0d39943730292e8aff02fac31253a6db9d5954
+DIST liblockfile_1.14.orig.tar.gz 67856 SHA256 ab40d4a3e8cbc204f7e87fea637a4e4ddf9a1149aaa0a723a4267febd0b1d060 SHA512 d6d75a1ddb55bae8ee63bd0cbacf7ab8cd6d28b29a7d3c2e4a5c31c76c6743ed517cdebd42e3ef5c44698faebfd1537b023510c692b54a1275e7114605fe6550 WHIRLPOOL d28dcd92e45dd118bf9bcc1eb6b468902074628526fbb3141efcd2e30a41c2b3cf9151396ad7baed4357efd71fb6ca3d564df72bacdb79f8319060fae039cf59
+EBUILD liblockfile-1.09.ebuild 1258 SHA256 a40eef5ebf6eb1265e6c69d4e4b0fc20862be65ce799afe488298df65e855396 SHA512 d4ff70a13d3f7353b6f2173671c0f077f3db0444c9c11557de2f4fd44fdf57690bce9105a40d6d419bafb6335f22ce3ccaca08f33406224e138ae53e8fecf86b WHIRLPOOL eff5df1d188f27b603b21ad4d4d5cb209ff1145fbf56803870887735f7ef235564dc211055921297227109d5d04c7f660779499f69bb8eb62cad93cdb73b6715
+EBUILD liblockfile-1.13.ebuild 1140 SHA256 46f812c632e290a886ae273be7c906256c3dfffa9f0787e1cd53754642441e9a SHA512 d7adc46092440ce4cb1398fb05226da2bf67a514267e60550e10c46748ba6b48be07c0ed2a3f37c31ecc590a36a72b3dab9bfc22bf1beef2bdc383ef32ee3a96 WHIRLPOOL ab78b72c5f2c338cc05ba40c3564f4df742662a23cec1ea01d871d2316960a054a190311e74b2693d4b6ea8432c7bc2c3ec11ba2f63b4ef38cd71ef88edc5884
+EBUILD liblockfile-1.14.ebuild 1140 SHA256 46f812c632e290a886ae273be7c906256c3dfffa9f0787e1cd53754642441e9a SHA512 d7adc46092440ce4cb1398fb05226da2bf67a514267e60550e10c46748ba6b48be07c0ed2a3f37c31ecc590a36a72b3dab9bfc22bf1beef2bdc383ef32ee3a96 WHIRLPOOL ab78b72c5f2c338cc05ba40c3564f4df742662a23cec1ea01d871d2316960a054a190311e74b2693d4b6ea8432c7bc2c3ec11ba2f63b4ef38cd71ef88edc5884
+MISC ChangeLog 2550 SHA256 1f09c29efcb536287cc9e7a06420b37104cfe8a3ad95f822f5044e95eaa8d92d SHA512 530eeab508c61c533c4eb7f48d293823a960936ee58f8f52da0c7bb04552b399ad410f1141ab09e726f2f3b25b5a8585140d27670abf995edea7c6e8f6417b64 WHIRLPOOL a7e510b4c8ca93b47314999dda87e4eaa4c42ee6d02a6c0f03d69d023d0968c1c27a7bcab95300f1caf8fe5ae85aadd1472339bf1e1451fce883d25635ce6f7f
+MISC ChangeLog-2015 9961 SHA256 620f8345cd1548f4bbce2a49a77a44c079de26f895b49d42800138603ca1fd49 SHA512 692438ca1bdb1768752f28943058a321dc64b329ea9bf1e0884ec0655ac0213d000bf39e65c0bfabb21c4a4f2fef2140dc4b015904f455f0344d5b183629f358 WHIRLPOOL afcd0670fd8387bd03d1728f0809f700e320911a5b4aa28346d4810447f53c45fc7b3d73a716c6fea90eccd8dc1166d84d8ca931a691740753aa09a92249832e
+MISC metadata.xml 240 SHA256 f0e0bb7a24c4b1ff6b6a8a3e9315245c298499c03fbda429c0f775ec6a5396af SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db WHIRLPOOL a7adfcb24489ae67a43a59d8350a70b20874fb03de95681c5b516a741d95422560a433f641de5a7222cf5d3500333e215055ec0cb3844e7abc6d6a836de97357
diff --git a/net-libs/liblockfile/files/Makefile.Darwin.in b/net-libs/liblockfile/files/Makefile.Darwin.in
new file mode 100644
index 000000000000..bdd320fe6d49
--- /dev/null
+++ b/net-libs/liblockfile/files/Makefile.Darwin.in
@@ -0,0 +1,80 @@
+#
+# Makefile.in Makefile for the liblockfile package (Darwin version)
+#
+# Gentoo version for Darwin, based on original:
+# version: @(#)Makefile.in 1.01 16-Apr-1999 miquels@cistron.nl
+#
+
+VER = 1.0
+NVER = 0.1
+
+CFLAGS = @CFLAGS@ -I.
+LDFLAGS = @LDFLAGS@
+CC = @CC@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+libdir = @libdir@
+mandir = @mandir@
+nfslockdir = @nfslockdir@
+includedir = @includedir@
+
+MAILGROUP = @MAILGROUP@
+
+all: @TARGETS@
+install: @INSTALL_TARGETS@
+
+static: liblockfile.a dotlockfile
+shared: liblockfile.dylib dotlockfile
+nfslib: nfslock.$(VER).dylib
+
+liblockfile.a: lockfile.o
+ ar rv liblockfile.a lockfile.o
+
+liblockfile.dylib: liblockfile.a
+ $(CC) $(LDFLAGS) -fPIC -dynamiclib -install_name @libdir@/liblockfile.1.0.dylib \
+ -o liblockfile.dylib lockfile.o -lc
+
+nfslock.$(VER).dylib: nfslock.o
+ $(CC) $(LDFLAGS) -fPIC -dynamiclib -install_name nfslock.0.dylib \
+ -o nfslock.$(NVER).dylib nfslock.o
+
+dotlockfile: dotlockfile.o xlockfile.o
+ $(CC) $(LDFLAGS) -o dotlockfile dotlockfile.o xlockfile.o
+
+lockfile.o: lockfile.c
+ $(CC) $(CFLAGS) -DLIB -DLOCKPROG=\"$(bindir)/dotlockfile\" \
+ -c lockfile.c
+
+xlockfile.o: lockfile.c
+ $(CC) $(CFLAGS) -c lockfile.c -o xlockfile.o
+
+install_static: static install_common
+ install -m 644 liblockfile.a $(ROOT)$(libdir)
+
+install_shared: shared install_common
+ install -m 755 liblockfile.dylib \
+ $(ROOT)$(libdir)/liblockfile.$(VER).dylib
+ ln -s liblockfile.$(VER).dylib $(ROOT)$(libdir)/liblockfile.dylib
+
+install_common:
+ install -m 644 lockfile.h maillock.h $(ROOT)$(includedir)
+ if [ "$(MAILGROUP)" != "" ]; then\
+ install -g $(MAILGROUP) -m 2755 dotlockfile $(ROOT)$(bindir);\
+ else \
+ install -g root -m 755 dotlockfile $(ROOT)$(bindir); \
+ fi
+ install -m 644 *.1 $(ROOT)$(mandir)/man1
+ install -m 644 *.3 $(ROOT)$(mandir)/man3
+
+install_nfslib: nfslib
+ install -m 755 nfslock.$(VER).dylib $(ROOT)$(nfslockdir)
+
+clean:
+ rm -f *.a *.o *.dylib dotlockfile
+
+distclean: clean
+ rm -f Makefile autoconf.h maillock.h \
+ config.cache config.log config.status
+
diff --git a/net-libs/liblockfile/files/liblockfile-1.06-respectflags.patch b/net-libs/liblockfile/files/liblockfile-1.06-respectflags.patch
new file mode 100644
index 000000000000..1a8d0eb18cbe
--- /dev/null
+++ b/net-libs/liblockfile/files/liblockfile-1.06-respectflags.patch
@@ -0,0 +1,18 @@
+Index: liblockfile-1.06/Makefile.in
+===================================================================
+--- liblockfile-1.06.orig/Makefile.in
++++ liblockfile-1.06/Makefile.in
+@@ -32,11 +32,11 @@ liblockfile.a: lockfile.o
+ ar rv liblockfile.a lockfile.o
+
+ liblockfile.so: liblockfile.a
+- $(CC) -fPIC -shared -Wl,-soname,liblockfile.so.1 \
++ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,liblockfile.so.1 \
+ -o liblockfile.so lockfile.o -lc
+
+ nfslock.so.$(VER): nfslock.o
+- $(CC) -fPIC -shared -Wl,-soname,nfslock.so.0 \
++ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,nfslock.so.0 \
+ -o nfslock.so.$(NVER) nfslock.o
+
+ dotlockfile: dotlockfile.o xlockfile.o
diff --git a/net-libs/liblockfile/files/liblockfile-1.13-makefile.patch b/net-libs/liblockfile/files/liblockfile-1.13-makefile.patch
new file mode 100644
index 000000000000..e14bf12ad313
--- /dev/null
+++ b/net-libs/liblockfile/files/liblockfile-1.13-makefile.patch
@@ -0,0 +1,63 @@
+--- liblockfile/Makefile.in
++++ liblockfile/Makefile.in
+@@ -10,7 +10,7 @@
+ LDFLAGS = @LDFLAGS@
+ CC = @CC@
+
+-prefix = $(DESTDIR)@prefix@
++prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ bindir = @bindir@
+ libdir = @libdir@
+@@ -49,34 +49,34 @@
+ $(CC) $(CFLAGS) -c lockfile.c -o xlockfile.o
+
+ install_static: static install_common
+- install -d -m 755 -g root -p $(libdir)
+- install -m 644 liblockfile.a $(libdir)
++ install -d -m 755 -p $(DESTDIR)$(libdir)
++ install -m 644 liblockfile.a $(DESTDIR)$(libdir)
+
+ install_shared: shared install_static install_common
+- install -d -m 755 -g root -p $(libdir)
++ install -d -m 755 -p $(DESTDIR)$(libdir)
+ install -m 755 liblockfile.so \
+- $(libdir)/liblockfile.so.$(SOVER)
+- ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so.$(MAJOR)
+- ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so
++ $(DESTDIR)$(libdir)/liblockfile.so.$(SOVER)
++ ln -s liblockfile.so.$(SOVER) $(DESTDIR)$(libdir)/liblockfile.so.$(MAJOR)
++ ln -s liblockfile.so.$(SOVER) $(DESTDIR)$(libdir)/liblockfile.so
+ if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi
+
+ install_common:
+- install -d -m 755 -g root -p $(includedir)
+- install -d -m 755 -g root -p $(bindir)
+- install -d -m 755 -g root -p $(mandir)/man1
+- install -d -m 755 -g root -p $(mandir)/man3
+- install -m 644 lockfile.h maillock.h $(includedir)
++ install -d -m 755 -p $(DESTDIR)$(includedir)
++ install -d -m 755 -p $(DESTDIR)$(bindir)
++ install -d -m 755 -p $(DESTDIR)$(mandir)/man1
++ install -d -m 755 -p $(DESTDIR)$(mandir)/man3
++ install -m 644 lockfile.h maillock.h $(DESTDIR)$(includedir)
+ if [ "$(MAILGROUP)" != "" ]; then\
+- install -g $(MAILGROUP) -m 2755 dotlockfile $(bindir);\
++ install -g $(MAILGROUP) -m 2755 dotlockfile $(DESTDIR)$(bindir);\
+ else \
+- install -g root -m 755 dotlockfile $(bindir); \
++ install -m 755 dotlockfile $(DESTDIR)$(bindir); \
+ fi
+- install -m 644 *.1 $(mandir)/man1
+- install -m 644 *.3 $(mandir)/man3
++ install -m 644 *.1 $(DESTDIR)$(mandir)/man1
++ install -m 644 *.3 $(DESTDIR)$(mandir)/man3
+
+ install_nfslib: nfslib
+- install -d -m 755 -g root -p $(nfslockdir)
+- install -m 755 nfslock.so.$(NFSVER) $(nfslockdir)
++ install -d -m 755 -p $(DESTDIR)$(nfslockdir)
++ install -m 755 nfslock.so.$(NFSVER) $(DESTDIR)$(nfslockdir)
+ if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi
+
+ clean:
diff --git a/net-libs/liblockfile/files/liblockfile-orphan-file.patch b/net-libs/liblockfile/files/liblockfile-orphan-file.patch
new file mode 100644
index 000000000000..4a8c75ac4129
--- /dev/null
+++ b/net-libs/liblockfile/files/liblockfile-orphan-file.patch
@@ -0,0 +1,19 @@
+diff -ur liblockfile-1.06-orig/Makefile.in liblockfile-1.06/Makefile.in
+--- liblockfile-1.06-orig/Makefile.in 2006-11-28 06:19:09.000000000 +0100
++++ liblockfile-1.06/Makefile.in 2006-11-28 06:24:30.000000000 +0100
+@@ -5,6 +5,7 @@
+ #
+
+ VER = 1.0
++MVER = 1
+ NVER = 0.1
+
+ CFLAGS = @CFLAGS@ -I.
+@@ -55,6 +56,7 @@
+ install_shared: shared install_common
+ install -m 755 liblockfile.so \
+ $(ROOT)$(libdir)/liblockfile.so.$(VER)
++ ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so.$(MVER)
+ ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so
+ if test "$(ROOT)" = ""; then @LDCONFIG@; fi
+
diff --git a/net-libs/liblockfile/liblockfile-1.09.ebuild b/net-libs/liblockfile/liblockfile-1.09.ebuild
new file mode 100644
index 000000000000..dd4aa4765458
--- /dev/null
+++ b/net-libs/liblockfile/liblockfile-1.09.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils multilib autotools user
+
+DESCRIPTION="Implements functions designed to lock the standard mailboxes"
+HOMEPAGE="http://www.debian.org/"
+SRC_URI="mirror://debian/pool/main/libl/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+pkg_setup() {
+ enewgroup mail 12
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.06-respectflags.patch
+ epatch "${FILESDIR}"/${PN}-orphan-file.patch
+
+ # I don't feel like making the Makefile portable
+ [[ ${CHOST} == *-darwin* ]] \
+ && cp "${FILESDIR}"/Makefile.Darwin.in Makefile.in
+
+ eautoreconf
+}
+
+src_configure() {
+ local grp=mail
+ if use prefix ; then
+ # we never want to use LDCONFIG
+ export LDCONFIG=${EPREFIX}/bin/true
+ # in unprivileged installs this is "mail"
+ grp=$(id -g)
+ fi
+ econf --with-mailgroup=${grp} --enable-shared
+}
+
+src_install() {
+ dodir /usr/{bin,include,$(get_libdir)} /usr/share/man/{man1,man3}
+ emake ROOT="${D}" install
+ dodoc README Changelog
+}
diff --git a/net-libs/liblockfile/liblockfile-1.13.ebuild b/net-libs/liblockfile/liblockfile-1.13.ebuild
new file mode 100644
index 000000000000..ff11cb8dd7c6
--- /dev/null
+++ b/net-libs/liblockfile/liblockfile-1.13.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib user
+
+DESCRIPTION="Implements functions designed to lock the standard mailboxes"
+HOMEPAGE="http://www.debian.org/"
+SRC_URI="mirror://debian/pool/main/libl/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+S="${WORKDIR}/${PN}"
+
+DOCS=( Changelog README )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.13-makefile.patch"
+)
+
+pkg_setup() {
+ enewgroup mail 12
+}
+
+src_prepare() {
+ default
+
+ # I don't feel like making the Makefile portable
+ [[ ${CHOST} == *-darwin* ]] \
+ && cp "${FILESDIR}"/Makefile.Darwin.in Makefile.in
+
+ eautoreconf
+}
+
+src_configure() {
+ local grp=mail
+ if use prefix ; then
+ # we never want to use LDCONFIG
+ export LDCONFIG=${EPREFIX}/bin/true
+ # in unprivileged installs this is "mail"
+ grp=$(id -g)
+ fi
+ econf --with-mailgroup=${grp} --enable-shared
+}
diff --git a/net-libs/liblockfile/liblockfile-1.14.ebuild b/net-libs/liblockfile/liblockfile-1.14.ebuild
new file mode 100644
index 000000000000..ff11cb8dd7c6
--- /dev/null
+++ b/net-libs/liblockfile/liblockfile-1.14.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib user
+
+DESCRIPTION="Implements functions designed to lock the standard mailboxes"
+HOMEPAGE="http://www.debian.org/"
+SRC_URI="mirror://debian/pool/main/libl/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+S="${WORKDIR}/${PN}"
+
+DOCS=( Changelog README )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.13-makefile.patch"
+)
+
+pkg_setup() {
+ enewgroup mail 12
+}
+
+src_prepare() {
+ default
+
+ # I don't feel like making the Makefile portable
+ [[ ${CHOST} == *-darwin* ]] \
+ && cp "${FILESDIR}"/Makefile.Darwin.in Makefile.in
+
+ eautoreconf
+}
+
+src_configure() {
+ local grp=mail
+ if use prefix ; then
+ # we never want to use LDCONFIG
+ export LDCONFIG=${EPREFIX}/bin/true
+ # in unprivileged installs this is "mail"
+ grp=$(id -g)
+ fi
+ econf --with-mailgroup=${grp} --enable-shared
+}
diff --git a/net-libs/liblockfile/metadata.xml b/net-libs/liblockfile/metadata.xml
new file mode 100644
index 000000000000..9a6d80e5da48
--- /dev/null
+++ b/net-libs/liblockfile/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 type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libmbim/Manifest b/net-libs/libmbim/Manifest
new file mode 100644
index 000000000000..0820c5be5144
--- /dev/null
+++ b/net-libs/libmbim/Manifest
@@ -0,0 +1,13 @@
+DIST libmbim-1.10.0.tar.xz 384480 SHA256 4e5eade46a61d0cd1f8b6ad47bee938868766eca617a64e7acd2d0b72ff38b6e SHA512 648395a37621e51647878a6c86766a319e5f93080dde6fc41e0e280ffda95decb68352e6bfba946d0a1b441bc2a58e1cdef750274b1282b1f1183b1cbcd51d84 WHIRLPOOL 4febb3e92d8adf96067b4e0742ef7ac513f5791093f0f0551d0f99cceae5afdd986e74521ff9a4f672b91f3ec17938adb59a9770aff038a9651280b115498f60
+DIST libmbim-1.12.2.tar.xz 397268 SHA256 949351d3e3d69b81e40a49f1d187944c26149e0647a415f0227ccdc112047b29 SHA512 d9ae50fecd39f2581ca8db21ec66ac6bfe13e10fe9298a7ec60338f66421ca8411dee3042f58692d60d491d17324d25233623674d322e81f0205c0dea486361a WHIRLPOOL e4225f287580f5cd7b842b025fc887d48d649a8fff962f0a76312cbeeea7443cb3ed518bab3b49d9da2a96b7e942d50a2428bb1005f43764842f3130162841fc
+DIST libmbim-1.12.4.tar.xz 401816 SHA256 7bd9af154e88ee1cccaf2fedd05e0f5cb82e3359ab6ad2a75cfec98bf57f973a SHA512 74b0290eba3c83c13d1a8a07c1eaa979eae79cfadccd1b7acef0729c9d4c90e721dee9503a7cf69dd9c13a11c4a876716000cf78c22017d7e2d4e2b7906a3fbf WHIRLPOOL beeb8311b3dc424770b8d2c8fab324df31bddfe0d0c033f6b61bb79024cf4d23931e8f680b0bfa4d0a71c8781a9f6f449a2049eb5c58d3afaf5b99ea3cb7ae06
+DIST libmbim-1.14.0.tar.xz 401460 SHA256 ca8d52a95a18cbabae8f15f83f1572316e888b6504f946e6645d24405127ab5b SHA512 a9b1ba59828fd1c8cf39705717c56e3b75f34d6b3b9cd9f8be40fe245c07f4ea4d211727322c8b3c6d92f004c670e2fe6de76a3117e38b1e8de6673cfb6168bd WHIRLPOOL 2dfc876eb0ff816085f0aec960502327edbc619c35c5f56006dd95c8333d50e7752ee1891ed9b10027d8d9186ccc249b20c875844792af5a3262b5069c600e95
+DIST libmbim-1.6.0.tar.xz 360800 SHA256 e0efbdaf2aeddec033b4c7c5d0f7934c91ce535c5c9f0cadf1e67527d10ab082 SHA512 60c20da65cb5e0e5e3d73434c8b7960ebb7138d6b004d4e6223ba63ea95fdc97b35697a329f12a81033c39c36efcbb3bcb5d8ae813a569dc6e6ca928a1cd79dd WHIRLPOOL 08408f332bfb41ac29e705c462b56899e988ce28ba581202ac6b54f7beee0769b106d4f3bbef7f6484ba68c6dbb27bed905b9611393775ef72f13138b7036aa3
+EBUILD libmbim-1.10.0.ebuild 960 SHA256 85c6f45f0ff06c2868ddbb7a2a6f41d156e70bf3b6d01da7cd04da911d17160d SHA512 a1c46d4576dd8017937fa8c375957ab8108ddd2fb7684eb08b026504a500b0d20cac9fb0632730d0b523a8a8745ec53c088723d5a681286de910222a36171ad2 WHIRLPOOL 6c548a9bc4093e1c0c532ce8c53ee625ce37aae2fecc3714d061fd9744b58c311b8b060869d2fdd87d95e4cfd919a69227268144745c37247a0abc0d5756b3db
+EBUILD libmbim-1.12.2.ebuild 969 SHA256 06989b3f7897a9dbeac960bcbf72bbc1f7ef4f81e51ab1a1d9c980cfc89a60d5 SHA512 dbb14b53f4ab7d7a15ce2fd5ee0a0006d4926869553d07d0fd8f940dd990cfd26b3b600001decdcdd4ddf3cbe21afa0de4c24534eaf604d8707a75e87d7cc03f WHIRLPOOL 7710c70e57868660d965586219ee0ca92c46a80621ed4174a9cba1ee1699aa25863dae8ad91bfae39c2249a1c8f76df1c7189398f83efebd4c786767ce10ecce
+EBUILD libmbim-1.12.4.ebuild 970 SHA256 ae210e0a991fab6e6dcf3ab2205ca8821fffc8e85bfbdbd37678253cb46f021d SHA512 59af5c7676226488c31faaf99e7e877c6b0e63c5552d08e7b70e9839a22365507c2a4fe28b245da802fb61a60e38c4a83b5eafe4e1a09a94823c6baad00bbce2 WHIRLPOOL 3b54203601266f5520f5d80a048663380ff192490e61962eb45319aeba341804315aa7e4488f251d15d0d144499739255491e7c2c048cc1c00dffec77ff3ec15
+EBUILD libmbim-1.14.0.ebuild 792 SHA256 e788bcebc8653312f8cb2009e40ca422d7b96ae2054fe7af1349f59acfef0305 SHA512 97ae08b48db295a2f2050a72a9f264b95ee4a9997c591240486ce2c32032a4f71a2ae3068aaebb2c9290af0fe787e3a71b0604877bda64e45e0496484d40bde6 WHIRLPOOL f9f606ac4bca8f4511e88152766ddbbbbc4f30df855e5c6ffc4663b6ad085b7428dc4da1ac5149d7aa959f6371e34eaafb0d79a8f813552a86b71bc0edcfcee4
+EBUILD libmbim-1.6.0.ebuild 1005 SHA256 d8f0618852dcb28284ac620fc53678389b5c8192b07746d59d75eab514e69386 SHA512 1071f96b2ffa1e45d42a2a3c115e0463d5fc069800755461599474b91268d59b12dc81a7a224b3c6974fb693474948f3e6a7ea3bd3f3d28e48c5a01da5efa0fc WHIRLPOOL 8eaeefa83f3a879c187317d8f22ff8d99113c6eaee702632689fb112bd8aa9912d1f95c9453080f9a64690e46bd7b659fa2f990805ffde609a4ce41dd0f4553e
+MISC ChangeLog 4220 SHA256 8a0c0fd46ed34cd849529d8dfbd7980b1a0fb6656f869eb31de25f940f17eddf SHA512 a09d3b5b13a58fc04aa2d15115e81a4bdc4cfbba073ace370a321f15c6f0dfb24cd7c1f97deaf3305f9fd7a184b256f97f09d86d14436156ac32043a193bc05c WHIRLPOOL 930a15787e30924d86176ab81172fc444a9dc466f0934796d21a39ddaf0d70e8fc00e5b9082689f6490b250df9303e01203668bfd846d8c0b0e4aaf312640bfa
+MISC ChangeLog-2015 1815 SHA256 37392299cb2adadc5eac9c273a8f5c2291256093d5ba02518c2871aaa789a319 SHA512 2329e088fae99c7e76d86802f71045c423f890b559822b101d18d3433d63017dcaa4668a7a34556d9a686b268aab59537daee7dfb1c36449803d9ad6db19e40b WHIRLPOOL 41bd52ae576c2f0336ad7f06c6cec67aea78d9b17a1e9b1b5e2c79689d17956713736c437714494eeef095ccd313257f806941c85333eba85db0679c8cd909f4
+MISC metadata.xml 241 SHA256 ff2d55b5273c193c697ec731402c646970c13b02c03cbbfaec3298eb29593ef1 SHA512 d85c72d707e2c7290ff4bf18bbbd34b938cddb7e09528c5d10fa7f141122e3836687c2fff91c1000791457b7f808d3222fe671755a0fc25c157d80c908bc3cae WHIRLPOOL 125805e1cfe2935d786a36d2ade28208296925c295991ebffc8b9df1cf6621bfd63ebf2f4d2af1563a819b93ebfd7e1cdbee01994e4273765ac659d1e0f6acd0
diff --git a/net-libs/libmbim/libmbim-1.10.0.ebuild b/net-libs/libmbim/libmbim-1.10.0.ebuild
new file mode 100644
index 000000000000..3d883570ea60
--- /dev/null
+++ b/net-libs/libmbim/libmbim-1.10.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libmbim/libmbim.git"
+else
+ KEYWORDS="~alpha amd64 arm ~mips x86"
+ SRC_URI="https://www.freedesktop.org/software/libmbim/${P}.tar.xz"
+fi
+
+DESCRIPTION="MBIM modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libmbim/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+ virtual/libgudev:="
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ --disable-gtk-doc \
+ $(use_enable static{-libs,})
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libmbim/libmbim-1.12.2.ebuild b/net-libs/libmbim/libmbim-1.12.2.ebuild
new file mode 100644
index 000000000000..a93d407b0ee9
--- /dev/null
+++ b/net-libs/libmbim/libmbim-1.12.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libmbim/libmbim.git"
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~mips ppc64 ~x86"
+ SRC_URI="https://www.freedesktop.org/software/libmbim/${P}.tar.xz"
+fi
+
+DESCRIPTION="MBIM modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libmbim/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+ virtual/libgudev:="
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ --disable-gtk-doc \
+ $(use_enable static{-libs,})
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libmbim/libmbim-1.12.4.ebuild b/net-libs/libmbim/libmbim-1.12.4.ebuild
new file mode 100644
index 000000000000..b7960c01b17d
--- /dev/null
+++ b/net-libs/libmbim/libmbim-1.12.4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libmbim/libmbim.git"
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc64 ~x86"
+ SRC_URI="https://www.freedesktop.org/software/libmbim/${P}.tar.xz"
+fi
+
+DESCRIPTION="MBIM modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libmbim/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+ virtual/libgudev:="
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ --disable-gtk-doc \
+ $(use_enable static{-libs,})
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libmbim/libmbim-1.14.0.ebuild b/net-libs/libmbim/libmbim-1.14.0.ebuild
new file mode 100644
index 000000000000..0f1540ae3693
--- /dev/null
+++ b/net-libs/libmbim/libmbim-1.14.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit multilib
+
+DESCRIPTION="Mobile Broadband Interface Model (MBIM) modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libmbim/"
+SRC_URI="https://www.freedesktop.org/software/libmbim/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~arm64 ~mips ppc ppc64 x86"
+IUSE="static-libs udev"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig"
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ --disable-gtk-doc \
+ $(use_with udev) \
+ $(use_enable static{-libs,})
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libmbim/libmbim-1.6.0.ebuild b/net-libs/libmbim/libmbim-1.6.0.ebuild
new file mode 100644
index 000000000000..d52ec04ba377
--- /dev/null
+++ b/net-libs/libmbim/libmbim-1.6.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libmbim/libmbim.git"
+else
+ KEYWORDS="~alpha amd64 arm ~mips x86"
+ SRC_URI="https://www.freedesktop.org/software/libmbim/${P}.tar.xz"
+fi
+
+DESCRIPTION="MBIM modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libmbim/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs test"
+
+RDEPEND=">=dev-libs/glib-2.32
+ virtual/libgudev:="
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc) \
+ $(use_with test{,s})
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libmbim/metadata.xml b/net-libs/libmbim/metadata.xml
new file mode 100644
index 000000000000..7fb6dd89c720
--- /dev/null
+++ b/net-libs/libmbim/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 type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libmediawiki/Manifest b/net-libs/libmediawiki/Manifest
new file mode 100644
index 000000000000..36e2b97a4b54
--- /dev/null
+++ b/net-libs/libmediawiki/Manifest
@@ -0,0 +1,8 @@
+AUX libmediawiki-5.0.0_pre20170128-tests-optional.patch 470 SHA256 9d5920e76a6505677002af64948488df20fef7a60d112e00ff3dd4682c9ef554 SHA512 91e483c2483e2d07ed2b4d974f37c19bcbcd2c69ff9841451d4aa182945469b83dcdbe5025807ba83438cfcfbf4218fe32f7f6d5f5232cca913285fe8b9bc33f WHIRLPOOL 02f392873f334ce0c4da0ca568bfb1c238e6886df474a025d2ff1a5c10c978b78b94787b5985b9a8a736ab143ac5a894af94a5fe10a16cfd361d13d5670db9f6
+DIST libmediawiki-5.0.0_pre20170128.tar.xz 54888 SHA256 f8d462286236c92eef3d20a1e56a6d5a678013cebd451ce72d9b5217d6e51e20 SHA512 325cb89939e56698a805c63226ca6bf6abc8a673f11a7aaafb5e698f3c1f4014e29c2fb96e7ef6c84cffa7668835c41dfeb4c61b8fbdefe273d54751da87ca01 WHIRLPOOL f6fff5654e0d4b91fe519055eda56c915dbcfc4565bd936f18953a0220b225bfb45b324fcae236d98fed69c4931cb65a7b568428ac93b06322a003d8afdf2add
+DIST libmediawiki-5.37.0.tar.xz 55188 SHA256 da167259c49d012359ad65175c365613f0c42699fb99ac7fb9d1f1c8c48292c1 SHA512 5efcd30782c8d54cddad51c6a96065f2942529e89facfd1c3a71af343a898858db02fa95dd0af0161b3e13aee6a9a373a0a641ce64e128c7282cbf3770db6993 WHIRLPOOL 6a10c94566ad76ad1951b3c8523cbe830be38cf8f1ad1d6c0bd01e2d67552db7db866277a6eee102dfa3ed24bb6f6d9af6a184cb6a19433cea64e347787afd1b
+EBUILD libmediawiki-5.0.0_pre20170128.ebuild 516 SHA256 968fa5ee685a8913735a401e58f1d5b299ef367814bfb4f2c66283f33ae74e8a SHA512 9facb1f2043047ca2f0dabb2fddaa31187990fac7278e91739eabeebdbbaf228bf2e8a49f3d320e3ecf6b38885841593d134bb9246ed3b42f4e865d6dd6905cf WHIRLPOOL bd5a4040d5a6df6595507703bea9828d6d818a366d5437b41eb90a112650755203009b2db370122067d8bbae25bbeaa5fa87e14e17859193a73067afee9b2224
+EBUILD libmediawiki-5.37.0.ebuild 531 SHA256 8676810d2110457876317c075cbadbb5d391797481cd66e47b5b71461868163c SHA512 495c7a10d2fa24bef7ec5ca8bcee2ee78640d05130bd03978284ed35e077e207db57ea0c0d04ff43506172ed086f040e98527adb43f8dc77e677b73797e8234b WHIRLPOOL 4530fb2a95fb567f79dc648ea34175ae40495b37505346d12a1399a94949aa2c22cac4e44b4cd89844b43f0d815a58e36321e74bbf99ebb960ac7c01dc8fa9f5
+MISC ChangeLog 3220 SHA256 8ffc3603d034c02a2d58bab6738bdbe5f9f4126a88945b033f90ebbe0f1262d7 SHA512 8f2a1a562fa7bea36466bbdb03f252756dfba94eb7b39e458400ea96ad3d31bf3ef2c9d9b3b25fca4fda0c29480d4c8768e7af467bb156c7da217529adda14c1 WHIRLPOOL 0f850a71d67e47c04716c6226b1d9e092c43f02177e96363a4888c0a9b5ffe1fa40c2e05ba4be6cfc61051733bca39dc0f28ac429fa34f2a72a3354da44413db
+MISC ChangeLog-2015 7771 SHA256 e6a96272babe28650bef58d433bdf78e6b1b28c9449556619d188a588faf7cb2 SHA512 994ff059d3aff1cfbd5228a59dad8a0805e03994ee3f5d0c2b8fdf25541f68a3d65ff6f683931f01623f4f907b0a44ae668cc8a61c26564f19eb0cce5f0290bb WHIRLPOOL 4a8b67a88b93336109cac6245fe2132b2cb70e6a98c067f10eefea50ce771a8766bf9f20a99fc62ad3bb8e94a06322e4bcdc75646c38f749111243b3d86628a3
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch b/net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch
new file mode 100644
index 000000000000..7b910e028a47
--- /dev/null
+++ b/net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt 2017-05-20 11:13:08.095098473 +0200
++++ b/CMakeLists.txt 2017-05-20 11:18:00.993712729 +0200
+@@ -45,8 +45,10 @@
+
+ # Subdirectories
+ add_subdirectory(src)
+-add_subdirectory(autotests)
+-add_subdirectory(tests)
++if(BUILD_TESTING)
++ add_subdirectory(autotests)
++ add_subdirectory(tests)
++endif()
+
+ # Create a Config.cmake and a ConfigVersion.cmake file and install them
+ set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5MediaWiki")
diff --git a/net-libs/libmediawiki/libmediawiki-5.0.0_pre20170128.ebuild b/net-libs/libmediawiki/libmediawiki-5.0.0_pre20170128.ebuild
new file mode 100644
index 000000000000..3e3b647504c0
--- /dev/null
+++ b/net-libs/libmediawiki/libmediawiki-5.0.0_pre20170128.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit kde5
+
+DESCRIPTION="C++ interface for MediaWiki based web service as wikipedia.org"
+HOMEPAGE="https://www.digikam.org/"
+SRC_URI="https://dev.gentoo.org/~asturm/${P}.tar.xz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcoreaddons)
+ $(add_qt_dep qtnetwork)
+"
+RDEPEND="${DEPEND}
+ !net-libs/libmediawiki:4
+"
+
+PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" )
diff --git a/net-libs/libmediawiki/libmediawiki-5.37.0.ebuild b/net-libs/libmediawiki/libmediawiki-5.37.0.ebuild
new file mode 100644
index 000000000000..c85aba403a0f
--- /dev/null
+++ b/net-libs/libmediawiki/libmediawiki-5.37.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit kde5
+
+DESCRIPTION="C++ interface for MediaWiki based web service as wikipedia.org"
+HOMEPAGE="https://www.digikam.org/"
+SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcoreaddons)
+ $(add_qt_dep qtnetwork)
+"
+RDEPEND="${DEPEND}
+ !net-libs/libmediawiki:4
+"
+
+PATCHES=( "${FILESDIR}/${PN}-5.0.0_pre20170128-tests-optional.patch" )
diff --git a/net-libs/libmediawiki/metadata.xml b/net-libs/libmediawiki/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/libmediawiki/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libmicrohttpd/Manifest b/net-libs/libmicrohttpd/Manifest
new file mode 100644
index 000000000000..49ae5a585d6c
--- /dev/null
+++ b/net-libs/libmicrohttpd/Manifest
@@ -0,0 +1,14 @@
+AUX libmicrohttpd-0.9.53-fix-build-without-epoll.patch 702 SHA256 69aeb27a2bd4f6abe13a974f0a3a817ca139e49f419bfed428dd1c50b2cc7507 SHA512 d14269551ebc8c4f2f21da71cfbbeb82c8808e6daedda906f3e699350e52eaa14c55cc263343e25667f18d3ae703b86d413925b03c73a992d6358053165bbb02 WHIRLPOOL c834a9cdf37cadc11790a35fdf58326f68732e20fa39d4be4b4a74fc08df67a0e900ac2fdd7997310705cff09eaa03e7abf1d4ba81a6a88b7607083afa677561
+DIST libmicrohttpd-0.9.51.tar.gz 1114110 SHA256 3000bb0ba219061f2ea60251b8ea3d5f694e8c6ce1706bbff57e7e24867a23c7 SHA512 462178033d5fabc53885189a7f73a343a1a0d2f54e8ff6310a3e74ace3316567927c453773e62ff35150ec36658605d6d0a9c1c38c5d3186d543ca313f4a5912 WHIRLPOOL 9c68282e4f423f251e950f0016d3394c7ce97c85e86a57525a31f832fd2b6b32790a0395a0a0701ad0f4104ff575488ffaed547684d7c3f6f809a3e92bde464d
+DIST libmicrohttpd-0.9.52.tar.gz 1244489 SHA256 54797f6e763d417627f89f60e4ae0a431dab0523f92f83def23ea02d0defafea SHA512 2cb7fa6ed59ec5f48748cd2aedea8a68629f02ffcf8e86c6d5b57a6622bb5f0ffd7dabfd6c04cc99047ca81eb76efe2a79b34bd6e3de329261a319369232fcf4 WHIRLPOOL b70f91dba5e6e69fe42066345d51bb72248b1c4271fa88c0599d78adf17b3eb79144e5a83159f1636a79a6c9081ebb6274d90fa307d4f78a3edbfc7e0d6bd10a
+DIST libmicrohttpd-0.9.53.tar.gz 1301214 SHA256 9b15ec2d381f44936323adfd4f989fa35add517cccbbfa581896b02a393c2cc4 SHA512 2e29595c980cdcf12c1cead62f8938cc32e8c93d3a848e7473c5d5f596c6b6858732df0a3293b93d89577e5a325a62fe82adf3921a76d7184a647489364d7e2c WHIRLPOOL 940eb42aaca8581ab7c7f2f3f6c246bf001956965d5529491d780f377eb00cffbf28aec3069b6a8eb691a78d84e77555ec5554b10ce066a11333d6cae19641a4
+DIST libmicrohttpd-0.9.54.tar.gz 1309560 SHA256 bcc721895d4a114b0548a39d2241c35caacb9e2e072d40e11b55c60e3d5ddcbe SHA512 d3276ad3af123aacc5ff885786861ccc94397576b81999974456b9b803fe5d911115f6595281ffce2240087f98a6527a840506eabeec9f2589d555fd235b6c89 WHIRLPOOL 5d5c099ea269c3d767b6d3f706453ec31b584c74fc01cbfc55ba0a54ce902611853cfeca7f7c8cc3f3c47147cb3db7cea3730abc86174f5d857471d75013b2c5
+DIST libmicrohttpd-0.9.55.tar.gz 1308328 SHA256 0c1cab8dc9f2588bd3076a28f77a7f8de9560cbf2d80e53f9a8696ada80ed0f8 SHA512 b410e7253d7c98c40b5e8b8dcd1f93bcbb05c88717190e8dae73073d36465e8e5cfa53c6c5098de60051a5ec64dc423fd94f4b06537d8146b744aa99f5a0b173 WHIRLPOOL de74ff40e8795c562bd14c347a1b764d198762f7e1efac9279c1b366265a701c4867600efdb9f59eed1e833e080d166f22d34c6dae05c59d89ef311cdd50365b
+EBUILD libmicrohttpd-0.9.51.ebuild 1187 SHA256 ce6a0d0e55a77a6ab9a574d8f84caefd6c67f78656406d6095db0213480e83ed SHA512 74a4a07e0beb590bb10064c50402f504df59e4fdccb837f844b47d72e9ce1795fbf78f02e3ca7ef5948bffdc171e90240e5e98eb759fb756c5fc06eba7cf12e3 WHIRLPOOL a2339b16cd8664b70035f499d212cf768ebe1701c97bf795ca79e7f90e757f629cf60ffa47742b3fdb250bf21a290beaee69fd5d02c30dc85b48497814e24d6d
+EBUILD libmicrohttpd-0.9.52.ebuild 1187 SHA256 ce6a0d0e55a77a6ab9a574d8f84caefd6c67f78656406d6095db0213480e83ed SHA512 74a4a07e0beb590bb10064c50402f504df59e4fdccb837f844b47d72e9ce1795fbf78f02e3ca7ef5948bffdc171e90240e5e98eb759fb756c5fc06eba7cf12e3 WHIRLPOOL a2339b16cd8664b70035f499d212cf768ebe1701c97bf795ca79e7f90e757f629cf60ffa47742b3fdb250bf21a290beaee69fd5d02c30dc85b48497814e24d6d
+EBUILD libmicrohttpd-0.9.53.ebuild 1285 SHA256 15532c2239bc96787f2c0f8f842b032a1f2bbfbd127ddef5d95cbc93370273de SHA512 607b9dacb538b14616e77e33399d77928edb56b095ff52881d3758972f64dc1f49d489cf71341d36a09bc015d63019842461e10e1563c7711ed6c2cbfdf9dacf WHIRLPOOL 97694d156ae8a8776913e9f618aabec00ade579b47daa642080ae5231f3352f5dd4a8cfeb2b28b95ed8a0f9d5800c1709b7864465abf8a81d519912bd4376ef9
+EBUILD libmicrohttpd-0.9.54.ebuild 1196 SHA256 c142277df22faa28b5791126f40053adece509a11cf26de46e03c0ffc121e1a2 SHA512 12cad915d06bad003b8a879e9c4fb5a64abd55706e77210da5449f7b1eeb3f9cf6bf1d15762698365cf357d95597108548ff09c11ea29cd4ac9d54264d9a7d3b WHIRLPOOL 56e18a4e84a04275bff8ba6bddb0a692d2b6fbc0aa2826214a8e2cf3084c5e98afafbc3ed785f689ab06d1eb3c82e9de3e380909574c095e28b9bc826fcfb234
+EBUILD libmicrohttpd-0.9.55.ebuild 1203 SHA256 c1ca09e476db9a042d128e52cbe7b4c1f888f05febc167a1f112669874f86e73 SHA512 2facdd1a07cc4f9ca1d742ff40584ee1c2dd4317fc48850fdb04c06e110aab0e26db098dc612a672ef73bd42e085155dfd712b2dd58a7264bcd20efbd01cfb7a WHIRLPOOL ae395b577ce420f700e7c7ac7b29e14080d95f8fe7ef922e4358b725baa44a1b6e6ebde4330cc818aa34234ced5df045aa87ab286cd5a05cdc0c6ea4edf5ba68
+MISC ChangeLog 9671 SHA256 fa86df84ab358edc58a8c69802e060e28b73622fbc2b6ab4088307a4442228c7 SHA512 beaf9510bffd9a5527818a982f276ea21577b18d497638d60ba4a18f4feb6e35f7f17e23da3094f013cebe69d855c77e034b0d4ec79d07581f14b9617793224b WHIRLPOOL c20d31ad82ec48399f1faf74cb157a680e5bc29be1b99811d01a937ccf49cb3bb3c0964a7710a812a5d1347be6232453127a47560468e4b8777479b625b486e6
+MISC ChangeLog-2015 14730 SHA256 78359496e09bd7ebc5b2b2ec434edf7928da716fd87e39ab10ea5ff3f9f203a0 SHA512 64bd659b958bd5cff4bb1665198cf289c2019b5066e191cbede34d58f94e55580e4357766c311adfdb23550999c8f48fa1e6cb264269e0ae2b75b9ba892001e9 WHIRLPOOL 7b36c3e16600280223a2e02a0bb36f3de3c0fdbe2ec09b38deaa23321c28512206d7ab239f60f40b660cfefd9b69cc1a402087e5093192779c19ae2eecb5efa4
+MISC metadata.xml 372 SHA256 fbeb88d8c441ba77e0b0e3aa9121668f01a7cd2bb2d49797adec90e1d0fc8a66 SHA512 dfa7081c0ae502a60c5b86d7fb2aab3a23f77b08d0e638686fddba3e7976c917dd2392ba150365ffa411f2fcdd10483856b051bf1ee0ac519b74ce7b2672a8d7 WHIRLPOOL b508d38acf7f48f52fa3ed6997e32902527ac4dcf09d04ab611cc3cff2b58d53b1df0150a0ec724a7fd5d838384667706eac62a940be3f215d5283ea28f5c42e
diff --git a/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.53-fix-build-without-epoll.patch b/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.53-fix-build-without-epoll.patch
new file mode 100644
index 000000000000..ff27c26e3e6d
--- /dev/null
+++ b/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.53-fix-build-without-epoll.patch
@@ -0,0 +1,21 @@
+commit 01df8861c19a203cea9ef26570893c2b9c0e48b2
+Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
+Date: Wed Apr 12 21:11:28 2017 +0300
+
+ Fixed GNU/Linux builds without epoll
+
+diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
+index 49a1b82..02713e3 100644
+--- a/src/microhttpd/daemon.c
++++ b/src/microhttpd/daemon.c
+@@ -2251,8 +2251,10 @@ send_param_adapter (struct MHD_Connection *connection,
+ if (0 < ret)
+ {
+ /* write successful */
++#ifdef EPOLL_SUPPORT
+ if (left > (uint64_t)ret)
+ connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY;
++#endif /* EPOLL_SUPPORT */
+ return ret;
+ }
+ err = MHD_socket_get_error_();
diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.51.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.51.ebuild
new file mode 100644
index 000000000000..a31f258f10f8
--- /dev/null
+++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.51.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P/_/}"
+
+DESCRIPTION="Small C library to run an HTTP server as part of another application"
+HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
+SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/12"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="epoll messages ssl static-libs test"
+
+RDEPEND="ssl? (
+ dev-libs/libgcrypt:0=
+ net-libs/gnutls
+ )"
+
+# We disable tests below because they're broken,
+# but if enabled, we'll need this.
+DEPEND="${RDEPEND}
+ test? (
+ ssl? ( net-misc/curl[ssl] )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="AUTHORS NEWS README ChangeLog"
+
+src_configure() {
+ econf \
+ --enable-bauth \
+ --enable-dauth \
+ --disable-examples \
+ --enable-postprocessor \
+ --disable-thread-names \
+ $(use_enable epoll) \
+ $(use_enable test curl) \
+ $(use_enable messages) \
+ $(use_enable ssl https) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static)
+}
+
+# tests are broken in the portage environment.
+src_test() {
+ :
+}
+
+src_install() {
+ default
+
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.52.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.52.ebuild
new file mode 100644
index 000000000000..a31f258f10f8
--- /dev/null
+++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.52.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P/_/}"
+
+DESCRIPTION="Small C library to run an HTTP server as part of another application"
+HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
+SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/12"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="epoll messages ssl static-libs test"
+
+RDEPEND="ssl? (
+ dev-libs/libgcrypt:0=
+ net-libs/gnutls
+ )"
+
+# We disable tests below because they're broken,
+# but if enabled, we'll need this.
+DEPEND="${RDEPEND}
+ test? (
+ ssl? ( net-misc/curl[ssl] )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="AUTHORS NEWS README ChangeLog"
+
+src_configure() {
+ econf \
+ --enable-bauth \
+ --enable-dauth \
+ --disable-examples \
+ --enable-postprocessor \
+ --disable-thread-names \
+ $(use_enable epoll) \
+ $(use_enable test curl) \
+ $(use_enable messages) \
+ $(use_enable ssl https) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static)
+}
+
+# tests are broken in the portage environment.
+src_test() {
+ :
+}
+
+src_install() {
+ default
+
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild
new file mode 100644
index 000000000000..9afe482cd6bf
--- /dev/null
+++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P/_/}"
+
+DESCRIPTION="Small C library to run an HTTP server as part of another application"
+HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
+SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/12"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="epoll messages ssl static-libs test"
+
+RDEPEND="ssl? (
+ dev-libs/libgcrypt:0=
+ net-libs/gnutls
+ )"
+
+# We disable tests below because they're broken,
+# but if enabled, we'll need this.
+DEPEND="${RDEPEND}
+ test? (
+ ssl? ( net-misc/curl[ssl] )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="AUTHORS NEWS README ChangeLog"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-fix-build-without-epoll.patch
+ eapply_user
+}
+
+src_configure() {
+ econf \
+ --enable-bauth \
+ --enable-dauth \
+ --disable-examples \
+ --enable-postprocessor \
+ --disable-thread-names \
+ $(use_enable epoll) \
+ $(use_enable test curl) \
+ $(use_enable messages) \
+ $(use_enable ssl https) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static)
+}
+
+# tests are broken in the portage environment.
+src_test() {
+ :
+}
+
+src_install() {
+ default
+
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.54.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.54.ebuild
new file mode 100644
index 000000000000..d782c539ac31
--- /dev/null
+++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.54.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P/_/}"
+
+DESCRIPTION="Small C library to run an HTTP server as part of another application"
+HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
+SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/12"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="epoll messages ssl static-libs test"
+
+RDEPEND="ssl? (
+ dev-libs/libgcrypt:0=
+ net-libs/gnutls
+ )"
+
+# We disable tests below because they're broken,
+# but if enabled, we'll need this.
+DEPEND="${RDEPEND}
+ test? (
+ ssl? ( net-misc/curl[ssl] )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="AUTHORS NEWS README ChangeLog"
+
+src_configure() {
+ econf \
+ --enable-bauth \
+ --enable-dauth \
+ --disable-examples \
+ --enable-postprocessor \
+ --disable-thread-names \
+ $(use_enable epoll) \
+ $(use_enable test curl) \
+ $(use_enable messages) \
+ $(use_enable ssl https) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static)
+}
+
+# tests are broken in the portage environment.
+src_test() {
+ :
+}
+
+src_install() {
+ default
+
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.55.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.55.ebuild
new file mode 100644
index 000000000000..345c5cd7e462
--- /dev/null
+++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.55.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P/_/}"
+
+DESCRIPTION="Small C library to run an HTTP server as part of another application"
+HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
+SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/12"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="epoll messages ssl static-libs test"
+
+RDEPEND="ssl? (
+ dev-libs/libgcrypt:0=
+ net-libs/gnutls
+ )"
+
+# We disable tests below because they're broken,
+# but if enabled, we'll need this.
+DEPEND="${RDEPEND}
+ test? (
+ ssl? ( net-misc/curl[ssl] )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="AUTHORS NEWS README ChangeLog"
+
+src_configure() {
+ econf \
+ --enable-bauth \
+ --enable-dauth \
+ --disable-examples \
+ --enable-postprocessor \
+ --disable-thread-names \
+ $(use_enable epoll) \
+ $(use_enable test curl) \
+ $(use_enable messages) \
+ $(use_enable ssl https) \
+ $(use_with ssl gnutls) \
+ $(use_enable static-libs static)
+}
+
+# tests are broken in the portage environment.
+src_test() {
+ :
+}
+
+src_install() {
+ default
+
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libmicrohttpd/metadata.xml b/net-libs/libmicrohttpd/metadata.xml
new file mode 100644
index 000000000000..05dae46c493a
--- /dev/null
+++ b/net-libs/libmicrohttpd/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <use>
+ <flag name="messages">enable error messages</flag>
+ <flag name="epoll">use epoll() system call</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libmirisdr/Manifest b/net-libs/libmirisdr/Manifest
new file mode 100644
index 000000000000..691ad3edc9f2
--- /dev/null
+++ b/net-libs/libmirisdr/Manifest
@@ -0,0 +1,4 @@
+EBUILD libmirisdr-9999.ebuild 558 SHA256 496357c20c7a5aae2cd6522d9a6ebe2a43597695114356ff80a7efb3790364e4 SHA512 d6f7b4c4cd1e69f6712b3506e8cbcb268ccc9e721567f3349d795ab60e777d566851da32ea793f51431cd5b0a65d2db3bc0cd31c8f708a8a75a075b74215ed93 WHIRLPOOL 0b64fed57884625656efeb68bf5639fd5106a2fd6c32b4ec9c7ac90b0c27afb0f065e3059aa50f9fe8d4974a6d4053847b8630f623fa92f45cf1e432c7a7c3d3
+MISC ChangeLog 2827 SHA256 1618ec3c5e31f988e4809b797c565c41529ac6a3c3977451f5eeff33f87aeb3a SHA512 4f34569531743b355cb110b32f568a4d8a940548ab0e0f1296201a80e8be98246a459c1e50e622e6251304680d75c850df0047e00d85b387ead0b220aa99188b WHIRLPOOL a23eb9ed8a8fa1e94a7f9f7252a8e244d7ba9187b3553c838c444e738b58cba8e1eea3b97efc44b2f6c01553bf8960cd9df9e63658eaef921d8979336d865e26
+MISC ChangeLog-2015 531 SHA256 d15a71f1af89227f3eeb8c85edacc666b590ff1cdbf501e244888a98d780663c SHA512 ff13cc59d2ddfcea5c64281e943228c5a63ee9991ab696fdb24a6f3f043071e49dd279613335a5d4844ffd3317669c7fc2271773d40d0c6a3d3e134b69a6b67d WHIRLPOOL 0730d37fddcc4ff89bc9ac6c383e99f1cfe40d97ef78b2d9ae3c2c72606817047cc03fb986694a174983a71810b07d8a55f264fef6d9c272063a62ee27c7efc4
+MISC metadata.xml 334 SHA256 225476702f22635e0d0aba2edb941b9bb769f6a0b308054717b42f90115592cf SHA512 afd8a067d88044c1c9111b889f3a729e6fbc228d4875a4b22b8d3c4a9cae1c46c37642bc8fd87c78a450438df644686dfcbb3b0dd63d319bb602b86667a6912b WHIRLPOOL 9559000e8ef3fc8f3d92210b7225ebb4983190cbb1d25482facc4b12d88201689afb094ae81aea47194109d5b25043f2083e84266b303684c440c5e6c0ebdaba
diff --git a/net-libs/libmirisdr/libmirisdr-9999.ebuild b/net-libs/libmirisdr/libmirisdr-9999.ebuild
new file mode 100644
index 000000000000..a1f29a9d951b
--- /dev/null
+++ b/net-libs/libmirisdr/libmirisdr-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils git-2 multilib
+
+DESCRIPTION="Software for the Mirics MSi2500 + MSi001 SDR platform"
+HOMEPAGE="http://cgit.osmocom.org/libmirisdr/"
+EGIT_REPO_URI="git://git.osmocom.org/libmirisdr"
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+KEYWORDS=""
+IUSE="doc static-libs"
+
+RDEPEND="virtual/libusb:1"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ cmake-utils_src_install
+ use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libmirisdr.a
+}
diff --git a/net-libs/libmirisdr/metadata.xml b/net-libs/libmirisdr/metadata.xml
new file mode 100644
index 000000000000..d11cc0ee2221
--- /dev/null
+++ b/net-libs/libmirisdr/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<maintainer type="project">
+<email>radio@gentoo.org</email>
+<name>Radio</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libmnl/Manifest b/net-libs/libmnl/Manifest
new file mode 100644
index 000000000000..230d033466ed
--- /dev/null
+++ b/net-libs/libmnl/Manifest
@@ -0,0 +1,7 @@
+DIST libmnl-1.0.3.tar.bz2 337375 SHA256 6f14336e9acdbc62c2dc71bbb59ce162e54e9af5c80153e92476c5443fe784de SHA512 c47b76a6125271ef9dce13bc8bebd415d2bbd79b6d50491d8ba23344e7e6fe0c1413fe055913ab9444203f0d73166b79f0d4b532b13b62feecde3e5a8cd442a7 WHIRLPOOL 80717c63015e8df36a11c2b7914d63747ff296fac72b4f3a66670038f94d28961ddc6dce2050c41d3ceaf195030b61535ee84a628fa1fa686d8fed013f4d6261
+DIST libmnl-1.0.4.tar.bz2 301270 SHA256 171f89699f286a5854b72b91d06e8f8e3683064c5901fb09d954a9ab6f551f81 SHA512 e2bbfb688fe41913d53c74ba7ec95b4e88ee2c52b556b8608185f2fcbd629665423a3b37f877f84426ba257cf6040fa701539d67166b00b8e3e2dfde6831a2f9 WHIRLPOOL b6372180b2f4f6e5d2fa920db05680d5376c7279c44de476114fa4fa70e00938033f67e0e7b188c3202aca7f2fb6b9e8a17121d711185da3b94a6e90987e4fcc
+EBUILD libmnl-1.0.3-r1.ebuild 733 SHA256 87e2b7be2d08cefaadea027020ba85027c674e4599d080da413216068dd6b4de SHA512 b421b130da3fc1ae964233b603db34e3070755dcd9307ba16cde2ba245f5cdc83ac4104def989ea5173bfffa8cc2c10039ffa581fde19185185498088fd79f3c WHIRLPOOL dc228c88066e77219d6b0ff820dc0f906b372f37ac6f9dfbf4b0fbb3d5bdc7700b70a41c643f7734ba093aa6a14730b10d2fc6c1a34182609423c010f6f20474
+EBUILD libmnl-1.0.4.ebuild 744 SHA256 52a4e8fe9af003e2d02fa2ebc8e1b1f7deefe43a54903f55730cc06fc3931d0b SHA512 4d0bbae3feee131a5282d481196f56bb085205462add293ea92e701823d8537b1f94300af279f302cc280508f31e7a8d448cc8ed9bbb583d8830dbe322880415 WHIRLPOOL d356637c3d73bb5a11ba35b48f44a26f0e23c9ecc734bfdd6e578171eb302bc8814f64fe17df8a82ceb2ee8f3bc90e05548c207e50efc74202060c7f66b906fc
+MISC ChangeLog 3389 SHA256 232ede0b010d0756cacb3b0b3524edbcd0bd49209d665389df0d8b29e43c89c4 SHA512 7319baf29df02ce0453202bf3a0b1dd405e9ce9bbf08429974db45ce312fcff676b61904b0e5b61487b7f6217665b123b22ba1e106479f72ea7ad8c510f72582 WHIRLPOOL 37ccbfd06c438b607891f1d7b36c986c057b95b71b06ba0f83cc8fed456c8b27a3c656fac7e9635e33651bf754f9d52a6ab22e61ec062c96a50abfc1c890bc46
+MISC ChangeLog-2015 5267 SHA256 0985626f2ff9e238d4b087dcf996bc2fba3b6dc81e02f4c72ce44c3a90863166 SHA512 02afe9debfaa154cc4d8d6954485772e7688ad29b337e174917582f246696753bc75966bc14f382dc8bd65d1de6f0249bb092684dc2cf3226cd0c7e8019abc6f WHIRLPOOL 5e56f6566af6df34783ffe00b56effb73ba0ae0851ebfa4a503f4af2c5dcdadd3e9c8957ec18065de50bdcc65684bce0b12349ca9a291588d1e4627027cc2a7a
+MISC metadata.xml 664 SHA256 8045a4bd434e874e7f3a3399d8023c9eea3a6c2b7a4ebfaca7b1619c9a5ace5d SHA512 92caf3829016e88cd6560da7ac0bf8140068b69abe8341b5a5c88ee353bdb9bcd5a5b5a1563cc9114d91529b8a134b42b685734e62127b2834393a76e01c5cd7 WHIRLPOOL 334c6c60ea2a2d7c793cdcc9f4a0da7b9c00f1833324c1393b91f6f63b1f4a36d25f10d1212aa8eb3fed1b7b382c74d10fffa0bfae1a02acb864c3cde6a17850
diff --git a/net-libs/libmnl/libmnl-1.0.3-r1.ebuild b/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
new file mode 100644
index 000000000000..e0a30551db10
--- /dev/null
+++ b/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Minimalistic netlink library"
+HOMEPAGE="http://netfilter.org/projects/libmnl"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux"
+IUSE="examples static-libs"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ gen_usr_ldscript -a mnl
+ prune_libtool_files
+
+ if use examples; then
+ find examples/ -name 'Makefile*' -delete
+ dodoc -r examples/
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/net-libs/libmnl/libmnl-1.0.4.ebuild b/net-libs/libmnl/libmnl-1.0.4.ebuild
new file mode 100644
index 000000000000..d02798549eb6
--- /dev/null
+++ b/net-libs/libmnl/libmnl-1.0.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Minimalistic netlink library"
+HOMEPAGE="http://netfilter.org/projects/libmnl"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0/0.2.0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux"
+IUSE="examples static-libs"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ gen_usr_ldscript -a mnl
+ prune_libtool_files
+
+ if use examples; then
+ find examples/ -name 'Makefile*' -delete
+ dodoc -r examples/
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/net-libs/libmnl/metadata.xml b/net-libs/libmnl/metadata.xml
new file mode 100644
index 000000000000..7d46164bb176
--- /dev/null
+++ b/net-libs/libmnl/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<longdescription lang="en">
+ libmnl is a minimalistic user-space library oriented to Netlink developers.
+ There are a lot of common tasks in parsing, validating, constructing of both
+ the Netlink header and TLVs that are repetitive and easy to get wrong. This
+ library aims to provide simple helpers that allows you to re-use code and to
+ avoid re-inventing the wheel.
+</longdescription>
+</pkgmetadata>
diff --git a/net-libs/libmrss/Manifest b/net-libs/libmrss/Manifest
new file mode 100644
index 000000000000..60910401abff
--- /dev/null
+++ b/net-libs/libmrss/Manifest
@@ -0,0 +1,5 @@
+DIST libmrss-0.19.2.tar.gz 375238 SHA256 071416adcae5c1a9317a4a313f2deb34667e3cc2be4487fb3076528ce45b210b SHA512 0997ced472b767174977b7623484c57bfd0b901a9650cb7f7738ad7393153752ebfc1f717e2eacfb5f7eb319140599128d73de7e095327ee089cd1f85ab42b24 WHIRLPOOL 1c90d50029aa2079f98b6d40f2814b8a39155e7557a5d37065838faedb36b0745b42801218993c3859286d668739fd1c10ef2d8706bc7df4e553b9af59f11429
+EBUILD libmrss-0.19.2.ebuild 966 SHA256 f353786ba2898b4d3157d636fecfa200d2d6d5ed2d1a68df17f88f9c985bf9b3 SHA512 512f9d4da1d84aefc3581a86e7b593f8a1b07c525d469b8c053c83c0f8e32555c8791717f906411f2fc45d477f8ef4f2fd1a3d96fc194ac4dafca0af0b033f2f WHIRLPOOL 1c454599b5760d3266d3ef1b5134743f8252bc039e38eb7aade2335b9b97a34a3da90739d4ddaa75258109f329568d75fcaa381099447897265500fe21311ed2
+MISC ChangeLog 2646 SHA256 d1b31734d8b5a09e7e3ce132cdc714cd93d0bf1fbd541c9d3e45dddd7417c472 SHA512 a349eb439c2aafa7d18cb901f2f4000132c18da087c884385906e73ac06038c390585de8e9a6189ea7f4458651c0c4f5c8274aba21ce429d34610512f4237a7a WHIRLPOOL 932fa215bdc1c153b00dc944da3ddcfb5be55605089b9227348294c777b14d662b6549f20679b0fc3f039b1b7456575fef4c80520c15a7d5400455332c9e93ed
+MISC ChangeLog-2015 2986 SHA256 1c942c5a162cde1580e1d30aaee81ac0f944fbd55d07c9dbb0fd11d839bcc489 SHA512 b9c98c415668339d6dc508749b39ccfee00ea93f8208652c68f18319812d4e1bc3dd757c0d195d8a4f69ef8c236344a4e02a5e1e61cde69d9f8c1ab5c2165394 WHIRLPOOL aed7731c7bd2ca71425ac60d9efca6fb1e527e17e32fb0351c84d7937864fd47330b7380d01078a584aa079d60942a9a1af4e7cc050eec58393ef09964d7e39b
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/libmrss/libmrss-0.19.2.ebuild b/net-libs/libmrss/libmrss-0.19.2.ebuild
new file mode 100644
index 000000000000..e57dc41abcab
--- /dev/null
+++ b/net-libs/libmrss/libmrss-0.19.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="A C-library for parsing and writing RSS 0.91/0.92/1.0/2.0 files or streams"
+HOMEPAGE="http://www.autistici.org/bakunin/libmrss/doc/"
+SRC_URI="http://www.autistici.org/bakunin/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~mips ppc x86"
+IUSE="doc examples static-libs"
+
+RDEPEND=">=net-libs/libnxml-0.18.0
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+# TODO: php-bindings
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ emake
+
+ if use doc; then
+ ebegin "Creating documentation"
+ doxygen doxy.conf || die "generating docs failed"
+ eend 0
+ fi
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ dohtml doc/html/*
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/test
+ doins test/*.c
+ fi
+
+ find "${D}" -name '*.la' -exec rm -f {} +
+}
diff --git a/net-libs/libmrss/metadata.xml b/net-libs/libmrss/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/libmrss/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/libnatpmp/Manifest b/net-libs/libnatpmp/Manifest
new file mode 100644
index 000000000000..6a24e8dd7fa8
--- /dev/null
+++ b/net-libs/libnatpmp/Manifest
@@ -0,0 +1,18 @@
+AUX remove-static-lib-20130911.patch 2345 SHA256 65dbd96a79057f8cc07d17ca78234ee8edd4d823ee0f77ccf7ed7f06ff54143f SHA512 f11580e48c68e28384e99deb98f19feb827cce27143cbf6c5d6cfbfe769545a634dcb5b36ecc2bce1a9b7cf64c3fb04064b1dab9f763b65798fecce8a61c4d76 WHIRLPOOL 88a7013b742bb5c7cebc13ff0aea5b0c79e77b8f16f3582bf58b5e9d6ce73742fc802ab1d4a126adb18896036a4b3efbbe7109f3802e242b7ab1912876e1a339
+AUX remove-static-lib.patch 1343 SHA256 ec07770450f3c4e5428c979a0675a84bec620aee7e73b5d3caa70030f1fc0c13 SHA512 57a029da864b55ef761b7adabe25e757290bc7a9466a650d35e9a3d12266d7b14f01a374b55c735acb87833c8c8ef2e35a7bc1fdd89d6bd20ed426e9a90264bc WHIRLPOOL b3df6ea2d5be654192a3ac20291f8ffeba1f5ac1808a6dbbec357937f1946231e18c4c0cf6eca1ebaa7cc440969530909064e3135e5e9dd7c028dc095e932fe1
+AUX respect-FLAGS-20130911.patch 1414 SHA256 477b0b82b4673206fbde1603ac8b0d28b2c9975e5241eb3cfe4e8a9202c6096d SHA512 9ffaadff34a16f41e45f69d1e0bfecb6c8edae98e63b4a84328327113ac32b4460acd16c53f5806b6c9b521ca31c21fd8e47825a0bbcb292c644354fbca11bcd WHIRLPOOL 3b27ef62d0bd8e9f40cbe79e2da3f9624cd5a129dfa27f7458f649ecdba3a48ef6ca8d4727542f66b9bc2f51953278692ebc15d769ea741b35e830a1abb82236
+AUX respect-FLAGS-20140401.patch 1133 SHA256 14b21030f87e0bdadcb40df7c5cac952f9c045d70f923844afc7fe67b3f90f59 SHA512 6bfdfc1e19337748db562ec08b4c4672b08e4870db5479e836b48bb19c7920e7c25bfd7ba667e166911ffac79e5b72e12e63fd7be393e4654b82024b78744c60 WHIRLPOOL b27b8e61edee4d1ada8787fd33cae675ee2477eb72d46f1614bd5ac16053983cc6e920ac7c468a2f27123ab033577d2383106719893e991b39ba323d6b00cb3b
+AUX respect-FLAGS.patch 999 SHA256 d5ef623185db5f9d110b84b11d4bf4ec95be85c0dace4165f96684814226518f SHA512 516651adb0f065ba8b917417ad6db873cc68ad34d8810750d9d1246cec6b372b296ad665dd3ec63e71525c4061b253e31e5c086cee512b0a9d6df597ee058c71 WHIRLPOOL 0b1dcac8df7b1c039a07ff0cf4ceddd1fa991eb5792312c0cdc6f22acbeccac908a36d671ab33160e3ad26ec6895bba0b7cbaf90b792991b041c3e4a36d5506b
+AUX respect-libdir-20120821.patch 671 SHA256 bfc3d254591c59d56c6f95f6a6bf0d4ad0072c1bb82ff1aa5cd8add527f60926 SHA512 7467d851fd53fc72b2c087bac136564c7af634ad8b91cdd1e2cfbde95bed55385fe79f6e20f4ce270ddbbe6e74917977ccedaa4c03f3cb2026ee7b7e75e9851c WHIRLPOOL ec9049b5e8476dff8e8b73c660593c5061001105bc942f7d58dd6f71d743ee45f1890e491de9c959669cee82104826d56804ee3bf644f856daa439299639ef7a
+AUX respect-libdir.patch 522 SHA256 ddef2e53d03b66e1d4db34753595269aeef24627ee3b7d05293f11d449afa840 SHA512 da90c9fcf33064daddb92ec1a6ebd7e598df75d42328c7589383c573a891ae29cae34056b2345557d54f10bb76b387310d187f6ab0132c8aec08413c32353f2a WHIRLPOOL a6696f727c36ba8a778c4c9615fee46ac315506e560114d350334cd6a6bb03f37e9a8e2de405a739be6514cfabce329faa41407c6054f222734afe4248e69124
+DIST libnatpmp-20110808.tar.gz 17762 SHA256 2c306719c8f77027c51161e90fb7fa72e1eb22475288ea6867a133316e944a69 SHA512 1bb4304319a0570602f19e4bf5ea42505de259f4f9d659ffc3f54faf67717e2e28563a50b747556bf5ee279fed6fe92ee798cddec233b7d3b97f3aad697729e2 WHIRLPOOL 2751ba8322e6c5f0b518aed544995d5e138b6f2d05772234783afdd828c18d26c63e1aeac166a8dac8615201243c977b2601da2064c0b41c46256a7e10fac578
+DIST libnatpmp-20130911.tar.gz 18744 SHA256 a30d83b9175585cc0f5bff753ce7eb5d83aaecb6222ccac670ed759fea595d7d SHA512 e7dfb3955ccc2c30e7c74c1085bc71bd9318f6171b84fbad2d8ae8bd5a227f7ceed3f60ecb49bd10e6fb838d8be3325bbf467467bf0d04e46883e3a19fa14a2d WHIRLPOOL fafb32c930e21afd8c3e10528638be4b31d03a2bcfdc481b4f2ea682ae4b7fd0cf943f32b8a395f03ceeecf42a41370fcd49a6026bc3cd449b6e4fba39cf191f
+DIST libnatpmp-20140401.tar.gz 23302 SHA256 b2ce5e626a21c795cba2d118f26e54aaa89de29d4611c440fafc49a2a5bedabb SHA512 12616f07b0a096046a35079954b8a34d474e672d7836ddac9da993a47178902aa2d781786ac76c55c5f16cfdf6a7e7258f92fec3850714ad9cd50208d854c4c2 WHIRLPOOL c12bfbc83d1f30f20162c3fddd5452f53d6ef556452845c6303420718a92568c8e8174939a3ef2702045d7c2061f5aff57bfe81c3516452d84172ef6ecf08849
+DIST libnatpmp-20150609.tar.gz 24392 SHA256 e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0 SHA512 e50b1f68ce9254bb2f068ddc37417a3c417b80f7b3fb3d84e3e9af4a144d89e204ab993b54c01657335e855d0124a8fcbbf96ce78db7b9ae0b03b6eb79de2e09 WHIRLPOOL 27243e13e445a8bbe592257e1029264c3535ef1c71ccaf476708e91c8ead39b778a2d07e6bc42500444b910a005d5be092c5a453df225a556975e97f4184b7c7
+EBUILD libnatpmp-20110808-r1.ebuild 722 SHA256 9f75551bd53d6b4cfe6867f911cbe3086d4202e8300e1eb3378a6cef15106fbf SHA512 00fc715e7b04c7ca32ec24bb6fdfb72592745edd2a4ad77c27248d908b567da26b91c108d655b996e24c10f3ed9d383cf72735ec245921683e3625aea3f9840c WHIRLPOOL 0e14a3d41ef272adcf39587e0790dc03ca5ba72e689b98350676ea8475ee7eb0d2a2b1823758c16104984c21771267f99c8e8ec65905aaeb15179382fbd1b680
+EBUILD libnatpmp-20130911.ebuild 786 SHA256 39864f2898a4612d590fb6e41bfc3229d78d5411c6af6eddf1a94dd87910d7bb SHA512 1b698ebab057ef860b759240b133c343ce89cc4696b21250be00fec5050b86c632154d18b3a96925de52fa766a2f702d56b8c53c0252caac364bfe52a5ae914b WHIRLPOOL 7c7cdb34bae6e540cdc517c983ae4423d1fe6d487d68c1f9c87656a95ae56532fbda1d26fb2e7dfd8577a829372c0af76e77322dd059d20eeafcf2c3f33419a9
+EBUILD libnatpmp-20140401-r1.ebuild 882 SHA256 bef4cb87a00c2297ab737895ba5a77b96be25029f2525db349112926239c636c SHA512 ccee86e0aff0d6ee4cc581872019efd4261ca4a4ee33cb651681c77c1900ae49728cdf9effb7f3603a96f74ba22db86657f035c311ffc318ea6f0d5ad95c9925 WHIRLPOOL 722d27b2d2937fad968adf62cd01ab41382766ceb920e2000fda7e77620fedc151413e2c896db35c694d59a9177eaf89c40767c23b5baa2a593067e0a59e15fc
+EBUILD libnatpmp-20150609.ebuild 888 SHA256 aede4769e4b74fa06df15378a89cfefd52931089dabce4a712ff3fdf75785afb SHA512 890fead9eb9beddf4c894edb10bcae213cefee4da4deab6e2153fe1ab8bc0d1c7ad59d4978435bf23ab7de4e98c3a3154e4a55ad943ba60fa15fae8a1f489351 WHIRLPOOL 0484607259da1751000377fe63f88c2eb6d6fe9bc8bdd222f94100a38d50053e77b24924b23adc1c4467257e4354664bfc5b6bd009fd53c9ea941d3f9dfe6dd4
+MISC ChangeLog 2638 SHA256 20c6a2df5e40b47849c3186268f4e318f143951e66c3aaa686ed981e4be82ed1 SHA512 48e6481831ca69f0416593942f64bb7acc24319a6f60f3cb2c6f745a2d0f1531caf381ffe048b9e4c6ef20367c4b106c74d271abac092933074c58ad79b56e24 WHIRLPOOL c2bb784624056f3161b7eb6afce743bed5aec99092902c7100b33b1d055f4d01e6a24a568a6faa311e5fe1cb825d70b508cb4236f0781333dfb1331555a56444
+MISC ChangeLog-2015 5047 SHA256 307f3064a7f601e4b48b67e0c2ed23f2488fc61cd83290a1c1b4db76277bf7fe SHA512 2a2d7a9df24954154bfacd4d2abd56857745bdf2c0305ce71eb0d0cf89a1544bb369fec8bacb70b2ad7b9e3972fe8a24cbae6b569a7fc19536cdbd8cc1197d9e WHIRLPOOL e64f0bb1f6795a0006c6fe44b2ea99889e28a1c3f5b22d23ac669ce8ba3ae4516b12c5f500c1871c4c4b8fbc2a20d48b27bec3696385753b42caf5375ec7675b
+MISC metadata.xml 252 SHA256 a590e5133cd97a615db4f977b0e28e5c60c56cac76eb3d339109cdf379003b60 SHA512 cbda7bf9832872764ae776ce16b2966c37a2ba3a1982d9817006fd6b82d7b17146434cde428bf114062a483e9053d2acdcdd004695e6ebf428d19cdc09937c65 WHIRLPOOL b209a730a169969b9e3c4d4612368bc5b30bfa5fae275d98d83ba96fd0ad01d308a8fed4f7d67a7c9fa417c624dfeb23ce89ab58923a8a0b5b1bd68ee73f288c
diff --git a/net-libs/libnatpmp/files/remove-static-lib-20130911.patch b/net-libs/libnatpmp/files/remove-static-lib-20130911.patch
new file mode 100644
index 000000000000..a2c1f516c363
--- /dev/null
+++ b/net-libs/libnatpmp/files/remove-static-lib-20130911.patch
@@ -0,0 +1,74 @@
+diff -Naur libnatpmp-20130911.orig/Makefile libnatpmp-20130911/Makefile
+--- libnatpmp-20130911.orig/Makefile 2013-09-13 07:00:55.874343916 -0400
++++ libnatpmp-20130911/Makefile 2013-09-13 07:03:33.733351101 -0400
+@@ -35,7 +35,6 @@
+
+ OBJS = $(LIBOBJS) testgetgateway.o natpmpc.o natpmp-jni.o
+
+-STATICLIB = libnatpmp.a
+ ifeq ($(OS), Darwin)
+ SHAREDLIB = libnatpmp.dylib
+ JNISHAREDLIB = libjninatpmp.dylib
+@@ -58,7 +57,7 @@
+
+ HEADERS = natpmp.h
+
+-EXECUTABLES = testgetgateway natpmpc-shared natpmpc-static
++EXECUTABLES = testgetgateway natpmpc-shared
+
+ INSTALLPREFIX ?= $(PREFIX)/usr
+ INSTALLDIRINC = $(INSTALLPREFIX)/include
+@@ -72,9 +71,9 @@
+
+ .PHONY: all clean depend install cleaninstall installpythonmodule
+
+-all: $(STATICLIB) $(SHAREDLIB) $(EXECUTABLES)
++all: $(SHAREDLIB) $(EXECUTABLES)
+
+-pythonmodule: $(STATICLIB) libnatpmpmodule.c setup.py
++pythonmodule: libnatpmpmodule.c setup.py
+ python setup.py build
+ touch $@
+
+@@ -82,18 +81,17 @@
+ python setup.py install
+
+ clean:
+- $(RM) $(OBJS) $(EXECUTABLES) $(STATICLIB) $(SHAREDLIB) $(JAVACLASSES) $(JNISHAREDLIB)
++ $(RM) $(OBJS) $(EXECUTABLES) $(SHAREDLIB) $(JAVACLASSES) $(JNISHAREDLIB)
+ $(RM) pythonmodule
+ $(RM) -r build/ dist/ libraries/
+
+ depend:
+ makedepend -f$(MAKEFILE_LIST) -Y $(OBJS:.o=.c) 2>/dev/null
+
+-install: $(HEADERS) $(STATICLIB) $(SHAREDLIB) natpmpc-shared
++install: $(HEADERS) $(SHAREDLIB) natpmpc-shared
+ $(INSTALL) -d $(INSTALLDIRINC)
+ $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC)
+ $(INSTALL) -d $(INSTALLDIRLIB)
+- $(INSTALL) -m 644 $(STATICLIB) $(INSTALLDIRLIB)
+ $(INSTALL) -m 644 $(SHAREDLIB) $(INSTALLDIRLIB)/$(SONAME)
+ $(INSTALL) -d $(INSTALLDIRBIN)
+ $(INSTALL) -m 755 natpmpc-shared $(INSTALLDIRBIN)/natpmpc
+@@ -142,20 +140,13 @@
+ $(RM) $(addprefix $(INSTALLDIRINC), $(HEADERS))
+ $(RM) $(INSTALLDIRLIB)/$(SONAME)
+ $(RM) $(INSTALLDIRLIB)/$(SHAREDLIB)
+- $(RM) $(INSTALLDIRLIB)/$(STATICLIB)
+
+ testgetgateway: testgetgateway.o getgateway.o
+ $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+-natpmpc-static: natpmpc.o $(STATICLIB)
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+-
+ natpmpc-shared: natpmpc.o $(SHAREDLIB)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+-$(STATICLIB): $(LIBOBJS)
+- $(AR) crs $@ $?
+-
+ $(SHAREDLIB): $(LIBOBJS)
+ ifeq ($(OS), Darwin)
+ $(CC) $(CFLAGS) $(LDFLAGS) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
diff --git a/net-libs/libnatpmp/files/remove-static-lib.patch b/net-libs/libnatpmp/files/remove-static-lib.patch
new file mode 100644
index 000000000000..dae64601b9cb
--- /dev/null
+++ b/net-libs/libnatpmp/files/remove-static-lib.patch
@@ -0,0 +1,44 @@
+--- libnatpmp-20110715/Makefile
++++ libnatpmp-20110715/Makefile
+@@ -33,7 +32,7 @@
+
+ HEADERS = natpmp.h
+
+-EXECUTABLES = testgetgateway natpmpc-shared natpmpc-static
++EXECUTABLES = testgetgateway natpmpc-shared
+
+ INSTALLPREFIX ?= $(PREFIX)/usr
+ INSTALLDIRINC = $(INSTALLPREFIX)/include
+@@ -45,9 +44,9 @@
+
+ .PHONY: all clean depend install cleaninstall installpythonmodule
+
+-all: $(STATICLIB) $(SHAREDLIB) $(EXECUTABLES)
++all: $(SHAREDLIB) $(EXECUTABLES)
+
+-pythonmodule: $(STATICLIB) libnatpmpmodule.c setup.py
++pythonmodule: libnatpmpmodule.c setup.py
+ python setup.py build
+ touch $@
+
+@@ -55,11 +54,10 @@
+ depend:
+ makedepend -f$(MAKEFILE_LIST) -Y $(OBJS:.o=.c) 2>/dev/null
+
+-install: $(HEADERS) $(STATICLIB) $(SHAREDLIB) natpmpc-shared
++install: $(HEADERS) $(SHAREDLIB) natpmpc-shared
+ $(INSTALL) -d $(INSTALLDIRINC)
+ $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC)
+ $(INSTALL) -d $(INSTALLDIRLIB)
+- $(INSTALL) -m 644 $(STATICLIB) $(INSTALLDIRLIB)
+ $(INSTALL) -m 644 $(SHAREDLIB) $(INSTALLDIRLIB)/$(SONAME)
+ $(INSTALL) -d $(INSTALLDIRBIN)
+ $(INSTALL) -m 755 natpmpc-shared $(INSTALLDIRBIN)/natpmpc
+@@ -76,7 +74,6 @@
+ $(RM) $(addprefix $(INSTALLDIRINC), $(HEADERS))
+ $(RM) $(INSTALLDIRLIB)/$(SONAME)
+ $(RM) $(INSTALLDIRLIB)/$(SHAREDLIB)
+- $(RM) $(INSTALLDIRLIB)/$(STATICLIB)
+
+ testgetgateway: testgetgateway.o getgateway.o
+
diff --git a/net-libs/libnatpmp/files/respect-FLAGS-20130911.patch b/net-libs/libnatpmp/files/respect-FLAGS-20130911.patch
new file mode 100644
index 000000000000..df36e2d4a4a0
--- /dev/null
+++ b/net-libs/libnatpmp/files/respect-FLAGS-20130911.patch
@@ -0,0 +1,53 @@
+diff -Naur libnatpmp-20130911.orig/Makefile libnatpmp-20130911/Makefile
+--- libnatpmp-20130911.orig/Makefile 2013-09-10 16:15:06.000000000 -0400
++++ libnatpmp-20130911/Makefile 2013-09-12 13:20:29.191447842 -0400
+@@ -5,7 +5,7 @@
+ # http://miniupnp.free.fr/libnatpmp.html
+
+ OS = $(shell uname -s)
+-CC = gcc
++CC ?= gcc
+ INSTALL = install
+ VERSION = $(shell cat VERSION)
+
+@@ -22,6 +22,7 @@
+ # APIVERSION is used in soname
+ APIVERSION = 1
+ #LDFLAGS = -Wl,--no-undefined
++GENTOO_CFLAGS := $(CFLAGS)
+ CFLAGS = -Os
+ #CFLAGS = -g -O0
+ CFLAGS += -fPIC
+@@ -52,6 +53,8 @@
+ endif
+ endif
+
++CFLAGS := $(CFLAGS) $(GENTOO_CFLAGS)
++
+ HEADERS = natpmp.h
+
+ EXECUTABLES = testgetgateway natpmpc-shared natpmpc-static
+@@ -144,19 +147,19 @@
+ $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+ natpmpc-static: natpmpc.o $(STATICLIB)
+- $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+ natpmpc-shared: natpmpc.o $(SHAREDLIB)
+- $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+ $(STATICLIB): $(LIBOBJS)
+ $(AR) crs $@ $?
+
+ $(SHAREDLIB): $(LIBOBJS)
+ ifeq ($(OS), Darwin)
+- $(CC) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
+ else
+- $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $^ $(EXTRA_LD)
++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $^ $(EXTRA_LD)
+ endif
+
+
diff --git a/net-libs/libnatpmp/files/respect-FLAGS-20140401.patch b/net-libs/libnatpmp/files/respect-FLAGS-20140401.patch
new file mode 100644
index 000000000000..0a007b169a79
--- /dev/null
+++ b/net-libs/libnatpmp/files/respect-FLAGS-20140401.patch
@@ -0,0 +1,36 @@
+diff -Naur libnatpmp-20140401.orig/Makefile libnatpmp-20140401/Makefile
+--- libnatpmp-20140401.orig/Makefile 2013-12-09 15:52:28.000000000 -0500
++++ libnatpmp-20140401/Makefile 2014-04-02 10:03:42.128609226 -0400
+@@ -5,7 +5,7 @@
+ # http://miniupnp.free.fr/libnatpmp.html
+
+ OS = $(shell uname -s)
+-CC = gcc
++CC ?= gcc
+ INSTALL = install -p
+ ARCH = $(shell uname -m | sed -e s/i.86/i686/)
+ VERSION = $(shell cat VERSION)
+@@ -153,19 +153,19 @@
+ $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+ natpmpc-static: natpmpc.o $(STATICLIB)
+- $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+ natpmpc-shared: natpmpc.o $(SHAREDLIB)
+- $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
+
+ $(STATICLIB): $(LIBOBJS)
+ $(AR) crs $@ $?
+
+ $(SHAREDLIB): $(LIBOBJS)
+ ifeq ($(OS), Darwin)
+- $(CC) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
+ else
+- $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $^ $(EXTRA_LD)
++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $^ $(EXTRA_LD)
+ endif
+
+
diff --git a/net-libs/libnatpmp/files/respect-FLAGS.patch b/net-libs/libnatpmp/files/respect-FLAGS.patch
new file mode 100644
index 000000000000..0338d1810e67
--- /dev/null
+++ b/net-libs/libnatpmp/files/respect-FLAGS.patch
@@ -0,0 +1,40 @@
+--- libnatpmp-20110808/Makefile
++++ libnatpmp-20110808/Makefile
+@@ -4,13 +4,12 @@
+ # http://miniupnp.free.fr/libnatpmp.html
+
+ OS = $(shell uname -s)
+-CC = gcc
++CC ?= gcc
+ INSTALL = install
+
+ # APIVERSION is used in soname
+ APIVERSION = 1
+-#LDFLAGS = -Wl,--no-undefined
+-CFLAGS = -O -fPIC -Wall -DENABLE_STRNATPMPERR
++CFLAGS := -Wall -DENABLE_STRNATPMPERR $(CFLAGS)
+
+ LIBOBJS = natpmp.o getgateway.o
+
+@@ -75,16 +75,18 @@
+ testgetgateway: testgetgateway.o getgateway.o
+
+ natpmpc-shared: natpmpc.o $(SHAREDLIB)
+- $(CC) $(LDFLAGS) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
++
++getgateway.o natpmp.o: CFLAGS += -fPIC
+
+ $(STATICLIB): $(LIBOBJS)
+ $(AR) crs $@ $?
+
+ $(SHAREDLIB): $(LIBOBJS)
+ ifeq ($(OS), Darwin)
+- $(CC) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
+ else
+- $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $^
+ endif
+
+ # DO NOT DELETE
diff --git a/net-libs/libnatpmp/files/respect-libdir-20120821.patch b/net-libs/libnatpmp/files/respect-libdir-20120821.patch
new file mode 100644
index 000000000000..90b7167a1d4f
--- /dev/null
+++ b/net-libs/libnatpmp/files/respect-libdir-20120821.patch
@@ -0,0 +1,20 @@
+diff -Naur libnatpmp-20120821.orig/Makefile libnatpmp-20120821/Makefile
+--- libnatpmp-20120821.orig/Makefile 2012-08-26 20:26:27.000000000 -0400
++++ libnatpmp-20120821/Makefile 2012-08-26 20:27:07.000000000 -0400
+@@ -4,6 +4,7 @@
+ # (c) 2007-2011 Thomas Bernard
+ # http://miniupnp.free.fr/libnatpmp.html
+
++GENTOO_LIBDIR ?= lib
+ OS = $(shell uname -s)
+ CC ?= gcc
+ INSTALL = install
+@@ -41,7 +42,7 @@
+
+ INSTALLPREFIX ?= $(PREFIX)/usr
+ INSTALLDIRINC = $(INSTALLPREFIX)/include
+-INSTALLDIRLIB = $(INSTALLPREFIX)/lib
++INSTALLDIRLIB = $(INSTALLPREFIX)/$(GENTOO_LIBDIR)
+ INSTALLDIRBIN = $(INSTALLPREFIX)/bin
+
+ .PHONY: all clean depend install cleaninstall installpythonmodule
diff --git a/net-libs/libnatpmp/files/respect-libdir.patch b/net-libs/libnatpmp/files/respect-libdir.patch
new file mode 100644
index 000000000000..07f5d87ddf98
--- /dev/null
+++ b/net-libs/libnatpmp/files/respect-libdir.patch
@@ -0,0 +1,19 @@
+--- libnatpmp-20110808/Makefile
++++ libnatpmp-20110808/Makefile
+@@ -6,6 +6,7 @@
+ # (c) 2007-2011 Thomas Bernard
+ # http://miniupnp.free.fr/libnatpmp.html
+
++GENTOO_LIBDIR ?= lib
+ OS = $(shell uname -s)
+ CC ?= gcc
+ INSTALL = install
+@@ -36,7 +37,7 @@
+
+ INSTALLPREFIX ?= $(PREFIX)/usr
+ INSTALLDIRINC = $(INSTALLPREFIX)/include
+-INSTALLDIRLIB = $(INSTALLPREFIX)/lib
++INSTALLDIRLIB = $(INSTALLPREFIX)/$(GENTOO_LIBDIR)
+ INSTALLDIRBIN = $(INSTALLPREFIX)/bin
+
+ .PHONY: all clean depend install cleaninstall installpythonmodule
diff --git a/net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild b/net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild
new file mode 100644
index 000000000000..7974ad84d71f
--- /dev/null
+++ b/net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="An alternative protocol to UPnP IGD specification"
+HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
+SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="sparc"
+IUSE="static-libs"
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-FLAGS.patch
+ epatch "${FILESDIR}"/respect-libdir.patch
+ use static-libs || epatch "${FILESDIR}"/remove-static-lib.patch
+ tc-export CC
+}
+
+src_install() {
+ emake PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
+
+ dodoc Changelog.txt README
+ doman natpmpc.1
+}
diff --git a/net-libs/libnatpmp/libnatpmp-20130911.ebuild b/net-libs/libnatpmp/libnatpmp-20130911.ebuild
new file mode 100644
index 000000000000..465682c0de61
--- /dev/null
+++ b/net-libs/libnatpmp/libnatpmp-20130911.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="An alternative protocol to UPnP IGD specification"
+HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
+SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 arm ~mips ppc ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="static-libs"
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-FLAGS-${PV}.patch
+ epatch "${FILESDIR}"/respect-libdir-20120821.patch
+ use static-libs || epatch "${FILESDIR}"/remove-static-lib-${PV}.patch
+ tc-export CC
+}
+
+src_install() {
+ emake PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
+
+ dodoc Changelog.txt README
+ doman natpmpc.1
+}
diff --git a/net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild b/net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild
new file mode 100644
index 000000000000..4dea416d72bd
--- /dev/null
+++ b/net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="An alternative protocol to UPnP IGD specification"
+HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
+SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="static-libs"
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-FLAGS-20140401.patch
+ epatch "${FILESDIR}"/respect-libdir-20120821.patch
+ use static-libs || epatch "${FILESDIR}"/remove-static-lib-20130911.patch
+ tc-export CC
+}
+
+src_install() {
+ # Override HEADERS for missing declspec.h wrt #506832
+ emake HEADERS='declspec.h natpmp.h' PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
+
+ dodoc Changelog.txt README
+ doman natpmpc.1
+}
diff --git a/net-libs/libnatpmp/libnatpmp-20150609.ebuild b/net-libs/libnatpmp/libnatpmp-20150609.ebuild
new file mode 100644
index 000000000000..557cd58f561e
--- /dev/null
+++ b/net-libs/libnatpmp/libnatpmp-20150609.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="An alternative protocol to UPnP IGD specification"
+HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
+SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="static-libs"
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-FLAGS-20140401.patch
+ epatch "${FILESDIR}"/respect-libdir-20120821.patch
+ use static-libs || epatch "${FILESDIR}"/remove-static-lib-20130911.patch
+ tc-export CC
+}
+
+src_install() {
+ # Override HEADERS for missing declspec.h wrt #506832
+ emake HEADERS='declspec.h natpmp.h' PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
+
+ dodoc Changelog.txt README
+ doman natpmpc.1
+}
diff --git a/net-libs/libnatpmp/metadata.xml b/net-libs/libnatpmp/metadata.xml
new file mode 100644
index 000000000000..d920e3ba3e56
--- /dev/null
+++ b/net-libs/libnatpmp/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 type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libndp/Manifest b/net-libs/libndp/Manifest
new file mode 100644
index 000000000000..eafb8ae38eeb
--- /dev/null
+++ b/net-libs/libndp/Manifest
@@ -0,0 +1,5 @@
+DIST libndp-1.6.tar.gz 364406 SHA256 0c7dfa84e013bd5e569ef2c6292a6f72cfaf14f4ff77a77425e52edc33ffac0e SHA512 ad2df92c5b908f5c40e6e1920195ef97d560b667f78dd4ba5b5418d2dc294a69357fa704b9137f76a4d1ab473f0ec5f1bc4644f25f6a3f0802b75b961638be22 WHIRLPOOL ec2b619810975d94abc900fe4d7c5e77b7ef5acee6f6763fd7e4d756a6ba8d1a7a1e4720df1dbe388e6159b9ad881296a6150f39ec0a6ab61e50475d06dc0b41
+EBUILD libndp-1.6-r1.ebuild 561 SHA256 45f0d8be09f147723db4a049d778cd11a73a05dc03bbd795bdeffefb9a5fc2f5 SHA512 87a169f5f04f5b1210e5f8c2fe51b280f97f2b55ce1da5c9f07dbe984617d990494a2d4fe03afbe717794e3237ab8cab1a4b25740beb7c9f6b22e64a29e0b671 WHIRLPOOL cbf791351f99c48e7c948049f8b119363c44cb4ec971bc95f7fb9dd48d80f7d99e38e0a2b9347e42406732dbc24ebf2e8d11e3b51b2d4009775e8cb80d9a6033
+MISC ChangeLog 4416 SHA256 c542760f7552a960eb57d155ef9147aad3c033d53cbd7bd079647b9a36c389d1 SHA512 6402560d3023a76d0aa74c27a804c829fedbe8f3ba01a3e7a2b3e13fbc13eb67f2d3287f845f82ac4b0b60d8831789685e40f340fdb437628d1cd491aa25882d WHIRLPOOL b47c0d7b811cc161125e6dc01f032668474aedfbd44e533aa49c35e5c59561a63e288f9960e7f31956ff5358fb0012fd37b26ccffaa0082535210d6920f23cb5
+MISC ChangeLog-2015 2454 SHA256 e7139d0cfd3071dbe7a3a4dc8de2197d63572b49b5e28253ae976f9636590048 SHA512 109d193ba5a4179403e99248e68e2721f9cc2b98ab999edee471a196b450b007df39bad70f259c1785d86a4b7d7169bb1a27cb032b3df5d328989e243947fe83 WHIRLPOOL dbe08b9bcf0d7211bcda6660be5d6e5341211fa07bdae944dbc10c2f85fc002194d864ca6aa8bf37468a869503616f1a9bacefcb8d3ecf7322dd7abd7f8ac4cc
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/libndp/libndp-1.6-r1.ebuild b/net-libs/libndp/libndp-1.6-r1.ebuild
new file mode 100644
index 000000000000..bc813203b594
--- /dev/null
+++ b/net-libs/libndp/libndp-1.6-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2 multilib-minimal
+
+DESCRIPTION="Library for Neighbor Discovery Protocol"
+HOMEPAGE="http://libndp.org"
+SRC_URI="http://libndp.org/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ppc ppc64 ~sparc x86"
+
+DEPEND=""
+RDEPEND=""
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ gnome2_src_configure \
+ --disable-static \
+ --enable-logging
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
diff --git a/net-libs/libndp/metadata.xml b/net-libs/libndp/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/libndp/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnet/Manifest b/net-libs/libnet/Manifest
new file mode 100644
index 000000000000..f490080dd52e
--- /dev/null
+++ b/net-libs/libnet/Manifest
@@ -0,0 +1,20 @@
+AUX 1.0.2a-endian.patch 393 SHA256 7090030460cd78da2dd008f7d10f203ac7361dbb1c9689bc50cd1470f5334a5e SHA512 f21cc84faa2336705fb5dc7a723d1657cb2930636b42fac13539a8280b177b3e5480738063f252024ddad17d2ba156f470d0e965f3ef39c8b3aee2fcac90c123 WHIRLPOOL b6669dead10a0a89d9ec6109d3e7f38538d7947c747514fc4e1d95e2c4e87d92d96eb7043d437e2d29ca402699f5a8bd8bec3a7e839959fdf80c4f842780f67c
+AUX 1.0.2a-slot.patch 6244 SHA256 114d3cac893c4893992b1e2a30921cfca80d3a852e42c65815d0b62bae5dc66f SHA512 6f800d91cb16077df967227feed58ee61b60ab1d248eda5fe788c21ba2cd7c404647213f3721f19bdbe80be0c45d571234dd82f010fe9fc70c4c270c97e138b5 WHIRLPOOL 04a0d53898667c3bce724ea7392250bb65ffcf799dec63130c410576dd1dc7c62c5e4160d4e46c63a4d59e157c3d7384a423ce966f94f76064f21c892e2574d6
+AUX libnet-1.1.6-_SOURCE.patch 735 SHA256 4a6977ec122f872b6c34ecedce96e0fe6b4439f30b46181efa74cd36b21da6c1 SHA512 e8385c169e00df9dc146b54c6e836f3c364d219c1f041c4967505a4d77bd106437c54286f01adb0c74dc06a2dfffa19bdeb71fad457661cab0a7c0d8f717605f WHIRLPOOL 14d49393ab578c7086a4f7aa291c2ac4d8350228c1d68d49c1dcf63bd74097f00ad63e7bc1f12c4d34cfaa9f7420857d17d828aef052de73e4ca294aef2e4c7d
+AUX libnet-1.1.6-musl.patch 686 SHA256 74c9fdb9f26d550c0561488d2ebe12d582b1ce90ec23b95e2e7904ce8c62e467 SHA512 23bbf5e87b704b2d4cf3f6da308b29d840950fde67eb67294ed44bc18eb327b4a2bcd04218dbd1a27a2445b3df7a98af72b1d5bd1afc83cb448a9e8f403aec01 WHIRLPOOL 3be6365ae5b14852b1522e3bdadb8e29c9112d778441428fb16ef664a791b1e037e63d718d940f89a029890eec84a2d541aab9a36ce0b56aa6404ba499447f8f
+AUX libnet-1.2-_SOURCE.patch 735 SHA256 b3f472dc02f42d0394a6c35cfaf1d9db9ff508ba46469f01d6271bc9c6c4abf9 SHA512 698138d6d39984090fb906cc0201b720c399f0a55dd06cc8857159f0e045bd980c195876ef2662fa4e54d6dfd12e1a106e6c829dc201226c97296c2d24bc2a59 WHIRLPOOL 259681c5872e137f617d46a79168415133a1629687132e8b32c1f3e999ac00489b9490c710ba988d15d3537a8e43aa6cd61f1ba44055a4c245917bdb38e1211d
+AUX libnet-1.2-rc.patch 333 SHA256 9b2f74b5868e62491123daaf5d7ced3857208c7310e6adff9cecf62e0d7b7686 SHA512 144796cbcf550982a523df46763a60ee5261c8fd80adc674c0a2075b1003623785a1c5589e6ff53a5472e43f3f16d859e71ba6fa98aaaabc767ceb4805676bcd WHIRLPOOL 7cbf04ee0353eb088c1da7dbb7f04464242932310f4f8d7f45bac00a7b8893581ba1e36ea65849f0a65a02304ddd2854ba48bf05d76371df321282720d61f7ab
+AUX libnet-1.2-sizeof.patch 239 SHA256 7f9699dedd5be7754a94a1927c3441f07a23c663311090bb984f147734835e35 SHA512 ef1967dc7fc18b5573dcb617a855b3401ca843936a690f26827effb61dc8b30c5efe9b3a5f3cfae448a134c57517cbf14e8bca4cb82629c65b61dccea9ff0bae WHIRLPOOL 16e8273c71950e56414357d4920f5fb20af5986654db10b492517212551b0235e62059be4a87ef913964b0a1fd322d1f9f368c55edd2a9e1dd3453afee393a1b
+AUX libnet-1.2-socklen_t.patch 145 SHA256 9b4ae9226fd170bd904715f094b310b5f82fce0067fdb2e15b7b3861c342bbd1 SHA512 31e7dbee2e6d747a69d86f9cfba43d1f591d97f2868b14c9fa16884f5d1650a7602ca10e875afe5779477d9358db6121fd66371fe183a865860376fb809aef97 WHIRLPOOL ef47eabab27e63c328054fa45fb42c6bfbcc14dcf1e64c95fda13e3836b528155cf9e3c3ccc870cd2a074d48a9f3fc9db51b66c41c3710fcedeb4d1db2ac069e
+AUX libnet-gcc33-fix 563 SHA256 b533c27f07bb27489b0a3941546788447cab6e767b489961ba7fc776ee49ed47 SHA512 39ebf252e994ff5dc0701d7a7b6162f595157c8f48a85f6624cc3b20235b01872821d2df8de7dceac7db0df79f39e68201c0607e184f40f4d63b7525a5c3e869 WHIRLPOOL a071bbeabce303f44e47210c72876887ce88870c5e294226a3f4773e1c2267e6000df3a0fc6f089d3a46fc16636884fc876fda029eb37aa13c138ed2d9c2c735
+DIST libnet-1.0.2a.tar.gz 140191 SHA256 7c7f2e8ccb47bb47072c5cd583fea5e90ab892c75889b625346b60d10464459a SHA512 2e9a73bd767e1f46eea92e18ddd83cc3179144c8cc5b1a22b4dba50fee16173c951be4dd647a247bd7067c33b9e33489a6efb313ce1ea0c61c4a06009c3c4d95 WHIRLPOOL 9b3748fe93191643a01cab0ce76283aa11079960efca5daaf52d7a0aa830c3791a200711c9d4b4634739328282bbc4f73b24a15406b4bf5353838ef24c19afcc
+DIST libnet-1.1.6.tar.gz 1202970 SHA256 d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a SHA512 a67e502b0e6957ca590e47cb50b0472dd83d622d84c62818d665d771616df91b5a8fa8fcf1040d13b7860aaabaf338152ef40f66ab97c3fc9502edb08cea0bb6 WHIRLPOOL eb0596d8d6d1b0434ce8d1ec7069826e326effa5ad215e607dc7afc495ae0bdee443f6661deb5b54c8564abd8fa0ccbf4f509726d3caa81767d80f4f5079b379
+DIST libnet-1.2-rc3.tar.gz 676205 SHA256 72c380785ad44183005e654b47cc12485ee0228d7fa6b0a87109ff7614be4a63 SHA512 4f1c5c1a72e2c35ca3add772cb1af63e8245bb5c127e4a74fb9f619f987a4ea047bf17caaa292e9b7fa7642635773b90975d013644be0383dca93d688ca8430d WHIRLPOOL 617b01b3e0ec150b89fd0a5160a84704e82a14c584735d87bca6bf7f0847e461d99e72fe2d632761af229c4379881b0ddf270171071052cd288a2ab54c3d3a02
+EBUILD libnet-1.0.2a-r5.ebuild 1531 SHA256 24705f3487b745d7e48a558d3840e962fadd6c003804de00f96f2d92d64d851d SHA512 b5135c8a839a8525217f7faceeda87277212355b212eb328cc40efe87ea50c87e5c210a9edbb53243376b804b43456bcbf0c307c4cd0732f692861420c4f2ebc WHIRLPOOL 8d8a47c934dc607db96765bc77c478a0e1663c01cd6cd93643c71c91f987a67ed546a30d5074099e42b4a5b3e8879ffb6321aa49f0f8647f4210d4a7023d1fcd
+EBUILD libnet-1.1.6-r1.ebuild 1114 SHA256 6625511da0cdbf53d325363ee7764968f32398a4c8efd42b0a134857a1ffdf6d SHA512 a77594e6295082ca6f2e5b276246487be09a7f3a24c1067e2d6d73f7472465cbf2f0b17ed6bf9ba98dbaaac497a21b097104ed8ded5fce59f1d8fbe7157aff1e WHIRLPOOL c8440f5ecbeb313b9dc8b384805ab5554007f46758de5c64e16329a65a4d48d61bbd3b00c72b0cd56101c9a09a8b48060611f0d675ef2de236d9ad0b9857969e
+EBUILD libnet-1.1.6.ebuild 981 SHA256 8882e8767a447ecfc0b8da0f92e8789747f4a48ebe56c1af5b81b29aa4cd6d5c SHA512 8ff5ae9af523cfeb2edd31427ef14bdac5358a6ba104bf53b8328483bdac37bf86ebd0d96901b436860e1900da4fa7c737692d6e7a14e21b3d0f4e3b60a5ad0c WHIRLPOOL eed5ac02905a00cc8b3a975c6ed5e58097a9ab6f23ae71c80ecbaf6f19c6d1e93c4a75f860e57860f7364821851ecfa6a509470cc5038395e8b8857512363f83
+EBUILD libnet-1.2_rc3-r1.ebuild 1161 SHA256 e6b29e47eeb16d5bac50920358e77b907abd928782d1bf1616ecac2e5af6ab54 SHA512 fa57847f6208a610f5226e5bc5b1086c40991d60b95f1c7df1934c6932a5e8f448e8380729cbdbf4d225adbdd8997938df7d00b8cdb4fb03c5c96e61c8508079 WHIRLPOOL e93f4fa9fed8ec7786903b7188e579b950f4e0b11bddb61e29c79c9e5328f62160eca26ebfa2f0f3db7affe31661add87bad8cd92e96697f6c668bb2e5a2de40
+EBUILD libnet-1.2_rc3.ebuild 1071 SHA256 203d5b2f7bb369948acb6575eecae4a19873173f78fcdd5c76f57b9ae973eb21 SHA512 b941b03be64f3f58f11b71c8eb1265a574bc87cffdfe3006216ac0f90e01a7b315e9add93cbcbe40ef67cba1e83a9f4ed7a3bfb2df2fbbd7d18ea5c290683e0c WHIRLPOOL 1ee00194b20c4ceffd707e0e29c69451a2a10a4ce4fbf6c5322be93b5431f490d78e3429d06b98f2697634e510cd21b14b22f5260895aa75a8aa4867cd3c4c77
+MISC ChangeLog 3909 SHA256 d7c8d822fe3315677f21aab46383abb9a6c3e1730e6287a11860cdfe5d6fc519 SHA512 45729fa57d70cdb23290084bb5d8df700906cb135050c4c53dd2602ef81f1b823fa0959d103c4dc55631b0f0a4fb09a3f32d20c2987086b1f00eda75200b7663 WHIRLPOOL 851bce891af2217adc529d45df1081aaa69d63404a7e96b59828bddc9175918016bbd8d0ca0c75738a56f27ceb532fe0005ad1880fc9904e6f015425959818df
+MISC ChangeLog-2015 14403 SHA256 3d991588757e91d5ce50e796cc68d0720ed3271cc52039b0d0062dd417112de7 SHA512 9f80a328225ef65e67dfc272560526c1e69f95535c726e871a37b59989d40a065433689d9a97c36351846ec2e57c07aacc53618284dd3f3178244964a71d68d7 WHIRLPOOL a80a78583276f74e817ef116f90c37d5c3a0f1e32cf1b510b8f445a2635954d14f9a0b250e5ff2475e9ec2412efdf713f67ab1e6942be0105684a49a850107ac
+MISC metadata.xml 1223 SHA256 3d4dabab07b2e2f32ae52a429d9d40d0d23d29bb60c27c5874f1bc5e168e5afa SHA512 2049508adf4563ee25fdd204a6f2c22a08e53605df0b95d7a5a41c407b5b2d01263132b2aca71a24f8bbc57b64a91146ca2130117fd6181b6ba67079e6c9a10c WHIRLPOOL ad11e98301cd4f439e671391eca5ca466a3bea8a93b9af9d37156198a13b2e162efe05a4938863681224d2708a855999e8b3439c613a7e26c50950155cdee086
diff --git a/net-libs/libnet/files/1.0.2a-endian.patch b/net-libs/libnet/files/1.0.2a-endian.patch
new file mode 100644
index 000000000000..aad0bacb2f2e
--- /dev/null
+++ b/net-libs/libnet/files/1.0.2a-endian.patch
@@ -0,0 +1,20 @@
+--- a/include/libnet.h
++++ b/include/libnet.h
+@@ -32,6 +32,17 @@
+ #ifndef __LIBNET_H
+ #define __LIBNET_H
+
++#include <endian.h>
++#if __BYTE_ORDER == __LITTLE_ENDIAN
++# define LIBNET_LIL_ENDIAN 1
++#else
++# if __BYTE_ORDER == __BIG_ENDIAN
++# define LIBNET_BIG_ENDIAN 1
++# else
++# error unrecognized __BYTE_ORDER
++# endif
++#endif
++
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
diff --git a/net-libs/libnet/files/1.0.2a-slot.patch b/net-libs/libnet/files/1.0.2a-slot.patch
new file mode 100644
index 000000000000..bcc0d56113f5
--- /dev/null
+++ b/net-libs/libnet/files/1.0.2a-slot.patch
@@ -0,0 +1,189 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -18,17 +18,17 @@
+ LIB_PREFIX = @libdir@/
+ MAN_PREFIX = @MAN_PREFIX@
+
+-LIBNET = libnet
+-LIBPWRITE = libpwrite
++LIBNET = libnet-1.0
++LIBPWRITE = libpwrite-1.0
+ LIB = lib/$(LIBNET).a
+ MAN = doc/$(LIBNET).3
+ INCLUDE = include/$(LIBNET).h
+-INCLUDE-H = include/$(LIBNET)/$(LIBNET)-headers.h
+-INCLUDE-F = include/$(LIBNET)/$(LIBNET)-functions.h
+-INCLUDE-S = include/$(LIBNET)/$(LIBNET)-structures.h
+-INCLUDE-M = include/$(LIBNET)/$(LIBNET)-macros.h
+-INCLUDE-A = include/$(LIBNET)/$(LIBNET)-asn1.h
+-INCLUDE-O = include/$(LIBNET)/$(LIBNET)-ospf.h
++INCLUDE-H = include/libnet/$(LIBNET)-headers.h
++INCLUDE-F = include/libnet/$(LIBNET)-functions.h
++INCLUDE-S = include/libnet/$(LIBNET)-structures.h
++INCLUDE-M = include/libnet/$(LIBNET)-macros.h
++INCLUDE-A = include/libnet/$(LIBNET)-asn1.h
++INCLUDE-O = include/libnet/$(LIBNET)-ospf.h
+ CONFIG = $(LIBNET)-config
+ DEFINES += @DEFS@
+ RANLIB = @RANLIB@
+@@ -94,7 +94,7 @@
+ install: libnet
+ $(ENSUREDIR) $(DESTDIR)$(prefix) 755
+ $(ENSUREDIR) $(DESTDIR)$(LIB_PREFIX) 755
+- $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX)$(LIBNET) 755
++ $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX)/libnet/ 755
+ $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX) 755
+ $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755
+ $(ENSUREDIR) $(DESTDIR)$(BIN_PREFIX) 755
+@@ -102,12 +102,12 @@
+ rm -f $(DESTDIR)$(LIB_PREFIX)$(LIBPWRITE).a
+ cd $(DESTDIR)$(LIB_PREFIX); $(LN) -f -s $(LIBNET).a $(LIBPWRITE).a
+ $(INSTALL_DATA) $(INCLUDE) $(DESTDIR)$(INC_PREFIX)
+- $(INSTALL_DATA) $(INCLUDE-H) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+- $(INSTALL_DATA) $(INCLUDE-F) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+- $(INSTALL_DATA) $(INCLUDE-S) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+- $(INSTALL_DATA) $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+- $(INSTALL_DATA) $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+- $(INSTALL_DATA) $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
++ $(INSTALL_DATA) $(INCLUDE-H) $(DESTDIR)$(INC_PREFIX)/libnet/
++ $(INSTALL_DATA) $(INCLUDE-F) $(DESTDIR)$(INC_PREFIX)/libnet/
++ $(INSTALL_DATA) $(INCLUDE-S) $(DESTDIR)$(INC_PREFIX)/libnet/
++ $(INSTALL_DATA) $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)/libnet/
++ $(INSTALL_DATA) $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)/libnet/
++ $(INSTALL_DATA) $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)/libnet/
+ $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
+ $(INSTALL_DATA) $(CONFIG) $(DESTDIR)$(BIN_PREFIX)
+
+@@ -142,6 +142,6 @@
+ cd support/bpf-lkm/etherspoof && rm -rf Makefile; \
+ fi
+ rm -f config.log config.cache config.status Makefile include/config.h \
+- version.h support/bpf-lkm/etherspoof conftest* libnet-config
++ version.h support/bpf-lkm/etherspoof conftest* libnet-1.0-config
+
+ # EOF
+--- a/configure.in
++++ b/configure.in
+@@ -261,6 +261,6 @@
+ AC_OUTPUT(Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
+ test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
+ test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
+- libnet-config, chmod +x libnet-config)
++ libnet-1.0-config, chmod +x libnet-1.0-config)
+
+ dnl EOF
+--- a/include/libnet.h
++++ b/include/libnet.h
+@@ -74,12 +74,12 @@
+ #include <errno.h>
+ #include <assert.h>
+
+-#include "./libnet/libnet-headers.h"
+-#include "./libnet/libnet-structures.h"
+-#include "./libnet/libnet-macros.h"
+-#include "./libnet/libnet-asn1.h"
+-#include "./libnet/libnet-functions.h"
+-#include "./libnet/libnet-ospf.h"
++#include "./libnet/libnet-1.0-headers.h"
++#include "./libnet/libnet-1.0-structures.h"
++#include "./libnet/libnet-1.0-macros.h"
++#include "./libnet/libnet-1.0-asn1.h"
++#include "./libnet/libnet-1.0-functions.h"
++#include "./libnet/libnet-1.0-ospf.h"
+
+ #define LIBNET_VERSION "1.0.2a"
+
+--- a/libnet-config.in
++++ b/libnet-config.in
+@@ -9,12 +9,12 @@
+
+ libnet_defines="@LIBNET_CONFIG_DEFINES@"
+ libnet_cflags="@LIBNET_CONFIG_CFLAGS@"
+-libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet"
++libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet-1.0"
+
+ usage()
+ {
+ cat <<EOF
+-Usage: libnet-config [OPTIONS]
++Usage: libnet-1.0-config [OPTIONS]
+ Options:
+ [--libs]
+ [--cflags]
+--- a/test/Ethernet/Makefile.in
++++ b/test/Ethernet/Makefile.in
+@@ -10,7 +10,7 @@
+ CFLAGS = @CFLAGS@
+ OBJECTS = arp.o tcp.o icmp_mask.o get_address.o poink.o
+ DEFINES += @DEFS@
+-LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@
++LIBS = -L../../lib/ -lnet-1.0 @ADDITIONAL_LIBS@
+
+ .c.o:
+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
+--- a/test/ICMP/Makefile.in
++++ b/test/ICMP/Makefile.in
+@@ -15,7 +15,7 @@
+ ping_of_death.o
+
+ DEFINES += @DEFS@
+-LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@
++LIBS = -L../../lib/ -lnet-1.0 @ADDITIONAL_LIBS@
+
+ .c.o:
+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
+--- a/test/IP/Makefile.in
++++ b/test/IP/Makefile.in
+@@ -10,7 +10,7 @@
+ OBJECTS =
+
+ DEFINES += @DEFS@
+-LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@
++LIBS = -L../../lib/ -lnet-1.0 @ADDITIONAL_LIBS@
+
+ .c.o:
+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
+--- a/test/OSPF/Makefile.in
++++ b/test/OSPF/Makefile.in
+@@ -12,7 +12,7 @@
+ ospf_request.o \
+
+ DEFINES += @DEFS@
+-LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@
++LIBS = -L../../lib/ -lnet-1.0 @ADDITIONAL_LIBS@
+
+ .c.o:
+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
+--- a/test/Random/Makefile.in
++++ b/test/Random/Makefile.in
+@@ -9,7 +9,7 @@
+ CFLAGS = @CFLAGS@
+ OBJECTS = prand_trials.o
+ DEFINES += @DEFS@
+-LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@
++LIBS = -L../../lib/ -lnet-1.0 @ADDITIONAL_LIBS@
+
+ .c.o:
+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
+--- a/test/TCP/Makefile.in
++++ b/test/TCP/Makefile.in
+@@ -13,7 +13,7 @@
+ tcp+data+ipopt.o
+
+ DEFINES += @DEFS@
+-LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@
++LIBS = -L../../lib/ -lnet-1.0 @ADDITIONAL_LIBS@
+
+ .c.o:
+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
+--- a/test/UDP/Makefile.in
++++ b/test/UDP/Makefile.in
+@@ -11,7 +11,7 @@
+ udp+data.o
+
+ DEFINES += @DEFS@
+-LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@
++LIBS = -L../../lib/ -lnet-1.0 @ADDITIONAL_LIBS@
+
+ .c.o:
+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
diff --git a/net-libs/libnet/files/libnet-1.1.6-_SOURCE.patch b/net-libs/libnet/files/libnet-1.1.6-_SOURCE.patch
new file mode 100644
index 000000000000..25ddbc7b1104
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.1.6-_SOURCE.patch
@@ -0,0 +1,20 @@
+--- a/configure.in
++++ b/configure.in
+@@ -157,14 +157,14 @@
+ case "$target_os" in
+
+ *linux*)
+- AC_DEFINE(_BSD_SOURCE, 1,
++ AC_DEFINE(_DEFAULT_SOURCE, 1,
+ [Define as necessary to "unhide" header symbols.])
+- AC_DEFINE(__BSD_SOURCE, 1,
++ AC_DEFINE(__DEFAULT_SOURCE, 1,
+ [Define as necessary to "unhide" header symbols.])
+ AC_DEFINE(__FAVOR_BSD, 1,
+ [Define if we should favor the BSD APIs when possible in Linux.])
+
+- LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
++ LIBNET_CONFIG_DEFINES="-D_DEFAULT_SOURCE -D__DEFAULT_SOURCE -D__FAVOR_BSD"
+ AC_CHECK_HEADERS(net/ethernet.h, \
+ LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
+ ;;
diff --git a/net-libs/libnet/files/libnet-1.1.6-musl.patch b/net-libs/libnet/files/libnet-1.1.6-musl.patch
new file mode 100644
index 000000000000..238fb8acbef1
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.1.6-musl.patch
@@ -0,0 +1,29 @@
+--- a/src/libnet_link_linux.c
++++ b/src/libnet_link_linux.c
+@@ -30,26 +30,15 @@
+ #include <sys/time.h>
+
+ #include <net/if.h>
+-#if (__GLIBC__)
+ #include <netinet/if_ether.h>
+ #include <net/if_arp.h>
+-#else
+-#include <linux/if_arp.h>
+-#include <linux/if_ether.h>
+-#endif
+
+ #if (HAVE_PACKET_SOCKET)
+ #ifndef SOL_PACKET
+ #define SOL_PACKET 263
+ #endif /* SOL_PACKET */
+-#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
+ #include <netpacket/packet.h>
+ #include <net/ethernet.h> /* the L2 protocols */
+-#else
+-#include <asm/types.h>
+-#include <linux/if_packet.h>
+-#include <linux/if_ether.h> /* The L2 protocols */
+-#endif
+ #endif /* HAVE_PACKET_SOCKET */
+
+ #include "../include/libnet.h"
diff --git a/net-libs/libnet/files/libnet-1.2-_SOURCE.patch b/net-libs/libnet/files/libnet-1.2-_SOURCE.patch
new file mode 100644
index 000000000000..d9c74f40e300
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.2-_SOURCE.patch
@@ -0,0 +1,20 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -157,14 +157,14 @@
+ case "$target_os" in
+
+ *linux*)
+- AC_DEFINE(_BSD_SOURCE, 1,
++ AC_DEFINE(_DEFAULT_SOURCE, 1,
+ [Define as necessary to "unhide" header symbols.])
+- AC_DEFINE(__BSD_SOURCE, 1,
++ AC_DEFINE(__DEFAULT_SOURCE, 1,
+ [Define as necessary to "unhide" header symbols.])
+ AC_DEFINE(__FAVOR_BSD, 1,
+ [Define if we should favor the BSD APIs when possible in Linux.])
+
+- LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
++ LIBNET_CONFIG_DEFINES="-D_DEFAULT_SOURCE -D__DEFAULT_SOURCE -D__FAVOR_BSD"
+ AC_CHECK_HEADERS(net/ethernet.h, \
+ LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
+ ;;
diff --git a/net-libs/libnet/files/libnet-1.2-rc.patch b/net-libs/libnet/files/libnet-1.2-rc.patch
new file mode 100644
index 000000000000..b9e44a3491cb
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.2-rc.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,7 +4,7 @@
+ dnl
+ dnl Process this file with autoconf to produce a configure script.
+
+-AC_INIT([libnet],[1.2-rc3])
++AC_INIT([libnet],[1.2])
+ AC_MSG_RESULT(beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ...)
+ AC_CANONICAL_TARGET
+ AC_CONFIG_SRCDIR([src/libnet_build_ip.c])
diff --git a/net-libs/libnet/files/libnet-1.2-sizeof.patch b/net-libs/libnet/files/libnet-1.2-sizeof.patch
new file mode 100644
index 000000000000..603224267fdf
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.2-sizeof.patch
@@ -0,0 +1,11 @@
+--- a/sample/sebek.c
++++ b/sample/sebek.c
+@@ -167,7 +167,7 @@
+
+ if (payload_flag)
+ {
+- memset(cmd, 0, sizeof(cmd));
++ memset(cmd, 0, length);
+ memcpy(cmd, payload, (payload_s < 12 ? payload_s : 12));
+ length = payload_s;
+ }
diff --git a/net-libs/libnet/files/libnet-1.2-socklen_t.patch b/net-libs/libnet/files/libnet-1.2-socklen_t.patch
new file mode 100644
index 000000000000..bce36704477f
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.2-socklen_t.patch
@@ -0,0 +1,11 @@
+--- a/src/libnet_raw.c
++++ b/src/libnet_raw.c
+@@ -77,7 +77,7 @@
+ #else
+ BOOL n;
+ #endif
+- int len;
++ socklen_t len;
+
+ #ifdef SO_SNDBUF
+
diff --git a/net-libs/libnet/files/libnet-gcc33-fix b/net-libs/libnet/files/libnet-gcc33-fix
new file mode 100644
index 000000000000..6f711abc8ebf
--- /dev/null
+++ b/net-libs/libnet/files/libnet-gcc33-fix
@@ -0,0 +1,13 @@
+--- Libnet-1.0.2a-orig/include/libnet.h 2001-02-07 00:19:25.000000000 +0100
++++ Libnet-1.0.2a/include/libnet.h 2003-07-24 18:34:33.000000000 +0200
+@@ -84,8 +84,8 @@
+ #define LIBNET_VERSION "1.0.2a"
+
+ #if (!LIBNET_LIL_ENDIAN && !LIBNET_BIG_ENDIAN)
+-#error "byte order has not been specified, you'll
+-need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the
++#error "byte order has not been specified, you'll \
++need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the \
+ documentation regarding the libnet-config script."
+ #endif
+
diff --git a/net-libs/libnet/libnet-1.0.2a-r5.ebuild b/net-libs/libnet/libnet-1.0.2a-r5.ebuild
new file mode 100644
index 000000000000..babc5f8db28e
--- /dev/null
+++ b/net-libs/libnet/libnet-1.0.2a-r5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)"
+HOMEPAGE="http://www.packetfactory.net/libnet/"
+SRC_URI="http://www.packetfactory.net/libnet/dist/deprecated/${P}.tar.gz"
+
+LICENSE="BSD BSD-2 HPND"
+SLOT="1.0"
+KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+S=${WORKDIR}/Libnet-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/libnet-gcc33-fix \
+ "${FILESDIR}"/${PV}-slot.patch
+
+ use arm && epatch "${FILESDIR}"/${PV}-endian.patch
+
+ cd "${S}"
+ mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config"
+
+ cd "${S}"/include
+ ln -s libnet.h libnet-${SLOT}.h
+
+ cd libnet
+ for f in *.h ; do
+ ln -s ${f} ${f/-/-${SLOT}-} || die "linking ${f}"
+ done
+
+ cd "${S}"/doc
+ ln -s libnet.3 libnet-${SLOT}.3 || die "linking manpage"
+
+ cd "${S}"
+ sed -i configure.in -e '/CCOPTS=/d;/CFLAGS=/s|.*|:|' || die
+
+ eautoconf
+
+ tc-export AR RANLIB
+}
+
+src_install() {
+ default
+ doman "${D}"/usr/man/man3/libnet-1.0.3
+ rm -r "${D}"/usr/man
+
+ dodoc VERSION doc/{README,TODO*,CHANGELOG*}
+ newdoc README README.1st
+ docinto example ; dodoc example/libnet*
+ docinto Ancillary ; dodoc doc/Ancillary/*
+}
+
+pkg_postinst(){
+ elog "libnet ${SLOT} is deprecated !"
+ elog "config script: libnet-${SLOT}-config"
+ elog "manpage: libnet-${SLOT}"
+ elog "library: libnet-${SLOT}.a"
+ elog "include: libnet-${SLOT}.h"
+}
diff --git a/net-libs/libnet/libnet-1.1.6-r1.ebuild b/net-libs/libnet/libnet-1.1.6-r1.ebuild
new file mode 100644
index 000000000000..8311759829dc
--- /dev/null
+++ b/net-libs/libnet/libnet-1.1.6-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="library providing an API for commonly used low-level network functions"
+HOMEPAGE="http://libnet-dev.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}-dev/${P}.tar.gz"
+
+LICENSE="BSD BSD-2 HPND"
+SLOT="1.1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc static-libs"
+
+DEPEND="sys-devel/autoconf"
+
+DOCS=(
+ README doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
+ doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
+)
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.6-_SOURCE.patch
+ "${FILESDIR}"/${PN}-1.1.6-musl.patch
+ "${FILESDIR}"/${PN}-1.2-sizeof.patch
+)
+
+src_prepare() {
+ default
+
+ mv configure{.in,.ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ dodoc -r doc/html
+
+ docinto sample
+ dodoc sample/*.[ch]
+ fi
+
+ prune_libtool_files
+}
diff --git a/net-libs/libnet/libnet-1.1.6.ebuild b/net-libs/libnet/libnet-1.1.6.ebuild
new file mode 100644
index 000000000000..f73669dd3a78
--- /dev/null
+++ b/net-libs/libnet/libnet-1.1.6.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)"
+HOMEPAGE="http://libnet-dev.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}-dev/${P}.tar.gz"
+
+LICENSE="BSD BSD-2 HPND"
+SLOT="1.1"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc static-libs"
+
+DEPEND="sys-devel/autoconf"
+RDEPEND=""
+
+DOCS=(
+ README doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
+ doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
+)
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ dohtml -r doc/html/*
+ docinto sample
+ dodoc sample/*.[ch]
+ fi
+
+ if ! use static-libs; then
+ rm "${ED}"/usr/lib*/libnet.la || die
+ fi
+}
diff --git a/net-libs/libnet/libnet-1.2_rc3-r1.ebuild b/net-libs/libnet/libnet-1.2_rc3-r1.ebuild
new file mode 100644
index 000000000000..ea59655bc924
--- /dev/null
+++ b/net-libs/libnet/libnet-1.2_rc3-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="library providing an API for commonly used low-level network functions"
+HOMEPAGE="http://libnet-dev.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}-dev/${P/_/-}.tar.gz"
+
+LICENSE="BSD BSD-2 HPND"
+SLOT="1.1"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc static-libs"
+
+DOCS=(
+ README doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
+ doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
+)
+
+S=${WORKDIR}/${P/_/-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.6-musl.patch
+ "${FILESDIR}"/${PN}-1.2-_SOURCE.patch
+ "${FILESDIR}"/${PN}-1.2-rc.patch
+ "${FILESDIR}"/${PN}-1.2-sizeof.patch
+ "${FILESDIR}"/${PN}-1.2-socklen_t.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ docinto html
+ dodoc -r doc/html/*
+ docinto sample
+ dodoc sample/*.[ch]
+ fi
+
+ prune_libtool_files
+}
diff --git a/net-libs/libnet/libnet-1.2_rc3.ebuild b/net-libs/libnet/libnet-1.2_rc3.ebuild
new file mode 100644
index 000000000000..c541794f8e7d
--- /dev/null
+++ b/net-libs/libnet/libnet-1.2_rc3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)"
+HOMEPAGE="http://libnet-dev.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}-dev/${P/_/-}.tar.gz"
+
+LICENSE="BSD BSD-2 HPND"
+SLOT="1.1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc static-libs"
+
+DEPEND="sys-devel/autoconf"
+RDEPEND=""
+
+DOCS=(
+ README doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
+ doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
+)
+
+S=${WORKDIR}/${P/_/-}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.2-rc.patch
+ eautoreconf
+}
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ dohtml -r doc/html/*
+ docinto sample
+ dodoc sample/*.[ch]
+ fi
+
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libnet/metadata.xml b/net-libs/libnet/metadata.xml
new file mode 100644
index 000000000000..ff5a627bc7f9
--- /dev/null
+++ b/net-libs/libnet/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <longdescription>
+Libnet is a high-level API (toolkit) allowing the application
+programmer to construct and inject network packets. It provides a
+portable and simplified interface for low-level network packet
+shaping, handling and injection. Libnet hides much of the tedium
+of packet creation from the application programmer such as
+multiplexing, buffer management, arcane packet header
+information, byte-ordering, OS-dependent issues, and much more.
+Libnet features portable packet creation interfaces at the IP
+layer and link layer, as well as a host of supplementary and
+complementary functionality. Using libnet, quick and simple
+packet assembly applications can be whipped up with little
+effort. With a bit more time, more complex programs can be
+written (Traceroute and ping were easily rewritten using libnet
+and libpcap).
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">libnet-dev</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libnetfilter_acct/Manifest b/net-libs/libnetfilter_acct/Manifest
new file mode 100644
index 000000000000..29d101ec1b14
--- /dev/null
+++ b/net-libs/libnetfilter_acct/Manifest
@@ -0,0 +1,7 @@
+DIST libnetfilter_acct-1.0.2.tar.bz2 292718 SHA256 0128f19c3419fbd84f7e6d46b13a33ef7bda9b9f5e493bc5ae1882d087514b71 SHA512 6bd299d509736ce3335e051137851d7f1a3751eafa380b55e9c73a25afb5d45c904ce9acefd4f934f1d21f2ff85b06faed4b072dc74d74e3a8b93342d59f5cdf WHIRLPOOL 00f178afa4720d0ebfa0af2bce14d386d756940eedced27d4a58c68d6593627e70126f8f65bbe73fd8ace8e4200ebd774237c2fc7fda2029f5f7e4a3738e688a
+DIST libnetfilter_acct-1.0.3.tar.bz2 296999 SHA256 4250ceef3efe2034f4ac05906c3ee427db31b9b0a2df41b2744f4bf79a959a1a SHA512 5ca332840663941182343fdc0d5e45116bba71a97a913db0b385ea37ef31a04f8267a2279b7a2862ce338c6eeb093bb3ef9908f57770e64acf5d2b2266d3bfe5 WHIRLPOOL 4b0284b5b50e2d10997b7225960073cbe9c3a03fe3402cfa6b442dd511ae1b362b6d2384ec5cd433e0f0f75491e8df98d2262edfa75648179a101eca107288e3
+EBUILD libnetfilter_acct-1.0.2.ebuild 1121 SHA256 001451c15f7ea09f979f2e75288ddfc1ab26701df7d7afcae729f50f44e9730a SHA512 3313bb4b59f1aac2a8e92bf359a4ffe248cc1109d097fab09bf21076a76b738a404fddce88df02832b9e001d853b2e54ad6796e5a6c229dc37b905436265008e WHIRLPOOL 57f484c8612474365b5def0e36fe2d6b389e214e78605541ecea95e9858fff3a342b9ea03c6c01375b1d73c445f234e3175b9e5baa93cb57b96b649bf76474cd
+EBUILD libnetfilter_acct-1.0.3.ebuild 1130 SHA256 83be24bc5095ddfed3c20cfe171a9443f460ed0f2b010b83abdf8b289290c5ed SHA512 15b6cea02a20e3c576437cfc9a350fcaebbad18f7d35ca1528f61f93223c95f4ff168f78e95f3144a72a272d9db053aafcb7a217c44c8e0f9d461a0a6e09df27 WHIRLPOOL 683b8c21b3a86eb1514c7262dc612ad11c372cc4df4697463cdc37a07942cb58dea7310af841486ebe0088266fdb9d59be523ab62aa513459644f8d939fb2003
+MISC ChangeLog 2630 SHA256 f87dc77da1f68d5c89cef23dbdfcb61f81a3cc5a4e93b070c4ac4e31ecd8fa62 SHA512 01fc0b04bf082972e6785db7a44b0a51575994d90630d1b760637a2622fbaf1cdfde4d97b4359d923c84bc39a3f8597f137b6369995b8dda2006dc0bd7e39d08 WHIRLPOOL 85d631132b8a66ef8fbeaf62b44d138d206a923a222253677a1ba69fade200128ffad7ab59e08e85f59159784628ab610c4c379f3e3b4215a47e5168a003529e
+MISC ChangeLog-2015 3034 SHA256 c457478dcd963b616f11b63728bf9f942686952e3ffc99fce4184122d12e003d SHA512 ae3462cc2b5b519bb722ac9b91fa7eca9f8dab042bde8ef023de76d503a0b27b478f5ab69bc1b8c20a8947388a9ae2797753b2f2382865dc5eb072aee097d537 WHIRLPOOL ffb711ff838f31e28acf6ad317143efa4dbebca2b27bdb7bd2cd204b9e857b20947f814454fd15a50f2bc8646bbd01872c8a8ef6c520cd83aa4ed343c8ac2036
+MISC metadata.xml 519 SHA256 f775016bc4e900527f4eee3f5c8620826836f79dfe9a10f50225ece4b355bd4c SHA512 74ed6a2a7992dde7e6061489e378e2aacc5ce4b39fa7b09c31ffb06cdc3b75c75f880d3ee2a5caffbd0523a00c4fc12572f6c3343deddc0be2939a392b893f75 WHIRLPOOL 4c071c92f256260daef7c8daefef029eaba2797ee50192ed38f147622cc6f80baf8b609aa34842e62ecd6adeaa33f2758b822731ca278bf974810ae93e5b8f91
diff --git a/net-libs/libnetfilter_acct/libnetfilter_acct-1.0.2.ebuild b/net-libs/libnetfilter_acct/libnetfilter_acct-1.0.2.ebuild
new file mode 100644
index 000000000000..8844234286f5
--- /dev/null
+++ b/net-libs/libnetfilter_acct/libnetfilter_acct-1.0.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils linux-info multilib
+
+DESCRIPTION="Userspace library providing interface to extended accounting infrastructure of NetFilter"
+HOMEPAGE="http://netfilter.org/projects/libnetfilter_acct"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ~ppc64 x86 ~amd64-linux"
+IUSE="examples"
+
+RDEPEND="net-libs/libmnl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( README )
+CONFIG_CHECK="~NETFILTER_NETLINK_ACCT"
+
+pkg_setup() {
+ kernel_is lt 3 3 && ewarn "This package will work with kernel version 3.3 or higher"
+ linux-info_pkg_setup
+}
+
+src_configure() {
+ econf \
+ --libdir="${EPREFIX}"/$(get_libdir)
+}
+
+src_install() {
+ default
+ dodir /usr/$(get_libdir)/pkgconfig/
+ mv "${ED}"/{,usr/}$(get_libdir)/pkgconfig/${PN}.pc || die
+
+ if use examples; then
+ find examples/ -name "Makefile*" -exec rm -f '{}' + || die 'find failed'
+ dodoc -r examples/
+ docompress -x /usr/share/doc/${P}/examples
+ fi
+
+ prune_libtool_files
+}
diff --git a/net-libs/libnetfilter_acct/libnetfilter_acct-1.0.3.ebuild b/net-libs/libnetfilter_acct/libnetfilter_acct-1.0.3.ebuild
new file mode 100644
index 000000000000..07077ef36d8b
--- /dev/null
+++ b/net-libs/libnetfilter_acct/libnetfilter_acct-1.0.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils linux-info multilib
+
+DESCRIPTION="Userspace library providing interface to extended accounting infrastructure of NetFilter"
+HOMEPAGE="http://netfilter.org/projects/libnetfilter_acct"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux"
+IUSE="examples"
+
+RDEPEND="
+ net-libs/libmnl
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS=( README )
+CONFIG_CHECK="~NETFILTER_NETLINK_ACCT"
+
+pkg_setup() {
+ kernel_is lt 3 3 && ewarn "This package will work with kernel version 3.3 or higher"
+ linux-info_pkg_setup
+}
+
+src_configure() {
+ econf \
+ --libdir="${EPREFIX}"/$(get_libdir)
+}
+
+src_install() {
+ default
+
+ dodir /usr/$(get_libdir)/pkgconfig/
+ mv "${ED}"/{,usr/}$(get_libdir)/pkgconfig/${PN}.pc || die
+
+ if use examples; then
+ find examples/ -name "Makefile*" -exec rm -f '{}' + || die 'find failed'
+ dodoc -r examples/
+ docompress -x /usr/share/doc/${P}/examples
+ fi
+
+ prune_libtool_files
+}
diff --git a/net-libs/libnetfilter_acct/metadata.xml b/net-libs/libnetfilter_acct/metadata.xml
new file mode 100644
index 000000000000..fdd68c46c81d
--- /dev/null
+++ b/net-libs/libnetfilter_acct/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+<email>netmon@gentoo.org</email>
+<name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<longdescription lang="en">
+libnetfilter_acct is the userspace library that provides a programming
+interface (API) to the extended accounting infrastructure. This information can
+then be used by <pkg>net-firewall/nfacct</pkg>
+</longdescription>
+</pkgmetadata>
diff --git a/net-libs/libnetfilter_conntrack/Manifest b/net-libs/libnetfilter_conntrack/Manifest
new file mode 100644
index 000000000000..df5aa7d9f63a
--- /dev/null
+++ b/net-libs/libnetfilter_conntrack/Manifest
@@ -0,0 +1,9 @@
+DIST libnetfilter_conntrack-1.0.4.tar.bz2 428147 SHA256 d9ec4a3caf49417f2b0a2d8d44249133e8c3ec78c757b7eb8c273f1cb6929c7d SHA512 53b5e5b26ca58abd6b9d83979bbb61aac4b24a85aa425c6b4fc4472b8273e30393678d6acd1aec0e959916b919cd561582ddd4b2ee656b6cb774aa9d9819c046 WHIRLPOOL 5028ca559a734019c6796b6ed73b120a1cf84c27748ae640f084ee5f1fd0c9b0f34e485a526761e35eb29c0e65e9126853b489bdb5e7d45b7cbe960113584a82
+DIST libnetfilter_conntrack-1.0.5.tar.bz2 418516 SHA256 fc9d7daf43605a73045de203bbfc0bca3e07f72d4ac61bcf656868f48692d73a SHA512 683913e20fdcb175440b621247c03019116f95002ca6fa5556df48e964377fc02b65203cb7286349f3a7d67ae6338c0ee9225562aa727a325f5534b211b9ae24 WHIRLPOOL bf7edf344841f2d0c1b1be785e27a9852930d83d566dc850c5c8be40ebd0809504a13fa7e73bb471d0fe334a6fb37e31af11e4e1b0b3113313484542ee58495f
+DIST libnetfilter_conntrack-1.0.6.tar.bz2 422998 SHA256 efcc08021284e75f4d96d3581c5155a11f08fd63316b1938cbcb269c87f37feb SHA512 05b3b63928d46ed114048848c48094a762c6a7acc93fcdbe9473e82cc67851ef1a0d33b68b8fd388271b76b519c4d2ac93fd802043fa9a9da46cda5b262a1fc7 WHIRLPOOL 07a20e76d0b80407d9605f8f1ebe858899385101808dda0b7ea22bd36f7fcd93a9fac961fe12a6643d36e656a83b52b503050e6f466b35e1f82898acbc242779
+EBUILD libnetfilter_conntrack-1.0.4.ebuild 966 SHA256 5436befada803ef28017731cb60e6cf47e092dc8f6fc3d044d17995218b455c5 SHA512 360c5bbf5db8dcd6d2ead6373efee752b0a25da8af0a99f3955d45ddf4d83f2ef954eeebde360817b5d7c5931d2c4bc37f019a4c1074f98fb1bd51f1c7a82592 WHIRLPOOL e57e749738020b29316aa8d155d2d64224b745244004766a2e60fcad773de2aee5737480a7dafd08544dc87aa49e87513f724c33e9eee4d27dc9f6895599ca09
+EBUILD libnetfilter_conntrack-1.0.5.ebuild 979 SHA256 6c854c4beb7ab25f66fb420526e69a6c70a78dc697bec9de931fe878fe5cc191 SHA512 872f16047546ca0431a52b391dffaceb6b38503a3bb96900e6c7d38c79b43e5c7b3b4c79b15b468b07de6a5b934c9b088dc0e7ccde61be5b7165939f3a15906e WHIRLPOOL 9f299b541b7d525f173b602058c4fc7b65fc66e4ba8e8828eeaf4cdbf96ab05431546eeba0e3de7c100c99835fd7ee2b00662a52ebf14ef5af42bd100f6681c5
+EBUILD libnetfilter_conntrack-1.0.6.ebuild 973 SHA256 70fa2d098d7fc529e2c094b1cc061381b365761e47ce5034e1dd083d0115f9f0 SHA512 889d59d6cafe8c58d72f9b01430cc2b40f070b1c6b7a5087895b0c65c721843e1d4a2f7eeb7ff76bec4e4ec58dd7cc12e85b949ca8a8fbd791a3e251cdb4d823 WHIRLPOOL 58012da7d9e38f916460440ff8b1b86ded8fb6eb77355f3d9dffcf44fb5633fa1c1598e77182257a3dbaad5f4ef93527ff8de7bf004a82d127aeb8b6f9598b8c
+MISC ChangeLog 3230 SHA256 000275fc0ade12c646d3fb4a3b7695036dce1f7456e5cbfd8596e18be6b93468 SHA512 5c4dc36b2b27342bacfa3ecb0b30460d6164c5df22a7d060c6c80572ec48f7e6443f4b5c31c010a55e5a4acee5eb9cda0c802b74d42e919c7e8af13dafcc7615 WHIRLPOOL 31ade411979a394cdef6afa27db28b15ec196f0cd27c1e42288a975ce7bea63a840562f30ee98ab65c7112a8f1fa71a42deab90708d05c4787362241261cb98b
+MISC ChangeLog-2015 13690 SHA256 9fed31d052341e770b7b63989d741883c1c5140a16152966d1eec1ad973eda29 SHA512 612f65a78178454273d0b8413277e72dda638998292ef90453bd137d1f7d57d52cc71a02c7516f52b229a01a6c5dbfc11c2822b7a18bc99bf3095a2849b41f4f WHIRLPOOL 55aeb584751f879575aaa0d08895bc1c8df67133c6511805e1f1f1f6936f96518f6b2d5621c238e1d058d6f25e97a519f9f75a84f5e22f9e6658d32a182b2f79
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.4.ebuild b/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.4.ebuild
new file mode 100644
index 000000000000..2e2ba5e6ad97
--- /dev/null
+++ b/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.4.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools-utils linux-info
+
+DESCRIPTION="programming interface (API) to the in-kernel connection tracking state table"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_conntrack/"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
+IUSE="static-libs"
+
+RDEPEND="
+ >=net-libs/libmnl-1.0.3
+ >=net-libs/libnfnetlink-1.0.0
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS=( README )
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 6 18 ; then
+ die "${PN} requires at least 2.6.18 kernel version"
+ fi
+
+ #netfilter core team has changed some option names with kernel 2.6.20
+ if kernel_is lt 2 6 20 ; then
+ CONFIG_CHECK="~IP_NF_CONNTRACK_NETLINK"
+ else
+ CONFIG_CHECK="~NF_CT_NETLINK"
+ fi
+
+ check_extra_config
+}
diff --git a/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.5.ebuild b/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.5.ebuild
new file mode 100644
index 000000000000..c6f086152a86
--- /dev/null
+++ b/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools-utils linux-info
+
+DESCRIPTION="programming interface (API) to the in-kernel connection tracking state table"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_conntrack/"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ >=net-libs/libmnl-1.0.3
+ >=net-libs/libnfnetlink-1.0.0
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS=( README )
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 6 18 ; then
+ die "${PN} requires at least 2.6.18 kernel version"
+ fi
+
+ #netfilter core team has changed some option names with kernel 2.6.20
+ if kernel_is lt 2 6 20 ; then
+ CONFIG_CHECK="~IP_NF_CONNTRACK_NETLINK"
+ else
+ CONFIG_CHECK="~NF_CT_NETLINK"
+ fi
+
+ check_extra_config
+}
diff --git a/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.6.ebuild b/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.6.ebuild
new file mode 100644
index 000000000000..07dc48d62bad
--- /dev/null
+++ b/net-libs/libnetfilter_conntrack/libnetfilter_conntrack-1.0.6.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools linux-info
+
+DESCRIPTION="programming interface (API) to the in-kernel connection tracking state table"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_conntrack/"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ >=net-libs/libmnl-1.0.3
+ >=net-libs/libnfnetlink-1.0.0
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS=( README )
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 6 18 ; then
+ die "${PN} requires at least 2.6.18 kernel version"
+ fi
+
+ #netfilter core team has changed some option names with kernel 2.6.20
+ if kernel_is lt 2 6 20 ; then
+ CONFIG_CHECK="~IP_NF_CONNTRACK_NETLINK"
+ else
+ CONFIG_CHECK="~NF_CT_NETLINK"
+ fi
+
+ check_extra_config
+}
diff --git a/net-libs/libnetfilter_conntrack/metadata.xml b/net-libs/libnetfilter_conntrack/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-libs/libnetfilter_conntrack/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnetfilter_cthelper/Manifest b/net-libs/libnetfilter_cthelper/Manifest
new file mode 100644
index 000000000000..98cb4f3fd986
--- /dev/null
+++ b/net-libs/libnetfilter_cthelper/Manifest
@@ -0,0 +1,7 @@
+AUX libnetfilter_cthelper-1.0.0-clang-export.patch 12273 SHA256 637daddd1782bf96ed6b3f1bd1e6956dc698612ca2a2c64260f283aa1b871e29 SHA512 e7eb99bbf29b95b18c7ff25d8c6fd080f8b77a451cd5d7fe737705c3f5c93f2a078f703fcc91f0d04f3ac0e18bcacc34483bc764bbf6a441d72d41fe539a594a WHIRLPOOL 1374259afb17e4ab84a639d774066373fbd87474fab1dc8e54e9af653501e7ad234bff923b571a07987ee5305bf78b15f7fed76e602a0483c5e038e8a936a10e
+DIST libnetfilter_cthelper-1.0.0.tar.bz2 275229 SHA256 07618e71c4d9a6b6b3dc1986540486ee310a9838ba754926c7d14a17d8fccf3d SHA512 f0372daee0edbf4c27ee80eadd4ce786a4b67b39c0b9d22e88bc9adcbdffd6676eb9df01b933ee64d2fcea9c05a9ca9070c94e907277d69acbd22ae9a3c74e45 WHIRLPOOL a94915f51b0dd4dbf165c195fff2291ad414147ad068ed3eec4d29bf4850d128c83f6f75b94853bd840334e77f68c7a74dbc7aa50d7745ff9a0074621385afc0
+EBUILD libnetfilter_cthelper-1.0.0-r1.ebuild 762 SHA256 9d167dcbe8cb338a75d4830026f9f469611c8a204941f7a0fb81010beede06fb SHA512 6a5ce4c86f92908b3f9c72787c6b9453da7964599b4365d5b70f939321390b31b2a5746bd02b23a5bf4e816ab1731779cd3472d70c02e9346f79a30a04e5b184 WHIRLPOOL e8eed58ceb07e912082f61fc26ed5bdbda206b90d4ed175d1cd0046f88e9cdfcfda2581075fedd20ec3daef39a3ea130470228b4a1850bbcae944195ddcb3462
+EBUILD libnetfilter_cthelper-1.0.0.ebuild 694 SHA256 8dced10d84e9aa32dfe0be17ea29b11db46bf29e6033656f6429ef2d0b5daa4e SHA512 3bd8859f84f1002b530be27d0259a1e3aac0725ecd9d913b347998496ba43045fd14ad156f07db97049b54a3bae96f248b4dd12b049c1febf7661a518ee31ad4 WHIRLPOOL 36d101098535c5ad4ed75c679ef76ce6363405806f3e747b228ad017fe3885633e4baa59dfe25256ac11b076165867957398033e6b4155897792cdeecc65ae94
+MISC ChangeLog 2641 SHA256 82333295368ae04085148b62c5406c5eac55eaa7a9965d945d2f0f18dc48fce1 SHA512 6ecd64167debc519f0324a9e4fc0a3a7e71c101a0f995c39fac189e5590c4a7beb939730136a1e2debdf3cd9dafe3aba6772f4d516e537aafbc933a6617cd836 WHIRLPOOL 1130c7317b0fe34843ede237f7daafb643c0f7f45de5e6812d2910edaf64b48f93935cd861272ec900838eea2799ddd83c495b3d8194453e1a57a48f3712ded8
+MISC ChangeLog-2015 1082 SHA256 3ae319aaf88ce96777bc386927ec329c271767283dadd20ccf64e9e4546198c3 SHA512 f96f84f2a61b759e241de6e88aea0a56d05114a164416c92c897672bc2e07d61f3567293ab66af847c3fc06d7fbcf5c041d44b156099de700637b1762072dc03 WHIRLPOOL f1cc213ec10da0b7a7333df1bdc4ac5999d44b5e11c6af3b52873e602cf6f234c43ad6134572a96d0c56d0fd284cb8a37c924e9fcc36551f8409ef2f75293fe5
+MISC metadata.xml 280 SHA256 b04c5b9d91f6c4d6e36583488fd032751034d1e035085609c9bdf7677cf1e83f SHA512 8b56802e5524808b11ab857779ce04fb2d07cae87376f67490178601a9aecf7ad9f95743709b46048a425598d4cf8dcf01ef78cc97009d78e26a7728453150ef WHIRLPOOL 6f3756b9ac748acccb6ac5a4de133cf93988e8c904f606376fecbb6a21ce038e86437fecca43b2521538da2570d33ff1a6a1e0cab290a3d71a9b4f2734f16328
diff --git a/net-libs/libnetfilter_cthelper/files/libnetfilter_cthelper-1.0.0-clang-export.patch b/net-libs/libnetfilter_cthelper/files/libnetfilter_cthelper-1.0.0-clang-export.patch
new file mode 100644
index 000000000000..4958bcd6ac39
--- /dev/null
+++ b/net-libs/libnetfilter_cthelper/files/libnetfilter_cthelper-1.0.0-clang-export.patch
@@ -0,0 +1,387 @@
+fix from upstream
+
+From f58c5b09fb59baf07c942d373fc4d522b27e73c6 Mon Sep 17 00:00:00 2001
+From: Kevin Cernekee <cernekee@chromium.org>
+Date: Wed, 4 Jan 2017 14:30:26 -0800
+Subject: [PATCH] Use __EXPORTED rather than EXPORT_SYMBOL
+
+clang is sensitive to the ordering of
+__attribute__((visibility("default"))) relative to the function
+body. gcc is not. So if we try to re-declare an existing function
+with default visibility, clang prints a warning and generates
+a broken .so file in which nfct_helper_* are not exported to library
+callers.
+
+Move the attribute up into the function definition to make clang happy.
+
+Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
+Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
+---
+ doxygen.cfg.in | 2 +-
+ src/internal.h | 5 ++-
+ src/libnetfilter_cthelper.c | 83 ++++++++++++++++++---------------------------
+ 3 files changed, 36 insertions(+), 54 deletions(-)
+
+diff --git a/doxygen.cfg.in b/doxygen.cfg.in
+index cac9b0510b4d..190b7cd6e716 100644
+--- a/doxygen.cfg.in
++++ b/doxygen.cfg.in
+@@ -72,7 +72,7 @@ RECURSIVE = YES
+ EXCLUDE =
+ EXCLUDE_SYMLINKS = NO
+ EXCLUDE_PATTERNS = */.git/* .*.d
+-EXCLUDE_SYMBOLS = EXPORT_SYMBOL
++EXCLUDE_SYMBOLS =
+ EXAMPLE_PATH =
+ EXAMPLE_PATTERNS =
+ EXAMPLE_RECURSIVE = NO
+diff --git a/src/internal.h b/src/internal.h
+index 3a88d1a1f7d8..5d781718ddad 100644
+--- a/src/internal.h
++++ b/src/internal.h
+@@ -3,10 +3,9 @@
+
+ #include "config.h"
+ #ifdef HAVE_VISIBILITY_HIDDEN
+-# define __visible __attribute__((visibility("default")))
+-# define EXPORT_SYMBOL(x) typeof(x) (x) __visible
++# define __EXPORTED __attribute__((visibility("default")))
+ #else
+-# define EXPORT_SYMBOL
++# define __EXPORTED
+ #endif
+
+ #endif
+diff --git a/src/libnetfilter_cthelper.c b/src/libnetfilter_cthelper.c
+index f8f58e6c9c5e..af543a17fafa 100644
+--- a/src/libnetfilter_cthelper.c
++++ b/src/libnetfilter_cthelper.c
+@@ -99,17 +99,16 @@ struct nfct_helper {
+ * In case of success, this function returns a valid pointer, otherwise NULL
+ * s returned and errno is appropriately set.
+ */
+-struct nfct_helper *nfct_helper_alloc(void)
++struct nfct_helper __EXPORTED *nfct_helper_alloc(void)
+ {
+ return calloc(1, sizeof(struct nfct_helper));
+ }
+-EXPORT_SYMBOL(nfct_helper_alloc);
+
+ /**
+ * nfct_helper_free - release one helper object
+ * \param nfct_helper pointer to the helper object
+ */
+-void nfct_helper_free(struct nfct_helper *h)
++void __EXPORTED nfct_helper_free(struct nfct_helper *h)
+ {
+ int i;
+
+@@ -119,7 +118,6 @@ void nfct_helper_free(struct nfct_helper *h)
+ }
+ free(h);
+ }
+-EXPORT_SYMBOL(nfct_helper_free);
+
+ /**
+ * nfct_helper_policy_alloc - allocate a new helper policy object
+@@ -127,21 +125,19 @@ EXPORT_SYMBOL(nfct_helper_free);
+ * In case of success, this function returns a valid pointer, otherwise NULL
+ * s returned and errno is appropriately set.
+ */
+-struct nfct_helper_policy *nfct_helper_policy_alloc(void)
++struct nfct_helper_policy __EXPORTED *nfct_helper_policy_alloc(void)
+ {
+ return calloc(1, sizeof(struct nfct_helper_policy));
+ }
+-EXPORT_SYMBOL(nfct_helper_policy_alloc);
+
+ /**
+ * nfct_helper_free - release one helper policy object
+ * \param nfct_helper pointer to the helper object
+ */
+-void nfct_helper_policy_free(struct nfct_helper_policy *p)
++void __EXPORTED nfct_helper_policy_free(struct nfct_helper_policy *p)
+ {
+ free(p);
+ }
+-EXPORT_SYMBOL(nfct_helper_policy_free);
+
+ /**
+ * nfct_helper_policy_attr_set - set one attribute of the helper object
+@@ -149,7 +145,7 @@ EXPORT_SYMBOL(nfct_helper_policy_free);
+ * \param type attribute type you want to set
+ * \param data pointer to data that will be used to set this attribute
+ */
+-void
++void __EXPORTED
+ nfct_helper_policy_attr_set(struct nfct_helper_policy *p,
+ enum nfct_helper_policy_attr_type type,
+ const void *data)
+@@ -170,7 +166,6 @@ nfct_helper_policy_attr_set(struct nfct_helper_policy *p,
+ break;
+ }
+ }
+-EXPORT_SYMBOL(nfct_helper_policy_attr_set);
+
+ /**
+ * nfct_helper_attr_set_str - set one attribute the helper object
+@@ -178,23 +173,21 @@ EXPORT_SYMBOL(nfct_helper_policy_attr_set);
+ * \param type attribute type you want to set
+ * \param name string that will be used to set this attribute
+ */
+-void
++void __EXPORTED
+ nfct_helper_policy_attr_set_str(struct nfct_helper_policy *p,
+ enum nfct_helper_policy_attr_type type,
+ const char *name)
+ {
+ nfct_helper_policy_attr_set(p, type, name);
+ }
+-EXPORT_SYMBOL(nfct_helper_policy_attr_set_str);
+
+-void
++void __EXPORTED
+ nfct_helper_policy_attr_set_u32(struct nfct_helper_policy *p,
+ enum nfct_helper_policy_attr_type type,
+ uint32_t value)
+ {
+ nfct_helper_policy_attr_set(p, type, &value);
+ }
+-EXPORT_SYMBOL(nfct_helper_policy_attr_set_u32);
+
+ /**
+ * nfct_helper_attr_set - set one attribute of the helper object
+@@ -202,7 +195,7 @@ EXPORT_SYMBOL(nfct_helper_policy_attr_set_u32);
+ * \param type attribute type you want to set
+ * \param data pointer to data that will be used to set this attribute
+ */
+-void
++void __EXPORTED
+ nfct_helper_attr_set(struct nfct_helper *h,
+ enum nfct_helper_attr_type type, const void *data)
+ {
+@@ -250,7 +243,6 @@ nfct_helper_attr_set(struct nfct_helper *h,
+ break;
+ }
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_set);
+
+ /**
+ * nfct_helper_attr_set_str - set one attribute the helper object
+@@ -258,44 +250,40 @@ EXPORT_SYMBOL(nfct_helper_attr_set);
+ * \param type attribute type you want to set
+ * \param name string that will be used to set this attribute
+ */
+-void
++void __EXPORTED
+ nfct_helper_attr_set_str(struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type,
+ const char *name)
+ {
+ nfct_helper_attr_set(nfct_helper, type, name);
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_set_str);
+
+-void
++void __EXPORTED
+ nfct_helper_attr_set_u8(struct nfct_helper *nfct_helper,
+ enum nfct_helper_attr_type type, uint8_t value)
+ {
+ nfct_helper_attr_set(nfct_helper, type, &value);
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_set_u8);
+
+-void
++void __EXPORTED
+ nfct_helper_attr_set_u16(struct nfct_helper *nfct_helper,
+ enum nfct_helper_attr_type type, uint16_t value)
+ {
+ nfct_helper_attr_set(nfct_helper, type, &value);
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_set_u16);
+
+-void
++void __EXPORTED
+ nfct_helper_attr_set_u32(struct nfct_helper *nfct_helper,
+ enum nfct_helper_attr_type type, uint32_t value)
+ {
+ nfct_helper_attr_set(nfct_helper, type, &value);
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_set_u32);
+
+ /**
+ * nfct_helper_attr_unset - unset one attribute the helper object
+ * \param nfct_helper pointer to the helper object
+ * \param type attribute type you want to set
+ */
+-void
++void __EXPORTED
+ nfct_helper_attr_unset(struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type)
+ {
+ switch(type) {
+@@ -307,7 +295,6 @@ nfct_helper_attr_unset(struct nfct_helper *nfct_helper, enum nfct_helper_attr_ty
+ break;
+ }
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_unset);
+
+ /**
+ * nfct_helper_attr_get - get one attribute the helper object
+@@ -317,8 +304,9 @@ EXPORT_SYMBOL(nfct_helper_attr_unset);
+ * This function returns a valid pointer to the attribute data. If a
+ * unsupported attribute is used, this returns NULL.
+ */
+-const void *nfct_helper_attr_get(struct nfct_helper *helper,
+- enum nfct_helper_attr_type type)
++const void __EXPORTED *
++nfct_helper_attr_get(struct nfct_helper *helper,
++ enum nfct_helper_attr_type type)
+ {
+ const void *ret = NULL;
+
+@@ -358,7 +346,6 @@ const void *nfct_helper_attr_get(struct nfct_helper *helper,
+ }
+ return ret;
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_get);
+
+ /**
+ * nfct_helper_attr_get_str - get one attribute the helper object
+@@ -368,13 +355,12 @@ EXPORT_SYMBOL(nfct_helper_attr_get);
+ * This function returns a valid pointer to the beginning of the string.
+ * If the attribute is unsupported, this returns NULL.
+ */
+-const char *
++const char __EXPORTED *
+ nfct_helper_attr_get_str(struct nfct_helper *nfct_helper,
+ enum nfct_helper_attr_type type)
+ {
+ return (const char *)nfct_helper_attr_get(nfct_helper, type);
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_get_str);
+
+ /**
+ * nfct_helper_attr_get_u8 - get one attribute the helper object
+@@ -384,12 +370,12 @@ EXPORT_SYMBOL(nfct_helper_attr_get_str);
+ * This function returns a unsigned 8-bits integer. If the attribute is
+ * unsupported, this returns NULL.
+ */
+-uint8_t nfct_helper_attr_get_u8(struct nfct_helper *nfct_helper,
+- enum nfct_helper_attr_type type)
++uint8_t __EXPORTED
++nfct_helper_attr_get_u8(struct nfct_helper *nfct_helper,
++ enum nfct_helper_attr_type type)
+ {
+ return *((uint8_t *)nfct_helper_attr_get(nfct_helper, type));
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_get_u8);
+
+ /**
+ * nfct_helper_attr_get_u16 - get one attribute the helper object
+@@ -399,12 +385,12 @@ EXPORT_SYMBOL(nfct_helper_attr_get_u8);
+ * This function returns a unsigned 16-bits integer. If the attribute is
+ * unsupported, this returns NULL.
+ */
+-uint16_t nfct_helper_attr_get_u16(struct nfct_helper *nfct_helper,
+- enum nfct_helper_attr_type type)
++uint16_t __EXPORTED
++nfct_helper_attr_get_u16(struct nfct_helper *nfct_helper,
++ enum nfct_helper_attr_type type)
+ {
+ return *((uint16_t *)nfct_helper_attr_get(nfct_helper, type));
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_get_u16);
+
+ /**
+ * nfct_helper_attr_get_u32 - get one attribute the helper object
+@@ -414,12 +400,12 @@ EXPORT_SYMBOL(nfct_helper_attr_get_u16);
+ * This function returns a unsigned 32-bits integer. If the attribute is
+ * unsupported, this returns NULL.
+ */
+-uint32_t nfct_helper_attr_get_u32(struct nfct_helper *nfct_helper,
+- enum nfct_helper_attr_type type)
++uint32_t __EXPORTED
++nfct_helper_attr_get_u32(struct nfct_helper *nfct_helper,
++ enum nfct_helper_attr_type type)
+ {
+ return *((uint32_t *)nfct_helper_attr_get(nfct_helper, type));
+ }
+-EXPORT_SYMBOL(nfct_helper_attr_get_u32);
+
+ /**
+ * nfct_helper_snprintf - print helper object into one buffer
+@@ -431,9 +417,10 @@ EXPORT_SYMBOL(nfct_helper_attr_get_u32);
+ * This function returns -1 in case that some mandatory attributes are
+ * missing. On sucess, it returns 0.
+ */
+-int nfct_helper_snprintf(char *buf, size_t size,
+- struct nfct_helper *helper,
+- unsigned int type, unsigned int flags)
++int __EXPORTED
++nfct_helper_snprintf(char *buf, size_t size,
++ struct nfct_helper *helper,
++ unsigned int type, unsigned int flags)
+ {
+ int ret;
+
+@@ -454,7 +441,6 @@ int nfct_helper_snprintf(char *buf, size_t size,
+
+ return ret;
+ }
+-EXPORT_SYMBOL(nfct_helper_snprintf);
+
+ /**
+ * @}
+@@ -490,7 +476,7 @@ EXPORT_SYMBOL(nfct_helper_snprintf);
+ * - Command NFNL_MSG_ACCT_DEL, to delete one specific nfct_helper object (if
+ * unused, otherwise you hit EBUSY).
+ */
+-struct nlmsghdr *
++struct nlmsghdr __EXPORTED *
+ nfct_helper_nlmsg_build_hdr(char *buf, uint8_t cmd,
+ uint16_t flags, uint32_t seq)
+ {
+@@ -509,7 +495,6 @@ nfct_helper_nlmsg_build_hdr(char *buf, uint8_t cmd,
+
+ return nlh;
+ }
+-EXPORT_SYMBOL(nfct_helper_nlmsg_build_hdr);
+
+ static void
+ nfct_helper_nlmsg_build_policy(struct nlmsghdr *nlh,
+@@ -530,7 +515,7 @@ nfct_helper_nlmsg_build_policy(struct nlmsghdr *nlh,
+ * \param nlh: netlink message that you want to use to add the payload.
+ * \param nfct_helper: pointer to a helper object
+ */
+-void
++void __EXPORTED
+ nfct_helper_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfct_helper *h)
+ {
+ struct nlattr *nest;
+@@ -593,7 +578,6 @@ nfct_helper_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfct_helper *h)
+ if (h->bitset & (1 << NFCTH_ATTR_STATUS))
+ mnl_attr_put_u32(nlh, NFCTH_STATUS, ntohl(h->status));
+ }
+-EXPORT_SYMBOL(nfct_helper_nlmsg_build_payload);
+
+ static int
+ nfct_helper_nlmsg_parse_tuple_cb(const struct nlattr *attr, void *data)
+@@ -795,7 +779,7 @@ nfct_helper_nlmsg_parse_attr_cb(const struct nlattr *attr, void *data)
+ * This function returns -1 in case that some mandatory attributes are
+ * missing. On sucess, it returns 0.
+ */
+-int
++int __EXPORTED
+ nfct_helper_nlmsg_parse_payload(const struct nlmsghdr *nlh,
+ struct nfct_helper *h)
+ {
+@@ -832,7 +816,6 @@ nfct_helper_nlmsg_parse_payload(const struct nlmsghdr *nlh,
+ }
+ return 0;
+ }
+-EXPORT_SYMBOL(nfct_helper_nlmsg_parse_payload);
+
+ /**
+ * @}
+--
+2.11.0
+
diff --git a/net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0-r1.ebuild b/net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0-r1.ebuild
new file mode 100644
index 000000000000..2da0aabd39b5
--- /dev/null
+++ b/net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit linux-info autotools-utils
+
+DESCRIPTION="userspace library that provides the programming interface to the user-space helper infrastructure"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_cthelper"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~x86"
+IUSE="static-libs"
+
+RDEPEND="net-libs/libmnl:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-clang-export.patch
+)
+
+CONFIG_CHECK="~NF_CT_NETLINK_HELPER"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ kernel_is lt 3 6 0 && ewarn "requires at least 3.6.0 kernel version"
+}
diff --git a/net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0.ebuild b/net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0.ebuild
new file mode 100644
index 000000000000..d802a89488b0
--- /dev/null
+++ b/net-libs/libnetfilter_cthelper/libnetfilter_cthelper-1.0.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit linux-info autotools-utils
+
+DESCRIPTION="userspace library that provides the programming interface to the user-space helper infrastructure"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_cthelper"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa x86"
+IUSE="static-libs"
+
+RDEPEND="net-libs/libmnl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~NF_CT_NETLINK_HELPER"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ kernel_is lt 3 6 0 && ewarn "requires at least 3.6.0 kernel version"
+}
diff --git a/net-libs/libnetfilter_cthelper/metadata.xml b/net-libs/libnetfilter_cthelper/metadata.xml
new file mode 100644
index 000000000000..2c2a7923cfc8
--- /dev/null
+++ b/net-libs/libnetfilter_cthelper/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnetfilter_cttimeout/Manifest b/net-libs/libnetfilter_cttimeout/Manifest
new file mode 100644
index 000000000000..ac1cb4e9c699
--- /dev/null
+++ b/net-libs/libnetfilter_cttimeout/Manifest
@@ -0,0 +1,7 @@
+AUX libnetfilter_cttimeout-1.0.0-clang-export.patch 8628 SHA256 cbce5cbe4eb636e78184b23f4969fc3b6274f8a5ce4b477ac665201cf96b4dd6 SHA512 d288dc0ad2fe6e15fa425a5e125e2d953e34bd6fbb7f57f7b7fadec030e7caefa39a4fbe9e7be90ce5aa7f5b4a44ad0e9df1c98ff6100f134ac3839653a542b1 WHIRLPOOL daac0edacb35e35777acabddcc61bf30449ddf30db034291b8da29d7215a574f570a0ce73709b58e5d0b767e258657d1bfbfa4bc657c3030cfcc1f9ebda2873b
+DIST libnetfilter_cttimeout-1.0.0.tar.bz2 275065 SHA256 aeab12754f557cba3ce2950a2029963d817490df7edb49880008b34d7ff8feba SHA512 d64f592be022d02b6e6627470f9aed75114b0c7177012d31d868ee7eb39fca330a7638c9a209ff489d4a8c0549b8fcfd33582c6d36ee519b920cf27429301c85 WHIRLPOOL a40a7b41ba118ff7868b8cf04f2653319d6ca242703c0b944d896336de80029ea2dd579eb706406035f57976c4890b7f984d6c9bba6fb240e78c6afa9f128c51
+EBUILD libnetfilter_cttimeout-1.0.0-r1.ebuild 762 SHA256 35627e5183114637e67022d7d7af4afb748a7cd1833c14bcb40293771dc6c313 SHA512 3c771710d5f4575081d7dc548a0cf45b0a5b9bf1f81f9971d4027b6904b94f3db5e39a770de430f36d5874d111ee9a1d1542d64ff7f57192d6021fdfedfd3d58 WHIRLPOOL a238e87d1556d9cea19b880c3b78b153779d85bbe5d17fc285d44d2bf354afe723296d8bbf0f4c2ba1af1e64f21645dc3e6ce135df0500e2a915b088072843d2
+EBUILD libnetfilter_cttimeout-1.0.0.ebuild 694 SHA256 76ba0db502110aa0971aef6e781cf9e43347875ad89b3efdc5de234dc899479d SHA512 b64d282499ecc3d93a3df9eb0ab7a2775e19d27ebc692ee753094ca954b26d494c88253d04ff8342609eea88ff251e2b4d7c2856dd1e08cd6a2e56595b582d2b WHIRLPOOL 26071b47b9b7b660223b5704ff1451e5f581628d62813b5655e03661a9ab2c25e93882cb0d4ff52115916304dfafb8cd56908d69dd92f1ee6f8778e2a181f248
+MISC ChangeLog 3038 SHA256 b69df8ea9b1b981bd6173b9d80ffc8f7760094f1fd05f38cab8b206d5be5c0c4 SHA512 81a0dbe9714050053bf408ce2277861eb814b7aa807de9d788ccb41fbac0e466d88abb5b7cc7136510cc6be86cc6f8b89de7802d36c8bcb88bfcbf53a8afe6ce WHIRLPOOL 6f3a3096a8bcd67d052331c4abbc8a4478243ff02d10233002d4e4173115e23d379f5b35e9ce9bfe08475092afda0d8a54babe50cd63498113391ce64217aa2f
+MISC ChangeLog-2015 1141 SHA256 b923adc1885721039996ce324d0fe34547392bf1f346e8fe22b5d18b42651424 SHA512 a4ada53fccb05e67326362b3000617a5f4e9f3e7be4a4bd9c2260782747bf5369bc709af38c4896f686ef22150dbda16dc838408241167c1745526810462bb89 WHIRLPOOL 2ae22afe3dfc7f8c8636d1a697dc7d6991b046837d47f7061b822f4c771ec823de081cf68257ea9fd030a0e01e1613edd528f554ab182802db00fc9dfb076fa0
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-libs/libnetfilter_cttimeout/files/libnetfilter_cttimeout-1.0.0-clang-export.patch b/net-libs/libnetfilter_cttimeout/files/libnetfilter_cttimeout-1.0.0-clang-export.patch
new file mode 100644
index 000000000000..ba706d3807df
--- /dev/null
+++ b/net-libs/libnetfilter_cttimeout/files/libnetfilter_cttimeout-1.0.0-clang-export.patch
@@ -0,0 +1,266 @@
+fix from upstream
+
+From d0c4e39d12f903e06db262656cff2e24d267bed7 Mon Sep 17 00:00:00 2001
+From: Kevin Cernekee <cernekee@chromium.org>
+Date: Wed, 4 Jan 2017 14:30:25 -0800
+Subject: [PATCH] Use __EXPORTED rather than EXPORT_SYMBOL
+
+clang is sensitive to the ordering of
+__attribute__((visibility("default"))) relative to the function
+body. gcc is not. So if we try to re-declare an existing function
+with default visibility, clang prints a warning and generates
+a broken .so file in which nfct_timeout_* are not exported to library
+callers.
+
+Move the attribute up into the function definition to make clang happy.
+
+Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
+Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
+---
+ doxygen.cfg.in | 2 +-
+ src/internal.h | 5 ++---
+ src/libnetfilter_cttimeout.c | 44 +++++++++++++++++---------------------------
+ 3 files changed, 20 insertions(+), 31 deletions(-)
+
+diff --git a/doxygen.cfg.in b/doxygen.cfg.in
+index 8e5d4495eb41..09c3ce00e422 100644
+--- a/doxygen.cfg.in
++++ b/doxygen.cfg.in
+@@ -72,7 +72,7 @@ RECURSIVE = YES
+ EXCLUDE =
+ EXCLUDE_SYMLINKS = NO
+ EXCLUDE_PATTERNS = */.git/* .*.d
+-EXCLUDE_SYMBOLS = EXPORT_SYMBOL nfct_timeout _container_policy_cb
++EXCLUDE_SYMBOLS = nfct_timeout _container_policy_cb
+ EXAMPLE_PATH =
+ EXAMPLE_PATTERNS =
+ EXAMPLE_RECURSIVE = NO
+diff --git a/src/internal.h b/src/internal.h
+index 3a88d1a1f7d8..5d781718ddad 100644
+--- a/src/internal.h
++++ b/src/internal.h
+@@ -3,10 +3,9 @@
+
+ #include "config.h"
+ #ifdef HAVE_VISIBILITY_HIDDEN
+-# define __visible __attribute__((visibility("default")))
+-# define EXPORT_SYMBOL(x) typeof(x) (x) __visible
++# define __EXPORTED __attribute__((visibility("default")))
+ #else
+-# define EXPORT_SYMBOL
++# define __EXPORTED
+ #endif
+
+ #endif
+diff --git a/src/libnetfilter_cttimeout.c b/src/libnetfilter_cttimeout.c
+index 7844a1f9c19a..a0a71851b0eb 100644
+--- a/src/libnetfilter_cttimeout.c
++++ b/src/libnetfilter_cttimeout.c
+@@ -187,7 +187,7 @@ struct nfct_timeout {
+ * In case of success, this function returns a valid pointer, otherwise NULL
+ * s returned and errno is appropriately set.
+ */
+-struct nfct_timeout *nfct_timeout_alloc(void)
++struct nfct_timeout __EXPORTED *nfct_timeout_alloc(void)
+ {
+ struct nfct_timeout *t;
+
+@@ -197,19 +197,17 @@ struct nfct_timeout *nfct_timeout_alloc(void)
+
+ return t;
+ }
+-EXPORT_SYMBOL(nfct_timeout_alloc);
+
+ /**
+ * nfct_timeout_free - release one conntrack timeout object
+ * \param t pointer to the conntrack timeout object
+ */
+-void nfct_timeout_free(struct nfct_timeout *t)
++void __EXPORTED nfct_timeout_free(struct nfct_timeout *t)
+ {
+ if (t->timeout)
+ free(t->timeout);
+ free(t);
+ }
+-EXPORT_SYMBOL(nfct_timeout_free);
+
+ /**
+ * nfct_timeout_attr_set - set one attribute of the conntrack timeout object
+@@ -217,7 +215,7 @@ EXPORT_SYMBOL(nfct_timeout_free);
+ * \param type attribute type you want to set
+ * \param data pointer to data that will be used to set this attribute
+ */
+-int
++int __EXPORTED
+ nfct_timeout_attr_set(struct nfct_timeout *t, uint32_t type, const void *data)
+ {
+ switch(type) {
+@@ -236,7 +234,6 @@ nfct_timeout_attr_set(struct nfct_timeout *t, uint32_t type, const void *data)
+ t->attrset |= (1 << type);
+ return 0;
+ }
+-EXPORT_SYMBOL(nfct_timeout_attr_set);
+
+ /**
+ * nfct_timeout_attr_set_u8 - set one attribute of the conntrack timeout object
+@@ -244,12 +241,11 @@ EXPORT_SYMBOL(nfct_timeout_attr_set);
+ * \param type attribute type you want to set
+ * \param data pointer to data that will be used to set this attribute
+ */
+-int
++int __EXPORTED
+ nfct_timeout_attr_set_u8(struct nfct_timeout *t, uint32_t type, uint8_t data)
+ {
+ return nfct_timeout_attr_set(t, type, &data);
+ }
+-EXPORT_SYMBOL(nfct_timeout_attr_set_u8);
+
+ /**
+ * nfct_timeout_attr_set_u16 - set one attribute of the conntrack timeout object
+@@ -257,23 +253,21 @@ EXPORT_SYMBOL(nfct_timeout_attr_set_u8);
+ * \param type attribute type you want to set
+ * \param data pointer to data that will be used to set this attribute
+ */
+-int
++int __EXPORTED
+ nfct_timeout_attr_set_u16(struct nfct_timeout *t, uint32_t type, uint16_t data)
+ {
+ return nfct_timeout_attr_set(t, type, &data);
+ }
+-EXPORT_SYMBOL(nfct_timeout_attr_set_u16);
+
+ /**
+ * nfct_timeout_attr_unset - unset one attribute of the conntrack timeout object
+ * \param t pointer to the conntrack timeout object
+ * \param type attribute type you want to set
+ */
+-void nfct_timeout_attr_unset(struct nfct_timeout *t, uint32_t type)
++void __EXPORTED nfct_timeout_attr_unset(struct nfct_timeout *t, uint32_t type)
+ {
+ t->attrset &= ~(1 << type);
+ }
+-EXPORT_SYMBOL(nfct_timeout_attr_unset);
+
+ /**
+ * nfct_timeout_policy_attr_set_u32 - set one attribute of the policy
+@@ -281,7 +275,7 @@ EXPORT_SYMBOL(nfct_timeout_attr_unset);
+ * \param type attribute type you want to set
+ * \param data data that will be used to set this attribute
+ */
+-int
++int __EXPORTED
+ nfct_timeout_policy_attr_set_u32(struct nfct_timeout *t,
+ uint32_t type, uint32_t data)
+ {
+@@ -319,18 +313,17 @@ nfct_timeout_policy_attr_set_u32(struct nfct_timeout *t,
+
+ return 0;
+ }
+-EXPORT_SYMBOL(nfct_timeout_policy_attr_set_u32);
+
+ /**
+ * nfct_timeout_policy_attr_unset - unset one attribute of the policy
+ * \param t pointer to the conntrack timeout object
+ * \param type attribute type you want to set
+ */
+-void nfct_timeout_policy_attr_unset(struct nfct_timeout *t, uint32_t type)
++void __EXPORTED
++nfct_timeout_policy_attr_unset(struct nfct_timeout *t, uint32_t type)
+ {
+ t->attrset &= ~(1 << type);
+ }
+-EXPORT_SYMBOL(nfct_timeout_policy_attr_unset);
+
+ /**
+ * nfct_timeout_policy_attr_to_name - get state name from protocol state number
+@@ -340,7 +333,8 @@ EXPORT_SYMBOL(nfct_timeout_policy_attr_unset);
+ * This function returns NULL if unsupported protocol or state number is passed.
+ * Otherwise, a pointer to valid string is returned.
+ */
+-const char *nfct_timeout_policy_attr_to_name(uint8_t l4proto, uint32_t state)
++const char __EXPORTED *
++nfct_timeout_policy_attr_to_name(uint8_t l4proto, uint32_t state)
+ {
+ if (timeout_protocol[l4proto].state_to_name == NULL) {
+ printf("no array state name\n");
+@@ -354,7 +348,6 @@ const char *nfct_timeout_policy_attr_to_name(uint8_t l4proto, uint32_t state)
+
+ return timeout_protocol[l4proto].state_to_name[state];
+ }
+-EXPORT_SYMBOL(nfct_timeout_policy_attr_to_name);
+
+ /**
+ * @}
+@@ -438,8 +431,9 @@ nfct_timeout_snprintf_default(char *buf, size_t size,
+ * This function returns -1 in case that some mandatory attributes are
+ * missing. On sucess, it returns 0.
+ */
+-int nfct_timeout_snprintf(char *buf, size_t size, const struct nfct_timeout *t,
+- unsigned int type, unsigned int flags)
++int __EXPORTED
++nfct_timeout_snprintf(char *buf, size_t size, const struct nfct_timeout *t,
++ unsigned int type, unsigned int flags)
+ {
+ int ret = 0;
+
+@@ -454,7 +448,6 @@ int nfct_timeout_snprintf(char *buf, size_t size, const struct nfct_timeout *t,
+
+ return ret;
+ }
+-EXPORT_SYMBOL(nfct_timeout_snprintf);
+
+ /**
+ * @}
+@@ -477,7 +470,7 @@ EXPORT_SYMBOL(nfct_timeout_snprintf);
+ * - CTNL_MSG_TIMEOUT_GET: get conntrack timeout object.
+ * - CTNL_MSG_TIMEOUT_DEL: delete conntrack timeout object.
+ */
+-struct nlmsghdr *
++struct nlmsghdr __EXPORTED *
+ nfct_timeout_nlmsg_build_hdr(char *buf, uint8_t cmd,
+ uint16_t flags, uint32_t seq)
+ {
+@@ -496,14 +489,13 @@ nfct_timeout_nlmsg_build_hdr(char *buf, uint8_t cmd,
+
+ return nlh;
+ }
+-EXPORT_SYMBOL(nfct_timeout_nlmsg_build_hdr);
+
+ /**
+ * nfct_timeout_nlmsg_build_payload - build payload from ct timeout object
+ * \param nlh: netlink message that you want to use to add the payload.
+ * \param t: pointer to a conntrack timeout object
+ */
+-void
++void __EXPORTED
+ nfct_timeout_nlmsg_build_payload(struct nlmsghdr *nlh,
+ const struct nfct_timeout *t)
+ {
+@@ -532,7 +524,6 @@ nfct_timeout_nlmsg_build_payload(struct nlmsghdr *nlh,
+ }
+
+ }
+-EXPORT_SYMBOL(nfct_timeout_nlmsg_build_payload);
+
+ static int
+ timeout_nlmsg_parse_attr_cb(const struct nlattr *attr, void *data)
+@@ -629,7 +620,7 @@ timeout_parse_attr_data(struct nfct_timeout *t, const struct nlattr *nest)
+ * This function returns -1 in case that some mandatory attributes are
+ * missing. On sucess, it returns 0.
+ */
+-int
++int __EXPORTED
+ nfct_timeout_nlmsg_parse_payload(const struct nlmsghdr *nlh,
+ struct nfct_timeout *t)
+ {
+@@ -654,7 +645,6 @@ nfct_timeout_nlmsg_parse_payload(const struct nlmsghdr *nlh,
+ }
+ return 0;
+ }
+-EXPORT_SYMBOL(nfct_timeout_nlmsg_parse_payload);
+
+ /**
+ * @}
+--
+2.11.0
+
diff --git a/net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0-r1.ebuild b/net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0-r1.ebuild
new file mode 100644
index 000000000000..fbaffa60b74a
--- /dev/null
+++ b/net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit linux-info autotools-utils
+
+DESCRIPTION="netlink interface to the connection tracking timeout infrastructure in the kernel packet filter"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_cttimeout"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~x86"
+IUSE="static-libs"
+
+RDEPEND="net-libs/libmnl:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-clang-export.patch
+)
+
+CONFIG_CHECK="~NF_CT_NETLINK_TIMEOUT"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ kernel_is lt 3 4 0 && ewarn "requires at least 3.4.0 kernel version"
+}
diff --git a/net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0.ebuild b/net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0.ebuild
new file mode 100644
index 000000000000..e976c50c787e
--- /dev/null
+++ b/net-libs/libnetfilter_cttimeout/libnetfilter_cttimeout-1.0.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit linux-info autotools-utils
+
+DESCRIPTION="netlink interface to the connection tracking timeout infrastructure in the kernel packet filter"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_cttimeout"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa x86"
+IUSE="static-libs"
+
+RDEPEND="net-libs/libmnl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~NF_CT_NETLINK_TIMEOUT"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ kernel_is lt 3 4 0 && ewarn "requires at least 3.4.0 kernel version"
+}
diff --git a/net-libs/libnetfilter_cttimeout/metadata.xml b/net-libs/libnetfilter_cttimeout/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-libs/libnetfilter_cttimeout/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnetfilter_log/Manifest b/net-libs/libnetfilter_log/Manifest
new file mode 100644
index 000000000000..59e5a2bacf02
--- /dev/null
+++ b/net-libs/libnetfilter_log/Manifest
@@ -0,0 +1,5 @@
+DIST libnetfilter_log-1.0.1.tar.bz2 262545 SHA256 74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21 SHA512 4088b9bf055fb4cd5f2e201a46a00def7642116b5d1695a371936b7b45eb93877944456506b45761bf2f3f81b40c161c1ecdcfb90532009f073dac3cedc6f436 WHIRLPOOL 95f20aca05f8ce89e9b59e06de80075b792104835376dc05452afcaa012f95519351ff3e869d1e1b82c36d4d577313525585106c4c5bd2fd47f427d003e153b4
+EBUILD libnetfilter_log-1.0.1.ebuild 679 SHA256 99c9b457d09be805c3970dcee0b65a8a782c9d040d7ca465ae7b503d7d45b5de SHA512 af0c7f387b00f5f9075c6e81571e579175dd675492d533f2b1b38164f662cf4c136b27f281ffdc9f7eee21f81497b69fcec0344979bdcde2a64a256a682ac213 WHIRLPOOL 9cab5ac29add2bf5e8fa4a19281c9e473cc9fc9029634cb0a7c5fa4145984fb057ab546f3fda216653664b32913866e71f65e150c682a4f143c4a97d87cb44a5
+MISC ChangeLog 2454 SHA256 5cc7979b1391d274eb4ef589223f329df25c117e38530706c562025fc4520382 SHA512 644774dc2c80e8c0e47ef586eda4261ce0158770c72f563233b6fc4bad497c9877ce0a5872081209d78cb0649521770b675965d824b164eb28bf876671f69e53 WHIRLPOOL 0044ea724bda8034133f456cb3310a0c02417ea6c47fabf56719aeeec99ab3e3ca69a756609e31fd11eeb01561e891da572f5a6ec8afabb9ad6942e636cd0a63
+MISC ChangeLog-2015 3453 SHA256 81259aad53ae3cd98693b470ab7dc9d233704329d346834e224875e88c313def SHA512 d3f32ecbd4ffaf044f3120dd53c99e712d85ae10b277d0f4c88afa335a0f753d4b10bcd78376d5c775d6fe2edf3f2e7611b4ce0a26bce7ddcb2f6fefd2f573cd WHIRLPOOL 8b7457814a58c20922851ecbb0d5190d2209817f74c08ec8a08c470b474c8e59663e65c7834c6ab21b6b9af2b1c4b0f1be39fcdc4e48ab04e4dc0c7811587621
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-libs/libnetfilter_log/libnetfilter_log-1.0.1.ebuild b/net-libs/libnetfilter_log/libnetfilter_log-1.0.1.ebuild
new file mode 100644
index 000000000000..23e1b0f27678
--- /dev/null
+++ b/net-libs/libnetfilter_log/libnetfilter_log-1.0.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit linux-info autotools-utils
+
+DESCRIPTION="interface to packets that have been logged by the kernel packet filter"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_log/"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ia64 ppc ~sparc x86"
+IUSE="static-libs"
+
+RDEPEND=">=net-libs/libnfnetlink-1.0.0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~NETFILTER_NETLINK_LOG"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ kernel_is lt 2 6 14 && die "requires at least 2.6.14 kernel version"
+}
diff --git a/net-libs/libnetfilter_log/metadata.xml b/net-libs/libnetfilter_log/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-libs/libnetfilter_log/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnetfilter_queue/Manifest b/net-libs/libnetfilter_queue/Manifest
new file mode 100644
index 000000000000..8fe04317dbd7
--- /dev/null
+++ b/net-libs/libnetfilter_queue/Manifest
@@ -0,0 +1,5 @@
+DIST libnetfilter_queue-1.0.2.tar.bz2 354201 SHA256 838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32 SHA512 89fec4d943b85f35e7cef3b1b9071b1280c6e1b282b7e5cb97eb17d05b9ddd175194639ead986767d27152540fe8e167383a1f7bbfe3cdf874a5a42a2c096f11 WHIRLPOOL b3a47c01c6250190a5519dc1e6edd9a88cd295c38189752c2e4516676673ec956aec2c2744faa0681700ad251e94cdab146daf4c13260666194bce5b6f207ef7
+EBUILD libnetfilter_queue-1.0.2.ebuild 732 SHA256 19d90020e5aae2ab499ee58daa12639f428ae4d16ff3567330ae41d961a873d3 SHA512 d0c46ff3d6e6965e0a5e3f84fb074ca65b415054189900df92816e8839ca5246bfcc8e456e1708af8ffefec395f9c195014fcd81ef60bb995b0a4ab31139e85f WHIRLPOOL 9f87ac6806939a2da683be6f732d451dca28377328b68320c4ce8f3f4d1e56bff9a29ebd8148aa964989f7a459063ac5794c7a32fbae401d4dcd153bbf7014a5
+MISC ChangeLog 2629 SHA256 b2c32dd760385340ebc97a62eaf99c7911c2f16211983ed6c7d4ae9c605d4a78 SHA512 9ddc8972e715333175508736a04b1f68ecf628310c50df16d58bda99ee7d674d7a409a8cd136adce058ecabb0c7a52b0a197955c82cc466470ef6a98eed9577b WHIRLPOOL 14f7c26ecedf80ed91d2d665abd817f629e228a6790f2b3517ac62d8016ada363fc490f03e19cf16ed651081c6af51a337acac8298878fc5980ec5c997cf1adc
+MISC ChangeLog-2015 4943 SHA256 7df0673b8d8dd32f2d7fc1c776223b5db9cb1ad47f4a65eb36e7f97dc620dce6 SHA512 0b09dc755ad50a9ec33a64abdd1b692bc9906b840781114a6d8c43b9e719969dfd20f666e7bea815c7a847942d94e4c9ba6145fdea28e51a81965294309cee3c WHIRLPOOL d6b5e73719d2acc91929c98e0e14c772cdd6930901b1dfb6517edda82d42f1a714b84d7c217c8ddfbba2b66041bd6a8a4fc922f446703f2fe94fb7d0b32a4b80
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-libs/libnetfilter_queue/libnetfilter_queue-1.0.2.ebuild b/net-libs/libnetfilter_queue/libnetfilter_queue-1.0.2.ebuild
new file mode 100644
index 000000000000..50faf6d0d9ce
--- /dev/null
+++ b/net-libs/libnetfilter_queue/libnetfilter_queue-1.0.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools-utils linux-info
+
+DESCRIPTION="API to packets that have been queued by the kernel packet filter"
+HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_queue/"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm arm64 hppa ~ppc ~ppc64 ~sparc x86"
+IUSE="static-libs"
+
+RDEPEND="
+ >=net-libs/libmnl-1.0.3
+ >=net-libs/libnfnetlink-0.0.41
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~NETFILTER_NETLINK_QUEUE"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ kernel_is lt 2 6 14 && ewarn "requires at least 2.6.14 kernel version"
+}
diff --git a/net-libs/libnetfilter_queue/metadata.xml b/net-libs/libnetfilter_queue/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-libs/libnetfilter_queue/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnfnetlink/Manifest b/net-libs/libnfnetlink/Manifest
new file mode 100644
index 000000000000..d8c7ca7a337a
--- /dev/null
+++ b/net-libs/libnfnetlink/Manifest
@@ -0,0 +1,5 @@
+DIST libnfnetlink-1.0.1.tar.bz2 320641 SHA256 f270e19de9127642d2a11589ef2ec97ef90a649a74f56cf9a96306b04817b51a SHA512 2ec2cd389c04e21c8a02fb3f6d6f326fc33ca9589577f1739c23d883fe2ee9feaa16e83b6ed09063ad886432e49565dc3256277d035260aca5aab17954b46104 WHIRLPOOL a27bee0e096e695ed4661c50f1ab2fb16e7012f96cc94baae8d5d67224e8b5dcbd869e5001b73fde4c9788f0fd87f85ff6caa3c5b95bae25f3005caed377451c
+EBUILD libnfnetlink-1.0.1.ebuild 1201 SHA256 c8f0c83cbbd4be79d1028284b7aec2b79bd65063b2905d373a01fb3f8f497458 SHA512 64d23a970061fc90ddc6cbd732759b85fbc658a95609c57de8a565626604c729aec6ce3a54434901624166411231a40aa7b640b91ecdbb224e58511c73e6b581 WHIRLPOOL 08a32892ba8afc8e065b62333fa8c9f9fc0d3d98466441be3ded3fbf3ce11d016ef3952ba231e628bc1ebe000be952ca456c064d541f6879f0907d4724f6e5dd
+MISC ChangeLog 2442 SHA256 3ecef0cde0032144a9b2c7bfd708498a1da2185770cb662efeec2c97f7f5751d SHA512 aede406735087c6be4530937cafc512be1c3e3e4b6796712c1b8d1b9554d71ce1f529c8ca61538ccd7cb2e0c4b7130f37cec3fe9535114a8c82f7d1a61d8a8e0 WHIRLPOOL 0728e12db05f15fd0066a838e7728d279c171082dfd3d1fb9398f51525be29a1fb38c61de2f945d84336fe52b516835dcd6f2f4a0ea5d479c794517fb1817b7b
+MISC ChangeLog-2015 8126 SHA256 e3e3bf3c40a859234275b7ff7a6bebd42e25545b445dde643317e59b65c7936b SHA512 a947856e7a426eab7843050abeb8820216eac4dfbddcda21c51cadf49b7bc2d0bc284270483f5f1f49f8dc07ebd082b58edadbf44ab4b681672ea701cda586fd WHIRLPOOL eb4d79ebac86080a0cde00ef9bafabc76f756e7e7e55274187cee8979b2ac0d50f67d19bb73aa2821cf2982aa0335b6f46228fd9d96b8c58e0ea0b201e971d00
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild b/net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild
new file mode 100644
index 000000000000..6833ce77e9f7
--- /dev/null
+++ b/net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit linux-info eutils
+
+DESCRIPTION="the low-level library for netfilter related kernel/userspace communication"
+HOMEPAGE="http://www.netfilter.org/projects/libnfnetlink/"
+SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="static-libs"
+
+DOCS=( README )
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 6 18 ; then
+ ewarn "${PN} requires at least 2.6.18 kernel version"
+ fi
+
+ #netfilter core team has changed some option names with kernel 2.6.20
+ error_common=' is not set when it should be. You can activate it in the Core Netfilter Configuration'
+ if kernel_is lt 2 6 20 ; then
+ CONFIG_CHECK="~IP_NF_CONNTRACK_NETLINK"
+ ERROR_IP_NF_CONNTRACK_NETLINK="CONFIG_IP_NF_CONNTRACK_NETLINK:\t${error_common}"
+ else
+ CONFIG_CHECK="~NF_CT_NETLINK"
+ ERROR_NF_CT_NETLINK="CONFIG_NF_CT_NETLINK:\t${error_common}"
+ fi
+
+ check_extra_config
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/libnfnetlink/metadata.xml b/net-libs/libnfnetlink/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-libs/libnfnetlink/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnfsidmap/Manifest b/net-libs/libnfsidmap/Manifest
new file mode 100644
index 000000000000..7033b9af63ef
--- /dev/null
+++ b/net-libs/libnfsidmap/Manifest
@@ -0,0 +1,10 @@
+AUX libnfsidmap-0.19-getgrouplist.patch 3459 SHA256 214f347663610a63f56659da0f50eac95e0c59257c18f09edcdc37984fdc8596 SHA512 a778620b51158b07b7224ca010ba199feba85af7fc087bde65cfb8d2660bd7646c08d303a39d2af525b3a449694a60c3c35fe3b696cb0354b5d74423240a9e8d WHIRLPOOL d44d8f9272884d99f838483742cabbb2d0353b4d45f03988a6addcad54b6ad91059179697618595f7833df47d2e9f17747fc86ce4e94b725c497e19c9238cb2c
+AUX libnfsidmap-0.21-headers.patch 438 SHA256 755314afbbdc82d2cb2e5f0114a3d6eae0d0978da859f215bb858e44a11296ff SHA512 55cc2dce6df5c215d2ba270324a2dabdd7c798d88dfe1f6ac01a7bfcddc1b9a23bc031fac2006682596f3984f0ce9782c8584e3b8e02a1b491ac978a69aca926 WHIRLPOOL 0ea374b911ba5209b621a363eff287647fdb8d3d98106276f143cb9fd03578c8c477482195876d8f751dcf59b9c1ecf8121f405caae4e0134f23a48cbcc86861
+DIST libnfsidmap-0.24.tar.gz 328720 SHA256 59501432e683336d7a290da13767e92afb5b86f42ea4254041225fe218e8dd47 SHA512 1283a4af1bcf3c6f941ab294acc0b2b4bd9ca947f2d3c2e866717478ba2e7a2190a5467b71d7e9136c5c83de564c4892f9e3304323ae17e3988af2e40c43982b WHIRLPOOL 7f9e81dec91429c09b24325bdf077d800b608bb87eeeb5d4334fa3dbbd50a4acf482162716c19c5f5175e48bf129dbf4611c1d6be933097753eeaab834192bae
+DIST libnfsidmap-0.25.tar.gz 346587 SHA256 656d245d84400e1030f8f40a5a27da76370690c4a932baf249110f047fe7efcf SHA512 8acf30790cdd19341c75cb8a4f7ee4dbc9f688c8514258046e55c8f4245df213709ccb7d5327a11b146b0e3b7266d3d4da018699c6be47fbedcc4cd384b54557 WHIRLPOOL de71282707013a28fb8ad4b32edc90821ebe2f50d832607135383197ae185b6d4040b06feb864fd3ba5ac36efcac1b9c6528c5a13b8c81b5cda551f842bddfd0
+EBUILD libnfsidmap-0.24.ebuild 1072 SHA256 f67a543d9a9e2dc42b3bb07e8bd3207c994866a218ca4a080123ace0ec7cb79d SHA512 1de6d7598472c57587b95c46c0b2093438227efdc85800d340c85f32f05b2f4fe91b30c46c04fa735c8a222c47f2a0f0342624a296fad0f0abccdaaaf3d0432e WHIRLPOOL afa989bb022a610f59e6e4b449898ca4115ce1322957aa882f47a282956eca6351a872aafdc06359fc2543b539bbd55acf00d9943ecadcf7f60368d0b5f54d70
+EBUILD libnfsidmap-0.25-r1.ebuild 1235 SHA256 b381fe2b36cf6f6051e5776e42acbb19da4f89553a03e7b98b7ee48a95db1796 SHA512 92cf0726f5694b326bee3aa1cb4f51fe14904f34cd8f2e559d1d1918291fc4c34fb6e48942771113a839bd99798b2930d8e847dd4e134f2c057155b49222a0fe WHIRLPOOL faadccb2d9aef0c3d366430a8e27f46b9501f4157ed6d244f8963c7783612ebbc0e3b52163173edf5d772aa082061d53c13b439442749736c072eebfb1207fdf
+EBUILD libnfsidmap-0.25.ebuild 1041 SHA256 d0438ca76d03080031d1c4a522f97364b2761bbe076143aeec90da74984a3c15 SHA512 b4729a00a7552f9643cfeda532564ee206820c1ea59f54c938117c5b70eed67918fa96224693c277dff3c09cff7e4a2250af0f23e4d3338df77036c8549cf234 WHIRLPOOL 42fba0fc8d540c3f08046fb041f5049615e7a42192d4f980a847a6a3dc8abc31b90fbbaa3093f15d40ab057cf111f843ef47b092878552c700e6a2de5a4fa42f
+MISC ChangeLog 2786 SHA256 491cc37ba1eea4df2fcfe8487b13a07e11d621fbaa3a6d1e430244c148c0c148 SHA512 4f69c597806a97e5bdbcf14049239b9ebbbfb60bb0887a0afaaaf3832006515ccf8099935af83001fb13d5c082fac46998d71f6e8af985d4bf210ec9f1bb161e WHIRLPOOL 431ad3a93d250f052552c1c90f086f82cbd5d7e6b43ca0fa8f717e9cdb88de05e194f35176bbfede2e360da3a8cfc7f78057302ea34e216a0b42b4003f6f54b8
+MISC ChangeLog-2015 6783 SHA256 783cb293646c6cd96015732009c3d6c0a0d55368fdbaccf3c1f122c6e15ed757 SHA512 845a62b23b103eeab26645f45adac95b5ff5ab9f2915b955cbb1cfb38d40414a7889bed6ae45e5a626dcb96142bde8b77c6bead1ea0fa854ffd59625cea53a00 WHIRLPOOL d677bfbe7da6f6d6cf3550fd60dc91341221cc9b78e0c9fac023b73e2fb15f95457f74b5fbd9cc4e1baf2a2bda7a7866e1ad0d6f65e328b1fffa880c23838d9d
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch b/net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch
new file mode 100644
index 000000000000..0d5d367b95b4
--- /dev/null
+++ b/net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch
@@ -0,0 +1,115 @@
+http://bugs.gentoo.org/169909
+
+--- libnfsidmap-0.19/configure.in
++++ libnfsidmap-0.19/configure.in
+@@ -38,7 +38,7 @@
+
+ # Checks for library functions.
+ AC_FUNC_MALLOC
+-AC_CHECK_FUNCS([strchr strdup])
++AC_CHECK_FUNCS([strchr strdup getgrouplist])
+
+ AC_CONFIG_FILES([Makefile])
+ AC_OUTPUT(libnfsidmap.pc)
+--- libnfsidmap-0.19/nss.c
++++ libnfsidmap-0.19/nss.c
+@@ -49,6 +49,8 @@
+ #include "cfg.h"
+ #include <syslog.h>
+
++#include "getgrouplist.c"
++
+ /*
+ * NSS Translation Methods
+ *
+--- libnfsidmap-0.19/getgrouplist.c
++++ libnfsidmap-0.19/getgrouplist.c
+@@ -0,0 +1,88 @@
++/*
++ * getgrouplist.c
++ *
++ * if system does not provide the non-standard getgrouplist, we will emulate
++ * it via POSIX standard functions
++ *
++ * Copyright (c) 1991, 1993
++ * The Regents of the University of California. All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ * 1. Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ * 2. Redistributions in binary form must reproduce the above copyright
++ * notice, this list of conditions and the following disclaimer in the
++ * documentation and/or other materials provided with the distribution.
++ * 4. Neither the name of the University nor the names of its contributors
++ * may be used to endorse or promote products derived from this software
++ * without specific prior written permission.
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ * SUCH DAMAGE.
++ */
++
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++#include <sys/types.h>
++#include <grp.h>
++#include <string.h>
++#include <unistd.h>
++
++#ifndef HAVE_GETGROUPLIST
++static
++int
++getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
++{
++ const struct group *grp;
++ int i, maxgroups, ngroups, ret;
++
++ ret = 0;
++ ngroups = 0;
++ maxgroups = *grpcnt;
++ /*
++ * When installing primary group, duplicate it;
++ * the first element of groups is the effective gid
++ * and will be overwritten when a setgid file is executed.
++ */
++ groups[ngroups++] = agroup;
++ if (maxgroups > 1)
++ groups[ngroups++] = agroup;
++ /*
++ * Scan the group file to find additional groups.
++ */
++ setgrent();
++ while ((grp = getgrent()) != NULL) {
++ for (i = 0; i < ngroups; i++) {
++ if (grp->gr_gid == groups[i])
++ goto skip;
++ }
++ for (i = 0; grp->gr_mem[i]; i++) {
++ if (!strcmp(grp->gr_mem[i], uname)) {
++ if (ngroups >= maxgroups) {
++ ret = -1;
++ break;
++ }
++ groups[ngroups++] = grp->gr_gid;
++ break;
++ }
++ }
++skip:
++ ;
++ }
++ endgrent();
++ *grpcnt = ngroups;
++ return (ret);
++}
++#endif
diff --git a/net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch b/net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch
new file mode 100644
index 000000000000..6ef12d44e44f
--- /dev/null
+++ b/net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch
@@ -0,0 +1,22 @@
+for toupper and such
+
+--- a/nss.c
++++ b/nss.c
+@@ -34,6 +34,7 @@
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
++#include <ctype.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #include <unistd.h>
+--- a/libnfsidmap.c
++++ b/libnfsidmap.c
+@@ -37,6 +37,7 @@
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
++#include <ctype.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #include <unistd.h>
diff --git a/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild b/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild
new file mode 100644
index 000000000000..6cf4e36fb64a
--- /dev/null
+++ b/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit autotools eutils
+
+DESCRIPTION="NFSv4 ID <-> name mapping library"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="ldap static-libs"
+
+DEPEND="ldap? ( net-nds/openldap )"
+RDEPEND="${DEPEND}
+ !<net-fs/nfs-utils-1.2.2
+ !net-fs/idmapd"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.19-getgrouplist.patch #169909
+ epatch "${FILESDIR}"/${PN}-0.21-headers.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ $(use_enable ldap)
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog NEWS README
+
+ insinto /etc
+ doins idmapd.conf || die
+
+ # remove useless files
+ rm -f "${D}"/usr/lib*/libnfsidmap/*.{a,la}
+ use static-libs || rm -f "${D}"/usr/lib*/*.la
+}
diff --git a/net-libs/libnfsidmap/libnfsidmap-0.25-r1.ebuild b/net-libs/libnfsidmap/libnfsidmap-0.25-r1.ebuild
new file mode 100644
index 000000000000..594bed9aaf51
--- /dev/null
+++ b/net-libs/libnfsidmap/libnfsidmap-0.25-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools eutils multilib
+
+DESCRIPTION="NFSv4 ID <-> name mapping library"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="ldap static-libs"
+
+DEPEND="ldap? ( net-nds/openldap )"
+RDEPEND="${DEPEND}
+ !<net-fs/nfs-utils-1.2.2
+ !net-fs/idmapd"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.19-getgrouplist.patch #169909
+ epatch "${FILESDIR}"/${PN}-0.21-headers.patch
+ # Ideally the build would use -DLIBDIR=$(libdir) at build time.
+ sed -i \
+ -e "/PATH_PLUGINS/s:/usr/lib/libnfsidmap:${EPREFIX}/usr/$(get_libdir)/libnfsidmap:" \
+ libnfsidmap.c || die #504666
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ $(use_enable ldap)
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ doins idmapd.conf
+
+ # remove useless files
+ rm -f "${D}"/usr/$(get_libdir)/libnfsidmap/*.{a,la}
+ use static-libs || find "${D}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/libnfsidmap/libnfsidmap-0.25.ebuild b/net-libs/libnfsidmap/libnfsidmap-0.25.ebuild
new file mode 100644
index 000000000000..bba515a1955d
--- /dev/null
+++ b/net-libs/libnfsidmap/libnfsidmap-0.25.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools eutils multilib
+
+DESCRIPTION="NFSv4 ID <-> name mapping library"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="ldap static-libs"
+
+DEPEND="ldap? ( net-nds/openldap )"
+RDEPEND="${DEPEND}
+ !<net-fs/nfs-utils-1.2.2
+ !net-fs/idmapd"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.19-getgrouplist.patch #169909
+ epatch "${FILESDIR}"/${PN}-0.21-headers.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ $(use_enable ldap)
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ doins idmapd.conf
+
+ # remove useless files
+ rm -f "${D}"/usr/$(get_libdir)/libnfsidmap/*.{a,la}
+ use static-libs || find "${D}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/libnfsidmap/metadata.xml b/net-libs/libnfsidmap/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/net-libs/libnfsidmap/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 type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnftnl/Manifest b/net-libs/libnftnl/Manifest
new file mode 100644
index 000000000000..e5952cc6bcba
--- /dev/null
+++ b/net-libs/libnftnl/Manifest
@@ -0,0 +1,9 @@
+DIST libnftnl-1.0.5.tar.bz2 367016 SHA256 f6d4f5a702e38bc7987f2363f9fcd65930e8b702595c221a497e2f3a359be497 SHA512 85c71aaaeeafdffe09f2591f26d49d41e9f511a53ed313fe642b4968eae8aac1246a53d5908fc737c6eb9cc4f5f3ef2a4eaa17fe33db453a1fd60f2f9d5c5a1d WHIRLPOOL 15fb25aa9e23bfdcb19ab21ea1d6eadd22e5acc0c38e761e4637a06136c809f5a5827ac58643515432e1394e3e8d4575df11e52b5f16ca787157317e5e2ae463
+DIST libnftnl-1.0.6.tar.bz2 381897 SHA256 ad3b932a39a1e567308e91b683b32239a5e1aea9b4582dfffe2288c3400ab07e SHA512 d813c9d0dbdeaffc30695fb0b5dbf987849339d119774c4f0e219db835f2ad9111a7436fd474ffa96b07e288d537cb4a1be153afcca23dabce0c264e1c4a3c62 WHIRLPOOL c4221c99ee437125c1b10d1d47db7586b979e0ce8e7187a2a9fd5ad3b866e0e6b451aba0956c9a48cec9fb7fc411f523c5f35cd9ef2cd1a939aaab7cb7570728
+DIST libnftnl-1.0.7.tar.bz2 384969 SHA256 9bb66ecbc64b8508249402f0093829f44177770ad99f6042b86b3a467d963982 SHA512 a220c6a2857b4ff7325bfa4fbf537c5afeb66232a7e190b50c3077f01b86f0fb1842055ccc719280b36820ac7103cbe8168944ffe10c55444830ff77449fa6a5 WHIRLPOOL 400edc3bf8268e6c7d4a6804fe36eaca271144019c2220b27865e755466318fe18e1ee5be583d63fc3cfcb1c6819ab557e17fefcba4b96c74e918d024012aadc
+EBUILD libnftnl-1.0.5.ebuild 1241 SHA256 6486443fe61c326e7f83f5d6006a76b3c4b58496e3ea827e2fa8db2e3fab7ea0 SHA512 fb6a9a2c52589f525041f51d0d3eded69e23f253036c0c8fd26b372683799605554473813f0801170d54c00b1c955c059575578e5b41d179fcafc52423fe86e1 WHIRLPOOL 1673c764d2e0ae2fbe0cd61f10c69b0a21d8d56b6081237fb546c329069f3874f6c51731a329508793d8fbd4abc7bac502e2f1886e8e8c690f767a9aa354019e
+EBUILD libnftnl-1.0.6.ebuild 1302 SHA256 18fd375302a2e9ee606c89fb2a57e3fb6e74e31b8ffb195910ac8b6106b4b83e SHA512 11a9d9694a2a01e539d6d81651828efaa4972c6fcfcdfa541ceed13cb4b553f4d9cdc07d23ffdb5c86f239840f970994d1af9c1f742374b0abf998f2e4d4294f WHIRLPOOL 09b51f49fec9a7603a0b7c57832c641919f6d70184c9f3526e974ae8c6acff31be908a85dc32841d51313dee579b9c7140a08f983f5800a3e018ec90a6bae9f2
+EBUILD libnftnl-1.0.7.ebuild 1305 SHA256 546e7c5254d3660511a5edae0483b0fe05d1bbba680e9d1bc23610bd40b63b3c SHA512 06aee62633e1b83ec9f1a7f484657901f93fac559cea7e7cc7cd53b617615392a63bbdc7989b2f197215c986fca67c7dabde7f12fa494b23f0e7b0788ed35cd1 WHIRLPOOL e7d6440e2654e76257273acd7ce831b7bb7c7a3282e5fc4b99d6b82adb94049ad3bab70a7a23873f2880adfb7088fc59741a6a1c40b87c9884594cce15dd5ff8
+MISC ChangeLog 4504 SHA256 b3a85750687dc6beff070b8fefd9307d1b7b5759894c34534fde17eca4a6e56f SHA512 b067d05881eea93e6c4da941ea542e1350cc6f6553f138de01a981f9738763554668e317c0159dd2a4659bd71f46fa19353b6c2c76e05803126351207b2d5105 WHIRLPOOL ea66000f5d372511130733255d10215ac358ac4ef6a4768e200468eeccd38b5bc2e56577dcb9f30e33c7e57fba45241bec074cf6bab833eab93d0b5acb020695
+MISC ChangeLog-2015 1730 SHA256 787f672eccae45f586a44c4a72c8457836f67af7f78fe5415c9c711b88866101 SHA512 46f4a9f4f1f6556d0b33c4a55ff3531857a0806f1ec8970df7d2b00172c54789e6b406041119e62636bdee3f25956b7a0e82daa4d081ff9aec278b2811bfd6cb WHIRLPOOL 21ac9d47fc9c5397d9ae0a7cbbc4ade36611d3a88d1230ab5d356ef4d1fb9caa84fdadb27bcc5bdbea981ca9fc794ba6ea4f9802af63a966b1094051fffba807
+MISC metadata.xml 317 SHA256 f4ad1fedcbebe8c51c0dbcac6dce2901ffb8b4a5ff4bdb4d67d94e8085e2915b SHA512 bfdf498de4ccd1d1a4f78c7e94a90b2bf203e16b8ddec5949bb88c953279026f95da956ef94b39140d44bbcd8cb4008f9f4b777fd895576da8414051c4487beb WHIRLPOOL 1a8c37ba113795d9e123cc5016ac4644e50981409f6ae5dae6a6e28134bc116966721dde550688e2f63f51fcd32767695577d983287fc8a66649386afb2b31d8
diff --git a/net-libs/libnftnl/libnftnl-1.0.5.ebuild b/net-libs/libnftnl/libnftnl-1.0.5.ebuild
new file mode 100644
index 000000000000..d581d38d35d9
--- /dev/null
+++ b/net-libs/libnftnl/libnftnl-1.0.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit base linux-info toolchain-funcs eutils
+
+DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
+HOMEPAGE="http://netfilter.org/projects/nftables/"
+SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/4"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE="examples json static-libs test xml"
+
+RDEPEND=">=net-libs/libmnl-1.0.0
+ xml? ( >=dev-libs/mini-xml-2.6 )
+ json? ( >=dev-libs/jansson-2.3 )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+REQUIRED_USE="test? ( json xml )"
+
+pkg_setup() {
+ if kernel_is ge 3 13; then
+ CONFIG_CHECK="~NF_TABLES"
+ linux-info_pkg_setup
+ else
+ eerror "This package requires kernel version 3.13 or newer to work properly."
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with xml xml-parsing) \
+ $(use_with json json-parsing)
+}
+
+src_install() {
+ default
+ gen_usr_ldscript -a nftnl
+ prune_libtool_files
+
+ if use examples; then
+ find examples/ -name 'Makefile*' -delete
+ dodoc -r examples/
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
+
+src_test() {
+ default
+ cd tests || die
+ ./test-script.sh || die
+}
diff --git a/net-libs/libnftnl/libnftnl-1.0.6.ebuild b/net-libs/libnftnl/libnftnl-1.0.6.ebuild
new file mode 100644
index 000000000000..f422f9b84900
--- /dev/null
+++ b/net-libs/libnftnl/libnftnl-1.0.6.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools linux-info toolchain-funcs eutils
+
+DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
+HOMEPAGE="http://netfilter.org/projects/nftables/"
+SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/4"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ppc ~ppc64 x86"
+IUSE="examples json static-libs test threads xml"
+
+RDEPEND=">=net-libs/libmnl-1.0.0
+ xml? ( >=dev-libs/mini-xml-2.6[threads=] )
+ json? ( >=dev-libs/jansson-2.3 )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+REQUIRED_USE="test? ( json xml )"
+
+pkg_setup() {
+ if kernel_is ge 3 13; then
+ CONFIG_CHECK="~NF_TABLES"
+ linux-info_pkg_setup
+ else
+ eerror "This package requires kernel version 3.13 or newer to work properly."
+ fi
+}
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with xml xml-parsing) \
+ $(use_with json json-parsing)
+}
+
+src_install() {
+ default
+ gen_usr_ldscript -a nftnl
+ prune_libtool_files
+
+ if use examples; then
+ find examples/ -name 'Makefile*' -delete
+ dodoc -r examples/
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
+
+src_test() {
+ default
+ cd tests || die
+ ./test-script.sh || die
+}
diff --git a/net-libs/libnftnl/libnftnl-1.0.7.ebuild b/net-libs/libnftnl/libnftnl-1.0.7.ebuild
new file mode 100644
index 000000000000..1a853c91ec53
--- /dev/null
+++ b/net-libs/libnftnl/libnftnl-1.0.7.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools linux-info toolchain-funcs
+
+DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
+HOMEPAGE="http://netfilter.org/projects/nftables/"
+SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="examples json static-libs test threads"
+
+RDEPEND=">=net-libs/libmnl-1.0.0
+ json? ( >=dev-libs/jansson-2.3 )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+REQUIRED_USE="test? ( json )"
+
+pkg_setup() {
+ if kernel_is ge 3 13; then
+ CONFIG_CHECK="~NF_TABLES"
+ linux-info_pkg_setup
+ else
+ eerror "This package requires kernel version 3.13 or newer to work properly."
+ fi
+}
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with json json-parsing)
+}
+
+src_test() {
+ default
+ cd tests || die
+ ./test-script.sh || die
+}
+
+src_install() {
+ default
+ gen_usr_ldscript -a nftnl
+ find "${D}" -name '*.la' -delete || die "Could not rm libtool files"
+
+ if use examples; then
+ find examples/ -name 'Makefile*' -delete || die "Could not rm examples"
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/net-libs/libnftnl/metadata.xml b/net-libs/libnftnl/metadata.xml
new file mode 100644
index 000000000000..cdf9238d83cd
--- /dev/null
+++ b/net-libs/libnftnl/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+<use>
+ <flag name="json">Supports parsing of JSON</flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/libnice/Manifest b/net-libs/libnice/Manifest
new file mode 100644
index 000000000000..aec9737f8f95
--- /dev/null
+++ b/net-libs/libnice/Manifest
@@ -0,0 +1,6 @@
+AUX libnice-0.1.13-gstreamer.patch 1195 SHA256 a100912a30b80257f218e97e5e58af8cb4172fe2563e6512d620ad14b63eedcf SHA512 fdbeded042b13c33c703a6b5032b7110eb1ce84ec3614e62f6482688a00eece723b4668a1925fcfab645bf61e7fcaf0d4d444525953dae397d8edb9a842c498b WHIRLPOOL 856eab907571730aea8977d49c8d0237403952253d7c3d570cdbdbc84d59dc746271db6772b53232a4e4785953e41154893e219f4fa6e1034f753ddef4d33c80
+DIST libnice-0.1.13.tar.gz 912374 SHA256 61112d9f3be933a827c8365f20551563953af6718057928f51f487bfe88419e1 SHA512 c9bb81e8cd0b4e3673dba07ce08a16dd8821831339b44f1006510cdc09f9ae4c6eb7d43230711a2509867acb8d7df71821c411830dbf71c5a5d7e802f14a32c1 WHIRLPOOL 93bd35742cc3ef3cf768613d7757552d7fae98e906cad334b499e3a69577480a840e4e9bdb16c047099a62d47a60e8eee006107b1717937312ada087098f9dad
+EBUILD libnice-0.1.13.ebuild 1559 SHA256 632af6292b8b6f27ee956eed1a048c6c6d005597c56858742659640d71f70086 SHA512 193d86af23c26c8dd7cbd7daaa95b56904f5a8277619f51c9189fcadf9a16efe63eb47e7a31baa6a3d2371b7f11be9e578bec37cd7d9b445b53c4ebb0cdf9551 WHIRLPOOL a00cdfdea457817c82eef3cc951d63156ff87026394d88c1a71036154dbf6e02e598fa20cba8aeaf6de8682c8f9ffab34aa9e62b29c7c2aeaf7bd90423badb8b
+MISC ChangeLog 3745 SHA256 0602fe96b7cfb72c079198d55f35470137526f111e65287029318bba76a404ec SHA512 5387acbdeb04ea7417b938886a5bfc38622d3a9e565683b523bdec5d4dee0c9a25668b612c9bcd45369d4ba1593fa6e53c55238d7c3d59370e37e87211ccc42d WHIRLPOOL 9bd67b3cfc59117d370dbb567abed11912e16828776ce826c9d60b79a3b909acd77eeb3e76ce4a948a12bfa267082601bf71f7ebf02899134bc1009249ae12af
+MISC ChangeLog-2015 12765 SHA256 3edcfad60dae53a7eec8ee2810b274abc2971c038ca3c04e86810eef9372c441 SHA512 2a82fa5fcbd6c47e357120359d60c3bdd7232879b4defbd655bec468fc3653547d6897be3975dabf3bb61f33f01e4ddf085149dbdc8098b682fa476dfa6255d0 WHIRLPOOL 0a8225fda5db2960d0b0a77d0006316882d4a41e1a26972660a5bd6be7165acfd6c2064d5bc349385c8b6742244522ce0d75e8de6b9c75e30b21811125fd5a39
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/libnice/files/libnice-0.1.13-gstreamer.patch b/net-libs/libnice/files/libnice-0.1.13-gstreamer.patch
new file mode 100644
index 000000000000..136d85456c40
--- /dev/null
+++ b/net-libs/libnice/files/libnice-0.1.13-gstreamer.patch
@@ -0,0 +1,40 @@
+From 76ff4aee9fe963842dd17748d14c68552c5dcda3 Mon Sep 17 00:00:00 2001
+From: Timo Gurr <timo.gurr@gmail.com>
+Date: Mon, 1 Jun 2015 16:10:16 +0200
+Subject: [PATCH] configure: Fix configure failure when building without
+ gstreamer support
+
+Error introduced in 20ea22e0a11a9bdfe4d8125b68083249b694338a, resulting in a
+configure/build error when building without gstreamer:
+
+configure: error: conditional "HAVE_GST_CHECK" was never defined.
+Usually this means the macro was only invoked conditionally.
+---
+ configure.ac | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6031cec..64a571f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -231,9 +231,6 @@ AS_IF([test "$with_gstreamer" != no], [
+ [
+ have_gst_check=no
+ ])
+-
+- AM_CONDITIONAL(HAVE_GST_CHECK, test "$have_gst_check" = yes)
+-
+ ])
+
+ AS_IF([test "$with_gstreamer010" != no], [
+@@ -260,6 +257,7 @@ AC_SUBST(gstplugindir)
+ AC_SUBST(gstplugin010dir)
+
+ AM_CONDITIONAL(WITH_GSTREAMER, test "$with_gstreamer" = yes)
++AM_CONDITIONAL(HAVE_GST_CHECK, test "$have_gst_check" = yes)
+ AM_CONDITIONAL(WITH_GSTREAMER010, test "$with_gstreamer010" = yes)
+
+ GUPNP_IGD_REQUIRED=0.2.4
+--
+2.4.1
+
diff --git a/net-libs/libnice/libnice-0.1.13.ebuild b/net-libs/libnice/libnice-0.1.13.ebuild
new file mode 100644
index 000000000000..94c40f4d6da0
--- /dev/null
+++ b/net-libs/libnice/libnice-0.1.13.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils multilib-minimal xdg-utils
+
+DESCRIPTION="An implementation of the Interactice Connectivity Establishment standard (ICE)"
+HOMEPAGE="https://nice.freedesktop.org/wiki/"
+SRC_URI="https://nice.freedesktop.org/releases/${P}.tar.gz"
+
+LICENSE="|| ( MPL-1.1 LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+introspection +upnp"
+
+RDEPEND="
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
+ introspection? ( >=dev-libs/gobject-introspection-1.30.0:= )
+ upnp? ( >=net-libs/gupnp-igd-0.2.4:=[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+"
+
+# Many tests fail from time to time, for example:
+# https://bugs.freedesktop.org/show_bug.cgi?id=81691
+RESTRICT="test"
+
+src_prepare() {
+ xdg_environment_reset
+
+ # https://bugs.freedesktop.org/show_bug.cgi?id=90801
+ epatch "${FILESDIR}"/${P}-gstreamer.patch
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # gstreamer plugin split off into media-plugins/gst-plugins-libnice
+ ECONF_SOURCE=${S} \
+ econf \
+ --disable-static \
+ --disable-static-plugins \
+ --without-gstreamer \
+ --without-gstreamer-0.10 \
+ $(multilib_native_use_enable introspection) \
+ $(use_enable upnp gupnp)
+
+ if multilib_is_native_abi; then
+ ln -s {"${S}"/,}docs/reference/libnice/html || die
+ fi
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --modules
+}
diff --git a/net-libs/libnice/metadata.xml b/net-libs/libnice/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/libnice/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libnids/Manifest b/net-libs/libnids/Manifest
new file mode 100644
index 000000000000..7c26728dc4d3
--- /dev/null
+++ b/net-libs/libnids/Manifest
@@ -0,0 +1,7 @@
+AUX libnids-1.24-ldflags.patch 422 SHA256 5fea148d998e57da6197e46fdb6a063f1d59ed857b60995113bbf3b36a2abd28 SHA512 080a982ee45d69419fb45f8fc35eb53febfc098d24f5c52476933dae1333a11ffe3bffafa5dde302af308840ce17a4ed8fa210a87d6c65e16f78993d23492481 WHIRLPOOL 36aef4d6b4485fbd00a2a145c219ffe9fb006f2d754dbab842976055a28aba3c4ed0fb54025d49f0c27334b15351a322c204733aa3665af2e2b5a0391493c2a3
+AUX libnids-1.24-static-libs.patch 1018 SHA256 2a800ac6aec848081cb399db10331fbe69907deb7b5210c6f8f31f85b2dd0fae SHA512 975354be03729c54f33340c7aa8ddd7d6d4f1eba19ee6096433a7e69b90ed84ab20f654ee28877b6db3b7f07cbdf29a20229784f69f1d7d8a29a81128554179e WHIRLPOOL b0fa3d3779f728f7fa34ba1806d7bff3471dcc10e7708dc2a308113fdd7c6e16b722f01653b7702cce6f402cd467aeb8f88f737ca8e3a56df45cefea3e89b67a
+DIST libnids-1.24.tar.gz 151021 SHA256 314b4793e0902fbf1fdb7fb659af37a3c1306ed1aad5d1c84de6c931b351d359 SHA512 2046900023e853d7dbd7061c9f47d8a8ba26320991ca34198249019c1b9a6f75010574f9f022d02976272a384cf769394c4cc3ae536fc6164716cadc4770bb53 WHIRLPOOL c012e724c0f724cd817db4726a4ee1c0a438d717fe8534f96c41829e5574a3edaf4fd287c3acd65da4ee6591bb55dcd0f0bb71da7302e7b8ba43992ba85a1455
+EBUILD libnids-1.24-r6.ebuild 1106 SHA256 03df2429b4367acd695609b06888276ccab289241e38960d069e43682ce5ee18 SHA512 4adc9b043dcd077cab15ad56997900ddf076b51d1f5519c9022838d5417f0885baa43490986cca202e21a94370b71befde01a488451cd06a134ffe3ce987bd7a WHIRLPOOL 6d2ff654b9308311adb3bf28a799ff78892fe06875f20fdfbd48ab58b84f8c9a3c62cf7a2a039f2fe4ebc77c92757147560e824472f94c1eeffa486a32561781
+MISC ChangeLog 2507 SHA256 48b7daa443d8b84a5d53bb25c4655ebb8cea13a4378279a370a58d8092c626ba SHA512 761e9fbee9935cc4c6fcbe6abc2d6f3a8872650d33306ffc0343e059b4b37f198dc2ea51b21a973554c278957877f55750f82172a807acad2de2df531df82af9 WHIRLPOOL dfd66660408dbb255345dedd6e633bbab91f3c0a58beaf999360ae969fac40b9ba476725d01b2810b30c982efb93e383558e496d0a2883d044b761fe403ce723
+MISC ChangeLog-2015 10771 SHA256 aedb4fdfe49323858c82b2e7001b1f1cdf2351c0df4843ffa36802a29f44e64b SHA512 b079a3dc29f91226ff13c8e98023c0adebb3a03cb00434f3ae394f0625bbb01bf0a87b1e7a30404364c5b98b16a5a6fbbea902885b0d65fb946a975c3a3206ef WHIRLPOOL c3b5783c272d464196aea7607b5b196e33cc1b2feccad22609fcdc1b29dd076ac13fca83c9e1526bb0c248c9163412392ffc2dd6dd19d690555429cdf931baf2
+MISC metadata.xml 688 SHA256 8245b9a308231bd5170f28c4ee4e909038172f02c046ccf20bf8ef12881f9589 SHA512 c70e24c21ba36ff9acff4d4b4290c8087a56e082ca520a7aabf7f0ffca5f03ee49f1bb5ac093304a2cb744241ad749e39022fce7c1a20c28ef08b65da911791a WHIRLPOOL 0b717fb2596a64250e354415446c20aa0e6520a7e7d07024fafa230fe2437ac7668a11e5d197fd2421f950ed05c272c77a133fe545b6394158c42786bdced946
diff --git a/net-libs/libnids/files/libnids-1.24-ldflags.patch b/net-libs/libnids/files/libnids-1.24-ldflags.patch
new file mode 100644
index 000000000000..0f3daca463b6
--- /dev/null
+++ b/net-libs/libnids/files/libnids-1.24-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -65,7 +65,7 @@
+ ar -cr $@ $(OBJS)
+ $(RANLIB) $@
+ $(LIBSHARED): $(OBJS_SHARED)
+- $(CC) -shared -Wl,-soname,$(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB)
++ $(CC) -shared -Wl,-soname,$(LIBSHARED) $(LDFLAGS) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB)
+
+ _install install: $(LIBSTATIC)
+ ../mkinstalldirs $(install_prefix)$(libdir)
diff --git a/net-libs/libnids/files/libnids-1.24-static-libs.patch b/net-libs/libnids/files/libnids-1.24-static-libs.patch
new file mode 100644
index 000000000000..7bf9a0f1b629
--- /dev/null
+++ b/net-libs/libnids/files/libnids-1.24-static-libs.patch
@@ -0,0 +1,29 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -62,19 +62,22 @@
+
+
+ $(LIBSTATIC): $(OBJS)
+- ar -cr $@ $(OBJS)
++ $(AR) -cr $@ $(OBJS)
+ $(RANLIB) $@
+ $(LIBSHARED): $(OBJS_SHARED)
+ $(CC) -shared -Wl,-soname,$(LIBSHARED) $(LDFLAGS) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB)
+
+-_install install: $(LIBSTATIC)
++installbase:
+ ../mkinstalldirs $(install_prefix)$(libdir)
+ ../mkinstalldirs $(install_prefix)$(includedir)
+ ../mkinstalldirs $(install_prefix)$(mandir)/man3
+- $(INSTALL) -c -m 644 libnids.a $(install_prefix)$(libdir)
+ $(INSTALL) -c -m 644 nids.h $(install_prefix)$(includedir)
+ $(INSTALL) -c -m 644 libnids.3 $(install_prefix)$(mandir)/man3
+-_installshared installshared: install $(LIBSHARED)
++
++_install install: $(LIBSTATIC) installbase
++ $(INSTALL) -c -m 644 libnids.a $(install_prefix)$(libdir)
++
++_installshared installshared: $(LIBSHARED) installbase
+ $(INSTALL) -c -m 755 $(LIBSHARED) $(install_prefix)$(libdir)
+ ln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.so
+
diff --git a/net-libs/libnids/libnids-1.24-r6.ebuild b/net-libs/libnids/libnids-1.24-r6.ebuild
new file mode 100644
index 000000000000..d4a4fe94a92d
--- /dev/null
+++ b/net-libs/libnids/libnids-1.24-r6.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="an implementation of an E-component of Network Intrusion Detection System"
+HOMEPAGE="http://libnids.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="1.2"
+KEYWORDS="amd64 ppc x86"
+IUSE="+glib +libnet static-libs"
+
+RDEPEND="
+ !net-libs/libnids:1.1
+ glib? ( dev-libs/glib:2 )
+ libnet? ( >=net-libs/libnet-1.1.0-r3 )
+ net-libs/libpcap
+"
+DEPEND="
+ ${RDEPEND}
+ glib? ( virtual/pkgconfig )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+ epatch "${FILESDIR}/${P}-static-libs.patch"
+}
+
+src_configure() {
+ tc-export AR
+ append-flags -fno-strict-aliasing
+
+ econf \
+ --enable-shared \
+ $(usex glib '' --disable-libglib) \
+ $(use_enable libnet)
+}
+
+src_compile() {
+ emake shared $(usex static-libs static '')
+}
+
+src_install() {
+ local tgt
+ for tgt in _installshared $(usex static-libs _install ''); do
+ emake install_prefix="${D}" ${tgt}
+ done
+
+ dodoc CHANGES CREDITS MISC README doc/*
+}
diff --git a/net-libs/libnids/metadata.xml b/net-libs/libnids/metadata.xml
new file mode 100644
index 000000000000..ef5b85f7e9f8
--- /dev/null
+++ b/net-libs/libnids/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <longdescription>emulates the IP stack of Linux 2.0.x and offers IP defragmentation, TCP stream assembly and TCP port scan detection.</longdescription>
+ <use>
+ <flag name="glib">Use <pkg>dev-libs/glib</pkg> for multiprocessing support</flag>
+ <flag name="libnet">Include code requiring <pkg>net-libs/libnet</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">libnids</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libnipper/Manifest b/net-libs/libnipper/Manifest
new file mode 100644
index 000000000000..ef4541f7ff8a
--- /dev/null
+++ b/net-libs/libnipper/Manifest
@@ -0,0 +1,8 @@
+AUX libnipper-0.12.6-gcc47.patch 272 SHA256 9453c62bf6271bca2e629106a558490423ba30f40e897e385a618194687bab5b SHA512 fa6e326a97d5d6e72fc04fc2aebf6fb56be0c3683b5d1a02fcb907a944d2b3cb41d91a750c69c69a73e0fbec670d288b16bfcf718a3ec43a1689dbfb67411edf WHIRLPOOL 104b81b20eaab91114775e28b608a1eda86ed80e4e47545e89ebfe10e33b655d3d6485fb2cd9a4cb2bc8abbb5cfc9b6bd0838806aa811039f1af2edcde446ace
+AUX libnipper-0.12.6-glibc-2.10.patch 418 SHA256 2bd953dcbfd4f1dc081083ee230367b86cad739576a2df3cee6d33c6d7a1d306 SHA512 0111563759771a4fbb9464c41cb66358a8a12c461709b3cb5638663b6d39ea594aa4402eb488080992a173ad1d639790c6632ca5e8f0c85ce60af5c6e1fc54ea WHIRLPOOL c8123b9a4bc25c3d7431190a19c088352a9e3bef62c545b3613bc10d668f736041058ed7e3cecc78debbae718fccb053aaf9ef28a902d8ddd026f8a4c2c16d18
+AUX libnipper-0.12.6-multilib-strict.patch 523 SHA256 275cc804875c3557f99dc0e278866bb9247799ee9e8aede49e45aca330be0dbd SHA512 4290a1b5afdf3215d25d1eb173a0dca421f209335cbe413aa3f051df31c132e85dcafaec89eee52709ece258aba37b507cc4499369e9ad403aa7ecb2b7ba04a6 WHIRLPOOL 45797f4a34b9abf08aa006fa965ea566c50345f1b6d20bef40404b7a53d6b5b0e6ec82ec9aca445df0adba0d6767cb0bf695688a93ea204b8c1d09d1aadc750e
+DIST libnipper-0.12.6.tgz 444578 SHA256 70cd0cb66d8c0718c7d1ec9bc510d70ed17efed0213833790e79d7ca43fccf8c SHA512 eb6eabce06a71463f8dad59a2aca13583e9ae8113b6997a7946b9bbafe54cd0668189c915f917ffcb7ffe3b5dc6dbbf7d37874ec226e5bd8cdd3c8999f9e10b0 WHIRLPOOL dae559647ec689087d103fb0a8da4ef5179afc6a426412ab211eff6009df87b264decfe19aca84f29e3eaa187b26dc558341670c4efd3b8e47a3c201668ba1f9
+EBUILD libnipper-0.12.6-r1.ebuild 468 SHA256 2f69831e3d369e0846feffcb92f3fe8cda22846150f158fe9edad1e01142984a SHA512 7a67d1cab29df68cafe09c4549c6426316f6181b888040ebee8abdaf2c3d3554d7f223cd439a499cf2a361cd9930b6efc3c90e58b7121d009e1dd1f781b71b90 WHIRLPOOL 2edb487fdfd8ab97e2a6fd018ba06a4b03deff7de4a04daca871f5096107303609031718ec94101411e177f4b483fc0428f56b242204963448ba90c98d62d0cc
+MISC ChangeLog 2322 SHA256 6fd2c3b83496c8ebaefdec45daf8fe2a8421dbad39ae290c6dc409117096504c SHA512 9ff0e21401c3c4dd45abfb10815880ff3fed303f2db009e7f86757b677d3357df65dd76346aebe4b91d32b9c6239273267f4c6053014dd1ed1f15455e3266d60 WHIRLPOOL 332d2a75e6eadffdaa07ee2371c28c1dd35f6529a365f8997426d370a45777870f940fa5d1b8c400a271c46384cb6c636edd028ab649db9c50e0b27e2dbb4136
+MISC ChangeLog-2015 2252 SHA256 b12c887c7f17594d3a127ae2b35fc4375146c3a9ea5540099831c0dd1b553cca SHA512 d2ac3e803c7dbd8752b9d64be6890d83e6f2f5cbe3995327aa711e5e61b928e61faa074963f3fa741ba12bfa30c94fa8eb800b4cb29272fa0ec807b6f4219a73 WHIRLPOOL a4e6ecf1fcf9a291aaab96db10d7276fd1c879a3590629fd7b67f8a3dfeb9ac21365cbe13e583497e2362a89351991c65d3509dd21808a3a18f6abd3b3161222
+MISC metadata.xml 446 SHA256 bdca1f2a423937a541d7a4a11742dcb76725fc8ab1d8aac2bd7cdab9f7a3b883 SHA512 fce909775e84b475f504f9aea14ed5090b1b849ec65b4d3013893d3aca2d8ab4c8e074e1e5b632d0f92313e003b6c70f138b63985e90565f4c283964f47b87c7 WHIRLPOOL 96b75ebbe875eb33b006a44921797a67ae47466ec6d6e46b9bda14c9a29bc9a5dd5448112f1caa075b0986b33ae1b090170e6818bfca43a8c298352c205aed94
diff --git a/net-libs/libnipper/files/libnipper-0.12.6-gcc47.patch b/net-libs/libnipper/files/libnipper-0.12.6-gcc47.patch
new file mode 100644
index 000000000000..45b65b5e0383
--- /dev/null
+++ b/net-libs/libnipper/files/libnipper-0.12.6-gcc47.patch
@@ -0,0 +1,16 @@
+ https://bugs.gentoo.org/423813
+
+
+ device/device.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/device/device.cpp
++++ b/device/device.cpp
+@@ -31,6 +31,7 @@
+
+
+ // Includes...
++#include <unistd.h>
+ #include "../globaldefs.h"
+ #include "errortext.h"
+ #include "device.h"
diff --git a/net-libs/libnipper/files/libnipper-0.12.6-glibc-2.10.patch b/net-libs/libnipper/files/libnipper-0.12.6-glibc-2.10.patch
new file mode 100644
index 000000000000..332276e14329
--- /dev/null
+++ b/net-libs/libnipper/files/libnipper-0.12.6-glibc-2.10.patch
@@ -0,0 +1,13 @@
+diff --git a/device/common/misc.cpp b/device/common/misc.cpp
+index 7b3a7fb..612aacd 100644
+--- a/device/common/misc.cpp
++++ b/device/common/misc.cpp
+@@ -198,7 +198,7 @@ const char *Device::cidrToNetmask(const char *cidr)
+ unsigned int Device::ipAddressToNum(const char *address)
+ {
+ // Variables...
+- char *addressPointer = 0;
++ const char *addressPointer = 0;
+ unsigned int returnAddress = 0;
+ int tempInt = 0;
+
diff --git a/net-libs/libnipper/files/libnipper-0.12.6-multilib-strict.patch b/net-libs/libnipper/files/libnipper-0.12.6-multilib-strict.patch
new file mode 100644
index 000000000000..471236b84f92
--- /dev/null
+++ b/net-libs/libnipper/files/libnipper-0.12.6-multilib-strict.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4cc6260..d4518fb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -319,7 +319,7 @@ SET(libnipper_SRC
+ ADD_LIBRARY(nipper SHARED ${libnipper_SRC})
+
+ # Install...
+-INSTALL(TARGETS nipper LIBRARY DESTINATION /usr/lib)
++INSTALL(TARGETS nipper LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ INSTALL(FILES nipper.conf DESTINATION /etc)
+ INSTALL(FILES libnipper.h config.h DESTINATION /usr/include/libnipper/)
+ INSTALL(FILES man/nipper.conf.5 DESTINATION /usr/share/man/man5)
diff --git a/net-libs/libnipper/libnipper-0.12.6-r1.ebuild b/net-libs/libnipper/libnipper-0.12.6-r1.ebuild
new file mode 100644
index 000000000000..f06a4c7bc6d0
--- /dev/null
+++ b/net-libs/libnipper/libnipper-0.12.6-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="A router configuration security analysis library"
+HOMEPAGE="http://nipper.titania.co.uk/"
+SRC_URI="mirror://sourceforge/nipper/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-glibc-2.10.patch"
+ "${FILESDIR}/${P}-gcc47.patch"
+ "${FILESDIR}/${P}-multilib-strict.patch"
+)
diff --git a/net-libs/libnipper/metadata.xml b/net-libs/libnipper/metadata.xml
new file mode 100644
index 000000000000..5b93ff141c8f
--- /dev/null
+++ b/net-libs/libnipper/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ikelos@gentoo.org</email>
+ <name>Mike Auty</name>
+ </maintainer>
+ <longdescription>A library for conducting security audits of cisco and other firewall device configurations.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">nipper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libnsl/Manifest b/net-libs/libnsl/Manifest
new file mode 100644
index 000000000000..adb11981b8ca
--- /dev/null
+++ b/net-libs/libnsl/Manifest
@@ -0,0 +1,3 @@
+DIST libnsl-1.1.0.tar.gz 209148 SHA256 a23cfcf7f29f168b95e821d01217600096c05be8cd5c085450cb4f160425277b SHA512 12555ed701d06247b6774c6c2759ada280ffce73820976adb4aaa48b50b97121b1805412541778dfcdd8845af6a10b2e5a9dc0eb7b953e84467d0a40ad3360cd WHIRLPOOL c347bbd72b75d1e3ab0069f802da8e4e4e4931a8a61b4abed1dd664c4576e7e22e96c012858c684ec79a981aea84460eae3a2ccb8e94aa7bfecfdd99c3e54730
+EBUILD libnsl-1.1.0.ebuild 788 SHA256 b3161b67dd23cf274629a7ff5d296e430e5fd8069ce80f4fa39b0cdc6cd2f7ff SHA512 17ba18e3557194108af91690365e5df91a05ac4719440d76a798f10a08000b809808e7f4e39f1d7b91ac32ca400d20b4aaa7e95c69a53111dc852f47fd736f61 WHIRLPOOL 2b9ab19b211648d304c4e3615d8fc437b054cf0df7d2416ad7a5ffaee3e6a0b1ba6949f8d16111556a8da8aa8564a86105f78474efa1b80d97b3d41f2fe903e6
+MISC metadata.xml 379 SHA256 ebf32af5bc074fc17a37c93745bc34847424be60d6d5d23a69d88baabc554bcf SHA512 00a77262e76176fbc54ff2d1d8ba070868f185f5f940abd25ad1af80fd52f1560c9e0290c42283a98519a653a334ed6dfd4e0f8540d10946253b3afc205bb753 WHIRLPOOL eab5963365c94d28e5e60cc0b4eaee3d576bf8cc3372eb739f0fcbdbf4f3c37fc1af7c90b39866e476fdcd2d529b7e78f2bbcc1d3b938c047702d09db3141fa6
diff --git a/net-libs/libnsl/libnsl-1.1.0.ebuild b/net-libs/libnsl/libnsl-1.1.0.ebuild
new file mode 100644
index 000000000000..3abda843bf65
--- /dev/null
+++ b/net-libs/libnsl/libnsl-1.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version"
+HOMEPAGE="https://github.com/thkukuk/libnsl"
+SRC_URI="https://github.com/thkukuk/${PN}/archive/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="LGPL-2.1+"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+IUSE=""
+
+DEPEND="
+ !<sys-libs/glibc-2.26
+ net-libs/libtirpc[${MULTILIB_USEDEP}]
+"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${PN}-${P}
+
+src_prepare(){
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # Fool multilib-minimal to run ./configure in out-of-tree build
+ ECONF_SOURCE=${S} econf
+}
diff --git a/net-libs/libnsl/metadata.xml b/net-libs/libnsl/metadata.xml
new file mode 100644
index 000000000000..bcf493eae9ae
--- /dev/null
+++ b/net-libs/libnsl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libntlm/Manifest b/net-libs/libntlm/Manifest
new file mode 100644
index 000000000000..5458f72551be
--- /dev/null
+++ b/net-libs/libntlm/Manifest
@@ -0,0 +1,7 @@
+DIST libntlm-1.3.tar.gz 518803 SHA256 ea1955e4acbb0d4303b2121a4808eb4abb88d5360f90149b90ac650542c83780 SHA512 d375d472167e9c0f142e2415428f48ef692c9fcfe4d882ca442e0fbff86554a5bee23747ad1eb27f81d32ec2f3f5ff654e5c095e4b62dc25dc4918e6664966c0 WHIRLPOOL b7caafd136404fd61891601e9e50c42662b007889e2609c9ed9291486dadda62c70f55d2bf79bdeef047b77ed76cddb27d85a059e6d1953c7b00f2581d29695c
+DIST libntlm-1.4.tar.gz 568414 SHA256 8415d75e31d3135dc7062787eaf4119b984d50f86f0d004b964cdc18a3182589 SHA512 888ed2e9ee3e01a53bec951534966378a21c8a0baf555b65d97fed4408568c6b67f4199396cf3e61bb5a73b8e47dbe1333449369a92499e16478b0b60ac78274 WHIRLPOOL fa0967ebcf6dd01f579a73763eef52c6f87d824620e80fa09e263171553190f355d0a8efb04b1567e5431d9df9f69b9041850d9fd28f5064f8d2ecc8916bd80b
+EBUILD libntlm-1.3.ebuild 542 SHA256 2f2d6032009ac1dc2ee180d77e89a818561f3266c29ab0a11272e0e781a1bb99 SHA512 37d64d7bce82cdbf381e5ecc3fd713384241356721bf82690d90e5c0d802252f81b7c805e04490791fe7b2f86ff88cc59af3621139da73e6553400278fe636ba WHIRLPOOL 3f320cb6bc2d12447b326c52a5b1c56b22e812175397480c6f97652d8d06e47753f366cd048ccfcc9b9abecec9a81c7a85d95abb213ce90f24e7148fcb0cb4c6
+EBUILD libntlm-1.4.ebuild 444 SHA256 b3d684a8bcfacaea6994bca5ea7f28bc45b0a3394e4707ae78d5b62ef838884b SHA512 8267837acd2eb6534f69195ed61b80998439d13b3da51bcb0d57a5760b868cb49c73196a1f83b9bfdfd96de864115a373837b690f81216d81bbb2956d7e80cb8 WHIRLPOOL a128723ad5b57ef43a15dd2f994bce4843e5ec55805b7824a310e73b264aa8243c2aaeb4cf714ddcd392e40d46ecebf7d948999a86e2fcdeb8228c7f28b7e947
+MISC ChangeLog 2653 SHA256 501233939ddba788af169e52e7dfba2bc269b84740dbfa8effc4c2bdb21a2736 SHA512 d415591a1d14992e359d1da6b3e93c8629b5dc542ba5def824be8b6d8854d706d0cd0bd6a01c1c152c0021d9e4713ccf17ea4bf6683b4ebada1fafcd197004da WHIRLPOOL a9903a397449d192293206255819606334a09e68e0212a6db3e79d646da253015e47299e6ecf22be7d28812f36f4716ebe6a0e5cec652836f20255b9e138dd71
+MISC ChangeLog-2015 5360 SHA256 9e9246c0866b268eec43d52f99b5c37e3c3dfa4a69066af583d4646b7c0483ab SHA512 d57003cb5623859e14ef96b8e98e36d4642c578fbdc1f8a98444817eacec12a895e39bc8eb4042b9fe9621c43e084c7c1d0a04090353ed98e151691d2bb0f33a WHIRLPOOL c88f79c6023153f138af1021def9643d20ee1585110db5b621b56464f6525227783b1f031d7732060526302f1dbfc08135891a3e6f15623c4430ef4655e76077
+MISC metadata.xml 635 SHA256 442fe440448c867749969118137c24fd28dc0e5d5020f7674ad76eeec77d30b1 SHA512 e802f2424b869d09a0d5a6e4488608a5a4bffe8c6d833add2f66cf37d928455362994e07eaccc07e6cbc013bef3d4179d1224d8c080b32ce4536e11a023e820b WHIRLPOOL dcd9345501ce89e61959f0ea32a49cc0efc5e4a30abb1e0083e655dac93ad07021c5f1e0370006307db53c958b14de746cf41d8a06d94ec3c572dbc0cd33c791
diff --git a/net-libs/libntlm/libntlm-1.3.ebuild b/net-libs/libntlm/libntlm-1.3.ebuild
new file mode 100644
index 000000000000..8b76bf766267
--- /dev/null
+++ b/net-libs/libntlm/libntlm-1.3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="Microsoft's NTLM authentication (libntlm) library"
+HOMEPAGE="http://www.nongnu.org/libntlm/"
+SRC_URI="http://www.nongnu.org/${PN}/releases/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="LGPL-2"
+KEYWORDS="alpha amd64 ~amd64-linux arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+src_configure() {
+ econf --disable-valgrind-tests
+}
+
+src_install () {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/libntlm/libntlm-1.4.ebuild b/net-libs/libntlm/libntlm-1.4.ebuild
new file mode 100644
index 000000000000..c1b2d5c8adfe
--- /dev/null
+++ b/net-libs/libntlm/libntlm-1.4.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools-utils
+
+DESCRIPTION="Microsoft's NTLM authentication (libntlm) library"
+HOMEPAGE="http://www.nongnu.org/libntlm/"
+SRC_URI="http://www.nongnu.org/${PN}/releases/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="LGPL-2"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux"
+IUSE="static-libs"
diff --git a/net-libs/libntlm/metadata.xml b/net-libs/libntlm/metadata.xml
new file mode 100644
index 000000000000..a305f73ecb0f
--- /dev/null
+++ b/net-libs/libntlm/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>
+libntlm is a library that implement Microsoft's NTLM authentication. However,
+the packaging of libntlm lacked certain things, such as having build problems,
+lacking shared library support, lacking autoconf macro for use in other
+applications, lacking pkg-config support, and more. So this page distributes an
+improved version of the library; called Libntlm.
+</longdescription>
+</pkgmetadata>
diff --git a/net-libs/libnxml/Manifest b/net-libs/libnxml/Manifest
new file mode 100644
index 000000000000..07ce148d859d
--- /dev/null
+++ b/net-libs/libnxml/Manifest
@@ -0,0 +1,5 @@
+DIST libnxml-0.18.3.tar.gz 361977 SHA256 0f9460e3ba16b347001caf6843f0050f5482e36ebcb307f709259fd6575aa547 SHA512 fc420a4b773eca68608ac1d509930a0528c3a41b53fc7cc340c09fd53f92a88afb4091e810d97d59e73a8beeaaeed52dd3c880273ef512a5305800b3ef46717a WHIRLPOOL 570c0a1538c3e81e8e3e7c43a28975346434d2c0aa4bab4caaa9ec4fe83fd8c5d896187101ebab5f1afef311f49ed65c47af91abcf52c233ee5d89598aa34a98
+EBUILD libnxml-0.18.3.ebuild 884 SHA256 3777e94137fc6c2f8868fe88923822f1c021898908cba8479e47daa18c85d52f SHA512 c3a311f4fc10e5842f867154bed23ea4ec495a29763cfd17f24a25981b520469256fe1e0ac63d5b75114394dda5bafdf4162668bbc60ffe66fdc7b28a96277fe WHIRLPOOL cc455cbde50fcc324be6d62cf1f6173766453f0ff125c2ea51011a18fc4eb0403ccc61b07826dbe16877a75429765fc64a9a3b7a906bf2420a78345586215668
+MISC ChangeLog 2748 SHA256 9006075b69d7dbe2222a40769502489c8966e7408a243e65f7d384f3f6f71b6c SHA512 330b4fdc0c635da0516646a9e472b6b3d46dd586ce9d4644a8f05ea9d6053f2ae278f7dc524201e1cc5a3093e016ad51313ef8fe62151c229e3a09336dbd2e30 WHIRLPOOL 167a35648b0818c980ba8c324373fdfc9a1c27637688946de34c87f4729cf39a423224622479a3457470f5ae9f0165cf67866273a8717cc15ce739a97b0ed869
+MISC ChangeLog-2015 2655 SHA256 6a033fef54b457b82f2f9a45b069e39fbda65f8ea69a639ac629612b4dfa7576 SHA512 d77202c882adc9af4426332c3270efc8203602229a307e44ce7eea316c2a5acbfeebb9b538219539a6d87b73cddc433350411d5c445aeaec70772cb21d7d5af5 WHIRLPOOL c70f620ef3b513255fac6c0f9f4ea63a9b98e675dfe6a16b6f8bc79f965c748ca42580fc9d0cbe79dbcc44e57352aeb23be35040a8388212c048b4276eb9d2e0
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/libnxml/libnxml-0.18.3.ebuild b/net-libs/libnxml/libnxml-0.18.3.ebuild
new file mode 100644
index 000000000000..259c8a928c03
--- /dev/null
+++ b/net-libs/libnxml/libnxml-0.18.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="A C-library for parsing and writing XML 1.0/1.1 files or streams"
+HOMEPAGE="http://www.autistici.org/bakunin/libnxml/doc/"
+SRC_URI="http://www.autistici.org/bakunin/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~mips ppc ~sparc x86"
+IUSE="doc examples static-libs"
+
+RDEPEND="net-misc/curl"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ emake
+
+ if use doc; then
+ ebegin "Creating documentation"
+ doxygen doxy.conf || die "creating docs failed"
+ eend 0
+ fi
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ dohtml doc/html/*
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/test
+ doins test/*.c
+ fi
+
+ find "${D}" -name '*.la' -delete
+}
diff --git a/net-libs/libnxml/metadata.xml b/net-libs/libnxml/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/libnxml/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/liboauth/Manifest b/net-libs/liboauth/Manifest
new file mode 100644
index 000000000000..867996a2587d
--- /dev/null
+++ b/net-libs/liboauth/Manifest
@@ -0,0 +1,6 @@
+AUX liboauth-1.0.1-doxygen-out-of-tree.patch 2231 SHA256 c91215e3799b9f2a53fd54b9f22f7365c23a9a080b106bc6923facc14b0f1c42 SHA512 c7ac48e30ededc7079a08504ae78f421b843100dec2c8658d75ff7a3101660087de962d73ac73bf1023286b0a89c1d1b3187ba36336d1caf051b03d445571dd6 WHIRLPOOL 599216ee5473e7f084010e913d3fe492b62a42c53cc97c9876d2943eadb65c66d526424c6ea887c75a7da2d91173c7367c262d9a206a6128a1d8f7443d4eabc1
+DIST liboauth-1.0.3.tar.gz 504950 SHA256 0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f SHA512 5a13818dbb3e0df76f7a3fde451eff4f90c9bebfe2076a294921af0c07c2b0789f717f0f862ac6961562d4227e016dc198ddd7efb9c7ac599c3bfbcdb2ac33fa WHIRLPOOL 98d9771a5e8a42ed7781a9f8fbcbdf4dd8e04077028855c07f8722de230be829d66a142e56ff85f88e0db20791b92ece18169b5a49deb1c28f3350ef90a9219c
+EBUILD liboauth-1.0.3.ebuild 1445 SHA256 68318ae7e869a0e038da2b8905f6d8857a85e718c5261092865a088117225144 SHA512 a70d801add90aade10a12b5dd24446a1dbc36a9dfa28fbd3c90f3a7054b6a0a0c34830cda96565984b4b444295f557334b5fe149c99cf1e87b37a5af4b1b254f WHIRLPOOL f889aa0ef0d1798864151cffc7c9242d1396fce418870c767c479380937e220eba40dce91ad9440cf92311f9dda32741cd46ee2bf5fc5ef9ffc32b8f090dcc54
+MISC ChangeLog 3125 SHA256 7098e273360be9a5fbba63d135b84efb7f7f305483ba51894f3f812b13e3d2db SHA512 0b7123f1a8ad0965cb5102bc23c6d328000cbfee6d0a96b814e43f892027cc0365dcb1a3e04e862fb0189de74bc9ea1a0d15e24e5f629362fb9759c3b1fa4418 WHIRLPOOL 86a32e5f3ebcd96b0fc23e81583cbfcff90cab2bf56d42ffd6c46a7bacd5180a5006141a6584b4b392d4b1c6801198b89ac8df98434f876c0afa050eda40b76f
+MISC ChangeLog-2015 5422 SHA256 2c2a97c87ff1783af4d8717d07c94e1a0d97554c65475cebc8fd2608a5eedf31 SHA512 420e89d449bef2d942c8f278e88909270c7ef0bacf3d301f71176df40f6e3d927aba6d16a88af908b5c6d26bba3e925ae2a0f5352e1e42f5e6f39d7b794beebc WHIRLPOOL 9f81ea509e37e3e590b1eea9c0d17e3a2a8a86ac26c254486669a2c624304f9af8a875fba2be1e36ba0f9f641cdc560f07c0c95df4132d9b0f78d764dfe65215
+MISC metadata.xml 879 SHA256 40c583b31143dbf078fca883dba1dac96c1a4ff08fb4fe92899b5f445f3e4f4a SHA512 05625ec768286997f291d95e40e024c692bb8dd3be2d2eea1c3d7c90b452b9a98988a2ca43a5c6134a0e084e0a4ae40af4a00e809092edbcf3a0630781657a07 WHIRLPOOL 983c41ceb85f79971289e3a4707d1a019480780f8960d679bb6562fb0a54a08124faa3cd46e787ae14ade76285b176c11c4f7d6bf70669a17df04a565ae78778
diff --git a/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch b/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch
new file mode 100644
index 000000000000..3ed37ec266cc
--- /dev/null
+++ b/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch
@@ -0,0 +1,50 @@
+diff -urp liboauth-1.0.1-orig/Doxyfile.in liboauth-1.0.1/Doxyfile.in
+--- liboauth-1.0.1-orig/Doxyfile.in 2012-11-01 04:34:49.000000000 +0000
++++ liboauth-1.0.1/Doxyfile.in 2013-03-14 14:25:11.000000000 +0000
+@@ -45,7 +45,7 @@ PROJECT_BRIEF =
+ # exceed 55 pixels and the maximum width should not exceed 200 pixels.
+ # Doxygen will copy the logo to the output directory.
+
+-PROJECT_LOGO = doc/libOAuth.png
++PROJECT_LOGO = @top_srcdir@/doc/libOAuth.png
+
+ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+ # base path where the generated documentation will be put.
+@@ -130,7 +130,7 @@ FULL_PATH_NAMES = YES
+ # relative paths, which will be relative from the directory where doxygen is
+ # started.
+
+-STRIP_FROM_PATH = src/
++STRIP_FROM_PATH = @top_srcdir@/src/
+
+ # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+ # the path mentioned in the documentation of a class, which tells
+@@ -661,8 +661,8 @@ WARN_LOGFILE =
+ # directories like "/usr/src/myproject". Separate the files or directories
+ # with spaces.
+
+-INPUT = src/oauth.h \
+- doc/mainpage.dox
++INPUT = @top_srcdir@/src/oauth.h \
++ @top_srcdir@/doc/mainpage.dox
+
+ # This tag can be used to specify the character encoding of the source files
+ # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+@@ -722,7 +722,7 @@ EXCLUDE_SYMBOLS =
+ # directories that contain example code fragments that are included (see
+ # the \include command).
+
+-EXAMPLE_PATH = tests/
++EXAMPLE_PATH = @top_srcdir@/tests/
+
+ # If the value of the EXAMPLE_PATH tag contains directories, you can use the
+ # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+@@ -742,7 +742,7 @@ EXAMPLE_RECURSIVE = NO
+ # directories that contain image that are included in the documentation (see
+ # the \image command).
+
+-IMAGE_PATH = doc/
++IMAGE_PATH = @top_srcdir@/doc/
+
+ # The INPUT_FILTER tag can be used to specify a program that doxygen should
+ # invoke to filter for each input file. Doxygen will invoke the filter program
diff --git a/net-libs/liboauth/liboauth-1.0.3.ebuild b/net-libs/liboauth/liboauth-1.0.3.ebuild
new file mode 100644
index 000000000000..c854294a0240
--- /dev/null
+++ b/net-libs/liboauth/liboauth-1.0.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="C library implementing the OAuth secure authentication protocol"
+HOMEPAGE="http://liboauth.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 MIT )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~x64-macos"
+IUSE="curl doc bindist +nss"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.0.1-doxygen-out-of-tree.patch )
+REQUIRED_USE="bindist? ( nss )"
+
+CDEPEND="
+ nss? ( dev-libs/nss
+ curl? ( || ( net-misc/curl[ssl,curl_ssl_nss] net-misc/curl[-ssl] ) )
+ )
+
+ !nss? ( dev-libs/openssl:0=
+ curl? ( || ( net-misc/curl[ssl,curl_ssl_openssl] net-misc/curl[-ssl] ) )
+ )
+
+ net-misc/curl
+"
+
+RDEPEND="${CDEPEND}"
+
+DEPEND="${CDEPEND}
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ media-fonts/freefont
+ )
+ virtual/pkgconfig"
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable !curl curl)
+ $(use_enable curl libcurl)
+ $(use_enable nss)
+ )
+
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+
+ if use doc ; then
+ # make sure fonts are found
+ export DOTFONTPATH="${EPREFIX}"/usr/share/fonts/freefont-ttf
+ autotools-utils_src_compile dox
+ fi
+}
+
+DOCS=( AUTHORS ChangeLog LICENSE.OpenSSL README )
+
+src_install() {
+ use doc && HTML_DOCS=("${BUILD_DIR}"/doc/html/)
+
+ autotools-utils_src_install
+}
diff --git a/net-libs/liboauth/metadata.xml b/net-libs/liboauth/metadata.xml
new file mode 100644
index 000000000000..686c8f7ccb07
--- /dev/null
+++ b/net-libs/liboauth/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="nss">
+ Use Mozilla NSS (<pkg>dev-libs/nss</pkg>) as hash library; if
+ this is disabled, <pkg>dev-libs/openssl</pkg> is used instead.
+ </flag>
+ <flag name="bindist">
+ Alias for the nss USE flag, since there are license compliancy
+ trouble when using OpenSSL.
+ </flag>
+ <flag name="curl">
+ If enabled, <pkg>net-misc/curl</pkg> is used thorugh the libcurl
+ library; if it's not, the curl command is used instead. Some
+ features are only available when using the library, but using it
+ as library requires matching SSL implementations.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">liboauth</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/liboping/Manifest b/net-libs/liboping/Manifest
new file mode 100644
index 000000000000..cd75d802db7f
--- /dev/null
+++ b/net-libs/liboping/Manifest
@@ -0,0 +1,9 @@
+AUX liboping-1.6.2-nouidmagic.patch 741 SHA256 7219f14fc27afa1712cdc2c65ca0d9b0266382d0b40c174d0f8ac2cac71e532f SHA512 d991b2871091c3e92d6b194bfdaa77db34455aec3c32087fff0a02ccee0e1f6fa0e0453a61d28a0fc9549644359f91425efef0b94e37c033d4d43b12bbd7b07d WHIRLPOOL 81fefddd0c3a7390b2d82d45b875e5878df1ef315b02c1af01a0d1f7bab2f7c8e82135fd4a2bf19fe69e5c2e788a04c92232a4e9939fe5f61f7ea1f647cb198f
+AUX liboping-1.8.0-remove-ncurses-automagic.patch 3192 SHA256 494c2a681d5cbc548cc3fbb97b50140b18173150eda2517a53db7b499f658331 SHA512 6bed10c7963f0ae3442e4ff4523985c61b8b8acca8bb39b511fb30b25133d50d31c642d181157216d903c647e585989e08892c4f61ffd9ee9964050769a8a656 WHIRLPOOL 1afe5d4ee0aa555b2ce6f7da97c06a229a3cdfb8e3e891ee7ec20fd0f57f92d9c28db7e31ddd0d1c817bb10f24a27e9bd6e2960aee19da216282ed5ff51a2b45
+DIST liboping-1.10.0.tar.bz2 318150 SHA256 eb38aa93f93e8ab282d97e2582fbaea88b3f889a08cbc9dbf20059c3779d5cd8 SHA512 f1e9984cf0c1df89b29f7bc657c19a5439019db7643680744d8f353664b6a53070581f40b51e72f896c7df88799c6868257f6308e1a9d84b4d2a0666491214d8 WHIRLPOOL 59562503d30b1e05d0052e28d5d93cc3379e03528376a056f7d64d588154d9ab75cb9a2f2c3725f8968900db3b731bbeca7e93d565f641bda2393b14c411f7c1
+DIST liboping-1.9.0.tar.bz2 313884 SHA256 44bb1d88b56b88fda5533edb3aa005c69b3cd396f20453a157d7e31e536f3530 SHA512 dcbadeea5154d4f4c31f806cae4ee5b8d5a8dfe243a9de4dad4b81b5b227538e1bb0c20afef121bd8ad841346da39fd5fb4710db981b89c11acc573c4f401c85 WHIRLPOOL 11421367b3e5128a0158ab76305bde2431dd3e2e2e0f8665cc5fbf9871a0a60fab6e1887d4a3537cc5d1e56dbf1431d6b51885b0c93e25b21e93c9e0b678834d
+EBUILD liboping-1.10.0.ebuild 1318 SHA256 80408d9159acf456f190a5a80c6d048ee62e0fd959b0ed83520adac840a32022 SHA512 02c9caa3d48f8d0a9d4fec7fd49bdc2692ff5131d2f3b12a3d9d0b87077131ff757f1ad211da534dae6de5097fc32f015b2cc1b3394ea8ebe5ca5999d67b69da WHIRLPOOL 0fe8c9ba6ec6c0e8b23f3b44f69cc4be1a307ae34b7145d58b1c07a2fd2e69316ea04766ddb5eeb20b2ef67e83845aa3a27109d140bf8b5eae8cbc4309eab457
+EBUILD liboping-1.9.0.ebuild 1376 SHA256 2baff908b6017843d45f82e6509689af3c464114300289ce9d9567a4bb1c6916 SHA512 e05c4fef6b9ec848e8e0deafa3026944dcf9840420ac47c11d20f6579da9c0fcf61d568807a60ed3b9068373df1df95df79002a70547688f4bf69a5407c0a97a WHIRLPOOL a7ccac2fbe492ffaec733f01c3d7a5f24c1075591877a2879aec725a3b4243ad8490728d4abbb989b29342277e5e78358c3252202cff886dcf39bceb64b63763
+MISC ChangeLog 2847 SHA256 2b30332a54b2e487853cabfc5f43dce8151469b016f770a9068713d2861261ab SHA512 cf19e2542282ef9c1b8a4d12e4c10d10a42d8f086b8357cc28d80c9815de8802f6a7694a79c7cfb777cb16d7fbad94a2a489626ede7bb667d1f8b181711b475b WHIRLPOOL 8cd2992d50192d03ec18aedb2cb6a9637ef25a54c80cd140cc5bd3536378ff47bde9ab58795577f32cf59785cfd45a343090e1c4dcb3948e407cc1958888dc39
+MISC ChangeLog-2015 2918 SHA256 f5e56429f89d845a04e7881cb6295869d10d224e7cef9473aed9865c8d09f690 SHA512 1f09b1ae06ee6aaba6154bb7461b500095ea15dc92120989e97dfb97c029f04c744c1238d03a82b4be3d01e681c4733dd737334f527fdee61f20e9512a74cead WHIRLPOOL d88f3fa9fdc1483cecfe219841a62d9318e2d53ee03ecafcf534f9cf2c692ef2323296478fb706c527577261e63cca2d67435e65ac7d7c81c446c97b401a7dfe
+MISC metadata.xml 717 SHA256 0dc99c08be3618017e22365f4810b253c0fea0f4d9a227764b3369c0af84d417 SHA512 ef68e308920311969fc83de9e82e6e97648b5376819a5a122e1aa4c68ef3f6ae0bad6dc95a28eb4629f8915c4658facbeabc7740df090cff2598b5ebbd049edd WHIRLPOOL e479c0d67ca76967427d79fb29cf52ae4b5bedd7fd0553fc4c9deb6fa47b63728f815b31a18995d6baf9d6880c214881c26bbd6c90b2f21d3487c43ec445a31e
diff --git a/net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch b/net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch
new file mode 100644
index 000000000000..2cb1b25e12e0
--- /dev/null
+++ b/net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch
@@ -0,0 +1,19 @@
+diff -ruN liboping-1.6.2.orig/src/Makefile.am liboping-1.6.2/src/Makefile.am
+--- liboping-1.6.2.orig/src/Makefile.am 2012-01-31 17:20:44.000000000 +0100
++++ liboping-1.6.2/src/Makefile.am 2012-06-11 21:21:08.000000000 +0200
+@@ -52,15 +52,3 @@
+ endif
+ endif # BUILD_WITH_LIBNCURSES
+
+-install-exec-hook:
+- @if test "x0" = "x$$UID"; then \
+- if test "xLinux" = "x`uname -s`"; then \
+- echo "Setting CAP_NET_RAW capability on binaries."; \
+- setcap cap_net_raw=ep $(DESTDIR)$(bindir)/oping || true; \
+- setcap cap_net_raw=ep $(DESTDIR)$(bindir)/noping || true; \
+- else \
+- echo "Setting set-UID bit on binaries."; \
+- chmod u+s $(DESTDIR)$(bindir)/oping || true; \
+- chmod u+s $(DESTDIR)$(bindir)/noping || true; \
+- fi; \
+- fi
diff --git a/net-libs/liboping/files/liboping-1.8.0-remove-ncurses-automagic.patch b/net-libs/liboping/files/liboping-1.8.0-remove-ncurses-automagic.patch
new file mode 100644
index 000000000000..67e389ff139c
--- /dev/null
+++ b/net-libs/liboping/files/liboping-1.8.0-remove-ncurses-automagic.patch
@@ -0,0 +1,94 @@
+configure: Make use of ncurses configurable
+
+https://github.com/octo/liboping/pull/15
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -206,27 +206,30 @@ AC_CHECK_FUNCS(nanosleep, [],
+ AC_MSG_ERROR(cannot find nanosleep)))
+ AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
+
+-with_ncurses="no"
+-AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses.h, [with_ncurses="yes"], [])
+-if test "x$with_ncurses" = "xyes"
+-then
+- have_ncursesw="no"
+- have_ncurses="no"
+- NCURSES_LIB=""
++AC_ARG_WITH(ncurses, AS_HELP_STRING([--with-ncurses], [Build oping CLI tool with ncurses support]))
++AS_IF([test "x$with_ncurses" != "xno"], [
++ can_build_with_ncurses="no"
++ PKG_CHECK_MODULES([NCURSES], [ncursesw], [can_build_with_ncurses=yes], [
++ PKG_CHECK_MODULES([NCURSES], [ncurses], [can_build_with_ncurses=yes], [
++ AC_CHECK_LIB(ncursesw, mvwprintw, [NCURSES_LIBS="-lncursesw"; can_build_with_ncurses=yes], [
++ AC_CHECK_LIB(ncurses, mvwprintw, [NCURSES_LIBS="-lncurses"; can_build_with_ncurses=yes])
++ ])
++ ])
++ ])
+
+- AC_CHECK_LIB(ncursesw, mvwprintw, [have_ncursesw="yes"], [have_ncursesw="no"])
+- AC_CHECK_LIB(ncurses, mvwprintw, [have_ncurses="yes"], [have_ncurses="no"])
++ AS_IF([test "x$can_build_with_ncurses" = "xyes"], [
++ AC_CHECK_HEADERS([ncursesw/curses.h ncursesw.h ncurses/curses.h ncurses.h], [can_build_with_ncurses=yes; break;], [can_build_with_ncurses=no])
++ ])
+
+- if test "x$have_ncursesw" = "xyes"; then
+- NCURSES_LIB="-lncursesw"
+- else if test "x$have_ncurses" = "xyes"; then
+- NCURSES_LIB="-lncurses"
+- else
+- with_ncurses="no"
+- fi; fi
+- AC_SUBST(NCURSES_LIB)
+-fi
+-AM_CONDITIONAL(BUILD_WITH_LIBNCURSES, test "x$with_ncurses" = "xyes")
++ AS_IF([test "x$can_build_with_ncurses" = "xno" && test "x$with_ncurses" = "xyes"], [
++ AC_MSG_ERROR([ncurses not found but explicit enabled])
++ ],
++ [test "x$can_build_with_ncurses" = "xno"], [
++ AC_MSG_WARN([Will not build oping with ncurses support -- no suiteable ncurses installation found])
++ ])
++])
++
++AM_CONDITIONAL(BUILD_WITH_LIBNCURSES, test "x$with_ncurses" != "xno" && test "x$can_build_with_ncurses" = "xyes")
+
+ AC_FUNC_STRERROR_R
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -43,8 +43,8 @@ if BUILD_WITH_LIBNCURSES
+ bin_PROGRAMS += noping
+
+ noping_SOURCES = oping.c
+-noping_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_NCURSES=1
+-noping_LDADD = liboping.la -lm $(NCURSES_LIB)
++noping_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_NCURSES=1 $(NCURSES_CFLAGS)
++noping_LDADD = liboping.la -lm $(NCURSES_LIBS)
+ if BUILD_WITH_LIBRT
+ noping_LDADD += -lrt
+ endif
+--- a/src/oping.c
++++ b/src/oping.c
+@@ -82,11 +82,17 @@
+ /* http://newsgroups.derkeiler.com/Archive/Rec/rec.games.roguelike.development/2010-09/msg00050.html */
+ # define _X_OPEN_SOURCE_EXTENDED
+
+-# if HAVE_NCURSESW_NCURSES_H
+-# include <ncursesw/ncurses.h>
+-# elif HAVE_NCURSES_H
++#if defined HAVE_NCURSESW_CURSES_H
++# include <ncursesw/curses.h>
++#elif defined HAVE_NCURSESW_H
++# include <ncursesw.h>
++#elif defined HAVE_NCURSES_CURSES_H
++# include <ncurses/curses.h>
++#elif defined HAVE_NCURSES_H
+ # include <ncurses.h>
+-# endif
++#else
++# error "SysV or X/Open-compatible Curses header file required"
++#endif
+
+ # define OPING_GREEN 1
+ # define OPING_YELLOW 2
+--
diff --git a/net-libs/liboping/liboping-1.10.0.ebuild b/net-libs/liboping/liboping-1.10.0.ebuild
new file mode 100644
index 000000000000..b88e223a1751
--- /dev/null
+++ b/net-libs/liboping/liboping-1.10.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools fcaps perl-module
+
+DESCRIPTION="Protocol independent ANSI-C ping library and command line utility"
+HOMEPAGE="https://noping.cc/"
+SRC_URI="https://noping.cc/files/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 GPL-2"
+SLOT="0/0.3"
+KEYWORDS="amd64 arm x86"
+IUSE="+filecaps ncurses perl"
+
+DEPEND="ncurses? ( sys-libs/ncurses:0= )"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.6.2-nouidmagic.patch"
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with perl perl-bindings INSTALLDIRS=vendor) \
+ $(use_with ncurses)
+}
+
+src_test() {
+ if use perl; then
+ pushd bindings/perl >/dev/null || die
+ perl-module_src_test
+ popd >/dev/null || die
+ fi
+}
+
+src_install() {
+ default
+
+ find "${ED}"usr/lib* -name '*.la' -o -name '*.a' -delete || die
+}
+
+pkg_postinst() {
+ if use filecaps; then
+ local _caps_str="CAP_NET_RAW"
+ _files=( "${EROOT%/}/usr/bin/oping")
+
+ if use ncurses; then
+ _files+=( "${EROOT%/}/usr/bin/noping")
+ fi
+
+ fcaps "${_caps_str}" "${_files[@]}"
+
+ elog "Capabilities for"
+ elog ""
+
+ local _file=
+ for _file in "${_files[@]}"; do
+ elog " ${_file}"
+ done
+
+ elog ""
+ elog "set to ${_caps_str}+EP due to set 'filecaps' USE flag."
+ elog
+ fi
+}
diff --git a/net-libs/liboping/liboping-1.9.0.ebuild b/net-libs/liboping/liboping-1.9.0.ebuild
new file mode 100644
index 000000000000..38199e61630e
--- /dev/null
+++ b/net-libs/liboping/liboping-1.9.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools fcaps perl-module
+
+DESCRIPTION="Protocol independent ANSI-C ping library and command line utility"
+HOMEPAGE="https://noping.cc/"
+SRC_URI="https://noping.cc/files/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 GPL-2"
+SLOT="0/0.2"
+KEYWORDS="amd64 arm x86"
+IUSE="+filecaps ncurses perl"
+
+DEPEND="ncurses? ( sys-libs/ncurses:0= )"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.6.2-nouidmagic.patch"
+ "${FILESDIR}/${PN}-1.8.0-remove-ncurses-automagic.patch"
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with perl perl-bindings INSTALLDIRS=vendor) \
+ $(use_with ncurses)
+}
+
+src_test() {
+ if use perl; then
+ pushd bindings/perl >/dev/null || die
+ perl-module_src_test
+ popd >/dev/null || die
+ fi
+}
+
+src_install() {
+ default
+
+ find "${ED}"usr/lib* -name '*.la' -o -name '*.a' -delete || die
+}
+
+pkg_postinst() {
+ if use filecaps; then
+ local _caps_str="CAP_NET_RAW"
+ _files=( "${EROOT%/}/usr/bin/oping")
+
+ if use ncurses; then
+ _files+=( "${EROOT%/}/usr/bin/noping")
+ fi
+
+ fcaps "${_caps_str}" "${_files[@]}"
+
+ elog "Capabilities for"
+ elog ""
+
+ local _file=
+ for _file in "${_files[@]}"; do
+ elog " ${_file}"
+ done
+
+ elog ""
+ elog "set to ${_caps_str}+EP due to set 'filecaps' USE flag."
+ elog
+ fi
+}
diff --git a/net-libs/liboping/metadata.xml b/net-libs/liboping/metadata.xml
new file mode 100644
index 000000000000..521d84da2fe3
--- /dev/null
+++ b/net-libs/liboping/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 type="person">
+ <email>whissi@gentoo.org</email>
+ <name>Thomas Deutschmann</name>
+ </maintainer>
+ <slots>
+ <subslots>Reflect major ABI version (=upstream's LIBOPING_CURRENT value) of liboping.so.</subslots>
+ </slots>
+ <upstream>
+ <bugs-to>https://github.com/octo/liboping/issues</bugs-to>
+ <remote-id type="github">octo/liboping</remote-id>
+ </upstream>
+ <use>
+ <flag name="filecaps">Allow non-root users to use [n]oping utility.</flag>
+ <flag name="ncurses">Build ncurses-based version of oping utility (requires <pkg>sys-libs/ncurses</pkg>)</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libosip/Manifest b/net-libs/libosip/Manifest
new file mode 100644
index 000000000000..237dbcd85ff6
--- /dev/null
+++ b/net-libs/libosip/Manifest
@@ -0,0 +1,8 @@
+AUX libosip-3.3.0-out-source-build.patch 522 SHA256 07c09d740f140b8375bb793b2a94c6e08169b141ed56cd834f6ac3a215c1edbc SHA512 ca4911303c290f635befa93c465ed25cef85c182c6645c1a3700ed6c68da9f268c52fdf07473e116f1a06daa477c4c1aa8803cec3cb151b45cdc1b504f705f4e WHIRLPOOL 6d58a6ba23a584c2ea8f1661b383fe4892f2977349159382cdb7220fd02895279528ac2505d1c676ee3bcb7d4a19a039fb79b491e1b0c1fee33ec14c67052e36
+DIST libosip2-3.6.0.tar.gz 598496 SHA256 c9a18b0c760506d150017cdb1fa5c1cefe12b8dcbbf9a7e784eb75af376e96cd SHA512 58109fdc643673e811ce576374194d6d33b930ecec3221f31834471f52f5f2b2b30e5e331e245e33b2aafbff1aaa411d3a7657c25f3bb0b9d6cda0ae766fd538 WHIRLPOOL 7ba0050963aa2c997ee3dd3769bbcc7910586818c7fd76037044be9843cb47481fd024b9f77f3a99b6958e42ec3f68004063d7cf8b7713fd7c60a5eab6b17ef3
+DIST libosip2-4.0.0.tar.gz 644958 SHA256 bb2d228a41750fab397480002b0865f305f83a3840b1aa84851593593491b015 SHA512 995fc67c9a7536628ebaec9f4500bafa8a2f88081531bbae5194372b51102d556de28aea7d121e20cfda82b302a8a4ceb6488dbad61676930fdc13accb12b961 WHIRLPOOL 1c5df05f5317f6daaa7623f9868ed057ea3f07d84523088038bba366bdb955424b615a5bfb96754c89e046523e5db44075529a552439dc961a490d4e2eb57198
+EBUILD libosip-3.6.0.ebuild 789 SHA256 03808df356eaf9b5ca8a4608cc1a54cf3d9bd019d3e93d4f3d07332df1fbd39a SHA512 1201c959dded3ab03a1b11a5353755aaa7a6de1aabe051e2a3a28d4efbabe7cdfdcd638cfe961dda61142063b3192f61767fc3252d7950bba590e825f729d160 WHIRLPOOL d2a02a18c7d118093d0a4d74e72654c6e6b81bb81baeca8d13c56e81e2b98a2baaff696aefea0bcf25846ae49603f62644af99116aa2eb7f8a89cbaec19055ec
+EBUILD libosip-4.0.0.ebuild 802 SHA256 2803bfc937615b6a8f8a7c18891b69b257fc55c804bad38430655d90d16d9fbd SHA512 c766065e2997a35b4d898ce69a0f6238ac5f02528f1c4d36cafa27dc385c35b1b4590ea1ce6418bfc9e68f83bee33fd6178bcb1a3a30ab48cb71bfe3195e385e WHIRLPOOL fe3c25f94b4059032e06e46c287c565bccf0f1296cf314d4bf354cf69273cb48a02b8043ab1bd9513ea247c9f9e0b4b911532e8b816f59171e99838070b2b211
+MISC ChangeLog 2799 SHA256 4b0cfccf7f7c1eb7d2a900c5dd5ff9eb1b37117b61000a860f40def864f6eed2 SHA512 0148da512e7468eec8a0f489f9fa1cd2f0bafc7daf98a852bc55def55ecb55f73f57fe457229229b3c58064e289114fee152ff38f5796345ada8edb20afca1cf WHIRLPOOL 0fcd6d499b710ab1cee77d91d1a1d53a75c4b7aa9c3770ba0d9aa0ec9cda4e01272c114f10ef75a76271381f24c3cbcb48404efea8167e66ced380671504735e
+MISC ChangeLog-2015 7678 SHA256 c500c5dc6374b4a9402632a9e0d8ec9ef27ba4feb7b7063d873ab4a3eea84837 SHA512 103ba33b8982e4a6510532ba52a4b0b8e29c634173b9f21a39bf0d2c45cfdcbfd15437bdba30f9f9f5d2c570c85b0c3febf1f84ce6320eb21c89c473ffb97427 WHIRLPOOL d9de61a2b76815a39c9c8d816519df2859aa0a4ce5a01fb0bf5a8a19db5453238f609f301f78909e81d6fce7f93662ab49c1fc5d843745924692a29f05ee22c3
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/libosip/files/libosip-3.3.0-out-source-build.patch b/net-libs/libosip/files/libosip-3.3.0-out-source-build.patch
new file mode 100644
index 000000000000..04a64ed39446
--- /dev/null
+++ b/net-libs/libosip/files/libosip-3.3.0-out-source-build.patch
@@ -0,0 +1,16 @@
+Fixed upstream:
+
+http://www.atosc.org/pipermail/osip/2010-February/009864.html
+
+--- src/test/Makefile.am 2010-02-11 17:51:43 +0000
++++ src/test/Makefile.am 2010-02-11 17:52:09 +0000
+@@ -49,7 +49,7 @@
+ @echo " *******************************"
+ @echo " ****** starting tests! ********"
+ @echo " *******************************"
+- @./$(top_srcdir)/src/test/tst ./$(top_srcdir)/src/test/res -c
++ @$(top_srcdir)/src/test/tst $(top_srcdir)/src/test/res -c
+
+ @echo ""
+ @echo "In case you have a doubt, send the generated"
+
diff --git a/net-libs/libosip/libosip-3.6.0.ebuild b/net-libs/libosip/libosip-3.6.0.ebuild
new file mode 100644
index 000000000000..54f60c8218a2
--- /dev/null
+++ b/net-libs/libosip/libosip-3.6.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils autotools
+
+MY_PV=${PV%.?}-${PV##*.}
+MY_PV=${PV}
+MY_P=${PN}2-${MY_PV}
+DESCRIPTION="a simple way to support the Session Initiation Protocol"
+HOMEPAGE="https://www.gnu.org/software/osip/"
+SRC_URI="mirror://gnu/osip/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="2"
+KEYWORDS="amd64 ppc ~sparc x86 ~ppc-macos ~x86-macos"
+IUSE="test"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-3.3.0-out-source-build.patch"
+ AT_M4DIR="scripts" eautoreconf
+}
+
+src_configure() {
+ econf --enable-mt \
+ $(use_enable test)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Failed to install"
+ dodoc AUTHORS ChangeLog FEATURES HISTORY README NEWS TODO || die
+}
diff --git a/net-libs/libosip/libosip-4.0.0.ebuild b/net-libs/libosip/libosip-4.0.0.ebuild
new file mode 100644
index 000000000000..d941406553bf
--- /dev/null
+++ b/net-libs/libosip/libosip-4.0.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils autotools versionator
+
+MY_PV=${PV%.?}-${PV##*.}
+MY_PV=${PV}
+MY_P=${PN}2-${MY_PV}
+DESCRIPTION="a simple way to support the Session Initiation Protocol"
+HOMEPAGE="https://www.gnu.org/software/osip/"
+SRC_URI="mirror://gnu/osip/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="2/$(get_version_component_range 1-2)"
+KEYWORDS="amd64 ppc ~sparc x86 ~ppc-macos ~x86-macos"
+IUSE="test"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-3.3.0-out-source-build.patch"
+ AT_M4DIR="scripts" eautoreconf
+}
+
+src_configure() {
+ econf --enable-mt \
+ $(use_enable test)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog FEATURES HISTORY README NEWS TODO
+}
diff --git a/net-libs/libosip/metadata.xml b/net-libs/libosip/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/libosip/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/libosmo-abis/Manifest b/net-libs/libosmo-abis/Manifest
new file mode 100644
index 000000000000..4cb38805e19d
--- /dev/null
+++ b/net-libs/libosmo-abis/Manifest
@@ -0,0 +1,4 @@
+EBUILD libosmo-abis-9999.ebuild 429 SHA256 a7a8ab54ce9ac4240c4952c5d30a46de2a8c1040a100e7749c98961b1c0c3682 SHA512 49a925a221e7f943ef60fc1dcfc55fb3ef522e11caf218bf4e52723e3c23cc8612c584770fc37760195f57c1dbe612a1750d6fdd79e71502dc0796afebe62fc3 WHIRLPOOL 9642cf9fc3c59436f11befc96685dc54019d80a75865e409de55652f0543d103ad76b5341a38f1f1b28e8c90dbcf77dd00bdf559d0deadcb301e7bc810bd1027
+MISC ChangeLog 2967 SHA256 080ae446a1eb6d89a2447cc543d21c6528c10e7a0437e37c0faeeeb245822b6b SHA512 2379df1e0eb03e6f7dd9d59c99b1031cde8d3aaad2f30fc7e171ee52657dd67c575eb6f3f46f7796b10224a97791f1c485800cd6ca3ff2bd86c207c99fa5a0ad WHIRLPOOL 4794145f1710ceb0a9cecc20bed78cfee7c5459c61f676137aea5eae203cebe150c3268c83bdadf3305f808525105c736d001686ad278668bcf1c34080a0e5e8
+MISC ChangeLog-2015 595 SHA256 7ed7bd42167eaa949211696e9a9377c5bac4eddfab9dbc92b64f8bea71051450 SHA512 f82ee44181aad0560cf9c3e7cda9686360c0df18414dfab7dfac54a874c1e717374104f81d6f40245d1625e221784f56f6775a4f737910317b09d8296fb5267f WHIRLPOOL 9fee1a12c83f7de82526d9d41475ea022e94a482f6e80298922730e116c5418a1fcb1368e95872ffc84647bde7142dfbce66a0de4ab23f132253c8ef0de77cc0
+MISC metadata.xml 238 SHA256 fb3f3758a51e2214d17a7ee3860535abef87230f8ebee7ddd0c1c8b64a9bec1b SHA512 b8e525ce325eb8201273f8d0ea320d6ba41a183d7f80b0f44dcca44c48049baec1c3489ebd32a17d3be9d6a31a9427ce40cd1686f12e42ca99b0d7037af9532f WHIRLPOOL 1645c553345ed030e8d8fdb0c826c7e1e24178e472b1c1f3001a601719e09d4768ad6fd9e35f0b0c56a53f257cdc5593726114acd8e5c89d3c13436c6b2185a2
diff --git a/net-libs/libosmo-abis/libosmo-abis-9999.ebuild b/net-libs/libosmo-abis/libosmo-abis-9999.ebuild
new file mode 100644
index 000000000000..00d1ef07ca50
--- /dev/null
+++ b/net-libs/libosmo-abis/libosmo-abis-9999.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools git-2
+
+DESCRIPTION="Osmocom library for A-bis interface"
+HOMEPAGE="http://openbsc.osmocom.org/trac/wiki/libosmo-abis"
+EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="net-libs/ortp"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ eautoreconf
+}
diff --git a/net-libs/libosmo-abis/metadata.xml b/net-libs/libosmo-abis/metadata.xml
new file mode 100644
index 000000000000..1570f891c6a3
--- /dev/null
+++ b/net-libs/libosmo-abis/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 type="project">
+ <email>radio@gentoo.org</email>
+ <name>Radio</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libosmo-dsp/Manifest b/net-libs/libosmo-dsp/Manifest
new file mode 100644
index 000000000000..19bf8b1fdd4e
--- /dev/null
+++ b/net-libs/libosmo-dsp/Manifest
@@ -0,0 +1,6 @@
+DIST libosmo-dsp-0.3.tar.xz 106792 SHA256 7e1bdcb7860aa85a532fc91147b93e1ad174c569519b349716f8cf5fd43f3cc8 SHA512 079316bb882859787ee26143e3b105aa260c89022b81a38b29713cde39093dc430abea406468774649dd14232c969b2806c47634b64f940f78fa20cb90ffade5 WHIRLPOOL c58c5fe48289a230c93215ca7e92ec8c78a35abe78094b105d21875637f8cb7b63ccad5334b5b3d26fdcc45c22e2f3a384539019fe1c3ca64858f0892dbc8774
+EBUILD libosmo-dsp-0.3.ebuild 813 SHA256 0caf6e2d94e48e70a5154764023351a641ef378b204a9564c0c4f246aa4ee00a SHA512 1c0b5762a8dc2965766a22862f4eca3ebca1a1f45b958f70ef07df7d3608d13bc22ae3a89304fc99ef43a53a7c5cdbc823c59747149adf11d7851e98e6b184d3 WHIRLPOOL 930cf6e4c8549fe8c6f6de2c15ffecdb7309ffba62d3101c33f4047d95aac3a90c2c3c0c6a67885f394e4a4ebdb59850868d18c97ffe56624ffc2d0ff1252dfc
+EBUILD libosmo-dsp-9999.ebuild 813 SHA256 0caf6e2d94e48e70a5154764023351a641ef378b204a9564c0c4f246aa4ee00a SHA512 1c0b5762a8dc2965766a22862f4eca3ebca1a1f45b958f70ef07df7d3608d13bc22ae3a89304fc99ef43a53a7c5cdbc823c59747149adf11d7851e98e6b184d3 WHIRLPOOL 930cf6e4c8549fe8c6f6de2c15ffecdb7309ffba62d3101c33f4047d95aac3a90c2c3c0c6a67885f394e4a4ebdb59850868d18c97ffe56624ffc2d0ff1252dfc
+MISC ChangeLog 2886 SHA256 d8a60e0ca211db807e70a1660aa25204cab57feda06528e58a2c6cdb8ce8fdb0 SHA512 bfafc9099c361a1c2487356413e3cd876cba94af7a4af53d3874430981cb6ecad786a1bfbe65a6049cfb6447b92ac0de01ad768d8d7bd863625b2fb1d470532d WHIRLPOOL d8d6d18ff3dd503f8d958eb664ab9133b666293c98635e1885eaaaff3ad2447696d9b46fc713b7dca4dfe8d906aa4e29083a8633a7eb15e086d04475d1de2213
+MISC ChangeLog-2015 581 SHA256 c0e2cfc1b7173041f4c24b41ee8775a4ae1b161d26839fa72defe635f62d4422 SHA512 4610e2d5d5d7fe1e1e01cb431b29ef223bfb9a6ac06ec05ec817490fb5cb00d9d10ae165e7f378d41cd3249d1dbbad19de7957154f5e9f9fd825bc91ba93080f WHIRLPOOL 906acfd7e4f64d3dff14f503f2e7198d05a58e813bc54fd1647376286d304fe8d05e20f4651d394df339646f3ff7800018f5e77f01e2a034bbf2efaade3b05a2
+MISC metadata.xml 334 SHA256 225476702f22635e0d0aba2edb941b9bb769f6a0b308054717b42f90115592cf SHA512 afd8a067d88044c1c9111b889f3a729e6fbc228d4875a4b22b8d3c4a9cae1c46c37642bc8fd87c78a450438df644686dfcbb3b0dd63d319bb602b86667a6912b WHIRLPOOL 9559000e8ef3fc8f3d92210b7225ebb4983190cbb1d25482facc4b12d88201689afb094ae81aea47194109d5b25043f2083e84266b303684c440c5e6c0ebdaba
diff --git a/net-libs/libosmo-dsp/libosmo-dsp-0.3.ebuild b/net-libs/libosmo-dsp/libosmo-dsp-0.3.ebuild
new file mode 100644
index 000000000000..ef65572ce883
--- /dev/null
+++ b/net-libs/libosmo-dsp/libosmo-dsp-0.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools multilib
+
+DESCRIPTION="A library with SDR DSP primitives"
+HOMEPAGE="http://git.osmocom.org/libosmo-dsp/"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://git.osmocom.org/${PN}"
+ KEYWORDS=""
+else
+ SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+IUSE="doc static-libs"
+
+RDEPEND="sci-libs/fftw"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ virtual/pkgconfig"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ use doc || export ac_cv_path_DOXYGEN=false
+ default_src_configure
+}
+
+src_install() {
+ default_src_install
+ use static-libs || rm "${ED}"/usr/$(get_libdir)/libosmodsp.a
+}
diff --git a/net-libs/libosmo-dsp/libosmo-dsp-9999.ebuild b/net-libs/libosmo-dsp/libosmo-dsp-9999.ebuild
new file mode 100644
index 000000000000..ef65572ce883
--- /dev/null
+++ b/net-libs/libosmo-dsp/libosmo-dsp-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools multilib
+
+DESCRIPTION="A library with SDR DSP primitives"
+HOMEPAGE="http://git.osmocom.org/libosmo-dsp/"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://git.osmocom.org/${PN}"
+ KEYWORDS=""
+else
+ SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+IUSE="doc static-libs"
+
+RDEPEND="sci-libs/fftw"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ virtual/pkgconfig"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ use doc || export ac_cv_path_DOXYGEN=false
+ default_src_configure
+}
+
+src_install() {
+ default_src_install
+ use static-libs || rm "${ED}"/usr/$(get_libdir)/libosmodsp.a
+}
diff --git a/net-libs/libosmo-dsp/metadata.xml b/net-libs/libosmo-dsp/metadata.xml
new file mode 100644
index 000000000000..d11cc0ee2221
--- /dev/null
+++ b/net-libs/libosmo-dsp/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<maintainer type="project">
+<email>radio@gentoo.org</email>
+<name>Radio</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libosmo-netif/Manifest b/net-libs/libosmo-netif/Manifest
new file mode 100644
index 000000000000..37952a9d58d0
--- /dev/null
+++ b/net-libs/libosmo-netif/Manifest
@@ -0,0 +1,3 @@
+EBUILD libosmo-netif-9999.ebuild 468 SHA256 b695badb377de60e7498646f2e5325cf752daa71001c91b819ff2bca23f247bb SHA512 00e2e90a7e9aef3eded853234e6072bffd43204debfe27ca73ebf9a53f249b8a8b46f53873b146dd757afca9ef27a294ae438de18a94f60b6b7db2d57d10c1f2 WHIRLPOOL 0e11814b7e3ba0fb2c47df5477aa32f4452ede8b12b2cf06c22a4587184ac2230fb51b3b35e4b6e31dee1bd8a04cf53a0cf5e35af72d4eb1c6ffdfa61679a1de
+MISC ChangeLog 344 SHA256 4ce514b6ced53346260996e0ea21603a09d6c0d1f566fb5d4a3311fc74c0ca3e SHA512 8efe10b477fd6b2814ad0b6f990a5e919ffd7074c66ffd6aa106cfaf68cdfa4460427c0dfafafd5b891097332a06b1ce9ace5dd688afd99c5939aaef7224ed9b WHIRLPOOL 1fa3466aea3093d22f5fd111b217fdcafd8714578a436d00cdb5a441a7614ab010f1d6407eca7f383a9ff1120520e5cda569e67512c8add1bed9447fd2a04a65
+MISC metadata.xml 238 SHA256 fb3f3758a51e2214d17a7ee3860535abef87230f8ebee7ddd0c1c8b64a9bec1b SHA512 b8e525ce325eb8201273f8d0ea320d6ba41a183d7f80b0f44dcca44c48049baec1c3489ebd32a17d3be9d6a31a9427ce40cd1686f12e42ca99b0d7037af9532f WHIRLPOOL 1645c553345ed030e8d8fdb0c826c7e1e24178e472b1c1f3001a601719e09d4768ad6fd9e35f0b0c56a53f257cdc5593726114acd8e5c89d3c13436c6b2185a2
diff --git a/net-libs/libosmo-netif/libosmo-netif-9999.ebuild b/net-libs/libosmo-netif/libosmo-netif-9999.ebuild
new file mode 100644
index 000000000000..7ecc9bb91e45
--- /dev/null
+++ b/net-libs/libosmo-netif/libosmo-netif-9999.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils git-2
+
+DESCRIPTION="Utility functions for OsmocomBB, OpenBSC and related projects"
+HOMEPAGE="http://bb.osmocom.org/trac/wiki/"
+EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
+KEYWORDS=""
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND="net-libs/libosmocore net-libs/libosmo-abis"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ eautoreconf
+}
diff --git a/net-libs/libosmo-netif/metadata.xml b/net-libs/libosmo-netif/metadata.xml
new file mode 100644
index 000000000000..1570f891c6a3
--- /dev/null
+++ b/net-libs/libosmo-netif/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 type="project">
+ <email>radio@gentoo.org</email>
+ <name>Radio</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libosmocore/Manifest b/net-libs/libosmocore/Manifest
new file mode 100644
index 000000000000..b88f57786fbd
--- /dev/null
+++ b/net-libs/libosmocore/Manifest
@@ -0,0 +1,9 @@
+AUX libosmocore-0.6.0-automake-1.13.patch 245 SHA256 a84fc6d01bb0ed7bcf7688d675f416050cd4066d8fdc2e6dde9527af8d9fee6f SHA512 be6ad33f91009e6a38d02deafcb69e4e6d88e7436531ddee822b461d95263609b9a6983d7f523cc6d7f97fb8794f32b1b15f9afe1f784bee907ad48535091e1f WHIRLPOOL 5a5941430ae83c423a4b451e7efdf110ee654df04c1cf8b9c7bcda562bd02c13ec49c63bebffb8426b47ac2a3174b16a2898b65c901b96e6ccc1530f99acb8db
+DIST libosmocore-0.6.6.tar.bz2 396707 SHA256 c0ea2cdb1bdfe9cd815f7abf1abbf3f9ae4f7d5fc73d2820a02038da565ec83d SHA512 d0b2a4f0efb8c364a3c3da8cd888a30eb19f193ae13e9ecbb7126b33dd18c2c23a19672866efc365cdc49b0a971ce87d828ec3fbf7e0df4f4d6ff5f3e32a9c17 WHIRLPOOL 7d01aee748b8866bb2f0117ba00d152de56994d7e9cabe27d07ac760b7e07c9c09cd0b983cf5044757190e3cd84632ffc2000fa84b46506574618c9babd56b2e
+DIST libosmocore-0.8.0.tar.bz2 439320 SHA256 7a757b20855a030bc402d6b03411bc6a2d717b2f2cc97ee891cb13661825aefb SHA512 4ffd5943807440f80f70e381e477631a592fef41a3485819d94e7ce9523785e20057759aec6cac7abe57ba21b7d48e38164b7272c5bcd89882a3a8e213d89361 WHIRLPOOL e9e3c82d0d64a85d6915dedc9070f224e49b86a85239a1649751b85ddf2eda537ca9f90a578c42da6df13e77203aaa4dcf069d434f140313439a91686647aee6
+EBUILD libosmocore-0.6.6.ebuild 872 SHA256 e18f22a0f605a3500c60dce582ea0bb7cd3705f05731213d07673e4b7dcacb54 SHA512 f36dca7fdc6191bf8c00b24892b544f83be0dae78dbce8505ec9f3dc0493b15af94e300f0174f3d8ce74a7d4f7c61819674accaf4a3405458c0f5ee5eb9ba721 WHIRLPOOL 75022e00a4f92b040fd9027f4e5dbc60d36d8f84195d2b07a3b679b1b432caf6c782ff48c65b84a4463be8b0bd99c4aca28eae5782b24c00a416f0672dcab384
+EBUILD libosmocore-0.8.0.ebuild 1072 SHA256 dfe80e548045117862da608afda7e44cc800e83938bcc82cf7e6ee9c3423721a SHA512 05f3d6e1d672e9b4bf259a4c4c0523d25d5eff267a93b504b23a96fa1d3ac60b690d9abbb2d2c0151171a646a46a82fe08873e9b705ff41bfa3d859ec8bf6206 WHIRLPOOL 86e94e0105a1a4e4144166cd0a88924cd615d76e281b629d201abd1b3c22da690acfb03032ad84b248bb8cd7853e1461eb05745c9ba1c9cf21b95d823dc88b10
+EBUILD libosmocore-9999.ebuild 1072 SHA256 dfe80e548045117862da608afda7e44cc800e83938bcc82cf7e6ee9c3423721a SHA512 05f3d6e1d672e9b4bf259a4c4c0523d25d5eff267a93b504b23a96fa1d3ac60b690d9abbb2d2c0151171a646a46a82fe08873e9b705ff41bfa3d859ec8bf6206 WHIRLPOOL 86e94e0105a1a4e4144166cd0a88924cd615d76e281b629d201abd1b3c22da690acfb03032ad84b248bb8cd7853e1461eb05745c9ba1c9cf21b95d823dc88b10
+MISC ChangeLog 2998 SHA256 b7f1800dcf634d6333eb23f95b3a64870237d67339f2b2ad1352e14d85db751a SHA512 12c91bdbc67be42a11626f49490ee4a9157f824f9b55f1de5ef709dd5fbe2b1242053aad6f308d2795ad22ed61924351011c5c7575d0a6d6806409ee310bb483 WHIRLPOOL 7c4e25f307a312a54d630bc450fe1e78135cf546a673cc2ccc9916f2bd6c9730bdffa2f56fde9762ccf0b277a2714949e37b49f419cfb3f3a6151602caf84691
+MISC ChangeLog-2015 3019 SHA256 2616fbb4476e14f1c049b28d8124183702ed8b529cb87a917e0fafcc7ffae514 SHA512 8d58f88aeef7180131ab4e4319434a5436d416df0e3be05828e878248b35769df856ecb81fd07150f69680c606400a9ab1e43a079cb4f08acfd83136eb431e6e WHIRLPOOL b79fafe952c03158e4f00b102d76bb40918065c3c10ca408e579b38f11b4b2b13be8c01ecd207a1b2bdb9430c7d22de7ccfa266509d524795241b876d0c101b9
+MISC metadata.xml 432 SHA256 4873e90a7644fc36c986586275bc0cbb0e4e65e37b2a964aebf25df16b04e1d9 SHA512 3b4c9d8e510a658b9e1d5ea30042a45aefcd128429d45665b152b238b216bdd8a245479c54ef0842fda7937830b38d33cef6e12b802b7ce525ced80d38951157 WHIRLPOOL a6b2fe0efa0ca3393b57268ababdf0c276e076b5428e059db7d9f92b93a6a8082ca7d4a627fa2cb30443b5e1abeb37ae54708361737a0ab07f17b186668366ab
diff --git a/net-libs/libosmocore/files/libosmocore-0.6.0-automake-1.13.patch b/net-libs/libosmocore/files/libosmocore-0.6.0-automake-1.13.patch
new file mode 100644
index 000000000000..c61ecac1f336
--- /dev/null
+++ b/net-libs/libosmocore/files/libosmocore-0.6.0-automake-1.13.patch
@@ -0,0 +1,11 @@
+--- libosmocore-0.6.0/configure.ac
++++ libosmocore-0.6.0/configure.ac
+@@ -77,7 +77,7 @@
+ CHECK_TM_INCLUDES_TM_GMTOFF
+
+ dnl Generate the output
+-AC_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ AC_ARG_ENABLE(talloc,
+ [AS_HELP_STRING(
diff --git a/net-libs/libosmocore/libosmocore-0.6.6.ebuild b/net-libs/libosmocore/libosmocore-0.6.6.ebuild
new file mode 100644
index 000000000000..5910efc66f2a
--- /dev/null
+++ b/net-libs/libosmocore/libosmocore-0.6.6.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Utility functions for OsmocomBB, OpenBSC and related projects"
+HOMEPAGE="http://bb.osmocom.org/trac/wiki/libosmocore"
+SRC_URI="http://cgit.osmocom.org/cgit/libosmocore/snapshot/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="embedded"
+
+RDEPEND="embedded? ( sys-libs/talloc )"
+DEPEND="${RDEPEND}
+ app-doc/doxygen"
+
+src_prepare() {
+ # set correct version in pkgconfig files
+ sed -i "s/UNKNOWN/${PV}/" git-version-gen || die
+
+ epatch "${FILESDIR}"/${PN}-0.6.0-automake-1.13.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable embedded)
+}
+
+src_install() {
+ default
+ # install to correct documentation directory
+ mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
+}
diff --git a/net-libs/libosmocore/libosmocore-0.8.0.ebuild b/net-libs/libosmocore/libosmocore-0.8.0.ebuild
new file mode 100644
index 000000000000..ea57bb86c30e
--- /dev/null
+++ b/net-libs/libosmocore/libosmocore-0.8.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Utility functions for OsmocomBB, OpenBSC and related projects"
+HOMEPAGE="http://bb.osmocom.org/trac/wiki/libosmocore"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
+ KEYWORDS=""
+else
+ SRC_URI="http://cgit.osmocom.org/cgit/libosmocore/snapshot/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+IUSE="embedded pcsc-lite"
+
+RDEPEND="embedded? ( sys-libs/talloc )
+ pcsc-lite? ( sys-apps/pcsc-lite )"
+DEPEND="${RDEPEND}
+ app-doc/doxygen"
+
+src_prepare() {
+ # set correct version in pkgconfig files
+ sed -i "s/UNKNOWN/${PV}/" git-version-gen || die
+
+ epatch "${FILESDIR}"/${PN}-0.6.0-automake-1.13.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable embedded) \
+ $(use_enable pcsc-lite pcsc)
+}
+
+src_install() {
+ default
+ # install to correct documentation directory
+ mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
+}
diff --git a/net-libs/libosmocore/libosmocore-9999.ebuild b/net-libs/libosmocore/libosmocore-9999.ebuild
new file mode 100644
index 000000000000..ea57bb86c30e
--- /dev/null
+++ b/net-libs/libosmocore/libosmocore-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Utility functions for OsmocomBB, OpenBSC and related projects"
+HOMEPAGE="http://bb.osmocom.org/trac/wiki/libosmocore"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
+ KEYWORDS=""
+else
+ SRC_URI="http://cgit.osmocom.org/cgit/libosmocore/snapshot/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+IUSE="embedded pcsc-lite"
+
+RDEPEND="embedded? ( sys-libs/talloc )
+ pcsc-lite? ( sys-apps/pcsc-lite )"
+DEPEND="${RDEPEND}
+ app-doc/doxygen"
+
+src_prepare() {
+ # set correct version in pkgconfig files
+ sed -i "s/UNKNOWN/${PV}/" git-version-gen || die
+
+ epatch "${FILESDIR}"/${PN}-0.6.0-automake-1.13.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable embedded) \
+ $(use_enable pcsc-lite pcsc)
+}
+
+src_install() {
+ default
+ # install to correct documentation directory
+ mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
+}
diff --git a/net-libs/libosmocore/metadata.xml b/net-libs/libosmocore/metadata.xml
new file mode 100644
index 000000000000..6c797726fd60
--- /dev/null
+++ b/net-libs/libosmocore/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>radio@gentoo.org</email>
+ <name>Radio</name>
+ </maintainer>
+ <use>
+ <flag name="embedded">Build for embedded use and disable unsupported features</flag>
+ <flag name="pcsc-lite">Enable smartcard support with <pkg>sys-apps/pcsc-lite</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libotr/Manifest b/net-libs/libotr/Manifest
new file mode 100644
index 000000000000..e3a23b2b0f2b
--- /dev/null
+++ b/net-libs/libotr/Manifest
@@ -0,0 +1,5 @@
+DIST libotr-4.1.1.tar.gz 655791 SHA256 8b3b182424251067a952fb4e6c7b95a21e644fbb27fbd5f8af2b2ed87ca419f5 SHA512 c957206235b9f627542f23a645c822ea1b318d83fa655f41ed8d9a3c0dddf30b88f0ca82060026af155e48ecb13969dc9270831f20304669794151f666ae5cb0 WHIRLPOOL 159cfd76e4de87de7cd6afb83309fee3b910436daf4dfa2832cac637eb0b58d77f2063fb8fa0325bd90717a31e5d971ddfaf2c3d3ab785612cc53eeca3234d7c
+EBUILD libotr-4.1.1.ebuild 578 SHA256 512fb838e1ab30e773590a8f7e5343059fde1fa10afe09d2b7fc3fc747eab611 SHA512 befdb4bd9061f2011b073481c63cc697bfc59b5feba4644e623abff010d30829cbb914010c864c610f4b82d25591837af4d4158af58d3427525afe84e4c1d03a WHIRLPOOL d366e352d28459211e2fcb7660f884ed7f5b71aee5f89fccd42346d0b5b01b373f365c00450b6a23fc09bbfbdad8a77d04787b32c8ebaf20a49d7e8dbded84f1
+MISC ChangeLog 3962 SHA256 0d735da0e6aecffaf059a11717af9bdefb839fc23813c8d05dd78c8cc404185d SHA512 cd22ca381c059465c090da910687aacac3c2ec0c45f41ac37d74d6b18815a099317058c226bb272d9e13fbc51c81bc33e7ce4dacc868e337ea2eaf3ceaf13908 WHIRLPOOL 714f9e4e97de332a41bf8f30980f93cf3817e9aa89a66c6edfb23c4aedb41c8c6ec5d635027a08ba3ceb75bd6e3c9a1166917e54a83a3ad428f3457ed0c0fcd2
+MISC ChangeLog-2015 7066 SHA256 fa86d46a94825f17b7fb62a87e443ae697324bc8d18987560b4c8c8a1a647de1 SHA512 70c495b7e065bb1515c155dccdc10f083533992f2357fc70da8babc0661d59331035bc844cc96cec71a7f45936160547b5260684365f560792228024a29021c9 WHIRLPOOL 4a39507b6842ec3c6f5ef0d2935f567493ed4ecdbf010e540bee4d01d649e347652df3bd9efbc3896261802baf46590556d3171eb136a4d10c73c67d85f6a689
+MISC metadata.xml 251 SHA256 59d4a6753275d4f64e51844f8c61bf78d104e103e42c551df15ba14c8e65e9ea SHA512 0ccc4891c6c5de39cbe83d8391b0345611be252a2b1fedea6644ba1cfb283140a8250f32cd26b701db9c60d42782b214d03574592ef3b585bb15d2ffcb5f016e WHIRLPOOL 26dafe883e7e85115f4a9a758c911c206f37f2239544b74a4beb392815efc8f35b230528845def4a7032851e037ecfc595280bfa119035dd07ccaba3a8360927
diff --git a/net-libs/libotr/libotr-4.1.1.ebuild b/net-libs/libotr/libotr-4.1.1.ebuild
new file mode 100644
index 000000000000..f533f0de1dea
--- /dev/null
+++ b/net-libs/libotr/libotr-4.1.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="(OTR) Messaging allows you to have private conversations over instant messaging"
+HOMEPAGE="https://otr.cypherpunks.ca"
+SRC_URI="https://otr.cypherpunks.ca/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+RDEPEND=">=dev-libs/libgcrypt-1.2:0
+ dev-libs/libgpg-error"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog NEWS README UPGRADING )
diff --git a/net-libs/libotr/metadata.xml b/net-libs/libotr/metadata.xml
new file mode 100644
index 000000000000..95aa13f6c5ef
--- /dev/null
+++ b/net-libs/libotr/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 type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libpcap/Manifest b/net-libs/libpcap/Manifest
new file mode 100644
index 000000000000..32c83cfa6009
--- /dev/null
+++ b/net-libs/libpcap/Manifest
@@ -0,0 +1,15 @@
+AUX libpcap-1.6.1-prefix-solaris.patch 806 SHA256 c39a672195ed8de156d047ade9b2a7ff88e6c9b77c9ab40fdab59c53bc53ccad SHA512 a1b49dcf4328518e95807c8f307cbc3eb34680002fd9367c29cf637d80e0c55ffa2e4525822fe42660159be8a71ab925680e058a44ce63ea4482e7ebfdb0a709 WHIRLPOOL c25a37897b1272950083e6f9547a5f4138752cc19123d5819c88d33dc8986bb79a452ae007774c2492bec1eb417e079f48411455b678329f1454c4fef03103d5
+AUX libpcap-1.8.1-cross-compile.patch 555 SHA256 948df1e4a0b32710fbfbea8856b20d2f6a7f7bbe20bb96c39017fd956521ba89 SHA512 a857a9c79ab6160cd82ed9d427c5e49b79c7ddfcbddd9f19998be5a27d8fd16920d7d5bdce14353ac7af80df878782b997007e0c7a7ebb6eb5e094eb6db1275f WHIRLPOOL 8d09b2b126fd17bfe2456b91c706695bc60e2b258a4645f7556b9722abb812aaf91a2688573ebe252356cf41c8f3f082a8f112c9a861ac2983e43077b7f39874
+AUX libpcap-1.8.1-darwin.patch 395 SHA256 a40b616c23f1744d1c98948a99b4f10230a508ccde91429f2c2eb9a6903badc0 SHA512 f068ec0a5853451676f6c4f2950880dd22623c5ad4a0c18441b7244914dc9b4db7a4df2ed81687b89adc9e742dbcd5d68bcbfa0fda1d61fd3d322c7fc6180907 WHIRLPOOL 4ea2ba1081c9a5b84986e683321f5f233e2353ce16a5eda7634f7b292e095389e6d53549abb780aa72a8e6f3b0267fa2b2cbc7554b5d223f25486027c67fb830
+AUX libpcap-1.8.1-libnl.patch 688 SHA256 8e73705359ccfa114ac3e6443e58ee659c3e49bef16325f8a0e2e37272b37f81 SHA512 f56a8f4b87c2f9bfb70e2b31b2e4dcb4fb80654b13cf541f9ff42f193cb9bb4e90a3ad9ef7e91c6ebc8667525bfc75ab78b54381d3f1709f10aaf9f48fd3a1f0 WHIRLPOOL 9e898b5e3110acb3ce73cb14000913aea44131cb38484d9a68b83ad4f7ae0e579ef26b7301ecdd78e694781f63e6644772bded1b82e40aeed51c91ed03927603
+AUX libpcap-1.8.1-usbmon.patch 522 SHA256 3a5cac242e383bbd7cfd8ccce545acc150cdd56dc96a707fca67422d6c71f02c SHA512 489c2f20e7935e47d478efb1077e3cf3806614651cdbd6312d0378989c71409e870f9d0fb9d496cf00b7076d8d001714c56d0444144eedbab47c6ed3afd3bf90 WHIRLPOOL 20e2642bf64a2bb88b4ca418a21749bc910b333cd1bb1757318700b82a2658353bef7e5fc2e21d8a622c2794754e7ac4961aab891bd105a92e3223ce13579326
+AUX libpcap-9999-cross-linux.patch 555 SHA256 e691f148436c4732b04f1c1a96b782e1d2d930a57c8bb81fd241aa417f760cf3 SHA512 183e39f75e65ca991fd2cef6ad638044a8f37b9ea713aad805a1f4b0a60cc89aa935bcdfc0634be13927062355c7cee282f25b1bbde64534c12a3390938cb527 WHIRLPOOL ec8b1fd47054f8c1ca161bd43efd8963a8f64aebd5e77565e3df1910c362008b51a64ff41b55f90933376b333cc38250b1f2dd78acc71c0f3dfd65b8ff86fe5a
+AUX libpcap-9999-libnl.patch 688 SHA256 a617c8042812a7f85962c1998801d4ccb64c97a1ca11faabfbf5ce863ae28621 SHA512 e7d839e10335d0a04592efae13031c701fd222e88910e0a4dceeafa2c3bcf3aa8ae726710c963dd2b4c53088af4f4d154d73e41d86dbd723511633628b174fd3 WHIRLPOOL 0e0f66b98acf15b87550b15dd04c693d38553a133ed087fd3fd5062719ecffbc56af3ee26fda69458d737b037ca6e84da54b21785f8e2b9e3ceb992152e9ea62
+AUX libpcap-9999-prefix-darwin.patch 394 SHA256 3754b3ffd8a4ffa531105a613c93660013578a24a6d5db800e1a890818e1a775 SHA512 bfd560b1bba72a84c5afa1cdf166944e9ede10cb817c7273941b3fc0838ca2676adfd143c0e8873f234de343aabb2177f46f2cd062738d2837d42a1da7370083 WHIRLPOOL fef86ba09c697bee308dac793b3f5ade0570c1eb0590f2f85e9ce033a57b9c0019a77559287f725731d92502c1159bdd6b13889ba7b6242ea1425f4aa9b2e4d3
+DIST libpcap-1.8.1.tar.gz 753405 SHA256 35c45ce725933894878707a00f60bb271244902363ec7097f8fa016dae278c5d SHA512 7e6a7351bb4213e1c3dd95ef7a460e91f733d933e39ba518ad8ba6d2f86b6e7cfa50ae667c8dc1300ef47bf8693ac8a1f18e068f41175ca5d0147a0b72278882 WHIRLPOOL dfc172bdecff1b93e549d0fe80068ccf6fcbd5dcf4a1cda0a1c34c2bfd702237988655f5e6bb91fec32299e0517593b192fde2a8179df17ab35b8db98f024cef
+EBUILD libpcap-1.8.1-r1.ebuild 1924 SHA256 8480f392edf6056432e15bb39cf574baa02a5a2a87f270bb30ca55acdccde1cf SHA512 fcf5ddcc40205e24d5654b01b34f065df81c64f8e2b6bc33c0e97b693f00a27bc98a7bb764548487156519a78c9690569dadfcca3f3981eab7ecedc216d44911 WHIRLPOOL 4ff60cb1ac574ea5b02343b409367b95305576cd8ff8468042fc0d9ec7a3a6904b49215a7bb5588213eeb53f3cf44711bb06e9b4f4de48470e9e191d0ea9df65
+EBUILD libpcap-1.8.1.ebuild 1900 SHA256 fd3eb7c6775dbf9b90bc1c8cd4f99f1b593139719923642ab293c5bf3d034f74 SHA512 82f191130f7ae698489ff3011a7d943d9567eaf45155ec3b584a6f6ae383649261c6369e665e61de04baa12dcf674287425db42b88f0b31163753fcdaea549b5 WHIRLPOOL 9e2e920ad1b1b0ea7d02ad0bb725531ae915989ad841881b5b4b030f213300a1cfc15f05166d046dad1520d749fb6044673f2a2ef4b9dfc4de2a1fc29274100b
+EBUILD libpcap-9999.ebuild 1615 SHA256 f062584ca07302a1c5549d024e2479c6bf74abebca3d1f0c3fce970f0333f921 SHA512 7a146488f25a2e05f11f1eab1f7df288389859f0db805ad3a1f88f74c130af3d9cbcdfd42270080fed82eafafda69a1e596a02ee8a1cd0e61634ca9e1455748d WHIRLPOOL 059ef56f12090d5ff47a9d8d2108e75d6a7f1e3c1169b8c79bb4d7090bffe6f311c1d98323d76c9507692da5c18d0e27225172c0f032ace440e7b88043af65a8
+MISC ChangeLog 5049 SHA256 da87d85f3b36c4c5aaf151b4cbc89bdcee7a7e471690c2ff502642e7e22947ae SHA512 751ec814c5785caa62bb5666ec187ed7a5399ea4ded33a0b60bdb2788d5acf5dfb7c64a334046366a9ad9dfa69ec9b96624293e4e7803a36e94a830104252b75 WHIRLPOOL 1592fa1773b853f9d9183b17ad133fb0cb93f1e0115ad100e8285ee142b96afe3edac6c40f6f97174d320fabffebbd1b4b53ba1864eb1b7ac6ad541097ca2d57
+MISC ChangeLog-2015 32022 SHA256 b7affb0f789fbe92006ca22c34ac9fed5f67fc1d40ec0f745d089324bd1f7eb4 SHA512 3686e8efdf726af0ec9e73a2c4ee97bc0438e13e00e442f05c8e713a15529998098e6267aa746355a098dd7b7b31991765e759656e809e053adec02f0c44b711 WHIRLPOOL e6f26f68d0919d144784ad125022df6b14e3c5d22db52a7a168b66aba6739976a1ff023b7cce09b1d3a23f548bafc44ffe53b77941699126440ae87c6e9ce307
+MISC metadata.xml 475 SHA256 7702da1ffbf68f7f9dfa7b55074581e0b4e54d3a358cfdb919ad59210f5aa17f SHA512 ff92cbd5725e74f72d117b57d85858851ddf3b27046bf7d5b9e29cac8e07c98bb21e2a81ff8ffcec08adb062a42deb051019d60911a8b86ecd232a37e1b88170 WHIRLPOOL ace597d897ac2a2bb668f52adcea305e7453f9c9dc0c97fd20a351b89e75dafb49fc5841b718358a299b41e29da712ba286d497606e3ec4d78cf499d37eea07c
diff --git a/net-libs/libpcap/files/libpcap-1.6.1-prefix-solaris.patch b/net-libs/libpcap/files/libpcap-1.6.1-prefix-solaris.patch
new file mode 100644
index 000000000000..324aead551ae
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.6.1-prefix-solaris.patch
@@ -0,0 +1,35 @@
+Prefix' Solaris uses GNU ld
+
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -415,7 +415,7 @@
+ aix*)
+ ;;
+
+- freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
++ freebsd*|solaris*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
+ #
+ # Platforms where the linker is the GNU linker
+ # or accepts command-line arguments like
+@@ -429,10 +429,10 @@
+ PIC_OPT=-fpic
+ case "$host_cpu" in
+
+- sparc64*)
++ sparc64*|sparcv9*)
+ case "$host_os" in
+
+- freebsd*|openbsd*)
++ freebsd*|solaris*|openbsd*)
+ PIC_OPT=-fPIC
+ ;;
+ esac
+@@ -497,7 +497,7 @@
+ V_SHLIB_OPT="-G -bnoentry -bexpall"
+ ;;
+
+- freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
++ freebsd*|solaris*|netbsd*|openbsd*|dragonfly*|linux*)
+ #
+ # "cc" is GCC.
+ #
diff --git a/net-libs/libpcap/files/libpcap-1.8.1-cross-compile.patch b/net-libs/libpcap/files/libpcap-1.8.1-cross-compile.patch
new file mode 100644
index 000000000000..361cdeb5ec50
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.8.1-cross-compile.patch
@@ -0,0 +1,16 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -291,7 +291,12 @@
+ dnl XXX This could be done for cross-compiling, but for now it's not.
+ dnl
+ if test -z "$with_pcap" && test "$cross_compiling" = yes; then
+- AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...)
++ if test -z "$with_pcap" ; then
++ case $host in
++ *-linux*) with_pcap="linux";;
++ *) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);;
++ esac
++ fi
+ fi
+ AC_ARG_WITH(pcap,
+ AC_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))
diff --git a/net-libs/libpcap/files/libpcap-1.8.1-darwin.patch b/net-libs/libpcap/files/libpcap-1.8.1-darwin.patch
new file mode 100644
index 000000000000..650bea82518a
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.8.1-darwin.patch
@@ -0,0 +1,15 @@
+Prefix' Darwin systems are single arch, hijack Darwin7 case which assumes this setup
+Check for bluetooth/mgmt.h before use
+
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -1117,7 +1117,7 @@
+ if test "$enable_universal" != "no"; then
+ case "$host_os" in
+
+- darwin[0-7].*)
++ darwin**)
+ #
+ # Pre-Tiger. Build only for 32-bit PowerPC; no
+ # need for any special compiler or linker flags.
diff --git a/net-libs/libpcap/files/libpcap-1.8.1-libnl.patch b/net-libs/libpcap/files/libpcap-1.8.1-libnl.patch
new file mode 100644
index 000000000000..61dfc4e201d9
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.8.1-libnl.patch
@@ -0,0 +1,22 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -453,10 +453,6 @@
+
+ incdir=-I/usr/include/libnl3
+ libnldir=
+- if test x$withval != x ; then
+- libnldir=-L${withval}/lib/.libs
+- incdir=-I${withval}/include
+- fi
+
+ #
+ # Try libnl 3.x first.
+@@ -471,7 +467,7 @@
+ AC_DEFINE(HAVE_LIBNL_3_x,1,[if libnl exists and is version 3.x])
+ AC_DEFINE(HAVE_LIBNL_NLE,1,[libnl has NLE_FAILURE])
+ AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
+- V_INCLS="$V_INCLS ${incdir}"
++ V_INCLS="${incdir} $V_INCLS"
+ have_any_nl="yes"
+ ],[], ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 )
+
diff --git a/net-libs/libpcap/files/libpcap-1.8.1-usbmon.patch b/net-libs/libpcap/files/libpcap-1.8.1-usbmon.patch
new file mode 100644
index 000000000000..0b69e43a3f7d
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.8.1-usbmon.patch
@@ -0,0 +1,16 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -1493,10 +1493,9 @@
+ AC_DEFINE(PCAP_SUPPORT_USB, 1, [target host supports USB sniffing])
+ USB_SRC=pcap-usb-linux.c
+ AC_MSG_RESULT(yes)
+- ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
+- if test $? -ne 0 ; then
+- ac_usb_dev_name="usbmon"
+- fi
++
++ ac_usb_dev_name="usbmon"
++
+ AC_DEFINE_UNQUOTED(LINUX_USB_MON_DEV, "/dev/$ac_usb_dev_name", [path for device for USB sniffing])
+ AC_MSG_NOTICE(Device for USB sniffing is /dev/$ac_usb_dev_name)
+ #
diff --git a/net-libs/libpcap/files/libpcap-9999-cross-linux.patch b/net-libs/libpcap/files/libpcap-9999-cross-linux.patch
new file mode 100644
index 000000000000..f01a9ca5c935
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-9999-cross-linux.patch
@@ -0,0 +1,16 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -317,7 +317,12 @@
+ dnl XXX This could be done for cross-compiling, but for now it's not.
+ dnl
+ if test -z "$with_pcap" && test "$cross_compiling" = yes; then
+- AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...)
++ if test -z "$with_pcap" ; then
++ case $host in
++ *-linux*) with_pcap="linux";;
++ *) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);;
++ esac
++ fi
+ fi
+ AC_ARG_WITH(pcap,
+ AC_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))
diff --git a/net-libs/libpcap/files/libpcap-9999-libnl.patch b/net-libs/libpcap/files/libpcap-9999-libnl.patch
new file mode 100644
index 000000000000..f243906ebad2
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-9999-libnl.patch
@@ -0,0 +1,22 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -492,10 +492,6 @@
+
+ incdir=-I/usr/include/libnl3
+ libnldir=
+- if test x$withval != x ; then
+- libnldir=-L${withval}/lib/.libs
+- incdir=-I${withval}/include
+- fi
+
+ #
+ # Try libnl 3.x first.
+@@ -510,7 +506,7 @@
+ AC_DEFINE(HAVE_LIBNL_3_x,1,[if libnl exists and is version 3.x])
+ AC_DEFINE(HAVE_LIBNL_NLE,1,[libnl has NLE_FAILURE])
+ AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
+- V_INCLS="$V_INCLS ${incdir}"
++ V_INCLS="${incdir} $V_INCLS"
+ have_any_nl="yes"
+ ],[], ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 )
+
diff --git a/net-libs/libpcap/files/libpcap-9999-prefix-darwin.patch b/net-libs/libpcap/files/libpcap-9999-prefix-darwin.patch
new file mode 100644
index 000000000000..9bcbfe92ee0a
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-9999-prefix-darwin.patch
@@ -0,0 +1,14 @@
+Prefix' Darwin systems are single arch, hijack Darwin7 case which assumes this setup
+Check for bluetooth/mgmt.h before use
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -1271,7 +1267,7 @@
+ if test "$enable_universal" != "no"; then
+ case "$host_os" in
+
+- darwin[0-7].*)
++ darwin**)
+ #
+ # Pre-Tiger. Build only for 32-bit PowerPC; no
+ # need for any special compiler or linker flags.
diff --git a/net-libs/libpcap/libpcap-1.8.1-r1.ebuild b/net-libs/libpcap/libpcap-1.8.1-r1.ebuild
new file mode 100644
index 000000000000..af93e87f6c24
--- /dev/null
+++ b/net-libs/libpcap/libpcap-1.8.1-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils multilib-minimal
+
+DESCRIPTION="A system-independent library for user-level network packet capture"
+HOMEPAGE="
+ http://www.tcpdump.org/
+ https://github.com/the-tcpdump-group/libpcap
+"
+SRC_URI="
+ https://github.com/the-tcpdump-group/${PN}/archive/${P}.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="bluetooth dbus netlink static-libs usb"
+
+RDEPEND="
+ bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
+ dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
+ netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
+"
+DEPEND="
+ ${RDEPEND}
+ sys-devel/flex
+ virtual/yacc
+ dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+"
+
+S=${WORKDIR}/${PN}-${P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
+ "${FILESDIR}"/${PN}-1.8.1-cross-compile.patch
+ "${FILESDIR}"/${PN}-1.8.1-darwin.patch
+ "${FILESDIR}"/${PN}-1.8.1-libnl.patch
+ "${FILESDIR}"/${PN}-1.8.1-usbmon.patch
+)
+
+src_prepare() {
+ default
+
+ eapply_user
+
+ echo ${PV} > VERSION || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ econf \
+ $(use_enable bluetooth) \
+ $(use_enable usb) \
+ $(use_enable dbus) \
+ $(use_with netlink libnl) \
+ --enable-ipv6
+}
+
+multilib_src_compile() {
+ emake all shared
+}
+
+multilib_src_install_all() {
+ dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel}
+
+ # remove static libraries (--disable-static does not work)
+ if ! use static-libs; then
+ find "${ED}" -name '*.a' -exec rm {} + || die
+ fi
+ prune_libtool_files
+
+ # We need this to build pppd on G/FBSD systems
+ if [[ "${USERLAND}" == "BSD" ]]; then
+ insinto /usr/include
+ doins pcap-int.h portability.h
+ fi
+}
diff --git a/net-libs/libpcap/libpcap-1.8.1.ebuild b/net-libs/libpcap/libpcap-1.8.1.ebuild
new file mode 100644
index 000000000000..3a8543b92dd7
--- /dev/null
+++ b/net-libs/libpcap/libpcap-1.8.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils multilib-minimal
+
+DESCRIPTION="A system-independent library for user-level network packet capture"
+HOMEPAGE="
+ http://www.tcpdump.org/
+ https://github.com/the-tcpdump-group/libpcap
+"
+SRC_URI="
+ https://github.com/the-tcpdump-group/${PN}/archive/${P}.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="bluetooth dbus netlink static-libs usb"
+
+RDEPEND="
+ bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
+ dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
+ netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
+"
+DEPEND="
+ ${RDEPEND}
+ sys-devel/flex
+ virtual/yacc
+ dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+"
+
+S=${WORKDIR}/${PN}-${P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
+ "${FILESDIR}"/${PN}-1.8.1-cross-compile.patch
+ "${FILESDIR}"/${PN}-1.8.1-darwin.patch
+ "${FILESDIR}"/${PN}-1.8.1-libnl.patch
+ "${FILESDIR}"/${PN}-1.8.1-usbmon.patch
+)
+
+src_prepare() {
+ default
+
+ eapply_user
+
+ echo ${PV} > VERSION || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ econf \
+ $(use_enable bluetooth) \
+ $(use_enable usb) \
+ $(use_enable dbus) \
+ $(use_with netlink libnl) \
+ --enable-ipv6
+}
+
+multilib_src_compile() {
+ emake all shared
+}
+
+multilib_src_install_all() {
+ dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel}
+
+ # remove static libraries (--disable-static does not work)
+ if ! use static-libs; then
+ find "${ED}" -name '*.a' -exec rm {} + || die
+ fi
+ prune_libtool_files
+
+ # We need this to build pppd on G/FBSD systems
+ if [[ "${USERLAND}" == "BSD" ]]; then
+ insinto /usr/include
+ doins pcap-int.h
+ fi
+}
diff --git a/net-libs/libpcap/libpcap-9999.ebuild b/net-libs/libpcap/libpcap-9999.ebuild
new file mode 100644
index 000000000000..28f3488e0abd
--- /dev/null
+++ b/net-libs/libpcap/libpcap-9999.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils git-r3 multilib-minimal
+
+DESCRIPTION="A system-independent library for user-level network packet capture"
+EGIT_REPO_URI="https://github.com/the-tcpdump-group/libpcap"
+HOMEPAGE="
+ http://www.tcpdump.org/
+ ${EGIT_REPO_URI}
+"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="bluetooth dbus netlink static-libs usb"
+KEYWORDS=""
+
+RDEPEND="
+ bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
+ dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
+ netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
+ usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
+"
+DEPEND="
+ ${RDEPEND}
+ sys-devel/flex
+ virtual/yacc
+ dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
+ "${FILESDIR}"/${PN}-9999-cross-linux.patch
+ "${FILESDIR}"/${PN}-9999-libnl.patch
+ "${FILESDIR}"/${PN}-9999-prefix-darwin.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ econf \
+ $(use_enable bluetooth) \
+ $(use_enable dbus) \
+ $(use_enable usb) \
+ $(use_with netlink libnl)
+}
+
+multilib_src_compile() {
+ emake all shared
+}
+
+multilib_src_install_all() {
+ dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel}
+
+ # remove static libraries (--disable-static does not work)
+ if ! use static-libs; then
+ find "${ED}" -name '*.a' -exec rm {} + || die
+ fi
+ prune_libtool_files
+
+ # We need this to build pppd on G/FBSD systems
+ if [[ "${USERLAND}" == "BSD" ]]; then
+ insinto /usr/include
+ doins pcap-int.h portability.h
+ fi
+}
diff --git a/net-libs/libpcap/metadata.xml b/net-libs/libpcap/metadata.xml
new file mode 100644
index 000000000000..488e8703b179
--- /dev/null
+++ b/net-libs/libpcap/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+<email>netmon@gentoo.org</email>
+<name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<use>
+<flag name="netlink">Use <pkg>dev-libs/libnl</pkg> to put wireless interfaces in monitor mode.</flag>
+</use>
+<upstream>
+<remote-id type="github">the-tcpdump-group/libpcap</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/net-libs/libpcapnav/Manifest b/net-libs/libpcapnav/Manifest
new file mode 100644
index 000000000000..866ee973d545
--- /dev/null
+++ b/net-libs/libpcapnav/Manifest
@@ -0,0 +1,6 @@
+AUX libpcapnav-0.8-includes.patch 395 SHA256 0cd3f442e2e60ad27b53b81a6321b9d5e564e63eb920ac33f7e2f4a8805c644c SHA512 04570a0f0b5c33565e79922e878171bb98640d2961cc9378c64e17a7144636960fe099bcca4c043d8a4532b98fe7960fdfa24af8145df5c8682af4dcc5d9b99c WHIRLPOOL e633519a8a65ab68a91aabd7bacd6ec33b74f14f02d99f019ea965b7dddf2b821c0b0d496546f41675fb2d086769948fd6d120d62e1e123cb91b7f248ae85c76
+DIST libpcapnav-0.8.tar.gz 387476 SHA256 11d6a4257cbc5a89aa73ce2aaa5b0fc17430f7279d0abb39ccaf3a411ba7e852 SHA512 bc0357d17228c157de5b480532df37a62459882d5a4fb8d2285fe4e86c1dca301e7cc505f2917bb3421d926bed263d93b2c587311431d9c3a5b02f04c93fdf18 WHIRLPOOL 08552c55bc6d2c80780b333e1ba0c476baa5d783c74309fe6e435cefae551b9d2a27040c66e2f27ee21a8679f48a3fe8f258a9efc64873fbda806656e339a974
+EBUILD libpcapnav-0.8.ebuild 805 SHA256 a86733dced7e3c2659f64386acecc9424bd017338d8e0a5e9c07bef9bd40977d SHA512 c84102927600a1739c0eaa741b7a49a340c71090bc4ca203e67e6bf00133044ae8cc7cb60bfce87420f3bfdd108f595f96d383bbaf4627a42ac0a5ec4945a43c WHIRLPOOL a1417611aea91ea7c2b461c859569a74a42d2e24eedbe2f76d9e3818f5415199ba65280bdb372af0c4ff7dd66ca0133cfd4c2f76e912c6d8e0d870a8c77cdd6b
+MISC ChangeLog 2470 SHA256 d18e38c0d6785501371437192588a605370c7ae1e64c49cc97eb4dc0c672af51 SHA512 f56ddd205f6629313b732347df64b8618731c9a46c3589436490d3fedbf5429407e30a2e7957b571601a390c1d70db7856e257b592074309ffec3c7dc5a55723 WHIRLPOOL 8a229297578f1f89d3dfb0a1f78c5613eb4569cdb47280a1dce035ea447e7f1a27055658732b57b356ede766f3f4c0b51fc8b820c37c5ca4b542875f726bcc65
+MISC ChangeLog-2015 1850 SHA256 12c26c82b7c602ae1901ae26fe4cf8dec55dbd9f0081be562ff7c4e858a0931f SHA512 07667233267e8bbe04885d793f25047c95f53fe8bc107c7ce3022f4cdd79eca240c9ec798bb7bb6b46ac401e00a80048dd7c401136c5023f365a3eee01ec6a6c WHIRLPOOL 6e8cc25153d36e872fbbd8195e2a643a6a968f80b75b6cae01eb8d99dabca140ff16673735b8958202e678935bbfde818600ea63e8f7c6e372f4ac2a1d65f068
+MISC metadata.xml 357 SHA256 f62db9adbedae707710b3a6c405a7b5e032c3a10c86551962f0469a6a2e47ce3 SHA512 9cf449d26b416d995b8371fe2e6aed6964080b8b84bf0ceace749ceebd4ddbcc8b3d7d9c1d8c2a07a4c7cb880492ffc8b34ad31b4602a646e004f3aaf52f3ae8 WHIRLPOOL e2996e59feb79e11f44c3aab49adc38a8d9f1e3b00edc66893a9312b17d0eeb3e859668ac7799c6eb4095dee8de14c4588daf8f027db2f81bf77c721bcbb5372
diff --git a/net-libs/libpcapnav/files/libpcapnav-0.8-includes.patch b/net-libs/libpcapnav/files/libpcapnav-0.8-includes.patch
new file mode 100644
index 000000000000..cb41bedf4a32
--- /dev/null
+++ b/net-libs/libpcapnav/files/libpcapnav-0.8-includes.patch
@@ -0,0 +1,20 @@
+--- a/test/pcapnav-test1.c
++++ b/test/pcapnav-test1.c
+@@ -1,6 +1,7 @@
+ #include <config.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <time.h> /* ctime() */
+
+ #include <pcapnav.h>
+
+--- a/test/pcapnav-jump.c
++++ b/test/pcapnav-jump.c
+@@ -1,6 +1,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <pcapnav.h>
++#include <string.h> /* strcmp() */
+
+ int
+ main(int argc, char** argv)
diff --git a/net-libs/libpcapnav/libpcapnav-0.8.ebuild b/net-libs/libpcapnav/libpcapnav-0.8.ebuild
new file mode 100644
index 000000000000..e489ebd83f27
--- /dev/null
+++ b/net-libs/libpcapnav/libpcapnav-0.8.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Libpcap wrapper library to navigate to arbitrary packets in a tcpdump trace file"
+HOMEPAGE="http://netdude.sourceforge.net/"
+SRC_URI="mirror://sourceforge/netdude/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~sparc x86"
+IUSE="doc static-libs"
+
+DEPEND="net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+DOCS=( AUTHORS ChangeLog README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-includes.patch
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_compile() {
+ emake SUBDIRS="src docs"
+}
+
+src_install() {
+ default
+ rm -fr "${D}"/usr/share/gtk-doc
+ use doc && dohtml -r docs/*.css docs/html/*.html docs/images
+ prune_libtool_files
+}
diff --git a/net-libs/libpcapnav/metadata.xml b/net-libs/libpcapnav/metadata.xml
new file mode 100644
index 000000000000..257607f181b3
--- /dev/null
+++ b/net-libs/libpcapnav/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">netdude</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libpri/Manifest b/net-libs/libpri/Manifest
new file mode 100644
index 000000000000..9dda5b7356ea
--- /dev/null
+++ b/net-libs/libpri/Manifest
@@ -0,0 +1,21 @@
+AUX libpri-1.4.12-multilib.patch 2592 SHA256 b2764a9905941fa186cec9da87dd31d75a881eb1588fbec71b1b7433581b56a7 SHA512 fc6fb3fec61b0c18b16f35d78065c9d17b2c579e2a7fc6d93df2b25937aa5b056016022e77a7001a12b38ca1d96b6700b72ac37ea52bdd32cf135d7ec7d8670a WHIRLPOOL 98afbccd65d6544986455e6e370401bd600b55e112ba89619c4eac75f228069ed1ab945d57868d187219317e5a9dcc0c05d308c91a591c8af65ba2d8057dcfce
+AUX libpri-1.4.12-respect-user-flags.patch 1694 SHA256 a34e0fd4bef4e6fa28ef76f67edf83586197b8a41660b5594a2ab1a62f4ae9f0 SHA512 bd72c53cdc575c74b07cc32d5f4f4cbf9b49e43a97b3a82a96c2fe85e4c2b4529eec27adf1d3f8af5fcc9ac16e3636af5256dd7461b2adec7c4e3db5fdee4ec6 WHIRLPOOL 526f672c038d0f004c6a2c8d4b7b8dbac15d276b0c95450f286a74f43eeb2ea5d3ce02677dc62668750e62f573350cda6ac48706cf4999a58f640773418ad0bc
+AUX libpri-1.4.13-multilib.patch 2541 SHA256 14f359eb86eb68520e7db538c7fa39d06dd0f3d9b448582f6b308bf80e362dc5 SHA512 7e6b43e64c5a4fd791090d3b20008a2bc1b9deeedf613ef6e72ec6b5dc105449705bedac5f4628d9d53963ae9649ad22480daa114de40f83854d045c2f3d9247 WHIRLPOOL ceea8f5530374c3926d0f449d9c3a24d87d4f5a9a819fb5aa9286243b2aaf480f9dd51d00f296d0847f96891d9ff220aacef19a2f1b33b6580c06d342e29e38b
+AUX libpri-1.4.13-no-static-lib.patch 1252 SHA256 1b347c12a39f94c9b9cb9a5f872ecc58be0a75d45ccacb7a78b351510ad13c02 SHA512 3d057a8bc1401e4580dcdbb401c697cc25117b8ab9fc4feedba39bd980dc9745423eae7cc75fe48c3684b07459d0f5de11717020d3e7726ca89de7c6a8a3861d WHIRLPOOL d8761d7cd90d323b115747b1dfed608272cea7d03ecb33a7943ec2763dad17022e9b8ddf43cc7e5fd4a9877b70f43523561402b82cd0df54bbe4dece3df3e078
+AUX libpri-1.4.13-respect-user-flags.patch 1354 SHA256 3975bd0f593a3468e4824aa56b8b23a11e612034144f8f13792439c036880f1d SHA512 6b6695a3e16de652c7dc05a1fa95948498d03901c6e106cbedddc2681b7b0a59d3567c5161539e397f3e1759be682537e57712e24b771a55c59f6bdec152440f WHIRLPOOL 73b8852329f0103d04b077dfe77f9a65c7a9e87bdb4fbbdea3e7289a45e27245d8800408c3a83e06feabb829f0f290d7b865dbdf07f62e3c9466c61ec6f71f0d
+AUX libpri-1.6.0-respect-user-flags.patch 1626 SHA256 3a5140a0dcf6eafe0ac1aae007673c53ffaee693a0e7cfe81bde48bf8f2d49fe SHA512 69bb194721741613ec9e4c6da9d19154dfdb2ed56b2b964e09e888bd0dedd104501f3a51f0bb57587d1c15dafeeacf790ea122bc1c2a8edfeccb2f7d9252519e WHIRLPOOL e3af24c054b06aacfde33b060582ba9713e604917ba316cb498ad8908310be797800068cc80e71b1151d078ac6e2dd68543cec8af2ed4b885a4d8fb67a40dae7
+DIST libpri-1.4.12.tar.gz 339669 SHA256 c0e170a742ed5d19515c99472fe79a467522355b3c24e4f7359d667b7d756e75 SHA512 54933b9fc23a09c71a1c9ce40d648fc90e6900043ab04f097ee3d01918b46f65462337e98e1b2c1917e36becdccc871bd5029dedc522020ea731c29172ccb1fe WHIRLPOOL 708387b8571668edd193605004c62d37d41db8a6c18161c36f3db12b05f99683eae2b8dc43037a202eb46117085cc1505e56b8195d70369ec994acc8ff31c404
+DIST libpri-1.4.13.tar.gz 338432 SHA256 5c17611b7294c83f20fac5dc5cd9930de684a2f84627efb15ef6742b68df1ebf SHA512 5fbd408577bc92f2232c696f91691ec28e011b0918c7ff08212f352499f0af56e1b9a03ec738b13c28a4ff5e687eaf873472035ed1908cf43a844ffbf34dd636 WHIRLPOOL 37b7694dd012677e6ecea73a79bf75577fc6f368f9963e08a50e8d12a407a4b979ae56e1c92bb0df85efbec3cfaa2f033dac5eb1cd864bfe2e472bb22415abd8
+DIST libpri-1.4.14.tar.gz 338303 SHA256 25def0f3d492e7604c58d81f5c5a3c70f158bbf78b1250a3bda208e994799dd0 SHA512 c702249db62abb694747b56c588aa0e3883f54cba7cc125652df446604f349979e68a6d6b477bdcddd938179f1d1bab0a73044b0eb4c88a615770344ca419cdf WHIRLPOOL 62b5d4480556eea849a54ebd3a8d910ca02f078c5376031cfa388602350b3a514671102e0a6fe568c092b822a8d514fa2012d20db78b0b96a947a1b3a8c42ecd
+DIST libpri-1.4.15.tar.gz 338633 SHA256 9af4192137b0364ebc1fb86ecceaf6bb154772d7b8f094a1a7b2f3dcddc032d5 SHA512 2737ad404440a0c809bf0bb0e406565757fe850040911561c2e5e64f4c49b02af69db0d23dac322dda354583bca0ced88becc07017e686a848b69c8f152fb9d4 WHIRLPOOL 4b162d9de627c657bd7d97c7e7b19aa5c74b2497728986d08c46fbfa0582eb0e2c865d5536c78c8eb6e0ec489e5e785a414ca82aa126b4de03ed5095d38783aa
+DIST libpri-1.5.0.tar.gz 340683 SHA256 ee224bc4aa65c54546bd09675c3f0b71817ce9e277332bce86989d8dcd556a24 SHA512 194e4b525e77a28665525e43a2d105d542fab242d3d21951574668bf4d14d90adeb4e0b18384eca1628d75a16d89c8b1e6577e30542d77dd5dfd3d6f4d60ed3a WHIRLPOOL 2b8749e8a5f238644cbd3f78b3f23dd50b05036e846678d42387522ec8470ccbb033595628a8498b888f71b2b66be4716d2c47a30f52b126bf7b1233ea417f04
+DIST libpri-1.6.0.tar.gz 340578 SHA256 7225ea7ec334a115f9dc08e71f55589c38cb4e00b13964cd2f08cc4e6123e3f6 SHA512 3eb876477cdd27c88f274e4a2e35a67f660b8d8eed140e56c40769982a58f1cdd4e5be352f8f220dc100eedf1ad09286c578430a52d9abe326440c8cbf517fa5 WHIRLPOOL 79c87b2f5a0b5fd0977aa24ce5370a074f0528cd7e8834643adb084969e25a14bfc81ea4cfde2068c7ba213788a78674e42af33a2b20e80848f69b63560c0e97
+EBUILD libpri-1.4.12-r2.ebuild 689 SHA256 a3bfcc69c4eb27254c07f398a86f785f6bbf01964a5a4b81a51e7d5ad2caab36 SHA512 ec5454f729f1a47fb821827c8ad305422ec3b17825e46f7875f1df4ad3d91614da98df089c969ccc9aab3336c927e682f4fb0ecaa84836225662bc21cbf0ca4e WHIRLPOOL 8f735afcafad508e8b1bafb619bf74427d843b18e12be93e804a3b7bd62c16236a6410fd4489c35346ca509699fbed14976e91f5a564baaac4f3b33c697d40fb
+EBUILD libpri-1.4.13.ebuild 676 SHA256 e4c6f2a2110f40d2bb4ed84777a9147ec1a317c17f0f29503c57ee2c3d794359 SHA512 1557499fb225120e8efd793794ef993703d935cbea04e8dc66fe6d402473845e8efb01a85d2294be928026f314c171627cc23f2802b820c9ea1e6a6dcf2bab3b WHIRLPOOL 8fed62f21cf2930f5b7d1aa77346c56f8c1003d50071c91b096292bea25281cdd55dc52b2c7ed07a64bd68b0a0865acc43228629fcbcb307c626eaeef0223292
+EBUILD libpri-1.4.14.ebuild 676 SHA256 d7b833ffce75d2828f10fd54d1861a0f9ced3bc807554429145de15e4b319199 SHA512 cd67b8b65c621c65e6e99c91fa527c0a7fb2885d8ddcd67b24438934161358fff4451d389777e116195fecbc10857fe3fedbdfb1e3c4b5486db5e387d19fa77b WHIRLPOOL 919eca7eeda13926abede0878a31b052ee1663e6d57cd5b69d8159fd9e45141d1c736bbdc1875c2c799bdedfdffe408168094aa31058cca79370288b2e8e0a5c
+EBUILD libpri-1.4.15.ebuild 721 SHA256 9a706a049fea4789b8e8ab138ac4b260e043cb3f54220664ac254dc7086a8314 SHA512 15eed20f73274b14855239451a0e95771aa0ecbdd256e8175006e7968c7bd9fab7683193c361fa638a6fdfa580cb3feef9350469a9dc2c688695bd70f2abc769 WHIRLPOOL 7087fcb875c72e029c430793a0cf96f91a1ebf0cf4381cb080bce411ca5438e0484b9f711f0a3f7fb35392187bfc0260c754e56ad1e448536492cd4faa42329c
+EBUILD libpri-1.5.0.ebuild 674 SHA256 d3cc3c735fdbc85beea59421b0d5cb647b26d8e33285eb94c87eeb823d6d980b SHA512 fc3248e584238a16baace740c749616a11bb2d1b170c7543d74d995c4d53fbb3fe0473da3d988305013ee4055a858108167a3cdeddc1d8e29ae47b600c32bcd3 WHIRLPOOL cb773ad7ad0f6432eafc7f2611f7e575b73d1e35c5ea66d2b1d60c3ebc21b6758658f2af33208dde47c072017157789d8e49af14d794be25c2d6a0a751a52e21
+EBUILD libpri-1.6.0.ebuild 739 SHA256 e62c2be945fc3a0efc4e36021b0ea77885f829d1a5e9ab034a36841d060da513 SHA512 f3aec195d5d94f4e304264934c6375e91416143abd857aeaf0a6fdc7a3341181d24c1b59fed21e4ca9b4fc2c6d42a54ffc068d65e55ec45aa8ef76fdd0e7b38b WHIRLPOOL c6b06977a933091b6f91feb5fac06a01657ca90095eda18b1141a65a61c4d8cce4cb8f82a730f31de829e75bb3303f358e848792203389c476de0bd94f834ba2
+MISC ChangeLog 2763 SHA256 a211f990d426679837737bed37adc381f27e95732ea7c962f07636e28f65f98c SHA512 d62c8159bfb98460d202a870f7a2f0e5f96ebbcca2b7fe206908c586e56f086d5ace138233246f5f60582445519d6b8481e49e4861c2995b067cd04bec957cfa WHIRLPOOL 8e9d2db6c208ce31751702d9d45df223c2abb94581f55fd85bcca61afbc79ce82ddc8124fffcffb0766d3a8aea2e594cee2d571420a0cb589bdf32d5d93ed580
+MISC ChangeLog-2015 17863 SHA256 035d6271d2f5cdcd7ae6ebfe45b85484625d2893c4fa88d5fde2628a45141d15 SHA512 0ae9d57af599b1ca548b6aaae2b91b407133f09db58dc0bb774e96ab13df3690f8c30c37a1aba2943e35552d79211107a52f57dd59d53d9f9250d80bdba1e564 WHIRLPOOL 07669cbf4ded785028c9c83ea9cf76e8dd68f97ce693c7caed656e593467b7d5d9930a90161090b466774f73899c9b2e29ba7d1dac5ede6ef4be63f83e826978
+MISC metadata.xml 251 SHA256 f6ff468128d9aa804b47d9a184c761b4123b908d302eec0953226acd00fc80df SHA512 7ea734b9e52a4e36b11e004da4a8178aa529574adee2129ba57b1ce75fd5017431fdfffe7a4a536c798ae645497a44b07c748d77308325cf4d6af070ff167edd WHIRLPOOL 1610f6ab9cfa21736bbc4643fec692b621f8889a5888b4189847af4aa6f5719829cfaba363c480483fe7e8fb2c40d417e986964b52cb21d564940c4b51f8554d
diff --git a/net-libs/libpri/files/libpri-1.4.12-multilib.patch b/net-libs/libpri/files/libpri-1.4.12-multilib.patch
new file mode 100644
index 000000000000..bb30900a0ca5
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.4.12-multilib.patch
@@ -0,0 +1,51 @@
+--- libpri-1.4.12-beta3/Makefile.orig 2010-10-07 06:00:04.000000000 +0200
++++ libpri-1.4.12-beta3/Makefile 2010-11-23 22:04:59.884448930 +0100
+@@ -96,7 +96,7 @@
+ CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
+ INSTALL_PREFIX=$(DESTDIR)
+ INSTALL_BASE=/usr
+-libdir?=$(INSTALL_BASE)/lib
++LIBDIR=$(INSTALL_PREFIX)$(INSTALL_BASE)/lib
+ ifneq ($(findstring Darwin,$(OSARCH)),)
+ SOFLAGS=-dynamic -bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
+ ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6)
+@@ -168,27 +168,27 @@
+ fi
+
+ install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
+- mkdir -p $(INSTALL_PREFIX)$(libdir)
++ mkdir -p $(LIBDIR)
+ mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include
+ ifneq (${OSARCH},SunOS)
+ install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
+- install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(libdir)
+- #if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then /sbin/restorecon -v $(INSTALL_PREFIX)$(libdir)/$(DYNAMIC_LIBRARY); fi
+- ( cd $(INSTALL_PREFIX)$(libdir) ; ln -sf libpri.so.$(SONAME) libpri.so)
+- install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(libdir)
+- if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(INSTALL_PREFIX)$(libdir); fi
++ install -m 755 $(DYNAMIC_LIBRARY) $(LIBDIR)
++ if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then /sbin/restorecon -v $(LIBDIR)/$(DYNAMIC_LIBRARY); fi
++ ( cd $(LIBDIR) ; ln -sf libpri.so.$(SONAME) libpri.so)
++ install -m 644 $(STATIC_LIBRARY) $(LIBDIR)
++ if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(LIBDIR); fi
+ else
+ install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
+- install -f $(INSTALL_PREFIX)$(libdir) -m 755 $(DYNAMIC_LIBRARY)
+- ( cd $(INSTALL_PREFIX)$(libdir) ; ln -sf libpri.so.$(SONAME) libpri.so)
+- install -f $(INSTALL_PREFIX)$(libdir) -m 644 $(STATIC_LIBRARY)
++ install -f $(LIBDIR) -m 755 $(DYNAMIC_LIBRARY)
++ ( cd $(LIBDIR) ; ln -sf libpri.so.$(SONAME) libpri.so)
++ install -f $(LIBDIR) -m 644 $(STATIC_LIBRARY)
+ endif
+
+ uninstall:
+ @echo "Removing Libpri"
+- rm -f $(INSTALL_PREFIX)$(libdir)/libpri.so.$(SONAME)
+- rm -f $(INSTALL_PREFIX)$(libdir)/libpri.so
+- rm -f $(INSTALL_PREFIX)$(libdir)/libpri.a
++ rm -f $(LIBDIR)/libpri.so.$(SONAME)
++ rm -f $(LIBDIR)/libpri.so
++ rm -f $(LIBDIR)/libpri.a
+ rm -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include/libpri.h
+
+ pritest: pritest.o
diff --git a/net-libs/libpri/files/libpri-1.4.12-respect-user-flags.patch b/net-libs/libpri/files/libpri-1.4.12-respect-user-flags.patch
new file mode 100644
index 000000000000..dd5b28587db9
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.4.12-respect-user-flags.patch
@@ -0,0 +1,47 @@
+diff -uNr libpri-1.4.12.ORIG//Makefile libpri-1.4.12/Makefile
+--- libpri-1.4.12.ORIG//Makefile 2011-07-27 10:37:34.247793740 +0100
++++ libpri-1.4.12/Makefile 2011-07-27 10:38:54.183790788 +0100
+@@ -90,7 +90,7 @@
+ rose_qsig_mwi.lo \
+ rose_qsig_name.lo \
+ version.lo
+-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
++CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
+ INSTALL_PREFIX=$(DESTDIR)
+ INSTALL_BASE=/usr
+ LIBDIR=$(INSTALL_PREFIX)$(INSTALL_BASE)/lib
+@@ -124,20 +124,12 @@
+
+ PRIVERSION:=$(shell GREP=$(GREP) AWK=$(AWK) build_tools/make_version .)
+
+-#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
+-#This works for even old (2.96) versions of gcc and provides a small boost either way.
+-#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
+-ifeq ($(PROC),sparc64)
+-PROC=ultrasparc
+-LIBPRI_OPT = -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
++ifneq ($(CODE_COVERAGE),)
++ LIBPRI_OPT=
++ COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
++ COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
+ else
+- ifneq ($(CODE_COVERAGE),)
+- LIBPRI_OPT=
+- COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
+- COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
+- else
+- LIBPRI_OPT=-O2
+- endif
++ LIBPRI_OPT=
+ endif
+
+ ifeq ($(CPUARCH),i686)
+@@ -216,7 +208,7 @@
+ ranlib $(STATIC_LIBRARY)
+
+ $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
+- $(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
++ $(CC) $(SOFLAGS) $(LDFLAGS) -o $@ $(DYNAMIC_OBJS)
+ $(LDCONFIG) $(LDCONFIG_FLAGS) .
+ ln -sf libpri.so.$(SONAME) libpri.so
+
diff --git a/net-libs/libpri/files/libpri-1.4.13-multilib.patch b/net-libs/libpri/files/libpri-1.4.13-multilib.patch
new file mode 100644
index 000000000000..22eec7e50059
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.4.13-multilib.patch
@@ -0,0 +1,51 @@
+--- libpri-1.4.13/Makefile.orig 2012-09-26 17:46:23.000000000 +0200
++++ libpri-1.4.13/Makefile 2012-10-10 08:04:44.000000000 +0200
+@@ -71,7 +71,7 @@
+ CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
+ INSTALL_PREFIX=$(DESTDIR)
+ INSTALL_BASE=/usr
+-libdir?=$(INSTALL_BASE)/lib
++LIBDIR=$(INSTALL_PREFIX)$(INSTALL_BASE)/lib
+ ifneq ($(findstring Darwin,$(OSARCH)),)
+ SOFLAGS=$(LDFLAGS) -dynamic -bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
+ ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6)
+@@ -145,27 +145,27 @@
+ fi
+
+ install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
+- mkdir -p $(INSTALL_PREFIX)$(libdir)
++ mkdir -p $(LIBDIR)
+ mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include
+ ifneq (${OSARCH},SunOS)
+ install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
+- install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(libdir)
+- #if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then /sbin/restorecon -v $(INSTALL_PREFIX)$(libdir)/$(DYNAMIC_LIBRARY); fi
+- ( cd $(INSTALL_PREFIX)$(libdir) ; ln -sf $(DYNAMIC_LIBRARY) libpri.so)
+- install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(libdir)
+- if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(INSTALL_PREFIX)$(libdir); fi
++ install -m 755 $(DYNAMIC_LIBRARY) $(LIBDIR)
++ if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then /sbin/restorecon -v $(LIBDIR)/$(DYNAMIC_LIBRARY); fi
++ ( cd $(LIBDIR) ; ln -sf libpri.so.$(SONAME) libpri.so)
++ install -m 644 $(STATIC_LIBRARY) $(LIBDIR)
++ if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(LIBDIR); fi
+ else
+ install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
+- install -f $(INSTALL_PREFIX)$(libdir) -m 755 $(DYNAMIC_LIBRARY)
+- ( cd $(INSTALL_PREFIX)$(libdir) ; ln -sf $(DYNAMIC_LIBRARY) libpri.so)
+- install -f $(INSTALL_PREFIX)$(libdir) -m 644 $(STATIC_LIBRARY)
++ install -f $(LIBDIR) -m 755 $(DYNAMIC_LIBRARY)
++ ( cd $(LIBDIR) ; ln -sf libpri.so.$(SONAME) libpri.so)
++ install -f $(LIBDIR) -m 644 $(STATIC_LIBRARY)
+ endif
+
+ uninstall:
+ @echo "Removing Libpri"
+- rm -f $(INSTALL_PREFIX)$(libdir)/$(STATIC_LIBRARY)
+- rm -f $(INSTALL_PREFIX)$(libdir)/libpri.so
+- rm -f $(INSTALL_PREFIX)$(libdir)/$(DYNAMIC_LIBRARY)
++ rm -f $(LIBDIR)/libpri.so.$(SONAME)
++ rm -f $(LIBDIR)/libpri.so
++ rm -f $(LIBDIR)/libpri.a
+ rm -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include/libpri.h
+
+ pritest: pritest.o $(STATIC_LIBRARY)
diff --git a/net-libs/libpri/files/libpri-1.4.13-no-static-lib.patch b/net-libs/libpri/files/libpri-1.4.13-no-static-lib.patch
new file mode 100644
index 000000000000..963e730c6fda
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.4.13-no-static-lib.patch
@@ -0,0 +1,35 @@
+diff -uNr libpri-1.4.13.ORIG/Makefile libpri-1.4.13/Makefile
+--- libpri-1.4.13.ORIG/Makefile 2012-10-27 13:22:57.902838938 +0100
++++ libpri-1.4.13/Makefile 2012-10-27 13:23:36.746837229 +0100
+@@ -120,7 +120,7 @@
+ SOFLAGS += -m32
+ endif
+
+-all: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY) $(UTILITIES)
++all: $(DYNAMIC_LIBRARY)
+
+ update:
+ @if [ -d .svn ]; then \
+@@ -139,7 +139,7 @@
+ echo "Not under version control"; \
+ fi
+
+-install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
++install: $(DYNAMIC_LIBRARY)
+ mkdir -p $(LIBDIR)
+ mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include
+ ifneq (${OSARCH},SunOS)
+@@ -147,13 +147,11 @@
+ install -m 755 $(DYNAMIC_LIBRARY) $(LIBDIR)
+ if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then /sbin/restorecon -v $(LIBDIR)/$(DYNAMIC_LIBRARY); fi
+ ( cd $(LIBDIR) ; ln -sf libpri.so.$(SONAME) libpri.so)
+- install -m 644 $(STATIC_LIBRARY) $(LIBDIR)
+ if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(LIBDIR); fi
+ else
+ install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
+ install -f $(LIBDIR) -m 755 $(DYNAMIC_LIBRARY)
+ ( cd $(LIBDIR) ; ln -sf libpri.so.$(SONAME) libpri.so)
+- install -f $(LIBDIR) -m 644 $(STATIC_LIBRARY)
+ endif
+
+ uninstall:
diff --git a/net-libs/libpri/files/libpri-1.4.13-respect-user-flags.patch b/net-libs/libpri/files/libpri-1.4.13-respect-user-flags.patch
new file mode 100644
index 000000000000..f10303d80590
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.4.13-respect-user-flags.patch
@@ -0,0 +1,41 @@
+--- libpri-1.4.13/Makefile.orig 2012-09-26 17:46:23.000000000 +0200
++++ libpri-1.4.13/Makefile 2012-10-10 08:11:24.000000000 +0200
+@@ -67,7 +67,7 @@
+ DYNAMIC_OBJS= \
+ $(STATIC_OBJS)
+ CFLAGS ?= -g
+-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
+ CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
+ INSTALL_PREFIX=$(DESTDIR)
+ INSTALL_BASE=/usr
+@@ -107,17 +107,12 @@
+ #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
+ #This works for even old (2.96) versions of gcc and provides a small boost either way.
+ #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
+-ifeq ($(PROC),sparc64)
+-PROC=ultrasparc
+-LIBPRI_OPT = -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+-else
+- ifneq ($(CODE_COVERAGE),)
++ifneq ($(CODE_COVERAGE),)
+ LIBPRI_OPT=
+ COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
+ COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
+- else
+- LIBPRI_OPT=-O2
+- endif
++else
++ LIBPRI_OPT=
+ endif
+
+ ifeq ($(CPUARCH),i686)
+@@ -196,7 +191,7 @@
+ ranlib $(STATIC_LIBRARY)
+
+ $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
+- $(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
++ $(CC) $(SOFLAGS) $(LDFLAGS) -o $@ $(DYNAMIC_OBJS)
+ $(LDCONFIG) $(LDCONFIG_FLAGS) .
+ ln -sf $(DYNAMIC_LIBRARY) libpri.so
+
diff --git a/net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch b/net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch
new file mode 100644
index 000000000000..1928e5d871fb
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch
@@ -0,0 +1,53 @@
+diff -uNr libpri-1.6.0.ORIG/Makefile libpri-1.6.0/Makefile
+--- libpri-1.6.0.ORIG/Makefile 2017-09-19 10:37:05.176546588 +0100
++++ libpri-1.6.0/Makefile 2017-09-19 10:37:41.029544605 +0100
+@@ -24,10 +24,6 @@
+ # Uncomment if you want libpri not send PROGRESS_INDICATOR w/ALERTING
+ #ALERTING=-DALERTING_NO_PROGRESS
+
+-CC=gcc
+-GREP=grep
+-AWK=awk
+-
+ OSARCH=$(shell uname -s)
+ PROC?=$(shell uname -m)
+
+@@ -68,7 +64,7 @@
+ $(STATIC_OBJS)
+ CFLAGS ?= -g
+ CFLAGS += $(CPPFLAGS)
+-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
+ CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
+ INSTALL_PREFIX=$(DESTDIR)
+ INSTALL_BASE=/usr
+@@ -108,17 +104,12 @@
+ #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
+ #This works for even old (2.96) versions of gcc and provides a small boost either way.
+ #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
+-ifeq ($(PROC),sparc64)
+-PROC=ultrasparc
+-LIBPRI_OPT = -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+-else
+- ifneq ($(CODE_COVERAGE),)
++ifneq ($(CODE_COVERAGE),)
+ LIBPRI_OPT=
+ COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
+ COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
+- else
+- LIBPRI_OPT=-O2
+- endif
++else
++ LIBPRI_OPT=
+ endif
+
+ ifeq ($(CPUARCH),i686)
+@@ -197,7 +188,7 @@
+ ranlib $(STATIC_LIBRARY)
+
+ $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
+- $(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
++ $(CC) $(SOFLAGS) $(LDFLAGS) -o $@ $(DYNAMIC_OBJS)
+ $(LDCONFIG) $(LDCONFIG_FLAGS) .
+ ln -sf $(DYNAMIC_LIBRARY) libpri.so
+
diff --git a/net-libs/libpri/libpri-1.4.12-r2.ebuild b/net-libs/libpri/libpri-1.4.12-r2.ebuild
new file mode 100644
index 000000000000..26dc7714dac2
--- /dev/null
+++ b/net-libs/libpri/libpri-1.4.12-r2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit base
+
+MY_P="${P/_/-}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~sparc x86"
+IUSE="static-libs"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.12-multilib.patch"
+ "${FILESDIR}/${PN}-1.4.12-respect-user-flags.patch"
+)
+
+src_install() {
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ use static-libs || find "${D}" -name '*.a' -delete
+ dodoc ChangeLog README TODO
+}
diff --git a/net-libs/libpri/libpri-1.4.13.ebuild b/net-libs/libpri/libpri-1.4.13.ebuild
new file mode 100644
index 000000000000..ddb515a76bca
--- /dev/null
+++ b/net-libs/libpri/libpri-1.4.13.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit base
+
+MY_P="${P/_/-}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.13-multilib.patch"
+ "${FILESDIR}/${PN}-1.4.13-respect-user-flags.patch"
+ "${FILESDIR}/${PN}-1.4.13-no-static-lib.patch"
+)
+
+src_install() {
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc ChangeLog README TODO
+}
diff --git a/net-libs/libpri/libpri-1.4.14.ebuild b/net-libs/libpri/libpri-1.4.14.ebuild
new file mode 100644
index 000000000000..345ce9994e92
--- /dev/null
+++ b/net-libs/libpri/libpri-1.4.14.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit base
+
+MY_P="${P/_/-}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.13-multilib.patch"
+ "${FILESDIR}/${PN}-1.4.13-respect-user-flags.patch"
+ "${FILESDIR}/${PN}-1.4.13-no-static-lib.patch"
+)
+
+src_install() {
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc ChangeLog README TODO
+}
diff --git a/net-libs/libpri/libpri-1.4.15.ebuild b/net-libs/libpri/libpri-1.4.15.ebuild
new file mode 100644
index 000000000000..ce6000921355
--- /dev/null
+++ b/net-libs/libpri/libpri-1.4.15.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+MY_P="${P/_/-}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.13-multilib.patch"
+ "${FILESDIR}/${PN}-1.4.13-respect-user-flags.patch"
+ "${FILESDIR}/${PN}-1.4.13-no-static-lib.patch"
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+}
+
+src_install() {
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc ChangeLog README TODO
+}
diff --git a/net-libs/libpri/libpri-1.5.0.ebuild b/net-libs/libpri/libpri-1.5.0.ebuild
new file mode 100644
index 000000000000..4cc9c20b37e5
--- /dev/null
+++ b/net-libs/libpri/libpri-1.5.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P/_/-}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.13-multilib.patch"
+ "${FILESDIR}/${PN}-1.4.13-respect-user-flags.patch"
+ "${FILESDIR}/${PN}-1.4.13-no-static-lib.patch"
+)
+
+src_install() {
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc ChangeLog README TODO
+}
diff --git a/net-libs/libpri/libpri-1.6.0.ebuild b/net-libs/libpri/libpri-1.6.0.ebuild
new file mode 100644
index 000000000000..0754bc49ec70
--- /dev/null
+++ b/net-libs/libpri/libpri-1.6.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+MY_P="${P/_/-}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.13-multilib.patch"
+ "${FILESDIR}/${PN}-1.6.0-respect-user-flags.patch"
+ "${FILESDIR}/${PN}-1.4.13-no-static-lib.patch"
+)
+
+src_compile() {
+ tc-export CC
+ default
+}
+src_install() {
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc ChangeLog README TODO
+}
diff --git a/net-libs/libpri/metadata.xml b/net-libs/libpri/metadata.xml
new file mode 100644
index 000000000000..5087760546f6
--- /dev/null
+++ b/net-libs/libpri/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 type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libprotoident/Manifest b/net-libs/libprotoident/Manifest
new file mode 100644
index 000000000000..3dfcaac026aa
--- /dev/null
+++ b/net-libs/libprotoident/Manifest
@@ -0,0 +1,8 @@
+DIST libprotoident-2.0.11.tar.gz 561267 SHA256 796d59ec0a48ee88d386d4f0a393a80df01184a92bbbb8c2aa2e2fc10741840a SHA512 9f3dbc44dd41ed66c18d187b543d9b0da7e778a127b1191cf851a3c6d79f14d07a40fccf79377a3e17ee7c707c17b1049f4afb9f4d041b66c0b3170fa721fc8b WHIRLPOOL 71f48966b8af7a1ed36eaa6028d7e9224338b6fb35f79b0b246bbf97dd0ac267dd5c66116c89c54d672080fc420ff78a9c62998a4561c38e01a2ff3abf929a95
+DIST libprotoident-2.0.12.tar.gz 571466 SHA256 c09aba4882837c7f9ebf4ad153b637a9a7cbd5a2b4b398e10ddb63e74f270fac SHA512 b8ba13ce9286a026062f47ffe3bf9407b408f64fbf0521aeebaf0e39e6ddf70cfbc6574f8e9c0f35fc2c2e5f9c4e71e200536665988f88c65bbdbeb9b7baed16 WHIRLPOOL ef451c2b935ca50c43bf33dbda171d59ebb7c5a962ea9f2d2108ed63b3ea880f6b0bd3bf62c2ade0c69ec08977dff00c57cb3d619ce5f147ceec94f90b307e19
+EBUILD libprotoident-2.0.11.ebuild 751 SHA256 1ab7d149199095c3eefda02b45642cf29fac50e1e30dfea1f1bcb4cd78acd3fe SHA512 a4ccae31ccb7d796c267aa59b5d00a7e9c7cdf5c4fd33360fd0b7985d6f52845a3fba029738e25fcb63a219c984494934061bb6596893477a075daa1cffb1345 WHIRLPOOL 3f2cb527ba5e873f38fd629edd98a92067517d1cf865946430ff4172409a7dc851b214c78b70a95f0ad93135e450781780eb6ea0b769b3720048e9f3908f1de6
+EBUILD libprotoident-2.0.12.ebuild 751 SHA256 1ab7d149199095c3eefda02b45642cf29fac50e1e30dfea1f1bcb4cd78acd3fe SHA512 a4ccae31ccb7d796c267aa59b5d00a7e9c7cdf5c4fd33360fd0b7985d6f52845a3fba029738e25fcb63a219c984494934061bb6596893477a075daa1cffb1345 WHIRLPOOL 3f2cb527ba5e873f38fd629edd98a92067517d1cf865946430ff4172409a7dc851b214c78b70a95f0ad93135e450781780eb6ea0b769b3720048e9f3908f1de6
+EBUILD libprotoident-9999.ebuild 772 SHA256 b118b23a94390e77b1ac19105335e73cec03c448d1385e1b31337686749021d7 SHA512 06e3d718098e8fdfa17a7715920dfef8c5099f23e42d1d459d7690cd47a31b0a73f32bc7f0dd3ec40f3610eafce7057f389e758272788330727dc7ab5829d49a WHIRLPOOL 38f1d4f3c991049446e18ae172b5622c31b80c2d267dc3f409b652fd4b05e1edd048deb73b78d03b137325c2b814ff1dda0247876337a05f73f138d7d05ca755
+MISC ChangeLog 2890 SHA256 2fda92b3d2b48c7de02c12e34fb55df642189c484b5fd38fc001ac1917590c63 SHA512 09e498d1743a709818df37f67759dfa101a56f0b1827c59576bc87a749c01e1d19237287344e18d4709b2ee05a011659540b4d5e227b3e3fbdb90a57c8855635 WHIRLPOOL c74852cbfd074d7ed4e91b38cb52198f19a48955e2bfb3988b23df14454054c029f0f313b0d3cbded396e2bf9c678454ef7aededb740fa048646cfa5543fd214
+MISC ChangeLog-2015 788 SHA256 b18f55c8810f670638d543b82530fbe548be3a18a5501051ae19e8fdadd9d43f SHA512 1c4aa6df4e0cd89ccd386944f19edb1ea82304a8a14dca9f6e56f90b198d6fb456972b75e7ccfa7e5f857b9e32cc263f03a8e88f42e38dc0dd9d7c0e5f8c7c40 WHIRLPOOL 978c869b03adfb05bc2f828d9b95660e6df7e431eae3f4356f846458adddde133a762db867c00d6c21c24fe1ad147100a100779c27e76391a8a59165fcea48e7
+MISC metadata.xml 360 SHA256 f7ee636d6f19da8c3559e2582b425e86a2fa27a815b41973f1256d190b7cca0b SHA512 3de118bb358e064950487fffd58a49bb2fd5fc6597e6f3d0bf96a93d955e4879727fae386bdaf1a4a89388e471217903ce92b520edf257e1d1e66a6099e04b37 WHIRLPOOL 368cb349a32d7a29eca91b35ea165e1b0d298dabaaa122918cedbaa7d56c9258d5f858bf67a5582a493d82690ac53b75c37225a09d53057541e3ea20162d510f
diff --git a/net-libs/libprotoident/libprotoident-2.0.11.ebuild b/net-libs/libprotoident/libprotoident-2.0.11.ebuild
new file mode 100644
index 000000000000..0eb230f26ce9
--- /dev/null
+++ b/net-libs/libprotoident/libprotoident-2.0.11.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A library that performs application layer protocol identification for flows"
+HOMEPAGE="http://research.wand.net.nz/software/libprotoident.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs tools"
+
+DEPEND="
+ >=net-libs/libtrace-4.0.1
+ >=net-libs/libflowmanager-3.0.0
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/-Werror/d' \
+ lib/Makefile{.am,.in} || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with tools)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/libprotoident/libprotoident-2.0.12.ebuild b/net-libs/libprotoident/libprotoident-2.0.12.ebuild
new file mode 100644
index 000000000000..0eb230f26ce9
--- /dev/null
+++ b/net-libs/libprotoident/libprotoident-2.0.12.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A library that performs application layer protocol identification for flows"
+HOMEPAGE="http://research.wand.net.nz/software/libprotoident.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs tools"
+
+DEPEND="
+ >=net-libs/libtrace-4.0.1
+ >=net-libs/libflowmanager-3.0.0
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/-Werror/d' \
+ lib/Makefile{.am,.in} || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with tools)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/libprotoident/libprotoident-9999.ebuild b/net-libs/libprotoident/libprotoident-9999.ebuild
new file mode 100644
index 000000000000..522c59fb2667
--- /dev/null
+++ b/net-libs/libprotoident/libprotoident-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils git-r3
+
+DESCRIPTION="A library that performs application layer protocol identification for flows"
+HOMEPAGE="http://research.wand.net.nz/software/libprotoident.php"
+EGIT_REPO_URI="https://github.com/wanduow/libprotoident"
+EGIT_BRANCH="develop"
+
+LICENSE="LGPL-3+"
+SLOT="0/2"
+KEYWORDS=""
+IUSE="static-libs +tools"
+
+DEPEND="
+ >=net-libs/libtrace-4.0.1
+ >=net-libs/libflowmanager-3.0.0
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_prepare() {
+ default
+
+ sed -i -e '/-Werror/d' lib/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with tools)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/libprotoident/metadata.xml b/net-libs/libprotoident/metadata.xml
new file mode 100644
index 000000000000..c3daa78f76dc
--- /dev/null
+++ b/net-libs/libprotoident/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <use>
+ <flag name="tools">Build and install command-line tools</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libproxy/Manifest b/net-libs/libproxy/Manifest
new file mode 100644
index 000000000000..c13e33457818
--- /dev/null
+++ b/net-libs/libproxy/Manifest
@@ -0,0 +1,11 @@
+AUX libproxy-0.4.10-disable-pac-test.patch 1017 SHA256 5aaf8c3795b8377e4e71137db2e948de98680288a1fdf544d31d9086c980d9e0 SHA512 a0fa6520c60489675176ca7d5d750d0f54e020592743a3437c184939314b71be68803a7f1cb8cb584fb7ad6ee884c85bfb7905d4bb3e0536d535e990981e9ba9 WHIRLPOOL 09889493958b9bbc0c3cd160d84512955cb63f925edffc7caf827ffe2d5f6c1ff7e3a5de32e842b642e11fbd813194656bba1d597140bee0d759836e0021ec80
+AUX libproxy-0.4.11-avoid-nm-build-dep.patch 2062 SHA256 568cdc25ab6193d7e352682f28a1b9a7db14fd10216dcd644df8fa54edba21dd SHA512 eb4b7e0b79ae89e611b3f3472cd17d2e05732e806c8fb85b7fb4afbb67e1653bab0706b4a29efd5079283372f975b2a1e1f987ffd2a099ce28ba7fe5362214b5 WHIRLPOOL ccd304cfd757e2717a17012df45b884e6e86017f9688c5c8bad8cb31ba9b55b9194bbb76cbe81c215ed85c8b614a247c602ba2217a1d7b3b7681fc366fccb3fb
+AUX libproxy-0.4.12-macosx.patch 3387 SHA256 ce23c9c29599e527e283bdace6c4a57fc406e7a3858bc9716cc63521d7c4c3a8 SHA512 bb815f33745fe1304139f5da2502d157f049ce896ebc2dd5a62c012877c9a3e6bf850a47438a919a910f27ef49c20f9666a3da5a7386641d3250e58f481c2753 WHIRLPOOL be48bd48e0a11637693b6ac09428cc252288ee2e138e50ca59afea12e411e343a555c8225bb0e6a0cc6add6efe7b01a4fa05a3cc0991a7278f9cf0448634ab8b
+AUX libproxy-0.4.12-mozjs.pc.patch 781 SHA256 5d7d8ed47112f04f080647e76b70c18ae474b596fe793095d60d88c4b13e6ebd SHA512 30ad9224a5676b8ac8f50b56cdb61f2708225994bc26910eb07f58345423102116058a19273b16b462dec846b065925615251fe5fb7b2394f232dd66a013d230 WHIRLPOOL ec1287f31949df0bb7fd9d07ac4eab65bb3b098d3bc0bcaf2a62cd9205f76c39a1502b149c23695977a9e2c38e0f776bd2e21418db79abf4eba2b2f492bb5293
+AUX libproxy-0.4.13-cmake-37.patch 954 SHA256 89eb36d3aea98dcb59c76ac49002d4cf8383f30ba0c8dde26b1a7405694b94ac SHA512 e1aeacb40f06e9137d1f82444961e1216479e7d44d18c9d4c16b09d0e0b0c92c2f77e4c37fe33a020695d5dc23b1e4b2e4617d25e7d878bb816c60f3bc78ed45 WHIRLPOOL 10432d423f67b34befd9fa6dd4b98c15368c4a79343e88f85b8afcceacc930df8d01c765bdde85e4698bbb20806eca61c87387cf4114536d06408eed89b0572a
+AUX proxy.1 681 SHA256 db2d2a35de0887c4c2126f3867f70d2600e2503b16c3f00d86995ddbba29cca0 SHA512 57074dde3303d8775cb842fee5a6dde22f1c14d9e30af16f018e81fa87585c6e5b12edc1453cf8135624b4ac49568aebfdeaf634782307d6776c4cf2c5f8f96f WHIRLPOOL bda9f0f8a35b3dfd94060d6c25f7ce24ee8f3d40dfca59250df47caa69dae191cc770cb4b2861a43eb6c30e8d12da0d711414f358a47f609a0e45df497ea5c04
+DIST libproxy-0.4.13.tar.gz 89296 SHA256 d610bc0ef81a18ba418d759c5f4f87bf7102229a9153fb397d7d490987330ffd SHA512 babbe5e9326cb2bfdf4504662533b314f72c3475687f8b57c235614698cb18e0ed31752b834cb1d33cc94ecd3af6589684b2846e73830f0be3557c465a1f1c42 WHIRLPOOL 1b159efd7e03505c8fd7098a553ba22099cf90002730c3a6c929dbfecb95af3c175aebb93502e4286c66604f75a01d4205cd311144a97f51d425ef69f4345370
+EBUILD libproxy-0.4.13-r2.ebuild 3096 SHA256 b315407360e00482836d94363e52b794dd6ce8edbd1bcdcd0b5c63692a9303cf SHA512 8f8d8a9f9d4765f0221f36545ec7a92731b68d282e8423fe83de571685ecc9581eb78f372aaf740a8a0101da7f5d4350a59c54204b40bb6bffdcd67a0ef37b15 WHIRLPOOL f4aea28725772b633c53aa08b8b38837df9c195cfa1eb76bcdbeaa0c7e16ff3594aa6f0b3aa29160313cf991e9f4c92e84634e66ef61c56d9919695f9c61db3b
+MISC ChangeLog 6710 SHA256 10d5fd7909168cd3470c54e07a67174b37015f3876c1b66b9c80ff01b37274ce SHA512 4b8892e50df8cc9ee9f2ccecfd3e63df2458f6fcc5155bf323d3a2849953435f5a888f4528ad02f4a9fb7ac8e54e61ea446b926265660485c153570b7d0b4b23 WHIRLPOOL d54624f86070decee5a675c1981aae0219051a87b0dd7d93df07ac2c5554ea5dd7ae8e5f26d2f76438fd826755f97a47eee2ffcaf1fdbe7f4e8582f7f7bb76dc
+MISC ChangeLog-2015 19577 SHA256 c55e243a9d8fa1f3fbf4f4a5236e77ad95ad35d704be2fe8c08ba0f74c834f89 SHA512 8cbd10a122f8d7c645d1319c61c66fbc39890656fa5b529f1414ec4df5dc05a768c939c3ce4115b80fb05b9ab085f4e27eb0f15c4b369d26b8301f5e7f6ae865 WHIRLPOOL 32732042a5f2e9007bff3e25488d7c2c96c08da5ba9662597a477e28af5c87aac4e865b9cc369b85f8e1e4a295e876824609122b6411af8c767f35d437de5c43
+MISC metadata.xml 717 SHA256 dab7d5efda691d73d589233315510aafcfa094e9a6c201a5140bd371cd4f5f39 SHA512 a3817382f31a5fca3a1a7b6fe5e8bdc22eb05f61fd458bd86e4de64bef49d938fd68626862c4f9fffbe5c278df8e9ad6e87314ddf9fcb40e00f0a7a036f60130 WHIRLPOOL 85ba54a38fd494b5267d96930475d4547d4178a98436d284fe9f1202154f6a0d6f2919dd2ffc1b258ba631f75f8b644632eb9bdadfa8364c6b10a9ca89c31cd0
diff --git a/net-libs/libproxy/files/libproxy-0.4.10-disable-pac-test.patch b/net-libs/libproxy/files/libproxy-0.4.10-disable-pac-test.patch
new file mode 100644
index 000000000000..91658574134e
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.4.10-disable-pac-test.patch
@@ -0,0 +1,29 @@
+From 5a1a8d2b920006e54d9de971999b443073f50843 Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Tue, 16 Oct 2012 03:30:50 -0400
+Subject: [PATCH] Disable PAC test
+
+get-pac-test freezes when run from the ebuild, but succeeds when
+building manually. Using Xemake/virtualx.eclass doesn't seem to help.
+---
+ libproxy/test/CMakeLists.txt | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/libproxy/test/CMakeLists.txt b/libproxy/test/CMakeLists.txt
+index 8894425..69543a4 100644
+--- a/libproxy/test/CMakeLists.txt
++++ b/libproxy/test/CMakeLists.txt
+@@ -17,10 +17,3 @@ if(WIN32)
+ target_link_libraries(url-encode ws2_32)
+ endif()
+ add_test(NAME url-encode COMMAND ${CMAKE_CURRENT_BINARY_DIR}/url-encode)
+-
+-# Get PAC
+-if (NOT WIN32)
+-add_executable(get-pac-test ${CMAKE_CURRENT_SOURCE_DIR}/get-pac-test.cpp ${PROJECT_SOURCE_DIR}/url.cpp)
+-target_link_libraries(get-pac-test pthread)
+-add_test(NAME get-pac-test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/get-pac-test)
+-endif()
+--
+1.7.12.3
+
diff --git a/net-libs/libproxy/files/libproxy-0.4.11-avoid-nm-build-dep.patch b/net-libs/libproxy/files/libproxy-0.4.11-avoid-nm-build-dep.patch
new file mode 100644
index 000000000000..59e368b696eb
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.4.11-avoid-nm-build-dep.patch
@@ -0,0 +1,60 @@
+From 518214ee85e10c5bc99d3b115ae7ac9cc3fc14fc Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Mon, 29 Apr 2013 23:02:25 -0400
+Subject: [PATCH] Avoid build-time dependency on NetworkManager
+
+Needed to prevent a dependency loop:
+nm -> libsoup -> glib-networking -> libproxy -> nm
+
+https://bugs.gentoo.org/467696
+---
+ libproxy/cmake/modules/network_networkmanager.cmk | 4 ++--
+ libproxy/modules/network_networkmanager.cpp | 21 ++++++++++++++++++++-
+ 2 files changed, 22 insertions(+), 3 deletions(-)
+
+diff --git a/libproxy/cmake/modules/network_networkmanager.cmk b/libproxy/cmake/modules/network_networkmanager.cmk
+index d9f9588..2586bbd 100644
+--- a/libproxy/cmake/modules/network_networkmanager.cmk
++++ b/libproxy/cmake/modules/network_networkmanager.cmk
+@@ -1,3 +1,3 @@
+ if (NOT WIN32 AND NOT APPLE)
+- px_check_modules(NM NetworkManager dbus-1)
+-endif()
+\ No newline at end of file
++ px_check_modules(NM dbus-1)
++endif()
+diff --git a/libproxy/modules/network_networkmanager.cpp b/libproxy/modules/network_networkmanager.cpp
+index 564c275..a03425b 100644
+--- a/libproxy/modules/network_networkmanager.cpp
++++ b/libproxy/modules/network_networkmanager.cpp
+@@ -23,7 +23,26 @@
+ using namespace libproxy;
+
+ #include <dbus/dbus.h>
+-#include <NetworkManager/NetworkManager.h>
++
++
++/*
++ * copy-pasted from NetworkManager-0.9.6.4's NetworkManager.h to prevent
++ * a circular dependency; https://bugs.gentoo.org/467696
++ */
++#define NM_DBUS_PATH "/org/freedesktop/NetworkManager"
++#define NM_DBUS_INTERFACE "org.freedesktop.NetworkManager"
++typedef enum {
++ NM_STATE_UNKNOWN = 0,
++ NM_STATE_ASLEEP = 10,
++ NM_STATE_DISCONNECTED = 20,
++ NM_STATE_DISCONNECTING = 30,
++ NM_STATE_CONNECTING = 40,
++ NM_STATE_CONNECTED_LOCAL = 50,
++ NM_STATE_CONNECTED_SITE = 60,
++ NM_STATE_CONNECTED_GLOBAL = 70
++} NMState;
++#define NM_STATE_CONNECTED NM_STATE_CONNECTED_GLOBAL
++
+
+ class networkmanager_network_extension : public network_extension {
+ public:
+--
+1.8.2.1
+
diff --git a/net-libs/libproxy/files/libproxy-0.4.12-macosx.patch b/net-libs/libproxy/files/libproxy-0.4.12-macosx.patch
new file mode 100644
index 000000000000..052e6b0a7fe8
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.4.12-macosx.patch
@@ -0,0 +1,70 @@
+https://trac.macports.org/browser/trunk/dports/net/libproxy/files/patch-libproxy-cmake.diff
+
+diff -ur libproxy/cmake.orig/libproxy.cmk libproxy/cmake/libproxy.cmk
+--- a/libproxy/cmake/libproxy.cmk 2012-10-02 07:20:40.000000000 -0700
++++ b/libproxy/cmake/libproxy.cmk 2012-10-19 13:47:50.000000000 -0700
+@@ -18,7 +18,7 @@
+ set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/proxy.cpp
+ PROPERTY COMPILE_DEFINITIONS MODULEDIR="${MODULEDIR}";BUILTIN_MODULES=${BUILTIN_MODULES})
+ # When changing the SOVERSION here remember to also bump the 'favorite proxy .so' in python bindings.
+-set_target_properties(libproxy PROPERTIES PREFIX "" VERSION 1.0.0 SOVERSION 1)
++set_target_properties(libproxy PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" PREFIX "" VERSION 1.0.0 SOVERSION 1)
+ set_target_properties(libproxy PROPERTIES INTERFACE_LINK_LIBRARIES "")
+ set_target_properties(libproxy PROPERTIES LINK_INTERFACE_LIBRARIES "")
+ install(TARGETS libproxy DESTINATION ${LIB_INSTALL_DIR})
+diff -ur libproxy/cmake.orig/modules/config_envvar.cmk libproxy/cmake/modules/config_envvar.cmk
+--- libproxy/cmake.orig/modules/config_envvar.cmk 2010-06-14 10:40:47.000000000 -0700
++++ b/libproxy/cmake/modules/config_envvar.cmk 2012-10-19 13:45:42.000000000 -0700
+@@ -1,3 +1,3 @@
+-if (NOT WIN32 AND NOT APPLE)
++if (NOT WIN32 AND NOT (APPLE AND MP_MACOSX))
+ set(ENVVAR_FOUND 1)
+-endif()
+\ No newline at end of file
++endif()
+diff -ur libproxy/cmake.orig/modules/config_gnome.cmk libproxy/cmake/modules/config_gnome.cmk
+--- libproxy/cmake.orig/modules/config_gnome.cmk 2012-10-02 07:20:40.000000000 -0700
++++ b/libproxy/cmake/modules/config_gnome.cmk 2012-10-19 13:45:42.000000000 -0700
+@@ -1,4 +1,4 @@
+-if (NOT WIN32 AND NOT APPLE)
++if (NOT WIN32 AND NOT (APPLE AND MP_MACOSX))
+ option(WITH_GNOME2 "Target a GNOME 2 system (gconf)" OFF)
+ option(WITH_GNOME3 "Target a GNOME 3 system (gsettings)" ON)
+ if(WITH_GNOME3)
+diff -ur libproxy/cmake.orig/modules/config_macosx.cmk libproxy/cmake/modules/config_macosx.cmk
+--- libproxy/cmake.orig/modules/config_macosx.cmk 2010-06-14 10:40:47.000000000 -0700
++++ b/libproxy/cmake/modules/config_macosx.cmk 2012-10-19 13:45:42.000000000 -0700
+@@ -1,4 +1,4 @@
+-if(APPLE)
++if(APPLE AND MP_MACOSX)
+ find_library(SC_LIBRARIES SystemConfiguration)
+ find_library(CF_LIBRARIES CoreFoundation)
+ if(SC_LIBRARIES)
+@@ -7,4 +7,4 @@
+ if(CF_LIBRARIES)
+ set(CF_FOUND 1)
+ endif()
+-endif()
+\ No newline at end of file
++endif()
+diff -ur libproxy/cmake.orig/modules/pacrunner_webkit.cmk libproxy/cmake/modules/pacrunner_webkit.cmk
+--- libproxy/cmake.orig/modules/pacrunner_webkit.cmk 2012-10-02 07:20:40.000000000 -0700
++++ b/libproxy/cmake/modules/pacrunner_webkit.cmk 2012-10-19 13:45:42.000000000 -0700
+@@ -6,7 +6,7 @@
+ link_directories(WEBKIT_LIBRARIES)
+ include_directories("${WEBKIT_INCLUDE_DIR}")
+ endif()
+-elseif(APPLE)
++elseif(APPLE AND MP_MACOSX)
+ find_library(WEBKIT_LIBRARIES JavaScriptCore)
+ if(WEBKIT_LIBRARIES)
+ set(WEBKIT_FOUND 1)
+diff -ur libproxy/cmake.orig/pkgconfig.cmk libproxy/cmake/pkgconfig.cmk
+--- libproxy/cmake.orig/pkgconfig.cmk 2012-10-02 07:20:40.000000000 -0700
++++ b/libproxy/cmake/pkgconfig.cmk 2012-10-19 13:45:42.000000000 -0700
+@@ -1,4 +1,4 @@
+-if(NOT WIN32 AND NOT APPLE)
++if(NOT WIN32 AND NOT (APPLE AND MP_MACOSX))
+ find_package(PkgConfig)
+
+ # Define our magical px_check_modules function
diff --git a/net-libs/libproxy/files/libproxy-0.4.12-mozjs.pc.patch b/net-libs/libproxy/files/libproxy-0.4.12-mozjs.pc.patch
new file mode 100644
index 000000000000..bf69fc31d939
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.4.12-mozjs.pc.patch
@@ -0,0 +1,23 @@
+--- a/libproxy/cmake/modules/pacrunner_mozjs.cmk 2011-06-20 04:31:41.000000000 -0600
++++ b/libproxy/cmake/modules/pacrunner_mozjs.cmk 2013-03-24 19:20:17.910765954 -0600
+@@ -9,12 +9,18 @@
+ elseif(NOT APPLE)
+ option(WITH_MOZJS "Search for MOZJS package" ON)
+ if (WITH_MOZJS)
+- pkg_search_module(MOZJS mozjs185)
++ pkg_search_module(MOZJS mozjs187)
+ if(MOZJS_FOUND)
+ include_directories(${MOZJS_INCLUDE_DIRS})
+ link_directories(${MOZJS_LIBRARY_DIRS})
+ else()
+- set(MOZJS_FOUND 0)
++ pkg_search_module(MOZJS mozjs185)
++ if(MOZJS_FOUND)
++ include_directories(${MOZJS_INCLUDE_DIRS})
++ link_directories(${MOZJS_LIBRARY_DIRS})
++ else()
++ set(MOZJS_FOUND 0)
++ endif()
+ endif()
+ else()
+ set(MOZJS_FOUND 0)
diff --git a/net-libs/libproxy/files/libproxy-0.4.13-cmake-37.patch b/net-libs/libproxy/files/libproxy-0.4.13-cmake-37.patch
new file mode 100644
index 000000000000..d96879a7cba6
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.4.13-cmake-37.patch
@@ -0,0 +1,27 @@
+From 72bda7188408bd3c2491ea664da294cc483220bc Mon Sep 17 00:00:00 2001
+From: Andrey Rakhmatullin <wrar@wrar.name>
+Date: Sun, 20 Nov 2016 18:40:49 +0500
+Subject: [PATCH] Set CMP0054 CMake policy to NEW.
+
+CMake 3.7 exports a "t" variable for all projects and because of that
+the elseif statement in cmake/CMakeCSharpInformation.cmake:311 works
+incorrectly if CMP0054 is not set to NEW (as "t" is expanded to the
+variable value).
+---
+ CMakeLists.txt | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5313787..451e7a6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.6)
+ if(POLICY CMP0011)
+ cmake_policy(SET CMP0011 NEW)
+ endif(POLICY CMP0011)
++if(POLICY CMP0054)
++ cmake_policy(SET CMP0054 NEW)
++endif(POLICY CMP0054)
+
+ # Make sure we look in our cmake folder for additional definitions
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake )
diff --git a/net-libs/libproxy/files/proxy.1 b/net-libs/libproxy/files/proxy.1
new file mode 100644
index 000000000000..7111db864943
--- /dev/null
+++ b/net-libs/libproxy/files/proxy.1
@@ -0,0 +1,23 @@
+.TH PROXY "1" "April 2016" "libproxy" "User Commands"
+.SH NAME
+proxy \- Display the proxy server that should be used to reach a given a network resource
+.SH SYNOPSIS
+proxy
+.SH DESCRIPTION
+Display the proxy server that should be used to reach a given a network resource.
+.PP
+libproxy is a library that provides automatic proxy configuration management
+using different backends.
+.SH EXAMPLE
+.B echo http://www.example.com/ | proxy
+ http://webcache:3128 direct://
+.SH AUTHOR
+This manual page was written by
+.MT bigon@debian.org
+Laurent Bigonville
+.ME ,
+for the Debian GNU/Linux system (but may be used by others).
+.SH SEE ALSO
+.UR https://libproxy.github.io/libproxy/
+libproxy
+.UE .
diff --git a/net-libs/libproxy/libproxy-0.4.13-r2.ebuild b/net-libs/libproxy/libproxy-0.4.13-r2.ebuild
new file mode 100644
index 000000000000..d212bc6f1b13
--- /dev/null
+++ b/net-libs/libproxy/libproxy-0.4.13-r2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-multilib eutils flag-o-matic mono-env python-r1
+
+DESCRIPTION="Library for automatic proxy configuration management"
+HOMEPAGE="https://github.com/libproxy/libproxy"
+SRC_URI="https://github.com/libproxy/libproxy/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+
+IUSE="gnome kde mono networkmanager perl python spidermonkey test webkit"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# NOTE: mozjs/spidermonkey might still cause problems like #373397 ?
+CDEPEND="
+ gnome? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )
+ mono? ( dev-lang/mono )
+ networkmanager? ( sys-apps/dbus:0[${MULTILIB_USEDEP}] )
+ perl? ( dev-lang/perl:= )
+ python? ( ${PYTHON_DEPS} )
+ spidermonkey? ( >=dev-lang/spidermonkey-1.8.5:0= )
+ webkit? ( net-libs/webkit-gtk:4 )
+"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig:0[${MULTILIB_USEDEP}]
+"
+RDEPEND="${CDEPEND}
+ kde? ( || (
+ kde-frameworks/kconfig:5
+ kde-apps/kreadconfig:4
+ ) )
+"
+# avoid dependency loop, bug #467696
+PDEPEND="networkmanager? ( net-misc/networkmanager )"
+
+PATCHES=(
+ # get-pac-test freezes when run by the ebuild, succeeds when building
+ # manually; virtualx.eclass doesn't help :(
+ "${FILESDIR}/${PN}-0.4.10-disable-pac-test.patch"
+
+ # prevent dependency loop with networkmanager, libsoup, glib-networking; bug #467696
+ # https://github.com/libproxy/libproxy/issues/28
+ "${FILESDIR}/${PN}-0.4.11-avoid-nm-build-dep.patch"
+
+ # Gentoo's spidermonkey doesn't set Version: in mozjs18[57].pc
+ "${FILESDIR}/${PN}-0.4.12-mozjs.pc.patch"
+
+ # https://github.com/libproxy/libproxy/issues/27
+ "${FILESDIR}/${PN}-0.4.12-macosx.patch"
+
+ # bug 600254
+ "${FILESDIR}/${P}-cmake-37.patch"
+)
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ '-DPERL_VENDORINSTALL=ON'
+ # WITH_VALA just copies the .vapi file over and needs no deps,
+ # hence always enable it unconditionally
+ '-DWITH_VALA=ON'
+ "-DCMAKE_C_FLAGS=${CFLAGS}"
+ "-DCMAKE_CXX_FLAGS=${CXXFLAGS}"
+ "-DGMCS_EXECUTABLE='${EPREFIX}/usr/bin/mcs'"
+ "-DWITH_GNOME3=$(usex gnome)"
+ "-DWITH_KDE=$(usex kde)"
+ "-DWITH_DOTNET=$(multilib_is_native_abi && usex mono || echo 'OFF')"
+ "-DWITH_NM=$(usex networkmanager)"
+ "-DWITH_PERL=$(multilib_is_native_abi && usex perl || echo 'OFF')"
+ "-DWITH_PYTHON=$(multilib_is_native_abi && usex python || echo 'OFF')"
+ "-DWITH_MOZJS=$(multilib_is_native_abi && usex spidermonkey || echo 'OFF')"
+ "-DWITH_WEBKIT=OFF"
+ "-DWITH_WEBKIT3=$(multilib_is_native_abi && usex webkit || echo 'OFF')"
+ "-DBUILD_TESTING=$(usex test)"
+ )
+ cmake-utils_src_configure
+}
+
+src_configure() {
+ [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
+
+ use python && python_setup
+ multilib-minimal_src_configure
+}
+
+multilib_src_install_all() {
+ doman "${FILESDIR}/proxy.1"
+ use python && python_foreach_impl python_domodule 'bindings/python/libproxy.py'
+}
diff --git a/net-libs/libproxy/metadata.xml b/net-libs/libproxy/metadata.xml
new file mode 100644
index 000000000000..888eb2133a60
--- /dev/null
+++ b/net-libs/libproxy/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 type="project">
+ <email>freedesktop-bugs@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="gnome">Enable support for reading proxy settings from
+ GNOME</flag>
+ <flag name="kde">Enable support for reading proxy settings from KDE</flag>
+ <flag name="spidermonkey">Use libmozjs from
+ <pkg>dev-lang/spidermonkey</pkg> for PAC parsing</flag>
+ <flag name="webkit">Use libjavascriptcoregtk from
+ <pkg>net-libs/webkit-gtk</pkg> for PAC parsing</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">libproxy/libproxy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libqmi/Manifest b/net-libs/libqmi/Manifest
new file mode 100644
index 000000000000..2befe3513905
--- /dev/null
+++ b/net-libs/libqmi/Manifest
@@ -0,0 +1,14 @@
+DIST libqmi-1.12.6.tar.xz 710564 SHA256 0857bffece4e8ddfa7f721dd9ca63b4c78de345ac9ae2faebf04062cacba3780 SHA512 7001f61dbe2be431867a504dbfc634ed5e7c3f3b1740aef7833fb8163d1a6bdffb57793f09062f49c0b8eeff5a011a2a057a938d618f3547ff5942021b3e8a9d WHIRLPOOL 23e4b2d6349f7b6d6c88716787cc06fba5f5eaa426fb6af5d09662fe7e59251a63dd5bace691dcb1e5f76a1457caa382ab7a5e7bf7f123d276965aee79878200
+DIST libqmi-1.14.0.tar.xz 759472 SHA256 6618fb92ffe6d017d7fd18082b5c13da954c3c9060f7cc4f8807ba7b2bea349d SHA512 d5b4affe479e4704a9d94232bbef096533322413de8ea3c27d3ab7d6fd077fbbae779b49633fa22833ab1ce25f76cf341bfb84ec81d75fdc477f2a355ac298bd WHIRLPOOL d3054a0bcafd38e7a488d7b4df93b38a84844f30e5157688c638816d491800471fc7e48f2e4e54e053fc14d7f16dd65eb899a74db125ac1399cc964b66caad56
+DIST libqmi-1.16.0.tar.xz 734280 SHA256 7ab6bb47fd23bf4d3fa17424e40ea5552d08b19e5ee4f125f21f316c8086ba2a SHA512 e8ac10b72a15ab3d102ab5dd45ed2960f552d37c291b7ef2818f41d5a46121a5c25e60bb549f96d4982468607a11f33866632c13b0454c5cbe0d61aa95992996 WHIRLPOOL 5168a137fd205c357ff61aa733907d1e8e71832937c0d01ce2ecb55c5e2271bcfd5387c76cbb022df2915adb666bfe8cf763a129f74c3218c53b4dfdc95bd44d
+DIST libqmi-1.16.2.tar.xz 735124 SHA256 290bb367b12de1a24c3d2dee83886ca9669e281505ac3ee0bfdbe6bd84c44b81 SHA512 7d0977d1904efb76adcdde0ca52cef864fc66a065e641f1d2b905d74fa5d314e6eae5b6ef58a508725f631823308fc8ddcc67a0547bd0e4c87dc8e3eb39b4cfb WHIRLPOOL 7a195b47e37abff7a8c4d6552b89856006e14b2acb4c958552f465ac359b6c7ae760e6ffa7b74cfdb2d851aa1a9a212c9ef5541824b5b64cb3b8126b136acf5e
+DIST libqmi-1.18.0.tar.xz 873176 SHA256 a0a42c55935e75a630208e2f70840bd4407f56fe1c5258f5b0f6c0aaedf88cec SHA512 3890501fa2299ce5ac8fda732363e39738c95ffb153708d8f727e88c082014018463c569a0d9666385f6394d060ec41052dec400f3f6c733e78748ca7ee56b76 WHIRLPOOL 337f68dde312ea3771340ce0b8b5d5d36019ad14d79cff176822e38560afccbf7fd6c1c8ab5630962887d8604b88152057ef2c838bb5819f8e07da039f91ebed
+EBUILD libqmi-1.12.6.ebuild 936 SHA256 dd4e34978465446201b6942f03bb6bd072c4f83eabeece2131649863220aaa8b SHA512 46a02f498c46266ec7b6c2cb155ce5adeda72e97d82a57376adc48f6ac67bab6ab9840c34a5b20ee88324f75b60a049550524fe405900f1a3afd1cf779d1d69d WHIRLPOOL 80e0efc8fe70c65927157c0fea3f5dd6e1c70250cd37b37e5e250c2284ff74b1def25db9cfe95afd28a7e7940b3640ead7eb5978a94ffe67b08561326c323be8
+EBUILD libqmi-1.14.0.ebuild 939 SHA256 61243dcc8abbda0e73798aca5ac0e5e1c6fb83ac4acbc29d70e0d9984545be74 SHA512 b7a1ef6349c65602ba2117a211345850681bb9166118cd9f96bdb8d24cc64751f3d2654c7bbae3c08797ea1378457e852512a73d2b35162f888282d52b8476bd WHIRLPOOL 2286932735f1f6f44a06444b7e77d8c9eef3dd105e16b3b8dc55da5356c695b104a57eb347d108b802134f3786148959192df9ad1494ee5e954220ec31a8f655
+EBUILD libqmi-1.16.0.ebuild 1033 SHA256 7df81e03f5ac6eab9f61701228127b17b0fa0ca330561a69a98023efb0422399 SHA512 18dca52d046cfb903f792a6d0b3b1bb668a249ea531db723481c8e0665640b85a911edebe62164865e9c865f8ee7a923cc23da07879cf81d741fe379141ede4b WHIRLPOOL 53f220ba7aa477aebaf6bdfb247890b936946f19b9caab809e37f40333a99b2b4d9537aff256bb87ff78cbe4add2eca29bd34d1651af0f30a31c9589ae7c929a
+EBUILD libqmi-1.16.2.ebuild 1104 SHA256 8617c874062ae66fa04b99f724230204f319440c5791a04bfbd057f3f204f027 SHA512 1167f68f0a0d6edd26a8d66443c05c4bf7c4feced8ee7cbce1a1a7afc8a65e21eb2b7b02d8e79685d89a74f075b50e6852da6dfe6254a9a64677041112c9b3f6 WHIRLPOOL 6820a193fc2365b40e26c7623fc9cb81aeb6c5776af623ce05d752094e545798a4e3f6dd5012f398476b6dffc6568a137d2fed4d6189af7341bd071cb355bb25
+EBUILD libqmi-1.18.0.ebuild 1110 SHA256 2caf5c0593d88f3cc183f4e175ac3b6daf8a0c1220b8110e8d02dacb7f6f2f64 SHA512 f82370dac0b09e744b98b3f96ff252c05d16a4e14047784bfa27867bc209e09182215611bbf0eb1dc97177dc205d5268bb89ff8603392229d82677a27427f441 WHIRLPOOL 74329ed5223d9590cead2f3b4c14ca28f296dd04d0bfb9cd2370cf2d60bd5642e467088f1414ac2a9a5f02edc32f19d225e13a7ab2d41ee6562218ca24a607dc
+EBUILD libqmi-9999.ebuild 1110 SHA256 b718dada331f5cb381983825514dd432b884f87d57871aa1a8f432721ed04733 SHA512 d1f40536055bab1cd0d0a8ce837d1b0a7160b93f4187537ee5046692cfc590f89b3f9cff2c7dafe4e0a71008250f092d5a60771936e6e6c849777907ef4a176f WHIRLPOOL 0e04be390ac07187e1ffb1158e962421c9a2c9e3fd9a1d46a97b18beab696016a4ed28aa29d20f8d7bc0c7af05610384b41dfa8feb6e83e37edf7c6d42eb6410
+MISC ChangeLog 4413 SHA256 9ffbf5ba93116a1d7850e56e3e6d7a0b4acead01d497d1886c3164ba352193c2 SHA512 b50cc42d763e282ba1a892e10869a55c8e91c1c5cd910cf03fa158b49db8f8e4726a0f203194b51eb05e4845823b9155eb694d64429a4a91300d0d6ebb8cfeee WHIRLPOOL a831722ef39ff6c2a37b880477f3a93f40aaa17d3da822ae9d1098a08254fe7db1aaab453bb133fbf7ea6b5e2c5c83ff898b455d5674b20da317c7895961df07
+MISC ChangeLog-2015 3727 SHA256 8c70c4d7a33dd013c9097b969d0f475d3fe6b2ecab311732d9a0f8043604f336 SHA512 175d868d3427009bdae16df832a8d87d8de88fc61f1f3b95c480878a033e353e2092cbf010b0a9830b0e0fdff00feb88b68aaa29c749034d3bbbfd2ae61132bb WHIRLPOOL bee4ed2e3b4a19ffa667dc20d6acb2776a91ab2af8ebc8b8c1314afe0ebaf7028cceb54348fe83802e5efde2f7a651e51c11c693befc98ec6e4ba6eb1b427511
+MISC metadata.xml 543 SHA256 4e1856ce0b67c34942d29148d08024374d9ff75c29e59e0a564de4e8026d9301 SHA512 b0285ce2d4cb22f9e3724a53f77dbdd0b029f7402aab7fa223169482cfe6e848403d309561e3c1ddd9ee7ea47e5175ce849ba9c212a3d3ee1fe9c05071a0f690 WHIRLPOOL 17037d5da3beb52cf1bb417adbf18ca13db0366135ba0be56758dccf01b74486c13749e2d9f21d015b867d6f3684665b3feab18f09f4aa7461320150dc323ffd
diff --git a/net-libs/libqmi/libqmi-1.12.6.ebuild b/net-libs/libqmi/libqmi-1.12.6.ebuild
new file mode 100644
index 000000000000..30560ac73dd2
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.12.6.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libqmi.git"
+else
+ KEYWORDS="amd64 arm ~mips x86"
+ SRC_URI="https://www.freedesktop.org/software/libqmi/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-1.14.0.ebuild b/net-libs/libqmi/libqmi-1.14.0.ebuild
new file mode 100644
index 000000000000..3ced59117e84
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.14.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libqmi.git"
+else
+ KEYWORDS="~amd64 ~arm ~mips ~x86"
+ SRC_URI="https://www.freedesktop.org/software/libqmi/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-1.16.0.ebuild b/net-libs/libqmi/libqmi-1.16.0.ebuild
new file mode 100644
index 000000000000..52ae8fd582c5
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.16.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libqmi.git"
+else
+ KEYWORDS="~amd64 ~arm ~mips ~x86"
+ SRC_URI="https://www.freedesktop.org/software/libqmi/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0/5.1"
+IUSE="doc +mbim static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32
+ mbim? ( >=net-libs/libmbim-1.14.0 )"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ eapply_user
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable mbim mbim-qmux ) \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-1.16.2.ebuild b/net-libs/libqmi/libqmi-1.16.2.ebuild
new file mode 100644
index 000000000000..9a16e2b7027d
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.16.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libqmi.git"
+else
+ KEYWORDS="amd64 arm ~mips ppc x86"
+ SRC_URI="https://www.freedesktop.org/software/libqmi/${P}.tar.xz"
+fi
+
+DESCRIPTION="Qualcomm MSM (Mobile Station Modem) Interface (QMI) modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0/5.1" # soname of libqmi-glib.so
+IUSE="doc +mbim static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32
+ mbim? ( >=net-libs/libmbim-1.14.0 )"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ default
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable mbim mbim-qmux) \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-1.18.0.ebuild b/net-libs/libqmi/libqmi-1.18.0.ebuild
new file mode 100644
index 000000000000..50335f2fc35b
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.18.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libqmi.git"
+else
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+ SRC_URI="https://www.freedesktop.org/software/libqmi/${P}.tar.xz"
+fi
+
+DESCRIPTION="Qualcomm MSM (Mobile Station Modem) Interface (QMI) modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0/5.1" # soname of libqmi-glib.so
+IUSE="doc +mbim static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32
+ mbim? ( >=net-libs/libmbim-1.14.0 )"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ default
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable mbim mbim-qmux) \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-9999.ebuild b/net-libs/libqmi/libqmi-9999.ebuild
new file mode 100644
index 000000000000..1508e965a7e2
--- /dev/null
+++ b/net-libs/libqmi/libqmi-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libqmi.git"
+else
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+ SRC_URI="https://www.freedesktop.org/software/libqmi/${P}.tar.xz"
+fi
+
+DESCRIPTION="Qualcomm MSM (Mobile Station Modem) Interface (QMI) modem protocol helper library"
+HOMEPAGE="https://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0/5.1" # soname of libqmi-glib.so
+IUSE="doc +mbim static-libs"
+
+RDEPEND=">=dev-libs/glib-2.36
+ mbim? ( >=net-libs/libmbim-1.14.0 )"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ default
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable mbim mbim-qmux) \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/metadata.xml b/net-libs/libqmi/metadata.xml
new file mode 100644
index 000000000000..bca6a9f230ee
--- /dev/null
+++ b/net-libs/libqmi/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vapier@gentoo.org</email>
+ <description>feel free to update</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <slots>
+ <subslots>libqmi-glib.so soname version</subslots>
+ </slots>
+ <use>
+ <flag name="mbim">Support QMI over Mobile Broadband Interface Model (MBIM)</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/librouteros/Manifest b/net-libs/librouteros/Manifest
new file mode 100644
index 000000000000..fb1a356b6ed2
--- /dev/null
+++ b/net-libs/librouteros/Manifest
@@ -0,0 +1,6 @@
+AUX disable_werror.patch 302 SHA256 f3b0a020ea2ae98d5541e2ad85a22944a199b2399130a57c0202f9368d1afb94 SHA512 13cb3d720814cc9a8a6b975cf1bbf13aab5a177e05e95c8c80de637a04119045bbaf5e91d0a8b1664137be6adfa710a7d061ac8309be27657c6ba1e6593a6400 WHIRLPOOL 04aad85f40fb0690f19b30daba98e23c3466d6e88a302ad0ba1973a5e0bc422fbe79c6f655f8137284d689112793e84dba52e25593d69ad9e092f948f24a1772
+DIST librouteros-1.1.2.tar.bz2 234942 SHA256 1c58ada1ab70e15bb1490b5a24e54e3baf909554173445f71921558e2c111376 SHA512 b4974f84f23544276e426b94410107d24565060034423dabb49157ed2cbee8042d4d415f716fae50a757f24c87c0deab51435236a5bc1bcffe5fc888b7047fc3 WHIRLPOOL 577f1fdf1a6e6f84f20210a3299d6ca03b97a7a0d959ea37f3e8e4e9ab138d94158026d21848168e0cbcb78ce3f66d0b82aee7fb3adf6d8277540737a9c62102
+EBUILD librouteros-1.1.2.ebuild 569 SHA256 c33646051544f21008356efe24022fbb71f7d0b4ddc175ef91b162f3e7fac750 SHA512 8a5b1a28f74ab625fd63cb4bc8bff5a8f391a035e4e2deb44abfa481891e24c61b49197b8298b52bec7bf973b14fafd0b1500f58b447a9ff80be8e140766328d WHIRLPOOL 76031855c2eba9a5bebb743e9bf6d6246b8cc03d2c284ff3564d77d1aaa9cdb0d0cff32d466863d50460f43fc4b74313e0860fd1b60dd99e9f8bc4e439bd27a8
+MISC ChangeLog 2468 SHA256 e9daa17142634474dcdacd2cc85267b956e3f3607709b252bccba033fe886dd7 SHA512 54e0f7844cc6f77b3e6fc8f3466da18da757b2f05f03da8c57bc8db030c5cc79dcc35f4c5253b1da775428657cf0a89e53dd0867f2992dd673a730565104ba8c WHIRLPOOL 32aaefba5fa322101caa14f40fe7585e0b3032164d2aaa12fa6d2ebb574e0286309bc12bcb641b9c54c64d8cb3336bbf70b7fe3bf3ecbabacaa8466773ea9c41
+MISC ChangeLog-2015 870 SHA256 7362617838130d26567da39fbd4ad7a8903b35559b49f9df000098bc4895459e SHA512 91e43f3c00876b8d64797d53db2156bf76ec0382a41312a905af3c8753e44ba62ec3f13f0c7f94508a71e84ae2e884e930aeeb96510710c4b16439bdb37cc363 WHIRLPOOL 58f61fd33ba44521dc34ef0dc89f26d5f9e041b59d97bc289c4244900813f2dcd86eb1d5d9e0329e576f7bfc7aa8c331e51e3bb8fb83ca105f9732751b3a9c76
+MISC metadata.xml 245 SHA256 d8a2d603183590c960989695dbe8e1b40b18c4405314cc754b4a609ef266be7c SHA512 1c6cdb75d4cbbd8d3a5f2cc24950924c030db330e135cf2cacecdaaa99ee65117efd7abd9f8652bf5dfa8169d427f51ff84123aab11fa8ef82498a6834b0805a WHIRLPOOL 8d19cc9bf7a59c51d8a9e346f23576705184758bc5a732bafa587d4d51ce3ec01b77a6a1c06d6121b72342fe401a02f03935acf5d386cb48f7e5b14b197810d5
diff --git a/net-libs/librouteros/files/disable_werror.patch b/net-libs/librouteros/files/disable_werror.patch
new file mode 100644
index 000000000000..599e85b74d00
--- /dev/null
+++ b/net-libs/librouteros/files/disable_werror.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.am.orig 2011-12-30 21:17:04.233158203 +0200
++++ src/Makefile.am 2011-12-30 21:18:42.186354842 +0200
+@@ -1,7 +1,7 @@
+ AUTOMAKE_OPTIONS = foreign no-dependencies
+
+ if COMPILER_IS_GCC
+-AM_CFLAGS = -Wall -Werror
++AM_CFLAGS = -Wall
+ if BUILD_WITH_DEBUG
+ AM_CFLAGS += -Wextra -g -O0
+ endif
diff --git a/net-libs/librouteros/librouteros-1.1.2.ebuild b/net-libs/librouteros/librouteros-1.1.2.ebuild
new file mode 100644
index 000000000000..9e89899c90e7
--- /dev/null
+++ b/net-libs/librouteros/librouteros-1.1.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base autotools-utils autotools
+
+DESCRIPTION="Library for accessing MikroTik's RouterOS via its API"
+HOMEPAGE="http://verplant.org/librouteros/"
+SRC_URI="http://verplant.org/librouteros/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug static-libs"
+
+DEPEND="dev-libs/libgcrypt:0"
+RDEPEND="${DEPEND}"
+
+DOCS=(README AUTHORS)
+PATCHES=("${FILESDIR}"/disable_werror.patch)
+
+src_prepare(){
+ base_src_prepare
+ eautoreconf
+}
diff --git a/net-libs/librouteros/metadata.xml b/net-libs/librouteros/metadata.xml
new file mode 100644
index 000000000000..c5adddd4b3e6
--- /dev/null
+++ b/net-libs/librouteros/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 type="person">
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/librpcsecgss/Manifest b/net-libs/librpcsecgss/Manifest
new file mode 100644
index 000000000000..bde105a75052
--- /dev/null
+++ b/net-libs/librpcsecgss/Manifest
@@ -0,0 +1,8 @@
+DIST librpcsecgss-0.16.tar.gz 362568 SHA256 164305720920b4d24573aad97ebb04d8fadc648aae963ac22ed64fa41d438e9a SHA512 c90ee344bd5d33a3502db664ab52e3298afd019851ceb00904d1e854d74bfb2253e0b407ccc219eff15c747600304651fcf6dad2df7c9de072a86d47f78c2362 WHIRLPOOL 8611b788b4651d5ef4321902ff7065e81d9c5ff30929f204d1653d1ab1bec8b71036f5a978af731c126bab2f6e23e1241343058027c0c3e69cc65a71707b6240
+DIST librpcsecgss-0.19.tar.gz 374487 SHA256 0cafb86b67e5eb4c89e8abaaad9165298946bc164d258e8925fc6dc1fa913abd SHA512 f492f26ebfc6bde007b0b06554dd9075786c1f7562add911cffcc892b3f34698a2f9847b399df828ff0665a906ef17192df070f7b70d32a2ce709291a7492620 WHIRLPOOL c2c04ea2ea5787359b311c32aa37b0ca759cc96679b4ec730ae7f218a6b1a76f0979a8efb7a7ff7a448a9b10051f7d9cb9bba0468233c58ed5eed173b8f60a4c
+EBUILD librpcsecgss-0.16.ebuild 591 SHA256 76b8afa32c74e252d660628f9fc8b9452faf1b0e5ae17a39e901414c1e38162e SHA512 7ef5362daead9d2158be27622d6ef6b72b3971306855b634d0641087ea451930912f41902bfcdb7344dc79ec89c1d329cab0ca52cca4006a723b9f6348e869d0 WHIRLPOOL f770d75d20efc84c477406cf02571052e21201a76a2638d15b385b706671b8aa9f911a6ff257b7b4b538dff5c96cc3e3898daeda5e57609860d3dedf939654b8
+EBUILD librpcsecgss-0.19-r1.ebuild 772 SHA256 40c0e06d68d4720214e49a4a96562ec132348d73118ae3d349541e0cd173e6ba SHA512 218eea4343f678ed502f7d8bbd5ee089413d22731a716369e68a39dd2633ab9843f7750bd20718f7639d09a9bdfa7c22931c50128ae42d16399f3da99e158537 WHIRLPOOL 28b8de55fbb6f875ca4960091e77272ca1f0f51ef846d36a84f7eec49ea774c4a2873d3ead43a48cef0a9e4f6c096dc22051c3926e93c0ffaa299018b3a562e9
+EBUILD librpcsecgss-0.19.ebuild 602 SHA256 f5f76c01843892b03b8d87313f37d9542db1effd37372daeb4c0e9c92819b730 SHA512 5b58bcda4fb4cbca64f5be4f117e19af741c31cd34af6cb2c58f35d19b57903f5cdd5550d66f5d30afa0ab21d4d36a394102250dcbdf05dfc445dcdde8b5eeb1 WHIRLPOOL 961f247bac27574325e0fa96dedf9191e8a37b8a8a289a2ca16a39dfe6772088ced71dcebbe1dc5b029b2ff03a6b92a657a3daa7e6d20965740bd7062aec7179
+MISC ChangeLog 2708 SHA256 3e0ec249b8b2faa40bca097d2c018040c4651957e0f40d7fa3632ac087849c7d SHA512 da63f4a1751c368a7b1e98ad1135cb2d736c7be3cad24efdd6f7bce4e916536d59df25ac3ff0ef231c7d7cfac788530a30e4293f1dd20e33b2ba008ea5952734 WHIRLPOOL fc931f2104767e2bbab3f4e52bcc8b0cd16216b335c26eb59ca97a848f4137b34b2231a5cb376f4cbeaf2a208fc8abcf044241ca0b1da4aef943add5b5043339
+MISC ChangeLog-2015 3357 SHA256 1ce36cc6a6ee32fb8fcb0af16442ca3e92e3c971a6ad0fab6fbf5c8b7c704859 SHA512 b8c0bf7b008d4b59ab89104dd0101c7f5e65f1b7d915afb33308d19aa9aa4ac0b1f6103fb827d8093866516905a1b70c872f9b14e02ec2c76da4a6621e2c8ebb WHIRLPOOL d04d54189c9c8dd4500a5b573ce38ea31c95190f6645797ed112245d7e1cc8c3850ee464cfdfb1107ef992aa81b2beb816fa5febe9762a25dc56f3e9bf2b95a3
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/net-libs/librpcsecgss/librpcsecgss-0.16.ebuild b/net-libs/librpcsecgss/librpcsecgss-0.16.ebuild
new file mode 100644
index 000000000000..23573fd009a9
--- /dev/null
+++ b/net-libs/librpcsecgss/librpcsecgss-0.16.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="implementation of rpcsec_gss (RFC 2203) for secure rpc communication"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="net-libs/libgssglue"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/librpcsecgss/librpcsecgss-0.19-r1.ebuild b/net-libs/librpcsecgss/librpcsecgss-0.19-r1.ebuild
new file mode 100644
index 000000000000..fa672b678b7b
--- /dev/null
+++ b/net-libs/librpcsecgss/librpcsecgss-0.19-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="implementation of rpcsec_gss (RFC 2203) for secure rpc communication"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="net-libs/libgssglue"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ # No need to install static libraries, as it uses non-static dependencies
+ econf --disable-static
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ find "${D}" -name '*.la' -delete || die
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/librpcsecgss/librpcsecgss-0.19.ebuild b/net-libs/librpcsecgss/librpcsecgss-0.19.ebuild
new file mode 100644
index 000000000000..06fa7c2eadc1
--- /dev/null
+++ b/net-libs/librpcsecgss/librpcsecgss-0.19.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="implementation of rpcsec_gss (RFC 2203) for secure rpc communication"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="net-libs/libgssglue"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/net-libs/librpcsecgss/metadata.xml b/net-libs/librpcsecgss/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/net-libs/librpcsecgss/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 type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/librsync/Manifest b/net-libs/librsync/Manifest
new file mode 100644
index 000000000000..a3ffbf9528ef
--- /dev/null
+++ b/net-libs/librsync/Manifest
@@ -0,0 +1,14 @@
+AUX librsync-0.9.7-fix-testsuite.patch 538 SHA256 6ec3ba6a9a78bd2481dbffa4d14fc3a97e8de802abb9514d980396fddcee6dd3 SHA512 d4a31fbb9b1c9b9e47b32151ae65f0a77e95ab9b8a899db50907cb356544fa065efbecee1133e10c66abada847411377d7b9472fffa8a88839c04728130490c1 WHIRLPOOL 6dd020d8fc9fc0844d9025e65e3c4d6c6d2cb6d2baeb16bd4008d0c766cf7fcc8585dea7bd38e613b5a82a79cd49ec52f2411736a61c3cfce5ad2b7119f2eb92
+AUX librsync-0.9.7-format-security.patch 679 SHA256 e67422c82b51f8d2f21740f3bcbed24a9ad75604888ff612307b942c38cc4071 SHA512 d5dd6e6d088f56d2dda13007f6803984d7fcc51ac660969d093c0e4dc48b828eb5c036cf74a2d8bd13c3f4d2f4af58902f91d2b04c371f82b02cbf6ac2e6ba93 WHIRLPOOL 1fdeb15fb90e44b89f5c65200fda7a7ce5315259157cda930636454f929b33c39b961495137fe2897586a5019c4db66976d425412648a179361cb6b880cbf702
+AUX librsync-0.9.7-getopt.patch 899 SHA256 5bb3d9aeb44ad2b73dc765e6b6665b73c4060b0547b15ff060a4e0f1368b2abc SHA512 6805197797eba2b994ccf79ab31e6a7cd2e607ad7f6d6fa30d68b94d58396ee477d2e3ef54705bf874e0d5a8cc58d96048d89800fbb2afbdaddf469caba7484b WHIRLPOOL 666d52d10af09ca8c99f5510d34c3292ddc069ee5402f6dfece4bc5c546ab3cb74cd30a3022641ef7a1e0a724152012ea594d93d368498d6370479362cbb4af2
+AUX librsync-0.9.7-huge-files.patch 1022 SHA256 37a6ccc39b7bec1765fb5a99cb3b1d6b1572ad611c0724c594f671d25246535d SHA512 e45d0422f7b0fc092b3e41be4ba29305de4940380f3946551e38516a0ccd314a767c0c91e2e4efcd75c2e3ebe684675dc49c37081fa38036c774a81fc68e8855 WHIRLPOOL 34229ec439287df73fe194c4b181c48d325802605d6e26652f727f4674b0f90c9ef819cde2544621ed06971c5bb82de7cc1bc4edb3cc89ce5c72d097d2c0bfa1
+AUX librsync-0.9.7-implicit-declaration.patch 568 SHA256 03a298158970f2be70d9d05a0505b79b534d1619bc6d4c00194cae0d6d587d3c SHA512 58dafcc71c52bf50e8ffc2729bbe54ba2022e16e851499218c724e101813b957b769511ab83a3f29ab359e3c3b4860867b71f97bd4bfa79d5ee69d53fe369f20 WHIRLPOOL 6faaba1b40343265795a228eead0fe223837eddeb469deee148c7e3c00133d810fc61623899f3bc3140d70adf6f664656aa7504aa4d127d14b56be43376bc0a2
+AUX librsync-2.0.0-search.patch 358 SHA256 3a94ba9d2b0847d0dade733c9f4f456f910f26b1e010a115acd0fb74ec8e71f8 SHA512 06f64c2d95fde23cda01c35d39e0d4d7e81b10750e0e23f87751a356fff7707bfe8481788aef14649875ff65f900c254f612217ee0bf3ddbc06d0471cc5106d7 WHIRLPOOL fc4ae314bf7c71d427b64df9fbe0376733c686eccfe4c2ce96538c9b9acd09412b6c990c740ad388f32b94855586fed9d9a0167bf2ebc87a9adb11b1b7bc28df
+DIST librsync-0.9.7.tar.gz 453802 SHA256 6633e4605662763a03bb6388529cbdfd3b11a9ec55b8845351c1bd9a92bc41d6 SHA512 339362fd01c94411849d3e4a6e95db1bef6cffa0475b1af49d73f11be0421a12d4c73ecbf1a272af01b2a21cec81b4a801c1f7d735e107d0242707fb4c45f9ef WHIRLPOOL 7cf5cc675c4bf4e041d9132f0a8311f83e827bfa7dd75180f3153cabeab41a94011e1a9b56e63a61dbe119444e2c24a39054986d97b686db99293ad9177b2bf7
+DIST librsync-2.0.0.tar.gz 155049 SHA256 b5c4dd114289832039397789e42d4ff0d1108ada89ce74f1999398593fae2169 SHA512 1a88dcc3aa60949e058c57eb0df3e0086823c493de40fed927246f5aada6274db57202074456a0ce5d9aa8b81b41836b0d6221ded6a75d43829572584177e8c0 WHIRLPOOL a09e76a712ca21a37bc3d06cf2f97a0e7201cfcf82c18cbebf3f07bfd453ac3503d18c900b7c1136e0319ec7f3b7c4a6c43611648c78b31fe13c7298ccf016e0
+EBUILD librsync-0.9.7-r3.ebuild 879 SHA256 10d0895baf99f03c235de45ee3d334759e433dc23a3444e4e4d7e9edecc2c864 SHA512 9c47fefe790a75f0b8921ae400bfc811e8376dcacbd50a4399b49cf390c56dd942dc9f535210f5228606c4069743f1399eb6add6dba7182bdbce89935f02bf8a WHIRLPOOL 784d22288456cf9d994beb650a6631f3e4e0c17d1d22b673fcca2aa611aa81049f0e0ccca09883d5a90348f2f84c6f15512cd92df62a5cbbc62ff67020e4a1b2
+EBUILD librsync-2.0.0-r1.ebuild 833 SHA256 feb82050baa431fcc0eb901cfe6e88022813750fc8916915eb362a90da6deab7 SHA512 3aa8f98be81b376a3d9339e08dbc23a3ce052efeb35c1dcf68a24e9b120e701d58201a14ea0651a5e401501b63227e49e34defdaa3516c799cafaa3ac0fb795d WHIRLPOOL 16b3bac7fa29708703e38b4569ab83450ec6b5d353aa6263bb897ef8baddc35d3d401f16752bcc8024a7f869fd61425cfc764c03a4149018d0a4ef24fbfc1eee
+EBUILD librsync-2.0.0.ebuild 764 SHA256 cd23c43d8611be927f3ff3d7c6500e2c07eeba3aebd44c694dafacba84afc616 SHA512 6a838f1028a13fc27a224fc3be357efc647218bec0b2fd6d0a147118ddaa56f65da13801bddb616a5a1f63b3b9fa3ba971df51c379d985285815cbe8d0ce2f86 WHIRLPOOL 8d2c72e537d85ebe6731cbe01173ba5076f94a04d7183e1b45d241afbe10e09534ba141c9a85596818b8edfa778493b810c66eebc6892bf84bb1a75be5a5ec89
+MISC ChangeLog 6265 SHA256 f7570dcc522328911493ce9390eb94c934819f1fdb527afbedabc0cff0e18a3a SHA512 aee1a18202c634b5e69186f161ec8682bd6051b3c24f44302579b9ed753d710c062f500d0fe3e66ef4418e7122fb574188f6da74e238608dceee7c67dffa08f8 WHIRLPOOL c29ce69104b65ff1588ce5e6266224dbecde9503e437654e4ed738794107c6ae6f3ae8b1136c7da847881566bdc29bc41304c2e1ef197449f1e8d8fa25e8a92f
+MISC ChangeLog-2015 6029 SHA256 89da3593c12b4488f605a06b090d097763499cf690588d88003ac46669653bce SHA512 3156822c3f2131358e41252515b0957e0ce7d9ed49ffd66cc3a7a2572a75f6e89e67f964981e1dfc1e961f5987b508a672f67a6d3cff0a88ed2bfdf6063d2a31 WHIRLPOOL c3cbdf9e6a55298c24b97f7d5f0f0f003bdbc4b6fb79343f7f55668b7590ffbf5ca46aa57ee8c120c8d5846372b185150ea35592173566ed2af7654e996b008c
+MISC metadata.xml 582 SHA256 40ac98e93641574f4c086ac298744372169748ac39e6681eac95d7c199594052 SHA512 ab091ce5da3fd3c86489dbc3e2cc72ef66bf2d757005e85e7a6dcca0a31c2e7539216686080bc38240c60e120ebc41104b96ba9d7d7bf1499b1373547a226bbf WHIRLPOOL 15e4ab2a4707432cc03bbf72bb57b349e399cb356667431d620ae953ef828a34051127fc0bd85c1bc5ab13e23b7b74947d32f54ea57c28c6d130325b6aebd252
diff --git a/net-libs/librsync/files/librsync-0.9.7-fix-testsuite.patch b/net-libs/librsync/files/librsync-0.9.7-fix-testsuite.patch
new file mode 100644
index 000000000000..e87c3d8f67b5
--- /dev/null
+++ b/net-libs/librsync/files/librsync-0.9.7-fix-testsuite.patch
@@ -0,0 +1,15 @@
+Description: Fix running tests with the parallel harness
+Author: Andrey Rahmatullin <wrar@wrar.name>
+Last-Update: 2013-06-26
+
+--- a/testsuite/Makefile.am
++++ b/testsuite/Makefile.am
+@@ -29,7 +29,7 @@ isprefix_driver_LDADD = ../isprefix.o # XXX: should link replaced functions
+ # failed. Generally these tests should be ordered so that more basic
+ # tests are run first.
+
+-TESTS_ENVIRONMENT = $(SH) $(srcdir)/driver.sh
++TEST_LOG_COMPILER = $(SH) $(srcdir)/driver.sh
+
+ TESTS = \
+ signature.test mutate.test sources.test isprefix.test \
diff --git a/net-libs/librsync/files/librsync-0.9.7-format-security.patch b/net-libs/librsync/files/librsync-0.9.7-format-security.patch
new file mode 100644
index 000000000000..e35980a4d7a0
--- /dev/null
+++ b/net-libs/librsync/files/librsync-0.9.7-format-security.patch
@@ -0,0 +1,20 @@
+Description: Always use a format string in printf
+ Fix the warning: buf.c:216:9: error: format not a string literal and no
+ format arguments [-Werror=format-security]
+Author: Andrey Rahmatullin <wrar@wrar.name>
+Forwarded: no
+Last-Update: 2012-02-05
+
+diff --git a/buf.c b/buf.c
+index 7f4e7a0..3a83f2b 100644
+--- a/buf.c
++++ b/buf.c
+@@ -213,7 +213,7 @@ rs_result rs_file_copy_cb(void *arg, rs_long_t pos, size_t *len, void **buf)
+
+ got = fread(*buf, 1, *len, f);
+ if (got == -1) {
+- rs_error(strerror(errno));
++ rs_error("%s", strerror(errno));
+ return RS_IO_ERROR;
+ } else if (got == 0) {
+ rs_error("unexpected eof on fd%d", fileno(f));
diff --git a/net-libs/librsync/files/librsync-0.9.7-getopt.patch b/net-libs/librsync/files/librsync-0.9.7-getopt.patch
new file mode 100644
index 000000000000..0859089b970a
--- /dev/null
+++ b/net-libs/librsync/files/librsync-0.9.7-getopt.patch
@@ -0,0 +1,17 @@
+Patch by Daniel Baumann <daniel@debian.org> for librsync >= 0.9.7, which makes
+rdiff aware of -i and -z getopt options mentioned in --help output. For further
+information, please have a look to Debian bug ID #435894.
+
+--- librsync-0.9.7/rdiff.c 2004-09-17 23:35:50.000000000 +0200
++++ librsync-0.9.7/rdiff.c.getopt 2008-12-20 13:45:58.000000000 +0100
+@@ -97,8 +97,8 @@
+ { "sum-size", 'S', POPT_ARG_INT, &strong_len },
+ { "statistics", 's', POPT_ARG_NONE, &show_stats },
+ { "stats", 0, POPT_ARG_NONE, &show_stats },
+- { "gzip", 0, POPT_ARG_NONE, 0, OPT_GZIP },
+- { "bzip2", 0, POPT_ARG_NONE, 0, OPT_BZIP2 },
++ { "gzip", 'z', POPT_ARG_NONE, 0, OPT_GZIP },
++ { "bzip2", 'i', POPT_ARG_NONE, 0, OPT_BZIP2 },
+ { "paranoia", 0, POPT_ARG_NONE, &rs_roll_paranoia },
+ { 0 }
+ };
diff --git a/net-libs/librsync/files/librsync-0.9.7-huge-files.patch b/net-libs/librsync/files/librsync-0.9.7-huge-files.patch
new file mode 100644
index 000000000000..fef08941a44f
--- /dev/null
+++ b/net-libs/librsync/files/librsync-0.9.7-huge-files.patch
@@ -0,0 +1,31 @@
+diff -urN librsync-0.9.7/mdfour.h librsync-0.9.7dev/mdfour.h
+--- librsync-0.9.7/mdfour.h 2004-02-07 18:17:57.000000000 -0500
++++ librsync-0.9.7dev/mdfour.h 2006-03-06 03:21:46.000000000 -0500
+@@ -24,7 +24,7 @@
+ #include "types.h"
+
+ struct rs_mdfour {
+- int A, B, C, D;
++ unsigned int A, B, C, D;
+ #if HAVE_UINT64
+ uint64_t totalN;
+ #else
+diff -urN librsync-0.9.7/patch.c librsync-0.9.7dev/patch.c
+--- librsync-0.9.7/patch.c 2004-09-17 17:35:50.000000000 -0400
++++ librsync-0.9.7dev/patch.c 2006-03-06 03:21:06.000000000 -0500
+@@ -214,12 +214,12 @@
+ void *buf, *ptr;
+ rs_buffers_t *buffs = job->stream;
+
+- len = job->basis_len;
+-
+ /* copy only as much as will fit in the output buffer, so that we
+ * don't have to block or store the input. */
+- if (len > buffs->avail_out)
++ if (job->basis_len > buffs->avail_out)
+ len = buffs->avail_out;
++ else
++ len = job->basis_len;
+
+ if (!len)
+ return RS_BLOCKED;
diff --git a/net-libs/librsync/files/librsync-0.9.7-implicit-declaration.patch b/net-libs/librsync/files/librsync-0.9.7-implicit-declaration.patch
new file mode 100644
index 000000000000..782597c8fe2b
--- /dev/null
+++ b/net-libs/librsync/files/librsync-0.9.7-implicit-declaration.patch
@@ -0,0 +1,19 @@
+Description: Fix -Wimplicit-function-declaration warning in the test suite
+ Fix the warning: isprefix.driver.c:43:5: warning: implicit declaration of
+ function ‘strcmp’ [-Wimplicit-function-declaration]
+Author: Andrey Rahmatullin <wrar@wrar.name>
+Forwarded: no
+Last-Update: 2012-02-05
+
+diff --git a/testsuite/isprefix.driver.c b/testsuite/isprefix.driver.c
+index a9fd77b..df558c2 100644
+--- a/testsuite/isprefix.driver.c
++++ b/testsuite/isprefix.driver.c
+@@ -21,6 +21,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ #include "isprefix.h"
+
diff --git a/net-libs/librsync/files/librsync-2.0.0-search.patch b/net-libs/librsync/files/librsync-2.0.0-search.patch
new file mode 100644
index 000000000000..93b4106ee8b5
--- /dev/null
+++ b/net-libs/librsync/files/librsync-2.0.0-search.patch
@@ -0,0 +1,12 @@
+diff -Naur a/src/search.c b/src/search.c
+--- a/src/search.c 2015-11-29 21:43:12.000000000 +0100
++++ b/src/search.c 2016-01-31 19:11:54.847933060 +0100
+@@ -218,7 +218,7 @@
+ r = m;
+ }
+
+- if (l == r) {
++ if ((l == r) && (l <= bucket->r)) {
+ int i = sig->targets[l].i;
+ rs_block_sig_t *b = &(sig->block_sigs[i]);
+ if (weak_sum != b->weak_sum)
diff --git a/net-libs/librsync/librsync-0.9.7-r3.ebuild b/net-libs/librsync/librsync-0.9.7-r3.ebuild
new file mode 100644
index 000000000000..b8622f08e3f3
--- /dev/null
+++ b/net-libs/librsync/librsync-0.9.7-r3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Flexible remote checksum-based differencing"
+HOMEPAGE="http://librsync.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/1"
+KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/popt"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-huge-files.patch
+ "${FILESDIR}"/${P}-format-security.patch
+ "${FILESDIR}"/${P}-getopt.patch
+ "${FILESDIR}"/${P}-implicit-declaration.patch
+ "${FILESDIR}"/${P}-fix-testsuite.patch
+ )
+
+src_prepare() {
+ sed \
+ -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' \
+ -i configure.ac || die
+
+ autotools-utils_src_prepare
+}
diff --git a/net-libs/librsync/librsync-2.0.0-r1.ebuild b/net-libs/librsync/librsync-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..06a1bbbf47c3
--- /dev/null
+++ b/net-libs/librsync/librsync-2.0.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Remote delta-compression library"
+HOMEPAGE="http://librsync.sourcefrog.net/"
+SRC_URI="https://github.com/librsync/librsync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+RDEPEND="dev-libs/popt"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # isprefix_test does not work in portage environment
+ sed -i '169 s/^/#/' CMakeLists.txt || die
+
+ # fix compiling with multilib-strict feature enabled
+ sed -i "242 s/lib/$(get_libdir)/" CMakeLists.txt || die
+
+ # fix bug 573144
+ epatch "${FILESDIR}/${P}-search.patch"
+
+ cmake-utils_src_prepare
+}
diff --git a/net-libs/librsync/librsync-2.0.0.ebuild b/net-libs/librsync/librsync-2.0.0.ebuild
new file mode 100644
index 000000000000..af13ecd767c4
--- /dev/null
+++ b/net-libs/librsync/librsync-2.0.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Remote delta-compression library"
+HOMEPAGE="http://librsync.sourcefrog.net/"
+SRC_URI="https://github.com/librsync/librsync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+RDEPEND="dev-libs/popt"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # isprefix_test does not work in portage environment
+ sed -i '169 s/^/#/' CMakeLists.txt || die
+
+ # fix compiling with multilib-strict feature enabled
+ sed -i "242 s/lib/$(get_libdir)/" CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
diff --git a/net-libs/librsync/metadata.xml b/net-libs/librsync/metadata.xml
new file mode 100644
index 000000000000..cf1a9d9c7db6
--- /dev/null
+++ b/net-libs/librsync/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 type="person">
+ <email>axelgenus@gmail.com</email>
+ <name>Alessandro Calorì</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">librsync</remote-id>
+ <remote-id type="github">librsync/librsync</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libs3/Manifest b/net-libs/libs3/Manifest
new file mode 100644
index 000000000000..94ce0eaaa980
--- /dev/null
+++ b/net-libs/libs3/Manifest
@@ -0,0 +1,6 @@
+AUX libs3-2.0-build.patch 3224 SHA256 987fccc87e7dc7addc428ef376bf976d22dfbcde31b6b7e969b827e110bd3ebe SHA512 730fcaa2bb57693d6e9b4ec7318fff24d674ea71bc85c20c0ee90e4a7af30eab40f56c18bdbf27b3cc978e7cf1467db84fe01ee522f2f12afdb375310c494435 WHIRLPOOL c2805f782eae5e56b04eafe4df3932bc039f5ea7c74bafdf0d19fa5a7aa2cef837db930de3fcadfdfeb7d868471f71431a3cdf9c9ab07d408f433cd706e9961a
+DIST libs3-2.0.tar.gz 105783 SHA256 c99857bfbcc9ff47742119bc32f391f38a24acf40cf49902ef3b18b1f0e8c16d SHA512 eabbc24f4beaf270e976bb0071fb372c213dfc00051fc3b33e5f64f9b2690765bd7b764162ecb0da09b173635b37b6e3e0a111523850c8aeea8d9b9be9b9c7c9 WHIRLPOOL 78d968f5503f10d8255e7691d438cc36d8c27f3ff3152c776f5c85cf35f70a6afe894324223055da420e6af19a5a9a92c689876c49d131aaf26d636fef065164
+EBUILD libs3-2.0-r1.ebuild 704 SHA256 92aa9d2440add0ef76deb495eb1b974130afc5e0ea666a4953ac9021403d894f SHA512 842cfb5ed68c0e07904767e7fb1c4730e3c9ea864990fa8a48258b7ceb88330c1d5175db4ff0f42421204d315ed5f6ca2753ac4bad8c0e8282dcf8e2c3134169 WHIRLPOOL 99eb008d6346d43440acbe74622199f09b1781d1e7f5a6f8445611a00770c5cf9b9c0ec2d30de5dd5e5c14009e1bfbb14caf6d41fbe5b6a0b23c21b105ce5950
+MISC ChangeLog 2548 SHA256 aba42c2d53d5a47e530ec9f0edca225136b93dda7758e38d11300375b94e8b6e SHA512 f324af1a6a79a4a23c3893e1de776865d3f4ab015db0b3bd115415c744b369c08f5938adff55010b3441a4ae4369f4cda490f5e8ce5be42c113f8286d8ccb28f WHIRLPOOL 72345ada364fc4a5627e8e8df5e6b024f7878772834631de2ac35d62e39c1fafd8c568d316438789ea022ac901f715e82e5344e8e165a6e200e727bb2d8ea69a
+MISC ChangeLog-2015 782 SHA256 11e4de0096004bdd077f0908617a47ae4116e021a74ad4ac1012fb4e6c8f3ff5 SHA512 831c2b2ab2e31a4a9fdc36219c5c184ded969b5959a2f4efb60e0eb5f464fa01d02b12e104058452b15d434895bb074ab9c3064abc148423bcd4b6e34ac98598 WHIRLPOOL 11b8e52c090ef598f0e1b55eaa3dcd81941a76611962ca8fe6df1da2b1837f4da8115c0996558980043cd982a07ce8ed7abe01e250cbdff3a6b26fff309a0168
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/libs3/files/libs3-2.0-build.patch b/net-libs/libs3/files/libs3-2.0-build.patch
new file mode 100644
index 000000000000..804a0d28332a
--- /dev/null
+++ b/net-libs/libs3/files/libs3-2.0-build.patch
@@ -0,0 +1,83 @@
+ GNUmakefile | 23 ++++++++++++-----------
+ 1 file changed, 12 insertions(+), 11 deletions(-)
+
+diff --git a/GNUmakefile b/GNUmakefile
+index 36398c1..dc24843 100644
+--- a/GNUmakefile
++++ b/GNUmakefile
+@@ -60,7 +60,7 @@ LIBS3_VER := $(LIBS3_VER_MAJOR).$(LIBS3_VER_MINOR)
+ # any value, then verbosity is turned on". So don't define VERBOSE if you
+ # don't want verbosity in the build process.
+ # -----------------------------------------------------------------------------
+-
++VERBOSE = true
+ ifdef VERBOSE
+ VERBOSE = true
+ VERBOSE_ECHO = @ echo
+@@ -125,7 +125,7 @@ ifndef CFLAGS
+ endif
+ endif
+
+-CFLAGS += -Wall -Werror -Wshadow -Wextra -Iinc \
++CFLAGS += -Wall -Wshadow -Wextra -Iinc \
+ $(CURL_CFLAGS) $(LIBXML2_CFLAGS) \
+ -DLIBS3_VER_MAJOR=\"$(LIBS3_VER_MAJOR)\" \
+ -DLIBS3_VER_MINOR=\"$(LIBS3_VER_MINOR)\" \
+@@ -134,7 +134,8 @@ CFLAGS += -Wall -Werror -Wshadow -Wextra -Iinc \
+ -D_ISOC99_SOURCE \
+ -D_POSIX_C_SOURCE=200112L
+
+-LDFLAGS = $(CURL_LIBS) $(LIBXML2_LIBS) -lpthread
++LDFLAGS += -lpthread
++LIBS = $(CURL_LIBS) $(LIBXML2_LIBS)
+
+
+ # --------------------------------------------------------------------------
+@@ -157,11 +158,11 @@ exported: libs3 s3 headers
+ .PHONY: install
+ install: exported
+ $(QUIET_ECHO) $(DESTDIR)/bin/s3: Installing executable
+- $(VERBOSE_SHOW) install -Dps -m u+rwx,go+rx $(BUILD)/bin/s3 \
++ $(VERBOSE_SHOW) install -Dp -m u+rwx,go+rx $(BUILD)/bin/s3 \
+ $(DESTDIR)/bin/s3
+ $(QUIET_ECHO) \
+ $(DESTDIR)/lib/libs3.so.$(LIBS3_VER): Installing shared library
+- $(VERBOSE_SHOW) install -Dps -m u+rw,go+r \
++ $(VERBOSE_SHOW) install -Dp -m u+rw,go+r \
+ $(BUILD)/lib/libs3.so.$(LIBS3_VER_MAJOR) \
+ $(DESTDIR)/lib/libs3.so.$(LIBS3_VER)
+ $(QUIET_ECHO) \
+@@ -199,18 +200,18 @@ uninstall:
+ $(BUILD)/obj/%.o: src/%.c
+ $(QUIET_ECHO) $@: Compiling object
+ @ mkdir -p $(dir $(BUILD)/dep/$<)
+- @ gcc $(CFLAGS) -M -MG -MQ $@ -DCOMPILINGDEPENDENCIES \
++ $(CC) $(CFLAGS) -M -MG -MQ $@ -DCOMPILINGDEPENDENCIES \
+ -o $(BUILD)/dep/$(<:%.c=%.d) -c $<
+ @ mkdir -p $(dir $@)
+- $(VERBOSE_SHOW) gcc $(CFLAGS) -o $@ -c $<
++ $(VERBOSE_SHOW) $(CC) $(CFLAGS) -o $@ -c $<
+
+ $(BUILD)/obj/%.do: src/%.c
+ $(QUIET_ECHO) $@: Compiling dynamic object
+ @ mkdir -p $(dir $(BUILD)/dep/$<)
+- @ gcc $(CFLAGS) -M -MG -MQ $@ -DCOMPILINGDEPENDENCIES \
++ $(CC) $(CFLAGS) -M -MG -MQ $@ -DCOMPILINGDEPENDENCIES \
+ -o $(BUILD)/dep/$(<:%.c=%.dd) -c $<
+ @ mkdir -p $(dir $@)
+- $(VERBOSE_SHOW) gcc $(CFLAGS) -fpic -fPIC -o $@ -c $<
++ $(VERBOSE_SHOW) $(CC) $(CFLAGS) -fpic -fPIC -o $@ -c $<
+
+
+ # --------------------------------------------------------------------------
+@@ -230,8 +231,8 @@ LIBS3_SOURCES := acl.c bucket.c error_parser.c general.c \
+ $(LIBS3_SHARED): $(LIBS3_SOURCES:%.c=$(BUILD)/obj/%.do)
+ $(QUIET_ECHO) $@: Building shared library
+ @ mkdir -p $(dir $@)
+- $(VERBOSE_SHOW) gcc -shared -Wl,-soname,libs3.so.$(LIBS3_VER_MAJOR) \
+- -o $@ $^ $(LDFLAGS)
++ $(VERBOSE_SHOW) $(CC) $(LDFLAGS) -shared -Wl,-soname,libs3.so.$(LIBS3_VER_MAJOR) \
++ -o $@ $^ $(LIBS)
+
+ $(LIBS3_STATIC): $(LIBS3_SOURCES:%.c=$(BUILD)/obj/%.o)
+ $(QUIET_ECHO) $@: Building static library
diff --git a/net-libs/libs3/libs3-2.0-r1.ebuild b/net-libs/libs3/libs3-2.0-r1.ebuild
new file mode 100644
index 000000000000..ad4b5dfd9160
--- /dev/null
+++ b/net-libs/libs3/libs3-2.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="A C Library API for Amazon S3"
+HOMEPAGE="http://libs3.ischo.com.s3.amazonaws.com/index.html"
+SRC_URI="http://libs3.ischo.com.s3.amazonaws.com/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ net-misc/curl
+ dev-libs/libxml2"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ sed \
+ -e "s:/lib/:/$(get_libdir)/:g" \
+ -i *makefile* || die
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${ED}/usr" install
+ use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*a
+}
diff --git a/net-libs/libs3/metadata.xml b/net-libs/libs3/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/libs3/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/libsearpc/Manifest b/net-libs/libsearpc/Manifest
new file mode 100644
index 000000000000..9d89864f06db
--- /dev/null
+++ b/net-libs/libsearpc/Manifest
@@ -0,0 +1,3 @@
+DIST libsearpc-3.0.8.tar.gz 48740 SHA256 83b45fa2f4b7d7ae6dd34ca04d430433551ef493cdaf3cbcc768bd6099377d90 SHA512 1f2cf9a15a004b6ddf8fc0b6a436a5db09a514cea4cec94ce9fa6ce973cd71dfc4a112e948a36ab0be61d736f1021622e46429d07de70b23c25b886d1e51c02a WHIRLPOOL 06f222a8247fb6683390617d34960dec0e9b2fb4b2cb19bb436a7dbb52fed0a008c449d4d37331d159cdea2a9a74543c09cb9a9e6ab491f776e56ade4235fab9
+EBUILD libsearpc-3.0.8-r1.ebuild 710 SHA256 02b9a63b8370f934e5150486b120976e30cffcd24c7dc8c346cf89ee0857f2b0 SHA512 ff80ce18a972016b2e475ec6eb0ea5f369f0fcbb5586b2efb281ba3d5b798a71812b76dfc802979148d82f6375e18be2f15c4f246a236caa1d8f59dc08d7bf72 WHIRLPOOL df944d2a2418c19376a60b84a48d8edbe5d994e92f4aa2245f17767da6a205f9248c65c010c61b2c6179908f5081feb1a00cdf477b7ab8b8808af6b05c407491
+MISC metadata.xml 418 SHA256 e76d4ae836239b703d7e81460fe22125b780122cd11095346eaf4771f1ec6d46 SHA512 37d9578d4a4fe4e6c19b111b2fe96e630e96585d06b6768de56f993d2d3880d6b6219df1d07480668c8cb42dc315c2211e56e520d07835772a20b952fc40f6f1 WHIRLPOOL 51e1e48b82f448e8918bee37d1ebea4ccef7c34113cebe704283306f15b5ba8e3e1c964ec71ddeca0c848a9a90b1ff44250f042224301c5d8ca78be3565fa0ad
diff --git a/net-libs/libsearpc/libsearpc-3.0.8-r1.ebuild b/net-libs/libsearpc/libsearpc-3.0.8-r1.ebuild
new file mode 100644
index 000000000000..70f1c5fd0f9a
--- /dev/null
+++ b/net-libs/libsearpc/libsearpc-3.0.8-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit autotools python-single-r1 vcs-snapshot
+
+DESCRIPTION="A simple C language RPC framework"
+HOMEPAGE="https://github.com/haiwen/libsearpc/ http://seafile.com/"
+SRC_URI="https://github.com/haiwen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ >=dev-libs/glib-2.26.0
+ >=dev-libs/jansson-2.2.1"
+RDEPEND="${DEPEND}
+ dev-python/simplejson[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ default
+ sed -i -e "s/(DESTDIR)//" ${PN}.pc.in || die
+ eautoreconf
+}
diff --git a/net-libs/libsearpc/metadata.xml b/net-libs/libsearpc/metadata.xml
new file mode 100644
index 000000000000..e6eeb61c2aec
--- /dev/null
+++ b/net-libs/libsearpc/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>moschlar@metalabs.de</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">haiwen/libsearpc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libsignon-glib/Manifest b/net-libs/libsignon-glib/Manifest
new file mode 100644
index 000000000000..b63f7a3b8016
--- /dev/null
+++ b/net-libs/libsignon-glib/Manifest
@@ -0,0 +1,5 @@
+AUX libsignon-glib-1.12-doc-disable.patch 844 SHA256 b1e018828b83454a752d197d5c9db6332584bc94a8eb5f20f55e9ce9b0729299 SHA512 690ee30d4e1d6277c0b02720212654d482173a75657da7f72c30f258921cbe790ea2d47d3de9a598be04e4ef55b995118ab5a537ed728c2735445915810f561d WHIRLPOOL 262f38233ffd5a9834d4513fa5f43d555245a8148e2b4b6f923cbf0b4c5a30e79e2fffa43eb1001effb32b1e3b88d9ae55c9489959e87f96e64776272a3e496c
+DIST libsignon-glib-1.13.tar.gz 51601 SHA256 8e0e450e719c16f79d3c3aadb98656ed5967a2f2cd24c1d9cd5747e670a087bc SHA512 aaae6a37a113685eb36ddccd497e387617cf0900506638cbafbac282c4d63ade41f4c915ad6f04214c58af580b70d9062ecf3e1618b6f5fe07dad50c5dc125a6 WHIRLPOOL 8f0d1d51588e42c9fac51883a9ecb08b6ad4949fc8f335c2259f967ea8f3555b04b3ca46f323b20591a2bc85dc1b5bba3968fec1be3e4dfd7a9464e2c5d6880e
+EBUILD libsignon-glib-1.13-r1.ebuild 1684 SHA256 9481a91440927a361f0960bb7358c7651de3d9a69f5a8730636f3459bbc6edf6 SHA512 4f43d6b4061b0d2198266b8859b3b495d348ec9f918563eac22f486862c812767019bbeada1125937af3f39781501732b16e0aa2f20b0199895210da7caa4d37 WHIRLPOOL af5e0769bbc28d2a14be6de100ad63282ef4487ca4b1c6a9b13de64550241c2e2254a09fd174f40f9e0358c2990f397f5db4d63e1864228de6e2183e3eaa19ee
+MISC ChangeLog 2717 SHA256 4cc25f89a1e21f313f5ab4b8f2d155b08a414a52e6a01ab0819c5a7153e1d3d4 SHA512 7ad69f6734bd5c6814a7b31f991b04b30c241968c137142dd26eefa775afc683aa3f18a1a838e1cc1ee43fccff7edc05ad75e45671becbb86684822aef213ae7 WHIRLPOOL b060bc259883b87b137cc532d9f9686b4f4303983411a1126ba0c5e52002c7b200bb7ba71e918de6b0ad2022f0d02861579051b8a4779afcf424ddd26149ba83
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/libsignon-glib/files/libsignon-glib-1.12-doc-disable.patch b/net-libs/libsignon-glib/files/libsignon-glib-1.12-doc-disable.patch
new file mode 100644
index 000000000000..1ef64e604164
--- /dev/null
+++ b/net-libs/libsignon-glib/files/libsignon-glib-1.12-doc-disable.patch
@@ -0,0 +1,25 @@
+diff -Naur libsignon-glib-1.12.old/configure.ac libsignon-glib-1.12/configure.ac
+--- libsignon-glib-1.12.old/configure.ac 2014-12-09 11:52:37.000000000 +0300
++++ libsignon-glib-1.12/configure.ac 2015-08-27 13:00:54.501123031 +0300
+@@ -100,9 +100,6 @@
+ Makefile
+ libsignon-glib/Makefile
+ libsignon-glib.pc
+- docs/Makefile
+- docs/reference/Makefile
+- docs/reference/version.xml
+ tests/Makefile
+ pygobject/Makefile
+ ])
+diff -Naur libsignon-glib-1.12.old/Makefile.am libsignon-glib-1.12/Makefile.am
+--- libsignon-glib-1.12.old/Makefile.am 2014-12-09 11:52:37.000000000 +0300
++++ libsignon-glib-1.12/Makefile.am 2015-08-27 13:00:42.101237854 +0300
+@@ -2,7 +2,7 @@
+ DISTCHECK_CONFIGURE_FLAGS = \
+ --enable-gtk-doc \
+ --enable-introspection=yes
+-SUBDIRS = libsignon-glib docs
++SUBDIRS = libsignon-glib
+
+ if ENABLE_PYTHON
+ SUBDIRS += pygobject
diff --git a/net-libs/libsignon-glib/libsignon-glib-1.13-r1.ebuild b/net-libs/libsignon-glib/libsignon-glib-1.13-r1.ebuild
new file mode 100644
index 000000000000..83bffcb79c46
--- /dev/null
+++ b/net-libs/libsignon-glib/libsignon-glib-1.13-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+inherit autotools eutils python-r1 vcs-snapshot xdg-utils
+
+DESCRIPTION="GLib binding for the D-Bus API provided by signond"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="https://gitlab.com/accounts-sso/libsignon-glib/repository/archive.tar.gz?ref=VERSION_1.13 -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="amd64 x86"
+IUSE="debug doc +introspection python test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE} python? ( introspection )"
+
+RDEPEND="
+ dev-libs/glib:2
+ net-libs/signond
+ introspection? ( dev-libs/gobject-introspection:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${RDEPEND}
+ dev-util/gdbus-codegen
+ doc? ( dev-util/gtk-doc )
+"
+
+DOCS=( AUTHORS NEWS README )
+
+# needs more love
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ if ! use doc; then
+ epatch "${FILESDIR}/${PN}-1.12-doc-disable.patch"
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ xdg_environment_reset
+
+ myconfigure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable doc gtk-doc)
+ $(use_enable introspection)
+ $(use_enable python)
+ $(use_enable test tests)
+ )
+
+ econf "${myeconfargs[@]}"
+ }
+
+ if use python; then
+ python_copy_sources
+ python_foreach_impl run_in_build_dir myconfigure
+ else
+ myconfigure
+ fi
+}
+
+src_compile() {
+ # fails to compile with more than one thread
+ MAKEOPTS="${MAKEOPTS} -j1"
+ default
+ if use python; then
+ python_foreach_impl run_in_build_dir default
+ fi
+}
+
+src_install() {
+ default
+ if use python; then
+ python_foreach_impl run_in_build_dir default
+ fi
+ prune_libtool_files
+}
diff --git a/net-libs/libsignon-glib/metadata.xml b/net-libs/libsignon-glib/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/libsignon-glib/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/libsmi/Manifest b/net-libs/libsmi/Manifest
new file mode 100644
index 000000000000..d819730462a7
--- /dev/null
+++ b/net-libs/libsmi/Manifest
@@ -0,0 +1,8 @@
+AUX libsmi-0.4.8-CVE-2010-2891.patch 476 SHA256 1ac2b62d079d88e9543e903bc407f42e9dbf21ec72b195a4be06415a99ea21fc SHA512 e4e1f8f0e598656785123241cc8aabc948058229cd955ecf651dcb49332e9e35fc4c9831a6336e949e557e18e2af58bd8aa8f31b25628f32b35ced3972fa184f WHIRLPOOL f120c2beb35aa416c1c39c352c8d346de46047b7fa13d776a9c7e0115bccfb2018c4d994f210be18060fa52a5366bfdebc98bf2c96b223a278e9a16766ee5b48
+DIST libsmi-0.4.8.tar.gz 4104111 SHA256 f048a5270f41bc88b0c3b0a8fe70ca4d716a46b531a0ecaaa87c462f49d74849 SHA512 c4f5f30c9fbf26c2e0d87e29783794014a518a7494c17112b1970b5434c698d06ffd529ea58eb7856a0f86a30f1059aaf49d4fbdf39db971d9114d427d8a1863 WHIRLPOOL 33523c5aca6792c3ec08be748ce976046693188e61770db99c01a030b66442a387729c99196729efcd5a03c778f0263452a833a40add7173d65c4a9f51a6d842
+DIST libsmi-0.5.0.tar.gz 4798883 SHA256 f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3 SHA512 be82e6b7054426e4634ac9d90467b89a51a9c836273c9d516f07ff3cec3a8dcc8b3bb0e0396d5facec3d9c952b17fb67f24ff2d3959e7e5cf9eced72023a0708 WHIRLPOOL 13c33930981431729c5246d6f1a8a519c3985b04aa873475830dbc54ee8181eff7fa59c5cbd312633b29f2cac6c9cc74f2d922f2876aa8e461a47743e1445e3d
+EBUILD libsmi-0.4.8-r1.ebuild 984 SHA256 bf8c0ef839b98500aeac1d5ae485a7d24ac5a504b84f916886d53bae93a2b79f SHA512 a651655f233211b1bdccdcec6d5f7e8c042a1d6bb446e6f8d70bbcc2161e60f279da2a570bc478ff9ee3e7bfc6f687d06eddc14a53f79470053aa2c21d269053 WHIRLPOOL b16f1e853413c2d80aeb38f50f6f0f99dbff0e499bfe2d476d1a59beedf6a01ec30001b1b5013f6bc7eed0f927ca3548448d5b4a63cb52ed85d30b87218e3b25
+EBUILD libsmi-0.5.0.ebuild 872 SHA256 28eae4b096ea844beeeb463f346e0d6240fa2548b3320999ceac6786213382e0 SHA512 1d9543825233058b546ccba0d4b77a74e48cfb184e918884b4509fe8492e96267834df1843a466ca572ff4089c9005ea660239aefd76244911f4269207e97af3 WHIRLPOOL a226bfcc1962671536480bcf12c7c0703a563afaf4a8e0083e860ab7c4bb5c927ba10ffb74c3009c8b2e6274fc6333ddafef832b62e252111057961d1a232aef
+MISC ChangeLog 2776 SHA256 16d395a4ced36629b06e62b4581a0fd5dce42c98ce0c6b78f172b8d01eacaf7b SHA512 94c84426ea2cb128969b818f7f7412f7107ce49ec8263ef831fb05dcbba8621754cfa91fd687cb25b7dba8920216e98d803c8c49701675f8fe40666ed6800817 WHIRLPOOL af6db6b662c9a88981e1bfa994672912464e6749707c7ec80eaa506f9de25b8027711a54686f117a74638515ac2de1fb9b2e955ef505215bbb66b8b3d67240f6
+MISC ChangeLog-2015 4823 SHA256 8a1399e15b88402605b6312e93f285125babe4b83e8398d67c7ff7068af3daf0 SHA512 fa2e2d664cd56db6a9b6fb99ab94389288f82a9fa30d1f76951aad9e4d2428feb178dda28d7612cbd9026bfd89875620cf5ec615ba478526d0180298971b30c9 WHIRLPOOL 177289f04c95cf5eb75d559aca506dff5ee3fc4eb34875e43436fdde31ee5a809ede049415e78b93e8360c906e0a709bf8d0a5bd985083ef0575c0f80220e4ba
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-libs/libsmi/files/libsmi-0.4.8-CVE-2010-2891.patch b/net-libs/libsmi/files/libsmi-0.4.8-CVE-2010-2891.patch
new file mode 100644
index 000000000000..8c5e2f97dbf4
--- /dev/null
+++ b/net-libs/libsmi/files/libsmi-0.4.8-CVE-2010-2891.patch
@@ -0,0 +1,19 @@
+--- a/lib/smi.c
++++ b/lib/smi.c
+@@ -1793,10 +1793,15 @@
+ }
+
+ if (isdigit((int)node2[0])) {
+- for (oidlen = 0, p = strtok(node2, ". "); p;
++ for (oidlen = 0, p = strtok(node2, ". ");
++ p && oidlen < sizeof(oid)/sizeof(oid[0]);
+ oidlen++, p = strtok(NULL, ". ")) {
+ oid[oidlen] = strtoul(p, NULL, 0);
+ }
++ if (p) {
++ /* the numeric OID is too long */
++ return NULL;
++ }
+ nodePtr = getNode(oidlen, oid);
+ if (nodePtr) {
+ if (modulePtr) {
diff --git a/net-libs/libsmi/libsmi-0.4.8-r1.ebuild b/net-libs/libsmi/libsmi-0.4.8-r1.ebuild
new file mode 100644
index 000000000000..e6106337ab94
--- /dev/null
+++ b/net-libs/libsmi/libsmi-0.4.8-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic
+
+DESCRIPTION="A Library to Access SMI MIB Information"
+SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/${PN}/${P}.tar.gz"
+HOMEPAGE="http://www.ibr.cs.tu-bs.de/projects/libsmi"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE="static-libs"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-CVE-2010-2891.patch
+}
+
+src_configure() {
+ replace-flags -O? -O2
+ econf $(use_enable static-libs static)
+}
+
+src_test() {
+ # sming test is known to fail and some other fail if LC_ALL!=C:
+ # http://mail.ibr.cs.tu-bs.de/pipermail/libsmi/2008-March/001014.html
+ sed -i '/^[[:space:]]*smidump-sming.test \\$/d' test/Makefile
+ LC_ALL=C emake -j1 check || die
+}
+
+src_install () {
+ default
+ dodoc smi.conf-example ANNOUNCE ChangeLog README THANKS TODO \
+ doc/{*.txt,smi.dia,smi.dtd,smi.xsd}
+ prune_libtool_files
+}
diff --git a/net-libs/libsmi/libsmi-0.5.0.ebuild b/net-libs/libsmi/libsmi-0.5.0.ebuild
new file mode 100644
index 000000000000..8218cb6917a3
--- /dev/null
+++ b/net-libs/libsmi/libsmi-0.5.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="A Library to Access SMI MIB Information"
+HOMEPAGE="http://www.ibr.cs.tu-bs.de/projects/libsmi"
+SRC_URI="${HOMEPAGE}/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="static-libs"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_test() {
+ # sming test is known to fail and some other fail if LC_ALL!=C:
+ # http://mail.ibr.cs.tu-bs.de/pipermail/libsmi/2008-March/001014.html
+ sed -i '/^[[:space:]]*smidump-sming.test \\$/d' test/Makefile
+ LC_ALL=C emake -j1 check || die
+}
+
+src_install () {
+ default
+ dodoc smi.conf-example ANNOUNCE ChangeLog README THANKS TODO \
+ doc/{*.txt,smi.dia,smi.dtd,smi.xsd}
+ prune_libtool_files
+}
diff --git a/net-libs/libsmi/metadata.xml b/net-libs/libsmi/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-libs/libsmi/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 type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libsoup/Manifest b/net-libs/libsoup/Manifest
new file mode 100644
index 000000000000..3e0d8cc56893
--- /dev/null
+++ b/net-libs/libsoup/Manifest
@@ -0,0 +1,7 @@
+DIST libsoup-2.56.1.tar.xz 1806416 SHA256 c32a46d77b4da433b51d8fd09a57a44b198e03bdc93e5219afcc687c7948eac3 SHA512 5ac087eeba346c27e884a2053a4f8afdb2fc6e432527f4494024a7edc4eccdf145188a3faa64e3f4bdd98af2fcb98914e494b4ed24f92cffc2ff1485dce7d693 WHIRLPOOL a821342a2e592b12e901761ceb68281f68022c269977b322ea21ed7cda8f524db48ae93400eb8b59b7dd26cdbb5ec1913f9b63701d4303a6f62123cd6d2f0094
+DIST libsoup-2.58.2.tar.xz 1815256 SHA256 442300ca1b1bf8a3bbf2f788203287ff862542d4fc048f19a92a068a27d17b72 SHA512 85af6fac87343bdd22312518402144d33916225f60d6fa158efdd84f7ee7ed1f9895989b3558f711c9aedc93cff35a4114ad79d6d2aa19c54cb326f162a4c7de WHIRLPOOL 3b7b880c3f1374d00aef01ccc568c488efd672443da42bf6838d2a46b7cc1d4fe64f39b43205a3932767f28ef36f1552050afb45aa72d331150663d3c458ade6
+EBUILD libsoup-2.56.1.ebuild 2726 SHA256 471c4e625870c51ff0cc98239ef373dbfa420fec36f3f01a5baf95cf29b3c18e SHA512 342ca26d36901023c260c366b4dc97a003f88b397c803680aeb57de39129b48c8e12ad338673872ff315796da703ad782d4e473e658d690133247461a589b753 WHIRLPOOL 4fbca12aa8743a16c44f621dbd59597e52c99a20d0b3674b569ddc21d917cf77d5727f679cdbbd04c61771bb34aede7466006f5099d17171c7b0b3a9887700a3
+EBUILD libsoup-2.58.2.ebuild 2886 SHA256 d5ff431fd9a5a28a142e7bb532b034005111a26ef298bc296fdcaece54237c0b SHA512 d83b9af3d9adcf4b13e5db3bae95977904b2fe62239f04b042e8865aad6e345a6932433aef634237b8e4952d8f7aa70d2280363feb9e34da4242ac47746d814e WHIRLPOOL 6a81278e4fb8d29b18758fa525c5e030ee63ed050c2cf247a8824e48d163dcf7d758173acbb2ef5354bea182f274bc96cd034024cd51df7e0a94b5f5bbcbfdc6
+MISC ChangeLog 7759 SHA256 25119ab6e340c35fd94b808fac3755e5166bc1dd1157181055c0ccb1897e5b37 SHA512 e5f4d84ae8b8f9234229073c5be6485ae60a9e37db01ae4c1561e0a1e0958820cef7d3b9ce7c37de6033304b8cc346dc4c04aa02605ad67f38f41d275ab1653f WHIRLPOOL 57d33786dda1e78632681fcc5decbb1880325405d7e939d00b5a68bf7d0a97ec863b9f51df78ebb2a688a7327d804a02e85055070d27d2af93832bc37da72a87
+MISC ChangeLog-2015 47043 SHA256 c7c35637e10db05ba299439534cbfc9fd4d924f60f4a3f57922862ee9903d32b SHA512 199b5f3f0720f3bb5892a28bac5f4d2ecdb57152ea793123c148f9414886ba025c07a5af3e031f26baeda436cfe7e23a899215f41cd78f63ddd38ec73315fbf6 WHIRLPOOL 0fa2d30d955a8c027b46e730509ff6de89c98989e2d58059f5052057f955b5184fd6d6c21065f5b12af2a785fead58f1a88d857c0e942a59f475120bb16cc127
+MISC metadata.xml 402 SHA256 ac54600b5010808bba6a81d168cdec2b22a6865a9a55ab301bef0f38c8a8a8b2 SHA512 db900ca6c6904d8c293938f6cbd25a39aa123273cf42dd6f5c670635501c81af94e0c4076ca45267c2d8861ce61b3189900b3027c6477d9e9b6d3c093006ed9f WHIRLPOOL a4ac727a41b6ef181b773cff6c804d90e9b946dfd2f0509569a99cca954a857eaccefc749968dd2e9ebf0de86fb4576dacf01822b22a2ee17570406cf95fd71c
diff --git a/net-libs/libsoup/libsoup-2.56.1.ebuild b/net-libs/libsoup/libsoup-2.56.1.ebuild
new file mode 100644
index 000000000000..ea89078b478a
--- /dev/null
+++ b/net-libs/libsoup/libsoup-2.56.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 multilib-minimal python-any-r1 vala
+
+DESCRIPTION="An HTTP library implementation in C"
+HOMEPAGE="https://wiki.gnome.org/Projects/libsoup"
+
+LICENSE="LGPL-2+"
+SLOT="2.4"
+
+IUSE="debug gssapi +introspection samba ssl test vala"
+REQUIRED_USE="vala? ( introspection )"
+
+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.34.3:2[${MULTILIB_USEDEP}]
+ >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
+ >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}]
+ >=net-libs/glib-networking-2.38.2[ssl?,${MULTILIB_USEDEP}]
+ gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
+ samba? ( net-fs/samba )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ >=dev-util/intltool-0.35
+ >=dev-util/gtk-doc-am-1.20
+ sys-devel/gettext
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ test? ( >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] )
+ vala? ( $(vala_depend) )
+"
+# test? ( www-servers/apache[ssl,apache2_modules_auth_digest,apache2_modules_alias,apache2_modules_auth_basic,
+# apache2_modules_authn_file,apache2_modules_authz_host,apache2_modules_authz_user,apache2_modules_dir,
+# apache2_modules_mime,apache2_modules_proxy,apache2_modules_proxy_http,apache2_modules_proxy_connect]
+# dev-lang/php[apache2,xmlrpc]
+# net-misc/curl
+# net-libs/glib-networking[ssl])"
+
+src_prepare() {
+ if ! use test; then
+ # don't waste time building tests (bug #226271)
+ sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
+ || die "sed failed"
+ fi
+
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # FIXME: we need addpredict to workaround bug #324779 until
+ # root cause (bug #249496) is solved
+ addpredict /usr/share/snmp/mibs/.index
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ # Disable apache tests until they are usable on Gentoo, bug #326957
+ ECONF_SOURCE=${S} \
+ gnome2_src_configure \
+ --disable-static \
+ --disable-tls-check \
+ --without-gnome \
+ --without-apache-httpd \
+ $(usex debug --enable-debug=yes ' ') \
+ $(multilib_native_use_with gssapi) \
+ $(multilib_native_use_enable introspection) \
+ $(multilib_native_use_enable vala) \
+ $(use_with samba ntlm-auth '${EPREFIX}'/usr/bin/ntlm_auth)
+
+ if multilib_is_native_abi; then
+ # fix gtk-doc
+ ln -s "${S}"/docs/reference/html docs/reference/html || die
+ fi
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
diff --git a/net-libs/libsoup/libsoup-2.58.2.ebuild b/net-libs/libsoup/libsoup-2.58.2.ebuild
new file mode 100644
index 000000000000..05364a4db5bc
--- /dev/null
+++ b/net-libs/libsoup/libsoup-2.58.2.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 multilib-minimal python-any-r1 vala
+
+DESCRIPTION="An HTTP library implementation in C"
+HOMEPAGE="https://wiki.gnome.org/Projects/libsoup"
+
+LICENSE="LGPL-2+"
+SLOT="2.4"
+
+IUSE="debug gssapi +introspection samba ssl test vala"
+REQUIRED_USE="vala? ( introspection )"
+
+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.34.3:2[${MULTILIB_USEDEP}]
+ >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
+ >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}]
+ >=net-libs/glib-networking-2.38.2[ssl?,${MULTILIB_USEDEP}]
+ gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
+ samba? ( net-fs/samba )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ >=dev-util/intltool-0.35
+ >=dev-util/gtk-doc-am-1.20
+ sys-devel/gettext
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ test? ( >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] )
+ vala? ( $(vala_depend) )
+"
+# test? ( www-servers/apache[ssl,apache2_modules_auth_digest,apache2_modules_alias,apache2_modules_auth_basic,
+# apache2_modules_authn_file,apache2_modules_authz_host,apache2_modules_authz_user,apache2_modules_dir,
+# apache2_modules_mime,apache2_modules_proxy,apache2_modules_proxy_http,apache2_modules_proxy_connect]
+# dev-lang/php[apache2,xmlrpc]
+# net-misc/curl
+# net-libs/glib-networking[ssl])"
+
+src_prepare() {
+ if ! use test; then
+ # don't waste time building tests (bug #226271)
+ sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
+ || die "sed failed"
+ fi
+
+ # FIXME: workaround upstream not respecting --without-apache-httpd
+ sed -e '/check: start-httpd/d' \
+ -i tests/Makefile.am tests/Makefile.in || die
+
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # FIXME: we need addpredict to workaround bug #324779 until
+ # root cause (bug #249496) is solved
+ addpredict /usr/share/snmp/mibs/.index
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ # Disable apache tests until they are usable on Gentoo, bug #326957
+ ECONF_SOURCE=${S} \
+ gnome2_src_configure \
+ --disable-static \
+ --disable-tls-check \
+ --without-gnome \
+ --without-apache-httpd \
+ $(usex debug --enable-debug=yes ' ') \
+ $(multilib_native_use_with gssapi) \
+ $(multilib_native_use_enable introspection) \
+ $(multilib_native_use_enable vala) \
+ $(use_with samba ntlm-auth '${EPREFIX}'/usr/bin/ntlm_auth)
+
+ if multilib_is_native_abi; then
+ # fix gtk-doc
+ ln -s "${S}"/docs/reference/html docs/reference/html || die
+ fi
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
diff --git a/net-libs/libsoup/metadata.xml b/net-libs/libsoup/metadata.xml
new file mode 100644
index 000000000000..b01383c30263
--- /dev/null
+++ b/net-libs/libsoup/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <use>
+ <flag name="gssapi">Enable GSSAPI support</flag>
+ <flag name="samba">Use <pkg>net-fs/samba</pkg> for NTLM Single
+ Sign-On</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libsrsirc/Manifest b/net-libs/libsrsirc/Manifest
new file mode 100644
index 000000000000..e1c7b7574655
--- /dev/null
+++ b/net-libs/libsrsirc/Manifest
@@ -0,0 +1,3 @@
+DIST libsrsirc-0.0.14.tar.gz 431916 SHA256 7bf73c7b3ccbd73bcc423874abb49b0c59494f6a961640eebaf79a81c94e2dc7 SHA512 cc529f3ab6817cf8c87a24ed5f33b7ffdddd4a9c38f66dcb6be0ba9b0b2090861d1ca9232c7b217d20560dfc1361ada92b6a68e5157689ed37f1baeadb2ab767 WHIRLPOOL 9da90047944e64171bcc04b8d3d1fa59a8df313991370a1a1219d66a6884c620019de8265575a161686e749379f4279cfedc617406171ac1298280c9ae64a622
+EBUILD libsrsirc-0.0.14-r1.ebuild 592 SHA256 ecbd62da66f09d930c4f2f0bce8a682a05949658a982a9bd94610b5e5658e6da SHA512 6e2a61085b484868b336a96c8b75629e448a4719cba3ac2ac1a480cc1becf93c352767767873389812a0f132ff03de8e892373ce3d60efad08e702327275956c WHIRLPOOL 78610e85a2789aa19f43e2d5d299384841d54980d23a0a075dfb4d3056ed3a1c6685cc3cb0ed04ac7aa147852184c6655d76f6ba44247015ab353eb81901e037
+MISC metadata.xml 575 SHA256 9b704080ba7b99f822e5167a922761fb4bf7e6ec51e8e96aae7e1becc3ecae7c SHA512 5bd0c2b6ddece6ce2620f864e7bcae7b6027234829ec6529b10b6548f1ab522d951fefe4f7be44a452dc53c7c9c4d2cb49465d14c92057a0e5296ca781be973c WHIRLPOOL 4220c338d09b7a669df8c771a14c790c2c2796dcfb030fbf6ce8d84a2dcb9a89d0160e55722e66e6f226e5da895a56d386b7849572efa84b916f7d599cc7d065
diff --git a/net-libs/libsrsirc/libsrsirc-0.0.14-r1.ebuild b/net-libs/libsrsirc/libsrsirc-0.0.14-r1.ebuild
new file mode 100644
index 000000000000..3b52bea49ed6
--- /dev/null
+++ b/net-libs/libsrsirc/libsrsirc-0.0.14-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A lightweight, cross-platform IRC library"
+HOMEPAGE="https://github.com/fstd/libsrsirc"
+SRC_URI="http://penenen.de/${P}.tar.gz"
+LICENSE="BSD"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="static-libs ssl"
+
+DEPEND="
+ ssl? ( dev-libs/openssl:0= )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf $(use_enable static-libs static) $(use_with ssl)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+ mv "${ED}/usr/bin/icat" "${ED}/usr/bin/icat-lsi" || die
+}
diff --git a/net-libs/libsrsirc/metadata.xml b/net-libs/libsrsirc/metadata.xml
new file mode 100644
index 000000000000..cdff1c333bc5
--- /dev/null
+++ b/net-libs/libsrsirc/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 type="person">
+ <email>learath2@gmail.com</email>
+ <name>Emir Marincic</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ A lightweight, cross-platform IRC library
+ Written in portable standard C (C99)
+ </longdescription>
+ <upstream>
+ <remote-id type="github">fstd/libsrsirc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libsrtp/Manifest b/net-libs/libsrtp/Manifest
new file mode 100644
index 000000000000..1113b87e347c
--- /dev/null
+++ b/net-libs/libsrtp/Manifest
@@ -0,0 +1,30 @@
+AUX libsrtp-1.4.4-invalid-index.patch 412 SHA256 afef97d3da04d4d00ebc9aef598f32dce959a64e94da48c54f4201dfc5a0667c SHA512 eda02d691be19de883d061031c0c7070e375da3581f4294a7c8fa30f498c4c7aaa306c291230171d0391e226b624277ae09b4337dd14aa2625a9cb6bb4884764 WHIRLPOOL 3b0ecc41a920550efe935a647de469a67b2fa8784be4842c323d3efbbb237f8f0a706343f14fc6795bf53b35b8153f02eafb99e5ccacbeff80fe99312708f067
+AUX libsrtp-1.4.4-shared.patch 1670 SHA256 76bbfa40334c17327331f3532f45a6b83139dc94cc4eee9e4a48db4ece63961c SHA512 c9005c00fd81cf13243897f2803d1528812bd83849aa318c5cbabfb3fd7cd3870b94cf5d6ad6eaab5b181b2e439be6cdfe9a9a38338632bbf34647a18d120a69 WHIRLPOOL cbc5a2a44069326a64dc50080cc2f897ec706f414dd55e9c1565ded0a428693144f94bd84b992da669711a92691ea9366949e9cd0c39989ec9f28d1c1cc2b5f0
+AUX libsrtp-1.4.4_p20121108-shared.patch 1821 SHA256 8fc8c716c03e56f7211b85359211abb13c97c56a7670fa5236b8ed9e6b9894c4 SHA512 594b2e5e6efc74a93162e299fe4247ae6dfbd1864c02435bab2bcc2788716bd5afc6513d3842ea87260182ffd2de0abcab4577b13a26dcd75c5008a849bec709 WHIRLPOOL b5625fdf1c29725061d4523699d34b01f2b62afa5f6131642dbedc2a1de3c78ecceeddadfff00aebcf33296ab53efcfb124fa5f5a4b9840228a1c5c5266b9a6c
+AUX libsrtp-1.5.2-bindir.patch 879 SHA256 4a2b0d34cde1ff80efb6b9d115d1bdb9ef57f67908032502f01d7f878bace361 SHA512 d3eb6362dd9c79a3c670582435ba260965116fa1a57304b796498a9d4085e24044634bdcd8ba7f7b7b9f6df1b25db01ff1cad828228a823a03904b7f13d6d46f WHIRLPOOL e3cf54faac4c6163797bec8e9848b79546efcc29ca06e5192d2780fa7d15ddb4c36d41cb1f52acec708b216deaec06039ba18d6109ee64469797288cd04866ad
+AUX libsrtp-1.5.2-fix-make-install.patch 582 SHA256 38d8295cc6e706b694fbe88369e2c8e77e832456bf71729829d5b0d540a7c2c1 SHA512 09bbcc378ccc01fd396fe49bc874b7f6c42f7af7173b108cde89efa90bc407086ebc6b791343ddfd609cb108364d818ac327766404acc953d81b14d9c3babb1f WHIRLPOOL 830a145403f235448632c3b99074ac3f01cfa5418588764c4bafe75c5b45084378ed1a5e164a71f68c54cfa36ca3979788cd6e26ccae1d46e335fc8dbbdcd1be
+AUX libsrtp-2.1.0-pcap-automagic-r0.patch 692 SHA256 883db49d1db0619971d4db9bab531f98bfffd6b772abc21b4a47f42d470f897d SHA512 ac5ffa640d61332fcdb41e99895e2934e19211809011a9a8250a1e15dcc565072f7e2a6b4b24602769bf7c70a98ec3606832ef9ab2225bfa9fded2970b07d5fa WHIRLPOOL 861d657ff476002ebb2af7e90b0bf289d737f37e8238f121948a918116a078dc8d06edafd10f5f9f9516238f35c40c22c0f2bf7325f702c0911f0b7548b232ac
+AUX libsrtp-CVE-2013-2139.diff 1996 SHA256 185a89fc68bce34308b0ce0fd3f016d3a1506f092d75d0cb4ff232751dba1c01 SHA512 ea944ec993b8e923e2cb91a77336b5f898851f6948f6b5df45610f7528afdb7ad54706cee4acd49146b18c45f52fa5588f43e4fbc745b56df3c558d6bbf5b49b WHIRLPOOL a143d3e8278027b2bf97904fef1eff4ff09d52d60181495ea942527c64272bad46f71f3fbdde617cf39b4d5a3a542c66a00fd71663f69a0051d1237263e56c4f
+AUX libsrtp-pcap-automagic-r0.patch 615 SHA256 16615bc073bbb6da142d183b65a07c59ea961746b5daba91e749e29df7a81f7d SHA512 ee55bdf6f9c77ebacd7469db92f42ed09728fe91a81496ff425c07ad8610e9998fec2a8992b4fafd7c684bb06989837b0244172ed96483984d1c2e6ff6c0dc0c WHIRLPOOL 0ffdbad99bf94d8e23ba4176a859014421199f2b3b14531a01441054e92c3a33537b9c396e08b951527ceb40a7e5cb3a9c09103ce7c5264b5d712d606553d499
+DIST libsrtp-1.5.2.tar.gz 1690272 SHA256 86e1efe353397c0751f6bdd709794143bd1b76494412860f16ff2b6d9c304eda SHA512 fb09252edaca6da5b579fae34d3b6382ee0cf61a706e38283158ef10c879b9a0f80cfd0c354852e771b4649288dd5cc41158a4e046e8073cf26a586dfd41b024 WHIRLPOOL 973f27db06b725ca641a5c13184083926dbe0fd99ab18604b1d2d40fa0ab5118e9b978d729502a32bc25d05d6264ee501ff94f72e6dafd46588092f678f0a4c5
+DIST libsrtp-1.5.4.tar.gz 1646184 SHA256 56a7b521c25134f48faff26b0b1e3d4378a14986a2d3d7bc6fefb48987304ff0 SHA512 fcf6a36a0f687a6aa2b245e4055332ae892c953e19ebe3bfb7d091da0a7afbfcb804d9f602bd2d849235b559d3ca7924ee00c7f0da419c23b053b096ef4ccd19 WHIRLPOOL 7f4ee1f705efeeb635bc88845f094a49a7b447736799c8fd81d8cab4aa9c75f837f7dfb01295b2497f483ba033636cc5075258144a9afb87cea48c7bf57bb463
+DIST libsrtp-1.6.0.tar.gz 1648862 SHA256 1a3e7904354d55e45b3c5c024ec0eab1b8fa76fdbf4dd2ea2625dad2b3c6edde SHA512 5ac712d0d343c3b63ed248503cc7d33c637895a274c4434c91f513be117836f27cd5daba83088b4647bbd9c82d841e216e6346af8d485cb9ddcd35dee21d4887 WHIRLPOOL 833df06814810de1eef7e08d723e7e9f6bc2abe542d8835b86603d2df96f05f664ab8364a7d726bee57b4422d262f4595bcfe5800879490283cc15f15e2cebba
+DIST libsrtp-2.0.0.tar.gz 265564 SHA256 2296d132fd8cadd691d1fffeabbc1b9c42ec09e9e780a0d9bd8234a98e63a5a1 SHA512 61bba9aba9bb3e888c2bbc150411d0b3d583ed71ca455c5a3d4d6d06ecd383fdd61f86ad1979fb9c04da1b824e3fb9bb63f0d97e50b4a469d56907fb9dbc42d6 WHIRLPOOL 1ff2b9305d19e49f976708a885642fedb16c1775da1be5c977de6629cb705a3944402c54dd2b7e00ee67cac5ded828e457ac21e9e93178908a03177e203873ec
+DIST libsrtp-2.1.0.tar.gz 306090 SHA256 0302442ed97d34a77abf84617b657e77674bdd8e789d649f1cac0c5f0d0cf5ee SHA512 60f4eb6fd37517eb96df80ab8a9c6fd79dfc89d969bdb04673cd98364f7108fbc703a64b1898056f9220a55315574b6f3f796b6814086360f6fd143e3b20fb3f WHIRLPOOL 07f3716215cbbac9f91c8804c7df1298ae8aa4f9e48ae03c21194161e8e2d4dc7805bd825b70b2744239b883211dca4204bfaf135931cef39d34c35316a226e5
+DIST srtp-1.4.4.tgz 502890 SHA256 d9c2cbb1c95172ed2dc963eff0d6ce1072326dc81cb1dd38414e9f0e430af314 SHA512 951bfec212f579daae4a5a7fc9eded163dd6790da2e3840629dbeac36d7d960f95a1f1b844505629c7815816515f0784bf9b6e1c47f2986416ec04ec9d4b7564 WHIRLPOOL 82b01ce07de0c7b82d5f99b2fda6c72653e2927c3838a15dd1bb7e36725846599f2a96675dcf5ddfd7dcab9210f554b30fcf9bcb3806a60aa732d56926a4c07f
+DIST srtp-1.4.4_p20121108.tar.gz 485875 SHA256 ebc0b7b27f5ab669a058c82f62b1c96298a961d54633d7041e776bca19a4f295 SHA512 a6bf2674babed512bd90fd11d63adecf4ddf357d26652f321651fcc42d932d3d9f8713ecab4bdcddb026106a2d5bfbac0a626938f70822f5b1ee05881bb823d9 WHIRLPOOL 27296c776d60688dfa3c655999b6a87828036f9a71cff7a9ea9d1f0c6c5afa787eb625fb4ec9254b0eda459769fc0ca41cf4c1eaa38053cd365243c101f444bd
+EBUILD libsrtp-1.4.4-r1.ebuild 2064 SHA256 3a1e8d46ef8fa91ed8c7303210d80a8aa412c5838b4eeb89572bf5f4463d906d SHA512 da09ff91bc7bde76d985636e32536683023fb7b34342a295a24088b859f2635e4619c78f0dc9afb3c351d1d6147c04bdf49806b1b95bde31ad2c4546af55ce93 WHIRLPOOL b414a48b5c4dc0d9dd7f52199fed7cdf2e2131051646607956b6a3b6d644955f6f3a5998e15cb6067ef217fefcdd48edbbfcb8be058d26ee766e53cbe72eb7e8
+EBUILD libsrtp-1.4.4-r2.ebuild 2148 SHA256 3e0331dc2f054e47713f4d295e40a0a8da64026961b35abb2cac82ddfc07940f SHA512 c80c98621c1e8109ff42000e69d26eff5c336675f22e6b47c92363196f989a8f990ac9b2f286219d4d5f8866bc5380aa4bbbe0f71e25c80762a797fc60e8199d WHIRLPOOL 8f83756be5806c27aebefb15db96baadd3a12da4eaafb216cfc9e89a8c99b56144153e94347a625fcbdafdb815907c7e7289ffbd0c8d98c7c98c723ddc535195
+EBUILD libsrtp-1.4.4_p20121108-r1.ebuild 2155 SHA256 ad85b1a6e61bd30bf1ef85130b7a9df6a162a2ecb1ced6e286c9a9c4922a5944 SHA512 c8bdfa24074f95d245c7c07c077dcbeac210de8d3188d4ae307731d5cfb6087751ff50909153a10d0032320c568e9a036be626557d89458c5e57ea6deac58d9a WHIRLPOOL 8aefedd205b849a488b65de7e14fde42272a34e7c86676df70bffc372f30dcc7b1fa1f668e5439c5d33241ca0402743544327a26e2ddaa6d994621eb373ccda2
+EBUILD libsrtp-1.4.4_p20121108.ebuild 2113 SHA256 32e64e09d48f5d4df5a5aa68d871387574adf78f1dc09b4da1746c7e7476c328 SHA512 2a5770493f2aed583760c82d4dc210ee039a58b5eed52e5c2e6ea0f67591aa3f42201d3e703404899386b99ba0cfc6f606633302f4e9ad6409abfcf2b5f6bf70 WHIRLPOOL 6f009adcb55351443601d87fb80d22336e873bdba2452771a753da0dc09425f38eeca6b617f74c0ee04154add3df9fd37ff21c47380334e9feacd1060edab39f
+EBUILD libsrtp-1.5.2-r1.ebuild 2127 SHA256 1087729183941e36ebd563b5b0c292df16bc29d3347d3380f5f91c49c373fac7 SHA512 45515b72f71ad743925d051cb24118eb7e2be8d338dbb4660beb4849a7437183a16750b50900b018158d578b0ce1bdee3afd82a0be01b51bcdea9a4eacf208fe WHIRLPOOL c3df9be7ba57475f6eb5b0bf9c6b64793e2b63ce6a509b0dd1f455a32e9a6d01a19042f6a84ea137fd40c617ef671ff020ec306119d31828cc386d2377e6a90c
+EBUILD libsrtp-1.5.2.ebuild 2005 SHA256 472ed5f165d2c3b010da0d3d56605651011724a6b101a506a37c283cf6e33735 SHA512 481461a38a83e1cf8e98335cca602f488b09f4c3a235c7359522008c020f2e33686c0d8821813090a8f4942f8cfd755409b7b911c05d3b69966c38e9670e83de WHIRLPOOL 33734d1162c02e5670d0a38dab200b5b0e5e636e02ecee1f22de7fb0484d3d490e47a5a43459cb89193bcf7037e321a517d168cd2f55e6cbcdc08c249713b634
+EBUILD libsrtp-1.5.4-r1.ebuild 2184 SHA256 6ac294e94b98f47ad1558e0f2ba3f511a36dea2316e3cc4116425d90921a4271 SHA512 f0342c040eef97cb493ffc34ddc6b43a69ea8a2d464fc18db88e541eaaf4140322a56a59a129ee46bb55d8be51cee152e0561f1a8e64cfbefaae8426ccfb6323 WHIRLPOOL 4fe73348eb26a202870f4f2d5eb2f718addc20cc11eb4a204053ad892589a3fb20af8541379457e50c3b11fb1f6ed64f153da6531219f94739422f15e7b1f866
+EBUILD libsrtp-1.5.4.ebuild 1875 SHA256 c8a8ac9595cbc8ca898140e99ad040c29f13d9a2ac20a5906d0d826dccc4a4c4 SHA512 bd6823d4229558fbd9d0091646efa45b57b1366ed4bf59ad764139ccd8a0c34b024945e5db48790c91e2053f503cbae4cbcd628a89ac982a006bf4b12f4a414a WHIRLPOOL 6600657edd7f2869c2b2183753bc639c28e8fa8c36c5c18319c782d3777c13fc7352f7cb7aef35af4dde91add8bce11411133c5aa3398229af418a2263f7a20b
+EBUILD libsrtp-1.6.0.ebuild 2184 SHA256 6ac294e94b98f47ad1558e0f2ba3f511a36dea2316e3cc4116425d90921a4271 SHA512 f0342c040eef97cb493ffc34ddc6b43a69ea8a2d464fc18db88e541eaaf4140322a56a59a129ee46bb55d8be51cee152e0561f1a8e64cfbefaae8426ccfb6323 WHIRLPOOL 4fe73348eb26a202870f4f2d5eb2f718addc20cc11eb4a204053ad892589a3fb20af8541379457e50c3b11fb1f6ed64f153da6531219f94739422f15e7b1f866
+EBUILD libsrtp-2.0.0-r1.ebuild 1911 SHA256 e17ac6ce6f8f9d7dc92a8a71dc058356ce8bbcc79281d90547c2587005ba746a SHA512 8ee91195f444de10b1fcce602943d099ecf7ef4b2e4cae9d92c41fb71842db6395ec572bd298669069138f4525ae4008480c36000525d02f16ce8fe7ff5e757f WHIRLPOOL 62f37083c3929ec651e75137eb5ff13781b0c81050c2036ffa89308e80d487bb228d979ae7857b8c3be118e2e7930200b3e125d4220c9aaa60207224e053a92b
+EBUILD libsrtp-2.0.0.ebuild 1711 SHA256 8eba43f461b8052efdbf050a29f2b474b1d359e60b2bce01da922deef01281c6 SHA512 68343d3a4f86f72f6881e885a89110360e7e342ae65fac94706c0e08fcd6af7a0d00bf3cdff91f11cb77482e86ddbe7b041df7c4a9a59b54caa79e2346fa9c62 WHIRLPOOL 4e0a2efee6b2cf749ef314a4e86b99fc4e77e3b59f5c123e884365bc39f9472e15d118f7543520a81ad23c284e463b40e6d610854a6c6b539d80fb69cb3bf4cd
+EBUILD libsrtp-2.1.0.ebuild 1850 SHA256 523060ce5fbdb0f0816ae96adc92fb5638882fb1587f9e1c3f683518104ec22a SHA512 801ca4e6cc10549d56ecd6395d1a2e66f2a73624fc5502b9fc07bcf19f50f8f1c9bdea2d1463637d07c163b2ce2c598593925163aad10eaa9a76956b53442128 WHIRLPOOL c02ca82756b0f53ba49b555020811eae2b6c3d84142282c5a20b7e9b3ec8e68a50e85ea623ac1e8ae506075ad88c6ad878e672574b8b0f86cb6e6315102f6dd1
+MISC ChangeLog 4155 SHA256 c16fdf6c36cb4f618eced337c931b4b464eb897d33c6433ab1a24afad1b08c2c SHA512 0f2f8dcceb21edb8da9c86dab6d36cef79c732755d39241ab6684ba7041204797b18ebf67c11f06965218c2b2491bcfffd62d96ae63fc3122f42eebd41dec391 WHIRLPOOL 07bd8f6189abd30619b6bd5c6d0cc2ee938b04f1ee90abf39205de4e8c14a3ad8bbdf317fed75ef3f07de4b8184ec0e146363a94c640ca0741dfcb297fe6def6
+MISC ChangeLog-2015 5629 SHA256 f6250e0193dbdb9278677d602dccea797527d684477f5d9167a2508aeba7417e SHA512 433bb7ad601fed0ae84d5ae710322062263a5dec396c4267532cb869e1fbba69b77d7851dbe3eed42e5171681add453354b90be640e31ff9fedffaea9c39436b WHIRLPOOL 17093fd648972758ced3b0cf678a6d48cbd5067a1b88070353bf025cda50433693af16e5d226c208b49303c5b686aea0953970cc6b24ba7df42334cede2f31e2
+MISC metadata.xml 785 SHA256 40ae66bca7a05ddd83c0bd492b8146cf1a0cd5e95534b83698c21fe35a4d021f SHA512 3c23a7d6242dc7d42e34681850ad861bb67a5c44c5113ef5a82201127900e66bfbe03d065f60410d5652ed2abada24b1ac373a6c061392b48afb97080caa718d WHIRLPOOL 28ad2e7cec31ca8e870a5f64a3bd08bc272c9c2785fcf363832d61e95477cfe99ece961a866d0d276b3cb3b74e9171a71d4c907632ae36943fb5f5784f5e66af
diff --git a/net-libs/libsrtp/files/libsrtp-1.4.4-invalid-index.patch b/net-libs/libsrtp/files/libsrtp-1.4.4-invalid-index.patch
new file mode 100644
index 000000000000..90a8f019fd43
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-1.4.4-invalid-index.patch
@@ -0,0 +1,11 @@
+--- srtp/crypto/replay/rdb.c.orig 2012-03-20 14:52:32.890017830 +0100
++++ srtp/crypto/replay/rdb.c 2012-03-20 14:56:31.670017835 +0100
+@@ -115,7 +115,7 @@
+
+ /* shift the window forward by delta bits*/
+ v128_left_shift(&rdb->bitmask, delta);
+- v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask-delta);
++ v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask-1);
+ rdb->window_start += delta;
+
+ }
diff --git a/net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch b/net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch
new file mode 100644
index 000000000000..43b8843603c1
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch
@@ -0,0 +1,52 @@
+--- srtp/Makefile.in
++++ srtp/Makefile.in
+@@ -65,11 +65,11 @@
+
+
+ # implicit rules for object files and test apps
+
+ %.o: %.c
+- $(COMPILE) -c $< -o $@
++ $(COMPILE) -fPIC -c $< -o $@
+
+ %$(EXE): %.c
+ $(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS)
+
+
+@@ -103,10 +103,16 @@
+
+ libsrtp.a: $(srtpobj) $(cryptobj) $(gdoi)
+ ar cr libsrtp.a $^
+ $(RANLIB) libsrtp.a
+
++libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi)
++ $(CC) $(LDFLAGS) -shared -Wl,-soname,libsrtp.so.1 -o libsrtp.so.1.0 $^
++
++libsrtp.dylib: $(srtpobj) $(cryptobj) $(gdoi)
++ $(CC) $(LDFLAGS) -dynamiclib -install_name $(libdir)/libsrtp.1.dylib -o libsrtp.1.0.dylib $^
++
+ # libcryptomath.a contains general-purpose routines that are used to
+ # generate tables and verify cryptoalgorithm implementations - this
+ # library is not meant to be included in production code
+
+ cryptomath = crypto/math/math.o crypto/math/gf2_8.o
+@@ -195,10 +198,20 @@
+ $(INSTALL) -d $(DESTDIR)$(includedir)/srtp
+ $(INSTALL) -d $(DESTDIR)$(libdir)
+ cp include/*.h $(DESTDIR)$(includedir)/srtp
+ cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp
+ if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi
++ if [ -f libsrtp.so.1.0 ]; then \
++ cp libsrtp.so.1.0 $(DESTDIR)$(libdir)/; \
++ ln -s libsrtp.so.1.0 $(DESTDIR)$(libdir)/libsrtp.so.1; \
++ ln -s libsrtp.so.1.0 $(DESTDIR)$(libdir)/libsrtp.so; \
++ fi
++ if [ -f libsrtp.1.0.dylib ]; then \
++ cp libsrtp.1.0.dylib $(DESTDIR)$(libdir)/; \
++ ln -s libsrtp.1.0.dylib $(DESTDIR)$(libdir)/libsrtp.1.dylib; \
++ ln -s libsrtp.1.0.dylib $(DESTDIR)$(libdir)/libsrtp.dylib; \
++ fi
+
+ uninstall:
+ rm -rf $(DESTDIR)$(includedir)/srtp
+ rm -rf $(DESTDIR)$(libdir)/libsrtp.a
diff --git a/net-libs/libsrtp/files/libsrtp-1.4.4_p20121108-shared.patch b/net-libs/libsrtp/files/libsrtp-1.4.4_p20121108-shared.patch
new file mode 100644
index 000000000000..4e70a0ddd34e
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-1.4.4_p20121108-shared.patch
@@ -0,0 +1,55 @@
+Description: Hack build routines to compile shared library
+Author: loki_val and solar
+Origin: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch
+Last-Update: 2010-03-19
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -15,7 +15,7 @@
+
+ .PHONY: all test build_table_apps
+
+-all: test
++all: libsrtp.so test
+
+ runtest: build_table_apps test
+ @echo "running libsrtp test applications..."
+@@ -67,7 +67,7 @@
+ # implicit rules for object files and test apps
+
+ %.o: %.c
+- $(COMPILE) -c $< -o $@
++ $(COMPILE) -fPIC -c $< -o $@
+
+ %$(EXE): %.c
+ $(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS)
+@@ -105,6 +105,9 @@
+ ar cr libsrtp.a $^
+ $(RANLIB) libsrtp.a
+
++libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi)
++ $(CC) $(LDFLAGS) -shared -Wl,-soname,libsrtp.so.0 -o libsrtp.so.0.0 $^
++
+ # libcryptomath.a contains general-purpose routines that are used to
+ # generate tables and verify cryptoalgorithm implementations - this
+ # library is not meant to be included in production code
+@@ -198,6 +201,11 @@
+ cp $(srcdir)/crypto/include/*.h $(DESTDIR)$(includedir)/srtp
+ if [ "$(srcdir)" != "." ]; then cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp; fi
+ if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi
++ if [ -f libsrtp.so.0.0 ]; then \
++ cp libsrtp.so.0.0 $(DESTDIR)$(libdir)/; \
++ ln -s libsrtp.so.0.0 $(DESTDIR)$(libdir)/libsrtp.so.0; \
++ ln -s libsrtp.so.0.0 $(DESTDIR)$(libdir)/libsrtp.so; \
++ fi
+
+ uninstall:
+ rm -f $(DESTDIR)$(includedir)/srtp/*.h
+@@ -206,7 +214,7 @@
+
+ clean:
+ rm -rf $(cryptobj) $(srtpobj) $(cryptomath) TAGS \
+- libcryptomath.a libsrtp.a core *.core test/core
++ libcryptomath.a libsrtp.a libsrtp.so.0.0 core *.core test/core
+ for a in * */* */*/*; do \
+ if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
+ done;
diff --git a/net-libs/libsrtp/files/libsrtp-1.5.2-bindir.patch b/net-libs/libsrtp/files/libsrtp-1.5.2-bindir.patch
new file mode 100644
index 000000000000..2c71faf48ba9
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-1.5.2-bindir.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile.in b/Makefile.in
+index 1a40de2..02f090c 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -252,13 +252,13 @@ libsrtpdoc:
+ install:
+ $(INSTALL) -d $(DESTDIR)$(includedir)/srtp
+ $(INSTALL) -d $(DESTDIR)$(libdir)
+- $(INSTALL) -d $(DESTDIR)$(bindir)
+ cp $(srcdir)/include/*.h $(DESTDIR)$(includedir)/srtp
+ cp $(srcdir)/crypto/include/*.h $(DESTDIR)$(includedir)/srtp
+ if [ "$(srcdir)" != "." ]; then cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp; fi
+ if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi
+ if [ -f libsrtp.dll.a ]; then cp libsrtp.dll.a $(DESTDIR)$(libdir)/; fi
+ if [ -f libsrtp.$(SHAREDLIBSUFFIX) ]; then \
++ $(INSTALL) -d $(DESTDIR)$(SHAREDLIB_DIR); \
+ cp libsrtp.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/; \
+ ln -sfn libsrtp.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp.$(SHAREDLIBSUFFIXNOVER); \
+ fi
diff --git a/net-libs/libsrtp/files/libsrtp-1.5.2-fix-make-install.patch b/net-libs/libsrtp/files/libsrtp-1.5.2-fix-make-install.patch
new file mode 100644
index 000000000000..f3f1f0e5c1ae
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-1.5.2-fix-make-install.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.in b/Makefile.in
+index 002d25d..1a40de2 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -260,7 +260,7 @@ install:
+ if [ -f libsrtp.dll.a ]; then cp libsrtp.dll.a $(DESTDIR)$(libdir)/; fi
+ if [ -f libsrtp.$(SHAREDLIBSUFFIX) ]; then \
+ cp libsrtp.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/; \
+- cp libsrtp.$(SHAREDLIBSUFFIXNOVER) $(DESTDIR)$(SHAREDLIB_DIR)/; \
++ ln -sfn libsrtp.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp.$(SHAREDLIBSUFFIXNOVER); \
+ fi
+ if [ "$(pkgconfig_DATA)" != "" ]; then \
+ $(INSTALL) -d $(DESTDIR)$(pkgconfigdir); \
diff --git a/net-libs/libsrtp/files/libsrtp-2.1.0-pcap-automagic-r0.patch b/net-libs/libsrtp/files/libsrtp-2.1.0-pcap-automagic-r0.patch
new file mode 100644
index 000000000000..b29fa1ba4f95
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-2.1.0-pcap-automagic-r0.patch
@@ -0,0 +1,17 @@
+diff -uNr libsrtp-2.1.0.ORIG/configure.in libsrtp-2.1.0/configure.in
+--- libsrtp-2.1.0.ORIG/configure.in 2017-09-18 23:53:18.241631991 +0100
++++ libsrtp-2.1.0/configure.in 2017-09-18 23:55:30.077635461 +0100
+@@ -272,10 +272,13 @@
+ AC_SUBST([HMAC_OBJS])
+
+ dnl Checking for PCAP
++AC_ARG_ENABLE([pcap], AS_HELP_STRING([--disable-pcap], [Build without `pcap' library (-lpcap)]))
++AS_IF([test "x$enable_pcap" != "xno"], [
+ AC_CHECK_LIB([pcap], [pcap_create],
+ [LIBS="-lpcap $LIBS"
+ AC_DEFINE([HAVE_PCAP], [1], [Define to 1 if you have the `pcap' library (-lpcap)])
+ AC_SUBST([HAVE_PCAP], [1])])
++])
+
+ AC_MSG_CHECKING([whether to redirect logging to stdout])
+ AC_ARG_ENABLE([log-stdout],
diff --git a/net-libs/libsrtp/files/libsrtp-CVE-2013-2139.diff b/net-libs/libsrtp/files/libsrtp-CVE-2013-2139.diff
new file mode 100644
index 000000000000..dcafe177638b
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-CVE-2013-2139.diff
@@ -0,0 +1,46 @@
+diff --git a/srtp/srtp.c b/srtp/srtp.c
+index 839c1ee..7fd19e6 100644
+--- a/srtp/srtp.c
++++ b/srtp/srtp.c
+@@ -2063,23 +2063,18 @@ static inline int base_key_length(const cipher_type_t *cipher, int key_length)
+ switch(profile) {
+ case srtp_profile_aes128_cm_sha1_80:
+ crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
+- crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
+ break;
+ case srtp_profile_aes128_cm_sha1_32:
+ crypto_policy_set_aes_cm_128_hmac_sha1_32(policy);
+- crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
+ break;
+ case srtp_profile_null_sha1_80:
+ crypto_policy_set_null_cipher_hmac_sha1_80(policy);
+- crypto_policy_set_null_cipher_hmac_sha1_80(policy);
+ break;
+ case srtp_profile_aes256_cm_sha1_80:
+ crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
+- crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
+ break;
+ case srtp_profile_aes256_cm_sha1_32:
+ crypto_policy_set_aes_cm_256_hmac_sha1_32(policy);
+- crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
+ break;
+ /* the following profiles are not (yet) supported */
+ case srtp_profile_null_sha1_32:
+@@ -2100,6 +2095,8 @@ static inline int base_key_length(const cipher_type_t *cipher, int key_length)
+ crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
+ break;
+ case srtp_profile_aes128_cm_sha1_32:
++ /* We do not honor the 32-bit auth tag request since
++ * this is not compliant with RFC 3711 */
+ crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
+ break;
+ case srtp_profile_null_sha1_80:
+@@ -2109,6 +2106,8 @@ static inline int base_key_length(const cipher_type_t *cipher, int key_length)
+ crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
+ break;
+ case srtp_profile_aes256_cm_sha1_32:
++ /* We do not honor the 32-bit auth tag request since
++ * this is not compliant with RFC 3711 */
+ crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
+ break;
+ /* the following profiles are not (yet) supported */
diff --git a/net-libs/libsrtp/files/libsrtp-pcap-automagic-r0.patch b/net-libs/libsrtp/files/libsrtp-pcap-automagic-r0.patch
new file mode 100644
index 000000000000..12c677e2e5aa
--- /dev/null
+++ b/net-libs/libsrtp/files/libsrtp-pcap-automagic-r0.patch
@@ -0,0 +1,19 @@
+--- a/configure.in 2015-03-25 15:37:31.953386365 +0000
++++ b/configure.in 2015-03-25 15:39:49.192183689 +0000
+@@ -182,6 +182,8 @@
+ AC_SUBST(HMAC_OBJS)
+
+ dnl Checking for PCAP
++AC_ARG_ENABLE([pcap], AS_HELP_STRING([--disable-pcap], [Build without `pcap' library (-lpcap)]))
++AS_IF([test "x$enable_pcap" != "xno"], [
+ AC_CHECK_LIB([pcap],[pcap_create],
+ [PCAP=1
+ LIBS="-lpcap $LIBS"
+@@ -189,6 +191,7 @@
+ AC_DEFINE(HAVE_PCAP, 1, [Define to 1 if you have the `pcap' library (-lpcap)])
+ AC_SUBST(HAVE_PCAP)
+ ])
++])
+
+ AC_MSG_CHECKING(whether to use syslog for error reporting)
+ AC_ARG_ENABLE(syslog,
diff --git a/net-libs/libsrtp/libsrtp-1.4.4-r1.ebuild b/net-libs/libsrtp/libsrtp-1.4.4-r1.ebuild
new file mode 100644
index 000000000000..a1cf69cf69c6
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.4.4-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils multilib
+
+MY_PN="srtp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="http://srtp.sourceforge.net/srtp.html"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 -sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc syslog"
+
+S=${WORKDIR}/${MY_PN}
+
+src_prepare() {
+ # generate a shared lib
+ epatch "${FILESDIR}"/${P}-shared.patch
+}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ # target all is building test
+ emake ${PN}.a ${PN}$(get_libname) || die "emake failed"
+}
+
+src_test() {
+ # getopt returns an int, not a char
+ sed -i -e "s/char q/int q/" \
+ test/rdbx_driver.c test/srtp_driver.c test/dtls_srtp_driver.c \
+ || die "fixing getopt errors failed"
+
+ # test/rtpw_test.sh is assuming . is in $PATH
+ sed -i -e "s:\$RTPW :./\$RTPW :" test/rtpw_test.sh \
+ || die "patching test/rtpw_test.sh failed"
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c \
+ || die "patching test/rtpw.c failed"
+
+ emake test || die "building test failed"
+ emake -j1 runtest || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc CHANGES README TODO || die "dodoc failed"
+
+ if use doc; then
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ dodoc doc/*.txt doc/${PN}.pdf || die "dodoc failed"
+ fi
+}
diff --git a/net-libs/libsrtp/libsrtp-1.4.4-r2.ebuild b/net-libs/libsrtp/libsrtp-1.4.4-r2.ebuild
new file mode 100644
index 000000000000..403cd47ab0c9
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.4.4-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit base multilib
+
+MY_PN="srtp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="http://srtp.sourceforge.net/srtp.html"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc static-libs syslog"
+PATCHES=( "${FILESDIR}/${P}-shared.patch"
+ "${FILESDIR}/${P}-invalid-index.patch" )
+
+S=${WORKDIR}/${MY_PN}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ if use static-libs; then
+ emake ${PN}.a || die "Failed to build static library"
+ fi
+ emake ${PN}$(get_libname) || die "Failed to build dynamic library"
+}
+
+src_test() {
+ # getopt returns an int, not a char
+ sed -i -e "s/char q/int q/" \
+ test/rdbx_driver.c test/srtp_driver.c test/dtls_srtp_driver.c \
+ || die "fixing getopt errors failed"
+
+ # test/rtpw_test.sh is assuming . is in $PATH
+ sed -i -e "s:\$RTPW :./\$RTPW :" test/rtpw_test.sh \
+ || die "patching test/rtpw_test.sh failed"
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c \
+ || die "patching test/rtpw.c failed"
+
+ emake test || die "building test failed"
+ emake -j1 runtest || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc CHANGES README TODO || die "dodoc failed"
+
+ if use doc; then
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ dodoc doc/*.txt doc/${PN}.pdf || die "dodoc failed"
+ fi
+}
diff --git a/net-libs/libsrtp/libsrtp-1.4.4_p20121108-r1.ebuild b/net-libs/libsrtp/libsrtp-1.4.4_p20121108-r1.ebuild
new file mode 100644
index 000000000000..506809717b15
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.4.4_p20121108-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit base multilib
+
+MY_PN="srtp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="http://srtp.sourceforge.net/srtp.html"
+SRC_URI="https://dev.gentoo.org/~phajdan.jr/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 -sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc static-libs syslog"
+PATCHES=(
+ "${FILESDIR}/${P}-shared.patch"
+ "${FILESDIR}/${PN}-CVE-2013-2139.diff"
+ )
+
+S=${WORKDIR}/${MY_PN}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ if use static-libs; then
+ emake ${PN}.a || die "Failed to build static library"
+ fi
+ emake ${PN}$(get_libname) || die "Failed to build dynamic library"
+}
+
+src_test() {
+ # getopt returns an int, not a char
+ sed -i -e "s/char q/int q/" \
+ test/rdbx_driver.c test/srtp_driver.c test/dtls_srtp_driver.c \
+ || die "fixing getopt errors failed"
+
+ # test/rtpw_test.sh is assuming . is in $PATH
+ sed -i -e "s:\$RTPW :./\$RTPW :" test/rtpw_test.sh \
+ || die "patching test/rtpw_test.sh failed"
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c \
+ || die "patching test/rtpw.c failed"
+
+ emake test || die "building test failed"
+ emake -j1 runtest || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc CHANGES README TODO || die "dodoc failed"
+
+ if use doc; then
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ dodoc doc/*.txt doc/${PN}.pdf || die "dodoc failed"
+ fi
+}
diff --git a/net-libs/libsrtp/libsrtp-1.4.4_p20121108.ebuild b/net-libs/libsrtp/libsrtp-1.4.4_p20121108.ebuild
new file mode 100644
index 000000000000..516523cd0a82
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.4.4_p20121108.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit base multilib
+
+MY_PN="srtp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="http://srtp.sourceforge.net/srtp.html"
+SRC_URI="https://dev.gentoo.org/~phajdan.jr/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 -sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc static-libs syslog"
+PATCHES=( "${FILESDIR}/${P}-shared.patch" )
+
+S=${WORKDIR}/${MY_PN}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ if use static-libs; then
+ emake ${PN}.a || die "Failed to build static library"
+ fi
+ emake ${PN}$(get_libname) || die "Failed to build dynamic library"
+}
+
+src_test() {
+ # getopt returns an int, not a char
+ sed -i -e "s/char q/int q/" \
+ test/rdbx_driver.c test/srtp_driver.c test/dtls_srtp_driver.c \
+ || die "fixing getopt errors failed"
+
+ # test/rtpw_test.sh is assuming . is in $PATH
+ sed -i -e "s:\$RTPW :./\$RTPW :" test/rtpw_test.sh \
+ || die "patching test/rtpw_test.sh failed"
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c \
+ || die "patching test/rtpw.c failed"
+
+ emake test || die "building test failed"
+ emake -j1 runtest || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc CHANGES README TODO || die "dodoc failed"
+
+ if use doc; then
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ dodoc doc/*.txt doc/${PN}.pdf || die "dodoc failed"
+ fi
+}
diff --git a/net-libs/libsrtp/libsrtp-1.5.2-r1.ebuild b/net-libs/libsrtp/libsrtp-1.5.2-r1.ebuild
new file mode 100644
index 000000000000..306208cfa010
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.5.2-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools eutils
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc openssl static-libs syslog test"
+
+DEPEND="openssl? ( dev-libs/openssl:0 )"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGES README TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-pcap-automagic-r0.patch"
+ epatch "${FILESDIR}/${P}-fix-make-install.patch"
+ epatch "${FILESDIR}/${P}-bindir.patch"
+
+ # getopt returns an int, not a char
+ sed -i -e "s/char q/int q/" \
+ test/rdbx_driver.c test/srtp_driver.c test/dtls_srtp_driver.c || die
+
+ # test/rtpw_test.sh is assuming . is in $PATH
+ sed -i -e "s:\$RTPW :./\$RTPW :" test/rtpw_test.sh || die
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ # pcap: seems to be test-only
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ --disable-pcap \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable openssl) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ use static-libs && emake ${PN}.a
+ emake shared_library
+ use test && emake test
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}" emake -j1 runtest
+
+ # Makefile.in has '$(testapp): libsrtp.a'
+ if use !static-libs; then
+ rm libsrtp.a || die
+ fi
+}
+
+src_install() {
+ default
+
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ use doc && dodoc doc/*.txt doc/${PN}.pdf
+}
diff --git a/net-libs/libsrtp/libsrtp-1.5.2.ebuild b/net-libs/libsrtp/libsrtp-1.5.2.ebuild
new file mode 100644
index 000000000000..d13db21b9984
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.5.2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools base multilib
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc openssl static-libs syslog"
+
+DEPEND="openssl? ( dev-libs/openssl:0 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-pcap-automagic-r0.patch"
+ eautoreconf || die
+}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ # pcap: seems to be test-only
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ --disable-pcap \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable openssl) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ if use static-libs; then
+ emake ${PN}.a || die
+ fi
+ emake shared_library || die
+}
+
+src_test() {
+ # getopt returns an int, not a char
+ sed -i -e "s/char q/int q/" \
+ test/rdbx_driver.c test/srtp_driver.c test/dtls_srtp_driver.c || die
+
+ # test/rtpw_test.sh is assuming . is in $PATH
+ sed -i -e "s:\$RTPW :./\$RTPW :" test/rtpw_test.sh || die
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ emake test || die
+ emake -j1 runtest || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc CHANGES README TODO || die
+
+ if use doc; then
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ dodoc doc/*.txt doc/${PN}.pdf || die
+ fi
+}
diff --git a/net-libs/libsrtp/libsrtp-1.5.4-r1.ebuild b/net-libs/libsrtp/libsrtp-1.5.4-r1.ebuild
new file mode 100644
index 000000000000..01c124760188
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.5.4-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc libressl openssl static-libs syslog test"
+
+RDEPEND="
+ openssl? (
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGES README TODO )
+
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/srtp/config.h
+)
+PATCHES=( "${FILESDIR}/${PN}-pcap-automagic-r0.patch" )
+
+src_prepare() {
+ default
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ # pcap: seems to be test-only
+ ECONF_SOURCE=${S} \
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ --disable-pcap \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable openssl) \
+ $(use_enable syslog)
+}
+
+multilib_src_compile() {
+ use static-libs && emake ${PN}.a
+ emake shared_library
+ use test && emake test
+}
+
+multilib_src_test() {
+ # work-around tests that do not like out-of-source builds
+ cp "${S}"/test/{getopt_s,rtpw}.c "${BUILD_DIR}"/test/ || die
+
+ LD_LIBRARY_PATH="${BUILD_DIR}" emake -j1 runtest
+
+ # Makefile.in has '$(testapp): libsrtp.a'
+ if use !static-libs; then
+ rm libsrtp.a || die
+ fi
+}
+
+multilib_src_install_all() {
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ use doc && DOCS+=( doc/*.txt doc/${PN}.pdf )
+ einstalldocs
+}
diff --git a/net-libs/libsrtp/libsrtp-1.5.4.ebuild b/net-libs/libsrtp/libsrtp-1.5.4.ebuild
new file mode 100644
index 000000000000..2cea7278e552
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.5.4.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc libressl openssl static-libs syslog test"
+
+RDEPEND="
+ openssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGES README TODO )
+
+PATCHES=( "${FILESDIR}/${PN}-pcap-automagic-r0.patch" )
+
+src_prepare() {
+ default
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ # pcap: seems to be test-only
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ --disable-pcap \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable openssl) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ use static-libs && emake ${PN}.a
+ emake shared_library
+ use test && emake test
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}" emake -j1 runtest
+
+ # Makefile.in has '$(testapp): libsrtp.a'
+ if use !static-libs; then
+ rm libsrtp.a || die
+ fi
+}
+
+src_install() {
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ use doc && DOCS+=( doc/*.txt doc/${PN}.pdf )
+
+ default
+}
diff --git a/net-libs/libsrtp/libsrtp-1.6.0.ebuild b/net-libs/libsrtp/libsrtp-1.6.0.ebuild
new file mode 100644
index 000000000000..01c124760188
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.6.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc libressl openssl static-libs syslog test"
+
+RDEPEND="
+ openssl? (
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGES README TODO )
+
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/srtp/config.h
+)
+PATCHES=( "${FILESDIR}/${PN}-pcap-automagic-r0.patch" )
+
+src_prepare() {
+ default
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ # pcap: seems to be test-only
+ ECONF_SOURCE=${S} \
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ --disable-pcap \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable openssl) \
+ $(use_enable syslog)
+}
+
+multilib_src_compile() {
+ use static-libs && emake ${PN}.a
+ emake shared_library
+ use test && emake test
+}
+
+multilib_src_test() {
+ # work-around tests that do not like out-of-source builds
+ cp "${S}"/test/{getopt_s,rtpw}.c "${BUILD_DIR}"/test/ || die
+
+ LD_LIBRARY_PATH="${BUILD_DIR}" emake -j1 runtest
+
+ # Makefile.in has '$(testapp): libsrtp.a'
+ if use !static-libs; then
+ rm libsrtp.a || die
+ fi
+}
+
+multilib_src_install_all() {
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ use doc && DOCS+=( doc/*.txt doc/${PN}.pdf )
+ einstalldocs
+}
diff --git a/net-libs/libsrtp/libsrtp-2.0.0-r1.ebuild b/net-libs/libsrtp/libsrtp-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..c15b98e7a291
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-2.0.0-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="2/1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc libressl openssl static-libs syslog test"
+
+RDEPEND="
+ openssl? (
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGES README TODO )
+
+PATCHES=( "${FILESDIR}/${PN}-pcap-automagic-r0.patch" )
+
+src_prepare() {
+ default
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ eautoreconf
+
+ # sadly, tests are too broken to even consider using work-arounds
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ # stdout: default error output for messages in debug
+ # pcap: seems to be test-only
+ # openssl-kdf: OpenSSL 1.1.0+
+ econf \
+ --enable-stdout \
+ --disable-pcap \
+ --disable-openssl-kdf \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable openssl)
+}
+
+multilib_src_compile() {
+ use static-libs && emake ${PN}.a
+ emake shared_library
+ use test && emake test
+}
+
+multilib_src_test() {
+ LD_LIBRARY_PATH="${BUILD_DIR}" emake -j1 runtest
+
+ # Makefile.in has '$(testapp): libsrtp2.a'
+ if use !static-libs; then
+ rm libsrtp2.a || die
+ fi
+}
+
+multilib_src_install_all() {
+ # libsrtp.pdf can be generated with doxygen, but it seems to be broken.
+ use doc && DOCS+=( doc/*.txt )
+ einstalldocs
+}
diff --git a/net-libs/libsrtp/libsrtp-2.0.0.ebuild b/net-libs/libsrtp/libsrtp-2.0.0.ebuild
new file mode 100644
index 000000000000..828aec3146b7
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-2.0.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="2/1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc libressl openssl static-libs syslog test"
+
+RDEPEND="
+ openssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGES README TODO )
+
+PATCHES=( "${FILESDIR}/${PN}-pcap-automagic-r0.patch" )
+
+src_prepare() {
+ default
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # pcap: seems to be test-only
+ # openssl-kdf: OpenSSL 1.1.0+
+ econf \
+ --enable-stdout \
+ --disable-pcap \
+ --disable-openssl-kdf \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable openssl)
+}
+
+src_compile() {
+ use static-libs && emake ${PN}.a
+ emake shared_library
+ use test && emake test
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}" emake -j1 runtest
+
+ # Makefile.in has '$(testapp): libsrtp2.a'
+ if use !static-libs; then
+ rm libsrtp2.a || die
+ fi
+}
+
+src_install() {
+ # libsrtp.pdf can be generated with doxygen, but it seems to be broken.
+ use doc && DOCS+=( doc/*.txt )
+
+ default
+}
diff --git a/net-libs/libsrtp/libsrtp-2.1.0.ebuild b/net-libs/libsrtp/libsrtp-2.1.0.ebuild
new file mode 100644
index 000000000000..2321a7cd5f48
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-2.1.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="https://github.com/cisco/libsrtp"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="2/1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="aesicm console debug doc libressl openssl static-libs syslog test"
+
+RDEPEND="
+ openssl? (
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGES )
+
+PATCHES=( "${FILESDIR}/${P}-pcap-automagic-r0.patch" )
+
+src_prepare() {
+ default
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c || die
+
+ eautoreconf
+
+ # sadly, tests are too broken to even consider using work-arounds
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ # stdout: default error output for messages in debug
+ # pcap: seems to be test-only
+ # openssl-kdf: OpenSSL 1.1.0+
+ econf \
+ --enable-log-stdout \
+ --disable-pcap \
+ --disable-openssl-kdf \
+ $(use_enable debug debug-logging) \
+ $(use_enable openssl)
+}
+
+multilib_src_compile() {
+ use static-libs && emake ${PN}.a
+ emake shared_library
+ use test && emake test
+}
+
+multilib_src_test() {
+ LD_LIBRARY_PATH="${BUILD_DIR}" emake -j1 runtest
+
+ # Makefile.in has '$(testapp): libsrtp2.a'
+ if use !static-libs; then
+ rm libsrtp2.a || die
+ fi
+}
+
+multilib_src_install_all() {
+ # libsrtp.pdf can be generated with doxygen, but it seems to be broken.
+ use doc && DOCS+=( doc/*.txt )
+ einstalldocs
+}
diff --git a/net-libs/libsrtp/metadata.xml b/net-libs/libsrtp/metadata.xml
new file mode 100644
index 000000000000..452aeee73ceb
--- /dev/null
+++ b/net-libs/libsrtp/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>chromium@gentoo.org</email>
+ <name>Chromium in Gentoo Project</name>
+ </maintainer>
+ <use>
+ <flag name="aesicm">Use AES ICM cryptographic algorithm</flag>
+ <flag name="console">
+ Use /dev/console instead of stdout for error messages
+ </flag>
+ <flag name="openssl">Use OpenSSL crypto primitives</flag>
+ <flag name="syslog">Use syslog for error messages</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">cisco/libsrtp</remote-id>
+ <remote-id type="sourceforge">srtp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libssh/Manifest b/net-libs/libssh/Manifest
new file mode 100644
index 000000000000..826083c73c4c
--- /dev/null
+++ b/net-libs/libssh/Manifest
@@ -0,0 +1,11 @@
+AUX libssh-0.5.0-tests.patch 446 SHA256 d23cf31e1fe6c0e1b1ee31f88a74b1a02386d75ab72063a39fea8c467dfc3383 SHA512 e751ac1c3749ecbd8ee2f960ad09e861763cbdb9bccc7c95ae27ca4768e8c9ae5ab55342151a2799f8f937e63a8729bff6f04cec166bb9830b99f8f690da4825 WHIRLPOOL 55031d07f02fe43f32391ae20e78b5a689df342e96d0feb2a03f674251b743ae502955e9d1e93539ca4f25f2eb151d8d02fb594e509978356c4bae90fcdca695
+AUX libssh-0.7.5-fix-config-buffer-underflow.patch 742 SHA256 cc0e9b3fedd7a31e04eea43a295efdd9df912c666c6a1f83558c20198102a38e SHA512 0e6ed4f39637b5bc3476225b1cbd28891e668609e681b4b55343c37d6a7f0c5be0f71ce684b6a83ab5e5f14cca3206d0752a17cab1138fdf274656ba36a764e5 WHIRLPOOL 44ed9815d57edc8cc5e1fc5483b9e84cfd985b16d8fe7897d32c567e92d5403698431f6e422ca2788db2ecb0c3ebd5a884fe47915250e10b1cbf907441a41e9e
+AUX libssh-0.7.5-fix-config-parsing.patch 1076 SHA256 c39bed86f34a377015fb6d6552700a3838c5cae1a4a83b3e859539785aeabdba SHA512 45d21c11ce242d6f2a86fe1fe96ed934a06d0dd54b9e2af6ad873bbec1b0db91cb884879205f42c1006740a4cfc1c16723180f447640e96e8373b39be8828aa5 WHIRLPOOL 707976bf6a9dfbb61dced3b0250afd6af70da50bc3f6a32e30d18b5679b92f769985d0de4a4f0123995a11acb3c71fa2a953a34a046536fe145952db0557ec3a
+DIST libssh-0.7.4.tar.xz 351892 SHA256 39e1bec3b3cb452af3b8fd7f59c12c5ef5b9ed64f057c7eb0d1a5cac67ba6c0d SHA512 94b8183e5c83e339303c1a160c92ccff6159471ac7d189ab66cf6d606d2e803fd616519f079aef1577c947d3a14e315332b05ea08e44d0ab550edbcb768dbea7 WHIRLPOOL 6698bdfa7e9720fa9c31f1cf85660eb463c853a24867d643f6df1af932299500606d4d768687e6379c653e815dabb3299dd1098076f76f50b6dd0742f3edb85d
+DIST libssh-0.7.5.tar.xz 351632 SHA256 54e86dd5dc20e5367e58f3caab337ce37675f863f80df85b6b1614966a337095 SHA512 6c7f539899caaedf13d66fa2e0fac1a475ecdfe389131abcbdf908bdebc50a0b9e6b0d43e67e52aea85c32f6aa68e46ca2f50695992f82ded83489f445a8e775 WHIRLPOOL 9ecb759a35a0c39f6e472134f6e224c0764c0a909aedb77a379d3d8e9399e200a4421d268e379ded5bd68c51ffaf559c6765f799f55ba120320176def0daae2d
+EBUILD libssh-0.7.4.ebuild 2478 SHA256 feffa79f80c74d09247a2b81fb738e85f797882577cf6e1143a0c5d4683f15d7 SHA512 1c7b902fd9dbd2e4826be08c9d326dd3bf858e8ebedfe489ddcef917c888f225742967b93cdf8d647bb42ff4e5938b463e3e7526afd76986b7561399ffb10079 WHIRLPOOL 59b96b6d380a42de55366dd07bccdb457ae9861d1c252b9e8b11fcccfe4bef26a31a8709c5851ed4a8f209a5aac5c76e193ef8d22ebca2e6e287f82d8c35c321
+EBUILD libssh-0.7.5-r1.ebuild 2572 SHA256 6929809e52addad23452c4dff695fe13ac7f8275a7c4ef9111914b8b02752d07 SHA512 6653cd6ca61bea75ab815e219c8a8f4bf03d99a8b25c3d948f3bf6ecd363b0ffded197a57cef7bf392a4dd08069d58992155b5fef38121d9e4eb524459a703f4 WHIRLPOOL c80b2de49d842f7e96f6c0419bf008a5927c420ddd4019c0130b55871e258e5805a1b08f903d6d941c8caa98b69c943154018f5b3c8044e4427f4f4c9b4d0d6f
+EBUILD libssh-9999.ebuild 2125 SHA256 c6212bdd8c919f99c111a12e97ca42026abaa5e28f941c3b69236d204f9289f1 SHA512 9dbb0ee5cafac2165d993d204b52d49425a1257ccc27e4c1631c152c97849a03273a4a996b5e03c365c19ebad6130d14d96edad2d086116dc5a01d8bbd79fa01 WHIRLPOOL a85ae2e18e54338ba6b47e9e29bf17489ea069ff89aa65e8d8ae0b4accf50f5f7869937a44a05a2feb9c2092a362bf90f1808881eb62f776e96310a5eb03a547
+MISC ChangeLog 7296 SHA256 daad24ca23c37650554fde2a456ba28597d48b11eff68db6fefc7ff60a775d58 SHA512 1b1b28b822d0f44d4d4046c40b053283130346392b5fde351db35fcd37466dfd6d37d67b5cda5cf0a39cb11d44966b0a9c88871557b03ef0d2aeadf10789afbc WHIRLPOOL f3d34b487d9655829ffd3bfbcd729a7b3b23cb941be00ab1be29bb4fe2f49ccfc6b5daddc8eef42802a7af20de2bc5d4829bd7433985c8311250ae7989488a50
+MISC ChangeLog-2015 19105 SHA256 42955a5b99080071173e9c8d53acb82f27ad05f6a5b512d78900b4a89f26fb8d SHA512 708133f73e692cf1e683bdf384efdb8b56f13f694559f6adffa5e32731309fca9e5b8dafa83c3ed1a8d7f5fef41230157ad7492c44b954b36ea59e1a8be0d84b WHIRLPOOL 30376871e5a4b3928d677914f0dd31a3e4b78170e33d58410b9fb5e8d2f9fe77497c619ce4a9b39e1bd67c0020ac42f383e76a161033a60b8aec0a1036d2aad3
+MISC metadata.xml 648 SHA256 1b832da52b58425c8980cd84016b49a38e3dea3f7926b0f3b1e0972cb50a2817 SHA512 4e99644645a43ccf7c479c6808ecb2dfe9f9aba69518ab1e2a1289732b926d853ff5554c69fff71e4bb572d12af298ebe19ecb1086da2e8675153b5c42faf589 WHIRLPOOL 43b9e77f6b31be512ccc6b052437776b7f7b278a54ca643431b0f07118efb4c5633968ed6f7f4872870a55c9280936ecf88791bc5a0b6a6bcb48fb86eeacfe60
diff --git a/net-libs/libssh/files/libssh-0.5.0-tests.patch b/net-libs/libssh/files/libssh-0.5.0-tests.patch
new file mode 100644
index 000000000000..dde770ce5b2a
--- /dev/null
+++ b/net-libs/libssh/files/libssh-0.5.0-tests.patch
@@ -0,0 +1,11 @@
+--- a/tests/unittests/torture_misc.c
++++ b/tests/unittests/torture_misc.c
+@@ -195,7 +195,7 @@
+ #ifdef _WIN32
+ unit_test(torture_path_expand_tilde_win),
+ #else
+- unit_test(torture_path_expand_tilde_unix),
++ //unit_test(torture_path_expand_tilde_unix),
+ #endif
+ unit_test_setup_teardown(torture_path_expand_escape, setup, teardown),
+ unit_test_setup_teardown(torture_path_expand_known_hosts, setup, teardown),
diff --git a/net-libs/libssh/files/libssh-0.7.5-fix-config-buffer-underflow.patch b/net-libs/libssh/files/libssh-0.7.5-fix-config-buffer-underflow.patch
new file mode 100644
index 000000000000..7ff03263d198
--- /dev/null
+++ b/net-libs/libssh/files/libssh-0.7.5-fix-config-buffer-underflow.patch
@@ -0,0 +1,25 @@
+From 0cffb88b80b1e8b7e292646b955e9b9ca02315c4 Mon Sep 17 00:00:00 2001
+From: Aris Adamantiadis <aris@0xbadc0de.be>
+Date: Thu, 8 Jun 2017 00:22:02 +0200
+Subject: config: fix buffer underflow with unrecognized opcodes
+
+---
+ src/config.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/config.c b/src/config.c
+index 519926e7..6187c90f 100644
+--- a/src/config.c
++++ b/src/config.c
+@@ -218,7 +218,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
+ }
+
+ opcode = ssh_config_get_opcode(keyword);
+- if (*parsing == 1 && opcode != SOC_HOST) {
++ if (*parsing == 1 && opcode != SOC_HOST && opcode != SOC_UNSUPPORTED) {
+ if (seen[opcode] != 0) {
+ return 0;
+ }
+--
+cgit v1.1
+
diff --git a/net-libs/libssh/files/libssh-0.7.5-fix-config-parsing.patch b/net-libs/libssh/files/libssh-0.7.5-fix-config-parsing.patch
new file mode 100644
index 000000000000..3596cf02105d
--- /dev/null
+++ b/net-libs/libssh/files/libssh-0.7.5-fix-config-parsing.patch
@@ -0,0 +1,32 @@
+From 5333be5988c3789e7011598995f4df90d50d84d0 Mon Sep 17 00:00:00 2001
+From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
+Date: Sun, 4 Jun 2017 11:54:55 +0300
+Subject: config: Bugfix: Don't skip unseen opcodes
+
+libssh fails to read the configuration from a config file due to a
+wrong check in 'ssh_config_parse_line' procedure in 'config.c'; it's
+effectively skipping every opcode (and therefore every option) from
+the file. The change fixes that behaviour.
+
+Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
+Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
+---
+ src/config.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/config.c b/src/config.c
+index 6478fc5f..519926e7 100644
+--- a/src/config.c
++++ b/src/config.c
+@@ -219,7 +219,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
+
+ opcode = ssh_config_get_opcode(keyword);
+ if (*parsing == 1 && opcode != SOC_HOST) {
+- if (seen[opcode] == 0) {
++ if (seen[opcode] != 0) {
+ return 0;
+ }
+ seen[opcode] = 1;
+--
+cgit v1.1
+
diff --git a/net-libs/libssh/libssh-0.7.4.ebuild b/net-libs/libssh/libssh-0.7.4.ebuild
new file mode 100644
index 000000000000..a11813cc768b
--- /dev/null
+++ b/net-libs/libssh/libssh-0.7.4.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P=${PN}-${PV/_rc/rc}
+inherit eutils cmake-multilib multilib
+
+DESCRIPTION="Access a working SSH implementation by means of a library"
+HOMEPAGE="http://www.libssh.org/"
+SRC_URI="https://red.libssh.org/attachments/download/210/${MY_P}.tar.xz -> ${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
+SLOT="0/4" # subslot = soname major version
+IUSE="debug doc examples gcrypt gssapi libressl pcap +sftp ssh1 server static-libs test zlib"
+# Maintainer: check IUSE-defaults at DefineOptions.cmake
+
+RDEPEND="
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+"
+DEPEND="
+ ${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
+"
+
+DOCS=( AUTHORS README ChangeLog )
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.0-tests.patch
+)
+
+src_prepare() {
+ # just install the examples do not compile them
+ sed -i \
+ -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \
+ CMakeLists.txt || die
+
+ # keyfile torture test is currently broken
+ sed \
+ -e '/torture_keyfiles/d' \
+ -i tests/unittests/CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DWITH_DEBUG_CALLTRACE="$(usex debug)"
+ -DWITH_DEBUG_CRYPTO="$(usex debug)"
+ -DWITH_GCRYPT="$(usex gcrypt)"
+ -DWITH_GSSAPI="$(usex gssapi)"
+ -DWITH_NACL=no
+ -DWITH_PCAP="$(usex pcap)"
+ -DWITH_SERVER="$(usex server)"
+ -DWITH_SFTP="$(usex sftp)"
+ -DWITH_SSH1="$(usex ssh1)"
+ -DWITH_STATIC_LIB="$(usex static-libs)"
+ -DWITH_STATIC_LIB="$(usex test)"
+ -DWITH_TESTING="$(usex test)"
+ -DWITH_ZLIB="$(usex zlib)"
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+ multilib_is_native_abi && use doc && cmake-utils_src_compile doc
+}
+
+multilib_src_install() {
+ cmake-utils_src_install
+
+ if multilib_is_native_abi && use doc ; then
+ docinto html
+ dodoc -r doc/html/.
+ fi
+
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/libssh{,_threads}.a
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ if use examples; then
+ docinto examples
+ dodoc examples/*.{c,h,cpp}
+ fi
+}
diff --git a/net-libs/libssh/libssh-0.7.5-r1.ebuild b/net-libs/libssh/libssh-0.7.5-r1.ebuild
new file mode 100644
index 000000000000..6cf8db76a118
--- /dev/null
+++ b/net-libs/libssh/libssh-0.7.5-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${PN}-${PV/_rc/rc}"
+inherit cmake-multilib
+
+DESCRIPTION="Access a working SSH implementation by means of a library"
+HOMEPAGE="https://www.libssh.org/"
+SRC_URI="https://red.libssh.org/attachments/download/218/${MY_P}.tar.xz -> ${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+SLOT="0/4" # subslot = soname major version
+IUSE="debug doc examples gcrypt gssapi libressl pcap server +sftp ssh1 static-libs test zlib"
+# Maintainer: check IUSE-defaults at DefineOptions.cmake
+
+RDEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
+"
+
+DOCS=( AUTHORS README ChangeLog )
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.0-tests.patch
+ "${FILESDIR}"/${P}-fix-config-parsing.patch
+ "${FILESDIR}"/${P}-fix-config-buffer-underflow.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # just install the examples do not compile them
+ sed -i \
+ -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \
+ CMakeLists.txt || die
+
+ # keyfile torture test is currently broken
+ sed -i \
+ -e '/torture_keyfiles/d' \
+ tests/unittests/CMakeLists.txt || die
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DWITH_DEBUG_CALLTRACE="$(usex debug)"
+ -DWITH_DEBUG_CRYPTO="$(usex debug)"
+ -DWITH_GCRYPT="$(usex gcrypt)"
+ -DWITH_GSSAPI="$(usex gssapi)"
+ -DWITH_NACL=no
+ -DWITH_PCAP="$(usex pcap)"
+ -DWITH_SERVER="$(usex server)"
+ -DWITH_SFTP="$(usex sftp)"
+ -DWITH_SSH1="$(usex ssh1)"
+ -DWITH_STATIC_LIB="$(usex static-libs)"
+ -DWITH_STATIC_LIB="$(usex test)"
+ -DWITH_TESTING="$(usex test)"
+ -DWITH_ZLIB="$(usex zlib)"
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+ multilib_is_native_abi && use doc && cmake-utils_src_compile doc
+}
+
+multilib_src_install() {
+ cmake-utils_src_install
+
+ if multilib_is_native_abi && use doc ; then
+ docinto html
+ dodoc -r doc/html/.
+ fi
+
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/libssh{,_threads}.a
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ if use examples; then
+ docinto examples
+ dodoc examples/*.{c,h,cpp}
+ fi
+}
diff --git a/net-libs/libssh/libssh-9999.ebuild b/net-libs/libssh/libssh-9999.ebuild
new file mode 100644
index 000000000000..193f9eb86e6f
--- /dev/null
+++ b/net-libs/libssh/libssh-9999.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib git-r3
+
+DESCRIPTION="Access a working SSH implementation by means of a library"
+HOMEPAGE="http://www.libssh.org/"
+EGIT_REPO_URI="git://git.libssh.org/projects/libssh.git"
+
+LICENSE="LGPL-2.1"
+KEYWORDS=""
+SLOT="0"
+IUSE="debug doc examples gcrypt gssapi libressl pcap server +sftp ssh1 static-libs test zlib"
+# Maintainer: check IUSE-defaults at DefineOptions.cmake
+
+RDEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
+"
+
+DOCS=( AUTHORS README ChangeLog )
+
+EGIT_MIN_CLONE_TYPE=single
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # just install the examples do not compile them
+ sed -i \
+ -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \
+ CMakeLists.txt || die
+
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DWITH_DEBUG_CALLTRACE="$(usex debug)"
+ -DWITH_DEBUG_CRYPTO="$(usex debug)"
+ -DWITH_GCRYPT="$(usex gcrypt)"
+ -DWITH_GSSAPI="$(usex gssapi)"
+ -DWITH_NACL=no
+ -DWITH_PCAP="$(usex pcap)"
+ -DWITH_SERVER="$(usex server)"
+ -DWITH_SFTP="$(usex sftp)"
+ -DWITH_SSH1="$(usex ssh1)"
+ -DWITH_STATIC_LIB="$(usex static-libs)"
+ -DWITH_STATIC_LIB="$(usex test)"
+ -DWITH_TESTING="$(usex test)"
+ -DWITH_ZLIB="$(usex zlib)"
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+ multilib_is_native_abi && use doc && cmake-utils_src_compile doc
+}
+
+multilib_src_install() {
+ cmake-utils_src_install
+
+ if multilib_is_native_abi && use doc ; then
+ docinto html
+ dodoc -r doc/html/.
+ fi
+
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/libssh{,_threads}.a
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ if use examples; then
+ docinto examples
+ dodoc examples/*.{c,h,cpp}
+ fi
+}
diff --git a/net-libs/libssh/metadata.xml b/net-libs/libssh/metadata.xml
new file mode 100644
index 000000000000..d4993171dff1
--- /dev/null
+++ b/net-libs/libssh/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+</maintainer>
+<use>
+ <flag name="gcrypt">Prefer <pkg>dev-libs/libgcrypt</pkg> over
+ <pkg>dev-libs/openssl</pkg> for encryption</flag>
+ <flag name="gssapi">Enable gssapi support</flag>
+ <flag name="pcap">Build with PCAP output support</flag>
+ <flag name="sftp">Build with SFTP support</flag>
+ <flag name="ssh1">Build with SSH1 support</flag>
+ <flag name="server">Build with SSH server support</flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest
new file mode 100644
index 000000000000..cf5b0aa715db
--- /dev/null
+++ b/net-libs/libssh2/Manifest
@@ -0,0 +1,11 @@
+AUX libssh2-1.8.0-libgcrypt-prefix.patch 1026 SHA256 b020848f2ec87b3a9fe5d2bfa195f319a4c378426f3b6b7e4d887f31275807dc SHA512 8acd91d729c881ec87473895f3deba1e8f3b655a5394b130395fa75420c346dfe0e76028e7e43bd22783d2af4e1e50e5c25dd7f3d7a93cb35059bbbe5651d08e WHIRLPOOL 6c54a6bd7f81e170096a7d6e30659aa7fa919d29eaffbcded244530076a11f0e4c853e41b80d91f5a5ef035f75f616e7b2d74128e50a8f0199946c83d74a1279
+AUX libssh2-1.8.0-mansyntax_sh.patch 770 SHA256 0e633493227f918b6cc06d5a18b392394d4a2a0acdb49ab8dbae5d2132d67beb SHA512 9da051dd5dda823ae8797b0dadb9a3734590e196898b0985f389492f1225c720dac0ce374ba6d9cc8956820128fc2d7457350248b486f0da4d12cc3bb93e275a WHIRLPOOL 9d8ebdcf4c9ff76d963fd38c4155f2cfa37cb5f19cb657355549a27cb3d7c3efdb8918acb86feaa7257f297e4deaae8420760c88627cdd8115cec10a62fe8a8b
+DIST libssh2-1.7.0.tar.gz 811714 SHA256 e4561fd43a50539a8c2ceb37841691baf03ecb7daf043766da1b112e4280d584 SHA512 0f9dfd83196129568c00383e2e4fea29b3d8c4f3b1690f550a6748d1db68cc437b4ed083f5d3d4646365fdc839819619aea96eeaef5ab072c7023d13f08b5153 WHIRLPOOL dceefdc11b6b88f4320bfdd01044dc9c81e4d1e3e54a9e2ec8f6869ba091668e5957a3e2a56934196c87f1877d61ebe0b45f450ca12bf1802da9812db8a4ffb6
+DIST libssh2-1.8.0.tar.gz 854916 SHA256 39f34e2f6835f4b992cafe8625073a88e5a28ba78f83e8099610a7b3af4676d4 SHA512 289aa45c4f99653bebf5f99565fe9c519abc204feb2084b47b7cc3badc8bf4ecdedd49ea6acdce8eb902b3c00995d5f92a3ca77b2508b92f04ae0e7de7287558 WHIRLPOOL 2f9523214b6aa48842e4bc23a8e8edb62ddbe438a18db2269bcb802c1e9234c02fece51e0530f949adad1aedef3062c0a8d959734b54cbf8ae372766a5f91c4d
+EBUILD libssh2-1.7.0.ebuild 1210 SHA256 e29d51fe34a9b9866e4fe48860a55d6fc24d56ab52106e1db1c8b3430cca8027 SHA512 feed1680c4b5909b5bacbc12e30a43e9e0e15279643ca118f76a8216c7ec29a25475fb5c6e2f76a37c87d243135c66ad8c9b42a96634628acf2eb28c97462615 WHIRLPOOL 6affd6bbb0cc6649da157ff1ff8b758a9d2e39ff7950119caaf369c64d19dfa6c481c08896701e822fe41558e55d5ea88af0da0dc242b6045203a8bd4318a080
+EBUILD libssh2-1.8.0-r1.ebuild 1288 SHA256 d2c556d2c5e6e8185999c144525c751a8e64d1e89722647a1840e00b8c971a1c SHA512 ea7e26409aea9709824b276095ab2269b916a6df69619bf979d61752d8340bc55fdfa8119a953d8e559cfb5c8af2d96cf26f1e9bcc449132c9981a507a1780b8 WHIRLPOOL 4f7861b30f047ff0ca33ec3387848549ccfeec5c2ea9620ec4c607895c89aeb70ccab04f5dc4bf19d1aa490c6e6de4205e16e540da67f14b61f1e16f7444e484
+EBUILD libssh2-1.8.0.ebuild 1290 SHA256 3be0a76b2208236b23decd95c63c1c39fe8e82dfa43bf09c7be1d355fa0e6758 SHA512 016ba030248775b968094fc2e0edad87268801a7350e1cea405347ac508e31fd81fce560b82b12aaf58bcfe7a27a176c0cee3a4c2c0e1622019140ed15e6e237 WHIRLPOOL 9cc5afeab43942a5b4434fc55af925bff72e751ca698a4403bd6a50cdd7259b100cfa04758ddb1fa0d9177db00293375972a9b3bb4449aae0914710cd25f7ce9
+EBUILD libssh2-9999.ebuild 1131 SHA256 7d55c7f61c030e8a705462e3f0f7899ef6ba6c24902295b7417d35ba7073fa19 SHA512 ee0431b63ddf905e1efe49eac35a48c7e956a8a3bc03ec48de73f076a226699ae3eba22b1b0798f458d414ff46cc2f29815b0cbed96609021050e510290ea9f1 WHIRLPOOL 22b0ef75cd143ffcaef803d3fee8360bdfb0f8e8605f5c18a9dced1b59f1cd5ed3be965b589328e834e66a198687be05e41e36118f0d14f87edb6abfd0ba65b7
+MISC ChangeLog 5808 SHA256 d2796b6c0010fa3aea54c15c7b1d7c28d101ca4cec8296f7992d8d1432ec0799 SHA512 807704e6e162da6ff69defd8659b54074cda2a974bc64cbbc3c8cffd8331bedf8752bfe7c0b22d40c93be6a792b2965532639fe893887f0f6e11549f5c63d3c6 WHIRLPOOL 1b6c1788d4dc42a1b7137bd04332e28733386cc48e4be48121633753803316829d7717595228dec13581478b60a31f6d54c62d13318daa651e7d28e8d383342d
+MISC ChangeLog-2015 13302 SHA256 34f5839998ce4cd9ad8b2782504071bc970c51e410a20e6ad25325e3d05439e1 SHA512 e5761b40bbd899eef35bf5fd7c3f16d54dddb46a48e0f74b2296ed2dc94d33e9045d17c542762922e9be54844afc8b77dc8f37648464ab2df16999c3916987a1 WHIRLPOOL d5c73508c9008f46297da236d4dec27e02171e869687f9e0067b889b539d440723613f0816c44541ac7830a211a14c028fe3ee919ee56d2101a9f55bb3b13cd4
+MISC metadata.xml 432 SHA256 c530134ac3de3b7239eb5756e006952f6f6d17485b4b3ba7ae692287d4c18999 SHA512 c0fd5dce9a697c02886aeea4e001695bf51c6cec82a1c32d58a839dbd63f0085f9005c3504d40bd858bcca80ec2018bbf44bca64dd7692029e158612da39cabd WHIRLPOOL f066d7018fb66df1416fec8af96697e0cf78af2d292b88713e9598c4454cb6ca357eafcf0868f63a36a642ec9e46c414deb61fd6e2abfb675f12a44b97b0eb09
diff --git a/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch b/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch
new file mode 100644
index 000000000000..10065626fe2b
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch
@@ -0,0 +1,30 @@
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -412,9 +412,9 @@ AC_DEFUN([LIBSSH2_CHECKFOR_GCRYPT], [
+
+ old_LDFLAGS=$LDFLAGS
+ old_CFLAGS=$CFLAGS
+- if test -n "$use_libgcrypt" && test "$use_libgcrypt" != "no"; then
+- LDFLAGS="$LDFLAGS -L$use_libgcrypt/lib"
+- CFLAGS="$CFLAGS -I$use_libgcrypt/include"
++ if test -n "$with_libgcrypt_prefix" && test "$use_libgcrypt" != "no"; then
++ LDFLAGS="$LDFLAGS -L$with_libgcrypt_prefix/lib"
++ CFLAGS="$CFLAGS -I$with_libgcrypt_prefix/include"
+ fi
+ AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [
+ #include <gcrypt.h>
+--- a/configure
++++ b/configure
+@@ -14250,9 +14235,9 @@
+
+ old_LDFLAGS=$LDFLAGS
+ old_CFLAGS=$CFLAGS
+- if test -n "$use_libgcrypt" && test "$use_libgcrypt" != "no"; then
+- LDFLAGS="$LDFLAGS -L$use_libgcrypt/lib"
+- CFLAGS="$CFLAGS -I$use_libgcrypt/include"
++ if test -n "$with_libgcrypt_prefix" && test "$use_libgcrypt" != "no"; then
++ LDFLAGS="$LDFLAGS -L$with_libgcrypt_prefix/lib"
++ CFLAGS="$CFLAGS -I$with_libgcrypt_prefix/include"
+ fi
+
+
diff --git a/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch b/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch
new file mode 100644
index 000000000000..3a33bf744167
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch
@@ -0,0 +1,41 @@
+--- a/tests/mansyntax.sh
++++ b/tests/mansyntax.sh
+@@ -1,37 +1,2 @@
+ #!/bin/sh
+-set -e
+-
+-# Written by Mikhail Gusarov
+-#
+-# Run syntax checks for all manpages in the documentation tree.
+-#
+-
+-srcdir=${srcdir:-$PWD}
+-dstdir=${builddir:-$PWD}
+-mandir=${srcdir}/../docs
+-
+-#
+-# Only test if suitable man is available
+-#
+-if ! man --help | grep -q warnings; then
+- echo "man version not suitable, skipping tests"
+- exit 0
+-fi
+-
+-ec=0
+-
+-trap "rm -f $dstdir/man3" EXIT
+-
+-ln -sf "$mandir" "$dstdir/man3"
+-
+-for manpage in $mandir/libssh2_*.*; do
+- echo "$manpage"
+- warnings=$(LANG=en_US.UTF-8 MANWIDTH=80 man -M "$dstdir" --warnings \
+- -E UTF-8 -l "$manpage" 2>&1 >/dev/null)
+- if [ -n "$warnings" ]; then
+- echo "$warnings"
+- ec=1
+- fi
+-done
+-
+-exit $ec
++:
diff --git a/net-libs/libssh2/libssh2-1.7.0.ebuild b/net-libs/libssh2/libssh2-1.7.0.ebuild
new file mode 100644
index 000000000000..2bc942b4d5fa
--- /dev/null
+++ b/net-libs/libssh2/libssh2-1.7.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+inherit autotools-multilib
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI="http://www.${PN}.org/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}"
+
+DOCS=( README )
+
+src_prepare() {
+ sed -i -e 's|mansyntax.sh||g' tests/Makefile.am || die
+ autotools-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ local myeconfargs=(
+ $(use_with zlib libz)
+ $(usex gcrypt --with-libgcrypt --with-openssl)
+ )
+ autotools-utils_src_configure
+}
diff --git a/net-libs/libssh2/libssh2-1.8.0-r1.ebuild b/net-libs/libssh2/libssh2-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..af51f92f415d
--- /dev/null
+++ b/net-libs/libssh2/libssh2-1.8.0-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit ltprune multilib-minimal
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI="http://www.${PN}.org/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+DOCS=(
+ NEWS README
+)
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch
+ "${FILESDIR}"/${PN}-1.8.0-mansyntax_sh.patch
+)
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ ECONF_SOURCE=${S} econf \
+ $(use_with zlib libz) \
+ $(usex gcrypt --with-libgcrypt --with-openssl) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ prune_libtool_files
+}
diff --git a/net-libs/libssh2/libssh2-1.8.0.ebuild b/net-libs/libssh2/libssh2-1.8.0.ebuild
new file mode 100644
index 000000000000..3cc10e06541a
--- /dev/null
+++ b/net-libs/libssh2/libssh2-1.8.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+inherit autotools-multilib
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI="http://www.${PN}.org/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+DOCS=( NEWS README )
+
+PATCHES=( "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch )
+
+src_prepare() {
+ sed -i -e 's|mansyntax.sh||g' tests/Makefile.am || die
+ autotools-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ local myeconfargs=(
+ $(use_with zlib libz)
+ $(usex gcrypt --with-libgcrypt --with-openssl)
+ )
+ autotools-utils_src_configure
+}
diff --git a/net-libs/libssh2/libssh2-9999.ebuild b/net-libs/libssh2/libssh2-9999.ebuild
new file mode 100644
index 000000000000..20d32d236067
--- /dev/null
+++ b/net-libs/libssh2/libssh2-9999.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools git-r3 multilib-minimal
+
+EGIT_REPO_URI="https://github.com/libssh2/libssh2"
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI=""
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( NEWS README )
+
+src_prepare() {
+ default
+
+ sed -i -e 's|mansyntax.sh||g' tests/Makefile.am || die
+ ln -s ../src/libssh2_config.h.in example/libssh2_config.h.in || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ local crypto
+ if use gcrypt; then
+ crypto=libgcrypt
+ else
+ crypto=openssl
+ fi
+
+ ECONF_SOURCE="${S}" econf --with-crypto=${crypto}
+}
diff --git a/net-libs/libssh2/metadata.xml b/net-libs/libssh2/metadata.xml
new file mode 100644
index 000000000000..e9e734ab02f9
--- /dev/null
+++ b/net-libs/libssh2/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+<email>netmon@gentoo.org</email>
+</maintainer>
+<maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+</maintainer>
+<use>
+ <flag name="gcrypt">Use <pkg>dev-libs/libgcrypt</pkg> instead of <pkg>dev-libs/openssl</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/libtelnet/Manifest b/net-libs/libtelnet/Manifest
new file mode 100644
index 000000000000..99b3823dad38
--- /dev/null
+++ b/net-libs/libtelnet/Manifest
@@ -0,0 +1,6 @@
+DIST libtelnet-0.21.tar.gz 240486 SHA256 fb4b02106b77c00ff5e1c15159d681a1a70962a1b087151061726075ec2ce445 SHA512 69dc0ac4741c81d932136cd736b48a11a05cd2738da6255d6050844f50a2f16c575c747e5c758bbdbc6b1e3309ce02e4979f0002b40fed32a3711aa8f22e04f1 WHIRLPOOL 889d53bed552939c4540747a21b3301de4cc721af3c86bfd4eee6fc9c3a6aa6f2f8e07172c2af84566e3f31723864d57fc6dbd98ecc59e6a13ef8dc599ca1413
+EBUILD libtelnet-0.21.ebuild 761 SHA256 6fb236af99afa85187c2ae556594a4145555a11f73098e67cb9187e446444925 SHA512 77719039a8aff7ebda29a2c245ef41faa6ab1b130357e2e1fdfaaeaa59fb92eb3945f4fae104629dcc705575247112859f28898960259670c0fd3bd6eb188b6c WHIRLPOOL 12d9fa015c5500f396386257cb3b0a01392569e24bf3c62bfb97fa38f996c8996152dc846c515e55dae2c1e3c96f0745ecfff76de157d7af04b99856816667fd
+EBUILD libtelnet-9999.ebuild 761 SHA256 6fb236af99afa85187c2ae556594a4145555a11f73098e67cb9187e446444925 SHA512 77719039a8aff7ebda29a2c245ef41faa6ab1b130357e2e1fdfaaeaa59fb92eb3945f4fae104629dcc705575247112859f28898960259670c0fd3bd6eb188b6c WHIRLPOOL 12d9fa015c5500f396386257cb3b0a01392569e24bf3c62bfb97fa38f996c8996152dc846c515e55dae2c1e3c96f0745ecfff76de157d7af04b99856816667fd
+MISC ChangeLog 2234 SHA256 c98ffd892b00bdda49006a560dc578b7bc01dbc8512a6bb13cb5818557814d2d SHA512 2e0a745cf15c6ab7fed0bdac18b6cf9defca8dd07279d3185907df29fcf50767981dde94c26738b41b0b0960dd8b9f9c5414d5b5dcc63f475b56f4bab3b87b64 WHIRLPOOL d913b2b8fa033acb144b6fbd85b85cf8a0aeb163feddb7f611822244e72d8050b427d9400d2c328ebf028b55bf6f6558f4224bd3952f23ed7e6c4dd47e36abea
+MISC ChangeLog-2015 422 SHA256 b223d9e8b0827da382b0b4b70fe205606c3b3b279d7b368c161dc1e759d1bdb3 SHA512 42d81d84cbe5e10c2ec0740d102dc224aafabb9553de5b0e7b7108f2cb7a90aa14bf3d91bc87175aafbbe8824830069fc474987e1340a202278a032e3dabd440 WHIRLPOOL 7107c170f7481c6d1ad982b10bc7f9e983dfc274dc0ed8d9e042fb3be3701485aefbd6e40baebb9e465fbfd4c34ddd629b0e7a2c691c3b57f8c2a93eb84939f5
+MISC metadata.xml 352 SHA256 8e8df045ca720849d500754447f4273859a0ea00f461c111c1387403213fc867 SHA512 8e0b4ff5329576c1b209652dee6e5ad1717ae7d2c9938c570d12641e9d1eea9769050539f73b5d6074290e6a95f87de96c054b5a3bff830ef237e5e6b1208f3b WHIRLPOOL 491e319eb9c5804010c9527743593f93702923a6edb67a88d5ddaf82ffc178e37f1a46c043c91dee8b51b698d1f316a8533f609d4606dcdd99727065f161d011
diff --git a/net-libs/libtelnet/libtelnet-0.21.ebuild b/net-libs/libtelnet/libtelnet-0.21.ebuild
new file mode 100644
index 000000000000..aae3c462a1cc
--- /dev/null
+++ b/net-libs/libtelnet/libtelnet-0.21.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools
+DESCRIPTION="Simple RFC-complient TELNET implementation as a C library"
+HOMEPAGE="https://github.com/seanmiddleditch/libtelnet"
+
+if [ ${PV} = 9999 ]; then
+ KEYWORDS=""
+ EGIT_REPO_URI="https://github.com/seanmiddleditch/${PN}.git"
+ inherit git-2
+ DEPEND="dev-vcs/git"
+ S="${WORKDIR}/${PN}-master"
+else
+ KEYWORDS="~x86 ~amd64"
+ SRC_URI="https://github.com/seanmiddleditch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+WANT_AUTOMAKE=1.11
+DEPEND="${DEPEND} sys-devel/automake:${WANT_AUTOMAKE}"
+LICENSE="public-domain"
+SLOT="0"
+IUSE=""
+RDEPEND=""
+
+src_prepare() {
+ _elibtoolize
+ eaclocal
+ eautoconf
+ eautoheader
+ eautomake
+}
diff --git a/net-libs/libtelnet/libtelnet-9999.ebuild b/net-libs/libtelnet/libtelnet-9999.ebuild
new file mode 100644
index 000000000000..aae3c462a1cc
--- /dev/null
+++ b/net-libs/libtelnet/libtelnet-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools
+DESCRIPTION="Simple RFC-complient TELNET implementation as a C library"
+HOMEPAGE="https://github.com/seanmiddleditch/libtelnet"
+
+if [ ${PV} = 9999 ]; then
+ KEYWORDS=""
+ EGIT_REPO_URI="https://github.com/seanmiddleditch/${PN}.git"
+ inherit git-2
+ DEPEND="dev-vcs/git"
+ S="${WORKDIR}/${PN}-master"
+else
+ KEYWORDS="~x86 ~amd64"
+ SRC_URI="https://github.com/seanmiddleditch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+WANT_AUTOMAKE=1.11
+DEPEND="${DEPEND} sys-devel/automake:${WANT_AUTOMAKE}"
+LICENSE="public-domain"
+SLOT="0"
+IUSE=""
+RDEPEND=""
+
+src_prepare() {
+ _elibtoolize
+ eaclocal
+ eautoconf
+ eautoheader
+ eautomake
+}
diff --git a/net-libs/libtelnet/metadata.xml b/net-libs/libtelnet/metadata.xml
new file mode 100644
index 000000000000..885341521989
--- /dev/null
+++ b/net-libs/libtelnet/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>nativemad@gentoo.org</email>
+ <name>Andreas Schuerch</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">seanmiddleditch/libtelnet</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libtirpc/Manifest b/net-libs/libtirpc/Manifest
new file mode 100644
index 000000000000..b928b0b1a75a
--- /dev/null
+++ b/net-libs/libtirpc/Manifest
@@ -0,0 +1,31 @@
+AUX libtirpc-0.2.5-stdarg.patch 667 SHA256 2b31b1148af9d96c9a9e6f609c0b5b03424954d6251c18d64b6119afd8afa6f7 SHA512 2197f8c2ed3b4dbfc54ee37e973a6e275d19c6dde5d066b9ce45beecdbb17c9e620d7c6f0997b7ebfeb2bd1741327028a793b34edd94d59a89c8b36ac102b025 WHIRLPOOL 90d4e88c18f0d93ab8dfef4981377c2a6df42ff90b70049d07e203e7b66a5087910fe501cf9e1b93782eb25a8b3a8680c03287ccc563b838f517e5d1524b12c5
+AUX libtirpc-1.0.1-CVE-2017-8779.patch 7032 SHA256 091d3ff2b53a3ef9b20c61af19192434f652e528070fd57c706bce2988de0279 SHA512 b7c97f6f202cd57c988ff026e2805011942f470c71fdfd81a2647a0e197386db937b022f0056e6ad106bb143c36323835748965b4915a293b89efba3cd171c84 WHIRLPOOL 44f65f1fadec76e742641a3ec7c22f90f54309c3b9e6f1076b2de1dd14aaf0012c323d3c92599775b43446405253cf1375d9c4c3d5bf26d8de1224b42a552ead
+AUX libtirpc-1.0.1_add-des_impl-c-7f6bb9a3467a.patch 1207 SHA256 1e65651a135c7c10a5ffae19ff176eb479b125b252ff4222dcd6797d583d9163 SHA512 dd6c61bc885dace248bf69d9fa15d79cb8a73530c434f834a3c53ad5d3f5598b0b04786d9d708b25c53202d2421c0888e00b9c1a260abcafa776f25cef694c19 WHIRLPOOL d436222fa75dbf26346f870aedafb1326d61c883ba90a563e99e2d56b4fc3521296cfa7bb554bbca238dea37c5dde72de802a85cfd5193da330b4c8f6a6c5fd7
+AUX libtirpc-1.0.1_ifdef-out-yp-headers-742bbdff6ddf.patch 821 SHA256 96ffc42c9c7acf1b95b39f76f817caf9f2fd555de3fca593390154e1327e9777 SHA512 3733c1e88acf91f30ec647f83f6ad44d1dbe087e89996db7cd4197b7eed7924443fb4854bfb4c0e5ce0e2c7b3569e2af444a1e6a8a4139ea3c408e9838419b88 WHIRLPOOL 3a9cc31c4e2eb8dfbf1e3a44caabcc90c52d0d2c30088f2120ee549060d66923f5170b6b3129598d1c70886735b7f69e65fa7142db4c07331ece3487b3298ac2
+AUX libtirpc-1.0.1_remove-des-deps-to-glibc-503ac2e9fa56.patch 1232 SHA256 fffab75fc00ebcbb1d860d1869d9e525ede9aca68f46e40c9d94b2ee0e563d2d SHA512 24a5012481eae9d8152267287546b390edb0fe9925bc043df50a3b82057517487e8a1b94782adc9e14ac1e72ded9b1cb44dd25e09c9a5451053a26adb3a821a2 WHIRLPOOL e210f5417d74b8589c7898f319c91e5c3c6244e703fa9fbf3fb089ec63f2694f1f6acc082a30d2f3a55131e4b0d69708ac5c2785ae5b13651217d8047adba345
+AUX libtirpc-1.0.1_remove-nis-h-dep-5f00f8c78c5d.patch 4015 SHA256 c185fd419d636a0992813b3f674f9a847ba28c56a6236246f36f39d29214d6d9 SHA512 fcd76037bd78e298a261f288b51de6ff25d362c40a416e86ed2c766b3c106339e4633e92546b96b727d38d14c85566250be25b82c1093c470e8c8cb1c86faafa WHIRLPOOL b1d4d4f58f6dadad87680ef1a4f7e5b67035f9e36dff24d1609430c4de31c6bb3e169cb052f982198409a0521d7e2ee910df4e395709b05fa0a511e1580666ba
+AUX libtirpc-1.0.1_uclibc-dont-use-struct-rpcent.patch 2010 SHA256 a747da94e2a7d5dc260ddcd5d52a3a787f4dc78076e6f2d8444a42e997a00e70 SHA512 0486bd17ab67aaeba1ed536c20297f78091c2b5badb7ce41cd0cfdb0c6139e8501b827d40798b03f114e2bf03f4c98a684aa43f47cc5a1953f8245292a0f036a WHIRLPOOL bd3f9938903e4d70ce0710c608d7da85deb2f12f9a315809b5c127428869ffbce802ae5bce99aba531fb0399d5214345379478c5f7e463dcacb5dfeb33f4d8b7
+AUX libtirpc-1.0.1_uclibc-use-memset-not-bzero.patch 759 SHA256 177266c0e4658af8b5b6c1c0ff7ce7fca08410a5e1acf2c395a341e6a6de84a1 SHA512 122a1ae24fc08ede5580d31749f7e1cfc21266b628e2f82936feef856b2ea5b0da99f60291e5bdf87d87c5711891515b0c6bdc351b0bd46f97192ab215e5f25d WHIRLPOOL ebd781854a5b7d7f1fcd84e595d42c8394a5b9f7c8651c9750fe4fbdf5fd884e84ca081957f433d2aecb12bd5b5e9f9f0b81bb177fa8eae180c3d63344d4ed11
+AUX libtirpc-1.0.2-bcopy-to-memmove.patch 2226 SHA256 c10ee40829a294facee2db686cd03bbfd0ea798b253ccbb93e062896de71c864 SHA512 221c85c47ec56edbdb4ce95e0f67680050b8d9f666c6795ceef7f7720acdf05a535e4afbcdc4e2e5eaeb6edc04bd43f65486df772ad2a0c87987d1c204661f00 WHIRLPOOL 58ec2d8c894276a01f7a3fa4c1db1ee3463b2e9ed4b3bf6ae90f03f38187af6b4abcab8619594013949f46a035afb5e43cec4dbf26baa53ae71edf75b6f1c9e0
+AUX libtirpc-1.0.2-bzero-to-memset.patch 1587 SHA256 d419e78f2e3a38cd34aa4c375ec1d74e3506875bc46d91cc00febf7ffe64e7a2 SHA512 aaea43a11e02094f9e43640866dffe7ef509362ba169500d6032b088f048eb855a3a7a75f2e7a2c999d6a252cb4b66d970cd8cc76dd0747376cb382b53e43385 WHIRLPOOL dd761551ea8a0693ec51ea2d83d12061a3884f3df15403db424fe8ea89dd99c3945b9282b7ee9b87a0e276e98a4e48fc8ba8cc8e5f4b5172790f7911e87c384e
+AUX libtirpc-1.0.2-exports.patch 424 SHA256 8a1d77f665c3716a028c7006fc4916bf80d4d1937e41a23836fda059fc2dd966 SHA512 66a4925ed0236aea2e181e9a07677dc9f41c287311c9cb02129d17b9a61b6102997258082d38e45d193a0ceb4b8e2bc0b8dfe1610a298bc508c1f5c70c1b466d WHIRLPOOL 190073f621e7aba762ef503559e017fcd653926b55aff88c154bd30dd9d3d74cb705272f87b45e1655cc1b724e437d7d1edcfb9a4c8c7e91b1a6e97c4989596f
+AUX libtirpc-1.0.2-glibc-2.26.patch 276 SHA256 b0b03ab8f7e1847982411013ab46cb1d5a5c81e0d8eb3607cb29aff6b1fcec65 SHA512 67256d618db1330eeb616ade4b79376a600ed2457c03b420fc88b9ba89ea2451c9aac3f48c4967bc5695f10e6d8c895370cc10144ecc53ed0d3810d4cf65265a WHIRLPOOL 5481a51d537bd8e6d04101b6079a6b42e9c567976f2687529d64c0acf41e247457baba9fca0e3c6f3a75ab32235bfbb595bff3c35c25cc90ccbb3d28175ea77e
+DIST libtirpc-0.2.4.tar.bz2 458544 SHA256 45c3e21dfc23a5ba501f9dfc6671678316fdfdb8355a1ec404ae2aa2f81943a1 SHA512 8b7fec13d34ad0ddfa3832f4a4955607d94f6a691fedcc81a98554345f6c6e64d5f289490a10a80600cebf5b53cfad99c0d78007b88f8f2fbc60cbb8680fc87f WHIRLPOOL c12cb4503fc621437ea0c1543abd0ce739bca40e1f77eba1af533456e93c62fb137a0d1e99d815c6026fae4321d90d9a032d7d1e6daeab1531bcb59bc66b746f
+DIST libtirpc-0.2.5.tar.bz2 459094 SHA256 62f9de7c2c8686c568757730e1fef66502a0e00d6cacf33546d0267984e002db SHA512 9f8afa1acb04a2c2c558018f2528f8caaa79994a2af2abeed947f914145872ef72988b241e11925c799db0de9ec51fd9baecd2b08150240b22f91e2e55a45194 WHIRLPOOL a2b4f1c4825f2b774c2290cccd9d552bb7566ec9eb5988d3ab619d7870a907600f67e7af39fbc3e245606db8534f114c990145789c383206d3a9cf96cf043d8c
+DIST libtirpc-0.3.1.tar.bz2 479721 SHA256 a8838fe180deb8a6f6e491ee665325a28dee4100ec6b1f0b86d611dbfe3a2bb8 SHA512 31b0a00a5390e418ab909e02fb67cbe31bef3326ee0105b2d9dc3ed93270a86e30d4cd618335af01be6b4da4bea215c111b9bead0d8d3e225c2e1d1b2f1e76a3 WHIRLPOOL 183f8ef45c381287e33f50c183c5fdb02ccf6e58dc69a80bbf31c46fcf990c422f3971ce40c9f6607a6be0daf015e412633b9e49ff77be41e6b804a21d6fc72c
+DIST libtirpc-1.0.1.tar.bz2 495125 SHA256 5156974f31be7ccbc8ab1de37c4739af6d9d42c87b1d5caf4835dda75fcbb89e SHA512 c9b449e737bc2bd3d56e31e8352f312e89a7ec2a11b73b5ac314e7d82d3b644c611e422b623912453b67b668f86a6de7bb7f18c9495dd15de8e2798ec2ff41c8 WHIRLPOOL cce6a4e69bd634b40d66594a81c23d2044b63eec16d6c96d6fcfaa7f2ca41fb9af99c8e2b964ec12be82682afa4090b218d7e14399fdfc9b32df6c2234bc3c9e
+DIST libtirpc-1.0.2.tar.bz2 509601 SHA256 723c5ce92706cbb601a8db09110df1b4b69391643158f20ff587e20e7c5f90f5 SHA512 6c819019a8e81d8263d3c509b2eee59ba1ef092222c5a0a8d28f004c711afa252097eca7e6b0b919b2d780883dfd9ee7a363df4cee7fd2c9159a065257637cec WHIRLPOOL 59306a645df28cfcfc1bf9e5215c59f0af7b8a01375ccef66c2ded4863e7183afd4b3ae0e7694f3eff78cc88f3978a4fd0c1b3375698fb90b59a08989021ebdc
+DIST libtirpc-glibc-nfs.tar.xz 8948 SHA256 2677cfedf626f3f5a8f6e507aed5bb8f79a7453b589d684dbbc086e755170d83 SHA512 90255bf0a27af16164e0710dd940778609925d473f4343093ff19d98cc4f23023788bf4edf0178eae1961afc0ba8b69b273de95b7d7e2afdb706701d8ba6f7ba WHIRLPOOL 06bcf3fd4e424a86071e5c4ddeb89aa571c862e765aae9382d9f9a55ab72cd1c623490555c1a9bd3380a2d04ecb10fb47a75a7dddf449d4368a1a01617226858
+EBUILD libtirpc-0.2.4-r1.ebuild 1153 SHA256 1d8051f19dcc9548cafae4f263fca76a870d5229c2af1cd9098724c43a27acb4 SHA512 5993683da8f5140e3b7431485cf41fe16aabb844ea4888644dfd2675341cf3ef09c579a1aaa38836a9e7db2e3a5e77c1dd7572f72939e4a028b56c87c8315410 WHIRLPOOL 57365aacb861b94878657bd107e7366d5a3140a2230f5ba52b8ebd73008490409adc0dad83fe5b3b663397536f28408b2dca7c5efea0151a21eb816445f9ad8b
+EBUILD libtirpc-0.2.4-r2.ebuild 1459 SHA256 37111c85fb363c857ba9077424240ba56acc4cfd3e8eb4f1b213d61be094c93a SHA512 67f360dc4ca8016e25cf6c14303710b3a9ad18bb64c142e1c1971bbbf57863a79839d9d38739d6b468c5a719c18e7c1f888ef150fbe4994e43142c60efc27829 WHIRLPOOL 3644f34b19084a70b28bbe719b679f94a48d3305c67b48ab8725d8f105e977045cbf7f219d91da3fcd3ea3e8c0c1636a997367d03732383f85dc1f8fa8d1a307
+EBUILD libtirpc-0.2.5.ebuild 1506 SHA256 cbb53b4ba08df24234a464400b2360069b91822019dd0fe2a7a05e5878a85575 SHA512 ed05ba699a800c4a5ef8030c530ea08413d69a41091e070ee9ae2ebb4ac953f246b06316c4b587da48c39e1ef28b657f5c952ac4a6af16492530dc487b164bc4 WHIRLPOOL c96ab6c85e524f03bdf0cb9357dc6a781376c857c1049f3f88df2bb1b46f8f55e2116fe3ca44058b4fd74411e8251463baa2ec0c1526b95795d7a0d73b980b48
+EBUILD libtirpc-0.3.1.ebuild 1459 SHA256 453aa5d080bf08ddc86ae8dd27bea574756599ab442520d6d8f7b60b19311db3 SHA512 bc67a707b5cc2acb36260aeb5ea16868edc9c78bdba2d54bdaafa01c096c1ecbd34205cfc55e42895e79f5183762bc84b94d47d99aa92cbe436c10101ce01ca1 WHIRLPOOL 071b2c500010d6f86894f70b564e723575fa4c278789fe69a5c8da58b9c0c7c80c1360004931b8eb37a026a06212ab1c2af8ace7e4e45b3f04eb30f805cef4d1
+EBUILD libtirpc-1.0.1-r1.ebuild 1430 SHA256 ca48870a784ec70469da77ace428b8e3081a4e9a8607a15560422314194818aa SHA512 a34cfe1e3b527ee2229cce79aef82c3e8efee5fb5aceb260997932a625e4ffe453ff09ea5b52090e6d45c7065e857d684bfd0f8f8b31394b58c4e2fcd2f1bdd9 WHIRLPOOL 5446351be0f00a5279687916425608e9b42ef6406db1cbd2fb07eb525d19ad3d526c0322c64a6a1cd6bbbdb9f8ac5c0089a61396e7e03ebad46816fa5ce751fc
+EBUILD libtirpc-1.0.1-r2.ebuild 1806 SHA256 4d210c54a776163be8031cd189e4e714350df79210b1200181ee0971c84ff4cf SHA512 e7481fadedabd7abaffd842caec5c675904eaa7831952f51c58a2f9a417bce561d8dd67817c97755a2d1f8971a79e78e4107f1a9b669a62d36cc1ecf35d4475c WHIRLPOOL 7768d9236b74d236891bbb198685cca430465c05b38e6ec931ccb79caf9d43b4bffa7d51c093f526eee591e1de00cdf7da8b1aedbf44eb94e197fdaa4cdc7ff9
+EBUILD libtirpc-1.0.1-r3.ebuild 1800 SHA256 85866973a4da6985132a995961fc0fdbb3e8950fd6af8a7e6140b166b3ec1deb SHA512 4ec32de659a18443beb10475739887d08c7f922ff8c9533ff0898ac2e430785a0502d6e858130469638a80764e89d4d4ef15251011f2efc2a738d025efc8d913 WHIRLPOOL 3b784a1daa5ba6f3583c3aabf9f044a712b5dfa4303c2b6e70bf5f96250ec053d641f6da14aa3ab86ebcaddd914a5ab06f888f4e1805756d1c0984d0e6cc5fba
+EBUILD libtirpc-1.0.1.ebuild 1332 SHA256 3853ace7ed906426ad4c143ac5725d455099f1dc9475cfa18958bbd8789a6582 SHA512 694588932991003e27c95a2d80333624ba866f232324d1605b152d3b48a9486c73cbaa145cd8299c0d3bc61e8002bcfce001d91654f5499466f1092d3a42396f WHIRLPOOL 04a6d31a3b26696bc34c5c510ad5150cc9e8874f134da48d8622f5b47aa40672ae559fbd171f5f437a96c009824f8af9d9db0f26cd712ff921a034bf4a409bc0
+EBUILD libtirpc-1.0.2-r1.ebuild 1636 SHA256 d674b14a2b9bba4bb1a992ac603cd4897e067321cc9a6edbb2de5964636351b3 SHA512 20ec130077184b8e9a1b86ea3d9fa79b21ad8885ceebcaf575dda50b38ebad616e9b8365008e803900004a324942170f498ce2b547ef596999fb7b59377ae529 WHIRLPOOL 531faa01e558e8d0f390e2ae03c6b5eb4ca891ee4514ceebf447a2f6f144d2c2ec514ab6866c3a661848509e981d4460d2fbd84ad534b86e6ece0165b475a644
+EBUILD libtirpc-1.0.2.ebuild 1565 SHA256 3a05578fdd1c861b31f7746cdd2dbd959a69833ffa8c00d1a6a5eb9d3f21ba65 SHA512 39c50eef8a5844a0a7f4327bb5ff04e0bd50fd3c1b01d47e1c56d7c622c8a13eb675ee81108baa80beeb8637be11b665e00b2198c37cc6d5821070973258f572 WHIRLPOOL c92c58ab6aff6e52b591fe3670f85ebe60998e9fedf46da4c73ff078852f6863f4cc30f069bf98d62ec96e505d653ab0ff45cd196ab36796899e22ad7abcd490
+MISC ChangeLog 3619 SHA256 66808f3ec40599ff543cce805e725d0e9d986c06b88d995a21d496016881dddc SHA512 052e389398b2377344603a809f1074ff58c7f4c23ed0fff485e86a42506d3fab02dc5bef607907c30161692e3606e2f5f0630e5676f64f38b91de95cadbba259 WHIRLPOOL f28a3b6934034a6b620ae97cae64e833011e30326d8a96e6b1581fdcd11b5a147e59ace3f69b1fb4375e7bca6cc901f868b76e616cb5c2e3db47ff3c3a895b62
+MISC ChangeLog-2015 7643 SHA256 8e9dc2f8d3f72cdc3e8b5546cf3f2a84bf8ffe18945d1e890fecb4ec56fa11f6 SHA512 dd49b196ee86b22d8de0e424b9139893a7f4f78faed33c3a7b4397e4bee11d95adfad9cb7af497ea6277e770ccb4f14d735af9d257b87aaa8e1cd87603414400 WHIRLPOOL dc837e6a157142e0661512cc03069feb411dfc07a5e7c6da2826e47adf4bd4263c86ba48712ef3ce0bcad5f05dc34fc9a3c6875f9b553a64e21725b551761e5f
+MISC metadata.xml 335 SHA256 02e9487e791e2d6aa99e74025dd90a6c54d86c73d530c96316e93f7552e1439a SHA512 d6dd857293827907e545dc6e8631d06682d20e13442f8ce6cbd2e2a789d885c8a788f4ed1d062a8c54c4165d22eb096279d4c2f598e462a57faaf8bec1e9777b WHIRLPOOL 6a802fc6b1fdd5bc815c4d2d41de0cba5cff351cdd1fa80021c02233b3facf21674d94ec7b822c2d514e5e1c721cf3ae2b88c885afdce8a7b60d2e63da71183c
diff --git a/net-libs/libtirpc/files/libtirpc-0.2.5-stdarg.patch b/net-libs/libtirpc/files/libtirpc-0.2.5-stdarg.patch
new file mode 100644
index 000000000000..8006de39e4dc
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-0.2.5-stdarg.patch
@@ -0,0 +1,29 @@
+From d26607bade0893fe8652e1a0983f9fae59c64649 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 12 Aug 2014 03:11:41 -0400
+Subject: [PATCH libtirpc] include stdarg.h when used
+
+The debug.h header uses va_list but doesn't include stdarg.h which
+can lead to random build failures.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ src/debug.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/debug.h b/src/debug.h
+index afc8d57..c971ac3 100644
+--- a/src/debug.h
++++ b/src/debug.h
+@@ -21,6 +21,8 @@
+
+ #ifndef _DEBUG_H
+ #define _DEBUG_H
++
++#include <stdarg.h>
+ #include <syslog.h>
+
+ extern int libtirpc_debug_level;
+--
+2.0.0
+
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.1-CVE-2017-8779.patch b/net-libs/libtirpc/files/libtirpc-1.0.1-CVE-2017-8779.patch
new file mode 100644
index 000000000000..91a50fad6497
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.1-CVE-2017-8779.patch
@@ -0,0 +1,255 @@
+diff --git a/src/rpc_generic.c b/src/rpc_generic.c
+index 2f09a8f..589cbd5 100644
+--- a/src/rpc_generic.c
++++ b/src/rpc_generic.c
+@@ -615,6 +615,9 @@ __rpc_taddr2uaddr_af(int af, const struct netbuf *nbuf)
+
+ switch (af) {
+ case AF_INET:
++ if (nbuf->len < sizeof(*sin)) {
++ return NULL;
++ }
+ sin = nbuf->buf;
+ if (inet_ntop(af, &sin->sin_addr, namebuf, sizeof namebuf)
+ == NULL)
+@@ -626,6 +629,9 @@ __rpc_taddr2uaddr_af(int af, const struct netbuf *nbuf)
+ break;
+ #ifdef INET6
+ case AF_INET6:
++ if (nbuf->len < sizeof(*sin6)) {
++ return NULL;
++ }
+ sin6 = nbuf->buf;
+ if (inet_ntop(af, &sin6->sin6_addr, namebuf6, sizeof namebuf6)
+ == NULL)
+@@ -667,6 +673,8 @@ __rpc_uaddr2taddr_af(int af, const char *uaddr)
+
+ port = 0;
+ sin = NULL;
++ if (uaddr == NULL)
++ return NULL;
+ addrstr = strdup(uaddr);
+ if (addrstr == NULL)
+ return NULL;
+diff --git a/src/rpcb_prot.c b/src/rpcb_prot.c
+index 43fd385..a923c8e 100644
+--- a/src/rpcb_prot.c
++++ b/src/rpcb_prot.c
+@@ -41,6 +41,7 @@
+ #include <rpc/types.h>
+ #include <rpc/xdr.h>
+ #include <rpc/rpcb_prot.h>
++#include "rpc_com.h"
+
+ bool_t
+ xdr_rpcb(xdrs, objp)
+@@ -53,13 +54,13 @@ xdr_rpcb(xdrs, objp)
+ if (!xdr_u_int32_t(xdrs, &objp->r_vers)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->r_netid, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->r_netid, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->r_addr, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->r_addr, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->r_owner, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->r_owner, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+ return (TRUE);
+@@ -159,19 +160,19 @@ xdr_rpcb_entry(xdrs, objp)
+ XDR *xdrs;
+ rpcb_entry *objp;
+ {
+- if (!xdr_string(xdrs, &objp->r_maddr, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->r_maddr, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->r_nc_netid, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->r_nc_netid, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+ if (!xdr_u_int32_t(xdrs, &objp->r_nc_semantics)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->r_nc_protofmly, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->r_nc_protofmly, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->r_nc_proto, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->r_nc_proto, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+ return (TRUE);
+@@ -292,7 +293,7 @@ xdr_rpcb_rmtcallres(xdrs, p)
+ bool_t dummy;
+ struct r_rpcb_rmtcallres *objp = (struct r_rpcb_rmtcallres *)(void *)p;
+
+- if (!xdr_string(xdrs, &objp->addr, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->addr, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+ if (!xdr_u_int(xdrs, &objp->results.results_len)) {
+@@ -312,6 +313,11 @@ xdr_netbuf(xdrs, objp)
+ if (!xdr_u_int32_t(xdrs, (u_int32_t *) &objp->maxlen)) {
+ return (FALSE);
+ }
++
++ if (objp->maxlen > RPC_MAXDATASIZE) {
++ return (FALSE);
++ }
++
+ dummy = xdr_bytes(xdrs, (char **)&(objp->buf),
+ (u_int *)&(objp->len), objp->maxlen);
+ return (dummy);
+diff --git a/src/rpcb_st_xdr.c b/src/rpcb_st_xdr.c
+index 08db745..28e6a48 100644
+--- a/src/rpcb_st_xdr.c
++++ b/src/rpcb_st_xdr.c
+@@ -37,6 +37,7 @@
+
+
+ #include <rpc/rpc.h>
++#include "rpc_com.h"
+
+ /* Link list of all the stats about getport and getaddr */
+
+@@ -58,7 +59,7 @@ xdr_rpcbs_addrlist(xdrs, objp)
+ if (!xdr_int(xdrs, &objp->failure)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+
+@@ -109,7 +110,7 @@ xdr_rpcbs_rmtcalllist(xdrs, objp)
+ IXDR_PUT_INT32(buf, objp->failure);
+ IXDR_PUT_INT32(buf, objp->indirect);
+ }
+- if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+ if (!xdr_pointer(xdrs, (char **)&objp->next,
+@@ -147,7 +148,7 @@ xdr_rpcbs_rmtcalllist(xdrs, objp)
+ objp->failure = (int)IXDR_GET_INT32(buf);
+ objp->indirect = (int)IXDR_GET_INT32(buf);
+ }
+- if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+ if (!xdr_pointer(xdrs, (char **)&objp->next,
+@@ -175,7 +176,7 @@ xdr_rpcbs_rmtcalllist(xdrs, objp)
+ if (!xdr_int(xdrs, &objp->indirect)) {
+ return (FALSE);
+ }
+- if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
++ if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) {
+ return (FALSE);
+ }
+ if (!xdr_pointer(xdrs, (char **)&objp->next,
+diff --git a/src/xdr.c b/src/xdr.c
+index f3fb9ad..b9a1558 100644
+--- a/src/xdr.c
++++ b/src/xdr.c
+@@ -42,8 +42,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+
++#include <rpc/rpc.h>
+ #include <rpc/types.h>
+ #include <rpc/xdr.h>
++#include <rpc/rpc_com.h>
+
+ typedef quad_t longlong_t; /* ANSI long long type */
+ typedef u_quad_t u_longlong_t; /* ANSI unsigned long long type */
+@@ -53,7 +55,6 @@ typedef u_quad_t u_longlong_t; /* ANSI unsigned long long type */
+ */
+ #define XDR_FALSE ((long) 0)
+ #define XDR_TRUE ((long) 1)
+-#define LASTUNSIGNED ((u_int) 0-1)
+
+ /*
+ * for unit alignment
+@@ -629,6 +630,7 @@ xdr_bytes(xdrs, cpp, sizep, maxsize)
+ {
+ char *sp = *cpp; /* sp is the actual string pointer */
+ u_int nodesize;
++ bool_t ret, allocated = FALSE;
+
+ /*
+ * first deal with the length since xdr bytes are counted
+@@ -652,6 +654,7 @@ xdr_bytes(xdrs, cpp, sizep, maxsize)
+ }
+ if (sp == NULL) {
+ *cpp = sp = mem_alloc(nodesize);
++ allocated = TRUE;
+ }
+ if (sp == NULL) {
+ warnx("xdr_bytes: out of memory");
+@@ -660,7 +663,14 @@ xdr_bytes(xdrs, cpp, sizep, maxsize)
+ /* FALLTHROUGH */
+
+ case XDR_ENCODE:
+- return (xdr_opaque(xdrs, sp, nodesize));
++ ret = xdr_opaque(xdrs, sp, nodesize);
++ if ((xdrs->x_op == XDR_DECODE) && (ret == FALSE)) {
++ if (allocated == TRUE) {
++ free(sp);
++ *cpp = NULL;
++ }
++ }
++ return (ret);
+
+ case XDR_FREE:
+ if (sp != NULL) {
+@@ -754,6 +764,7 @@ xdr_string(xdrs, cpp, maxsize)
+ char *sp = *cpp; /* sp is the actual string pointer */
+ u_int size;
+ u_int nodesize;
++ bool_t ret, allocated = FALSE;
+
+ /*
+ * first deal with the length since xdr strings are counted-strings
+@@ -793,8 +804,10 @@ xdr_string(xdrs, cpp, maxsize)
+ switch (xdrs->x_op) {
+
+ case XDR_DECODE:
+- if (sp == NULL)
++ if (sp == NULL) {
+ *cpp = sp = mem_alloc(nodesize);
++ allocated = TRUE;
++ }
+ if (sp == NULL) {
+ warnx("xdr_string: out of memory");
+ return (FALSE);
+@@ -803,7 +816,14 @@ xdr_string(xdrs, cpp, maxsize)
+ /* FALLTHROUGH */
+
+ case XDR_ENCODE:
+- return (xdr_opaque(xdrs, sp, size));
++ ret = xdr_opaque(xdrs, sp, size);
++ if ((xdrs->x_op == XDR_DECODE) && (ret == FALSE)) {
++ if (allocated == TRUE) {
++ free(sp);
++ *cpp = NULL;
++ }
++ }
++ return (ret);
+
+ case XDR_FREE:
+ mem_free(sp, nodesize);
+@@ -823,7 +843,7 @@ xdr_wrapstring(xdrs, cpp)
+ XDR *xdrs;
+ char **cpp;
+ {
+- return xdr_string(xdrs, cpp, LASTUNSIGNED);
++ return xdr_string(xdrs, cpp, RPC_MAXDATASIZE);
+ }
+
+ /*
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.1_add-des_impl-c-7f6bb9a3467a.patch b/net-libs/libtirpc/files/libtirpc-1.0.1_add-des_impl-c-7f6bb9a3467a.patch
new file mode 100644
index 000000000000..a62f23d87e94
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.1_add-des_impl-c-7f6bb9a3467a.patch
@@ -0,0 +1,29 @@
+From: Thorsten Kukuk <kukuk@thkukuk.de>
+Date: Mon, 4 Apr 2016 13:48:04 +0000 (-0400)
+Subject: Compile des_crypt.c and des_impl.c
+X-Git-Tag: libtirpc-1-0-2-rc3~1
+X-Git-Url: http://git.linux-nfs.org/?p=steved%2Flibtirpc.git;a=commitdiff_plain;h=7f6bb9a3467a57caf43425d213a06aeb7870086b
+
+Compile des_crypt.c and des_impl.c
+
+Add des_impl.c to become independent of deprecated functions of glibc
+
+Fixes: f17b44048003 ('Revert commit c0547c56dafb')
+Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
+Signed-off-by: Steve Dickson <steved@redhat.com>
+---
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index e4ed8aa..fba2aa4 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -24,7 +24,7 @@ libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c cln
+ rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
+ svc_auth_des.c \
+ svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
+- auth_time.c auth_des.c authdes_prot.c debug.c
++ auth_time.c auth_des.c authdes_prot.c debug.c des_crypt.c des_impl.c
+
+ ## XDR
+ libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c xdr_sizeof.c
+
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.1_ifdef-out-yp-headers-742bbdff6ddf.patch b/net-libs/libtirpc/files/libtirpc-1.0.1_ifdef-out-yp-headers-742bbdff6ddf.patch
new file mode 100644
index 000000000000..481ace7e6fcd
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.1_ifdef-out-yp-headers-742bbdff6ddf.patch
@@ -0,0 +1,30 @@
+From: Thorsten Kukuk <kukuk@thkukuk.de>
+Date: Mon, 4 Apr 2016 13:37:32 +0000 (-0400)
+Subject: getpublickey.c: ifdef out yp headers
+X-Git-Tag: libtirpc-1-0-2-rc3~3
+X-Git-Url: http://git.linux-nfs.org/?p=steved%2Flibtirpc.git;a=commitdiff_plain;h=742bbdff6ddff4dde0d610a842cd8ac0408af0a0
+
+getpublickey.c: ifdef out yp headers
+
+If we don't compile in YP support, don't include YP
+
+Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
+Signed-off-by: Steve Dickson <steved@redhat.com>
+---
+
+diff --git a/src/getpublickey.c b/src/getpublickey.c
+index 764a5f9..8cf4dc2 100644
+--- a/src/getpublickey.c
++++ b/src/getpublickey.c
+@@ -38,8 +38,10 @@
+ #include <pwd.h>
+ #include <rpc/rpc.h>
+ #include <rpc/key_prot.h>
++#ifdef YP
+ #include <rpcsvc/yp_prot.h>
+ #include <rpcsvc/ypclnt.h>
++#endif
+ #include <string.h>
+ #include <stdlib.h>
+
+
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.1_remove-des-deps-to-glibc-503ac2e9fa56.patch b/net-libs/libtirpc/files/libtirpc-1.0.1_remove-des-deps-to-glibc-503ac2e9fa56.patch
new file mode 100644
index 000000000000..0ef15290ea14
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.1_remove-des-deps-to-glibc-503ac2e9fa56.patch
@@ -0,0 +1,43 @@
+From: Thorsten Kukuk <kukuk@thkukuk.de>
+Date: Mon, 4 Apr 2016 13:51:15 +0000 (-0400)
+Subject: Remove des*.c dependencies to glibc
+X-Git-Tag: libtirpc-1-0-2-rc3
+X-Git-Url: http://git.linux-nfs.org/?p=steved%2Flibtirpc.git;a=commitdiff_plain;h=503ac2e9fa569d95e366766202a7ca840e28b28a
+
+Remove des*.c dependencies to glibc
+
+Our des_impl.c has dependencies to glibc header files
+and different arguments then our header file has.
+Bring our own code in sync.
+
+Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
+Signed-off-by: Steve Dickson <steved@redhat.com>
+---
+
+diff --git a/src/des_impl.c b/src/des_impl.c
+index c5b7ed6..9dbccaf 100644
+--- a/src/des_impl.c
++++ b/src/des_impl.c
+@@ -6,7 +6,8 @@
+ /* see <http://www.gnu.org/licenses/> to obtain a copy. */
+ #include <string.h>
+ #include <stdint.h>
+-#include <rpc/rpc_des.h>
++#include <sys/types.h>
++#include <rpc/des.h>
+
+
+ static const uint32_t des_SPtrans[8][64] =
+diff --git a/tirpc/rpc/des.h b/tirpc/rpc/des.h
+index d2881ad..018aa48 100644
+--- a/tirpc/rpc/des.h
++++ b/tirpc/rpc/des.h
+@@ -82,6 +82,6 @@ struct desparams {
+ /*
+ * Software DES.
+ */
+-extern int _des_crypt( char *, int, struct desparams * );
++extern int _des_crypt( char *, unsigned, struct desparams * );
+
+ #endif
+
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.1_remove-nis-h-dep-5f00f8c78c5d.patch b/net-libs/libtirpc/files/libtirpc-1.0.1_remove-nis-h-dep-5f00f8c78c5d.patch
new file mode 100644
index 000000000000..a8ad182f76b4
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.1_remove-nis-h-dep-5f00f8c78c5d.patch
@@ -0,0 +1,137 @@
+From: Thorsten Kukuk <kukuk@thkukuk.de>
+Date: Mon, 4 Apr 2016 13:44:19 +0000 (-0400)
+Subject: Remove dependency to nis.h
+X-Git-Tag: libtirpc-1-0-2-rc3~2
+X-Git-Url: http://git.linux-nfs.org/?p=steved%2Flibtirpc.git;a=commitdiff_plain;h=5f00f8c78c5d13437d50c0737ce77ad67fd4361d
+
+Remove dependency to nis.h
+
+libtirpc needs rpcsvc/nis.h for compiling, but does not
+provide this head file. It's only provided by glibc,
+if the sunrpc code is not marked as deprecated, and
+by libnsl. But libnsl needs libtirpc to compile...
+
+Signed-off-by: Steve Dickson <steved@redhat.com>
+---
+
+diff --git a/src/auth_des.c b/src/auth_des.c
+index 4d3639e..af2f61f 100644
+--- a/src/auth_des.c
++++ b/src/auth_des.c
+@@ -46,8 +46,8 @@
+ #include <rpc/clnt.h>
+ #include <rpc/xdr.h>
+ #include <sys/socket.h>
+-#undef NIS
+-#include <rpcsvc/nis.h>
++
++#include "nis.h"
+
+ #if defined(LIBC_SCCS) && !defined(lint)
+ #endif
+diff --git a/src/auth_time.c b/src/auth_time.c
+index 10e58eb..7f83ab4 100644
+--- a/src/auth_time.c
++++ b/src/auth_time.c
+@@ -44,8 +44,8 @@
+ #include <rpc/rpcb_prot.h>
+ //#include <clnt_soc.h>
+ #include <sys/select.h>
+-#undef NIS
+-#include <rpcsvc/nis.h>
++
++#include "nis.h"
+
+
+ #ifdef TESTING
+diff --git a/src/nis.h b/src/nis.h
+new file mode 100644
+index 0000000..588c041
+--- /dev/null
++++ b/src/nis.h
+@@ -0,0 +1,70 @@
++/*
++ * Copyright (c) 2010, Oracle America, Inc.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions are
++ * met:
++ *
++ * * Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ * * Redistributions in binary form must reproduce the above
++ * copyright notice, this list of conditions and the following
++ * disclaimer in the documentation and/or other materials
++ * provided with the distribution.
++ * * Neither the name of the "Oracle America, Inc." nor the names of its
++ * contributors may be used to endorse or promote products derived
++ * from this software without specific prior written permission.
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
++ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
++ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
++ * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
++ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
++ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
++ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
++ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++ */
++
++#ifndef _INTERNAL_NIS_H
++#define _INTERNAL_NIS_H 1
++
++/* This file only contains the definition of nis_server, to be
++ able to compile libtirpc without the need to have a glibc
++ with sunrpc or a libnsl already installed. */
++
++#define NIS_PK_NONE 0
++
++struct nis_attr {
++ char *zattr_ndx;
++ struct {
++ u_int zattr_val_len;
++ char *zattr_val_val;
++ } zattr_val;
++};
++typedef struct nis_attr nis_attr;
++
++typedef char *nis_name;
++
++struct endpoint {
++ char *uaddr;
++ char *family;
++ char *proto;
++};
++typedef struct endpoint endpoint;
++
++struct nis_server {
++ nis_name name;
++ struct {
++ u_int ep_len;
++ endpoint *ep_val;
++ } ep;
++ uint32_t key_type;
++ netobj pkey;
++};
++typedef struct nis_server nis_server;
++
++#endif /* ! _INTERNAL_NIS_H */
+diff --git a/src/rpc_soc.c b/src/rpc_soc.c
+index 1ec7b3f..ed0892a 100644
+--- a/src/rpc_soc.c
++++ b/src/rpc_soc.c
+@@ -61,8 +61,8 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+-#include <rpcsvc/nis.h>
+
++#include "nis.h"
+ #include "rpc_com.h"
+
+ extern mutex_t rpcsoc_lock;
+
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-dont-use-struct-rpcent.patch b/net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-dont-use-struct-rpcent.patch
new file mode 100644
index 000000000000..b2760d2b77b4
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-dont-use-struct-rpcent.patch
@@ -0,0 +1,51 @@
+From https://patchwork.kernel.org/patch/5499671/:
+
+ Subject: [6/9] Define struct rpcent on non GNU libc
+ From: Natanael Copa <ncopa@alpinelinux.org>
+ X-Patchwork-Id: 5499671
+ Message-Id: <1418718540-13667-7-git-send-email-ncopa@alpinelinux.org>
+ To: libtirpc-devel@lists.sourceforge.net
+ Cc: linux-nfs@vger.kernel.org, Natanael Copa <ncopa@alpinelinux.org>
+ Date: Tue, 16 Dec 2014 09:28:57 +0100
+
+ This fixes the following compile error with musl libc:
+ getrpcent.c:65:16: error: field 'rpc' has incomplete type
+ struct rpcent rpc;
+ ^
+
+ Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+ ---
+ This patch could probably be better. It assumes that only GNU libc has
+ the rpcent struct defined, but the BSDs probably has it too.
+
+ I am not sure if uClibc has it, but uClibc does define __GLIBC__ so it
+ might be broken there too.
+
+ I looked into using AC_CHECK_MEMBER but I don't think it is a good idea
+ so depend on config.h since this is a header that will be installed on
+ the system.
+
+ I also found out that struct rpcent is also defined in
+ /usr/include/gssrpc/netdb.h but I am unsure if we can depend on that
+ too since GSS is optional.
+
+ So I am a bit in doubt what the proper fix is. Meanwhile, this works
+ for musl libc.
+
+We fix the uClibc case by checking for __UCLIBC__ as well, since uClibc will
+define __GLIBC__ as well (why?) as __UCLIBC__. This should not affect the
+musl case.
+---
+
+diff -Naurp libtirpc-1.0.1.orig/tirpc/rpc/rpcent.h libtirpc-1.0.1/tirpc/rpc/rpcent.h
+--- libtirpc-1.0.1.orig/tirpc/rpc/rpcent.h 2015-10-30 15:15:14.000000000 +0000
++++ libtirpc-1.0.1/tirpc/rpc/rpcent.h 2017-07-05 04:58:27.141468000 +0000
+@@ -49,7 +49,7 @@ extern "C" {
+ #endif
+
+ /* These are defined in /usr/include/rpc/netdb.h */
+-#if !defined(__GLIBC__)
++#if !defined(__GLIBC__) || defined(__UCLIBC__)
+ struct rpcent {
+ char *r_name; /* name of server for this rpc program */
+ char **r_aliases; /* alias list */
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-use-memset-not-bzero.patch b/net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-use-memset-not-bzero.patch
new file mode 100644
index 000000000000..f7657f74db43
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.1_uclibc-use-memset-not-bzero.patch
@@ -0,0 +1,21 @@
+Inspired by a similar fix here:
+http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/packages/nfs-utils/files/uclibc_bzero_fix.patch?id=39d8c0fc4a9d14b7bad1442e05c536e28b196a47
+
+Because uclibc does not have a working implementation of `__bzero'.
+---
+
+diff -Naurp libtirpc-1.0.1.orig/src/des_impl.c libtirpc-1.0.1/src/des_impl.c
+--- libtirpc-1.0.1.orig/src/des_impl.c 2017-07-05 06:16:07.441468000 +0000
++++ libtirpc-1.0.1/src/des_impl.c 2017-07-05 06:19:57.351468000 +0000
+@@ -588,7 +588,11 @@ _des_crypt (char *buf, unsigned len, str
+ }
+ tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0;
+ tbuf[0] = tbuf[1] = 0;
++#ifndef __UCLIBC__
+ __bzero (schedule, sizeof (schedule));
++#else
++ memset (schedule, 0, sizeof (schedule));
++#endif
+
+ return (1);
+ }
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.2-bcopy-to-memmove.patch b/net-libs/libtirpc/files/libtirpc-1.0.2-bcopy-to-memmove.patch
new file mode 100644
index 000000000000..91619b7ac9fb
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.2-bcopy-to-memmove.patch
@@ -0,0 +1,49 @@
+diff -Naurp libtirpc-1.0.2.orig/src/auth_time.c libtirpc-1.0.2/src/auth_time.c
+--- libtirpc-1.0.2.orig/src/auth_time.c 2017-07-05 11:02:23.000000000 -0400
++++ libtirpc-1.0.2/src/auth_time.c 2017-07-30 17:48:31.361420071 -0400
+@@ -104,7 +104,7 @@ static int uaddr_to_sockaddr(uaddr, sin)
+ p_bytes[1] = (unsigned char)a[5] & 0x000000FF;
+
+ sin->sin_family = AF_INET; /* always */
+- bcopy((char *)&p_bytes, (char *)&sin->sin_port, 2);
++ memmove((char *)&sin->sin_port, (char *)&p_bytes, 2);
+
+ return (0);
+ }
+diff -Naurp libtirpc-1.0.2.orig/src/crypt_client.c libtirpc-1.0.2/src/crypt_client.c
+--- libtirpc-1.0.2.orig/src/crypt_client.c 2017-07-05 11:02:23.000000000 -0400
++++ libtirpc-1.0.2/src/crypt_client.c 2017-07-30 17:49:57.911419445 -0400
+@@ -75,8 +75,8 @@ _des_crypt_call(buf, len, dparms)
+ des_crypt_1_arg.desbuf.desbuf_val = buf;
+ des_crypt_1_arg.des_dir = dparms->des_dir;
+ des_crypt_1_arg.des_mode = dparms->des_mode;
+- bcopy(dparms->des_ivec, des_crypt_1_arg.des_ivec, 8);
+- bcopy(dparms->des_key, des_crypt_1_arg.des_key, 8);
++ memmove(des_crypt_1_arg.des_ivec, dparms->des_ivec, 8);
++ memmove(des_crypt_1_arg.des_key, dparms->des_key, 8);
+
+ result_1 = des_crypt_1(&des_crypt_1_arg, clnt);
+ if (result_1 == (desresp *) NULL) {
+@@ -88,8 +88,8 @@ _des_crypt_call(buf, len, dparms)
+
+ if (result_1->stat == DESERR_NONE ||
+ result_1->stat == DESERR_NOHWDEVICE) {
+- bcopy(result_1->desbuf.desbuf_val, buf, len);
+- bcopy(result_1->des_ivec, dparms->des_ivec, 8);
++ memmove(buf, result_1->desbuf.desbuf_val, len);
++ memmove(dparms->des_ivec, result_1->des_ivec, 8);
+ }
+
+ clnt_freeres(clnt, (xdrproc_t)xdr_desresp, result_1);
+diff -Naurp libtirpc-1.0.2.orig/src/svc_auth_des.c libtirpc-1.0.2/src/svc_auth_des.c
+--- libtirpc-1.0.2.orig/src/svc_auth_des.c 2017-07-05 11:02:23.000000000 -0400
++++ libtirpc-1.0.2/src/svc_auth_des.c 2017-07-30 17:50:36.591419165 -0400
+@@ -145,7 +145,7 @@ _svcauth_des(rqst, msg)
+ return (AUTH_BADCRED);
+ }
+ cred->adc_fullname.name = area->area_netname;
+- bcopy((char *)ixdr, cred->adc_fullname.name,
++ memmove(cred->adc_fullname.name, (char *)ixdr,
+ (u_int)namelen);
+ cred->adc_fullname.name[namelen] = 0;
+ ixdr += (RNDUP(namelen) / BYTES_PER_XDR_UNIT);
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.2-bzero-to-memset.patch b/net-libs/libtirpc/files/libtirpc-1.0.2-bzero-to-memset.patch
new file mode 100644
index 000000000000..64b516ed8262
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.2-bzero-to-memset.patch
@@ -0,0 +1,36 @@
+diff -Naurp libtirpc-1.0.2.orig/src/auth_time.c libtirpc-1.0.2/src/auth_time.c
+--- libtirpc-1.0.2.orig/src/auth_time.c 2017-07-05 11:02:23.000000000 -0400
++++ libtirpc-1.0.2/src/auth_time.c 2017-07-30 17:46:39.481420880 -0400
+@@ -317,7 +317,7 @@ __rpc_get_time_offset(td, srv, thost, ua
+ sprintf(ipuaddr, "%d.%d.%d.%d.0.111", a1, a2, a3, a4);
+ useua = &ipuaddr[0];
+
+- bzero((char *)&sin, sizeof(sin));
++ memset((char *)&sin, 0, sizeof(sin));
+ if (uaddr_to_sockaddr(useua, &sin)) {
+ msg("unable to translate uaddr to sockaddr.");
+ if (needfree)
+diff -Naurp libtirpc-1.0.2.orig/src/des_impl.c libtirpc-1.0.2/src/des_impl.c
+--- libtirpc-1.0.2.orig/src/des_impl.c 2017-07-05 11:02:23.000000000 -0400
++++ libtirpc-1.0.2/src/des_impl.c 2017-07-30 17:46:49.581420807 -0400
+@@ -588,7 +588,7 @@ _des_crypt (char *buf, unsigned len, str
+ }
+ tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0;
+ tbuf[0] = tbuf[1] = 0;
+- __bzero (schedule, sizeof (schedule));
++ memset (schedule, 0, sizeof (schedule));
+
+ return (1);
+ }
+diff -Naurp libtirpc-1.0.2.orig/src/svc_auth_des.c libtirpc-1.0.2/src/svc_auth_des.c
+--- libtirpc-1.0.2.orig/src/svc_auth_des.c 2017-07-05 11:02:23.000000000 -0400
++++ libtirpc-1.0.2/src/svc_auth_des.c 2017-07-30 17:46:58.771420741 -0400
+@@ -356,7 +356,7 @@ cache_init()
+
+ authdes_cache = (struct cache_entry *)
+ mem_alloc(sizeof(struct cache_entry) * AUTHDES_CACHESZ);
+- bzero((char *)authdes_cache,
++ memset((char *)authdes_cache, 0,
+ sizeof(struct cache_entry) * AUTHDES_CACHESZ);
+
+ authdes_lru = (short *)mem_alloc(sizeof(short) * AUTHDES_CACHESZ);
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.2-exports.patch b/net-libs/libtirpc/files/libtirpc-1.0.2-exports.patch
new file mode 100644
index 000000000000..174f4e3471f8
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.2-exports.patch
@@ -0,0 +1,17 @@
+See
+https://bugs.alpinelinux.org/issues/7041
+https://git.alpinelinux.org/cgit/aports/commit/?id=9edb53cea056101c4963a04b747bf102de23f919
+(just hit this myself when building libnsl)
+... dilfridge
+
+--- a/src/libtirpc.map
++++ b/src/libtirpc.map
+@@ -298,7 +298,7 @@
+ key_gendes;
+ key_get_conv;
+ key_setsecret;
+- key_secret_is_set;
++ key_secretkey_is_set;
+ key_setnet;
+ netname2host;
+ netname2user;
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.2-glibc-2.26.patch b/net-libs/libtirpc/files/libtirpc-1.0.2-glibc-2.26.patch
new file mode 100644
index 000000000000..6d583e6149d0
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.0.2-glibc-2.26.patch
@@ -0,0 +1,12 @@
+diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c
+index d23fbd1..79d6707 100644
+--- a/src/xdr_sizeof.c
++++ b/src/xdr_sizeof.c
+@@ -39,6 +39,7 @@
+ #include <rpc/xdr.h>
+ #include <sys/types.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include "un-namespace.h"
+
+ /* ARGSUSED */
diff --git a/net-libs/libtirpc/libtirpc-0.2.4-r1.ebuild b/net-libs/libtirpc/libtirpc-0.2.4-r1.ebuild
new file mode 100644
index 000000000000..86a1d4ad8426
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-0.2.4-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( virtual/krb5 )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cp -r tirpc "${S}"/ || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/libtirpc/libtirpc-0.2.4-r2.ebuild b/net-libs/libtirpc/libtirpc-0.2.4-r2.ebuild
new file mode 100644
index 000000000000..eacc746bba6c
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-0.2.4-r2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+RDEPEND="${RDEPEND}
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+
+src_unpack() {
+ unpack ${A}
+ cp -r tirpc "${S}"/ || die
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/libtirpc-0.2.5.ebuild b/net-libs/libtirpc/libtirpc-0.2.5.ebuild
new file mode 100644
index 000000000000..8117f9af846a
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-0.2.5.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+RDEPEND="${RDEPEND}
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+
+src_unpack() {
+ unpack ${A}
+ cp -r tirpc "${S}"/ || die
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-stdarg.patch
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/libtirpc-0.3.1.ebuild b/net-libs/libtirpc/libtirpc-0.3.1.ebuild
new file mode 100644
index 000000000000..5413eddfe386
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-0.3.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+RDEPEND="${RDEPEND}
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+
+src_unpack() {
+ unpack ${A}
+ cp -r tirpc "${S}"/ || die
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/libtirpc-1.0.1-r1.ebuild b/net-libs/libtirpc/libtirpc-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..9791662277b2
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-1.0.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib-minimal toolchain-funcs eutils
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0/3" # subslot matches SONAME major
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${P}-CVE-2017-8779.patch"
+)
+
+src_prepare() {
+ cp -r "${WORKDIR}"/tirpc "${S}"/ || die
+ epatch "${PATCHES[@]}"
+ epatch_user
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/libtirpc-1.0.1-r2.ebuild b/net-libs/libtirpc/libtirpc-1.0.1-r2.ebuild
new file mode 100644
index 000000000000..d1f98f791063
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-1.0.1-r2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools multilib-minimal toolchain-funcs eutils
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0/3" # subslot matches SONAME major
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${P}-CVE-2017-8779.patch"
+ "${FILESDIR}/${P}_uclibc-dont-use-struct-rpcent.patch"
+ "${FILESDIR}/${P}_ifdef-out-yp-headers-742bbdff6ddf.patch"
+ "${FILESDIR}/${P}_remove-nis-h-dep-5f00f8c78c5d.patch"
+ "${FILESDIR}/${P}_add-des_impl-c-7f6bb9a3467a.patch"
+ "${FILESDIR}/${P}_remove-des-deps-to-glibc-503ac2e9fa56.patch"
+ "${FILESDIR}/${P}_uclibc-use-memset-not-bzero.patch"
+)
+
+src_prepare() {
+ cp -r "${WORKDIR}"/tirpc "${S}"/ || die
+ epatch "${PATCHES[@]}"
+ epatch_user
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/libtirpc-1.0.1-r3.ebuild b/net-libs/libtirpc/libtirpc-1.0.1-r3.ebuild
new file mode 100644
index 000000000000..a87b7fdbbc17
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-1.0.1-r3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools multilib-minimal toolchain-funcs
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0/3" # subslot matches SONAME major
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${P}-CVE-2017-8779.patch"
+ "${FILESDIR}/${P}_uclibc-dont-use-struct-rpcent.patch"
+ "${FILESDIR}/${P}_ifdef-out-yp-headers-742bbdff6ddf.patch"
+ "${FILESDIR}/${P}_remove-nis-h-dep-5f00f8c78c5d.patch"
+ "${FILESDIR}/${P}_add-des_impl-c-7f6bb9a3467a.patch"
+ "${FILESDIR}/${P}_remove-des-deps-to-glibc-503ac2e9fa56.patch"
+ "${FILESDIR}/${P}_uclibc-use-memset-not-bzero.patch"
+)
+
+src_prepare() {
+ default
+ cp -r "${WORKDIR}"/tirpc . || die
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/.
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ if ! use static-libs ; then
+ find "${D}" -name '*.la' -delete || die
+ fi
+}
diff --git a/net-libs/libtirpc/libtirpc-1.0.1.ebuild b/net-libs/libtirpc/libtirpc-1.0.1.ebuild
new file mode 100644
index 000000000000..f75f44e2a1fd
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-1.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0/3" # subslot matches SONAME major
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+src_unpack() {
+ unpack ${A}
+ cp -r tirpc "${S}"/ || die
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/libtirpc-1.0.2-r1.ebuild b/net-libs/libtirpc/libtirpc-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..7dcf52cf8b7d
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-1.0.2-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools multilib-minimal toolchain-funcs eutils
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0/3" # subslot matches SONAME major
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.2-bcopy-to-memmove.patch"
+ "${FILESDIR}/${PN}-1.0.2-bzero-to-memset.patch"
+ "${FILESDIR}/${PN}-1.0.2-glibc-2.26.patch"
+ "${FILESDIR}/${PN}-1.0.2-exports.patch"
+)
+
+src_prepare() {
+ cp -r "${WORKDIR}"/tirpc "${S}"/ || die
+ epatch "${PATCHES[@]}"
+ epatch_user
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/libtirpc-1.0.2.ebuild b/net-libs/libtirpc/libtirpc-1.0.2.ebuild
new file mode 100644
index 000000000000..5ca806450953
--- /dev/null
+++ b/net-libs/libtirpc/libtirpc-1.0.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools multilib-minimal toolchain-funcs eutils
+
+DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
+HOMEPAGE="http://libtirpc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}-glibc-nfs.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0/3" # subslot matches SONAME major
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="ipv6 kerberos static-libs"
+
+RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.2-bcopy-to-memmove.patch"
+ "${FILESDIR}/${PN}-1.0.2-bzero-to-memset.patch"
+ "${FILESDIR}/${PN}-1.0.2-glibc-2.26.patch"
+)
+
+src_prepare() {
+ cp -r "${WORKDIR}"/tirpc "${S}"/ || die
+ epatch "${PATCHES[@]}"
+ epatch_user
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable kerberos gssapi) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ default
+
+ # libtirpc replaces rpc support in glibc, so we need it in /
+ gen_usr_ldscript -a tirpc
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto /etc
+ doins doc/netconfig
+
+ insinto /usr/include/tirpc
+ doins -r "${WORKDIR}"/tirpc/*
+
+ # makes sure that the linking order for nfs-utils is proper, as
+ # libtool would inject a libgssglue dependency in the list.
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libtirpc/metadata.xml b/net-libs/libtirpc/metadata.xml
new file mode 100644
index 000000000000..36e84cdfa7e1
--- /dev/null
+++ b/net-libs/libtirpc/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">libtirpc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libtorrent-rasterbar/Manifest b/net-libs/libtorrent-rasterbar/Manifest
new file mode 100644
index 000000000000..5fbc7f264d25
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/Manifest
@@ -0,0 +1,19 @@
+AUX libtorrent-rasterbar-1.0.11-boost-config-header.patch 1041 SHA256 8bf22581c07cb16a2fa40dec156ed77d31a065b058f087ae2fe1d26ee959afc5 SHA512 8aca436f89bfe8fffe4ac56dd2922575503b3649bd9e318d4292b3962dfbefcf32ce5f2ac666b3432c9d816e2edacaff230e5fd2fb5b0ff82f3c57e7b28120a6 WHIRLPOOL ef5d3d6c89c2cfe34de13ff49aed19c23adc9e316f6cc2b3838988e7ed8db6901239a821f1e011875af0cf55f771f614f509a12cb7a0ce41bcff3fa1dc66ad73
+AUX libtorrent-rasterbar-1.0.11-fix-abicompat.patch 6021 SHA256 044eb8da13db68c1b90e1ae89deb9455b8d712f6ce1bb9fea78530bbe5a90a82 SHA512 6cb37425f5aa85a4e12b5ac69c556f5220cbfb657f4023e14434472df316e4ead76dd77a46a86422c0604b3a334968467e19d075054207c9c14d4a0ae2000f18 WHIRLPOOL 0dac78a789f458fb300de24668d9cfcd2f070ce118cd31cbaac396b5cd0723d50d16b0075915533423fe37df55540c1f5621781ecc85488d592a78fe051d92c1
+AUX libtorrent-rasterbar-1.0.11-fix-test_ssl.patch 652 SHA256 d9177a04bc6ec89988676c5655f90ae417293bd1476769f26280cef8c7b920f8 SHA512 8f9eaa341cf947f318956ad1876e8606ebb53f68222f4290cc35336c3985e92602595c21a0a72d82aa5a39d0a68738e5b9baab46b6e27c15ac047397017cd24c WHIRLPOOL b4cbaf88cad85b499bc28cb76dc3812913f3b9485a99f6a0818d40844a3938f5671e0e50958218fc5fdec6ca0c622b8317cafafa614809e04c879bef376f5ae7
+AUX libtorrent-rasterbar-1.0.11-move-header.patch 1277 SHA256 76b30ae734a927ac8fc868186461c8d69bb64ff36b2d59b6f5dd4a6f9affdae6 SHA512 ed919e9aa249a7ddd81df601616307f08338f7f0f674b666ea9eb2cbfbb28bf70c114a0c316cda136766e5df226666386c527e82b70aafff0cdc33ebf874a706 WHIRLPOOL 038ef7dfdbf69ec9fb6c6201f4a02c841eb1e82185201613d9d44b67199479e2d9acf9ee6da450d0c4a173ed89ce42e1fce106629584bd9c3b464f4ce1b09e5d
+AUX libtorrent-rasterbar-1.0.9-test_torrent_parse.patch 1240 SHA256 c736e1e6641b19d47f11b13e7e732a6344357c47b1c65aa6108ed9eaae641002 SHA512 8e6cca0ac5d1e1b43e771921c64258b61e5c3c1249ae9c1b80d784153d919aff1eb7ebf3141a7bc5b926553b2c3c027a5659703da52b9f901c77bb288436edbb WHIRLPOOL 8ed51aa4b0aecb65c886f73cc1276e845a7e1527a76cc623b49965754018f399721d0f19a5c40452927a69ac390439b40ecbca5c09f68d131f5d935a0c4bce10
+DIST libtorrent-rasterbar-1.0.10.tar.gz 3324494 SHA256 a865ceaca8b14acdd7be56d361ce4e64361299647e157ef7b3ac7e2812ca4c3e SHA512 08976239ec12e2d67a974dadf3f16330f48e4b6de314f9d97c5fbbdbc696b76b6b1f8e20ceab6830d46d17b1bfd7e2fe4048fb1a5a97ece12c242c0cd0f7ded2 WHIRLPOOL 1e4ef2fb41eef0b825bd7c8c665638e3f689c3cefca3caa18a01c328caad9d31cd417fb49d25a7d55da6457a89e35a891427d70fb4f4d070c74be2e2e0347a60
+DIST libtorrent-rasterbar-1.0.11.tar.gz 3325786 SHA256 828d686770346f6da2c143c5a2844c5f5e407eb4a37982e90022763508abd62f SHA512 770d16b241174ae4b121af9b2ac7bcde8b14c6ed99352b827b760a3cbdc2c0ebd0d505319762897720c5f72acdff506ee9948ac1140e6d4591805eca5439b184 WHIRLPOOL e56bfe0830cfc7776436552171b14b08913d99a2c726c9eefa828027caaa96d9c3d97e6442a3b53f315eaa3e7e0f68175d813dbab1d6de1da5937054fc6cac9c
+DIST libtorrent-rasterbar-1.1.1.tar.gz 3641815 SHA256 f70c82367b0980460ef95aff3e117fd4a174477892d529beec434f74d615b31f SHA512 9d2409ee733f7579df61a63e37092d3c59a386b94031bae6a7ea64ffff617131d2c347ba0825b3d337ce2fedad3b527c8f697e3b49cea643d6543c972a1ebc12 WHIRLPOOL 36c4a007e0bf684e9603cd88b594a8ff91193b7d73447375e5651f945dba713c91daf0c625f90af6bb35c2ab017ca69da50d856ac6ce6be2e13f6d04ee7b2e35
+DIST libtorrent-rasterbar-1.1.2.tar.gz 3909420 SHA256 45e55f2374507bb67a9b9125f6b8d1c45e6cd33849c62b1d9cb56657354e359a SHA512 8cbf6b08bb21c6cbc3b5215a74ecdcce81e312484c688f2b20f95b7288d7f154e7f1337dd0c7d213687159d731bd4518166a964d6a1bda47dc2bd46115a55600 WHIRLPOOL ffd8f1afaece5762298fc8d3380ffe23ed79b5eb019e923d92fd408594054c2caf25e01b237b4cdc2c11181d93df6978301eecb44661378dc944dc89b3e6838a
+DIST libtorrent-rasterbar-1.1.3.tar.gz 3912760 SHA256 44196a89932c26528f5db19289d0f0f4130730a61dccc61c9f1eac9ad3e881d8 SHA512 c9d45ceed5cb56b0d7eb7961c3e641158738c5587ef921d98c73b4918b6f1ae0b40e50792b5289062267cc023e36aaa1f64f0f58d363f59875864791434229a5 WHIRLPOOL 4feb345444583317541639f8b42a53026b8ee87d7060254c3e32ef50f697f1f37ee678b3529dae7614938b336a6e937bba4c37cd1a62255594ec4b2f97cf5192
+DIST libtorrent-rasterbar-1.1.4.tar.gz 3917557 SHA256 ccf42367803a6df7edcf4756d1f7d0a9ce6158ec33b851b3b58fd470ac4eeba6 SHA512 50f5dfffbd9e6ba21dbe328be17962f29088a326c2c2bf177e1137ed2900323b9a5bae75ee63635404928452f206c72dd4f9100438a6b802bd36b11430e51bc3 WHIRLPOOL f1231e97cdaf820910dafbaf83f9edadf3b70a8fadc71b370e9813d9b9893e6ee893fccfc71a20438ca0b138ac9035c220b656843e7af2755451bf6587f07fc5
+EBUILD libtorrent-rasterbar-1.0.10.ebuild 2431 SHA256 c2b6473d53562301ec57d3ea147d30a61715b5ba3ca027f9c2c90bd4c63c6f44 SHA512 44a727e1e5f8fc1e18d1ba64807fc822e166afb1e2b7b274343232f526972d865c22feccd593dcbdcc488557f139a7aeb6a85bae4cf2e29f8c271a204dfd6857 WHIRLPOOL 8a8ebff96da931f3c402189b1d040998a14f578efcc5efedb5d4b80f71ff3ac94c757c76e6ff0bb832c8bb4dc8cd93b665ed903f05675c10cc1f3f931302ba8c
+EBUILD libtorrent-rasterbar-1.0.11-r1.ebuild 2623 SHA256 5cbf92b7321c8ace0bb9f09219c049ecb09631fe00394d4b4e9840f318bd1362 SHA512 486a328d3ee6cb6d434a75f3368995a28b85193e9aa3b8a761d52c710e201112b2a9a89fd127ae87370d2eebc5cc06c4122f792c21d80c0d698c1125f673bd77 WHIRLPOOL c3b2a633fdc1535e3da2381c79a49da4baf0a94d06dca1a4483cd46388c3c3ae8a2aab04ada68e5895c1226b87bc2d479fc9cb71b2e050aaf0cfeaacfdd8b838
+EBUILD libtorrent-rasterbar-1.0.11.ebuild 2577 SHA256 dc80520a860ed7ca8fc19bda2011b6fbca69d6c116dc283ac12951ba0f5f78da SHA512 1a1a86210ae665708eb7ee487fa67d2aa6c6ec1c83c3d609ca173ad1bfb2afacea84f0106452d61635d6b5c9505594e3143dc9d600d88d58e62d78289f9f60f8 WHIRLPOOL 9cd1fcb35a65e63df0660dd33f2572027747bd07bf71a3d777e5bcea99141bba965f58bb6a4742c8c4386cc723693773c66565213a3a16432bd24e84e02f8958
+EBUILD libtorrent-rasterbar-1.1.1.ebuild 2188 SHA256 7ca1da0e3d7ffb97ef96727cca9eb1d1549f2d4e51de776f150d9fe369facefa SHA512 3c8aabf70f33df759405ec00e1433e3cf922a8a520a7976f23ef3e9fae7e3e894c14519c0fd1951e5282423351e7c8d76f0f2e642a3914aece6be05f9b6096be WHIRLPOOL 525ffa1b4357cd372617f4fe59667a7a06180fe89f69a911d85cdc6a15f3b9b77a4ab631cb7d57e1bd2226260bab06addf9ff7942efacb510cb926c5815cb9d0
+EBUILD libtorrent-rasterbar-1.1.2.ebuild 2332 SHA256 feb05104e2114cc53eb58bdb0cd87d0d8a70699f9c50042408b4b6143bf6848e SHA512 6c6571cfc34cc298e421b7b7896263825b31ada0e886e3b1ad51c9fc39a0fd2bc0e0bda6c91c764fa65381dfb6b8fcf6c6d96c59f4ede276f92f6fc8ee784d27 WHIRLPOOL ebfc0b8388e758bacf29de117ca81bf5fdb9448cfe6fa276c8e02b9d36847a1e9f3cbf74ab680823612d2de078d9e8f03d4f6026680de197abe59ea0273f1da8
+EBUILD libtorrent-rasterbar-1.1.3.ebuild 2334 SHA256 99111ace0270ab88dc27cf8542285b6d603f26bf7889d063c17175f5d40a272d SHA512 c40d33148287943821e6da1ac724cf7124af40d44364b2875ca1f429dd021d8fc237244d0eb23f5df70dcd4d1276f251033e329caafef647c6a731d82c23fbae WHIRLPOOL 12d6e247f9894f3c8a9c056547e4705d161bb87e0d9a2ea4488b88295e41dac69274c9dd38353f0eb678a151653685e97af15a52f8b6d92dfe2841b7a2c4f5fb
+EBUILD libtorrent-rasterbar-1.1.4.ebuild 2334 SHA256 99111ace0270ab88dc27cf8542285b6d603f26bf7889d063c17175f5d40a272d SHA512 c40d33148287943821e6da1ac724cf7124af40d44364b2875ca1f429dd021d8fc237244d0eb23f5df70dcd4d1276f251033e329caafef647c6a731d82c23fbae WHIRLPOOL 12d6e247f9894f3c8a9c056547e4705d161bb87e0d9a2ea4488b88295e41dac69274c9dd38353f0eb678a151653685e97af15a52f8b6d92dfe2841b7a2c4f5fb
+MISC metadata.xml 545 SHA256 88fc784b68bc30256b8375dd4b1ef6b6269e724ff0464f70d7dfa62af0779966 SHA512 1f470cdd58093c59cd53f4f1cd49176d1d1fb9fdcec04f72b1a477c2527848664f13de09461d918f83053564b9335b489e5c553689c78ef2d3fbe47b07872f7f WHIRLPOOL 7e4969c5ed50840d199fcf3913e21d4ce67c1f7926cc1cae9d5303d2a3a1bd921473a518863dd747d0cbe27f5907227c44ea1bbc712f36d802906ad0c4532573
diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-boost-config-header.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-boost-config-header.patch
new file mode 100644
index 000000000000..f3a81c381d81
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-boost-config-header.patch
@@ -0,0 +1,31 @@
+commit 7eb3cf6bc6dbada3fa7bb7ff4d5981182813a0e2
+Author: arvidn <arvid@cs.umu.se>
+Date: Tue Jul 11 23:16:50 2017 -0700
+
+ use the official boost.config header
+
+diff --git a/include/libtorrent/export.hpp b/include/libtorrent/export.hpp
+index 87536af2a..503afe27a 100644
+--- a/include/libtorrent/export.hpp
++++ b/include/libtorrent/export.hpp
+@@ -33,19 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
+ #ifndef TORRENT_EXPORT_HPP_INCLUDED
+ #define TORRENT_EXPORT_HPP_INCLUDED
+
+-#if !defined(BOOST_COMPILER_CONFIG) && !defined(BOOST_NO_COMPILER_CONFIG)
+-# include <boost/config/select_compiler_config.hpp>
+-#endif
+-#ifdef BOOST_COMPILER_CONFIG
+-# include BOOST_COMPILER_CONFIG
+-#endif
+-
+-#if !defined(BOOST_PLATFORM_CONFIG) && !defined(BOOST_NO_PLATFORM_CONFIG)
+-# include <boost/config/select_platform_config.hpp>
+-#endif
+-#ifdef BOOST_PLATFORM_CONFIG
+-# include BOOST_PLATFORM_CONFIG
+-#endif
++#include <boost/config.hpp>
+
+ // backwards compatibility with older versions of boost
+ #if !defined BOOST_SYMBOL_EXPORT && !defined BOOST_SYMBOL_IMPORT
diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-abicompat.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-abicompat.patch
new file mode 100644
index 000000000000..eebee122551e
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-abicompat.patch
@@ -0,0 +1,157 @@
+From 76381835be19da2f8f1fc501445e31d32e6d83e4 Mon Sep 17 00:00:00 2001
+From: Arvid Norberg <arvid.norberg@gmail.com>
+Date: Sun, 12 Feb 2017 21:05:22 -0500
+Subject: [PATCH] fix ABI compatibility issue introduced with preformatted
+ entry type (#1702)
+
+fix ABI compatibility issue introduced with preformatted entry type
+---
+ ChangeLog | 2 ++
+ bindings/python/src/create_torrent.cpp | 2 +-
+ include/libtorrent/create_torrent.hpp | 6 ++++++
+ src/create_torrent.cpp | 31 ++++++++++++++++++++++++++++---
+ src/torrent.cpp | 11 ++++++++---
+ test/test_create_torrent.cpp | 2 +-
+ 6 files changed, 46 insertions(+), 8 deletions(-)
+
+diff --git a/ChangeLog b/ChangeLog
+index 9b501ce..9defe7c 100644
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -1,3 +1,5 @@
++ * fix ABI compatibility issue introduced with preformatted entry type
++
+ 1.0.11 release
+
+ * updating super seeding would include the torrent in state_update_alert
+diff --git a/bindings/python/src/create_torrent.cpp b/bindings/python/src/create_torrent.cpp
+index 55b6b51..31abb07 100644
+--- a/bindings/python/src/create_torrent.cpp
++++ b/bindings/python/src/create_torrent.cpp
+@@ -127,7 +127,7 @@ void bind_create_torrent()
+
+ class_<create_torrent>("create_torrent", no_init)
+ .def(init<file_storage&>())
+- .def(init<torrent_info const&>(arg("ti")))
++ .def(init<torrent_info const&, int>((arg("ti"), arg("version") = LIBTORRENT_VERSION_NUM)))
+ .def(init<file_storage&, int, int, int>((arg("storage"), arg("piece_size") = 0
+ , arg("pad_file_limit") = -1, arg("flags") = int(libtorrent::create_torrent::optimize))))
+
+diff --git a/include/libtorrent/create_torrent.hpp b/include/libtorrent/create_torrent.hpp
+index 05dc6ca..d55e86a 100644
+--- a/include/libtorrent/create_torrent.hpp
++++ b/include/libtorrent/create_torrent.hpp
+@@ -42,6 +42,7 @@ POSSIBILITY OF SUCH DAMAGE.
+ #include "libtorrent/utf8.hpp"
+ #include "libtorrent/allocator.hpp"
+ #include "libtorrent/file.hpp" // for combine_path etc.
++#include "libtorrent/version.hpp"
+
+ #include <vector>
+ #include <string>
+@@ -171,9 +172,12 @@ namespace libtorrent
+ // ``alignment`` is used when pad files are enabled. This is the size
+ // eligible files are aligned to. The default is -1, which means the
+ // piece size of the torrent.
++ // The ``use_preformatted`` parameter can be set to true to preserve
++ // invalid encoding of the .torrent file.
+ create_torrent(file_storage& fs, int piece_size = 0
+ , int pad_file_limit = -1, int flags = optimize, int alignment = -1);
+ create_torrent(torrent_info const& ti);
++ create_torrent(torrent_info const& ti, bool use_preformatted);
+
+ // internal
+ ~create_torrent();
+@@ -290,6 +294,8 @@ namespace libtorrent
+
+ private:
+
++ void load_from_torrent_info(torrent_info const& ti, bool const use_preformatted);
++
+ file_storage& m_files;
+ // if m_info_dict is initialized, it is
+ // used instead of m_files to generate
+diff --git a/src/create_torrent.cpp b/src/create_torrent.cpp
+index df4c759..aab5574 100644
+--- a/src/create_torrent.cpp
++++ b/src/create_torrent.cpp
+@@ -330,6 +330,24 @@ namespace libtorrent
+ , m_include_symlinks(false)
+ , m_calculate_file_hashes(false)
+ {
++ load_from_torrent_info(ti, false);
++ }
++
++ create_torrent::create_torrent(torrent_info const& ti, bool const use_preformatted)
++ : m_files(const_cast<file_storage&>(ti.files()))
++ , m_creation_date(time(0))
++ , m_multifile(ti.num_files() > 1)
++ , m_private(ti.priv())
++ , m_merkle_torrent(ti.is_merkle_torrent())
++ , m_include_mtime(false)
++ , m_include_symlinks(false)
++ , m_calculate_file_hashes(false)
++ {
++ load_from_torrent_info(ti, use_preformatted);
++ }
++
++ void create_torrent::load_from_torrent_info(torrent_info const& ti, bool const use_preformatted)
++ {
+ TORRENT_ASSERT(ti.is_valid());
+ if (!ti.is_valid()) return;
+
+@@ -361,9 +379,16 @@ namespace libtorrent
+ m_piece_hash.resize(m_files.num_pieces());
+ for (int i = 0; i < num_pieces(); ++i) set_hash(i, ti.hash_for_piece(i));
+
+- boost::shared_array<char> const info = ti.metadata();
+- int const size = ti.metadata_size();
+- m_info_dict.preformatted().assign(&info[0], &info[0] + size);
++ if (use_preformatted)
++ {
++ boost::shared_array<char> const info = ti.metadata();
++ int const size = ti.metadata_size();
++ m_info_dict.preformatted().assign(&info[0], &info[0] + size);
++ }
++ else
++ {
++ m_info_dict = bdecode(&ti.metadata()[0], &ti.metadata()[0] + ti.metadata_size());
++ }
+ m_info_hash = ti.info_hash();
+ }
+
+diff --git a/src/torrent.cpp b/src/torrent.cpp
+index 75f0cc7..ef05dfd 100644
+--- a/src/torrent.cpp
++++ b/src/torrent.cpp
+@@ -5601,9 +5601,14 @@ namespace libtorrent
+ {
+ if (m_magnet_link || (m_save_resume_flags & torrent_handle::save_info_dict))
+ {
+- boost::shared_array<char> const info = torrent_file().metadata();
+- int const size = torrent_file().metadata_size();
+- ret["info"].preformatted().assign(&info[0], &info[0] + size);
++ ret["info"] = bdecode(&torrent_file().metadata()[0]
++ , &torrent_file().metadata()[0] + torrent_file().metadata_size());
++// TODO: re-enable this code once there's a non-inlined encoder function. Or
++// perhaps this should not be used until saving resume_data via
++// add_torrent_params and a free function, similar to read_resume_data
++// boost::shared_array<char> const info = torrent_file().metadata();
++// int const size = torrent_file().metadata_size();
++// ret["info"].preformatted().assign(&info[0], &info[0] + size);
+ }
+ }
+
+diff --git a/test/test_create_torrent.cpp b/test/test_create_torrent.cpp
+index 0a87c08..33fd3e8 100644
+--- a/test/test_create_torrent.cpp
++++ b/test/test_create_torrent.cpp
+@@ -51,7 +51,7 @@ int test_main()
+
+ lt::torrent_info info(test_torrent, sizeof(test_torrent) - 1);
+
+- lt::create_torrent t(info);
++ lt::create_torrent t(info, true);
+
+ std::vector<char> buffer;
+ lt::bencode(std::back_inserter(buffer), t.generate());
diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-test_ssl.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-test_ssl.patch
new file mode 100644
index 000000000000..2add42c7dd2c
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-fix-test_ssl.patch
@@ -0,0 +1,21 @@
+From 7f060e4a70b21974bcf154cf1a93c7b68c5a9aa8 Mon Sep 17 00:00:00 2001
+From: Alden Torres <aldenml@gmail.com>
+Date: Sat, 8 Oct 2016 01:12:15 -0400
+Subject: [PATCH] fix openssl compilation with boost 1.62 (#1193)
+
+---
+ test/test_ssl.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/test/test_ssl.cpp b/test/test_ssl.cpp
+index 659973c..5aa6b15 100644
+--- a/test/test_ssl.cpp
++++ b/test/test_ssl.cpp
+@@ -47,7 +47,6 @@ POSSIBILITY OF SUCH DAMAGE.
+ #include <boost/asio/connect.hpp>
+
+ #ifdef TORRENT_USE_OPENSSL
+-#include <boost/asio/ssl/error.hpp> // for asio::error::get_ssl_category()
+ #include <boost/asio/ssl.hpp>
+
+ using namespace libtorrent;
diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-move-header.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-move-header.patch
new file mode 100644
index 000000000000..589998b7fb3d
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.11-move-header.patch
@@ -0,0 +1,34 @@
+From ecd20f15cb3fa5a0ebabd647b1f57f3cd62cb4b7 Mon Sep 17 00:00:00 2001
+From: sledgehammer_999 <hammered999@gmail.com>
+Date: Mon, 20 Feb 2017 01:22:27 +0200
+Subject: [PATCH] Move include into implementation instead(from #1702).
+
+---
+ bindings/python/src/create_torrent.cpp | 1 +
+ include/libtorrent/create_torrent.hpp | 1 -
+ 2 files changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bindings/python/src/create_torrent.cpp b/bindings/python/src/create_torrent.cpp
+index 31abb07..e856d85 100644
+--- a/bindings/python/src/create_torrent.cpp
++++ b/bindings/python/src/create_torrent.cpp
+@@ -6,6 +6,7 @@
+ #include <libtorrent/create_torrent.hpp>
+ #include <libtorrent/file_storage.hpp>
+ #include "libtorrent/intrusive_ptr_base.hpp"
++#include <libtorrent/version.hpp>
+ #include "bytes.hpp"
+
+ using namespace boost::python;
+diff --git a/include/libtorrent/create_torrent.hpp b/include/libtorrent/create_torrent.hpp
+index d55e86a..8d2c680 100644
+--- a/include/libtorrent/create_torrent.hpp
++++ b/include/libtorrent/create_torrent.hpp
+@@ -42,7 +42,6 @@ POSSIBILITY OF SUCH DAMAGE.
+ #include "libtorrent/utf8.hpp"
+ #include "libtorrent/allocator.hpp"
+ #include "libtorrent/file.hpp" // for combine_path etc.
+-#include "libtorrent/version.hpp"
+
+ #include <vector>
+ #include <string>
diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.9-test_torrent_parse.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.9-test_torrent_parse.patch
new file mode 100644
index 000000000000..658c0aa57156
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-1.0.9-test_torrent_parse.patch
@@ -0,0 +1,41 @@
+From bdd91e29225b44a1a13e670dc4cecfb58f241d28 Mon Sep 17 00:00:00 2001
+From: Davide Pesavento <pesa@gentoo.org>
+Date: Sun, 7 Aug 2016 12:14:57 +0200
+Subject: [PATCH] Disable failing torrent_parse tests
+
+For unknown reasons, some test torrents are missing from the tarball.
+Skip the corresponding test cases to avoid spurious failures.
+---
+ test/test_torrent_parse.cpp | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/test/test_torrent_parse.cpp b/test/test_torrent_parse.cpp
+index 663f341..2de6fb5 100644
+--- a/test/test_torrent_parse.cpp
++++ b/test/test_torrent_parse.cpp
+@@ -49,13 +49,10 @@ using namespace libtorrent;
+ test_torrent_t test_torrents[] =
+ {
+ { "base.torrent" },
+- { "empty_path.torrent" },
+ { "parent_path.torrent" },
+ { "hidden_parent_path.torrent" },
+ { "single_multi_file.torrent" },
+ { "slash_path.torrent" },
+- { "slash_path2.torrent" },
+- { "slash_path3.torrent" },
+ { "backslash_path.torrent" },
+ { "url_list.torrent" },
+ { "url_list2.torrent" },
+@@ -75,8 +72,6 @@ test_torrent_t test_torrents[] =
+ { "root_hash.torrent" },
+ { "empty_path_multi.torrent" },
+ { "duplicate_web_seeds.torrent" },
+- { "invalid_name3.torrent" },
+- { "symlink1.torrent" },
+ };
+
+ struct test_failing_torrent_t
+--
+2.9.2
+
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.10.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.10.ebuild
new file mode 100644
index 000000000000..b5f9a0b39537
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.10.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="threads"
+DISTUTILS_OPTIONAL=true
+DISTUTILS_IN_SOURCE_BUILD=true
+
+inherit distutils-r1 eutils versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
+HOMEPAGE="http://libtorrent.org"
+SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/8"
+KEYWORDS="amd64 arm ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="debug +dht doc examples +geoip libressl python +ssl static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-libs/boost:=[threads]
+ virtual/libiconv
+ examples? ( !net-p2p/mldonkey )
+ geoip? ( dev-libs/geoip )
+ python? (
+ ${PYTHON_DEPS}
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.9-test_torrent_parse.patch"
+ # master branch
+ "${FILESDIR}/${PN}-1.0.11-fix-test_ssl.patch"
+)
+
+src_prepare() {
+ default
+
+ # bug 578026
+ # prepend -L${S}/... to ensure bindings link against the lib we just built
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/compile_flags.in || die
+
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable debug logging)
+ $(use_enable debug statistics)
+ $(use_enable debug disk-stats)
+ $(use_enable dht dht $(usex debug logging yes))
+ $(use_enable examples)
+ $(use_enable geoip)
+ $(use_with geoip libgeoip)
+ $(use_enable ssl encryption)
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ --with-libiconv
+ )
+ econf "${myeconfargs[@]}"
+
+ if use python; then
+ myeconfargs+=(
+ --enable-python-binding
+ --with-boost-python
+ )
+ python_configure() {
+ econf "${myeconfargs[@]}"
+ }
+ distutils-r1_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ python_compile() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_compile
+ }
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ use doc && HTML_DOCS+=( "${S}"/docs )
+
+ default
+
+ python_install() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_install
+ }
+ use python && distutils-r1_src_install
+
+ prune_libtool_files
+}
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11-r1.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11-r1.ebuild
new file mode 100644
index 000000000000..2bdd886902f5
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11-r1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="threads"
+DISTUTILS_OPTIONAL=true
+DISTUTILS_IN_SOURCE_BUILD=true
+
+inherit distutils-r1 versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
+HOMEPAGE="http://libtorrent.org"
+SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/8"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug +dht doc examples +geoip libressl python +ssl static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND="
+ dev-libs/boost:=[threads]
+ virtual/libiconv
+ geoip? ( dev-libs/geoip )
+ python? (
+ ${PYTHON_DEPS}
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/libtool
+"
+RDEPEND="${COMMON_DEPEND}
+ examples? ( !net-p2p/mldonkey )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.9-test_torrent_parse.patch"
+ # RC_1_0 branch
+ "${FILESDIR}/${P}-fix-abicompat.patch"
+ "${FILESDIR}/${P}-move-header.patch"
+ # master branch
+ "${FILESDIR}/${P}-fix-test_ssl.patch"
+ "${FILESDIR}/${P}-boost-config-header.patch"
+)
+
+src_prepare() {
+ default
+
+ # bug 578026
+ # prepend -L${S}/... to ensure bindings link against the lib we just built
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/compile_flags.in || die
+
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable debug logging)
+ $(use_enable debug statistics)
+ $(use_enable debug disk-stats)
+ $(use_enable dht dht $(usex debug logging yes))
+ $(use_enable examples)
+ $(use_enable geoip)
+ $(use_with geoip libgeoip)
+ $(use_enable ssl encryption)
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ --with-libiconv
+ )
+ econf "${myeconfargs[@]}"
+
+ if use python; then
+ myeconfargs+=(
+ --enable-python-binding
+ --with-boost-python
+ )
+ python_configure() {
+ econf "${myeconfargs[@]}"
+ }
+ distutils-r1_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ python_compile() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_compile
+ }
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ use doc && HTML_DOCS+=( "${S}"/docs )
+
+ default
+
+ python_install() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_install
+ }
+ use python && distutils-r1_src_install
+
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11.ebuild
new file mode 100644
index 000000000000..956de7c8054b
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.0.11.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="threads"
+DISTUTILS_OPTIONAL=true
+DISTUTILS_IN_SOURCE_BUILD=true
+
+inherit distutils-r1 versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
+HOMEPAGE="http://libtorrent.org"
+SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/8"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug +dht doc examples +geoip libressl python +ssl static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND="
+ dev-libs/boost:=[threads]
+ virtual/libiconv
+ geoip? ( dev-libs/geoip )
+ python? (
+ ${PYTHON_DEPS}
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/libtool
+"
+RDEPEND="${COMMON_DEPEND}
+ examples? ( !net-p2p/mldonkey )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.9-test_torrent_parse.patch"
+ # RC_1_0 branch
+ "${FILESDIR}/${P}-fix-abicompat.patch"
+ "${FILESDIR}/${P}-move-header.patch"
+ # master branch
+ "${FILESDIR}/${P}-fix-test_ssl.patch"
+)
+
+src_prepare() {
+ default
+
+ # bug 578026
+ # prepend -L${S}/... to ensure bindings link against the lib we just built
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/compile_flags.in || die
+
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable debug logging)
+ $(use_enable debug statistics)
+ $(use_enable debug disk-stats)
+ $(use_enable dht dht $(usex debug logging yes))
+ $(use_enable examples)
+ $(use_enable geoip)
+ $(use_with geoip libgeoip)
+ $(use_enable ssl encryption)
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ --with-libiconv
+ )
+ econf "${myeconfargs[@]}"
+
+ if use python; then
+ myeconfargs+=(
+ --enable-python-binding
+ --with-boost-python
+ )
+ python_configure() {
+ econf "${myeconfargs[@]}"
+ }
+ distutils-r1_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ python_compile() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_compile
+ }
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ use doc && HTML_DOCS+=( "${S}"/docs )
+
+ default
+
+ python_install() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_install
+ }
+ use python && distutils-r1_src_install
+
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.1.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.1.ebuild
new file mode 100644
index 000000000000..3de47f94ee69
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="threads"
+DISTUTILS_OPTIONAL=true
+DISTUTILS_IN_SOURCE_BUILD=true
+
+inherit distutils-r1 eutils versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
+HOMEPAGE="http://libtorrent.org"
+SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/9"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug +dht doc examples libressl python +ssl static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-libs/boost:=[threads]
+ virtual/libiconv
+ examples? ( !net-p2p/mldonkey )
+ python? (
+ ${PYTHON_DEPS}
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+"
+
+src_prepare() {
+ default
+
+ # bug 578026
+ # prepend -L${S}/... to ensure bindings link against the lib we just built
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/compile_flags.in || die
+
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable debug logging)
+ $(use_enable debug disk-stats)
+ $(use_enable dht dht $(usex debug logging yes))
+ $(use_enable examples)
+ $(use_enable ssl encryption)
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ --with-libiconv
+ )
+ econf "${myeconfargs[@]}"
+
+ if use python; then
+ myeconfargs+=(
+ --enable-python-binding
+ --with-boost-python
+ )
+ python_configure() {
+ econf "${myeconfargs[@]}"
+ }
+ distutils-r1_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ python_compile() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_compile
+ }
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ use doc && HTML_DOCS+=( "${S}"/docs )
+
+ default
+
+ python_install() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_install
+ }
+ use python && distutils-r1_src_install
+
+ prune_libtool_files
+}
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.2.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.2.ebuild
new file mode 100644
index 000000000000..91626938f9c7
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.2.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="threads"
+DISTUTILS_OPTIONAL=true
+DISTUTILS_IN_SOURCE_BUILD=true
+
+inherit distutils-r1 eutils versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
+HOMEPAGE="http://libtorrent.org"
+SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/9"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug +dht doc examples libressl python +ssl static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-libs/boost:=[threads]
+ virtual/libiconv
+ examples? ( !net-p2p/mldonkey )
+ python? (
+ ${PYTHON_DEPS}
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+"
+
+src_prepare() {
+ default
+
+ # bug 578026
+ # prepend -L${S}/... to ensure bindings link against the lib we just built
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/link_flags.in || die
+
+ # prepend -I${S}/... to ensure bindings use the right headers
+ sed -i -e "s|^|-I${S}/src/include |" bindings/python/compile_flags.in || die
+
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable debug logging)
+ $(use_enable debug disk-stats)
+ $(use_enable dht dht $(usex debug logging yes))
+ $(use_enable examples)
+ $(use_enable ssl encryption)
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ --with-libiconv
+ )
+ econf "${myeconfargs[@]}"
+
+ if use python; then
+ python_configure() {
+ econf "${myeconfargs[@]}" \
+ --enable-python-binding \
+ --with-boost-python="${EPYTHON#python}"
+ }
+ distutils-r1_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ python_compile() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_compile
+ }
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ use doc && HTML_DOCS+=( "${S}"/docs )
+
+ default
+
+ python_install() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_install
+ }
+ use python && distutils-r1_src_install
+
+ prune_libtool_files
+}
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.3.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.3.ebuild
new file mode 100644
index 000000000000..86fa8d7e920c
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.3.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="threads"
+DISTUTILS_OPTIONAL=true
+DISTUTILS_IN_SOURCE_BUILD=true
+
+inherit distutils-r1 eutils versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
+HOMEPAGE="http://libtorrent.org"
+SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/9"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug +dht doc examples libressl python +ssl static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-libs/boost:=[threads]
+ virtual/libiconv
+ examples? ( !net-p2p/mldonkey )
+ python? (
+ ${PYTHON_DEPS}
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+"
+
+src_prepare() {
+ default
+
+ # bug 578026
+ # prepend -L${S}/... to ensure bindings link against the lib we just built
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/link_flags.in || die
+
+ # prepend -I${S}/... to ensure bindings use the right headers
+ sed -i -e "s|^|-I${S}/src/include |" bindings/python/compile_flags.in || die
+
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable debug logging)
+ $(use_enable debug disk-stats)
+ $(use_enable dht dht $(usex debug logging yes))
+ $(use_enable examples)
+ $(use_enable ssl encryption)
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ --with-libiconv
+ )
+ econf "${myeconfargs[@]}"
+
+ if use python; then
+ python_configure() {
+ econf "${myeconfargs[@]}" \
+ --enable-python-binding \
+ --with-boost-python="${EPYTHON#python}"
+ }
+ distutils-r1_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ python_compile() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_compile
+ }
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ use doc && HTML_DOCS+=( "${S}"/docs )
+
+ default
+
+ python_install() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_install
+ }
+ use python && distutils-r1_src_install
+
+ prune_libtool_files
+}
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.4.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.4.ebuild
new file mode 100644
index 000000000000..86fa8d7e920c
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.4.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="threads"
+DISTUTILS_OPTIONAL=true
+DISTUTILS_IN_SOURCE_BUILD=true
+
+inherit distutils-r1 eutils versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
+HOMEPAGE="http://libtorrent.org"
+SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/9"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug +dht doc examples libressl python +ssl static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-libs/boost:=[threads]
+ virtual/libiconv
+ examples? ( !net-p2p/mldonkey )
+ python? (
+ ${PYTHON_DEPS}
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+"
+
+src_prepare() {
+ default
+
+ # bug 578026
+ # prepend -L${S}/... to ensure bindings link against the lib we just built
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/link_flags.in || die
+
+ # prepend -I${S}/... to ensure bindings use the right headers
+ sed -i -e "s|^|-I${S}/src/include |" bindings/python/compile_flags.in || die
+
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug)
+ $(use_enable debug logging)
+ $(use_enable debug disk-stats)
+ $(use_enable dht dht $(usex debug logging yes))
+ $(use_enable examples)
+ $(use_enable ssl encryption)
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ --with-libiconv
+ )
+ econf "${myeconfargs[@]}"
+
+ if use python; then
+ python_configure() {
+ econf "${myeconfargs[@]}" \
+ --enable-python-binding \
+ --with-boost-python="${EPYTHON#python}"
+ }
+ distutils-r1_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ python_compile() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_compile
+ }
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ use doc && HTML_DOCS+=( "${S}"/docs )
+
+ default
+
+ python_install() {
+ cd "${BUILD_DIR}/../bindings/python" || die
+ distutils-r1_python_install
+ }
+ use python && distutils-r1_src_install
+
+ prune_libtool_files
+}
diff --git a/net-libs/libtorrent-rasterbar/metadata.xml b/net-libs/libtorrent-rasterbar/metadata.xml
new file mode 100644
index 000000000000..4133516fb4f6
--- /dev/null
+++ b/net-libs/libtorrent-rasterbar/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">libtorrent</remote-id>
+ <remote-id type="sourceforge">libtorrent</remote-id>
+ <remote-id type="github">arvidn/libtorrent</remote-id>
+ </upstream>
+ <use>
+ <flag name="dht">Enable DHT (distributed hash table) support</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libtorrent/Manifest b/net-libs/libtorrent/Manifest
new file mode 100644
index 000000000000..0289f4c95c88
--- /dev/null
+++ b/net-libs/libtorrent/Manifest
@@ -0,0 +1,6 @@
+DIST libtorrent-0.13.6.tar.gz 781253 SHA256 2838a08c96edfd936aff8fbf99ecbb930c2bfca3337dd1482eb5fccdb80d5a04 SHA512 b8aea4060357a8a40d15d42f1f698ef6f3ebdc885000bfbfa5bf9c81af8c88b5503a107e05c214e3e8489126928d336356c5e7e0eaf836b6b84a3cf74633b050 WHIRLPOOL 9bfc9444efef33dce9792b7dc50fd150ebf7462ea656f82ed7cf1b9c3873eb94742c1e3ecdea6d1c382383ca6ebd4ac1e1ea4169328534d056944fb26c2aa4fd
+EBUILD libtorrent-0.13.6-r1.ebuild 1723 SHA256 5f55d93452d6158f8d993113b124bb576c4d098e998978a5c96b0332ba284ff9 SHA512 ba76515e588c4d2818055fcf6777e6fa1dd3df973dd0da8d32c68d1babcc7b700182f91fbf1d6eafcc7152dab1a508b4b483871e61c404f18d14e5a62f96b2f2 WHIRLPOOL 921b6f9aa7fd41f8ea29fb18792912cf287258ecdcf79c90c4018da8015e02e400f4d3f7259c7a75585c4d3bba1135cca610fefbf7ebf1503a08e3e5bd34e638
+EBUILD libtorrent-0.13.6.ebuild 1331 SHA256 bdcf15cb76a4c0eefe86f3c9f37087f5785726ed1b35ef4fcf5e8ad0dc4f2738 SHA512 2d10363590b0e224fa814964a3ff8adaf3e43f2e2ee1feb7ccf4d3ff524577aeb295e10f5fe5270bbf694f035440078c7e2caf1e3f6ca1e0231aac03ad81bac2 WHIRLPOOL e83b9c5ffccfd951c80ab34414f740a150bf01b1bff957cf47f39e1cd108b9745a561169773262d85ed6fb5db59c7a77d15bd80479753230803d825119fb1e51
+MISC ChangeLog 3951 SHA256 7dddd53f6ecc39cb71823769ac104d6b7aa50b484ba126ab251a08b7b5d049a1 SHA512 b2ac9985ff96996e306b8bafbd3b09460ad17c380ab9313452dd720da4fe900b37eb882792cdbcc9e2642750cf66ac4585a669a6a4d560e1e2f11da1e3e6b455 WHIRLPOOL e3437752a60601d9ae4779393aa34cad93ef1012d493a2269e596654bdec11d9f55e3aa4ce362d6d0c327c2abeea43b89060e2de22a7d438f9e695ae61ba727d
+MISC ChangeLog-2015 27326 SHA256 58f65ecc39872b7657cc376cf647c4de50e7f8c7a6b0a203fbb34db27b7c8755 SHA512 5c98dfdde0ed4f29699d55eb7ee325da2095610b5c22492f003fa069cd555ff180213f9657c9cf9861e72ca138cae87f55f93bb01c57961cfc14f2bf8e706aa5 WHIRLPOOL 43564cd468893bf800d17a4b6ed7af5d448775363465ef31189ddc7ad23ae6af4779550981a6403055c043110ba92328f3f3f36da5cfeba5ef68862022b30400
+MISC metadata.xml 332 SHA256 36a3895494e6514db7aad087b09ac81772f023a878587e21dc8dbe839943ac28 SHA512 24978f63ee3f16ffe25333a8f42591d317ab88a655026fa43b04feff2c629c456763520746a61dac5ac9ab0364bbde308c3734db4e3048cc184f3379cf1ef4e2 WHIRLPOOL 6c00ace826b4711c9281390af3ae74d2a102c9da43f35f8ab186a23889f6949f8eb05ae37779260521bf3bfea2089aa4ff3cb0b529ce61aa180760ccab924052
diff --git a/net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild b/net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild
new file mode 100644
index 000000000000..7eafcd218bef
--- /dev/null
+++ b/net-libs/libtorrent/libtorrent-0.13.6-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils libtool toolchain-funcs
+
+DESCRIPTION="BitTorrent library written in C++ for *nix"
+HOMEPAGE="https://rakshasa.github.io/rtorrent/"
+SRC_URI="http://rtorrent.net/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+# The README says that the library ABI is not yet stable and dependencies on
+# the library should be an explicit, syncronized version until the library
+# has had more time to mature. Until it matures we should not include a soname
+# subslot.
+SLOT="0"
+
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
+IUSE="debug ipv6 libressl ssl test"
+
+RDEPEND="
+ sys-libs/zlib
+ >=dev-libs/libsigc++-2.2.2:2
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-util/cppunit )"
+
+src_prepare() {
+ elibtoolize
+}
+
+src_configure() {
+ # bug 518582
+ local disable_instrumentation
+ echo -e "#include <inttypes.h>\nint main(){ int64_t var = 7; __sync_add_and_fetch(&var, 1); return 0;}" > "${T}/sync_add_and_fetch.c" || die
+ $(tc-getCC) ${CFLAGS} -o /dev/null -x c "${T}/sync_add_and_fetch.c" >/dev/null 2>&1
+ if [[ $? -ne 0 ]]; then
+ disable_instrumentation="--disable-instrumentation"
+ fi
+
+ # configure needs bash or script bombs out on some null shift, bug #291229
+ CONFIG_SHELL=${BASH} econf \
+ --enable-aligned \
+ $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable ssl openssl) \
+ ${disable_instrumentation} \
+ --with-posix-fallocate
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+}
diff --git a/net-libs/libtorrent/libtorrent-0.13.6.ebuild b/net-libs/libtorrent/libtorrent-0.13.6.ebuild
new file mode 100644
index 000000000000..49cf4e570c4e
--- /dev/null
+++ b/net-libs/libtorrent/libtorrent-0.13.6.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils libtool toolchain-funcs
+
+DESCRIPTION="BitTorrent library written in C++ for *nix"
+HOMEPAGE="https://rakshasa.github.io/rtorrent/"
+SRC_URI="http://rtorrent.net/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+# The README says that the library ABI is not yet stable and dependencies on
+# the library should be an explicit, syncronized version until the library
+# has had more time to mature. Until it matures we should not include a soname
+# subslot.
+SLOT="0"
+
+KEYWORDS="amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
+IUSE="debug ipv6 libressl ssl test"
+
+RDEPEND="
+ sys-libs/zlib
+ >=dev-libs/libsigc++-2.2.2:2
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-util/cppunit )"
+
+src_prepare() {
+ elibtoolize
+}
+
+src_configure() {
+ # configure needs bash or script bombs out on some null shift, bug #291229
+ CONFIG_SHELL=${BASH} econf \
+ --enable-aligned \
+ $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable ssl openssl) \
+ --with-posix-fallocate
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+}
diff --git a/net-libs/libtorrent/metadata.xml b/net-libs/libtorrent/metadata.xml
new file mode 100644
index 000000000000..0cdfd4647aee
--- /dev/null
+++ b/net-libs/libtorrent/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>perfinion@gentoo.org</email>
+ <name>Jason Zaman</name>
+ </maintainer>
+
+ <upstream>
+ <remote-id type="github">rakshasa/libtorrent</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libtrace/Manifest b/net-libs/libtrace/Manifest
new file mode 100644
index 000000000000..1c69703a3125
--- /dev/null
+++ b/net-libs/libtrace/Manifest
@@ -0,0 +1,14 @@
+AUX libtrace-3.0.20-autoconf-1.13.patch 219 SHA256 92d1e30b1ee6a110fe5357152c310b6f913c8acaa4c44255274552bf3aa44653 SHA512 6335e63cdf537700a60f8eeae940d963d582e9373e1ea6a14b7960a52e1c61464785134ec14bbe49ededf7554f0715fdb4d59565d1c9870f8a0bc5524538286e WHIRLPOOL d3e659211a0e500cb5a501259e59ae1b8689475fc6f467c6d41b3ed925a176ed1245f0d9a37cda99b8d27de4e8d0fb968f188845cbd5011497e2b468cf180362
+AUX libtrace-3.0.20-no-examples.patch 333 SHA256 e10325b10cefeb359bb2c3bb39567a04d7f5f2a4ed75b08377065b3a1dcbef98 SHA512 105bffab152ff700f969305428933df1ed2d5d92966b0d09f08942faad3f7243a9914af0eecf12b33fd519e7f961ab0eee0796a91404cc4cc52a438f572c4385 WHIRLPOOL 18048c592bf575ff13a4b02cacc9d1996c48c06b0fc030f0a75feb585391f83453aed0dc37a5b8decf5bbd5fa8ca33aeb9e78f17b5339e142a22a2cf6d996c51
+AUX libtrace-3.0.20-tinfo.patch 474 SHA256 d93638532ed22ab7acb6bc1e4bd5e15e4dddf6adf26ebcb4fef8627075a34ff6 SHA512 eb0369b9b8a273e47189b63ac90e9bcfe3a10532343efce8b5ab1d79c84a427dbd6655683c9e7b135978e703567603eec12d1314dd6bb44c91c716d166c9b824 WHIRLPOOL e8e4547d48580497561ce5afa68889b2cff25afabc6d9ee0c46d6bdf32c6073154ee40837617b51e5889ffc7da6b4f5ff47a53eac201d16acc564e414d1aa813
+AUX libtrace-4.0.0-no-examples.patch 282 SHA256 03cbb11c60e762f3840db9cfdb068eba5fc0c59cce723ad5022a8ae6820628f9 SHA512 f000efc2de1e46db5fa486e3640eaea95389f09e22c46b903de2e88d8f13e2421951a9f46f9cf90f5989cbd7f55cc0e16e8e038c872241d624219b8e85b86f2d WHIRLPOOL 12eeba7b7d876ca6dd7cc60483bab6046190fc497930fb0613a1b47b9d7af0165e24e4ea305a928986818a9668d50e7784ed7668e63bb340007272e7912deea6
+AUX libtrace-4.0.0-with-numa.patch 655 SHA256 7238cffa1fdb820e1e09e0b1eb4d9333b0f8df00a3faffabf213bb4cec84be30 SHA512 f6d0dbd63b2ca7055d001612c73af3c8f0fc6eaae0c565607d241abfbc9457f3fd739aad5f7933a8b281ebf36f601534a648067a62b0582eb6741fcfdc68d5fe WHIRLPOOL 9484d36ca0aff57728fad96e92011b454290e7f88acf30a10368e5aa85db9909e93fb9bcb6dc2ac88c1388f329282b838327fbc496ecdf36c691eade0f895e4c
+DIST libtrace-3.0.22.tar.bz2 642284 SHA256 b8bbaa2054c69cc8f93066143e2601c09c8ed56e75c6e5e4e2c115d07952f8f8 SHA512 6a9055c6c7f7f65f08eacf111abf72418eb4546ff252362977e4f81a4e6d3a36bf7e2ed6ea988cd6baf6b315d6a5fc1691de364fc7d56e561ae230da77810113 WHIRLPOOL 4c1c6c3faef2049466bd8ad07ea9b1c0462ff78c91278b7ed1e9f0938c16d871c6215b24dbed2a85a942e9a63856a15d082c82174dc40d8eec081d92e33dc8d8
+DIST libtrace-4.0.0.tar.gz 912224 SHA256 50c072f12ae809107b0a11c930c1766067756b2c419a31f571898198ab6ddc63 SHA512 a75ab22162e2b68ce0aa70f04d3f1e51a80ef4bfd3b84ce10fb7d921a40459cc29693122b6f7eca6bcb680693ea3ff7c3b289d91ae7ed0b353cd779cabaa5093 WHIRLPOOL 1aaad61c9880846dc6e423e58505888db82257ec05bf574b7be273ea5aa5258999539bb639ca9bc45e9fcf4ff0220665f9084d152dd414d23f9ea121219484d4
+DIST libtrace-4.0.1.tar.gz 914773 SHA256 27a123480324658e719b6c8ecb27e5d4c2bb11513965a2015854d56567f97dcb SHA512 ef8c0fc5b07f2af2960d7be32bca9b8025357366e09977df8472abd957324a66f932f010acae01f1657bfe9dd917a880daef6c12ecb9a9b2cf7b74bd0d52be14 WHIRLPOOL 237a16a7dca30dc53e9eb7019c630878135d3f107c85c359b6ba355b5a3317ec68e2c3cfd21afafdf12cae44bf81f51dbcb3c6e6ebad79088a89e96e772a7bdf
+EBUILD libtrace-3.0.22.ebuild 1094 SHA256 f62725bdaeb915aa800bb00b0d7fef5547d9e08355d203c73e566385a0d28e66 SHA512 c56c7edd3732c38cfd5b417bb4b9a50fa43a5e8d121e7bc29a43edfcde3f6a5163458ab79419d7b1846d6cc570586f77fe0bcc21809524fb785e6c95a42aca01 WHIRLPOOL f01ad78aa3a8f7630e1782efd40289f68bde1f287009d4344700b088e45bb236e4706a6bc5f1ee505911c7aa5cab8ddccd04f5117b73dadb4ff5e3e404919724
+EBUILD libtrace-4.0.0.ebuild 1124 SHA256 897a56227a34223675edae1689bd5a5c242a3d019d25c0d5eaaf7f89e3427a7b SHA512 24767e5b0b9d493fc407a98653a3f66a06c896b86e0b0bb0a5c049454743f5fd501649905f5ac2a8aedd4bb9746a9a9045bc42d31e685b858c3ff9b7ba3b1ec3 WHIRLPOOL 2dae48d20afe7c48155b9702bda003cd70790205c877a8658e58b530eed72b1d201dcee0b8f5d0f14c447eb44a132668026600dd183737a02a38028032afd45b
+EBUILD libtrace-4.0.1.ebuild 1124 SHA256 897a56227a34223675edae1689bd5a5c242a3d019d25c0d5eaaf7f89e3427a7b SHA512 24767e5b0b9d493fc407a98653a3f66a06c896b86e0b0bb0a5c049454743f5fd501649905f5ac2a8aedd4bb9746a9a9045bc42d31e685b858c3ff9b7ba3b1ec3 WHIRLPOOL 2dae48d20afe7c48155b9702bda003cd70790205c877a8658e58b530eed72b1d201dcee0b8f5d0f14c447eb44a132668026600dd183737a02a38028032afd45b
+MISC ChangeLog 3247 SHA256 36b4e2078b2a81d9bd2663f463e6f41ddfb35f2eff00f9151a54c34581ddfd7e SHA512 d75247f96b16aabff5762d4955fd730b7f435dc0dd6b83708ef97448748715542f6edcad3a22876b0f544f71f81263f1bdc88842a0f051e361db0239d0c624d1 WHIRLPOOL d10592cd51c280b4f5f106e8e837294c3d38c1533791897f9cb35aeac41dcd0c53a117f5d16d4b13b32e2f28e85302391b751a236169aeb87fc3fa9ca979f195
+MISC ChangeLog-2015 2602 SHA256 3496e68958d178963e4a69329d8e8411a9c64c7b081c9bfd7b16936d627fe2ef SHA512 b6b43949b52c3bfd200c9404959c276837da6bf15165f9518afdf6ead066eaebee6176bbdc212ce57633807ef7248549cee1efadf44a83cd47a301b68bf8e0b8 WHIRLPOOL dc7d516a72579d17ab2b96c053d4c356e320ce34b7138e0dafcf4dc0552f9e67ea851e9e492765034367a8a8dc46b5f0d712ed17c2691688774d715d88d3927b
+MISC metadata.xml 349 SHA256 c718a43578deb0215dde64903295831f20c746a1e38559fe71afe0a0b3f8c123 SHA512 4cb73fcfe0a021f618da0281bf492f407459d637e7f58ccb5a698f3612f9c8c19ca90d1449f17c9c6c47694b6a19ac8c5c80a285b1662208c6c18de51afb0ac4 WHIRLPOOL c395fe1a8d533103b4304d34025b3bf6e96b29876c11545aec86c8510df1e34244e367fd0ffd076205d8afa34c5fe5e00ea16729cd8249b021baa6a3298220ee
diff --git a/net-libs/libtrace/files/libtrace-3.0.20-autoconf-1.13.patch b/net-libs/libtrace/files/libtrace-3.0.20-autoconf-1.13.patch
new file mode 100644
index 000000000000..ed51ecb82868
--- /dev/null
+++ b/net-libs/libtrace/files/libtrace-3.0.20-autoconf-1.13.patch
@@ -0,0 +1,11 @@
+--- a/configure.in
++++ b/configure.in
+@@ -61,7 +61,7 @@
+ ])
+
+ # Put all our automake definitions in config.h
+-AM_CONFIG_HEADER([config.h])
++AC_CONFIG_HEADERS([config.h])
+
+ # Checks for C and C++ compilers
+ AC_PROG_CC
diff --git a/net-libs/libtrace/files/libtrace-3.0.20-no-examples.patch b/net-libs/libtrace/files/libtrace-3.0.20-no-examples.patch
new file mode 100644
index 000000000000..57983d036114
--- /dev/null
+++ b/net-libs/libtrace/files/libtrace-3.0.20-no-examples.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,7 +1,7 @@
+ LIBPACKETDUMP_DIR = libpacketdump
+ TOOLS_DIR = tools
+ WANDIO_DIR=libwandio
+-SUBDIRS = $(WANDIO_DIR) lib $(LIBPACKETDUMP_DIR) $(TOOLS_DIR) docs examples
++SUBDIRS = $(WANDIO_DIR) lib $(LIBPACKETDUMP_DIR) $(TOOLS_DIR) docs
+
+ ACLOCAL_AMFLAGS = -I m4
+ AUTOMAKE_OPTIONS = 1.9 foreign
diff --git a/net-libs/libtrace/files/libtrace-3.0.20-tinfo.patch b/net-libs/libtrace/files/libtrace-3.0.20-tinfo.patch
new file mode 100644
index 000000000000..9bda8a43b6b2
--- /dev/null
+++ b/net-libs/libtrace/files/libtrace-3.0.20-tinfo.patch
@@ -0,0 +1,21 @@
+--- a/tools/tracetop/Makefile.am
++++ b/tools/tracetop/Makefile.am
+@@ -6,6 +6,6 @@
+ include ../Makefile.tools
+
+ tracetop_SOURCES = tracetop.cc
+-tracetop_LDADD = -lncurses
++tracetop_LDADD = @ncurses_LIBS@
+ tracetop_CPPFLAGS = -fno-strict-aliasing $(AM_CFLAGS)
+ endif
+--- a/configure.in
++++ b/configure.in
+@@ -492,6 +492,8 @@
+ fi
+ fi
+
++PKG_CHECK_MODULES(ncurses,ncurses)
++
+ AC_ARG_WITH([ncurses],
+ AC_HELP_STRING([--with-ncurses], [build tracetop (requires ncurses)]))
+
diff --git a/net-libs/libtrace/files/libtrace-4.0.0-no-examples.patch b/net-libs/libtrace/files/libtrace-4.0.0-no-examples.patch
new file mode 100644
index 000000000000..8467ffda24b0
--- /dev/null
+++ b/net-libs/libtrace/files/libtrace-4.0.0-no-examples.patch
@@ -0,0 +1,10 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,6 @@
+ LIBPACKETDUMP_DIR = libpacketdump
+ TOOLS_DIR = tools
+-SUBDIRS = lib $(LIBPACKETDUMP_DIR) $(TOOLS_DIR) docs examples
++SUBDIRS = lib $(LIBPACKETDUMP_DIR) $(TOOLS_DIR) docs
+
+ ACLOCAL_AMFLAGS = -I m4
+ AUTOMAKE_OPTIONS = 1.9 foreign
diff --git a/net-libs/libtrace/files/libtrace-4.0.0-with-numa.patch b/net-libs/libtrace/files/libtrace-4.0.0-with-numa.patch
new file mode 100644
index 000000000000..54e9f54f8dc1
--- /dev/null
+++ b/net-libs/libtrace/files/libtrace-4.0.0-with-numa.patch
@@ -0,0 +1,27 @@
+--- a/configure.in
++++ b/configure.in
+@@ -431,7 +431,23 @@
+ [[#include <linux/if_packet.h>]])
+
+ # If we use DPDK we might be able to use libnuma
+-AC_CHECK_LIB(numa, numa_node_to_cpus, have_numa=1, have_numa=0)
++AC_ARG_WITH(numa,
++ AS_HELP_STRING(--with-numa,include NUMA support),
++[
++ if test "$withval" = no
++ then
++ want_numa=no
++ else
++ want_numa=yes
++ fi
++],[
++ # Default to building without NUMA
++ want_numa=yes
++])
++
++if test "$want_numa" != no; then
++ AC_CHECK_LIB(numa, numa_node_to_cpus, have_numa=1, have_numa=0)
++fi
+
+ # Checks for various "optional" libraries
+ AC_CHECK_LIB(pthread, pthread_create, have_pthread=1, have_pthread=0)
diff --git a/net-libs/libtrace/libtrace-3.0.22.ebuild b/net-libs/libtrace/libtrace-3.0.22.ebuild
new file mode 100644
index 000000000000..068127a118aa
--- /dev/null
+++ b/net-libs/libtrace/libtrace-3.0.22.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A library and tools for trace processing"
+HOMEPAGE="http://research.wand.net.nz/software/libtrace.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 doc lzo ncurses static-libs zlib"
+
+RDEPEND=">=net-libs/libpcap-0.8
+ ncurses? ( sys-libs/ncurses )
+ bzip2? ( app-arch/bzip2 )
+ zlib? ( sys-libs/zlib )
+ lzo? ( dev-libs/lzo )"
+DEPEND="${RDEPEND}
+ app-doc/doxygen
+ sys-devel/flex
+ virtual/yacc
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch \
+ "${FILESDIR}"/${PN}-3.0.20-no-examples.patch \
+ "${FILESDIR}"/${PN}-3.0.20-tinfo.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-man \
+ $(use_enable static-libs static) \
+ $(use_with ncurses) \
+ $(use_with bzip2) \
+ $(use_with zlib) \
+ $(use_with lzo)
+}
+
+src_install() {
+ default
+ use doc && dohtml docs/doxygen/html/*
+ prune_libtool_files --modules
+}
diff --git a/net-libs/libtrace/libtrace-4.0.0.ebuild b/net-libs/libtrace/libtrace-4.0.0.ebuild
new file mode 100644
index 000000000000..bb592018d475
--- /dev/null
+++ b/net-libs/libtrace/libtrace-4.0.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="A library and tools for trace processing"
+HOMEPAGE="http://research.wand.net.nz/software/libtrace.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P/_/-}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ncurses numa static-libs"
+
+RDEPEND="
+ >=net-libs/libpcap-0.8
+ dev-libs/openssl:0=
+ ncurses? ( sys-libs/ncurses:0= )
+ net-libs/wandio
+ numa? ( sys-process/numactl )
+"
+DEPEND="
+ ${RDEPEND}
+ app-doc/doxygen
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch
+ "${FILESDIR}"/${PN}-3.0.20-tinfo.patch
+ "${FILESDIR}"/${PN}-4.0.0-no-examples.patch
+ "${FILESDIR}"/${PN}-4.0.0-with-numa.patch
+)
+S=${WORKDIR}/${P/_beta/}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with ncurses) \
+ $(use_with numa) \
+ --with-man
+}
+
+src_install() {
+ default
+
+ use doc && dodoc -r docs/doxygen/html
+
+ prune_libtool_files --modules
+}
diff --git a/net-libs/libtrace/libtrace-4.0.1.ebuild b/net-libs/libtrace/libtrace-4.0.1.ebuild
new file mode 100644
index 000000000000..bb592018d475
--- /dev/null
+++ b/net-libs/libtrace/libtrace-4.0.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="A library and tools for trace processing"
+HOMEPAGE="http://research.wand.net.nz/software/libtrace.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P/_/-}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ncurses numa static-libs"
+
+RDEPEND="
+ >=net-libs/libpcap-0.8
+ dev-libs/openssl:0=
+ ncurses? ( sys-libs/ncurses:0= )
+ net-libs/wandio
+ numa? ( sys-process/numactl )
+"
+DEPEND="
+ ${RDEPEND}
+ app-doc/doxygen
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch
+ "${FILESDIR}"/${PN}-3.0.20-tinfo.patch
+ "${FILESDIR}"/${PN}-4.0.0-no-examples.patch
+ "${FILESDIR}"/${PN}-4.0.0-with-numa.patch
+)
+S=${WORKDIR}/${P/_beta/}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with ncurses) \
+ $(use_with numa) \
+ --with-man
+}
+
+src_install() {
+ default
+
+ use doc && dodoc -r docs/doxygen/html
+
+ prune_libtool_files --modules
+}
diff --git a/net-libs/libtrace/metadata.xml b/net-libs/libtrace/metadata.xml
new file mode 100644
index 000000000000..77a8e80f47df
--- /dev/null
+++ b/net-libs/libtrace/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<use>
+<flag name='numa'>Use <pkg>sys-process/numactl</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/libupnp/Manifest b/net-libs/libupnp/Manifest
new file mode 100644
index 000000000000..030b75a0c00c
--- /dev/null
+++ b/net-libs/libupnp/Manifest
@@ -0,0 +1,14 @@
+AUX libupnp-1.6.19-docs-install.patch 387 SHA256 1b7ee5e36e2d53ef0d02b0d703c90f5a8e322d1f1dad6cb36dba4885fd0c2df3 SHA512 b9c3ff0014f3b0d4f62b4b52948356581e09b5beefa548ddbe9a93084d2df0708557c22fafe919c867a9e48e5c19d09bfdded2619c8dde67cc44a3c12721671c WHIRLPOOL dbebe934973aef59038945d2120d98b12c3aed4c2df8ad198ae04ebd0280a2e33b7319cfaf1e6a025ef661a5373ca5b90c0b1033345b956d20fb0efdacb4b043
+AUX libupnp-1.6.21-cflags.patch 905 SHA256 eb13e211b37b11b3ef18a8eb233851cd190a43723378409a752db661e8a12698 SHA512 3ecc83863e4cf35b9f0ba10b7982aaa103bb2eea7e0f256757fc5ef6a912a57dfdc237e6b20f29cc948f38816f1a57aff88aa0da7d7263658f584eb27ef7c8fe WHIRLPOOL 43b098a71a2b69716bde0c079e70f475e9020150106e0f3804c4ef3211f664aaeea0fa770f0fd8d73068d7e6451b2c7dbabab26fd1911c8f919754ef0e8b2a7a
+AUX libupnp-1.8.0-docs-install.patch 403 SHA256 b0c6504e3bdc24f8df4cfbab24f37c759f319759fafce24e5f84b69833cb0bec SHA512 a1157f13933f0cb61a3c256f6a57ee0e415e36f48cf2fabb9c4ae060d91c4a8f6a9f2ed31f5b36a0dbecb3d46b0a051275a597fb8069f43a79d6da6a8207f486 WHIRLPOOL c297905bd9627715567f32e2e8bd220515e51e0d2b3cf755f79d52bdfe495cbda632c786bc5389012c41e26f94961b5f598e5fe6ed9bf65c5141f1bff3750a95
+DIST libupnp-1.6.21.tar.bz2 1245353 SHA256 af3f3c0846a1d75baeadae4aa5a2bda427567e2a1fb4559bf73ccff0a4f9a39b SHA512 65a2989497b941dfa1f7ac09fe44267de4a5231af25a304f0f6e754c7cbb578bdcb3c500188b5ebfbff9f579099db7501817d45e1724ef8e384d6d918bcdcdeb WHIRLPOOL b4869189054ac00d57394e0919ad2f672af64f2c2b0ecc676c2b3fc4a3c22caa25ac38b57bbb5cf1ef12a5857b4cdfd450c6bd5955a5eacaf8bdf95a058c9dab
+DIST libupnp-1.6.22.tar.bz2 1242211 SHA256 0bdfacb7fa8d99b78343b550800ff193264f92c66ef67852f87f042fd1a1ebbc SHA512 abf7265155fb819e971e27dd25fd3f8143c04d6373b1b4a2769de9fadbbd3a012758acda866511a443f7e159b66068d9f7f99072c509a8fa06bcfe1275bdd9af WHIRLPOOL e3bfd207adff942d1a60337fb5ff00d2e4a4d52073724fb19415f14aa2def746706d863360779b00d842756ea6d809d5cf2f3cde910a3863398cbcfe49957bec
+DIST libupnp-1.8.1.tar.gz 1363979 SHA256 0569e6afd979baa4e533312cb682394cea5b2638b8b412623e28943103593ea0 SHA512 7dd90f0c0332e7171d96a37a50223e18d5325ac1dd8dbe04fadac4655ad7c4d8443c52f904aaa35d3f12d2abd9ee2690ba990d0a93b15cbebb4d3de35d25ffe4 WHIRLPOOL 184e8844fab6a7a04d902d77c9b28141cdb15e4026b1b45105aabcf7616c2f6bbffa81fe14a1e6ddcd3f6494d9505f8f2cf190bf00fa341ca7192668e46e732d
+DIST libupnp-1.8.2.tar.gz 1379953 SHA256 438ad86bfd933cb1e9be1c41bf3bd69f049daba11d71bbb5d715336e00106cb4 SHA512 026f2568a1ffa56a3a0ebc823b126dceabb7e821acb6db52fbca02c4c02febd5508cb644cd2ac51f65397c3248a22340b3673069951e97dcdd22d4cc321d4511 WHIRLPOOL f1c1c18300ff597cf57837def8f35289aca7a85fa0e86d8307e3859c8eb55a011bf3c37b372aaebb73c79f95283d0f6964a555ba1353ab28f6c706bbf30fd8ad
+EBUILD libupnp-1.6.21.ebuild 1055 SHA256 ccc52515669241eadf6ad2f23a79a946c7273ab068ea61c5d26e0c5f202bb261 SHA512 f2c5bb67af69945c261e8ccce5b0f247e585505924df9c0ad7785dca7febce2a69e1b1e529664530adc9070a8f72b708f6b793904fe325bb836a9c2c261c12f8 WHIRLPOOL adbb541aaf0a8905ca455a7cbc9877a32ac5c04e44e011b256f36685b43ade8410adc982ae051399e1f0a4c8ae729c7ba7da2c5c44d43c1fefeaab06ead70a57
+EBUILD libupnp-1.6.22.ebuild 1063 SHA256 c0628f1097fa9969722d671400dc61f340f8858599e6a66242eb58542da1fb58 SHA512 f0bdabea95e6d138c44747741c136a3baff104e33177495a49c5b2919413d987003cf4c35cdef3e28c932917db2378b6cc31c4ebe439dd5f5b7cc61a3605fda4 WHIRLPOOL ecebb7b8e2ec2aa4b866bf16ccf8e92eea8bb260adb00807c1fd29c56e7883e1de2f637aa88b0102751fa8931394bc9e4119fd0332c03f075dc1643b57233037
+EBUILD libupnp-1.8.1.ebuild 1129 SHA256 6f5f255e2660f3fcbe9b7c9ea27de850180cef3fe9021b03f7bc8551726d20a4 SHA512 9537a040587e344cc3f3bd73ca038faa836ed2ecce16efc885d47b7bb61136004d3f5399e5edf404e74f2708e9627ab74f4d0c6344346a3755dc07fd5ae4bca6 WHIRLPOOL 54f27cbbc10fc7c84669e68f0fbb66d7bfeb9dbc4a6e6fe0995a318f0c2fdc7e1d4e10e8f12d21fd43359159abf452610bd24c241744241fa723db59e5317244
+EBUILD libupnp-1.8.2.ebuild 1716 SHA256 cfbd4929b3ef7fce29642ae95df2d1a99e550731e97be2ccce5582148fbfc23f SHA512 2ea16eccfb1e22f4d4f306dd9b5301b2fbf5b913a4e9ac142b7a7412c83e3621f0ad22a74107886e8cef7d58e5353796c478dafad7ac666050f1ca9cf08e55bc WHIRLPOOL c3a73feca1b35e88dbc4645813828dffdd02fd76c1838c246704d7cd122b8f788a4f80c3cc5e262965a9d177659c3f71940fe072b62249c03d0d0e319a9319c4
+MISC ChangeLog 4185 SHA256 faa1750cd488a7bdfd614d1668ef98c68a1564d0c28e0060de7f07373a15ba75 SHA512 0e0ca25d7b8124dc60c82fa6d0e61e2dda24658b8a7941f1a737e98b23c549cf92675143c05ab368c41151775db4fcc90c0436f9fcc8b28ee899152191571467 WHIRLPOOL 9787e6ef6274778d46b70508a3dfa887afed3e80fb0c9b8bd46ecd6620ba28d38541b3d6f8518e943c449c64d3f27b6ed5f6f41f951bd25468dcc93f03245863
+MISC ChangeLog-2015 9755 SHA256 6d8abacf97b102d6a9cc746dcc06097bb2eb9a5f08b524ecf053171e12d53504 SHA512 90fd100a8e5a3f66ccaf9a76ec4656ee820827ad9169d9e6cf232d3da1fe09aa09a556fff346e32e47a403b1819cbd1e7a4c2c79190e2d94daae389c3cc45837 WHIRLPOOL f4ae11cd2a9663ddd2e42337e571fda8b5eeded762d2b5c1783a3fc2e9a4c6001ef6381332f56ce18d835b601173d00cb6328a423ee5d9380c92d860b9a6009e
+MISC metadata.xml 756 SHA256 3b6482f0c2614ca39835d7b256e8d9d5eb3a0bb9a40c9a5f02e7377932b4e684 SHA512 66975c44b2ee5589c63f31a0033bfe04897b651ffc7e71188e50ec653e003322647346ea873ac7387ef0b2f660e82bfe02ba01ef7d0d124b37b22fabe927b2e4 WHIRLPOOL 8f316cc0017206cff2d14890e6319a3779778952c6f5cbfb260c47ec2ce7ee2a9ced1afa9e8d02bf25a549060574bd5f5a04444551f4e9458c539cb764e8bf33
diff --git a/net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch b/net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch
new file mode 100644
index 000000000000..622f58a9003f
--- /dev/null
+++ b/net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch
@@ -0,0 +1,13 @@
+--- libupnp-1.6.19/upnp/sample/Makefile.am.orig 2013-11-15 19:50:02.000000000 +0400
++++ libupnp-1.6.19/upnp/sample/Makefile.am 2016-06-03 20:30:43.545081667 +0300
+@@ -65,8 +65,8 @@
+ if WITH_DOCUMENTATION
+ examplesdir = $(docdir)/examples
+ examples_DATA = \
+- $(tv_ctrlpt_SOURCES) \
+- $(tv_device_SOURCES)
++ $(sort $(tv_ctrlpt_SOURCES) \
++ $(tv_device_SOURCES) )
+ endif
+
+ EXTRA_DIST = \
diff --git a/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch b/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch
new file mode 100644
index 000000000000..3eaf66e80413
--- /dev/null
+++ b/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch
@@ -0,0 +1,30 @@
+don't append flags like -O0/-Os which clobber the user's settings
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -539,25 +539,6 @@ AC_PROG_EGREP
+ echo "--------------------- Default compilation flags -------------------------------"
+ echo host is $host
+ echo host_os is $host_os
+-case $host_os in
+-freebsd*)
+- echo "Using FreeBSD specific compiler settings"
+- # Put FreeBSD specific compiler flags here
+- ;;
+-*)
+- echo "Using non-specific system compiler settings"
+- if test x"$enable_debug" = xyes; then
+- # AC_PROG_CC already sets CFLAGS to "-g -O2" by default,
+- # but only if CFLAGS was not previously set.
+- #:
+- # Use -O0 in debug so that variables do not get optimized out
+- AX_CFLAGS_GCC_OPTION([-O0, -g])
+- else
+- # add optimise for size
+- AX_CFLAGS_GCC_OPTION([-Os])
+- fi
+- ;;
+-esac
+
+ AX_CFLAGS_WARN_ALL
+ echo "-------------------------------------------------------------------------------"
diff --git a/net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch b/net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch
new file mode 100644
index 000000000000..f0fbd04fc353
--- /dev/null
+++ b/net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch
@@ -0,0 +1,13 @@
+--- libupnp-1.6.19/upnp/sample/Makefile.am.orig 2013-11-15 19:50:02.000000000 +0400
++++ libupnp-1.6.19/upnp/sample/Makefile.am 2016-06-03 20:30:43.545081667 +0300
+@@ -65,8 +65,8 @@
+ if WITH_DOCUMENTATION
+ examplesdir = $(docdir)/examples
+ examples_DATA = \
+- $(tv_ctrlpt_1_8_SOURCES) \
+- $(tv_device_1_8_SOURCES)
++ $(sort $(tv_ctrlpt_1_8_SOURCES) \
++ $(tv_device_1_8_SOURCES) )
+ endif
+
+ EXTRA_DIST = \
diff --git a/net-libs/libupnp/libupnp-1.6.21.ebuild b/net-libs/libupnp/libupnp-1.6.21.ebuild
new file mode 100644
index 000000000000..5bb81687c448
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.6.21.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pupnp/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux"
+IUSE="debug doc ipv6 static-libs"
+
+DOCS="NEWS README ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.19-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf \
+ $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable static-libs static) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+ dobin upnp/sample/.libs/tv_{combo,ctrlpt,device}
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libupnp/libupnp-1.6.22.ebuild b/net-libs/libupnp/libupnp-1.6.22.ebuild
new file mode 100644
index 000000000000..e9fff2d786a0
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.6.22.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pupnp/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux"
+IUSE="debug doc ipv6 static-libs"
+
+DOCS="NEWS ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.19-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf \
+ $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable static-libs static) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+ dobin upnp/sample/.libs/tv_{combo,ctrlpt,device}
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libupnp/libupnp-1.8.1.ebuild b/net-libs/libupnp/libupnp-1.8.1.ebuild
new file mode 100644
index 000000000000..908431b950b8
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.8.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools vcs-snapshot
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="https://github.com/mrjimenez/pupnp/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="1.8"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug doc reuseaddr ipv6 static-libs"
+
+DOCS="NEWS README.md ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable reuseaddr) \
+ $(use_enable static-libs static) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+ dobin upnp/sample/.libs/tv_{combo,ctrlpt,device}-1.8
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libupnp/libupnp-1.8.2.ebuild b/net-libs/libupnp/libupnp-1.8.2.ebuild
new file mode 100644
index 000000000000..4e724b79fc2f
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.8.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools vcs-snapshot
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="https://github.com/mrjimenez/pupnp/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="1.8"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="blocking-tcp debug doc ipv6 +reuseaddr samples static-libs"
+
+DOCS="NEWS README.md ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.19-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf $(use_enable debug) \
+ $(use_enable blocking-tcp blocking-tcp-connections) \
+ $(use_enable ipv6) \
+ $(use_enable reuseaddr) \
+ $(use_enable static-libs static) \
+ $(use_enable samples) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+
+ use static-libs || prune_libtool_files
+
+ # Slot samples
+ if $(use samples); then
+ for bin in combo ctrlpt device ; do
+ newbin "upnp/sample/.libs/tv_$bin" "tv_$bin-${SLOT}"
+ done
+ fi
+
+ # Slot includes
+ cd "${D}/usr/include" || die
+ mv upnp "upnp-${SLOT}" || die
+
+ # Slot pkgconfig
+ cd "${D}/usr/$(get_libdir)/pkgconfig" || die
+ mv libupnp.pc "libupnp-${SLOT}.pc" || die
+ sed -i "s#/upnp#/upnp-${SLOT}#" "libupnp-${SLOT}.pc" || die
+
+ # Slot symlinks
+ cd "${D}/usr/$(get_libdir)" || die
+ mv libupnp.so "libupnp-${SLOT}.so" || die
+ mv libixml.so "libixml-${SLOT}.so" || die
+}
diff --git a/net-libs/libupnp/metadata.xml b/net-libs/libupnp/metadata.xml
new file mode 100644
index 000000000000..53c42dd90258
--- /dev/null
+++ b/net-libs/libupnp/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>thev00d00@gentoo.org</email>
+ <name>Ian Whyman</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>gurligebis@gentoo.org</email>
+ <name>Bjarke Istrup Pedersen</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pupnp</remote-id>
+ <remote-id type="github">mrjimenez/pupnp</remote-id>
+ </upstream>
+ <use>
+ <flag name="reuseaddr">Allow clean restarts by binding the socket with SO_REUSEADDR.</flag>
+ <flag name="blocking-tcp">Do not use async socket calls.</flag>
+ <flag name="samples">Install sample applications.</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/libvncserver/Manifest b/net-libs/libvncserver/Manifest
new file mode 100644
index 000000000000..a3ca9085b020
--- /dev/null
+++ b/net-libs/libvncserver/Manifest
@@ -0,0 +1,5 @@
+DIST LibVNCServer-0.9.11.tar.gz 1413739 SHA256 193d630372722a532136fd25c5326b2ca1a636cbb8bf9bb115ef869c804d2894 SHA512 e473c081b68dd3cdd96a1756b4f4945ece79d3c8e4cef62140be1699671555fc16d3080e81d764197a14ea83203ffcd0e18c3cc182e012d036e3faae943003fb WHIRLPOOL 98a24e533a0b8065d1f3c52672b601750f26a89e29cee8e3b253cc15219d0249befd1aa2735f06351d7911777ff7dc3ce39dc903f7046f39a0abf0af277dff11
+EBUILD libvncserver-0.9.11-r1.ebuild 1932 SHA256 111be18814ecd74a232ee58ec8743169af34b9eeff4fc39989c08309be87bafc SHA512 f811f67aae5e0724f1b8f95cfdea020351524a8c03e5a5d009073571ab4b4da6280bdcd879292b5649c2e73d92f68d8ab4bcace81c455491150044eed2215b93 WHIRLPOOL f9751bab8ea6426c6e183f266ef240c88804b7680a2805435caf8cb8a44d78af17fe1cc08af33dce6e8e86022773cee90c55135bf4111d3c878f20b124c5d2fc
+MISC ChangeLog 4226 SHA256 9991eead9456a60b7e8324ef418f6b0072d3b52e415c712f75249f2e7299924c SHA512 b4731ff6504276baf2a4f71b93568dccce537cf747d85c978a2a7f4867791d027886ae982e2012814d2b65b1d53900e4aa7f049fe3dd5cb2c9ef04880313b65e WHIRLPOOL 4ee5a7adbce2f6c4e064e28498993899615a3d8d3be0b0b7bca9dc866e89684ce18a1d8fa7f60f4a4deee1e3fb6918611ac7df6829bf3d4d8ffc390bec43486a
+MISC ChangeLog-2015 14713 SHA256 31edf042312d3db31d45ebfc2da6cac73f7691b541da0b4158118c4c984fa716 SHA512 cab18518fb2e65d58581cc6ebdfdbc28e72a6484cfa8b8283d9cb52262d77126ae914b1d1b92c7c48db882dbd90de1915e2445d3abaabb87ba15f9ce6c7903ce WHIRLPOOL 386e3eb78e88e1be29531bc129f46b1d9513498fc7d2d7b506b3787514a690902bac4035956592d1f063470090d5775e211c398793e8c798227e293b4a30c58b
+MISC metadata.xml 1077 SHA256 3ceba8ccecf68db8e45e4f87b08c6ce5b19b858515b2878edcfdc1a6d0beccde SHA512 9a6e708b40d590b968d4cc534661f52cde4848edb93fe5775b69dd20ba8d1e794cbb284a63d9c674936a1530f520f559546c78f457853b61b4489b8f264084b9 WHIRLPOOL ef0a19bb0e78f811f402bea1a905e781572a450fb6602b2b611938f9e0127e9233714779144be8cd9d6d023bf04fd00397af5d3dcd0999697cc6453c6b1548ac
diff --git a/net-libs/libvncserver/libvncserver-0.9.11-r1.ebuild b/net-libs/libvncserver/libvncserver-0.9.11-r1.ebuild
new file mode 100644
index 000000000000..218aea83cd84
--- /dev/null
+++ b/net-libs/libvncserver/libvncserver-0.9.11-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools eutils multilib-minimal
+
+MY_PN="LibVNCServer"
+
+DESCRIPTION="library for creating vnc servers"
+HOMEPAGE="https://libvnc.github.io/"
+SRC_URI="https://github.com/LibVNC/${PN}/archive/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+# No sub slot wanted (yet), see #578958
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
+IUSE="+24bpp gcrypt gnutls ipv6 +jpeg libressl +png ssl static-libs systemd test +threads +zlib"
+REQUIRED_USE="!gnutls? ( ssl? ( threads ) )"
+
+DEPEND="
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0=[${MULTILIB_USEDEP}] )
+ gnutls? (
+ >=net-libs/gnutls-2.12.23-r6:0=[${MULTILIB_USEDEP}]
+ >=dev-libs/libgcrypt-1.5.3:0=[${MULTILIB_USEDEP}]
+ )
+ !gnutls? (
+ ssl? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
+ )
+ )
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
+ png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
+ systemd? ( sys-apps/systemd:= )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1:0=[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PN}-${PV}"
+
+DOCS=( AUTHORS ChangeLog NEWS README TODO )
+
+src_prepare() {
+ default
+
+ sed -i -r \
+ -e "/^SUBDIRS/s:\<$(usex test '' 'test|')client_examples|examples\>::g" \
+ Makefile.am || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ --disable-silent-rules \
+ $(use_enable static-libs static) \
+ $(use_with 24bpp) \
+ $(use_with gnutls) \
+ $(usex gnutls --with-gcrypt $(use_with gcrypt)) \
+ $(usex gnutls --without-ssl $(use_with ssl)) \
+ $(use_with ipv6) \
+ $(use_with jpeg) \
+ $(use_with png) \
+ $(use_with threads pthread) \
+ $(use_with zlib)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files
+}
diff --git a/net-libs/libvncserver/metadata.xml b/net-libs/libvncserver/metadata.xml
new file mode 100644
index 000000000000..6c1ab10cbc08
--- /dev/null
+++ b/net-libs/libvncserver/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alex_y_xu@yahoo.ca</email>
+ <name>Alex Xu</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+If you don't know VNC, have a look at the original VNC or at Tridia
+VNC, who also have commercial support for it.
+
+Now that you know what it is, maybe you want to make your own server. If
+this is not the case, you can ignore the rest of this page an go on
+surfing the internet.
+
+Now that you want to make a VNC server, that is, a server which speaks
+the RFB protocol, you can download this library from sourceforge.
+ </longdescription>
+ <use>
+ <flag name="24bpp">enable 24bpp support</flag>
+ <flag name="gcrypt">enable support for gcrypt</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">LibVNC/libvncserver</remote-id>
+ <remote-id type="sourceforge">libvncserver</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libwebsockets/Manifest b/net-libs/libwebsockets/Manifest
new file mode 100644
index 000000000000..c522584f4e41
--- /dev/null
+++ b/net-libs/libwebsockets/Manifest
@@ -0,0 +1,9 @@
+AUX libwebsockets-2.1.1-x86-build.patch 771 SHA256 49ae9f959394686d469f960951ece3ad1101655afe64df28ea5b1a61c1d124f0 SHA512 b4f34813309921728e9dcd88e29ae6b2bcb6ac3e55d86e489a85fe9950bc3758d03f7e639773447110c5bb82e4bceee3210569fc065e860f596053ed8c8a317c WHIRLPOOL ee0370a3f3811ee9f6e22510d426dd0e33b09b9ad07f95e606f1742ec2bff579886641e18f6c35011f484082d1ea978366d7b8e3123970be28c487f7b804e606
+DIST libwebsockets-1.7.9.tar.gz 2915358 SHA256 86a5105881ea2cb206f8795483d294e9509055decf60436bcc1e746262416438 SHA512 d5bd6171d58b5d5439af48d6cc1e92623e9bf21e059a2d25d362ef81b1bff62e759fe265261dbee0ac4ceb0d0a2490dc1e030dfee2b36eb8ac74df112da1db56 WHIRLPOOL fd4682cd941b23d79239c5351eeb129274b3d566aad5962825cfd3fbed262f69503dc0adde2eb7b65e4d446de09133595646695925c8633745c5aecd45a0af00
+DIST libwebsockets-2.0.2.tar.gz 2998585 SHA256 7ab40b7c28b25d7a3776283219447876502163d89269b3c05739cfc3753525bc SHA512 6cd0cfe14ab9aa2ce26624d41290ed3bd0ae4167e93d5db738883dbbe2db851bd75037929a417922c2ef78eae3ff00583134d42da575d961c777e4a1ad0fef4a WHIRLPOOL 576e16dd9638822056142b3c72a53ba2d3582d5c15b3f0c971abc6017d3d34d3c7df503414f33cc3b68cf8033b5ff5cb6dc9b286d1c9c5d890bc0928f61a1439
+DIST libwebsockets-2.1.1.tar.gz 3769593 SHA256 96183cbdfcd6e6a3d9465e854a924b7bfde6c8c6d3384d6159ad797c2e823b4d SHA512 429bca62feb75136d8aff1783a6024468033536356fb3501e4dcf0819d9e9a4457f2a94248fdafe6fdceb7e0ded146ff6c4c04040e069f34a9b27a4e090d2683 WHIRLPOOL 7eae91b00d0c80c7589114ff4d3544aded742babdf2ff1c0cf1091f846f844c86b20b1983709e20c429c5caa98ae808b4094723695e36fdc124ea81d4ad49747
+EBUILD libwebsockets-1.7.9.ebuild 1190 SHA256 d86c36ba7fb012ebd854919af11f8fdcb0ba2c1a4b90d4e468fb898b9cf0b271 SHA512 ae405094c922c0004a2b5f312b8a8c0c8b7674208bdb89b969643ba0444624ade3bbb5a8264c1c58c955e320ddb60ca6b06f0d6ab1a823e12bf1e8a8890c8afa WHIRLPOOL f01926a5d0942a68d3985c89246ce3cfce10a16661f7bad4081ad6ff1e1da2962484823f8ef3c82000e7bf3960f4cb0fa97a61b6589dad9d0b5b0de23631a91f
+EBUILD libwebsockets-2.0.2.ebuild 1191 SHA256 643d7184916e7b7cf6516520821a8b7c8cb46e9d4b822b149fd1883f7dd11d17 SHA512 8f4c590d1a9c72d752190dbfb8e4e9a99f940851ea52e3ef2e1959a981a03169409d71c38e3adda3284d554bf7126342984f1861844d9f762227bdd7c7611d8b WHIRLPOOL d0a2c0530efd79f9d79479dd0c5e46747e601efa1e937ea9a6640c1d07ceb996d2af3e5e079a94c494929b0dbcea479a0e7ae91be2af312b55b4cd0db53d3898
+EBUILD libwebsockets-2.1.1.ebuild 1887 SHA256 493d7c2df331ede9f4cf0c4d6d25a7bb9bcbae10c1d4814a836803cebce29f67 SHA512 20544fcb958345dab6e070980ecdc54b7b38abf967f0c9ed3704ffe7300433d7e773ab3e6d85a0500ea433de73730d97b535e9c120af3d0cbfcaeb75f7a04837 WHIRLPOOL 8f0197fbd607bd52e2842cfc4d98c74d68f535061626aee07812655e80efca214b0bba9a1637c0ef349ebff22890c9637551971e078dc4d2e30cb5c57f1b168d
+MISC ChangeLog 3051 SHA256 0eae7ed440343cdf0689c1acda40b7014907334a90a0905d271e2da7ebde126c SHA512 c042afeebb82c2d055e84799b58d91407d683561eee91d46025746726779eecf8b74dfd72bcd9522ddb89288f30f1a65ceff47120ce42ddf3048cfdd23ee4a30 WHIRLPOOL 6b26abc246d912caaf5b00978ac705f3d93dbede491ec4807b1980cb1502bc4e6428a84886c685d9367ec197e6577d3d37e1dfa839d081c9c30cd377795f01ab
+MISC metadata.xml 1524 SHA256 d2ec4b3f2b776dbf5ab1328ead2ba634d0d3fa936a65273aacae726cb4db440a SHA512 d43b3715a0387a4662aa7b3def3384a1eed5f840f4c187a74df33785efc855d4879bd1bdc4d339326787984cece87cfeafe957f6abe91d30de854199968cd406 WHIRLPOOL bc1317047e1fa3c4cf152abfa79660903db19e07da5a760bc334dc5f8f0161c991fcee7f0eeb17510f1b56decc82dca74f8aff37978f61ce6dda3cca6b56d7ee
diff --git a/net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch b/net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch
new file mode 100644
index 000000000000..9fe9489297f4
--- /dev/null
+++ b/net-libs/libwebsockets/files/libwebsockets-2.1.1-x86-build.patch
@@ -0,0 +1,22 @@
+From f9f5a5760782b68fba190fb46d306f7c08f027c0 Mon Sep 17 00:00:00 2001
+From: Silas Parker <skyhisi@users.github.invalid>
+Date: Tue, 14 Feb 2017 17:55:13 +0800
+Subject: [PATCH] gcc-format-strings: ipv6
+
+---
+ lib/libwebsockets.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
+index 770cb24..8ee906a 100755
+--- a/lib/libwebsockets.c
++++ b/lib/libwebsockets.c
+@@ -670,7 +670,7 @@ lws_get_addresses(struct lws_vhost *vh, void *ads, char *name,
+ #ifdef LWS_USE_IPV6
+ if (LWS_IPV6_ENABLED(vh)) {
+ if (!lws_plat_inet_ntop(AF_INET6, &((struct sockaddr_in6 *)ads)->sin6_addr, rip, rip_len)) {
+- lwsl_err("inet_ntop", strerror(LWS_ERRNO));
++ lwsl_err("inet_ntop: %s", strerror(LWS_ERRNO));
+ return -1;
+ }
+
diff --git a/net-libs/libwebsockets/libwebsockets-1.7.9.ebuild b/net-libs/libwebsockets/libwebsockets-1.7.9.ebuild
new file mode 100644
index 000000000000..12fa48d815be
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-1.7.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="canonical libwebsockets.org websocket library"
+HOMEPAGE="https://libwebsockets.org/"
+SRC_URI="https://github.com/warmcat/libwebsockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+http2 +ssl client ipv6 libev libressl libuv static-libs"
+
+REQUIRED_USE="libressl? ( ssl )"
+
+RDEPEND="
+ sys-libs/zlib
+ libev? ( dev-libs/libev )
+ libuv? ( dev-libs/libuv )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DLWS_IPV6=$(usex ipv6 ON OFF)
+ -DLWS_LINK_TESTAPPS_DYNAMIC=$(usex !static-libs ON OFF)
+ -DLWS_WITH_HTTP2=$(usex http2 ON OFF)
+ -DLWS_WITH_STATIC=$(usex static-libs ON OFF)
+ -DLWS_WITH_LIBEV=$(usex libev ON OFF)
+ -DLWS_WITH_LIBUV=$(usex libuv ON OFF)
+ -DLWS_WITH_SSL=$(usex ssl ON OFF)
+ -DLWS_WITHOUT_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITHOUT_TEST_CLIENT=$(usex !client ON OFF)
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/net-libs/libwebsockets/libwebsockets-2.0.2.ebuild b/net-libs/libwebsockets/libwebsockets-2.0.2.ebuild
new file mode 100644
index 000000000000..47332620d0bf
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-2.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="canonical libwebsockets.org websocket library"
+HOMEPAGE="https://libwebsockets.org/"
+SRC_URI="https://github.com/warmcat/libwebsockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+http2 +ssl client ipv6 libev libressl libuv static-libs"
+
+REQUIRED_USE="libressl? ( ssl )"
+
+RDEPEND="
+ sys-libs/zlib
+ libev? ( dev-libs/libev )
+ libuv? ( dev-libs/libuv )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DLWS_IPV6=$(usex ipv6 ON OFF)
+ -DLWS_LINK_TESTAPPS_DYNAMIC=$(usex !static-libs ON OFF)
+ -DLWS_WITH_HTTP2=$(usex http2 ON OFF)
+ -DLWS_WITH_STATIC=$(usex static-libs ON OFF)
+ -DLWS_WITH_LIBEV=$(usex libev ON OFF)
+ -DLWS_WITH_LIBUV=$(usex libuv ON OFF)
+ -DLWS_WITH_SSL=$(usex ssl ON OFF)
+ -DLWS_WITHOUT_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITHOUT_TEST_CLIENT=$(usex !client ON OFF)
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/net-libs/libwebsockets/libwebsockets-2.1.1.ebuild b/net-libs/libwebsockets/libwebsockets-2.1.1.ebuild
new file mode 100644
index 000000000000..46a8522c0225
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-2.1.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="canonical libwebsockets.org websocket library"
+HOMEPAGE="https://libwebsockets.org/"
+SRC_URI="https://github.com/warmcat/libwebsockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+KEYWORDS="amd64 arm x86"
+IUSE="+http2 +ssl access-log cgi client generic-sessions http-proxy ipv6 lejp libev libressl libuv server-status smtp sqlite3 static-libs"
+
+REQUIRED_USE="
+ libressl? ( ssl )
+ http-proxy? ( client )
+ generic-sessions? ( sqlite3 )
+ generic-sessions? ( smtp )
+ smtp? ( libuv )
+"
+
+RDEPEND="
+ sys-libs/zlib
+ http-proxy? ( net-libs/libhubbub )
+ libev? ( dev-libs/libev )
+ libuv? ( dev-libs/libuv )
+ sqlite3? ( dev-db/sqlite )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+"
+src_prepare() {
+ epatch "${FILESDIR}/${P}-x86-build.patch"
+ default
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLWS_IPV6=$(usex ipv6 ON OFF)
+ -DLWS_LINK_TESTAPPS_DYNAMIC=$(usex !static-libs ON OFF)
+ -DLWS_WITH_HTTP2=$(usex http2 ON OFF)
+ -DLWS_WITH_STATIC=$(usex static-libs ON OFF)
+ -DLWS_WITH_LIBEV=$(usex libev ON OFF)
+ -DLWS_WITH_LIBUV=$(usex libuv ON OFF)
+ -DLWS_WITH_SSL=$(usex ssl ON OFF)
+ -DLWS_WITHOUT_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITHOUT_TEST_CLIENT=$(usex !client ON OFF)
+ -DLWS_WITH_CGI=$(usex cgi ON OFF)
+ -DLWS_WITH_HTTP_PROXY=$(usex http-proxy ON OFF)
+ -DLWS_WITH_ACCESS_LOG=$(usex access-log ON OFF)
+ -DLWS_WITH_SERVER_STATUS=$(usex server-status ON OFF)
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+ -DLWS_WITH_LEJP=$(usex lejp ON OFF)
+ -DLWS_WITH_GENERIC_SESSIONS=$(usex generic-sessions ON OFF)
+ -DLWS_WITH_SQLITE3=$(usex sqlite3 ON OFF)
+ -DLWS_WITH_SMTP=$(usex smtp ON OFF)
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/net-libs/libwebsockets/metadata.xml b/net-libs/libwebsockets/metadata.xml
new file mode 100644
index 000000000000..353ac742f140
--- /dev/null
+++ b/net-libs/libwebsockets/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jaco@uls.co.za</email>
+ <name>Jaco Kroon</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>yuchen.xie@live.com</email>
+ <name>Yuchen Xie</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ libwebsockets is a C library for lightweight websocket clients and servers.
+ </longdescription>
+ <use>
+ <flag name="access-log">Support generating Apache-compatible access logs</flag>
+ <flag name="cgi">Include CGI (spawn process with network-connected stdin/out/err) APIs</flag>
+ <flag name="client">The client part of the library and libwebsockets-test-client</flag>
+ <flag name="generic-sessions">With the Generic Sessions plugin</flag>
+ <flag name="http2">Support the HTTP/2 protocol</flag>
+ <flag name="http-proxy">Support for rewriting HTTP proxying</flag>
+ <flag name="lejp">With the Lightweight JSON Parser</flag>
+ <flag name="libev">Support event loops via dev-libs/libev</flag>
+ <flag name="libuv">Support asynchronous I/O via dev-libs/libuv</flag>
+ <flag name="server-status">Support json + jscript server monitoring</flag>
+ <flag name="smtp">Provide SMTP support</flag>
+ <flag name="sqlite3">Require SQLITE3 support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">warmcat/libwebsockets</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libwhisker/Manifest b/net-libs/libwhisker/Manifest
new file mode 100644
index 000000000000..80b1bddbad78
--- /dev/null
+++ b/net-libs/libwhisker/Manifest
@@ -0,0 +1,5 @@
+DIST libwhisker2-2.5.tar.gz 207569 SHA256 f45a1cf2ad2637b29dd1b13d7221ea12e3923ea09d107ced446400f19070a42f SHA512 ea3cfa7658048b23d4fd773db9ee7fde32758096cf7491d309390247648b7635952d734a0918f53109de37cdd87b675843320539db727fd107e81647b13bce10 WHIRLPOOL 7eefdaf357be03599d9d8743b6fbe8ed18f06a6d0ea5106ea32f9014a919fdf468d682cef4b8c8f3b37925fa6bd4dcfdf6d87d8fb87adc015642a15b7a8c2f1b
+EBUILD libwhisker-2.5-r1.ebuild 640 SHA256 5bcbcaf40f89d3529d3f04a43f149a53d17cfcda7d0c3351e1a1dd4b8d7a1539 SHA512 b76ad2e9ab8cfcf95f2cf5d48b0cfe4debbf0a78fc59784f4d1e6defbb622ccfd7cb47e125ab328627d5801903c7b63fe1bdff9d4ecc4b3e421a36f2cb6f0692 WHIRLPOOL b3f078771a25ca2e0027645bbc437ba89fa2e5e48bcffc870b42b1545a7ae267be2da791dd709016d7f454f7facf7354fdc032beeae340f3622f4399d3e44783
+MISC ChangeLog 2438 SHA256 0d9ddcbd23bd0326729a05360dd6b5795292d2c60b03086a0f2ba68edce876ec SHA512 a801826e15a3bb271995f20d602002188d324601fb21353bbff76317c0bb022b9893cf704f2fd01c26e9874235766f90371139eac49a50292a6e03dae35c2231 WHIRLPOOL 1df32891dac4860560e8a190742323687ec65a78600b22b01a5e0f326bc4cdb992baa2328c48e4752ca93cba8fb044e9905fed030c1e1849fda6e1cf9b9f6c65
+MISC ChangeLog-2015 3452 SHA256 c8e6ac650fdc15cd8446e6ca86bfb19e2669c984fe18b140a55d96cd0b9a22a4 SHA512 fd8b1c76a95f4ae05df7647e5fc24c96ad1cb4216d0bb1f791c742779d480b22e2829912654780571ffd1066060bdc6b60486631f96b5f79762fc7c05635b210 WHIRLPOOL 2e55085321fed86b43a38f4956dee20b329afaf71d5a79c8fcaf9907e1ca7facc91beb21ebd19ffe742c3621b33e4d81b82d73ca72d174dea41181b13bb44f44
+MISC metadata.xml 840 SHA256 b89ce653dac9a994307fe7863db90014609dfced53d3c67db2dabf0024c70134 SHA512 852880346fd062bb982699dcc344d55b99c853b051feaa58b7199c5a8a351b13ba3119d55425be1f7fc035b9e25596131024ad816e237d5b8d9b270169c80f93 WHIRLPOOL 28bc40f324173c6b27a033f1e0f16510c93e2191864efaace47abd4bb5691b954aee247024485b3ad441aab77885613ead3028f151eee3875a8f06740dc97f1e
diff --git a/net-libs/libwhisker/libwhisker-2.5-r1.ebuild b/net-libs/libwhisker/libwhisker-2.5-r1.ebuild
new file mode 100644
index 000000000000..17bf43d4d46a
--- /dev/null
+++ b/net-libs/libwhisker/libwhisker-2.5-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-module
+MY_P=${PN}2-${PV}
+
+DESCRIPTION="Perl module geared to HTTP testing"
+HOMEPAGE="http://www.wiretrip.net/rfp/lw.asp"
+SRC_URI="http://www.wiretrip.net/rfp/libwhisker/${MY_P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="ssl"
+
+DEPEND=""
+RDEPEND="virtual/perl-MIME-Base64
+ ssl? ( dev-perl/Net-SSLeay )"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ perl Makefile.pl lib || die
+}
+
+src_install() {
+ perl_set_version
+ insinto "${VENDOR_LIB}"
+ doins LW2.pm
+ dodoc CHANGES KNOWNBUGS README
+}
diff --git a/net-libs/libwhisker/metadata.xml b/net-libs/libwhisker/metadata.xml
new file mode 100644
index 000000000000..eb87724cfa69
--- /dev/null
+++ b/net-libs/libwhisker/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <longdescription>
+ Libwhisker is a Perl library useful for HTTP testing scripts. It
+ contains a pure-Perl implementation of functionality found in the LWP,
+ URI, Digest::MD5, Digest::MD4, Data::Dumper, Authen::NTLM, HTML::Parser,
+ HTML::FormParser, CGI::Upload, MIME::Base64, and GetOpt::Std modules.
+ Libwhisker is designed to be portable (a single perl file), fast
+ (general benchmarks show libwhisker is faster than LWP), and flexible
+ (great care was taken to ensure the library does exactly what you want
+ to do, even if it means breaking the protocol).
+ </longdescription>
+</pkgmetadata>
diff --git a/net-libs/libyahoo2/Manifest b/net-libs/libyahoo2/Manifest
new file mode 100644
index 000000000000..ebdc48e2ba23
--- /dev/null
+++ b/net-libs/libyahoo2/Manifest
@@ -0,0 +1,6 @@
+AUX libyahoo2-1.0.1-asneeded.patch 379 SHA256 19c2c48421f04673fc470a86f0f04aee3c48733516a2e9a9891e2bae4a11f1f7 SHA512 287ecd3cc8963ef79dddb337e2b7b240a725c009eb3b169951af086070f1bb72d3a4221b4bb6e02893efb22d2314f3fd70074abc887ff56396ef9f5eb5b342ed WHIRLPOOL 6ef901ed6d321242fa5854046e9da427ea473aeddb63b93756b8978d1a440513d70139d60eca7046b4481acc5db85eaa9b71b5931f54121394d61e5940e001b4
+DIST libyahoo2-1.0.1.tar.gz 507023 SHA256 6cd2d02369358190e90e5286e7626ea4ff8d4341cdeb98e13f0bfa06852b2aa7 SHA512 fc522f80c21945e748cfc1051ab615993d2a6c5cf7467d86e04fb8fbeaf8ce3fd925c190a6b57ec4fb9f7ed3df7b2e4c61d141965f8fb8ccf5461e0b36665b86 WHIRLPOOL f1e1f38be669d15b2e2a50c7e05d68123c73d898c176e4a504de956f61bfbec196ece128f62db0692c70504caf557832b1c47d0e28deba0cdecf4f6803623af1
+EBUILD libyahoo2-1.0.1.ebuild 946 SHA256 88f5b67551bf35a122eb3f8b125b8d6e5487e25c40159aaa9df41e8495d558de SHA512 8732fd8582939992a31bfa80d118ed7e61697f1d7fa747a8bd5480647fcaae37741fdf69289ff95dfe2218201c91710b1754acee6f0496e8cdc9622a796e4bdc WHIRLPOOL 18f10570a44d012af332de38227d89910a66796c062d57cc52503432bd3257f16417f01caef0a3206c21fb82132668caffd3d190ec2fa6b5ce31574195de5d6c
+MISC ChangeLog 2503 SHA256 ebd709b5b406ddf32953fdfc7e780a88fb94efbe04996af304afe8c7f0636018 SHA512 a373d22725fa80a6f791385092d03a0356b4ed07abe5175bea0d1963b16271742193f6a7e620fa4cb016509b06fef1940300a80482c2ff823d0a3a770a001a5a WHIRLPOOL 0ec617da28155adf76f8649075631fbac7ebe906d127b9f518e9b6c1a0792ac59d357be0186dabac77cc441ec4d74da0b10764b0b19f2f258dfab95b2952e539
+MISC ChangeLog-2015 1355 SHA256 f620226f2182cba43e54b026ea3d292ccbf8aabcbe30a863559f42efd5679981 SHA512 8508c78279269a1af0b2f0daac7f4bfd92ee30e39e1b89e7a7705595231681181cd99a86779071ce564ab1b9e99999345c2027736e81de918ca8867a6b4c92bf WHIRLPOOL 8579abdc6859a50a8fc08012fa100e221b72f8c20fe10bff6046701e757eac820a5f84ed5f4f6cf061f7e01966bd20a751dce757aaba9454ecfa76c8399d650f
+MISC metadata.xml 246 SHA256 e7810d1676ac547673b9dbcb1f9518906e5417cceeee0af0fc9c33e5176c5551 SHA512 967f79698c434269734a15532f1c4834a5a2a02786d2f25ad7d1f5d323d292a910eec84ff1256c68aab5ca662e3105aa9dcea8cf18c43b0d62121f6352b36343 WHIRLPOOL 806755232ae8c577059081fce149fb107302fc53aa8c1007c3254791140447715c78f2f9e424cd037e79a3ab9cb4643e601ba266129554cdf6195fbf5a6e2c62
diff --git a/net-libs/libyahoo2/files/libyahoo2-1.0.1-asneeded.patch b/net-libs/libyahoo2/files/libyahoo2-1.0.1-asneeded.patch
new file mode 100644
index 000000000000..b05190a02a71
--- /dev/null
+++ b/net-libs/libyahoo2/files/libyahoo2-1.0.1-asneeded.patch
@@ -0,0 +1,16 @@
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -21,11 +21,9 @@
+ noinst_PROGRAMS = yahoo autoresponder
+
+ yahoo_SOURCES = sample_client.c
+-yahoo_LDADD = libyahoo2.la
+-yahoo_LDFLAGS = -lssl
++yahoo_LDADD = libyahoo2.la -lssl
+
+ autoresponder_SOURCES = autoresponder.c
+-autoresponder_LDADD = libyahoo2.la
+-autoresponder_LDFLAGS = -lssl
++autoresponder_LDADD = libyahoo2.la -lssl
+
+ endif
diff --git a/net-libs/libyahoo2/libyahoo2-1.0.1.ebuild b/net-libs/libyahoo2/libyahoo2-1.0.1.ebuild
new file mode 100644
index 000000000000..0cd41ed48213
--- /dev/null
+++ b/net-libs/libyahoo2/libyahoo2-1.0.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit autotools eutils
+
+DESCRIPTION="interface to the new Yahoo! Messenger protocol"
+HOMEPAGE="http://libyahoo2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libyahoo2/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="static-libs ssl"
+
+RDEPEND="dev-libs/glib:2
+ ssl? ( dev-libs/openssl )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+ sed -i -e 's:-ansi -pedantic::' configure.ac || die #240912
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ $(use_enable ssl sample-client)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ if use ssl; then
+ dobin src/.libs/{autoresponder,yahoo} || die
+ fi
+
+ dodoc AUTHORS ChangeLog doc/*.txt NEWS README TODO
+
+ find "${D}" -name '*.la' -exec rm -f '{}' +
+}
diff --git a/net-libs/libyahoo2/metadata.xml b/net-libs/libyahoo2/metadata.xml
new file mode 100644
index 000000000000..a38f5ff58985
--- /dev/null
+++ b/net-libs/libyahoo2/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">libyahoo2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/libzapojit/Manifest b/net-libs/libzapojit/Manifest
new file mode 100644
index 000000000000..5d1a29ffffdd
--- /dev/null
+++ b/net-libs/libzapojit/Manifest
@@ -0,0 +1,5 @@
+DIST libzapojit-0.0.3.tar.xz 272108 SHA256 3d25f99329105abb99d1e9651b0aa1842065456ea54c22970a7330e9f3d1c37e SHA512 8dc1006db515a4b2971ebccdcf167930566a11bfe74f545e3a9647ff061be4ac2781faf1adbf6e6107b4ff2e08f16b9ad1f96f9b8e4f0eba87601fdc1c35eaa3 WHIRLPOOL ba5198e4f520475569b495299336755122bdb065ee5065cb3d5912486b6af1b84928de9795309db43011cd5993842ee0e8a274d44eb497be0c3b8993faf5874c
+EBUILD libzapojit-0.0.3.ebuild 839 SHA256 755e5e40be16ed5f58631abef492e9e6c66f04ed1c9ecb225ef5276ff42bfe6f SHA512 c3fc18726c23ad4c9d8f861ef5b4df0a0930e436389c071fa6affd1dfda023a3ef8d129ab2e535bd9021128742ff1ae42a9768fb42a52e2ba5e48e6ae45c8996 WHIRLPOOL 666c8b3263aa2efa45d06f498754b2b826f9411060a5b9a819bee89a960651072a10624de96023fd20ea4bc8a0c8879ed047a77f2abdeae05285a21216242909
+MISC ChangeLog 2609 SHA256 7d508caa954c33e24db9ceded578c052ec2ddb7c185b68f5402331e0fe889e24 SHA512 04bb233b8892ce5837284ad37c99a2208c48075eee0fb3a7965de0f5e929311642d229289a934680a2b15e6ee75f75c55eff0552ff722dfded3597eb25134fc8 WHIRLPOOL 31bfefd44b09e4749a66bee0fee552e5d0619e5c93cd7d83f80caabe981a7b491fed17fcefa4ad68c68993b7d22b5a79da9967af61533f7cc4f966d85c9f4637
+MISC ChangeLog-2015 1792 SHA256 0947beb8942604ca39096ed159a76d26eb0a57cfab6a196746e32e9be6a2a7c9 SHA512 e96bb8e5bd0e2567c30483c5d653d4224ace3cea35296e2000744f685c3a529c7f528719c43c043dff3e57fb1c56d285f3874c6c6fe7d42400904fb9a9130298 WHIRLPOOL 2e88b2a09c156b7bdafbe62373afba4518cdab51418aa4bb769d52223db6932af26fb85061055710231cac5bc5712e74ed6df7a8bd9f84e4e3b4939142cc279d
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/libzapojit/libzapojit-0.0.3.ebuild b/net-libs/libzapojit/libzapojit-0.0.3.ebuild
new file mode 100644
index 000000000000..15d47cd908b3
--- /dev/null
+++ b/net-libs/libzapojit/libzapojit-0.0.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2
+
+DESCRIPTION="GLib/GObject wrapper for the SkyDrive and Hotmail REST APIs"
+HOMEPAGE="https://git.gnome.org/browse/libzapojit"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="+introspection"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+
+RDEPEND="
+ >=dev-libs/glib-2.28:2
+ >=net-libs/libsoup-2.38:2.4
+ dev-libs/json-glib
+ net-libs/rest
+ net-libs/gnome-online-accounts
+
+ introspection? ( >=dev-libs/gobject-introspection-1.30.0 )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.11
+ >=dev-util/intltool-0.35.0
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+# eautoreconf needs:
+# gnome-base/gnome-common:3
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable introspection)
+}
diff --git a/net-libs/libzapojit/metadata.xml b/net-libs/libzapojit/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/libzapojit/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/liquid-dsp/Manifest b/net-libs/liquid-dsp/Manifest
new file mode 100644
index 000000000000..35d5d6ab2160
--- /dev/null
+++ b/net-libs/liquid-dsp/Manifest
@@ -0,0 +1,4 @@
+DIST liquid-dsp-1.3.0.tar.gz 1036160 SHA256 b136343d644bc1441f7854f2d292bfa054e8d040c0b745879b205f6836dca0f0 SHA512 d69df2c15ea56cd84be9f77383b9914daa52e89e1136aa84fd14dff7690e98c4e29bb5c4e570cac5ef826b884b8fa382e5d806a711d22b6d5c4ddf5b93a0026b WHIRLPOOL ec0605293e5e0b8b1e276390b007ba8be871f23fdaafa6ec3e5dfb5fd54d1ca5c95b69b807ac4a91db63c673c0cf9df999db3c98bebc556fd4547b13388c8858
+EBUILD liquid-dsp-1.3.0.ebuild 1045 SHA256 23849fa64dc9e5e1f29545ce062d120497e931f8f529ed07405caf9f12936bfd SHA512 949fbf9e3e1e2b7e3f63e6636d41817d0be9942611adc37d02595b4a2cc7df998186fae286f9773f5f193eb6e6c9f1ae6461664d05275c4af3c3289795fb0d2a WHIRLPOOL 4eada6c632c3a566c72a39947603f2370083d2ea7ee1e1023ab3088a3d602b386f3de2167ef6a9950f94e3c393df6b5edc965aaa63bd8982729ff5832db9915d
+EBUILD liquid-dsp-9999.ebuild 1045 SHA256 23849fa64dc9e5e1f29545ce062d120497e931f8f529ed07405caf9f12936bfd SHA512 949fbf9e3e1e2b7e3f63e6636d41817d0be9942611adc37d02595b4a2cc7df998186fae286f9773f5f193eb6e6c9f1ae6461664d05275c4af3c3289795fb0d2a WHIRLPOOL 4eada6c632c3a566c72a39947603f2370083d2ea7ee1e1023ab3088a3d602b386f3de2167ef6a9950f94e3c393df6b5edc965aaa63bd8982729ff5832db9915d
+MISC metadata.xml 416 SHA256 f60116722af97d8e553abadbd27a86ac435f442686be454193bbd15fe806fe02 SHA512 7dee49689a60f0b24a9435987f3752f53c36c84187e19850bcbe5e2d14b1fd7bf52c3d8de83f91f3e25b3984bbbde9a08150b24d6b62552602ef145821bc95fe WHIRLPOOL 2d23541e01c8d5e76001b1cf4f5565c68bf7b58bfdca10608990fed73b57598b43fea954a92bdb43b0408172cf7c6aab838051ffa62b71589cc08cdc84758a79
diff --git a/net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild b/net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild
new file mode 100644
index 000000000000..fcd3127de23e
--- /dev/null
+++ b/net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib
+
+DESCRIPTION="digital signal processing library for software-defined radios"
+HOMEPAGE="http://liquidsdr.org"
+
+LICENSE="MIT"
+SLOT="0"
+
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/jgaeddert/liquid-dsp.git"
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/jgaeddert/liquid-dsp/archive/v1.3.0.tar.gz -> ${P}.tar.gz"
+fi
+
+IUSE="static-libs"
+
+DEPEND="sci-libs/fftw:3.0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ #without this rather odd looking bit, it installs libraries into /usr/usr/$(get_libdir)
+ #what is super special is that if exec-prefix is unset, libdir is lib64...
+ #but if exec-prefix is default then libdir ends up as /usr/lib64 in makefile...
+ econf --exec-prefix="" --libdir="/usr/$(get_libdir)"
+}
+
+src_install() {
+ default
+ ! use static-libs && rm "${ED}"/usr/"$(get_libdir)"/libliquid.a
+}
diff --git a/net-libs/liquid-dsp/liquid-dsp-9999.ebuild b/net-libs/liquid-dsp/liquid-dsp-9999.ebuild
new file mode 100644
index 000000000000..fcd3127de23e
--- /dev/null
+++ b/net-libs/liquid-dsp/liquid-dsp-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib
+
+DESCRIPTION="digital signal processing library for software-defined radios"
+HOMEPAGE="http://liquidsdr.org"
+
+LICENSE="MIT"
+SLOT="0"
+
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/jgaeddert/liquid-dsp.git"
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/jgaeddert/liquid-dsp/archive/v1.3.0.tar.gz -> ${P}.tar.gz"
+fi
+
+IUSE="static-libs"
+
+DEPEND="sci-libs/fftw:3.0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ #without this rather odd looking bit, it installs libraries into /usr/usr/$(get_libdir)
+ #what is super special is that if exec-prefix is unset, libdir is lib64...
+ #but if exec-prefix is default then libdir ends up as /usr/lib64 in makefile...
+ econf --exec-prefix="" --libdir="/usr/$(get_libdir)"
+}
+
+src_install() {
+ default
+ ! use static-libs && rm "${ED}"/usr/"$(get_libdir)"/libliquid.a
+}
diff --git a/net-libs/liquid-dsp/metadata.xml b/net-libs/liquid-dsp/metadata.xml
new file mode 100644
index 000000000000..a8b2258b537d
--- /dev/null
+++ b/net-libs/liquid-dsp/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<maintainer type="project">
+<email>radio@gentoo.org</email>
+<name>Radio</name>
+</maintainer>
+<upstream>
+ <remote-id type="github">jgaeddert/liquid-dsp</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/net-libs/loudmouth/Manifest b/net-libs/loudmouth/Manifest
new file mode 100644
index 000000000000..f2033018e4b8
--- /dev/null
+++ b/net-libs/loudmouth/Manifest
@@ -0,0 +1,19 @@
+AUX loudmouth-1.4.3-async-fix.patch 971 SHA256 3d5bf6f38c0f6bfff1e3f1ac2dc3becac55e48f44760c7296a230658b2f8dd65 SHA512 56e76c103fb09766654c3d9e639420446dd184fcf8afbe191adf557fe91ef95873b7ef43cb3f72042e97b88cfca31475333f2dfe5731a09211850d34c32dc224 WHIRLPOOL b1db9a346fbf87af3260ebf7b08a550f6b1b64c80e2fc230ac7819479686939c641ac2222b8e49de84ec3bb0a4ec4da3bc639239f2b48e0be7c93533f0b0ce1b
+AUX loudmouth-1.4.3-asyncns-system.patch 2597 SHA256 80c853318b7e7111682128361acace88b496fa4b5b360d618762eb8aec1bde09 SHA512 afa6ac993f79a6e9d97f2a7d456d9b5c2052d90c97061c31c1ae74dbc687da305c55adadfc379c972811fdee1fa083287ce139bfcd1090d3c0b730edb0390550 WHIRLPOOL cb556011c2f975f69e419d8ef9999f2e5de65b71f0beada6168a954b922da06b35522d5debe3564d09517ca8cd89123eadce1fea97632fde016d8331709abde6
+AUX loudmouth-1.4.3-drop-stanzas-on-fail.patch 1413 SHA256 9bc2a0e7bf84c904f78e5d8ddf06a2c61214bae935ae3e498a690945040394d0 SHA512 95c0fdbf0558487fca53d207ce742b89f5d5fdf77c089369e80daa1541bca9bd9f28fd69b61f4e7379aac917dd6be26e47054b4571b7ccbbca26e91f11a2eb8d WHIRLPOOL b5e9611aa5a9ee346c2e923840628cb6f58ea87bb2be78e86ae00356e8a9d68b2d425dd36e44dd1ee20f836085ed733af8f985f397e15614802f14c39b31b1a7
+AUX loudmouth-1.4.3-fix-sasl-md5-digest-uri.patch 794 SHA256 d5aadd091a826597e8f9bdbe413de70093f92aa734c7888840f7314de7dae978 SHA512 050351557d5fdc62777e8e53e07bd36d805b7bbfae23f9034e41a2a3a06696281f2149b19614fb33a5e10a890d7f16d60c3f6ee0b280956d2985eb7f69f6be5b WHIRLPOOL 0c570a9b7b6ffad76ca60d6af1de1dd62e03dd075ae63d57586ba6e260e93ad26bc115b60fa0853800fbc7c9d7ef4a353007fd1224b0502fb394f3fcc21c6f31
+AUX loudmouth-1.4.3-free-before-closed.patch 4536 SHA256 04330ca3dc6619eed8017eef8604ec10e28e199e0dc02be2943fd48de7d1c568 SHA512 117740b701318241c27942413488833d8051f673800c542c63ba4cd772db59a4a94dc005d2c5bfd2eff5c132a6a147608077c70cc27d17f987f5a53ab76adf90 WHIRLPOOL 0027e3a57fa446d29d7302880518af4ac0217918bafa123aac528f8f18ac63da83ce61daf1e09a00e66ed7c9dff57873863d4b8d83c9dfc164ac33934b9a9eb9
+AUX loudmouth-1.4.3-glib-2.32.patch 320 SHA256 def4b793893dcbd25359dfb39d3757ab3279b56d026aa713a829e477bb351f83 SHA512 775d35df42e5b8f571bcdaae179c3eb0a2e720825f515139a762d4e7b9a7136245d8186e82e9f5bf171851bc8b8f57a01d872929b0be52317aeb0b0e39d972e6 WHIRLPOOL 2216bee8504ba551cf3c08dcce11e5c5c5767005508804612f082a8820f01e304227176d01a0b027b7b35585f40ecb6f47ec7e8db83828de764b5e864e0d4f91
+AUX loudmouth-1.4.3-gnutls28.patch 703 SHA256 6b74102efa1673fd57fbad52682cd002e4676768c5a8eb49c489f5618727b275 SHA512 6e1a6604fcda0b8423ecc56bdd08183c331b0c918811979ac10b2a9a3c2b58eb33c120e38a40659654b1ee4daf2f47c7e47352a7167a13db3ccd97397010cde3 WHIRLPOOL 88fe01564ab870cf1ffc93f63c0b2b0f094ca1c936a0489a9d7793dab637d31fc726905d0799cf5bbc1edba93035e8b7b3cdcb642d1036b3a41958c70fa60657
+AUX loudmouth-1.4.3-id-tag-in-opening-headers.patch 1144 SHA256 02ae7062fa8bd5dc0ce21b973b8f3d25d04740c9dd8952e46d4200bfe393f13f SHA512 f4207619acf0ed3a6cda381eac7ec8aeeac06e94019ed5883a2d1976705afbe02cfb6a2ad99ab35580d710fcc53c7646b378cae23f1c454daf7a922596b8d02d WHIRLPOOL 6c252862fa85689b0ba7a1a6a1ae522161eeb7234140ebc685f425c13ab9ac9b74108a3ca89aa769d8269688084654af04396c7fabfc470eab95501733b36159
+AUX loudmouth-1.4.3-invalid-unicode.patch 4085 SHA256 1dd5eb99c8ce01ed98b0c01bb3b5494a84ac9382f0687669755ee40b0ffdbc0e SHA512 c622f19321f4316a13608c14e6b3ddc0c9bd1aa8668a08557dc5791c6d157224285d240696ee6b2ca9868cabb8f73bd764be00dcddcb7fffd2949d757bfbb77c WHIRLPOOL 5d963e7220909924882cfcce1b428c96728d45503e29b9783e471682e45ba6a22c89ef14f5f3379216de135329d44a8e120d8baeceb02357eea655f0db4c87bd
+AUX loudmouth-1.4.3-silence-chdir.patch 891 SHA256 663edc91b0a0e996d665334c132df7f7003033ded5e52e29461601eccc5ffdd0 SHA512 9fb9c7af6ee0cf82ad667949e73dff0688b0cd3cc1b47fa38ff2bd9b57ded8e7ca8d79d15597ef06257b1e34e77a47f3e490b133dbd23b30dfed43c5205bc450 WHIRLPOOL de9ef2a27c348099cdc16b66d45da209cf1434ad067d99f3bba786b734e8f317d4a11de9908c22b045a00a85faae2e935dc93c04c7547749f5eb3d66b7e79605
+DIST loudmouth-1.4.3.tar.bz2 366818 SHA256 95a93f5d009b71ea8193d994aa11f311bc330a3efe1b7cd74dc48f11c7f929e3 SHA512 02d1de14a4d626a4c9100bd24c06d4b4203eabb0f95bab40ee18ea5e68ed81d47aa977625140157b2d9f7974ac748af857c2ee3a916f0db700e2a2d0934940ec WHIRLPOOL 4f9e3e8e4f2fd0a36996e84deebeb26c789d5334af11a3d6cc6c742b59508945a6279715f6fbb02bbbc04a0d9709e7aae4cc39803b2a60acfd47d76f0482f969
+DIST loudmouth-1.5.2.tar.gz 115940 SHA256 c3dd7b5690a7b6ee4768d71d2bdee4615cfb73b6eeaa342d6a931a5160e47421 SHA512 54c3eb7ef99604d7e2d5560dc6e5be176a188e6a0d82ae6c2f488e30f06553039aa03d6f818cec25f354479a2624f60f2233d7e63b54f331e934d554de9bfc87 WHIRLPOOL 99fd7fa00f08976242313c2bc11e9edfbe1aeea9918090347a1975d5ece438892afbf3b5c16ffe79b1c0a10b28f35f62937d45a234e63b26f051466799fd7685
+DIST loudmouth-1.5.3.tar.gz 114676 SHA256 12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792 SHA512 afae8b4ad1e9e5558cffa8f6b9f25331b01cfa09ea0b3defb74cac7d39477744e6d9181d3adefe242038020759df43558de0e61305fbc8e12a3b293b82856bf7 WHIRLPOOL 0a7d4a01ec4f0ae68f58f3267aabc2eb9f7eb0e812232a8ecd3664dd5c99ae404c4825bb5ae01f36a1cced48a9aaff67c4a92c23541e2e1fd9f69c4a67962007
+EBUILD loudmouth-1.4.3-r2.ebuild 2498 SHA256 df24c25a75f01711e7c1260ee09bbd383dce86b6e18c2241f0a8fccdef573e53 SHA512 2d0122e816ce11214c6ee00641535d0d9148c1412ee660fb361930e4cea95bf4866fbd68e340c57ec593afc94487a0aaeb1160ee1aff69a41f87138245cf7f4f WHIRLPOOL a9e1c8e8c2ba49b95c8f43b170bdab29288d176b01bfb50878cc36ab9df9ec0425be5808c9495ee76f841fc6e9550ef0e23002c2966827e1fe3430e23907607d
+EBUILD loudmouth-1.5.2-r1.ebuild 1165 SHA256 823877bbd602976e8df023dc4a997cf16d3b208719254f391a3a26dd829ab23a SHA512 7b536b1265090ac5d7bcb6d2460550a36fba4306a964feb5e54c37322187def0e566a85a977d86b6f3be1d6e34e2c3d2de6a988f3e278c26beec280378b15e3c WHIRLPOOL 44b08f38277ba84e0407f992ea1dd7774086b01dd39b60bb48065fa36edf362a2edd941068f781e10060b2c4d574ed0ef506d680e55c458ed32f3c4f37ec9318
+EBUILD loudmouth-1.5.3.ebuild 1166 SHA256 487caf946da6057b07075c3a9fc105bd747a8ababc75dda3b59786f7b5958a6e SHA512 7257a30439d6a17b92a04443405ea7ae10b83ad2621a411f25e1e6d593e8252a07012a5ded42d2645c39d45c9494b137fb77585c7bd47379ce128886f6e6ecd1 WHIRLPOOL 183d80e39a847257bcd2805ede690686d9dc0696ba5c1245913930e53b3ab1ef3466a28e1dbfc50c33a76af0509b16fb9c89dd5a601ff86151243abc360b3916
+MISC ChangeLog 4063 SHA256 863df6afc9f522b1f1a4af210e924437080027d82fca2fb2de38946af8e25160 SHA512 25144a9ded7506ae171913e1c1c945c19a88c27eafca6b9874ff18bdd42153b5b6cd256c3a97bf45b5f58d0542161fc4a51a971e356d13b9379f0f4878a14e96 WHIRLPOOL 2ff7e6f2b309b0517d07f873f18052654149d20c7083b3402d6ded7a690334b001e4451a6d40e8d83310fa9b10a94eda56b0baaf47c22c331c11aeda8a3f4a79
+MISC ChangeLog-2015 15204 SHA256 5feb983262f60ea734d8e4c754d13a37fbd8c12750d047fa362420a1875e3cfb SHA512 e71849c239afca32e7cbd4939905806252dab8af6a67751b480116bfb5f0dd06da4e8fd8f6ee4f1b02ab49431ac71904c0cfcb58e6bcbbc96bd110ec1fdf9a97 WHIRLPOOL 89cf0a8db229015f6478357e445a11201b595ac5e2adfc32c9e3a94309d4258a6c7191e3eac02ae07518bef9256485b4a7cdde414bd06a4ad167504c31f0c968
+MISC metadata.xml 561 SHA256 b65de9de3ee37d6bfb3e23896b647280ac08b00def14b43f04074adf9e34f06f SHA512 69e89d7b5ffc2045a760a8b094bdc6fd230c10539550f9c0efb657a480bdee487f3e6cd5c87b2e037a1b1078274ebaa25efde6535aed4dfe57876a60a2faf4aa WHIRLPOOL d3b03581e0403002d3b60dbd3785d302eff63f95ac55dee8b7ddb80713c17195de3ed67a4c199e7f5d2b273aa40ddc7349f6dc5436dfc71e17a52320f62477cd
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-async-fix.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-async-fix.patch
new file mode 100644
index 000000000000..3213d72865aa
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-async-fix.patch
@@ -0,0 +1,30 @@
+--- a/loudmouth/lm-socket.c
++++ b/loudmouth/lm-socket.c
+@@ -1022,7 +1022,7 @@ _lm_socket_create_phase2 (LmSocket *socket, struct addrinfo *ans)
+ if (socket->connect_func) {
+ (socket->connect_func) (socket, FALSE, socket->user_data;
+ }
+- g_free (socket->connect_data);
++ g_free (socket->connect_data);
+ socket->connect_data = NULL;
+ return;
+ }
+@@ -1107,6 +1107,10 @@ lm_socket_create (GMainContext *context,
+ _lm_socket_create_phase1 (socket, NULL, 0);
+ }
+
++#ifndef HAVE_ASYNCNS
++ /* Only do this check if we are not using asyncns or it will crash.
++ * Report and patch by Senko.
++ */
+ if (socket->connect_data == NULL) {
+ /* Open failed synchronously, probably a DNS lookup problem */
+ lm_socket_unref(socket);
+@@ -1118,6 +1122,7 @@ lm_socket_create (GMainContext *context,
+
+ return NULL;
+ }
++#endif /* HAVE_ASYNCNS */
+
+
+ /* If the connection fails synchronously, we don't want to call the
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-asyncns-system.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-asyncns-system.patch
new file mode 100644
index 000000000000..9cf5345e558d
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-asyncns-system.patch
@@ -0,0 +1,83 @@
+diff --git a/configure.ac b/configure.ac
+index 9369e55..17a9e1d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -199,19 +199,31 @@ AM_CONDITIONAL(USE_GNUTLS, test x$enable_ssl = xGnuTLS)
+ dnl +-------------------------------------------------------------------+
+ dnl | Checking for libasyncns |
+ dnl +-------------------------------------------------------------------+
+-AC_ARG_WITH(asyncns, [ --with-asyncns=yes/no define whether to use libasyncns, default=no],
+- ac_asyncns=$withval,
+- ac_asyncns=no
+- )
++AC_ARG_WITH(asyncns,
++ AS_HELP_STRING([--with-asyncns],
++ [define whether to use libasyncns, @<:@default=no@:>@ (internal/system/no)]),
++ ac_asyncns=$withval,
++ ac_asyncns=no)
+
+ enable_asyncns=no
++have_asyncns_system=no
+ if test x$ac_asyncns != xno; then
+ enable_asyncns=yes
+ AC_DEFINE(HAVE_ASYNCNS, 1, [Whether to use libasyncns])
++
++ if test x$ac_asyncns = xsystem; then
++ PKG_CHECK_MODULES(ASYNCNS, [libasyncns >= 0.3],
++ [have_asyncns_system=yes],
++ [have_asyncns_system=no])
++ fi
+ else
+ echo "Not using asynchronous dns lookups"
+ fi
+
++AC_SUBST(ASYNCNS_CFLAGS)
++AC_SUBST(ASYNCNS_LIBS)
++AM_CONDITIONAL(USE_SYSTEM_ASYNCNS, test x$have_asyncns_system = xyes)
++
+ dnl +-------------------------------------------------------------------+
+ dnl | Checking for Linux TCP/IP stack |
+ dnl +-------------------------------------------------------------------+
+diff --git a/loudmouth/Makefile.am b/loudmouth/Makefile.am
+index f73aa0c..e308e1c 100644
+--- a/loudmouth/Makefile.am
++++ b/loudmouth/Makefile.am
+@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
+ -I. \
+ -I$(top_srcdir) \
+ $(LOUDMOUTH_CFLAGS) \
++ $(ASYNCNS_CFLAGS) \
+ $(LIBIDN_CFLAGS) \
+ -DLM_COMPILATION \
+ -DRUNTIME_ENDIAN \
+@@ -51,8 +52,6 @@ libloudmouth_1_la_SOURCES = \
+ lm-sock.c \
+ lm-socket.c \
+ lm-socket.h \
+- asyncns.c \
+- asyncns.h \
+ lm-sasl.c \
+ lm-sasl.h \
+ md5.c \
+@@ -61,6 +60,13 @@ libloudmouth_1_la_SOURCES = \
+ base64.h \
+ $(NULL)
+
++if ! USE_SYSTEM_ASYNCNS
++libloudmouth_1_la_SOURCES += \
++ asyncns.c \
++ asyncns.h \
++ $(NULL)
++endif
++
+ libloudmouthinclude_HEADERS = \
+ lm-connection.h \
+ lm-error.h \
+@@ -75,6 +81,7 @@ libloudmouthinclude_HEADERS = \
+
+ libloudmouth_1_la_LIBADD = \
+ $(LOUDMOUTH_LIBS) \
++ $(ASYNCNS_LIBS) \
+ $(LIBIDN_LIBS) \
+ -lresolv
+
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-drop-stanzas-on-fail.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-drop-stanzas-on-fail.patch
new file mode 100644
index 000000000000..05c76c590b58
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-drop-stanzas-on-fail.patch
@@ -0,0 +1,47 @@
+
+From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
+Date: Tue, 13 Jan 2009 11:28:44 +0000
+Subject: [PATCH] Drop stanzas when failing to convert them to LmMessages
+
+when a stanza comes in that for some reason can't be parsed into an LmMessage,
+just drop them on the floor instead of blocking the parser. I've seen this
+issue happen in practise because some (buggy?) client sending an iq with a
+prefix e.g. <client:iq xmlns:client="jabber:client" ... />
+---
+ loudmouth/lm-parser.c | 15 ++++++---------
+ 1 files changed, 6 insertions(+), 9 deletions(-)
+
+diff --git a/loudmouth/lm-parser.c b/loudmouth/lm-parser.c
+index 1938d56..89f6675 100644
+--- a/loudmouth/lm-parser.c
++++ b/loudmouth/lm-parser.c
+@@ -151,19 +151,16 @@ parser_end_node_cb (GMarkupParseContext *context,
+ if (!m) {
+ g_warning ("Couldn't create message: %s\n",
+ parser->cur_root->name);
+- return;
+- }
+-
+- g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_PARSER,
++ } else {
++ g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_PARSER,
+ "Have a new message\n");
+- if (parser->function) {
+- (* parser->function) (parser, m, parser->user_data);
++ if (parser->function) {
++ (* parser->function) (parser, m, parser->user_data);
++ }
++ lm_message_unref (m);
+ }
+
+- lm_message_unref (m);
+ lm_message_node_unref (parser->cur_root);
+-
+-
+ parser->cur_node = parser->cur_root = NULL;
+ } else {
+ LmMessageNode *tmp_node;
+--
+1.5.6.5
+
+
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-fix-sasl-md5-digest-uri.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-fix-sasl-md5-digest-uri.patch
new file mode 100644
index 000000000000..5bca69c0c15e
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-fix-sasl-md5-digest-uri.patch
@@ -0,0 +1,24 @@
+diff --git a/loudmouth/lm-connection.c b/loudmouth/lm-connection.c
+index 21c1bc2..ae8de94 100644
+--- a/loudmouth/lm-connection.c
++++ b/loudmouth/lm-connection.c
+@@ -1441,11 +1441,18 @@ lm_connection_authenticate (LmConnection *connection,
+ connection->effective_jid = g_strdup_printf ("%s/%s",
+ connection->jid, connection->resource);
+
+ if (connection->use_sasl) {
++ gchar *domain = NULL;
++
++ if (!connection_get_server_from_jid (connection->jid, &domain)) {
++ domain = g_strdup (connection->server);
++ }
++
+ lm_sasl_authenticate (connection->sasl,
+ username, password,
+- connection->server,
++ domain,
+ connection_sasl_auth_finished);
++ g_free (domain);
+
+ connection->features_cb =
+ lm_message_handler_new (connection_features_cb,
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-free-before-closed.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-free-before-closed.patch
new file mode 100644
index 000000000000..d6c43ae9d66f
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-free-before-closed.patch
@@ -0,0 +1,137 @@
+From ff113220df9073c3e6078487e87b6a7b86e2d952 Mon Sep 17 00:00:00 2001
+From: Mikael Hallendal <micke@imendio.com>
+Date: Sun, 30 Nov 2008 09:27:21 +0100
+Subject: [PATCH] Don't free connection internals before it's closed. [#34]
+
+When the connection freed up internal states (in this case the handler
+lists) before closing itself it segfaulted when trying to unregister the
+SASL handlers.
+
+Reported by Julien Puydt.
+---
+ loudmouth/lm-connection.c | 30 +++++++++++++++++-------------
+ loudmouth/lm-sasl.c | 18 +++++++++---------
+ 2 files changed, 26 insertions(+), 22 deletions(-)
+
+diff --git a/loudmouth/lm-connection.c b/loudmouth/lm-connection.c
+index 915c0ad..dda2978 100644
+--- a/loudmouth/lm-connection.c
++++ b/loudmouth/lm-connection.c
+@@ -191,13 +191,21 @@ connection_free (LmConnection *connection)
+ {
+ int i;
+
++ /* This needs to be run before starting to free internal states.
++ * It used to be run after the handlers where freed which lead to a crash
++ * when the connection was freed prior to running lm_connection_close.
++ */
++ if (connection->state >= LM_CONNECTION_STATE_OPENING) {
++ connection_do_close (connection);
++ }
++
+ g_free (connection->server);
+ g_free (connection->jid);
+ g_free (connection->effective_jid);
+ g_free (connection->stream_id);
+ g_free (connection->resource);
+
+- if (connection->sasl) {
++ if (connection->sasl) {
+ lm_sasl_free (connection->sasl);
+ }
+
+@@ -218,13 +226,9 @@ connection_free (LmConnection *connection)
+
+ g_slist_free (connection->handlers[i]);
+ }
+-
+ g_hash_table_destroy (connection->id_handlers);
+- if (connection->state >= LM_CONNECTION_STATE_OPENING) {
+- connection_do_close (connection);
+- }
+
+- if (connection->open_cb) {
++ if (connection->open_cb) {
+ _lm_utils_free_callback (connection->open_cb);
+ }
+
+@@ -2030,11 +2034,11 @@ lm_connection_unregister_message_handler (LmConnection *connection,
+ g_return_if_fail (handler != NULL);
+ g_return_if_fail (type != LM_MESSAGE_TYPE_UNKNOWN);
+
+- for (l = connection->handlers[type]; l; l = l->next) {
+- HandlerData *hd = (HandlerData *) l->data;
+-
++ for (l = connection->handlers[type]; l; l = l->next) {
++ HandlerData *hd = (HandlerData *) l->data;
++
+ if (handler == hd->handler) {
+- connection->handlers[type] = g_slist_remove_link (connection->handlers[type], l);
++ connection->handlers[type] = g_slist_remove_link (connection->handlers[type], l);
+ g_slist_free (l);
+ lm_message_handler_unref (hd->handler);
+ g_free (hd);
+@@ -2140,7 +2144,7 @@ lm_connection_ref (LmConnection *connection)
+ g_return_val_if_fail (connection != NULL, NULL);
+
+ connection->ref_count++;
+-
++
+ return connection;
+ }
+
+@@ -2157,8 +2161,8 @@ lm_connection_unref (LmConnection *connection)
+ g_return_if_fail (connection != NULL);
+
+ connection->ref_count--;
+-
++
+ if (connection->ref_count == 0) {
+- connection_free (connection);
++ connection_free (connection);
+ }
+ }
+diff --git a/loudmouth/lm-sasl.c b/loudmouth/lm-sasl.c
+index 42ee0e1..e6a72f5 100644
+--- a/loudmouth/lm-sasl.c
++++ b/loudmouth/lm-sasl.c
+@@ -807,27 +807,27 @@ lm_sasl_free (LmSASL *sasl)
+ g_free (sasl->server);
+
+ if (sasl->features_cb) {
+- lm_connection_unregister_message_handler (sasl->connection,
+- sasl->features_cb,
+- LM_MESSAGE_TYPE_STREAM_FEATURES);
++ lm_connection_unregister_message_handler (sasl->connection,
++ sasl->features_cb,
++ LM_MESSAGE_TYPE_STREAM_FEATURES);
+ }
+
+ if (sasl->challenge_cb) {
+ lm_connection_unregister_message_handler (sasl->connection,
+- sasl->challenge_cb,
+- LM_MESSAGE_TYPE_CHALLENGE);
++ sasl->challenge_cb,
++ LM_MESSAGE_TYPE_CHALLENGE);
+ }
+
+ if (sasl->success_cb) {
+ lm_connection_unregister_message_handler (sasl->connection,
+- sasl->success_cb,
+- LM_MESSAGE_TYPE_SUCCESS);
++ sasl->success_cb,
++ LM_MESSAGE_TYPE_SUCCESS);
+ }
+
+ if (sasl->failure_cb) {
+ lm_connection_unregister_message_handler (sasl->connection,
+- sasl->failure_cb,
+- LM_MESSAGE_TYPE_FAILURE);
++ sasl->failure_cb,
++ LM_MESSAGE_TYPE_FAILURE);
+ }
+
+ g_free (sasl);
+--
+1.7.7.1
+
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-glib-2.32.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-glib-2.32.patch
new file mode 100644
index 000000000000..87fc170c80da
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-glib-2.32.patch
@@ -0,0 +1,13 @@
+Index: loudmouth-1.4.3/loudmouth/lm-error.c
+===================================================================
+--- loudmouth-1.4.3.orig/loudmouth/lm-error.c
++++ loudmouth-1.4.3/loudmouth/lm-error.c
+@@ -19,7 +19,7 @@
+ */
+
+ #include <config.h>
+-#include <glib/gerror.h>
++#include <glib.h>
+ #include "lm-error.h"
+
+ /**
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-gnutls28.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-gnutls28.patch
new file mode 100644
index 000000000000..a538533db03b
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-gnutls28.patch
@@ -0,0 +1,15 @@
+# Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=272027
+# Patch from mandriva
+--- a/configure.ac 2009-05-30 17:59:03.000000000 +0200
++++ b/configure.ac 2009-05-30 18:02:24.000000000 +0200
+@@ -146,8 +146,9 @@
+ enable_ssl=no
+ if test "x$ac_ssl" = "xgnutls"; then
+ dnl Look for GnuTLS
+- AM_PATH_LM_LIBGNUTLS($GNUTLS_REQUIRED, have_libgnutls=yes, have_libgnutls=no)
++ PKG_CHECK_EXISTS([gnutls >= $GNUTLS_REQUIRED], have_libgnutls=yes, have_libgnutls=no)
+ if test "x$have_libgnutls" = "xyes"; then
++ PKG_CHECK_MODULES(LIBGNUTLS, [gnutls >= $GNUTLS_REQUIRED])
+ CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
+ LIBS="$LIBS $LIBGNUTLS_LIBS"
+ AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-id-tag-in-opening-headers.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-id-tag-in-opening-headers.patch
new file mode 100644
index 000000000000..43b923a5e73f
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-id-tag-in-opening-headers.patch
@@ -0,0 +1,35 @@
+From 6f3a168d985d37af42e747412b5d6d427b4d1ab8 Mon Sep 17 00:00:00 2001
+From: Will Thompson <will.thompson@collabora.co.uk>
+Date: Wed, 5 Nov 2008 23:19:42 +0100
+Subject: [PATCH] Don't append the 'id'-tag in opening stream headers. [#30]
+
+According to RFC 3920 (section 4.4) the id attribute SHOULD NOT be added
+by the initiating party.
+
+[#30 responsible:Hallski state:resolved milestone:Loudmouth 1.4.4 tagged:committed]
+---
+ loudmouth/lm-message.c | 8 +++++---
+ 1 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/loudmouth/lm-message.c b/loudmouth/lm-message.c
+index a7d1b46..e2fdcc2 100644
+--- a/loudmouth/lm-message.c
++++ b/loudmouth/lm-message.c
+@@ -223,9 +223,11 @@ lm_message_new (const gchar *to, LmMessageType type)
+
+ m->node = _lm_message_node_new (_lm_message_type_to_string (type));
+
+- id = _lm_utils_generate_id ();
+- lm_message_node_set_attribute (m->node, "id", id);
+- g_free (id);
++ if (type != LM_MESSAGE_TYPE_STREAM) {
++ id = _lm_utils_generate_id ();
++ lm_message_node_set_attribute (m->node, "id", id);
++ g_free (id);
++ }
+
+ if (to) {
+ lm_message_node_set_attribute (m->node, "to", to);
+--
+1.7.7.1
+
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-invalid-unicode.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-invalid-unicode.patch
new file mode 100644
index 000000000000..2a97653c93cd
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-invalid-unicode.patch
@@ -0,0 +1,144 @@
+From e08dbcca6cf50c834e2fe4e7290cce642903251d Mon Sep 17 00:00:00 2001
+From: Hermitifier <quantifier666@gmail.com>
+Date: Mon, 3 Oct 2011 17:06:18 +0200
+Subject: [PATCH] Protect GMarkup parser against invalid unicode characters
+
+[Alexandre Rostovtsev <tetromino@gentoo.org>: backport to 1.4.3]
+
+http://loudmouth.lighthouseapp.com/projects/17276/tickets/61
+---
+ loudmouth/lm-parser.c | 94 ++++++++++++++++++++++++++++++++++++++++++++-----
+ 1 files changed, 85 insertions(+), 9 deletions(-)
+
+diff --git a/loudmouth/lm-parser.c b/loudmouth/lm-parser.c
+index 89f6675..0a61a56 100644
+--- a/loudmouth/lm-parser.c
++++ b/loudmouth/lm-parser.c
+@@ -43,6 +43,8 @@ struct LmParser {
+
+ GMarkupParser *m_parser;
+ GMarkupParseContext *context;
++ gchar *incomplete; /* incomplete utf-8 character
++ found at the end of buffer */
+ };
+
+
+@@ -233,25 +235,98 @@ lm_parser_new (LmParserMessageFunction function,
+ parser->cur_root = NULL;
+ parser->cur_node = NULL;
+
++ parser->incomplete = NULL;
++
+ return parser;
+ }
+
++static gchar *
++_lm_parser_make_valid (const gchar *buffer, gchar **incomplete)
++{
++ GString *string;
++ const gchar *remainder, *invalid;
++ gint remaining_bytes, valid_bytes;
++ gunichar code; /*error code for invalid character*/
++
++ g_return_val_if_fail (buffer != NULL, NULL);
++
++ string = NULL;
++ remainder = buffer;
++ remaining_bytes = strlen (buffer);
++
++ while (remaining_bytes != 0)
++ {
++ if (g_utf8_validate (remainder, remaining_bytes, &invalid))
++ break;
++ valid_bytes = invalid - remainder;
++
++ if (string == NULL)
++ string = g_string_sized_new (remaining_bytes);
++
++ g_string_append_len (string, remainder, valid_bytes);
++
++ remainder = g_utf8_find_next_char(invalid, NULL);
++ remaining_bytes -= valid_bytes + (remainder - invalid);
++
++ code = g_utf8_get_char_validated (invalid, -1);
++
++ if (code == -1) {
++ /* A complete but invalid codepoint */
++ /* append U+FFFD REPLACEMENT CHARACTER */
++ g_string_append (string, "\357\277\275");
++#ifndef LM_NO_DEBUG
++ g_debug ("invalid character!\n");
++#endif
++ } else if (code == -2) {
++ /* Beginning of what could be a character */
++ *incomplete = g_strdup (invalid);
++#ifndef LM_NO_DEBUG
++ g_debug ("incomplete character: %s\n", *incomplete);
++#endif
++
++ g_assert (remaining_bytes == 0);
++ g_assert (*(g_utf8_find_next_char(invalid, NULL)) == '\0');
++ }
++ }
++
++ if (string == NULL)
++ return g_strdup (buffer);
++
++ g_string_append (string, remainder);
++
++ g_assert (g_utf8_validate (string->str, -1, NULL));
++
++ return g_string_free (string, FALSE);
++}
++
++
+ void
+ lm_parser_parse (LmParser *parser, const gchar *string)
+ {
++ gchar *valid, *completed;
+ g_return_if_fail (parser != NULL);
+
+- if (!parser->context) {
+- parser->context = g_markup_parse_context_new (parser->m_parser, 0,
+- parser, NULL);
+- }
+-
+- if (g_markup_parse_context_parse (parser->context, string,
+- (gssize)strlen (string), NULL)) {
+- } else {
++ if (!parser->context) {
++ parser->context = g_markup_parse_context_new (parser->m_parser, 0,
++ parser, NULL);
++ }
++
++ if (parser->incomplete) {
++ completed = g_strdup_printf("%s%s", parser->incomplete, string);
++ g_free(parser->incomplete);
++ parser->incomplete = NULL;
++ } else {
++ completed = g_strdup(string);
++ }
++ valid = _lm_parser_make_valid (completed, &parser->incomplete);
++ g_free(completed);
++ if (g_markup_parse_context_parse (parser->context, valid,
++ (gssize)strlen (valid), NULL)) {
++ } else {
+ g_markup_parse_context_free (parser->context);
+ parser->context = NULL;
+- }
++ }
++ g_free(valid);
+ }
+
+ void
+@@ -264,6 +339,7 @@ lm_parser_free (LmParser *parser)
+ if (parser->context) {
+ g_markup_parse_context_free (parser->context);
+ }
++ g_free (parser->incomplete);
+ g_free (parser->m_parser);
+ g_free (parser);
+ }
+--
+1.7.7.1
+
diff --git a/net-libs/loudmouth/files/loudmouth-1.4.3-silence-chdir.patch b/net-libs/loudmouth/files/loudmouth-1.4.3-silence-chdir.patch
new file mode 100644
index 000000000000..0ee8c940fade
--- /dev/null
+++ b/net-libs/loudmouth/files/loudmouth-1.4.3-silence-chdir.patch
@@ -0,0 +1,33 @@
+From 4d8a5ea64abb65ed086efc3e32125c529068acbe Mon Sep 17 00:00:00 2001
+From: Mikael Hallendal <micke@imendio.com>
+Date: Wed, 19 Nov 2008 10:16:40 +0100
+Subject: [PATCH] Silence chdir by catching return value
+
+---
+ loudmouth/asyncns.c | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/loudmouth/asyncns.c b/loudmouth/asyncns.c
+index 9b238fa..55cb471 100644
+--- a/loudmouth/asyncns.c
++++ b/loudmouth/asyncns.c
+@@ -382,6 +382,7 @@ static int process_worker(int in_fd, int out_fd) {
+ int have_death_sig = 0;
+ assert(in_fd > 2);
+ assert(out_fd > 2);
++ int no_warn;
+
+ close(0);
+ close(1);
+@@ -391,7 +392,7 @@ static int process_worker(int in_fd, int out_fd) {
+ open("/dev/null", O_WRONLY);
+ open("/dev/null", O_WRONLY);
+
+- chdir("/");
++ no_warn = chdir("/");
+
+ if (geteuid() == 0) {
+ struct passwd *pw;
+--
+1.7.7.1
+
diff --git a/net-libs/loudmouth/loudmouth-1.4.3-r2.ebuild b/net-libs/loudmouth/loudmouth-1.4.3-r2.ebuild
new file mode 100644
index 000000000000..073287849ae7
--- /dev/null
+++ b/net-libs/loudmouth/loudmouth-1.4.3-r2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GNOME_TARBALL_SUFFIX="bz2"
+GNOME2_LA_PUNT="yes"
+# Not using gnome macro, but behavior is similar, #434736
+GCONF_DEBUG="yes"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Lightweight C Jabber library"
+HOMEPAGE="https://github.com/engineyard/loudmouth"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~ppc-macos"
+
+IUSE="asyncns ssl static-libs test"
+
+# Automagic libidn dependency
+RDEPEND="
+ >=dev-libs/glib-2.4:2
+ net-dns/libidn
+ ssl? ( >=net-libs/gnutls-1.4.0 )
+ asyncns? ( net-libs/libasyncns )
+"
+# FIXME:
+# openssl dropped because of bug #216705
+
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )
+ virtual/pkgconfig
+ >=dev-util/gtk-doc-am-1
+"
+
+src_prepare() {
+ # Use system libasyncns, bug #236844
+ epatch "${FILESDIR}/${P}-asyncns-system.patch"
+
+ # Fix detection of gnutls-2.8, bug #272027
+ epatch "${FILESDIR}/${P}-gnutls28.patch"
+
+ # Fix digest auth with SRV (or similar)
+ # Upstream: http://loudmouth.lighthouseapp.com/projects/17276-libloudmouth/tickets/44-md5-digest-uri-not-set-correctly-when-using-srv
+ epatch "${FILESDIR}/${P}-fix-sasl-md5-digest-uri.patch"
+
+ # Drop stanzas when failing to convert them to LmMessages
+ # From debian..
+ epatch "${FILESDIR}/${P}-drop-stanzas-on-fail.patch"
+
+ # Don't check for sync dns problems when using asyncns [#33]
+ # From debian..
+ epatch "${FILESDIR}/${P}-async-fix.patch"
+
+ # Don't append id tag in opening headers [#30]
+ epatch "${FILESDIR}/${P}-id-tag-in-opening-headers.patch"
+
+ # Silence chdir, from engineyard git
+ epatch "${FILESDIR}/${P}-silence-chdir.patch"
+
+ # Don't free connection internals before connection is closed [#34]
+ epatch "${FILESDIR}/${P}-free-before-closed.patch"
+
+ # Check for invalid utf8, bug #389127
+ # Upstream: http://loudmouth.lighthouseapp.com/projects/17276/tickets/61
+ epatch "${FILESDIR}/${P}-invalid-unicode.patch"
+
+ # http://loudmouth.lighthouseapp.com/projects/17276/tickets/63
+ epatch "${FILESDIR}/${P}-glib-2.32.patch"
+
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467694
+
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf
+
+ if use ssl; then
+ myconf="${myconf} --with-ssl=gnutls"
+ else
+ myconf="${myconf} --with-ssl=no"
+ fi
+
+ if use asyncns; then
+ myconf="${myconf} --with-asyncns=system"
+ else
+ myconf="${myconf} --without-asyncns"
+ fi
+ gnome2_src_configure \
+ $(use_enable static-libs static) \
+ ${myconf}
+}
diff --git a/net-libs/loudmouth/loudmouth-1.5.2-r1.ebuild b/net-libs/loudmouth/loudmouth-1.5.2-r1.ebuild
new file mode 100644
index 000000000000..0059fb3c90fc
--- /dev/null
+++ b/net-libs/loudmouth/loudmouth-1.5.2-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Lightweight C Jabber library"
+HOMEPAGE="https://github.com/mcabber/loudmouth"
+SRC_URI="https://github.com/mcabber/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+#SRC_URI="https://mcabber.com/files/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
+
+IUSE="asyncns ssl openssl static-libs test"
+
+# Automagic libidn dependency
+RDEPEND="
+ >=dev-libs/glib-2.16:2
+ net-dns/libidn
+ ssl? (
+ !openssl? ( >=net-libs/gnutls-1.4.0 )
+ openssl? ( dev-libs/openssl:0 )
+ )
+ asyncns? ( >=net-libs/libasyncns-0.3 )
+"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )
+ virtual/pkgconfig
+ >=dev-util/gtk-doc-1
+ >=dev-util/gtk-doc-am-1
+"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use ssl; then
+ if ! use openssl; then
+ myconf="${myconf} --with-ssl=gnutls"
+ else
+ myconf="${myconf} --with-ssl=openssl"
+ fi
+ else
+ myconf="${myconf} --with-ssl=no"
+ fi
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with asyncns) \
+ ${myconf}
+}
diff --git a/net-libs/loudmouth/loudmouth-1.5.3.ebuild b/net-libs/loudmouth/loudmouth-1.5.3.ebuild
new file mode 100644
index 000000000000..b5dac8fc2678
--- /dev/null
+++ b/net-libs/loudmouth/loudmouth-1.5.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Lightweight C Jabber library"
+HOMEPAGE="https://github.com/mcabber/loudmouth"
+SRC_URI="https://github.com/mcabber/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+#SRC_URI="https://mcabber.com/files/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
+
+IUSE="asyncns ssl openssl static-libs test"
+
+# Automagic libidn dependency
+RDEPEND="
+ >=dev-libs/glib-2.16:2
+ net-dns/libidn
+ ssl? (
+ !openssl? ( >=net-libs/gnutls-1.4.0 )
+ openssl? ( dev-libs/openssl:0 )
+ )
+ asyncns? ( >=net-libs/libasyncns-0.3 )
+"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )
+ virtual/pkgconfig
+ >=dev-util/gtk-doc-1
+ >=dev-util/gtk-doc-am-1
+"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use ssl; then
+ if ! use openssl; then
+ myconf="${myconf} --with-ssl=gnutls"
+ else
+ myconf="${myconf} --with-ssl=openssl"
+ fi
+ else
+ myconf="${myconf} --with-ssl=no"
+ fi
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with asyncns) \
+ ${myconf}
+}
diff --git a/net-libs/loudmouth/metadata.xml b/net-libs/loudmouth/metadata.xml
new file mode 100644
index 000000000000..528027fd8a72
--- /dev/null
+++ b/net-libs/loudmouth/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ </maintainer>
+ <use>
+ <flag name="asyncns">Use <pkg>net-libs/libasyncns</pkg> for asynchronous name resolution.</flag>
+ <flag name="openssl">Enable <pkg>dev-libs/openssl</pkg> support instead of gnutls (which is the default).</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">mcabber/loudmouth</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/mbedtls/Manifest b/net-libs/mbedtls/Manifest
new file mode 100644
index 000000000000..f901e1acf7c5
--- /dev/null
+++ b/net-libs/mbedtls/Manifest
@@ -0,0 +1,4 @@
+DIST mbedtls-2.6.0.tar.gz 1912899 SHA256 8ed1e4ef5831968847565e7da1ed9cc0e9aea419da324326ae24912a03c12a1b SHA512 d03c7adace6647d7d4700bf45becde9d31144bd2adf10cc7f2a73d19fd338c8b81ab8373a81400d74818fd99ce1661979bc5386760b7a68d263fb67406ee2641 WHIRLPOOL 066dbe141c7a23ce8ba96f2b39f56b0092309a86fc6a2dab05666ab15bc66a2266a7f1341074bcdc9991b71fda5b5c0b953df13da5b87709ceaa8bc7148b634d
+EBUILD mbedtls-2.6.0.ebuild 2417 SHA256 7d94927c880ea7a276933e46d36fca677c62455b1a81f83ecbcf4a4a08c5a631 SHA512 3640d53989a58dd4731afe8050c73baa3880825b1c171c345451da4db76f6231c802ed6b21afe62d33b4111db295a4d29f5cc3737a34b0d955b2cea20979d5bb WHIRLPOOL a0ce0af7ab830f955e74a8e158317ca31b4eccb9164f86bb4b88366fa4ba4f0e7774fcd3b6ad2ee7c48d6d859d313b493747352a50fe1509f17c5ff74f06f6ca
+MISC ChangeLog 6039 SHA256 c575c5dc1af37ede6489df3efe11e98febbc7aba2bf22d3e610829f161f4fcaa SHA512 35f3431da691f6206451ec7d55a01771d0864b55309b4c928e3f4ccb8ae3b4d012899b13c7dc799d9e5e7d3c2ba18f071b09cd30b6218e84d198ff5ca2e149d8 WHIRLPOOL aea7dfd2ce6a86846deaae7ef90d4d3991cb3c234b958497d11148d50dbc2be983ceb92bc722823d551e061792f38476c235c5304c7f1375322a5c271999165d
+MISC metadata.xml 749 SHA256 0af074ed1ca5da0d2fd64ba023bbeee23e071e6c318eeede1b1009e9200ff0c2 SHA512 b1d9eb197d6c904a964bc21fadb939a2cdffaab0990c2254ed57e4dcf123353762c860ce36109072a192b3b31dec25b9c1236d209f42b2e95bcedb1e9342e3e5 WHIRLPOOL 615c4a87ecffe3ead89c1ef5022dd415fb67b6646a9f16c5a06cac6d7ed45a0da739dd8aad416f12a1de161ea4421045c5a215b3cb89f14177082c352f2c3c7f
diff --git a/net-libs/mbedtls/mbedtls-2.6.0.ebuild b/net-libs/mbedtls/mbedtls-2.6.0.ebuild
new file mode 100644
index 000000000000..ce764cd54f4a
--- /dev/null
+++ b/net-libs/mbedtls/mbedtls-2.6.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils multilib-minimal
+
+DESCRIPTION="Cryptographic library for embedded systems"
+HOMEPAGE="https://tls.mbed.org/"
+SRC_URI="https://github.com/ARMmbed/mbedtls/archive/${P}.tar.gz"
+S=${WORKDIR}/${PN}-${P}
+
+LICENSE="Apache-2.0"
+SLOT="0/10" # slot for libmbedtls.so
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="cpu_flags_x86_sse2 doc havege libressl programs test threads zlib"
+
+RDEPEND="
+ programs? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen media-gfx/graphviz )
+ test? ( dev-lang/perl )"
+
+enable_mbedtls_option() {
+ local myopt="$@"
+ # check that config.h syntax is the same at version bump
+ sed -i \
+ -e "s://#define ${myopt}:#define ${myopt}:" \
+ include/mbedtls/config.h || die
+}
+
+src_prepare() {
+ use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2
+ use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
+ use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
+ use threads && enable_mbedtls_option MBEDTLS_THREADING_C
+ use threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD
+
+ cmake-utils_src_prepare
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DENABLE_PROGRAMS=$(multilib_native_usex programs)
+ -DENABLE_ZLIB_SUPPORT=$(usex zlib)
+ -DUSE_STATIC_MBEDTLS_LIBRARY=OFF
+ -DENABLE_TESTING=$(usex test)
+ -DUSE_SHARED_MBEDTLS_LIBRARY=ON
+ -DINSTALL_MBEDTLS_HEADERS=ON
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)"
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+ use doc && multilib_is_native_abi && emake apidoc
+}
+
+multilib_src_test() {
+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \
+ cmake-utils_src_test
+}
+
+multilib_src_install() {
+ cmake-utils_src_install
+}
+
+multilib_src_install_all() {
+ use doc && HTML_DOCS=( apidoc )
+
+ einstalldocs
+
+ if use programs ; then
+ # avoid file collisions with sys-apps/coreutils
+ local p e
+ for p in "${ED%/}"/usr/bin/* ; do
+ if [[ -x "${p}" && ! -d "${p}" ]] ; then
+ mv "${p}" "${ED%/}"/usr/bin/mbedtls_${p##*/} || die
+ fi
+ done
+ for e in aes hash pkey ssl test ; do
+ docinto "${e}"
+ dodoc programs/"${e}"/*.c
+ dodoc programs/"${e}"/*.txt
+ done
+ fi
+}
diff --git a/net-libs/mbedtls/metadata.xml b/net-libs/mbedtls/metadata.xml
new file mode 100644
index 000000000000..6271fea062b7
--- /dev/null
+++ b/net-libs/mbedtls/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <longdescription lang="en">
+ The aim of the mbed TLS project is to provide a quality, open-source
+ cryptographic library written in C and targeted at embedded systems.
+ </longdescription>
+ <use>
+ <flag name="havege">Enable the HAVEGE random generator.
+ Warning: the HAVEGE random generator is not suitable for
+ virtualized environments
+ </flag>
+ <flag name="programs">Build PolarSSL programs</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">ARMmbed/mbedtls</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/meanwhile/Manifest b/net-libs/meanwhile/Manifest
new file mode 100644
index 000000000000..5cee54f21153
--- /dev/null
+++ b/net-libs/meanwhile/Manifest
@@ -0,0 +1,7 @@
+AUX meanwhile-1.0.2-glib2.31.patch 6461 SHA256 d69f828a4ae918ba1860804e427fd1302c745d643f24902fcc94e49c823b6c0a SHA512 b22a45ff231f33294808e65dd0e0461810be26078d94493c56e3e0303fa9d5606f7916f14edee7f94a2b78574300ba76df433b9e3c1ba0b5df3da0d07aa9ca70 WHIRLPOOL c6647358b8c9200ce4c1ccb0797b0b4865a19f8d3cad258beff11cafb630faf868b053c6b290a24d0fb5caefd0248f94279bd2cd331b27e8fc07b12efd3c2b0f
+AUX meanwhile-1.0.2-presence.patch 1163 SHA256 7c1e2bd33f7531b84e8d401266d81b8315986f3ff916e451c40da0e25d0b1467 SHA512 f4caf5f727464b044ed533abcb3929227bc55cba4132b55587411ae5c78c320c916924c5b9228a34634af68f4a00d8103616c64b4b77f04e15f66d8ff62dbbd7 WHIRLPOOL f9204a7c77d0da4a2697d3bc90d0e7c669147f2524153d5a85a8de2bddf8203329a5f06129961cc48c81a031ad97645fb201b250430de420a4ce5d4f2e767b0d
+DIST meanwhile-1.0.2.tar.gz 479325 SHA256 38a8059eaa549cbcb45ca0a5b453e9608ceadab360db2ae14581fb22ddabdf23 SHA512 ba356124352ed522bc4c62282e4267960e0d3751c990cc422957ae263c70932264dee2d5e3dfe436325ad53f1833ff541eda4b36a6b78441374256ef54c786e6 WHIRLPOOL 2edce25025baa4c2aecb534a8f0417687b97de808b2fac09bd8370e081a18d42e69f67279e7a6e20b7f06952ab654fb2b7caf63ac3a902b00088127863cd48c1
+EBUILD meanwhile-1.0.2-r1.ebuild 1042 SHA256 d6de426c9dfb157d453f3ad5cade4963a39e1673552fe81b83bc724f264b156d SHA512 01b82356ffb6d4834c3f538ffcb4936be05e4413a43837acebd8bfee3d1b2e26c76c86343d43ecf322e988189a58058d345a536095a739db00ffda0c73607ac9 WHIRLPOOL 2c697b0088d9f8795f30d6946a5fe3be2770b281279fb56df7081a366629da55de52b5eebc80d3acbf8d74baac85d2bbe2ae6c81f9ce8d90a6664b6ee1be1dca
+MISC ChangeLog 2834 SHA256 4d7dd07714408a00a830ee8ec523dfad08ac59ce9a6ad6c2b98f26419eed82b0 SHA512 63eba2bb820cd597b2968cb7d8e3ae016e9ab4aa3129f63d70fb3199fb54b42593dcdd210186802146c93250ba05de30444920de5320f97873817e2e57fb6401 WHIRLPOOL 8c8c42fe49e2bcc419e2b009b9760084175e57a706265c678d703827d169569b6bd396daeb2eb01eae0b3a42a6098b61fb221a1578eb2103da463d88850f8aa4
+MISC ChangeLog-2015 8075 SHA256 5bf15014a48bb1f1258b8d2ffbdbeb7a687b6e9c1fded33ef351ffd091d270f6 SHA512 8cc1896fc4b064f60e3ceb1c1a115807e19b5ce767c66f8334f5dbf5708e719dba028c2fd5f63e1d641896ef434516f99c2cbca4537e0d9fe1db2b9b9d43a50f WHIRLPOOL 951ad7df237eea3a14dd0a62b94c4ca58105436bfdd01c38aeab867cd4180cc888cdeb87b192c7f11367b47100fd587142ec2d9d18a948407e084933b5bb47bf
+MISC metadata.xml 246 SHA256 cffae0f8528ae844e9208e83c1d928cb5f3568fcc8c52bbcac99473590781dc4 SHA512 9131560c103b0fbf21dae354b0a00ac68bee1b326a3e38b3c18fa7396b4369c4c29a0e550344cb219fd48c94b2d1c21b185a329c992096c0693ea2bf24aa31b2 WHIRLPOOL 0ae9f7d52a9091128a041436c67461d68a9ba58c075ed56b57c7603def7408af44e2e4ad1ad25236394df90c32538044c8acef5340537e638b41664c3b5cf1f7
diff --git a/net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch b/net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch
new file mode 100644
index 000000000000..4ffcc3672fc7
--- /dev/null
+++ b/net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch
@@ -0,0 +1,213 @@
+diff -uNr meanwhile-1.0.2/src/channel.c meanwhile-1.0.2-r1/src/channel.c
+--- meanwhile-1.0.2/src/channel.c 2005-12-08 23:04:46.000000000 +0100
++++ meanwhile-1.0.2-r1/src/channel.c 2012-03-20 21:15:03.000000000 +0100
+@@ -19,8 +19,6 @@
+ */
+
+ #include <glib.h>
+-#include <glib/ghash.h>
+-#include <glib/glist.h>
+ #include <string.h>
+
+ #include "mw_channel.h"
+diff -uNr meanwhile-1.0.2/src/mw_debug.c meanwhile-1.0.2-r1/src/mw_debug.c
+--- meanwhile-1.0.2/src/mw_debug.c 2005-12-03 04:46:10.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_debug.c 2012-03-20 21:12:09.000000000 +0100
+@@ -19,7 +19,7 @@
+ */
+
+
+-#include <glib/gstring.h>
++#include <glib.h>
+
+ #include "mw_debug.h"
+
+diff -uNr meanwhile-1.0.2/src/mw_message.h meanwhile-1.0.2-r1/src/mw_message.h
+--- meanwhile-1.0.2/src/mw_message.h 2005-12-15 01:30:28.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_message.h 2012-03-20 21:06:28.000000000 +0100
+@@ -22,7 +22,7 @@
+ #define _MW_MESSAGE_H
+
+
+-#include <glib/glist.h>
++#include <glib.h>
+ #include "mw_common.h"
+
+
+diff -uNr meanwhile-1.0.2/src/mw_srvc_conf.h meanwhile-1.0.2-r1/src/mw_srvc_conf.h
+--- meanwhile-1.0.2/src/mw_srvc_conf.h 2005-12-15 01:30:28.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_srvc_conf.h 2012-03-20 21:08:01.000000000 +0100
+@@ -22,7 +22,7 @@
+ #define _MW_SRVC_CONF_H
+
+
+-#include <glib/glist.h>
++#include <glib.h>
+ #include "mw_common.h"
+
+
+diff -uNr meanwhile-1.0.2/src/mw_srvc_dir.h meanwhile-1.0.2-r1/src/mw_srvc_dir.h
+--- meanwhile-1.0.2/src/mw_srvc_dir.h 2005-12-15 01:30:28.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_srvc_dir.h 2012-03-20 21:08:23.000000000 +0100
+@@ -22,7 +22,6 @@
+
+
+ #include <glib.h>
+-#include <glib/glist.h>
+
+
+ #ifdef __cplusplus
+diff -uNr meanwhile-1.0.2/src/mw_srvc_place.h meanwhile-1.0.2-r1/src/mw_srvc_place.h
+--- meanwhile-1.0.2/src/mw_srvc_place.h 2005-12-15 01:30:28.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_srvc_place.h 2012-03-20 21:09:51.000000000 +0100
+@@ -22,7 +22,7 @@
+ #define _MW_SRVC_PLACE_H
+
+
+-#include <glib/glist.h>
++#include <glib.h>
+ #include "mw_common.h"
+
+
+diff -uNr meanwhile-1.0.2/src/mw_srvc_resolve.h meanwhile-1.0.2-r1/src/mw_srvc_resolve.h
+--- meanwhile-1.0.2/src/mw_srvc_resolve.h 2005-12-15 01:30:28.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_srvc_resolve.h 2012-03-20 21:10:54.000000000 +0100
+@@ -23,7 +23,6 @@
+
+
+ #include <glib.h>
+-#include <glib/glist.h>
+
+
+ #ifdef __cplusplus
+diff -uNr meanwhile-1.0.2/src/mw_st_list.h meanwhile-1.0.2-r1/src/mw_st_list.h
+--- meanwhile-1.0.2/src/mw_st_list.h 2005-12-15 01:30:28.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_st_list.h 2012-03-20 21:11:27.000000000 +0100
+@@ -30,7 +30,6 @@
+
+
+ #include <glib.h>
+-#include <glib/glist.h>
+ #include "mw_common.h"
+
+
+diff -uNr meanwhile-1.0.2/src/mw_util.h meanwhile-1.0.2-r1/src/mw_util.h
+--- meanwhile-1.0.2/src/mw_util.h 2004-12-28 21:41:26.000000000 +0100
++++ meanwhile-1.0.2-r1/src/mw_util.h 2012-03-20 21:06:54.000000000 +0100
+@@ -23,8 +23,6 @@
+
+
+ #include <glib.h>
+-#include <glib/ghash.h>
+-#include <glib/glist.h>
+
+
+ #define map_guint_new() \
+diff -uNr meanwhile-1.0.2/src/srvc_aware.c meanwhile-1.0.2-r1/src/srvc_aware.c
+--- meanwhile-1.0.2/src/srvc_aware.c 2005-12-08 23:02:11.000000000 +0100
++++ meanwhile-1.0.2-r1/src/srvc_aware.c 2012-03-20 21:07:22.000000000 +0100
+@@ -19,8 +19,6 @@
+ */
+
+ #include <glib.h>
+-#include <glib/ghash.h>
+-#include <glib/glist.h>
+ #include <string.h>
+
+ #include "mw_channel.h"
+diff -uNr meanwhile-1.0.2/src/srvc_conf.c meanwhile-1.0.2-r1/src/srvc_conf.c
+--- meanwhile-1.0.2/src/srvc_conf.c 2005-12-28 03:46:54.000000000 +0100
++++ meanwhile-1.0.2-r1/src/srvc_conf.c 2012-03-20 21:07:42.000000000 +0100
+@@ -19,8 +19,6 @@
+ */
+
+ #include <glib.h>
+-#include <glib/ghash.h>
+-#include <glib/glist.h>
+
+ #include <stdio.h>
+ #include <stdlib.h>
+diff -uNr meanwhile-1.0.2/src/srvc_dir.c meanwhile-1.0.2-r1/src/srvc_dir.c
+--- meanwhile-1.0.2/src/srvc_dir.c 2005-09-15 22:30:20.000000000 +0200
++++ meanwhile-1.0.2-r1/src/srvc_dir.c 2012-03-20 21:08:44.000000000 +0100
+@@ -18,7 +18,7 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+-#include <glib/ghash.h>
++#include <glib.h>
+
+ #include "mw_channel.h"
+ #include "mw_common.h"
+diff -uNr meanwhile-1.0.2/src/srvc_ft.c meanwhile-1.0.2-r1/src/srvc_ft.c
+--- meanwhile-1.0.2/src/srvc_ft.c 2005-09-15 22:30:37.000000000 +0200
++++ meanwhile-1.0.2-r1/src/srvc_ft.c 2012-03-20 21:09:05.000000000 +0100
+@@ -19,7 +19,7 @@
+ */
+
+
+-#include <glib/glist.h>
++#include <glib.h>
+
+ #include "mw_channel.h"
+ #include "mw_common.h"
+diff -uNr meanwhile-1.0.2/src/srvc_im.c meanwhile-1.0.2-r1/src/srvc_im.c
+--- meanwhile-1.0.2/src/srvc_im.c 2005-12-28 03:46:54.000000000 +0100
++++ meanwhile-1.0.2-r1/src/srvc_im.c 2012-03-20 21:09:31.000000000 +0100
+@@ -19,7 +19,6 @@
+ */
+
+ #include <glib.h>
+-#include <glib/glist.h>
+ #include <string.h>
+
+ #include "mw_channel.h"
+diff -uNr meanwhile-1.0.2/src/srvc_place.c meanwhile-1.0.2-r1/src/srvc_place.c
+--- meanwhile-1.0.2/src/srvc_place.c 2005-12-03 03:00:29.000000000 +0100
++++ meanwhile-1.0.2-r1/src/srvc_place.c 2012-03-20 21:10:05.000000000 +0100
+@@ -19,8 +19,7 @@
+ */
+
+ #include <glib.h>
+-#include <glib/ghash.h>
+-#include <glib/glist.h>
++
+
+ #include <stdio.h>
+ #include <stdlib.h>
+diff -uNr meanwhile-1.0.2/src/srvc_resolve.c meanwhile-1.0.2-r1/src/srvc_resolve.c
+--- meanwhile-1.0.2/src/srvc_resolve.c 2005-10-27 02:10:06.000000000 +0200
++++ meanwhile-1.0.2-r1/src/srvc_resolve.c 2012-03-20 21:10:21.000000000 +0100
+@@ -18,7 +18,7 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+-#include <glib/ghash.h>
++#include <glib.h>
+
+ #include "mw_channel.h"
+ #include "mw_common.h"
+diff -uNr meanwhile-1.0.2/src/srvc_store.c meanwhile-1.0.2-r1/src/srvc_store.c
+--- meanwhile-1.0.2/src/srvc_store.c 2005-11-19 02:52:42.000000000 +0100
++++ meanwhile-1.0.2-r1/src/srvc_store.c 2012-03-20 21:11:13.000000000 +0100
+@@ -18,7 +18,7 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+-#include <glib/glist.h>
++#include <glib.h>
+
+ #include "mw_channel.h"
+ #include "mw_debug.h"
+diff -uNr meanwhile-1.0.2/src/st_list.c meanwhile-1.0.2-r1/src/st_list.c
+--- meanwhile-1.0.2/src/st_list.c 2005-12-08 23:01:27.000000000 +0100
++++ meanwhile-1.0.2-r1/src/st_list.c 2012-03-20 21:11:44.000000000 +0100
+@@ -20,7 +20,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <glib/gstring.h>
++#include <glib.h>
+
+ #include "mw_debug.h"
+ #include "mw_util.h"
diff --git a/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch b/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch
new file mode 100644
index 000000000000..e01089eda91c
--- /dev/null
+++ b/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch
@@ -0,0 +1,42 @@
+# User Mikael Berthe <mikael.berthe@lilotux.net>
+# Date 1194208892 -3600
+Fix Awareness Snapshots with recent Sametime servers
+
+With recent Sametime servers there seem to be 2 bytes
+after the Snapshot Message Blocks.
+This patch tries to use the end of block offset provided
+by the server.
+
+diff -r be8d8f1d3ebc src/common.c
+--- a/src/common.c Sun Nov 04 18:48:00 2007 +0100
++++ b/src/common.c Tue Nov 06 11:46:26 2007 +0100
+@@ -878,23 +878,24 @@ gboolean mwAwareIdBlock_equal(const stru
+ /* 8.4.2.4 Snapshot */
+
+ void mwAwareSnapshot_get(struct mwGetBuffer *b, struct mwAwareSnapshot *idb) {
+- guint32 junk;
+- char *empty = NULL;
++ guint32 end_of_block;
+
+ g_return_if_fail(b != NULL);
+ g_return_if_fail(idb != NULL);
+
+- guint32_get(b, &junk);
++ guint32_get(b, &end_of_block);
+ mwAwareIdBlock_get(b, &idb->id);
+ mwString_get(b, &idb->group);
+ gboolean_get(b, &idb->online);
+-
+- g_free(empty);
+
+ if(idb->online) {
+ mwString_get(b, &idb->alt_id);
+ mwUserStatus_get(b, &idb->status);
+ mwString_get(b, &idb->name);
++ }
++
++ if( b->ptr < b->buf + end_of_block ) {
++ mwGetBuffer_advance(b, b->buf + end_of_block - b->ptr);
+ }
+ }
+
diff --git a/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild b/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..6bdfd3ff2ca8
--- /dev/null
+++ b/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils flag-o-matic
+
+DESCRIPTION="Meanwhile (Sametime protocol) library"
+HOMEPAGE="http://meanwhile.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+IUSE="doc debug"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
+
+RDEPEND=">=dev-libs/glib-2:2"
+
+DEPEND="${RDEPEND}
+ dev-libs/gmp
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+src_prepare(){
+ epatch "${FILESDIR}/${P}-presence.patch" #239144
+ epatch "${FILESDIR}/${P}-glib2.31.patch" #409081
+
+ #241298
+ sed -i -e "/sampledir/ s:-doc::" samples/Makefile.in || die
+}
+
+src_configure() {
+ append-flags "-fno-tree-vrp"
+ local myconf
+ use doc || myconf="${myconf} --enable-doxygen=no"
+
+ econf ${myconf} \
+ --disable-static \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/net-libs/meanwhile/metadata.xml b/net-libs/meanwhile/metadata.xml
new file mode 100644
index 000000000000..c2cd3fe5ed05
--- /dev/null
+++ b/net-libs/meanwhile/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">meanwhile</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/metadata.xml b/net-libs/metadata.xml
new file mode 100644
index 000000000000..80be98ec6ff5
--- /dev/null
+++ b/net-libs/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The net-libs category contains libraries that are network-related.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie net-libs enthält Bibliotheken zur Netzwerkprogrammierung.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría net-libs contiene librerías relacionadas con las redes.
+ </longdescription>
+ <longdescription lang="ja">
+ net-libsカテゴリーにはネットワーク関連のライブラリが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De net-libs categorie bevat bibliotheken voor netwerk-gebruik.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm net-libs chứa các thư viện về mạng.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria net-libs contiene librerie per le reti.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria net-libs contém bibliotecas relacionadas a redes.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria net-libs zawiera związane z siecią biblioteki.
+ </longdescription>
+</catmetadata>
+
diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest
new file mode 100644
index 000000000000..95ee8aae7415
--- /dev/null
+++ b/net-libs/miniupnpc/Manifest
@@ -0,0 +1,11 @@
+DIST miniupnpc-1.8.tar.gz 70624 SHA256 bc5f73c7b0056252c1888a80e6075787a1e1e9112b808f863a245483ff79859c SHA512 8eedac9ad473fc952ca8896fe534d6da6b1b234e8b6f35f721394d4c71aca84ed287ca6c4f0455b50d97a45e4cd34e27d99a6813386e0864781364aa607e13d4 WHIRLPOOL 5b76ccbb5ed7daa9bb0d481b424b7c31a5f6dc85c5c812ba10175a29aefc0d3924f3db2aa8c3529d1241be59d67d1d4c702d27aad2de8c8a07fecf3857d73169
+DIST miniupnpc-1.9.20151008.tar.gz 83538 SHA256 e444ac3b587ce82709c4d0cfca1fe71f44f9fc433e9f946b12b9e1bfe667a633 SHA512 b13e6044184f47d0f9e78c4c97d2887ab763121b2b21c86652bf3ea1b05335cfbcfd91eecb8d1dcfb5530f2528e6cf3e9c49c742d5e771dba68a774d2c2ad4ca WHIRLPOOL 839b531eb6cae7ada0bbaa0c4230a1f6889f6a288a114262bf6e27aa27638800636127fea3066427fb030e8f449794681d2bffeb8e2d30876d8ef9e4a3ade3cc
+DIST miniupnpc-2.0.20161216.tar.gz 85780 SHA256 01e14408d6fc628de9afabc4417b84adeaba4c0ec517e7b8e278cb2993dafd3e SHA512 ed1413fa6cd8eeb0d01e595e5470b255b1119a9bcf28da17765a4a3f0eb2b514409a9bfe9cd041274761b61441389c290754055ff07d599bb653a4efe47e920f WHIRLPOOL fde2dc16f5cfd6e7d066ec49646ac79b6d262988afe928d80aaf47f6b7f868a272ac46d3136c56ed8373e800d1538fe4dd6c34255080e2bd01cc0cb8b56e37fc
+DIST miniupnpc-2.0.20170509.tar.gz 86055 SHA256 d3c368627f5cdfb66d3ebd64ca39ba54d6ff14a61966dbecb8dd296b7039f16a SHA512 71ec052ef6c8ad0d529e467ddae6eae19a93b9816174eeac753aa90e036cc2f00cf7e8d1cdb188ef8280849a988fe2995e37b63f8e2a361e021c1d1b306bff6f WHIRLPOOL 86c1a7a1d8800dbc0d1eccad66a5cb61a59af38989ca79c3b8df926ed12d9c7760d0b5d0e59d5d3190b45c7801a76c3e209f156836277992131c587b97c1a48c
+EBUILD miniupnpc-1.8.ebuild 1084 SHA256 ae53ca70e3b8d415d405a123f071c02b0fbdb149ba28b230d0f044c47f1ec4ac SHA512 d93e0bc6286ddc99141a69ee2bfc1f8a7b14adc83a9f8151de7f052cc1ddca3fde1af489e7a6d75558ca9a2877965a59755ef202ee515582b0999c253d5c9f95 WHIRLPOOL a1a9cc96372f759b5791edce8e1a5af2dd9fa60d3cf38f65358c8a5838663e1a8d5cf12a48fdfca2da9d45ad82f86ef9eb4a15fb8f13386ae290ed6ef82c02c9
+EBUILD miniupnpc-1.9.20151008.ebuild 1394 SHA256 67ce745d5526412346cf2d59c62427ded064ff933bb8d3c079a0018b48bacb3a SHA512 084b7d43fed8bdf81b5e05872e9e3b39091d6a401bb3e69575e3b62fb0dfa5d51de9aa9f82efaad7b726385dd79d10278535df44adcdff0831006607dc91ea6a WHIRLPOOL 67dc28fd574000f75998f9a81733bbbb9093bc4ed2297fc9daf53c604911a3acbf24d71cac7e2f048fff8ecda46c95df2aaa63256e1d6d86717b385b33e781b3
+EBUILD miniupnpc-2.0.20161216.ebuild 1266 SHA256 e3847f78abc25254eea36c0ca5bb97ebd05b2a9f5fc71be66d88c1b851a584e8 SHA512 5523f1337949a3ad51e9853a434bd8eae1e37b2bde0a0fad0a4fb9e930c035922389c31e78a265112d23ae06d4f3ab70cff7bf46b65a782cc520f790e8ecb07f WHIRLPOOL 8479240c6c5689e67fc469768a574aa978ce8c418e0be36030dd543d39b8aa7aac6f92cf8a965f423d816de9336b6e1ec7f67465327c0997607bf97a67a7cccc
+EBUILD miniupnpc-2.0.20170509.ebuild 1267 SHA256 175c924a6ddfa7712c46da07e9febc1b2a5cb28b0305ae581d1f55c4f8cec71b SHA512 777fc687631b6ae71ca8ebc38470aa5cb5014e9adac2062a8df028f5e412bb4faddb8ddcc5d79a209c49b263c58a67d2d8ae184d94a24699afcf6d4468c6663d WHIRLPOOL 2fe581e2ccae26fa53058d5ce7a2db334db95c3b2aeb6873df643f85e828e454873e54ef95932cd40d6bff1632d96a16273cd036061f06e2f35dc310ccc605d6
+MISC ChangeLog 5006 SHA256 b2966562c59615a6c8d7673f1467b53db8f81ac8b60218eef83384d0f057bdde SHA512 a929566fe2d983c98cf9a3b5fcbe7cbc108356068fe3fa0b6ec0de45c380f8cf69d6fe276f9dbbc427abeaa62151394c15f7125fcb656b81a926e5b37dc66325 WHIRLPOOL fdba3a93ae4e78ed694819729140cd64391f55c519eea3dfcd4d07db3e3e0ec008ccc311315c18a93941c7a84b83f82feadee98efe2727f481bf428327f8f68c
+MISC ChangeLog-2015 6514 SHA256 bf24a161ef7dba7be7ae7511c70714cd029bd6026853bc61f8688c64095a3240 SHA512 69e8c332b1bef1a076dee904fbe65647a5031387e6bb70b22e0b2999ec9a31a39f0d2a031ded5af7379af50671af36bf7dc94be8e81f0e018004e546c82466ce WHIRLPOOL fac0f5730c93993dafd16ad3b8d48fd51a1ca7ee94b52ebb8de127c4c3dd2880efb4dddad5d8a08e8dd4c59908f2aa3d319cf62ba4dc986ee3877c243a5bc334
+MISC metadata.xml 243 SHA256 a90d5777b80d7ed5f0f322ff9cafae7a96dd513f4af28b60e36c060305157906 SHA512 ded2bb7e056d9081e11b0470aa2874fbe9b5e63f0178bec611291f639763a9bd85a076dbc526e01df1403dea4d0eb28913addb346b676084e690e063b68eca28 WHIRLPOOL 10702c61e2ae8d5ddb862621065c0ed6b1d05b4a4ff0a30407d29edca19629cead238e10a9f1889f4c41f64d7ef88f0031f746a2e5d9502ca7b088c2039f5751
diff --git a/net-libs/miniupnpc/metadata.xml b/net-libs/miniupnpc/metadata.xml
new file mode 100644
index 000000000000..998965a402cd
--- /dev/null
+++ b/net-libs/miniupnpc/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 type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/miniupnpc/miniupnpc-1.8.ebuild b/net-libs/miniupnpc/miniupnpc-1.8.ebuild
new file mode 100644
index 000000000000..5161bf8264b9
--- /dev/null
+++ b/net-libs/miniupnpc/miniupnpc-1.8.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="UPnP client library and a simple UPnP client"
+HOMEPAGE="http://miniupnp.free.fr/"
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="kernel_linux static-libs"
+
+# Tests hang trying to kill server, bug #409349
+RESTRICT="test"
+
+RDEPEND=""
+DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
+
+src_prepare() {
+ epatch_user
+
+ if ! use static-libs; then
+ sed -i \
+ -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
+ -e '/$(INSTALL) -m 644 $(LIBRARY) $(INSTALLDIRLIB)/d' \
+ Makefile || die
+ fi
+}
+
+# Upstream cmake causes more trouble than it fixes,
+# so we'll just stay with the Makefile for now.
+
+src_compile() {
+ tc-export CC AR
+ emake upnpc-shared $(use static-libs && echo upnpc-static)
+}
+
+src_install() {
+ emake \
+ PREFIX="${D}" \
+ INSTALLDIRLIB="${D}usr/$(get_libdir)" \
+ install
+
+ dodoc README Changelog.txt
+}
diff --git a/net-libs/miniupnpc/miniupnpc-1.9.20151008.ebuild b/net-libs/miniupnpc/miniupnpc-1.9.20151008.ebuild
new file mode 100644
index 000000000000..58d094ed95f9
--- /dev/null
+++ b/net-libs/miniupnpc/miniupnpc-1.9.20151008.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="UPnP client library and a simple UPnP client"
+HOMEPAGE="http://miniupnp.free.fr/"
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/14"
+KEYWORDS="amd64 arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="ipv6 kernel_linux static-libs"
+
+RDEPEND=""
+DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
+
+src_prepare() {
+ epatch_user
+
+ # These bins are not installed, upnpc-static requires building static lib
+ # Reduce APIVERSION used to build SONAME since last API change was
+ # backwards compatible to surprise of all the universe.
+ sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' \
+ -e '/APIVERSION/s:15:14:' Makefile || die
+
+ if ! use static-libs; then
+ sed -i \
+ -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
+ -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' \
+ Makefile || die
+ fi
+}
+
+# Upstream cmake causes more trouble than it fixes,
+# so we'll just stay with the Makefile for now.
+
+src_compile() {
+ tc-export CC AR
+ emake upnpc-shared $(usex static-libs upnpc-static '')
+}
+
+src_test() {
+ emake -j1 HAVE_IPV6=$(usex ipv6) check
+}
+
+src_install() {
+ emake \
+ PREFIX="${D}" \
+ INSTALLDIRLIB="${D}usr/$(get_libdir)" \
+ install
+
+ dodoc README Changelog.txt
+}
diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild b/net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild
new file mode 100644
index 000000000000..1d4b221f9b55
--- /dev/null
+++ b/net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="UPnP client library and a simple UPnP client"
+HOMEPAGE="http://miniupnp.free.fr/"
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/16"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="ipv6 kernel_linux static-libs"
+
+RDEPEND=""
+DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
+
+src_prepare() {
+ eapply_user
+
+ # These bins are not installed, upnpc-static requires building static lib
+ sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die
+
+ if ! use static-libs; then
+ sed -i \
+ -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
+ -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' \
+ Makefile || die
+ fi
+}
+
+# Upstream cmake causes more trouble than it fixes,
+# so we'll just stay with the Makefile for now.
+
+src_compile() {
+ tc-export CC AR
+ emake upnpc-shared $(usex static-libs upnpc-static '')
+}
+
+src_test() {
+ emake -j1 HAVE_IPV6=$(usex ipv6) check
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \
+ install
+
+ dodoc README Changelog.txt
+}
diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild b/net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild
new file mode 100644
index 000000000000..0386b63326bb
--- /dev/null
+++ b/net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="UPnP client library and a simple UPnP client"
+HOMEPAGE="http://miniupnp.free.fr/"
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/16"
+KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="ipv6 kernel_linux static-libs"
+
+RDEPEND=""
+DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
+
+src_prepare() {
+ eapply_user
+
+ # These bins are not installed, upnpc-static requires building static lib
+ sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die
+
+ if ! use static-libs; then
+ sed -i \
+ -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
+ -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' \
+ Makefile || die
+ fi
+}
+
+# Upstream cmake causes more trouble than it fixes,
+# so we'll just stay with the Makefile for now.
+
+src_compile() {
+ tc-export CC AR
+ emake upnpc-shared $(usex static-libs upnpc-static '')
+}
+
+src_test() {
+ emake -j1 HAVE_IPV6=$(usex ipv6) check
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \
+ install
+
+ dodoc README Changelog.txt
+}
diff --git a/net-libs/nDPI/Manifest b/net-libs/nDPI/Manifest
new file mode 100644
index 000000000000..fac37c4a2bc1
--- /dev/null
+++ b/net-libs/nDPI/Manifest
@@ -0,0 +1,3 @@
+DIST nDPI-2.0.tar.gz 19280901 SHA256 a42a60ebd64bc8606f780204222893027f6dce0e3b460d7be655e5e065f5f3fa SHA512 c8dac1990ff49fc04ee321068d8fc722528c6be0543af2d0bda77936eff12713c36d5abd3fd2472121f2e322e99ba8e57facca813f7b012240c61e16c1a6cd44 WHIRLPOOL a19c55ae82b99d7a7b4e79a9327832dcb77c8cf62e18a2ff875399580d6157e74358d929025be5ca11b63a969f1cc950b222959b092026286adfbc35fb7c5194
+EBUILD nDPI-2.0.ebuild 470 SHA256 b478e6ddb31c0ce00b16a30819b7310b94f74f25368129a86fba99b19e009140 SHA512 1c00cd3c03d09c3cd8c9d0697a256cd2cfa86067c1494840aa1cb53a524f7bc20fa2766d0310e06596c02d7cff97a6d8dcad8a8fcfa885df29d49c3cd3969b7f WHIRLPOOL 858a0c898b5a0eefe8467fbb1643318f2fd9df9c39bd5e55ec4e25d681531dbac30db49216e13844a7414009da41e92bb08d2d74be32be881d6b3a248309e3f2
+MISC metadata.xml 297 SHA256 b4c003997bc1ffe5f90ee46d9a04fd12320ecd3b75ecfcf00513bbd4e876d03a SHA512 5f765ad3cc06c790fb16873bc7a759ebb0a432cde847b4e7b8e9dc0f2049441c44d90d54caf007e11deaeca4282ba213f927951060a0ec62bb1836a9cb94e22a WHIRLPOOL 9b163f7b6a619339fa565bf36b2fbc993c56ea05965c1428e2670227b392519c034b0f0bd553dc577b7fb7f0663a39de796a77e12964d273dcb2c9449d9eeb15
diff --git a/net-libs/nDPI/metadata.xml b/net-libs/nDPI/metadata.xml
new file mode 100644
index 000000000000..7224cca2bede
--- /dev/null
+++ b/net-libs/nDPI/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 type="person">
+ <email>slis@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ntop/nDPI</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/nDPI/nDPI-2.0.ebuild b/net-libs/nDPI/nDPI-2.0.ebuild
new file mode 100644
index 000000000000..7d4217d49afe
--- /dev/null
+++ b/net-libs/nDPI/nDPI-2.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit"
+HOMEPAGE="http://www.ntop.org/"
+SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/json-c
+ net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/net-libs/nacl/Manifest b/net-libs/nacl/Manifest
new file mode 100644
index 000000000000..f0f181546e3c
--- /dev/null
+++ b/net-libs/nacl/Manifest
@@ -0,0 +1,5 @@
+DIST nacl-20110221.tar.bz2 163415 SHA256 4f277f89735c8b0b8a6bbd043b3efb3fa1cc68a9a5da6a076507d067fc3b3bf8 SHA512 4c031ceffe6a28dc74b46ac003d485531f78de467c802df73c8b22ca53644dabb7d2e3080b7bdd6583f0d07ad76b6d95bc0ffdce319ca2f80ee041e6fe618656 WHIRLPOOL 6fd80c68cf7c644189aba0e2cc72fd382149fc10fc69a208eaf5d51b45c3fbcc9a4a0284bf6dcfd05d34f1ef77ef7f3e735c68ce38dc3c4ca9f0412ac825a98a
+EBUILD nacl-0_p20110221.ebuild 1904 SHA256 a23f00f7281782f2126469c91389dce5a90e0594fefdbbc7d60effa66fa92c5b SHA512 ff11b6737ee7e071fc7a625ec5ec69a2d5156fcf87b947d471e0fd60051e8e1dfc51c21434a8a8cdc6f39d449ac8bdfaa63dca0fff961a79e3dcc6e82cc600af WHIRLPOOL cd8cbbea835d035fa4b16b00d3256031d9da42ff46f8d2e95219850e7160e1424d1bb6ad5a56aa0cbc077465460f5881b5be1910d118e7e1f13bacb248f6d279
+MISC ChangeLog 2179 SHA256 dbf30f1a585a7854d9466aa5bf6c05a7d4de8d81bd31d378bbfc62d98d1bf425 SHA512 22fb234b55b1c75dcfb2ded62fddebac45a8953a7bdefa2a67f179591b27e3dd322074088fc6e463e6a4a9a628a539789379ba87f542e8c22a5a5bd70d2f72c7 WHIRLPOOL 75b757b8ed0fb92cf945cedb576ea915c4f2ace832921a5710043b0f7fd2bf2cc917dc989aedb396f9d1ef4a384bd1d65fac4a881b1f8c99b5ad7758c8d34bff
+MISC ChangeLog-2015 488 SHA256 14f11e285d82c9944b51b936c674e0e452fb336c8858b1388952287b2fac8da6 SHA512 b9a95c75431d8fcd297831a2a155c579c202ff8e4c5dfd346fd2fdf2f4c767c5b9bc0368202fef2f30b2e3ad7146bde5ae0ca091d5c36c8163f1cffc0f50d1bc WHIRLPOOL 5ddc5952f5c9bccbd4d40a394d156bc1395bf4707f760087386a347d0bbc1d09b76fe819f4f707e20c3c6d79fba72b193f17c498e937987e76e233fc772792f5
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/net-libs/nacl/metadata.xml b/net-libs/nacl/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/net-libs/nacl/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 type="person">
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/nacl/nacl-0_p20110221.ebuild b/net-libs/nacl/nacl-0_p20110221.ebuild
new file mode 100644
index 000000000000..55bcb6fc9de6
--- /dev/null
+++ b/net-libs/nacl/nacl-0_p20110221.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit flag-o-matic toolchain-funcs multilib-minimal
+
+DESCRIPTION="high-speed software library for network communication, encryption, decryption, signatures"
+HOMEPAGE="http://nacl.cr.yp.to/"
+SRC_URI="http://hyperelliptic.org/nacl/${P/0_p}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P/0_p}
+
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/nacl/cpucycles.h
+ /usr/include/nacl/crypto_core_hsalsa20.h
+ /usr/include/nacl/crypto_hashblocks_sha256.h
+ /usr/include/nacl/crypto_hashblocks_sha512.h
+ /usr/include/nacl/crypto_onetimeauth_poly1305.h
+ /usr/include/nacl/crypto_scalarmult_curve25519.h
+ /usr/include/nacl/crypto_stream_aes128ctr.h
+ /usr/include/nacl/crypto_stream_salsa20.h
+ /usr/include/nacl/crypto_stream_salsa2012.h
+ /usr/include/nacl/crypto_stream_salsa208.h )
+
+src_prepare() {
+ #drop useless path elements, verbose output, predictable include dir
+ sed -e '/^export/d' \
+ -e '/^PATH/d' \
+ -e '/^LD_LIBRARY_PATH/d' \
+ -e '/^DYLD_LIBRARY_PATH/d' \
+ -e '/^exec >/d' \
+ -e '/^shorthostname/s:=.*:=gentoo:' \
+ -i do || die
+ sed -e 's:=== `date` === ::' \
+ -i $(find . -name do) || die
+ rm -r tests
+
+ multilib_copy_sources
+
+ filter-flags "-O*"
+ append-cflags -O3 -fomit-frame-pointer -funroll-loops
+ append-cxxflags -O3 -fomit-frame-pointer -funroll-loops
+}
+
+multilib_src_configure() {
+ echo "$(tc-getCC) ${CFLAGS}" > okcompilers/c
+ echo "$(tc-getCXX) ${CXXFLAGS}" > okcompilers/cpp
+ echo "$(tc-getAR)" > okcompilers/archivers
+
+ sed -e "1aexport PATH=\"${BUILD_DIR}/build/gentoo/bin:${PATH}\"" \
+ -i do || die
+}
+
+multilib_src_compile() {
+ ./do || die
+}
+
+multilib_src_install() {
+ insinto /usr/$(get_libdir)/${PN}
+ doins build/gentoo/lib/*/*
+
+ insinto /usr/include/${PN}
+ doins build/gentoo/include/*/*
+}
diff --git a/net-libs/nativebiginteger/Manifest b/net-libs/nativebiginteger/Manifest
new file mode 100644
index 000000000000..d490a0a4e7f6
--- /dev/null
+++ b/net-libs/nativebiginteger/Manifest
@@ -0,0 +1,15 @@
+AUX nativebiginteger-0.6.4-asmfix.patch 586 SHA256 2ad29016057f3ea18596bff1eb47bc1ef6b4cc129d1f3b55d134f2717b8e631a SHA512 be49f71dadc0b371567e745f85966ee0088b05690506f155abf0f7b991527dbd30cc93ff1997ec80e7cfc06dd622b3ccaea1a8c6cd81d058866d3ed111ee3695 WHIRLPOOL 3db31c5e475983bc4be30aaad4124b6ff7a21482066826f4c44ab47dede2a3f0a118e0f1cc9c5b10e13d5b0ca45021c5e809dfa020141246d5fbf88fb7ef6f71
+AUX nativebiginteger-0.6.4-ldflags.patch 967 SHA256 9e30b7ef2a4c8e55ce9dcacdc4d19ed76e8249f4af540094543f3aae3e27838a SHA512 4e473de37d56cb073fda0f0139525f217f168eb4ef2e09f9c443d003b8651c3e3eb1019842ed41a6cc7937ffcc9ee1f068e05e75d5117ebc28536d40c2b5ecb8 WHIRLPOOL 40370d1165ba21f85f13757dc09e0abfe0b3a7987140f7d73f09eabf341b498b1b37304aadf897c1f8bf2b32cd1eb18c429d5c9c3b0fe874ea201c8346dbe8ea
+AUX nativebiginteger-0.8.7-asmfix.patch 590 SHA256 f21f798dfc4bf30e717b5a113d9564d9a1ce93d6460e9d77ea452c2869f3ece1 SHA512 0efbf7f8e0767e2636bea21fd5020860bd6dc86bc6bb562b50bf40bd8ab0f83f9219fb031e93eedfa6d7f54027e5fdeb88aa64c283861963d1fd34e3dd4bbd05 WHIRLPOOL 894b9d7dc2e27852e2e1e3da6d7e9a03d3073b94c93013a4091c254a2d91e93c2f2874422884f2c4c295bd7e3af9201a3220dc593a465d85a76eb29235841f9a
+AUX nativebiginteger-0.8.7-build-system.patch 907 SHA256 fb22532815cbef13e1e2639d9dd2f16018d9663370f22aee073b6fb0868f87d6 SHA512 13b7e8d2764ee0b86924854ee99a0c220f9b213d868460a39ad448e510cf33d4d747bfebb0b7273d70ca1cb15151324fea446431d9301973c0f2a0bd381a5dc3 WHIRLPOOL 7247382c8d9ca27a244834c240529533162cfe19a7b7050bdb4b6dcdf86dabd890bb5583ad8c0934c4220bf39a81dc5551e0a793ed7508fa8b82f09f77c10242
+AUX nativebiginteger-0.8.7-debug-all.patch 1215 SHA256 a8ffe1ae7497bda2d10c01f35845bc31689b727c36af39ea73edc8614cc26a18 SHA512 0e9abda1d39a9b0a7c24f13bcc909d15940dd81f2d6b87b4ae39227c0191629ed7a3cfd6be50e3692423d91e0b2931324ba384e736c1c4eaec656df8ee0da9f2 WHIRLPOOL 16cf5f1b9fda626959c03dfcb8d869150e1f5840c37182065c977a7299dfd097913fb064972c08a2d6127cb4c36e4c1fd80dbf108ac188a321db0f4c4e8cbc31
+AUX nativebiginteger-0.8.7-jcpuid-build-system.patch 761 SHA256 62fe230a522df9371427ffa04805279bb1bf1802b6dece013b2d8762bbf7a31d SHA512 9c2f0a458d4a240fc9998d28995a14742aa63873bb05479b296122a2a4f7f68caafe4df315f5ed709b4e1b92a12be22700cfe1792e7ad186feaf7cc1f97b6d86 WHIRLPOOL 0c3cfde88629685d4ef74761412ba823ea763a440c3dde69f3c143678cde34118ff289b85ec0d7a0bf64100248cdd4276cfcf575c09ba13a9b4c858ccc7d7b42
+AUX nativebiginteger-0.8.7-non-android-warnings.patch 533 SHA256 a23ed96c74fd35b45d3dd89c47a348cc5c992857a582e29506894677f4aa2922 SHA512 e9844d0c7fc93ed9ae9a63eba2eb737f9955c37e26e2c27e9c8ea71e098a3242d7ccc26319cfce361003b90f9831da357004567e398f4cecca2d838dc75632d8 WHIRLPOOL 66fba16af59210e19f286573538c34adb17b1228aeb6f53138a221d5754c007482487be3d8120241ac9b4184fb42029f17956e592ed1f4074ac4b830e1a3ce15
+DIST i2psource_0.8.7.tar.bz2 18473515 SHA256 31acef3fcd1a5839edc3b931f108944222c833d218bd427fe89a57b4acd92ece SHA512 32b4eb4bf8bc7d6bb692b3ecd6b0a34c4d3d7c94b0d09a4ff330151979ccdaca9a6c88fef9b7e7965a1bba8ef54dbb710d89e0bb19265ee177ce547ff50ca969 WHIRLPOOL 677e4fe07d659c8fbfcf5f81aae21e0b9d32d45f7885b628544033746db35c74f0bb37d76032565b0539e6e790b1445788f0a06942db9154bd77d65834967271
+DIST nativebiginteger-0.6.4.tar.bz2 10248 SHA256 ef36fb57c1d885164f00b3e5d239c22349a530fa20df652efc5cb1f1ccea2c32 SHA512 626f036fbde09e22f44b7d2fdf64c0e0ce8a86aabc3d68512f0bdd83fc909404a1a50b76633abaa3a4db69dcb1e913f6d5665812595eecadae6a7be24646e0cf WHIRLPOOL 7fdfa1cd561d8978c6f987b417111d4c6f76d80301d9ee56e219607f0be7233398f1adc2fa5d2df6c386b92edac62ef133408e4382f435d083d7270c4835a8fb
+EBUILD nativebiginteger-0.6.4-r3.ebuild 735 SHA256 c47e307d54f108d30aab5ef109924a37281dced04881e063a61a647590da8b7d SHA512 79bcd854a99252595891989a79728552ed96b8023a2501e7c894da13b3133faccaac7fa32117f7b36f14ff2ecdbeadaea6dac069a9739697aa5730294af7fb8a WHIRLPOOL 1df2ac7b1908b2c0dac503f3995b21e1847f83fc7d32b42052d550847c9dfa1cc4efbc9088655e4c727376c15b13a8699e76763bcaec91af00ca071ddf56b409
+EBUILD nativebiginteger-0.6.4.ebuild 656 SHA256 9b6b66da9bd26ed56b1578d8104548b66cc28537a319207b16702e93d3e64973 SHA512 cff056c3142a32c5310d5a32bdbeef02965e73a01c91d4675cd84e4689df3bd8741fd67ee6bb40fcf9c55df7647691a6bd7fd0458fb53376b46373151cbf43af WHIRLPOOL cec0dc5352395a977c18590c5eaebe96c645cf48ad18b0bd3810aa594bfb57c79182c1db90e36518a82a5a5617033bbc47ff4a4a534a00834101bf2bc9f06dcf
+EBUILD nativebiginteger-0.8.7.ebuild 1762 SHA256 258d0849e7d7fc884e761029661716895b103a5501955ba3f59a5f178e2f83bf SHA512 ac3db2f92711d7f191556ddba481d426ba713da911bebe1a7ba96f66a42bf4718b12ed3e9529f9fd32564459e5c0b76f0e66410e8f9cae371b6b1f6abdee30f3 WHIRLPOOL f48e693456582b8eccc4bac5282e2c978c0a1bc082860f4f1039eb95cb2c112dc4b00e9ed4007f121ae5080a58d9f7e8908e2875a550b0ee55dc67a9a505271e
+MISC ChangeLog 3103 SHA256 008222a8d417db89c36e4db2f1b07caeed9c725564d6eb429ec3b170d7415793 SHA512 8e72beb033f4e514811cebd8c03ed83a06da674701d4d448abbb80a21e47d676073d6ebec60d4f6a9f582d86398c0902c78ed7ac341c28186bfa1656a8fa3fc3 WHIRLPOOL f184fd6ee5b58debb38121bbe0c2f217fc29dba8810fed2f47d1cd5674028b4b7f32f3083a11871394fd20d5067a8e037fef87b1c236c70e345aab7b106c1180
+MISC ChangeLog-2015 2211 SHA256 8c2efa8c50a92a3ed9cc254f0f2a9ed9505bd46bdaa85bf0ce757dfbc5101c19 SHA512 f5df66f2fb1f0034b58a38da93004bb8401d64acd83845b493d03ba6ece87140b2c8d652378fed40484cb8fdd6375ca09f1a63c2c2b443a9ddaeb007ddffe8ce WHIRLPOOL b20cd66eb71137171aefb038ad8c4957442b94f9a718518b1a79d882548534ee20471777cca0c478641ef35df665a0fd7852e77e4d0d2ef86c5e8b527966eac3
+MISC metadata.xml 256 SHA256 b1fcbeb75e9059c70100ccf278d492d9d2678ba93411e576ae760b3f308675cb SHA512 26e53ead25d8fef36a3759518b200c6a4ea0fc24d2c1f054ed85772cba5644118b231438d723ca25c22a55ed2fcf54e2c467279c9f3b49b6c1ced9997e3f098c WHIRLPOOL 25a36b6972f88def1dae7e912650b8fe3a0383d551c4a57967e1b8f80cde478e680e30c034f0481366f2da1d38a10e092ab4392902fa1b7f93cd801bb3f46dfa
diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-asmfix.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-asmfix.patch
new file mode 100644
index 000000000000..04cfa599413a
--- /dev/null
+++ b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-asmfix.patch
@@ -0,0 +1,31 @@
+--- jcpuid/src/jcpuid.c 2008-10-06 09:44:53.000000000 -0400
++++ jcpuid/src/jcpuid.c.new2 2010-12-27 09:41:53.000000000 -0500
+@@ -19,6 +19,7 @@
+ mov d, edx
+ }
+ #else
++ #ifdef _LP64
+ //Use GCC assembler notation
+ asm
+ (
+@@ -29,6 +30,20 @@
+ "=d"(d)
+ :"a"(iFunction)
+ );
++ #elif defined(__i386__)
++ asm
++ (
++ "pushl %%ebx\n\t"
++ "cpuid\n\t"
++ "movl %%ebx, %%edi\n\t"
++ "popl %%ebx"
++ : "=a" (a),
++ "=D" (b),
++ "=c" (c),
++ "=d" (d)
++ :"a"(iFunction)
++ );
++ #endif
+ #endif
+ return (*env)->NewObject(env, clsResult,constructor,a,b,c,d);
+ }
diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-ldflags.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-ldflags.patch
new file mode 100644
index 000000000000..5d3c84cd641e
--- /dev/null
+++ b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-ldflags.patch
@@ -0,0 +1,17 @@
+--- Makefile 2008-11-06 21:09:54.000000000 +0100
++++ Makefile.new 2010-12-27 14:26:45.000000000 +0100
+@@ -1,11 +1,11 @@
+ libjbigi:
+ cd jbigi && rm -f jbigi.o libjbigi.so && $(CC) $(CFLAGS) -c -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
+- jbigi/src/jbigi.c && $(CC) -shared -Wl,-soname,libjbigi.so -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \
+- -o libjbigi.so jbigi.o
++ jbigi/src/jbigi.c && $(CC) ${LDFLAGS} -shared -Wl,-soname,libjbigi.so jbigi.o -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \
++ -o libjbigi.so
+
+
+ libjcpuid:
+- cd jcpuid && $(CC) $(CFLAGS) -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
++ cd jcpuid && $(CC) $(CFLAGS) ${LDFLAGS} -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
+ src/*.c -o libjcpuid-x86-linux.so
+
+ install:
diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-asmfix.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-asmfix.patch
new file mode 100644
index 000000000000..3443a91c288b
--- /dev/null
+++ b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-asmfix.patch
@@ -0,0 +1,31 @@
+--- c/jcpuid/src/jcpuid.c 2008-10-06 09:44:53.000000000 -0400
++++ c/jcpuid/src/jcpuid.c.new2 2010-12-27 09:41:53.000000000 -0500
+@@ -19,6 +19,7 @@
+ mov d, edx
+ }
+ #else
++ #ifdef _LP64
+ //Use GCC assembler notation
+ asm
+ (
+@@ -29,6 +30,20 @@
+ "=d"(d)
+ :"a"(iFunction)
+ );
++ #elif defined(__i386__)
++ asm
++ (
++ "pushl %%ebx\n\t"
++ "cpuid\n\t"
++ "movl %%ebx, %%edi\n\t"
++ "popl %%ebx"
++ : "=a" (a),
++ "=D" (b),
++ "=c" (c),
++ "=d" (d)
++ :"a"(iFunction)
++ );
++ #endif
+ #endif
+ return (*env)->NewObject(env, clsResult,constructor,a,b,c,d);
+ }
diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-build-system.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-build-system.patch
new file mode 100644
index 000000000000..ea298b5d0358
--- /dev/null
+++ b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-build-system.patch
@@ -0,0 +1,22 @@
+--- i2p-0.8.7/core/c/jbigi/build_jbigi.sh.orig 2011-07-29 11:52:43.000000000 +0200
++++ i2p-0.8.7/core/c/jbigi/build_jbigi.sh 2011-07-29 11:53:43.000000000 +0200
+@@ -3,8 +3,8 @@
+ # When executed in Linux/FreeBSD: Produces an libjbigi.so
+ # Darwin produces libjbigi.jnilib, right?
+
+-CC="gcc"
++test -z "$CC" && CC="gcc"
+
+ case `uname -sr` in
+ MINGW*)
+ JAVA_HOME="c:/software/j2sdk1.4.2_05"
+@@ -57,5 +55,7 @@
+
+ echo "Compiling C code..."
+ rm -f jbigi.o $LIBFILE
+-$CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c
+-$CC $LINKFLAGS $INCLUDES $INCLUDELIBS -o $LIBFILE jbigi.o $STATICLIBS
++echo $CC -c $COMPILEFLAGS $CFLAGS $CPPFLAGS $INCLUDES ../../jbigi/src/jbigi.c
++$CC -c $COMPILEFLAGS $CFLAGS $CPPFLAGS $INCLUDES ../../jbigi/src/jbigi.c
++echo $CC $LINKFLAGS $LDFLAGS $INCLUDES -o $LIBFILE jbigi.o $STATICLIBS $INCLUDELIBS
++$CC $LINKFLAGS $LDFLAGS $INCLUDES -o $LIBFILE jbigi.o $STATICLIBS $INCLUDELIBS
diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-debug-all.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-debug-all.patch
new file mode 100644
index 000000000000..07dd05227582
--- /dev/null
+++ b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-debug-all.patch
@@ -0,0 +1,35 @@
+--- core/java/src/net/i2p/util/NativeBigInteger.java.orig 2011-07-29 13:14:05.000000000 +0200
++++ core/java/src/net/i2p/util/NativeBigInteger.java 2011-07-29 13:15:16.000000000 +0200
+@@ -481,14 +481,12 @@
+
+ /** @since 0.8.7 */
+ private static void debug(String s) {
+- I2PAppContext.getGlobalContext().logManager().getLog(NativeBigInteger.class).debug(s);
++ System.err.println("DEBUG: " + s);
+ }
+
+
+ private static void info(String s) {
+- if(_doLog)
+- System.err.println("INFO: " + s);
+- I2PAppContext.getGlobalContext().logManager().getLog(NativeBigInteger.class).info(s);
++ System.err.println("INFO: " + s);
+ _loadStatus = s;
+ }
+
+@@ -496,12 +496,9 @@
+
+ /** @since 0.8.7 */
+ private static void warn(String s, Throwable t) {
+- if(_doLog) {
+- System.err.println("WARNING: " + s);
+- if (t != null)
+- t.printStackTrace();
+- }
+- I2PAppContext.getGlobalContext().logManager().getLog(NativeBigInteger.class).warn(s, t);
++ System.err.println("WARNING: " + s);
++ if (t != null)
++ t.printStackTrace();
+ if (t != null)
+ _loadStatus = s + ' ' + t;
+ else
diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-jcpuid-build-system.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-jcpuid-build-system.patch
new file mode 100644
index 000000000000..a4020a012b98
--- /dev/null
+++ b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-jcpuid-build-system.patch
@@ -0,0 +1,23 @@
+--- i2p-0.8.7/core/c/jcpuid/build.sh.orig 2011-07-29 18:38:44.554000219 +0200
++++ i2p-0.8.7/core/c/jcpuid/build.sh 2011-07-29 18:38:13.789000172 +0200
+@@ -24,8 +24,8 @@
+ mkdir lib/freenet/support
+ mkdir lib/freenet/support/CPUInformation
+
+-CC="gcc"
++test -z "$CC" && CC="gcc"
+
+ case `uname -sr` in
+ MINGW*)
+ JAVA_HOME="/c/software/j2sdk1.4.2_05"
+@@ -50,8 +52,8 @@
+
+ echo "Compiling C code..."
+ rm -f $LIBFILE
+-$CC $COMPILEFLAGS $LINKFLAGS $INCLUDES src/*.c -o $LIBFILE
+-strip $LIBFILE
++echo $CC $COMPILEFLAGS $CPPFLAGS $CFLAGS $LINKFLAGS $LDFLAGS $INCLUDES src/*.c -o $LIBFILE
++$CC $COMPILEFLAGS $CPPFLAGS $CFLAGS $LINKFLAGS $LDFLAGS $INCLUDES src/*.c -o $LIBFILE
+ echo Built $LIBFILE
+
+ #g++ -shared -static -static-libgcc -Iinclude -I$JAVA_HOME/include \
diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-non-android-warnings.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-non-android-warnings.patch
new file mode 100644
index 000000000000..6240d25bcd9b
--- /dev/null
+++ b/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-non-android-warnings.patch
@@ -0,0 +1,11 @@
+--- core/java/src/net/i2p/util/NativeBigInteger.java.orig 2011-07-29 13:22:39.000000000 +0200
++++ core/java/src/net/i2p/util/NativeBigInteger.java 2011-07-29 13:22:55.000000000 +0200
+@@ -526,7 +526,7 @@
+ System.loadLibrary(name);
+ return true;
+ } catch (UnsatisfiedLinkError ule) {
+- if (_isAndroid) {
++ if (!_isAndroid) {
+ // Unfortunately,
+ // this is not interesting on Android, it says "file not found"
+ // on link errors too.
diff --git a/net-libs/nativebiginteger/metadata.xml b/net-libs/nativebiginteger/metadata.xml
new file mode 100644
index 000000000000..3800f75787af
--- /dev/null
+++ b/net-libs/nativebiginteger/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 type="person">
+ <email>tommy@gentoo.org</email>
+ <name>Thomas Sachau (Tommy[D])</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild
new file mode 100644
index 000000000000..51dda3f1547b
--- /dev/null
+++ b/net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit flag-o-matic multilib toolchain-funcs java-pkg-2
+
+DESCRIPTION="NativeBigInteger libs for Freenet taken from i2p"
+HOMEPAGE="http://www.i2p2.de"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="|| ( public-domain BSD MIT )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/gmp
+ >=virtual/jdk-1.4"
+RDEPEND="dev-libs/gmp"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-{asmfix,ldflags}.patch
+}
+
+src_compile() {
+ append-flags -fPIC
+ tc-export CC
+ emake libjbigi || die
+ use x86 && filter-flags -fPIC -nopie
+ emake libjcpuid || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR=$(get_libdir) install || die
+}
diff --git a/net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild
new file mode 100644
index 000000000000..f390ec4e68f9
--- /dev/null
+++ b/net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit flag-o-matic multilib toolchain-funcs java-pkg-2
+
+DESCRIPTION="NativeBigInteger libs for Freenet taken from i2p"
+HOMEPAGE="http://www.i2p2.de"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="|| ( public-domain BSD MIT )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-libs/gmp
+ >=virtual/jdk-1.4"
+RDEPEND="dev-libs/gmp"
+
+src_compile() {
+ append-flags -fPIC
+ tc-export CC
+ emake libjbigi || die
+ use x86 && filter-flags -fPIC -nopie
+ emake libjcpuid || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR=$(get_libdir) install || die
+}
diff --git a/net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild
new file mode 100644
index 000000000000..15616b668c43
--- /dev/null
+++ b/net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs multilib java-pkg-2
+
+DESCRIPTION="jbigi JNI library for net.i2p.util.NativeBigInteger java-class from I2P"
+HOMEPAGE="http://www.i2p2.de"
+SRC_URI="http://mirror.i2p2.de/i2psource_${PV}.tar.bz2"
+
+LICENSE="|| ( public-domain BSD MIT )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="test"
+
+DEPEND="${RDEPEND}
+ >=virtual/jdk-1.5"
+RDEPEND="dev-libs/gmp"
+
+S=${WORKDIR}/i2p-${PV}/core/
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}"-build-system.patch \
+ "${FILESDIR}/${P}"-jcpuid-build-system.patch \
+ "${FILESDIR}/${P}"-debug-all.patch \
+ "${FILESDIR}/${P}"-non-android-warnings.patch \
+ "${FILESDIR}/${P}"-asmfix.patch
+}
+
+src_compile() {
+ tc-export CC
+
+ cd c/jbigi/jbigi/src || die
+ ../../build_jbigi.sh dynamic || die
+
+ if use test ; then
+ einfo "Building tests ..."
+ cd "${S}"java/src || die
+ ejavac net/i2p/util/NativeBigInteger.java || die
+ eend $?
+ fi
+ if ( use amd64 || use x86 ) ; then
+ cd "${S}"c/jcpuid
+ ./build.sh || die
+ fi
+}
+
+src_test() {
+ cd java/src || die
+ java -Djava.library.path="${S}"/c/jbigi/jbigi/src net/i2p/util/NativeBigInteger || die
+}
+
+src_install() {
+ local os arch
+
+ dolib c/jbigi/jbigi/src/libjbigi.so
+ ( use amd64 || use x86 ) && dolib c/jcpuid/lib/freenet/support/CPUInformation/libjcpuid-x86-linux.so
+
+ ## The following is needed for compatibility with earlier versions of NativeBigInteger ##
+
+ # arch list found by "none" + grep 'JBIGI_OPTIMIZATION_.*=' core/java/src/net/i2p/util/NativeBigInteger.java
+ for arch in none arm k6 k62 k63 athlon x86_64 x86_64_32 pentium pentiummmx pentium2 pentium3 pentium4 ppc ; do
+ dosym libjbigi.so /usr/$(get_libdir)/libjbigi-linux-$arch.so
+ done
+}
diff --git a/net-libs/neon/Manifest b/net-libs/neon/Manifest
new file mode 100644
index 000000000000..c1e70d36b7b1
--- /dev/null
+++ b/net-libs/neon/Manifest
@@ -0,0 +1,5 @@
+DIST neon-0.30.2.tar.gz 932779 SHA256 db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca SHA512 634caf87522e0bd2695c6fba39cae2465e403f9fbd8007eb10e4e035c765d24cb8da932c67bfa35c34aa51b90c7bc7037ebebaa1ec43259366d5d07233efc631 WHIRLPOOL 977464fc686727dcbdb9def45159d783586fceb289c0eca937429ae3d2b39d9c6bb63a5029be566107d415718ee6ab315b8167c02b3093884757932f89e3b704
+EBUILD neon-0.30.2.ebuild 3128 SHA256 b420c94b931a6e464ca05542ca8f5a99c0635da6c976e4f5bff35462be49dd50 SHA512 86d28f120e7b93c8f97b30d56af4d958f6fab995a42f34f20b8ad5a3726417d2fce639477ec40ca63bab80a29ad88057295f26ef1e2e2e10c3f0d4cec1f9992a WHIRLPOOL c4ded72cd4a5d9aa41595a7bcd9045a87c66d8c6be5a6046eabe3abb9d70d53698ab90e33ef2644823ffd882cfa1da762d69b129bcbd73217163b1c73150e256
+MISC ChangeLog 2978 SHA256 d6bcf15f494f2667aa656484387e0a1f6064a73d6792b441e95de2a207e9b632 SHA512 2c534ecc28c62bd491bb54fe167a961e638eb7936d142deecb541b28e859468b13f0ac924d8b9e60b8305215f346e8c2c6e60855ea32fdf1b9a0988d85d463e2 WHIRLPOOL 44d29e8346f8890437b8ec8f75eb23e1a052a794e77393efd028897a305334973e117fd84cea13cb3a2d5acdc1b2706db305201a62a5d89c6c0a2784b86e4716
+MISC ChangeLog-2015 31847 SHA256 ab3bbb573c3cd07b4c972b79709b122889ed035d627a6e708c625162d7b448e9 SHA512 cfd16b7395871ead63c2663d4b6720352793ae82b812a8a08c250130369d1a22eff9f89ad9bdfcfad712b21d5a4c1eb08dcb8d73591d77283b12971d413d0e3f WHIRLPOOL b1489af506ce49a70e0c9d37e4c5056600df59f5546c952157b8d5d5f161e1c8944113d883a6a08a857da32a4111de519b74f21fb09b7a21121ae252025c4e1a
+MISC metadata.xml 1325 SHA256 92c8434ab86813f91edfb9c64d1f2f6ee4e266e3a7cf511e283e7bc75cd01a8a SHA512 a72fda6b0efb657be3baaef37bbca017d460de56697de367a31d1e9241bf0aaa36e105b3c0128f8aa0a7ec0bec123c1a2a4be98c539cceea1c6d255be79ea8b2 WHIRLPOOL fc33d132d313e610cac225b0680dd90a527c1413b607debec05a8a3ec33779a472ef34141c507fac4f817c306585ddab4b404b60dcb1bde11fc5fbd80a7712c8
diff --git a/net-libs/neon/metadata.xml b/net-libs/neon/metadata.xml
new file mode 100644
index 000000000000..b79ca1ecbc48
--- /dev/null
+++ b/net-libs/neon/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Neon is an HTTP and WebDAV client library for Unix systems, with a C
+ language API. It provides high-level interfaces to HTTP/1.1 and WebDAV
+ methods, and a low-level interface to HTTP request/response handling,
+ allowing new methods to be easily implemented.
+ </longdescription>
+ <longdescription lang="ja">
+ neon は Unix システムにおける HTTP 及び WebDAV クライアント・ライブラリ
+ であり、C言語 API です。HTTP/1.1 及び WebDAV のメソッドという高い視点
+ でのインターフェイス、HTTP リクエスト/レスポンス のハンドリングという
+ 低い視点でのインターフェイス、簡単に実装できるようにした新しいメソッド
+ といったものを提供します。
+ </longdescription>
+ <use>
+ <flag name="libproxy">Add support for <pkg>net-libs/libproxy</pkg></flag>
+ <flag name="pkcs11">Add support for PKCS#11 using <pkg>dev-libs/pakchois</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/neon/neon-0.30.2.ebuild b/net-libs/neon/neon-0.30.2.ebuild
new file mode 100644
index 000000000000..aad391df5fee
--- /dev/null
+++ b/net-libs/neon/neon-0.30.2.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools libtool multilib-minimal
+
+DESCRIPTION="HTTP and WebDAV client library"
+HOMEPAGE="http://www.webdav.org/neon/"
+SRC_URI="http://www.webdav.org/neon/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/27"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc expat gnutls kerberos libproxy libressl nls pkcs11 ssl static-libs zlib"
+RESTRICT="test"
+
+RDEPEND="expat? ( dev-libs/expat:0=[${MULTILIB_USEDEP}] )
+ !expat? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
+ gnutls? (
+ app-misc/ca-certificates
+ net-libs/gnutls:0=[${MULTILIB_USEDEP}]
+ pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
+ )
+ !gnutls? ( ssl? (
+ libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+ pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
+ ) )
+ kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] )
+ libproxy? ( net-libs/libproxy:0=[${MULTILIB_USEDEP}] )
+ nls? ( virtual/libintl:0=[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib:0=[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/neon-config
+)
+
+src_prepare() {
+ # Use CHOST-prefixed version of xml2-config for cross-compilation.
+ sed -e "s/AC_CHECK_PROG(XML2_CONFIG,/AC_CHECK_TOOL(XML2_CONFIG,/" -i macros/neon-xml-parser.m4 || die "sed failed"
+
+ # Use OpenSSL <1.1 compatibility code with LibreSSL.
+ # Functions EVP_PKEY_up_ref(), EVP_PKEY_get0_RSA(), RSA_meth_get0_app_data(), RSA_meth_new(), RSA_meth_free(),
+ # RSA_meth_set_priv_enc(), RSA_meth_set0_app_data() are not implemented in LibreSSL 2.5.1.
+ sed -e "s/#if OPENSSL_VERSION_NUMBER < 0x10100000L/& || defined(LIBRESSL_VERSION_NUMBER)/" -i src/ne_openssl.c src/ne_pkcs11.c || die "sed failed"
+
+ eapply_user
+
+ AT_M4DIR="macros" eautoreconf
+
+ elibtoolize
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local myconf=()
+
+ if has_version sys-libs/glibc; then
+ einfo "Enabling SSL library thread-safety using POSIX threads..."
+ myconf+=(--enable-threadsafe-ssl=posix)
+ fi
+
+ if use expat; then
+ myconf+=(--with-expat)
+ else
+ myconf+=(--with-libxml2)
+ fi
+
+ if use gnutls; then
+ myconf+=(--with-ssl=gnutls --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt")
+ elif use ssl; then
+ myconf+=(--with-ssl=openssl)
+ fi
+
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --enable-shared \
+ $(use_with kerberos gssapi) \
+ $(use_with libproxy) \
+ $(use_enable nls) \
+ $(use_with pkcs11 pakchois) \
+ $(use_enable static-libs static) \
+ $(use_with zlib) \
+ "${myconf[@]}"
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install-{config,headers,lib,man,nls}
+
+ if multilib_is_native_abi && use doc; then
+ (
+ docinto html
+ dodoc -r doc/html/*
+ )
+ fi
+}
+
+multilib_src_install_all() {
+ find "${ED}" -name "*.la" -delete
+
+ dodoc AUTHORS BUGS NEWS README THANKS TODO
+}
diff --git a/net-libs/net6/Manifest b/net-libs/net6/Manifest
new file mode 100644
index 000000000000..9406bbf196c9
--- /dev/null
+++ b/net-libs/net6/Manifest
@@ -0,0 +1,8 @@
+AUX net6-1.3.14-gnutls-3.4.patch 943 SHA256 2d06a875d91d346a2816dbc5e4b11b54a604472a0718facbaf7bcee33f6d4029 SHA512 8fe45b816d21d5542aedcd88cde8013815a9035c51174c6f6f5ecd90eb75380a68c4d376d2c5f45280fab38f662bc0f7a97815e8bdcb335030cd0534c30c542f WHIRLPOOL 5ab124e7d2f935c6b96238f322b4796f13b63aac3893ad89c26be97a703126d19ab1413f2681d0112e14efccfa2a54e86b0ded9672567e33bf67e4515935b852
+DIST net6-1.3.14.tar.gz 483549 SHA256 155dd82cbe1f8354205c79ab2bb54af4957047422250482596a34b0e0cc61e21 SHA512 6a604d51da32b13d61a45d3927e937c2fc5dc83061ea4312df363a57ba1a9830215e0a1b794914790d4606411cc71211675ceca86609614718aaeb998598c5c0 WHIRLPOOL d64da0fbf7484718058be2d20491f5cf84165022499b5d80b12a748bff1d978d8cba6dffcb63b6d985d52763761a72a7a6a36a185cc7eb050e0d56321771c83b
+EBUILD net6-1.3.14-r1.ebuild 929 SHA256 3ca998e77fe6b1907723d8fe3ab02e8d0de8f8e24c42f606091f67ed626c45e4 SHA512 8f3595aa3cf23965b2f89d19269721a6cc78536cf099ad92a5fea16e1a3acbb3a88e5cf042dbf7bb099a15815dcf7f5c27989688463e22d38566a30ad7d90184 WHIRLPOOL a14f2d727e527f30e935c0c98b2c069e084412fe91f9be7ebe71e695b2ca78079fa7db8aabc07f9be0f81ecbde64722cfe30da6c791eda18607dd3277851bb94
+EBUILD net6-1.3.14-r2.ebuild 944 SHA256 ec2d6c53a4f304e5c08f3f99639ce6ee113724626990ca26d691ac8d88cb6b9c SHA512 35fdb163a4773960f6025da5599b554ac0ccb48b9dc089f34231b75887ca279d1e37933dba60f2da9c4973346821aa63a0c4189a1da847845a60bd08fbb69efd WHIRLPOOL 08c339b8bc92f809580f906443c3389dbeb77f2f44687183e612a6d6e58add22c9542872118316c586bfab7696b384af417c5b554254d5a1177be22a0f106797
+EBUILD net6-1.3.14.ebuild 889 SHA256 15bc310596121f01cf3446c00d0d2ab1aa13a2160889e6aa52e0794aa87c787d SHA512 a05aa16316d4551b1d8537acec88ae168ef4bc1d4c18d93ee84f8a8670e27f8afd780f3a5b6c6cd34905acb1f09727ee24345756c01246ffd1f07b15d93fa44a WHIRLPOOL ca9d9cd709eceddc643c5c8946dcfbb3c349845fbdcaf96e815bf45efa78eac55a82f44ebc6cccb092e9a8665273704cc446aa3f97e68bfc1866738fec789cea
+MISC ChangeLog 3119 SHA256 97d6d2f551a7af1524e5fa1d08132ca23f8e26355dad222fd431dc3b0623e145 SHA512 15318ffcef4c6b478d3290f992795a265b5b5c2ac353319eb2e4bed1456010b1388606f2e61dcc2c28c6b3675f0244abf1addef3c71bc9ea97fa09123d400088 WHIRLPOOL c7351c5130c9ef880be0ce5b15370b915962659b180423f4895c5f6d2cbfe1b7fd0c7ab942d01abff4b5ccb73cc328d0281d9652c1890d756924b3ed9c848e73
+MISC ChangeLog-2015 7378 SHA256 cc0b331ad0e886d71976949f839ca2bf1c37510154a0f03626821035c9376c7c SHA512 aad9356dc3bb59243f9949fd6d8ac2c27fab7138b1ec96c3dce3367070fd4c14b5d74b64336b56bd83977001f69ea16606c6ce91774c63cf7dad74d5c9848339 WHIRLPOOL 03a9944aa890bfedfb84251ea19556ec4427076ebc8543f704d651a769f13e7cdb0b65b4976b47324369974e2f879c2c035f2bd7dd27aaf66472b8b1a662066f
+MISC metadata.xml 368 SHA256 f0ef78f3ceb089a8fe6d75317c135b08eae0dece95ede97fbf733bd563e4cfdf SHA512 61aea4707c44401f441210989032bd7c76131d0f08020601ca720f926dc5070962a32abb99c7ef55bc042b3de5f3a3e782bd83f6f5204936e38ac7c66e06b3a6 WHIRLPOOL c9daae5b30cd0df0611dd56b9737780bbc7b6a5694c517ca7db48475da88d16bc1edb9223c5bb18ea440df1f36a57dce07b592506ddc52ad657dafe68832901f
diff --git a/net-libs/net6/files/net6-1.3.14-gnutls-3.4.patch b/net-libs/net6/files/net6-1.3.14-gnutls-3.4.patch
new file mode 100644
index 000000000000..0eb431676324
--- /dev/null
+++ b/net-libs/net6/files/net6-1.3.14-gnutls-3.4.patch
@@ -0,0 +1,27 @@
+From 90154df3f1d504f0ebb3d70b889c1f0e30990588 Mon Sep 17 00:00:00 2001
+From: Carlos Alberto Lopez Perez <clopez@igalia.com>
+Date: Thu, 28 Jul 2016 14:43:38 +0200
+Subject: [PATCH] Fix build with GnuTLS >= 3.4.0
+
+ * gnutls_kx_set_priority() has been removed in 3.4.0 and
+ gnutls_priority_set_direct() should be used instead.
+---
+ src/encrypt.cpp | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/src/encrypt.cpp b/src/encrypt.cpp
+index 30f83a6..9223c35 100644
+--- a/src/encrypt.cpp
++++ b/src/encrypt.cpp
+@@ -175,10 +175,8 @@ net6::tcp_encrypted_socket_base::
+ gnutls_session_t sess):
+ tcp_client_socket(cobj), session(sess), state(DEFAULT)
+ {
+- const int kx_prio[] = { GNUTLS_KX_ANON_DH, 0 };
+-
+ gnutls_set_default_priority(session);
+- gnutls_kx_set_priority(session, kx_prio);
++ gnutls_priority_set_direct(session, "NORMAL:+ANON-DH", NULL);
+
+ gnutls_transport_set_ptr(
+ session,
diff --git a/net-libs/net6/metadata.xml b/net-libs/net6/metadata.xml
new file mode 100644
index 000000000000..ed816b3da2a1
--- /dev/null
+++ b/net-libs/net6/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+ <longdescription>
+ Network access framework for IPv4/IPv6 written in C++ used by obby
+ </longdescription>
+</pkgmetadata>
diff --git a/net-libs/net6/net6-1.3.14-r1.ebuild b/net-libs/net6/net6-1.3.14-r1.ebuild
new file mode 100644
index 000000000000..40b0cdf5b73f
--- /dev/null
+++ b/net-libs/net6/net6-1.3.14-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit flag-o-matic multilib
+
+DESCRIPTION="Network access framework for IPv4/IPv6 written in C++"
+HOMEPAGE="http://gobby.0x539.de/"
+SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm hppa ppc x86"
+IUSE="nls static-libs"
+
+RDEPEND="dev-libs/libsigc++:2
+ >=net-libs/gnutls-1.2.10"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ append-cxxflags -std=c++11
+ econf $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib${PN}.la
+}
+
+pkg_postinst() {
+ elog "Please note that because of the use of C++ templates"
+ elog "Gobby 0.4 has to be recompiled against the new ${PN}"
+ elog "to pick up the changes."
+}
diff --git a/net-libs/net6/net6-1.3.14-r2.ebuild b/net-libs/net6/net6-1.3.14-r2.ebuild
new file mode 100644
index 000000000000..b0af352cb3b8
--- /dev/null
+++ b/net-libs/net6/net6-1.3.14-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic multilib
+
+DESCRIPTION="Network access framework for IPv4/IPv6 written in C++"
+HOMEPAGE="http://gobby.0x539.de/"
+SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm hppa ppc x86"
+IUSE="nls static-libs"
+
+RDEPEND="dev-libs/libsigc++:2
+ >=net-libs/gnutls-1.2.10"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+PATCHES=(
+ "${FILESDIR}/${P}-gnutls-3.4.patch"
+)
+
+src_configure() {
+ append-cxxflags -std=c++11
+ econf $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
+
+pkg_postinst() {
+ elog "Please note that because of the use of C++ templates"
+ elog "Gobby 0.4 has to be recompiled against the new ${PN}"
+ elog "to pick up the changes."
+}
diff --git a/net-libs/net6/net6-1.3.14.ebuild b/net-libs/net6/net6-1.3.14.ebuild
new file mode 100644
index 000000000000..72d6085f692e
--- /dev/null
+++ b/net-libs/net6/net6-1.3.14.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit multilib
+
+DESCRIPTION="Network access framework for IPv4/IPv6 written in C++"
+HOMEPAGE="http://gobby.0x539.de/"
+SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm hppa ppc x86"
+IUSE="nls static-libs"
+
+RDEPEND="dev-libs/libsigc++:2
+ >=net-libs/gnutls-1.2.10"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ econf $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib${PN}.la
+}
+
+pkg_postinst() {
+ elog "Please note that because of the use of C++ templates"
+ elog "Gobby 0.4 has to be recompiled against the new ${PN}"
+ elog "to pick up the changes."
+}
diff --git a/net-libs/netembryo/Manifest b/net-libs/netembryo/Manifest
new file mode 100644
index 000000000000..16d339fd5ed6
--- /dev/null
+++ b/net-libs/netembryo/Manifest
@@ -0,0 +1,5 @@
+DIST netembryo-0.1.1.tar.bz2 265851 SHA256 b20c12f09e99f9c00efab3b9588457fd8a2fa6bb3ed26c35ada572c0b172a981 SHA512 e72b8498dfb43d242464f6706749ebe599b5315e2253405a4440ee68bf61f23fd31e331b80f7f029ea5692c114dbb85373f9d45bd80caff91350650a8fc18357 WHIRLPOOL a80821090e46f3c29b195358265a8e9cd87bc502a5ff5fa7cd9be3fe72a953059b9362774d0ca10087d274ff26b2a691fea24d935e41447c64f5b88f56af6167
+EBUILD netembryo-0.1.1.ebuild 841 SHA256 873ac87e9ad27bcb07ba5803bab3f52e1e150f6054d5ea02731a2eed279693ca SHA512 4cbc10422f1429f4077c21d25c6aaed20e858159c7c4a3d5fd5e550d51b5aa67f934aa676ae75d0c4ebdd9217e8dcd15bd39bd10f0cee0de8217c624848d1e45 WHIRLPOOL 9705faf7bb80b6e5905c9f50c9a521c4249314d670cfefc2a3ae2e4acce86cc7aaa011f9586051c69d72e426e00a000528dd8bcddeb8d64b727ee8cc47fde4d4
+MISC ChangeLog 2796 SHA256 4a85bbd4136598f687a722beaf27017f53e547bb018530fa303683205e526e86 SHA512 45fae3f930c65763eaed9e55487d94bdb6916fcc66f0a38c1d02c583b1bdafbf86b2dfc32c0a1e7dac081930a07ac6e11f954577297b75d630c3c6d461fb48eb WHIRLPOOL df2395528456346e84282a63288e2b03223e62e5a0b531e5a8daa6f7bda78904a08cde2a6c8ea7c8ac81d21ff4183aed2d28258986bd5ac8610cb083032fbf52
+MISC ChangeLog-2015 520 SHA256 580d5fa4714525ee2957943796d2fc762b8b895b0055cb59e231a977fc4724e6 SHA512 f6d723a7e2a781531174485b427f2e24bca87c9261f7a58a6f8aedb513e52837b994c8eba0ada110411a288488d78c08723ea6263e81f8b6ad081e3cf4464c66 WHIRLPOOL 5d7bfd4dada1ac96326115e255d54e0c285720bd0719d865ea374ac61e23bedcd9736c6ff45bf6fea82d8137b0eab27c742fbf8e96e4e1efe5d3e661f52dda7e
+MISC metadata.xml 227 SHA256 01fa256b46c60492ca90de4799686bcfdc89c3d2657c020fb5a6035deee6af24 SHA512 d39fc0676c06bf09884fa817e0d5dc386a536d5626a9c2cf34ddb8b7e29d612ecb2c617214788ffe729c5118c632c119e03ce6d38f17114c48c090c82a2ec2e5 WHIRLPOOL 9420098faad521e4aa31e2458613159422d2548449cdaf06be90bdbcd53435f73e8a9e343718368a0beadb058abae8803ffa1425ef62859f1b605c2e0d8344e7
diff --git a/net-libs/netembryo/metadata.xml b/net-libs/netembryo/metadata.xml
new file mode 100644
index 000000000000..106575f01e53
--- /dev/null
+++ b/net-libs/netembryo/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 type="project">
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/netembryo/netembryo-0.1.1.ebuild b/net-libs/netembryo/netembryo-0.1.1.ebuild
new file mode 100644
index 000000000000..fdf79d2012e6
--- /dev/null
+++ b/net-libs/netembryo/netembryo-0.1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit multilib
+
+DESCRIPTION="a network abstraction library"
+HOMEPAGE="http://lscube.org/projects/netembryo/"
+SRC_URI="http://lscube.org/files/downloads/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ipv6 +sctp test"
+
+RDEPEND=">=dev-libs/openssl-0.9.8
+ sctp? ( net-misc/lksctp-tools )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( >=dev-libs/glib-2.20:2
+ sys-apps/gawk
+ dev-util/ctags )"
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --disable-static \
+ $(use_enable ipv6) \
+ $(use_enable sctp) \
+ $(use_enable test tests)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog README TODO
+ find "${D}"usr/$(get_libdir) -name '*.la' -delete
+}
diff --git a/net-libs/netwib/Manifest b/net-libs/netwib/Manifest
new file mode 100644
index 000000000000..a6d7db23c4ed
--- /dev/null
+++ b/net-libs/netwib/Manifest
@@ -0,0 +1,6 @@
+DIST netwib-5.39.0-doc_html.tgz 139572 SHA256 983cfc810e1a277b952158d4512c0fba36d3f2a83833213f338952ec0f2fdd18 SHA512 0920642854f71b4c20a8b0844d152aa1107b7cfe927524391626bac97185024261e0efbcb681b978fa612d04cb71a804c7ae604d2040c87d27d118c004940345 WHIRLPOOL c94d3b85781b825fd01b452829f49f99e8cf1bc4e256e22daba77632774add15ad496785cdf8e3a9c7206bd6f4ae2611820373afb7128e3ba574d6a92d74f03e
+DIST netwib-5.39.0-src.tgz 641757 SHA256 574d72d9bf8b0ed0c25a6b5e902b768727d404c44d570f769b4b1219aa66946f SHA512 eeb3c51c48ed22762fa0e4215dfd239fb97fc0b34f28382d77ad863ed1f2f4a1f26195517fcd26c4b1a96195c895bd7b7ed121af975b5dc49b1bc378b11ef234 WHIRLPOOL 540b330b76b3f0e82dbc6468d9b2c578e16c942b1bb6351a03f0ae9c11eee70a44c97f952bf212bcf68568dcf6952b946ae454addc3db605d7c0859289e340a4
+EBUILD netwib-5.39.0.ebuild 1297 SHA256 373046ea35b9ca6536458ee9e1f8640127596426cc90894aa91ab965c612b8ed SHA512 e77d5c23492e3c4dec2bb23215a45bd7234c4b4752dfb24c74a3b2a18acc1e2d5f7230704424ebe8add528fda100eeaeb485a3bd641f8a4247374d275df665b2 WHIRLPOOL 8ef8c8afd22457d96040a0be0292bd0b9e7a7e5af6729d210300b8a8974a81e0c9dedd4c7ffce15b014beabb97c9ea727fd00e93b84cd14299d9bc8e60e6c58b
+MISC ChangeLog 2426 SHA256 d9a4fbe74700e9cffd4e275d95aca512792a2db22906b463803cd7962447b43e SHA512 d3bb4ac5e5b1e3c951801d6bc4ebe1a4b68383f0f7b46c48ae828521df43a7c32330a1469d4db78892fc2b3e4a30cb6853367d6979684c06b461f7c3003c608e WHIRLPOOL dc661f6a049f08e297a898764e43d0cfd37986c5db9e11ea76c8090365cb8ea854e591122bc7e445e0a09b89fee9e51bd369483c336e1d19f2fe599ef7c33888
+MISC ChangeLog-2015 5618 SHA256 d9f1a1f80777337e0cf8887d4fc1873eb0e1f6bfc1cfb95ac63dc1befa8544dc SHA512 6fb1d63efa0fb203f5f8ce966ebb41e50fed895bdbd9f85dc97b3a201b0f839f505f7b1521b5ec389dd0fca3a7d6677d6c4e3728b58a079240eb864e925b0b9c WHIRLPOOL 9988d849625ea99ec6ba28123eb5ab452f6eba5da2939cf72a879d1edae68f5da535d586b43b48d959079be062ca7053dcbbe313e22e0d79631424753ea58ed2
+MISC metadata.xml 455 SHA256 8ccacbd2a67d6392302f259ee10ed281678da5520e71a96426e74a1d2d133017 SHA512 53c688f1fcf0890a479df90aa567b0477983b1e613cd05b1845aad32fcb4652e1a6b7a68b87de005af423db89095488574a6188556e70d9af8e4455f9049a07c WHIRLPOOL c34c445395f35b1e92ba464d7dbb621bdf6a41893a7585bdf2891e221c0a954bd2ff923269184d8039182b239f033446fe236cbf65ed3b5577c1f5b30186d5bc
diff --git a/net-libs/netwib/metadata.xml b/net-libs/netwib/metadata.xml
new file mode 100644
index 000000000000..3bf3deb696de
--- /dev/null
+++ b/net-libs/netwib/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <longdescription>Library of Ethernet, IP, UDP, TCP, ICMP, ARP and RARP protocols</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ntwib</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/netwib/netwib-5.39.0.ebuild b/net-libs/netwib/netwib-5.39.0.ebuild
new file mode 100644
index 000000000000..0a94f4cb4132
--- /dev/null
+++ b/net-libs/netwib/netwib-5.39.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# NOTE: netwib, netwox and netwag go together, bump all or bump none
+
+EAPI=5
+inherit toolchain-funcs multilib
+
+DESCRIPTION="Library of Ethernet, IP, UDP, TCP, ICMP, ARP and RARP protocols"
+HOMEPAGE="
+ http://www.laurentconstantin.com/en/netw/netwib/
+ http://ntwib.sourceforge.net/
+"
+SRC_URI="mirror://sourceforge/ntwib/${P}-src.tgz
+ doc? ( mirror://sourceforge/ntwib/${P}-doc_html.tgz )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc x86"
+IUSE="doc"
+
+DEPEND="
+ net-libs/libnet:1.1
+ net-libs/libpcap
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}-src/src
+
+src_prepare() {
+ sed -i \
+ -e 's:/man$:/share/man:g' \
+ -e "s:/lib:/$(get_libdir):" \
+ -e "s:/usr/local:/usr:" \
+ -e "s:=ar:=$(tc-getAR):" \
+ -e "s:=ranlib:=$(tc-getRANLIB):" \
+ -e "s:=gcc:=$(tc-getCC):" \
+ -e "s:-O2:${CFLAGS}:" \
+ config.dat || die
+}
+
+src_configure() {
+ sh genemake || die
+}
+
+src_install() {
+ default
+ dodoc ../README.TXT
+ if use doc; then
+ mkdir "${D}"/usr/share/doc/${PF}/html
+ mv "${WORKDIR}"/${P}-doc_html/{index.html,${PN}} \
+ "${D}"/usr/share/doc/${PF}/html
+ fi
+
+ cd "${S}"/..
+ dodoc \
+ doc/{changelog.txt,credits.txt,integration.txt} \
+ doc/{problemreport.txt,problemusageunix.txt,todo.txt}
+}
diff --git a/net-libs/nfqueue-bindings/Manifest b/net-libs/nfqueue-bindings/Manifest
new file mode 100644
index 000000000000..d72855886028
--- /dev/null
+++ b/net-libs/nfqueue-bindings/Manifest
@@ -0,0 +1,7 @@
+DIST nfqueue-bindings-0.5.tar.gz 22385 SHA256 98ce420e2f9c95e6ee961f3a7c8b92fd6da6939bef3847f5090f1e2429f2394d SHA512 c88ef6997b8e4b3ae2c2eb6c1002b74f39979c73b4dc3a4da428aa4eeb6eedeeaff1cbc27c0740e8b29fb8b6a6f98af326be0b4fbc6ed3e432a9884febb3f7a6 WHIRLPOOL 11c70ebd63c0f2970dab3d2747ca8ac585b8c831b7326ebba37be72ab058a7a65049f1833a1d7117c150e91e6c6163f95e001d1eb3453ec6577723a4db811aa6
+DIST nfqueue-bindings-0.6.tar.gz 22425 SHA256 37cf8607baaf1459119c1745a6b3a9d6196fee1e7103ff84250e64ac71156dbb SHA512 6ee31b01377c0e4b6aa2d2f2e14b34d4d432f04d0e813f90a9d7e52ea9c8483044f7a36b48220887d658c80ca07bfefc88f8aa92309cff30619ec8fb9f52ab43 WHIRLPOOL 2f5a45e7e68ade56c8f008effcf8488b3db629d6f0f98ec2f938bf389ec3d97a5934085390e768b461a44fa04a207364fb2b2ba4cb8dffe4d97fc53ae5f3c6c1
+EBUILD nfqueue-bindings-0.5.ebuild 1993 SHA256 7879159bb293177e06ad0db32bcaf20818f3c4647d5d72715c7a06f004873a42 SHA512 39191872a802c3327535bd7770fa325f38654d857e9ce16b5f9a33c3fdc7b397412ab8232a1d1178a3c6b21a6b2aff2ad1d55c24b1f7af0c1cab8bd7be1857a3 WHIRLPOOL 7005eb93d04ee8e94a8ad743c8a386748455afc793698842bafea8d533b03c7185a0acfe9198c2ca352b1a9894ab6030c8b0eb39b0c52f8de988ad7eb5ab4af4
+EBUILD nfqueue-bindings-0.6.ebuild 1969 SHA256 75d4694e5c80095cb44b3663c70d907d076c98d3d1613ee3f390fe113fdf1f6b SHA512 fefc50e4a4cae4481b74a095a16fcefd7cc8e8c61a148ef81ffe5a3ddaf64631a92557f52ecdde9f168696488856807183d3c985648d990f2883276d7e776f9d WHIRLPOOL 67ece07985bc8e29d11df77252aa1c0fb89a8675c975ca2bc86f0183881d1ff95f28280e81d8670309247fea7fe45236895aa7e3d128f85f33fa58211884427a
+MISC ChangeLog 2643 SHA256 3da13ea698e4fe6b9cad8c12903cf3e86b3899f2ed316041b5f4591eea6d4325 SHA512 6bac8491b174021bf2e1dcce14510bec793b5da51e692d017ec75c1e50e4b52f50a61464f2f491046fb84d9e2d2955b56fb75f4fbec7c87597615c25157a2737 WHIRLPOOL 5758954f63cbd3ebe6fc07e4621956003dd3e42edb623425b6ab53799e2f1f7f1e6fda5aca405601b2b4e6df1b6c6306dd3b45c14ffe3e908eeb67f625a23e77
+MISC ChangeLog-2015 449 SHA256 15afabc4dbe8ebde85145b21a63eec549f3c7451d5d145499ccfa0faa478b94d SHA512 f33bfcbe05c39c450a3b5879d0f5b01b101b50b809f26924c9535a38e86a9716525c849cba136a5c5a66cba1c929edbf4bf00819f7c4de863648f5e09cb68a39 WHIRLPOOL dfff5661af1d32f343b1d70b6feb69615ff5c32b6bd66d4cb9643f6e4b58f55be3659e7327fe04ec4dad227471e93d48faa91ba1205aaaefe18f884ebbb330c8
+MISC metadata.xml 389 SHA256 92da0f2e7e2cf51816449a524ec9b6f820b6c0014516ad353043ae427fadae6f SHA512 93f27dce7f495f0e0bb277938e5133cc8a2ca33fe8d6b822da48dede56b94dfb35c471a77679cee6e8cd08dbca41f7459440b21ca1c6a1f02368ad5bd8c91d96 WHIRLPOOL faaca142966efb03945f64d7c9d2757ac615d711027483020c16b1d8ce2ea6a543d9df2082dcdc13cf28c6f7cc18ef9f55dbc7142f78d11c32ea80cb989e8fe9
diff --git a/net-libs/nfqueue-bindings/metadata.xml b/net-libs/nfqueue-bindings/metadata.xml
new file mode 100644
index 000000000000..96c116c350b6
--- /dev/null
+++ b/net-libs/nfqueue-bindings/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">chifflier/nfqueue-bindings</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild
new file mode 100644
index 000000000000..864546a6d190
--- /dev/null
+++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils perl-module linux-info python-single-r1
+
+DESCRIPTION="High-level language bindings for libnetfilter_queue"
+HOMEPAGE="https://github.com/chifflier/nfqueue-bindings"
+SRC_URI="https://github.com/chifflier/nfqueue-bindings/archive/nfqueue-bindings-0.5.tar.gz"
+
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+LICENSE="GPL-3"
+IUSE="perl python examples"
+REQUIRED_USE="|| ( perl python ) python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ python? (
+ dev-python/dpkt[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )"
+DEPEND="${RDEPEND}
+ perl? ( dev-lang/perl )
+ net-libs/libnetfilter_queue
+ dev-lang/swig"
+
+S=${WORKDIR}/${PN}-${P}
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+ # At least one of Python or Perl must be selected
+ use python || useq perl || die "At least one supported language must be selected."
+ # Check kernel configuration for NFQUEUE
+ if linux_config_exists; then
+ ebegin "Checking NETFILTER_NETLINK_QUEUE support"
+ linux_chkconfig_present NETFILTER_NETLINK_QUEUE
+ eend $? || \
+ eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!'
+ ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support"
+ linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE
+ eend $? || \
+ eerror '"NFQUEUE" target Support not found!'
+ fi
+}
+
+src_prepare() {
+ if use perl; then
+ # Fix Perl destination directory
+ perl_set_version
+ sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die
+ else
+ sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die
+ fi
+
+ if use python; then
+ sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die
+ else
+ sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install PREFIX=/usr || die
+ docinto examples
+ use examples && dodoc examples/*
+}
diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild
new file mode 100644
index 000000000000..6c7f4afc4a1c
--- /dev/null
+++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils perl-module linux-info python-single-r1
+
+DESCRIPTION="High-level language bindings for libnetfilter_queue"
+HOMEPAGE="https://github.com/chifflier/nfqueue-bindings"
+SRC_URI="https://github.com/chifflier/nfqueue-bindings/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+LICENSE="GPL-3"
+IUSE="perl python examples"
+REQUIRED_USE="|| ( perl python ) python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ python? (
+ dev-python/dpkt[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )"
+DEPEND="${RDEPEND}
+ perl? ( dev-lang/perl )
+ net-libs/libnetfilter_queue
+ dev-lang/swig"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+ # At least one of Python or Perl must be selected
+ use python || useq perl || die "At least one supported language must be selected."
+ # Check kernel configuration for NFQUEUE
+ if linux_config_exists; then
+ ebegin "Checking NETFILTER_NETLINK_QUEUE support"
+ linux_chkconfig_present NETFILTER_NETLINK_QUEUE
+ eend $? || \
+ eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!'
+ ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support"
+ linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE
+ eend $? || \
+ eerror '"NFQUEUE" target Support not found!'
+ fi
+}
+
+src_prepare() {
+ if use perl; then
+ # Fix Perl destination directory
+ perl_set_version
+ sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die
+ else
+ sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die
+ fi
+
+ if use python; then
+ sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die
+ else
+ sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install PREFIX=/usr || die
+ docinto examples
+ use examples && dodoc examples/*
+}
diff --git a/net-libs/nghttp2/Manifest b/net-libs/nghttp2/Manifest
new file mode 100644
index 000000000000..dcfb4b567b6d
--- /dev/null
+++ b/net-libs/nghttp2/Manifest
@@ -0,0 +1,12 @@
+DIST nghttp2-1.10.0.tar.gz 2086580 SHA256 192dc031e71e182240079befae9db7e64c9951da3a83c7a438f57cf76145b6a8 SHA512 4341f76ead38ba30e0dfda492e2e0f4c842f453e235fa90ee55b1e556092828236f21c6b212d0099cea005f149e4be3e63ad007009dd5228999101e563009a6f WHIRLPOOL 603391b0d15883cd9db734a0e4bb7d994c17ae4209d5251504e29cc59e0ccf67488b9340acefdb6d6603e9e7d3b0a0491ed18330edce4d20adb0ed19ffc5b975
+DIST nghttp2-1.19.0.tar.gz 2159530 SHA256 b67946ad211aa3f7c91f4d866f47b056e821da8e31ab4636130d59be87f53016 SHA512 50f45082f725c237a0e1d25af57992b9cded6c9b68f0aa95c44c16eb4448e05b14e06c853032924d03034115286163de0ad684827cfa5d70896656868fdb4e01 WHIRLPOOL d6178a31aadfcfc3547ab4b0f58ba8f5b34a95ebc1168b7f03b4bfba58a03737b061eea020c264a2da882f0f6541620cd001e62919b82f5b1ada552402c2fab0
+DIST nghttp2-1.25.0.tar.gz 2213656 SHA256 23fe0c97505a73154bbdfd2fcf47f5fa652ad8be4a88c3a4bfe8ff517026ef0f SHA512 2264b073ddcf1852c9f9c6d104ecba3c6b08385d6933f89f01b0ba915c1715c6a963da69c96eb4eb41622994bac6cd222d24c4dc8e152a45787f06d17693e809 WHIRLPOOL 28fecceefd294d2a7950cc740e01898db6e5901fbf8357f7f3c5cb6170909451be28924de28c1fb2d97fe60a5acfd1599a260aef3bb3ab5fe4173a05fef818cf
+DIST nghttp2-1.26.0.tar.gz 2217713 SHA256 daf7c0ca363efa25b2cbb1e4bd925ac4287b664c3d1465f6a390359daa3f0cf1 SHA512 fd6733e5d30fde03e7d2662df1adc0267f1ff3b3a0fbcd10dd9609b7eb149a94a8441b78aef0f4d34d3c0bbc9a11fcbef1ceb1f7da44091f998f6be93dee3b9d WHIRLPOOL bdde085e730b945b5253b1a3df160d990f72f524b3201bb3b3b4a01a7ed7911c9c35378e957b999135cbaeb694001b7e9410d56901f4cb3badeaa77fad66bf37
+EBUILD nghttp2-1.10.0.ebuild 1772 SHA256 7c2b5ff443d23e99f3a289bdf14d1bc623ade04be5d9c1cd88cb55147bc1570b SHA512 65a431e382cc6b7494674b0c662f1f18d0c3fa0b6ca7bb16dc3ad0f60213f51113a73aa1252680c63d687424bae54bfa2fc813501e90ded0cd08e06cb6088809 WHIRLPOOL 6698754715eaf7bc775893276855c7eee5c0048a1b32a027482a56dddd6eebfdafadb75fd4f124aae9e8a8d51b859197d94eaa5a61b376f5f9f5dbce7eb7cfc0
+EBUILD nghttp2-1.19.0.ebuild 1815 SHA256 6989f5c7a2fbb209a14511e8621c44a809ef93756d1254c93c65050eff2bfb26 SHA512 f27e9ccb9a772a90026d4293ff53e6758de29d8baa02e02b2d8a69c987ecdf81f08c7e66153078c0f4e33218c4e24b84123c4a0908860aed7574a07e211b84a2 WHIRLPOOL cd08c25e82d703d67c14f05cdffc8470ac4df61b5ed48f570391d59bdae84f60e4aa355a2b9c3761f7eb5e7003d4d3ac41d94e4ec45555e9d09175b29920c422
+EBUILD nghttp2-1.25.0.ebuild 1823 SHA256 3c341c11522c55965eb1ed3b4096ca2d7b9002dd2ef29dfc8b400203d28b12ca SHA512 661fc8bd70b382b614ceadf16d161816347f7b8b7bd32484315da185d801e14f15fb5dbea58a569c1a0107584598ca5558697de45259740ebfdd36754aa97751 WHIRLPOOL 51af28f103f7c3863d59317a4d97a79f1804d6fdb4bb9a45b5a43fdd96010f14fe88a9b47ad5bd79fde45a99f009fc5a3e274a5ea8fe3b237efb86dc1706b0d3
+EBUILD nghttp2-1.26.0.ebuild 1823 SHA256 3c341c11522c55965eb1ed3b4096ca2d7b9002dd2ef29dfc8b400203d28b12ca SHA512 661fc8bd70b382b614ceadf16d161816347f7b8b7bd32484315da185d801e14f15fb5dbea58a569c1a0107584598ca5558697de45259740ebfdd36754aa97751 WHIRLPOOL 51af28f103f7c3863d59317a4d97a79f1804d6fdb4bb9a45b5a43fdd96010f14fe88a9b47ad5bd79fde45a99f009fc5a3e274a5ea8fe3b237efb86dc1706b0d3
+EBUILD nghttp2-9999.ebuild 1893 SHA256 07a5a2b19a50b027208f3423a1a8499e157440854518b50a116d28e69f263b47 SHA512 9143dc336a572ac1fe9d1b1fbe690f240681bea7ba01271430d44bee0885441fbe16210237605d3b200762c8c84b5100f43ff20b24c1763401ca08850dc55936 WHIRLPOOL ca87e899ec6032f30b96c95791148e2dcfcd53245f445302980c72d6ec4e2ca3fe95b08472c8c61f3f1e623a6f43668be4c6d9e79b1a4ecc8b154b60bcd291c5
+MISC ChangeLog 15393 SHA256 347706c6b7f4e9b63fda2e214c671bd97aea620e056d466c0cf15049ffa15829 SHA512 4ffb21fa44cb81d33795c10cca5c3c2371b999e58f5f8d47befb1767bd393095d47aabfa342c37756404497f8be5c898cb5d2acb031ea118b9114d0bb69503e0 WHIRLPOOL b04b8e526e202e87aef3f1d74356ad337cb7125ee49f6e355748ab30adb1eb5068257bb7b92ccade82d43be201945357f30f417b10d9bd332cdf0d5b16e337cf
+MISC ChangeLog-2015 917 SHA256 99d727240f9129cd302bef401cd6a15104db2d8300977f7f9c3354ab2da1cf65 SHA512 09e2b3352017e46a884b09f3e592df066950a1091f62c56a725d807b99e31a153509f4a73d175dedba37bf5e5f416c19ff20699e7a9faa1f5631990d76c7c4cc WHIRLPOOL 5b0b4221bfaa365808f87b6b34ddc92d3e0f9b9bf29566b47a916bfc8a72564e58d09516da727e3702b85d4657be659737b2f08fc94b82d50eea607704e68337
+MISC metadata.xml 548 SHA256 303c9bbf4763404a0c7daae66b2f7ec61dd051ce0d5a89e6e6213ba306276295 SHA512 e29edcb283ef5de42e4dec4456a03af0b3ba09e7827c81ad312e42d5bc1348794076c5c28edc9d19de9f50e6035077c89fe7db6ba1454c19f182e7fd73dcb4d4 WHIRLPOOL 9e991e25ff814ef8b57fda6652e4c6fffa39baaaa99d68fcdf351d067bbb48ac4d463cf00b27fbd4411f48372d5c702a3867ecc9ae8d27db15471d920d999d26
diff --git a/net-libs/nghttp2/metadata.xml b/net-libs/nghttp2/metadata.xml
new file mode 100644
index 000000000000..dccb46fd26a5
--- /dev/null
+++ b/net-libs/nghttp2/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vapier@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="hpack-tools">Install HPACK (header compression) helper tools</flag>
+ <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for memory allocation</flag>
+ <flag name="utils">Install nghttp, nghttpd and nghttpx</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">tatsuhiro-t/nghttp2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/nghttp2/nghttp2-1.10.0.ebuild b/net-libs/nghttp2/nghttp2-1.10.0.ebuild
new file mode 100644
index 000000000000..8eb853b435c9
--- /dev/null
+++ b/net-libs/nghttp2/nghttp2-1.10.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: Add python support.
+
+EAPI=6
+
+inherit multilib-minimal
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/tatsuhiro-t/nghttp2.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/tatsuhiro-t/nghttp2/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+fi
+
+DESCRIPTION="HTTP/2 C Library"
+HOMEPAGE="https://nghttp2.org/"
+
+LICENSE="MIT"
+SLOT="0/1.14" # <C++>.<C> SONAMEs
+IUSE="cxx debug hpack-tools jemalloc libressl static-libs test +threads utils xml"
+
+RDEPEND="
+ cxx? ( dev-libs/boost:=[${MULTILIB_USEDEP},threads] )
+ hpack-tools? ( >=dev-libs/jansson-2.5 )
+ jemalloc? ( dev-libs/jemalloc[${MULTILIB_USEDEP}] )
+ utils? (
+ >=dev-libs/libev-4.15[${MULTILIB_USEDEP}]
+ !libressl? ( >=dev-libs/openssl-1.0.2:0[-bindist,${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}]
+ )
+ xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ --disable-examples \
+ --disable-failmalloc \
+ --disable-werror \
+ --without-cython \
+ --disable-python-bindings \
+ --without-spdylay \
+ $(use_enable cxx asio-lib) \
+ $(use_enable debug) \
+ $(multilib_native_use_enable hpack-tools) \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ $(multilib_native_use_enable utils app) \
+ $(multilib_native_use_with jemalloc) \
+ $(multilib_native_use_with xml libxml2)
+}
+
+multilib_src_install_all() {
+ use static-libs || find "${ED}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/nghttp2/nghttp2-1.19.0.ebuild b/net-libs/nghttp2/nghttp2-1.19.0.ebuild
new file mode 100644
index 000000000000..4ad8c4f9b576
--- /dev/null
+++ b/net-libs/nghttp2/nghttp2-1.19.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: Add python support.
+
+EAPI=6
+
+inherit multilib-minimal
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/tatsuhiro-t/nghttp2.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/tatsuhiro-t/nghttp2/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
+fi
+
+DESCRIPTION="HTTP/2 C Library"
+HOMEPAGE="https://nghttp2.org/"
+
+LICENSE="MIT"
+SLOT="0/1.14" # <C++>.<C> SONAMEs
+IUSE="cxx debug hpack-tools jemalloc libressl static-libs test +threads utils xml"
+
+RDEPEND="
+ cxx? ( dev-libs/boost:=[${MULTILIB_USEDEP},threads] )
+ hpack-tools? ( >=dev-libs/jansson-2.5 )
+ jemalloc? ( dev-libs/jemalloc[${MULTILIB_USEDEP}] )
+ utils? (
+ >=dev-libs/libev-4.15[${MULTILIB_USEDEP}]
+ !libressl? ( >=dev-libs/openssl-1.0.2:0[-bindist,${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}]
+ net-dns/c-ares:=[${MULTILIB_USEDEP}]
+ )
+ xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ --disable-examples \
+ --disable-failmalloc \
+ --disable-werror \
+ --without-cython \
+ --disable-python-bindings \
+ --without-spdylay \
+ $(use_enable cxx asio-lib) \
+ $(use_enable debug) \
+ $(multilib_native_use_enable hpack-tools) \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ $(multilib_native_use_enable utils app) \
+ $(multilib_native_use_with jemalloc) \
+ $(multilib_native_use_with xml libxml2)
+}
+
+multilib_src_install_all() {
+ use static-libs || find "${ED}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/nghttp2/nghttp2-1.25.0.ebuild b/net-libs/nghttp2/nghttp2-1.25.0.ebuild
new file mode 100644
index 000000000000..3ec4b994bb7c
--- /dev/null
+++ b/net-libs/nghttp2/nghttp2-1.25.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: Add python support.
+
+EAPI=6
+
+inherit multilib-minimal
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/tatsuhiro-t/nghttp2.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/tatsuhiro-t/nghttp2/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+DESCRIPTION="HTTP/2 C Library"
+HOMEPAGE="https://nghttp2.org/"
+
+LICENSE="MIT"
+SLOT="0/1.14" # <C++>.<C> SONAMEs
+IUSE="cxx debug hpack-tools jemalloc libressl static-libs test +threads utils xml"
+
+RDEPEND="
+ cxx? ( dev-libs/boost:=[${MULTILIB_USEDEP},threads] )
+ hpack-tools? ( >=dev-libs/jansson-2.5 )
+ jemalloc? ( dev-libs/jemalloc[${MULTILIB_USEDEP}] )
+ utils? (
+ >=dev-libs/libev-4.15[${MULTILIB_USEDEP}]
+ !libressl? ( >=dev-libs/openssl-1.0.2:0[-bindist,${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}]
+ net-dns/c-ares:=[${MULTILIB_USEDEP}]
+ )
+ xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ --disable-examples \
+ --disable-failmalloc \
+ --disable-werror \
+ --without-cython \
+ --disable-python-bindings \
+ --without-spdylay \
+ $(use_enable cxx asio-lib) \
+ $(use_enable debug) \
+ $(multilib_native_use_enable hpack-tools) \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ $(multilib_native_use_enable utils app) \
+ $(multilib_native_use_with jemalloc) \
+ $(multilib_native_use_with xml libxml2)
+}
+
+multilib_src_install_all() {
+ use static-libs || find "${ED}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/nghttp2/nghttp2-1.26.0.ebuild b/net-libs/nghttp2/nghttp2-1.26.0.ebuild
new file mode 100644
index 000000000000..3ec4b994bb7c
--- /dev/null
+++ b/net-libs/nghttp2/nghttp2-1.26.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: Add python support.
+
+EAPI=6
+
+inherit multilib-minimal
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/tatsuhiro-t/nghttp2.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/tatsuhiro-t/nghttp2/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+DESCRIPTION="HTTP/2 C Library"
+HOMEPAGE="https://nghttp2.org/"
+
+LICENSE="MIT"
+SLOT="0/1.14" # <C++>.<C> SONAMEs
+IUSE="cxx debug hpack-tools jemalloc libressl static-libs test +threads utils xml"
+
+RDEPEND="
+ cxx? ( dev-libs/boost:=[${MULTILIB_USEDEP},threads] )
+ hpack-tools? ( >=dev-libs/jansson-2.5 )
+ jemalloc? ( dev-libs/jemalloc[${MULTILIB_USEDEP}] )
+ utils? (
+ >=dev-libs/libev-4.15[${MULTILIB_USEDEP}]
+ !libressl? ( >=dev-libs/openssl-1.0.2:0[-bindist,${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}]
+ net-dns/c-ares:=[${MULTILIB_USEDEP}]
+ )
+ xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ --disable-examples \
+ --disable-failmalloc \
+ --disable-werror \
+ --without-cython \
+ --disable-python-bindings \
+ --without-spdylay \
+ $(use_enable cxx asio-lib) \
+ $(use_enable debug) \
+ $(multilib_native_use_enable hpack-tools) \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ $(multilib_native_use_enable utils app) \
+ $(multilib_native_use_with jemalloc) \
+ $(multilib_native_use_with xml libxml2)
+}
+
+multilib_src_install_all() {
+ use static-libs || find "${ED}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/nghttp2/nghttp2-9999.ebuild b/net-libs/nghttp2/nghttp2-9999.ebuild
new file mode 100644
index 000000000000..6279f2410cbb
--- /dev/null
+++ b/net-libs/nghttp2/nghttp2-9999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: Add python support.
+
+EAPI=6
+
+inherit multilib-minimal
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/tatsuhiro-t/nghttp2.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://github.com/tatsuhiro-t/nghttp2/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+DESCRIPTION="HTTP/2 C Library"
+HOMEPAGE="https://nghttp2.org/"
+
+LICENSE="MIT"
+SLOT="0/1.14" # <C++>.<C> SONAMEs
+IUSE="cxx debug hpack-tools jemalloc libressl static-libs test +threads utils xml"
+
+RDEPEND="
+ cxx? ( dev-libs/boost:=[${MULTILIB_USEDEP},threads] )
+ hpack-tools? ( >=dev-libs/jansson-2.5 )
+ jemalloc? ( dev-libs/jemalloc[${MULTILIB_USEDEP}] )
+ utils? (
+ >=dev-libs/libev-4.15[${MULTILIB_USEDEP}]
+ !libressl? ( >=dev-libs/openssl-1.0.2:0[-bindist,${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}]
+ net-dns/c-ares:=[${MULTILIB_USEDEP}]
+ )
+ xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
+
+src_prepare() {
+ default
+ [[ ${PV} == 9999 ]] && eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ --disable-examples \
+ --disable-failmalloc \
+ --disable-werror \
+ --without-cython \
+ --disable-python-bindings \
+ --without-spdylay \
+ $(use_enable cxx asio-lib) \
+ $(use_enable debug) \
+ $(multilib_native_use_enable hpack-tools) \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ $(multilib_native_use_enable utils app) \
+ $(multilib_native_use_with jemalloc) \
+ $(multilib_native_use_with xml libxml2)
+}
+
+multilib_src_install_all() {
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
new file mode 100644
index 000000000000..f18321b1817a
--- /dev/null
+++ b/net-libs/nodejs/Manifest
@@ -0,0 +1,23 @@
+AUX gentoo-global-npm-config.patch 1511 SHA256 a6575286a4f0c3b4db07c2f353d2e6c093eb3caba6cd0d3b11e546734b16bfad SHA512 b6c8bf88bd44d5461cbad0354273a6f964429d1cde48ab4c8bef9f50452de22bfc5d15707c5c9adc2a0d8000a6b1be4cffdee039618b627fb0d291886309cc3f WHIRLPOOL 7e748dd02dd248fde544ee088fe4e7b295919f5da1fcaf9511071c716d073ed45380831677082f9748c3802b7bdc6004b78275f39d29f1396330a1b196c5f1e1
+AUX nodejs-8.4.0-shared-nghttp2.patch 3143 SHA256 024374b359044dad8737fcbaccbb6f4968077d3cb8815fbccfd92ad890a4736f SHA512 ccdc2f36114775f497de8487eb187b11d50b6eb3b213d96837029803e864f8faac4a8f0f7d3bdfb42e038ac68ce55dbf6992df1bca5beb9fc9d14a18bd9bb878 WHIRLPOOL 1ca6f20c6f83925ef85437936b068dbf57ebc1d71e319f386c5d3b10f138d527178f74da41381ec5e0979206f7befe3120d7fa1f8eb7c7bbaabdc1e860195937
+DIST node-v0.12.17.tar.gz 19938029 SHA256 ddea5e253812f167608fbdda6ff29ffc30dc6f669cf2f6e4249938d28b9cd44d SHA512 86c22b17f57018083b07096beeca10e6dfa7569b3d1a25a3b12dd82796db3c9536e6136e0dd0ff62b4de116413f3722b36ce396faa46d8640f80ab09ccfcbca7 WHIRLPOOL 5fba1f95de0a7dbda7e7649bc0f8553cd8595eb87cd27062efbdc59a54673e7e1e6f80191abede683a686043a81d82b76e141aa765b98e3dc39e015aca98e41f
+DIST node-v4.6.1.tar.xz 13295568 SHA256 fe2a85df8758001878abb5bbaf17a6b6cdc12b3e465b1d3bace83b37fdf0345a SHA512 4eb2acbe13ee2373922420e3238be63d2108dacba640438bddbdea12ec2de9c655f33db611e4c0654b66bf4fdb844a7b6554a823aac73171b17599096856abdb WHIRLPOOL a6d21cce7ab8c430528682f78a6e6492f753c87949b7b1bdc15dc02911559cd89deb45329c2ba32da57b776dd4feaabec8a3e7a59a78094cfb079261b6475c76
+DIST node-v6.11.2.tar.xz 15665456 SHA256 04af4992238b19124ea56f1bcfda36827613a24eb3b00fc3b50f261a415a26e4 SHA512 9ea203e402b5d57fb5d30cc4e9e59e9dac5303134d687888ee5e7e004388054086d82dd9097408bb3cfb25826dcefe720b75052542f8c88867de382efe91b3b8 WHIRLPOOL af8467f21b812fa2f6e723dbd7be2579257175cc7a826a1863044b69f8384a74bd9da2a7096cf29b6f1e7cfbb439ce179a66c45e063edd60f456dad0410aa42a
+DIST node-v6.11.3.tar.xz 15684012 SHA256 5f09b77010cb3ec4e321ecdc30beb6b49d8a2843155b7f0ad97202ec308ab6bc SHA512 4afad49499d05f97ba45a27ea64d5ab514b276af5cf3b362a9c418dda8619dbf22baa1c958c2ee48ca576ec350f45f2fe02bf18aee91d82d44126c92e9ba547d WHIRLPOOL 65f1478794ad4f183cc7937987a9add24271c1641d6ab00d337c4415da606bde8378b557d2ac923f1d50b87b4aa06ba3b79488ed49a6f40e54f6c5852d41eb75
+DIST node-v6.9.4.tar.xz 15519264 SHA256 c51d7c61db40455d57428abcadc7eb0f0a08a8878cb1d8ea3c1e211c54532c35 SHA512 86d3e2889031c2b50c021bd3fd63194c2c22c44291d51dff1b5e1652b01853c09d2880c2f58fdad062e3e2a3f637a3f0d78dac66b835b676790cf272e64f8dce WHIRLPOOL d1bcf488ed1aae7959303b988c9467fc5d0930166c7bfe0e441392763e19f788496971c07560a9f62586bbb2be7ce741ece8346140d665d29593b9b8f649b002
+DIST node-v7.10.0.tar.xz 16751724 SHA256 dc34dd15524ba821ffcae7b245eabe8631e2614d5e3cb8ff08fbfdadf5919f21 SHA512 d9bb8b4e17c41a9726bba0e32f0cbcdec9cde920457242a7170c8f8fe37aed21d77a0340b7b9bbca2e60cfe5a41da65f0ce7dc295b0a7a823c9e863bd232171b WHIRLPOOL f7cd2a6a4aa6a5dc6c5f59be6897c13f4bdd1230e1324d97704ed32efcc65685d0d5b180e0f0018f9564bd4f4e6df43c0b90a289d5e5a92937e60a13d0281bf3
+DIST node-v8.2.1.tar.xz 17897168 SHA256 02c46d8914540eea73d0ad33bf9f371a28aa0dc8c5d740948491fef044ad8c8b SHA512 8d84998e8408b89e003929d7fce89c31703aea59ca5826246422d4d1935941730b0b9907a8a9af088ec8ccad60d8919da04104037083a2363daf118682a3b82a WHIRLPOOL dbbf430699f88b1c86b1a818b9c2fe424d3c63eb36c2b85b54de78954d8f01dc47a2f66a6cecf30c43e8ab29236f0a7509a26afc4586501abcda4494a78a21c7
+DIST node-v8.4.0.tar.xz 18265792 SHA256 5d5aa2a101dcc617231a475812eb8ed87cac21491f1dcc7997b9dd463563f361 SHA512 7d0d97ca64db0bf87f1892490f8b7758a879d2ac22532b69e8e0ee5c04bd11073fd917353eeeabdcfbebc83540715d8c520ec9bf9ea1afc82d8ee7b6caf819f1 WHIRLPOOL 23f50be06615350564577349f6388d6563cbcae9e9b0229133baaab30852be7c759fbb4f265816ab999fa2bfa8666b47fb3ba438e09beff8e030fa2db547001c
+DIST node-v8.5.0.tar.xz 18326412 SHA256 e1cde5d8e5049e7e1b61aef128f26162059d885dc8cab5014bf5cbf693f75c3c SHA512 7ef83a6da7ba9d61c19df0530dfee7b769c0bc7ab066fc29fdb54c9b09085a3536699c7c92889cea8fbf3d6241cc66c383cd351451da8019fea4e0d25d043f3d WHIRLPOOL 63576159748e9423a0b1df7d032d4f5edc23d33f22fd76d3dc0f0b4804606abf57011097dcf4fd2d3707b22babe69bcd976133b7450558925b5d679872abd382
+EBUILD nodejs-0.12.17.ebuild 3425 SHA256 4dbd8abed45e7a0266b9cd379bb95e205e8edf006e57711dde176ba954b996a8 SHA512 5507119d2bf420f8096c15258dded17cd5bc5470aa36d8ca1ef4324c183536580965b5c0b8022f22ebce509621d84ab2423d768e2c5d8e2268a40f622ead8075 WHIRLPOOL fee27aa0ccbcc6e8d827de12e49fb1e549b2784b9edf6e19304ccc24ad243a28556d01fdc046a74e9023ebf394d0e47f2e60442b2c23b0b49c7c169a66beeb11
+EBUILD nodejs-4.6.1.ebuild 4435 SHA256 0ffa9d22c3264d0bcd11ad6fddba92c55257d9da1a732ed70421a844f09857b3 SHA512 989f6f6375723a6de89aa9f593585557032f4794be80e39d68fb2fb7dab6de0fbaf6b2b56205ac21f3f9bb2b2cae92505efc9b644f99fa33f24cfbfa469fc358 WHIRLPOOL c34ce2816c957622d87abbd54f04b8763f1bdb9caada6d909e761ab024d70d2a04a41a0714339da42d445a018d9a0b9830d2e1849b00de14b8c2d5a7ffb6cab9
+EBUILD nodejs-6.11.2.ebuild 6094 SHA256 7bfa8c4347e75e4d753084aa97aa9c966184312469aaaa78fbadf3ff4702babd SHA512 4a9968d5e5e2ffea375208e3b91ee972b14ffd8dcbe24b77bc86990bc8f863831d3c96de8764368d37163462009bc0ef47ac96c528f0b04cc4554fbfc59a80b2 WHIRLPOOL 874ad9b6bdda3b115170bb811ebec675f87daeeadd0812b5f0caf042570bb26b49baa77db32742a3714e5478ffebf40fa5fba4c3ac2da82f72aeb19683ce5764
+EBUILD nodejs-6.11.3.ebuild 6094 SHA256 7bfa8c4347e75e4d753084aa97aa9c966184312469aaaa78fbadf3ff4702babd SHA512 4a9968d5e5e2ffea375208e3b91ee972b14ffd8dcbe24b77bc86990bc8f863831d3c96de8764368d37163462009bc0ef47ac96c528f0b04cc4554fbfc59a80b2 WHIRLPOOL 874ad9b6bdda3b115170bb811ebec675f87daeeadd0812b5f0caf042570bb26b49baa77db32742a3714e5478ffebf40fa5fba4c3ac2da82f72aeb19683ce5764
+EBUILD nodejs-6.9.4.ebuild 6073 SHA256 150fdc85c99024a7280f3b5c23f11c9a5c7f99ac5a075fccaa8c1dfd4f52865d SHA512 aefc407c057e7c660ed0be4adc5056c9130b95adb63b22bd55d06c4981d70d53d82a65350df4778684c597de5b5bf6b2f8cd28b0ce61de4914c4db02ac3461f7 WHIRLPOOL 58aabc7cc764c8a47538dff634bdb295a2c93ab646ae544cbd61fb32961a465a5da65cb9a068ff837675cd5f41ef8c769d1e06a184740e7fc86819fb4e1d1be2
+EBUILD nodejs-7.10.0.ebuild 6152 SHA256 dd32cd53dd8f66dacd397db141dea21d2030bc6dc79719714541440734e9ec2c SHA512 70b272065b7dcec036d37bea63c3047c848219eac5d3b0086689cece1c12315d6cbdfb90fded78ce117a23f82aec5f7db6098019f47b53715ee3b6f35d97777f WHIRLPOOL 646f190d8775b75419f6ced6894c442387d4209148f855109ba9b1d6dc7ac7eacbaa7ef698709b929a985d4d15c19b2f9e86e2a6cf0ff019b601d081d6cdafb3
+EBUILD nodejs-8.2.1.ebuild 6152 SHA256 dd32cd53dd8f66dacd397db141dea21d2030bc6dc79719714541440734e9ec2c SHA512 70b272065b7dcec036d37bea63c3047c848219eac5d3b0086689cece1c12315d6cbdfb90fded78ce117a23f82aec5f7db6098019f47b53715ee3b6f35d97777f WHIRLPOOL 646f190d8775b75419f6ced6894c442387d4209148f855109ba9b1d6dc7ac7eacbaa7ef698709b929a985d4d15c19b2f9e86e2a6cf0ff019b601d081d6cdafb3
+EBUILD nodejs-8.4.0.ebuild 6236 SHA256 486d66ddf4e938e3a6d34191c20ec0eef9833ac52c7a92b79fc83a7c45503908 SHA512 c6d4ed336aed843bec749b6e83af527d586fb6378904a2f3b0971d48269ec1584efc7f8fa01aa5520b6751b419e9b503d2536a0b53a1dc37a9de3ceaddb5fd6b WHIRLPOOL 75f75f2eb4b39a6690f22cc34ebf14d81f06aa4ef0c43215ae165f6c371718e2e8a3362a70921ee1fb23b58475d97e1d90ed1c89bc23de9949d79aadb426bda9
+EBUILD nodejs-8.5.0.ebuild 6245 SHA256 5933fe6f7092a60264171773f9bc442c5dad97610e82e2838f0181ebef256b7c SHA512 67d9bded8b6615fa5cbc30ff35c67facdcad32cea81fd473fbf312cd21b4c68213d329274bc5340bad1b7e3cf2e444743fda5cf22df3f11622679661e2e6cdc1 WHIRLPOOL 9aad22b07b82c2a25cbe75f3897de7fa2451f6c25f79e13e9684f6cae7cd1e3fb317c3fd8ec63492437b7af5b658b7333a4a4dcea9fada6153e5df22233316a1
+MISC ChangeLog 16331 SHA256 16702a204cff5e2c71e5b982f323aa3aeaa29a6f3b2da7d23745b81a7f9e01bc SHA512 a98fae5176a945e301bb763d80c44c641295dabdd8cd6d8226106db206b5e3d90654f3b9d98f5adb2291218c97c1707daec05f68f5d1036edba0129c5d86169d WHIRLPOOL 7a409b0f4f81d549f26f777325c4149a645e275fd83b5128252dd27596654e6800454692664e3cf5d41030794215e8e39cbc05ff3cd6db7bd681a12a96eeffec
+MISC ChangeLog-2015 23934 SHA256 354bd9c41192f651dd4426b236bc63a6bb41ea76831855a0ec00550a369a1b97 SHA512 28421b67fa37d71d97f976bd938cdaded4c994c08fa68d469b1d193a4cb380da633acb352cdcbda0f4cdfaf6cf671c82132c3e64bb48721df9d78843bcf49d74 WHIRLPOOL 65cad5043c8d83e0d342c1e593a7c0eb2d2400968507ef48e2de0384baab13861c99ed7e44cdf41eb6027826b174695be598d77077587a01ce96adbb43a5b633
+MISC metadata.xml 749 SHA256 7bd1463235daf323e99518809d179f158263c5b702cb3b06433e33527a78f0ba SHA512 6b1115136449fad2edd373b2b853874b54da2dfab5a30a36f54bd8c0ac61636139f3c59bbd4618460c725bf9981c71731c33ccb07900c38c58bf4b9511254ee3 WHIRLPOOL 3bb964d5b3a51c2895fdf5c0d6cfcde5391f8cabf4f559e78c0988558f14c6c026d9523a89e14a8d8ff605d33a39982884d85397b6871aec4d5a862b2b3e2777
diff --git a/net-libs/nodejs/files/gentoo-global-npm-config.patch b/net-libs/nodejs/files/gentoo-global-npm-config.patch
new file mode 100644
index 000000000000..e7346b826852
--- /dev/null
+++ b/net-libs/nodejs/files/gentoo-global-npm-config.patch
@@ -0,0 +1,40 @@
+commit 46ac7cd4229eac5e0182ab62b7ed844c24a8c52e
+Author: Johan Bergström <bugs@bergstroem.nu>
+Date: Wed Feb 10 22:45:59 2016 +1100
+
+ npm: set global config folder to /etc/npm
+
+ npm previously assumed that the global config path would be
+ based on $prefix/etc. Since gentoo installs nodejs into /usr,
+ this means we're also creating /usr/etc which is less desirable.
+
+ This patch will likely never go upstream.
+
+diff --git a/deps/npm/lib/config/core.js b/deps/npm/lib/config/core.js
+index d1306eb..bd2ef89 100644
+--- a/deps/npm/lib/config/core.js
++++ b/deps/npm/lib/config/core.js
+@@ -150,16 +150,14 @@ function load_ (builtin, rc, cli, cb) {
+ // Eg, `npm config get globalconfig --prefix ~/local` should
+ // return `~/local/etc/npmrc`
+ // annoying humans and their expectations!
+- if (conf.get('prefix')) {
+- var etc = path.resolve(conf.get('prefix'), 'etc')
+- mkdirp(etc, function () {
+- defaults.globalconfig = path.resolve(etc, 'npmrc')
+- defaults.globalignorefile = path.resolve(etc, 'npmignore')
+- afterUserContinuation()
+- })
+- } else {
++
++ // gentoo deviates wrt global config; store in /etc/npm
++ var globalconfig = path.resolve('/etc', 'npm')
++ mkdirp(globalconfig, function () {
++ defaults.globalconfig = path.resolve(globalconfig, 'npmrc')
++ defaults.globalignorefile = path.resolve(globalconfig, 'npmignore')
+ afterUserContinuation()
+- }
++ })
+ }
+
+ function afterUserContinuation () {
diff --git a/net-libs/nodejs/files/nodejs-8.4.0-shared-nghttp2.patch b/net-libs/nodejs/files/nodejs-8.4.0-shared-nghttp2.patch
new file mode 100644
index 000000000000..1f1a2e6ea636
--- /dev/null
+++ b/net-libs/nodejs/files/nodejs-8.4.0-shared-nghttp2.patch
@@ -0,0 +1,105 @@
+--- a/configure
++++ b/configure
+@@ -182,6 +182,27 @@
+ dest='shared_http_parser_libpath',
+ help='a directory to search for the shared http_parser DLL')
+
++shared_optgroup.add_option('--shared-nghttp2',
++ action='store_true',
++ dest='shared_nghttp2',
++ help='link to a shared nghttp2 DLL instead of static linking')
++
++shared_optgroup.add_option('--shared-nghttp2-includes',
++ action='store',
++ dest='shared_nghttp2_includes',
++ help='directory containing nghttp2 header files')
++
++shared_optgroup.add_option('--shared-nghttp2-libname',
++ action='store',
++ dest='shared_nghttp2_libname',
++ default='nghttp2',
++ help='alternative lib name to link to [default: %default]')
++
++shared_optgroup.add_option('--shared-nghttp2-libpath',
++ action='store',
++ dest='shared_nghttp2_libpath',
++ help='a directory to search for the shared nghttp2 DLL')
++
+ shared_optgroup.add_option('--shared-libuv',
+ action='store_true',
+ dest='shared_libuv',
+@@ -1381,6 +1381,7 @@
+ configure_node(output)
+ configure_library('zlib', output)
+ configure_library('http_parser', output)
++configure_library('nghttp2', output)
+ configure_library('libuv', output)
+ configure_library('libcares', output)
+ # stay backwards compatible with shared cares builds
+--- a/node.gyp
++++ b/node.gyp
+@@ -14,6 +14,7 @@
+ 'node_module_version%': '',
+ 'node_shared_zlib%': 'false',
+ 'node_shared_http_parser%': 'false',
++ 'node_shared_nghttp2%': 'false',
+ 'node_shared_cares%': 'false',
+ 'node_shared_libuv%': 'false',
+ 'node_use_openssl%': 'true',
+@@ -149,10 +150,17 @@
+ 'type': '<(node_target_type)',
+
+ 'dependencies': [
+- 'node_js2c#host',
+- 'deps/nghttp2/nghttp2.gyp:nghttp2'
++ 'node_js2c#host'
+ ],
+
++ 'conditions': [
++ [ 'node_shared_nghttp2=="false"', {
++ 'dependencies': [
++ 'deps/nghttp2/nghttp2.gyp:nghttp2'
++ ]
++ }]
++ ],
++
+ 'includes': [
+ 'node.gypi'
+ ],
+@@ -161,8 +161,7 @@
+ 'src',
+ 'tools/msvs/genfiles',
+ 'deps/uv/src/ares',
+- '<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h
+- 'deps/nghttp2/lib/includes'
++ '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
+ ],
+
+ 'sources': [
+@@ -275,9 +274,7 @@
+ 'NODE_PLATFORM="<(OS)"',
+ 'NODE_WANT_INTERNALS=1',
+ # Warn when using deprecated V8 APIs.
+- 'V8_DEPRECATION_WARNINGS=1',
+- # We're using the nghttp2 static lib
+- 'NGHTTP2_STATICLIB'
++ 'V8_DEPRECATION_WARNINGS=1'
+ ],
+ },
+ {
+@@ -687,6 +684,15 @@
+ 'deps/http_parser/http_parser.gyp:http_parser'
+ ]
+ }],
++ [ 'node_shared_nghttp2=="false"', {
++ 'dependencies': [
++ 'deps/nghttp2/nghttp2.gyp:nghttp2'
++ ],
++ 'defines': [
++ # We're using the nghttp2 static lib
++ 'NGHTTP2_STATICLIB'
++ ]
++ }],
+ [ 'node_shared_libuv=="false"', {
+ 'dependencies': [
+ 'deps/uv/uv.gyp:libuv'
diff --git a/net-libs/nodejs/metadata.xml b/net-libs/nodejs/metadata.xml
new file mode 100644
index 000000000000..ddbfaa7ad24d
--- /dev/null
+++ b/net-libs/nodejs/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bugs@bergstroem.nu</email>
+ <name>Johan Bergstroem</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="npm">Enable NPM package manager</flag>
+ <flag name="snapshot">Enable snapshot creation for faster startup</flag>
+ <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/nodejs/nodejs-0.12.17.ebuild b/net-libs/nodejs/nodejs-0.12.17.ebuild
new file mode 100644
index 000000000000..01b3cb2234d3
--- /dev/null
+++ b/net-libs/nodejs/nodejs-0.12.17.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# has known failures. sigh.
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="Evented IO for V8 Javascript"
+HOMEPAGE="http://nodejs.org/"
+SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86 ~x64-macos"
+IUSE="debug icu +npm +snapshot +ssl"
+
+RDEPEND="icu? ( dev-libs/icu )
+ ${PYTHON_DEPS}
+ ssl? ( dev-libs/openssl:0=[-bindist] )
+ >=net-libs/http-parser-2.6.1
+ >=dev-libs/libuv-1.4.2"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1 # Verbose build
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+}
+
+src_configure() {
+ local myconf=()
+ local myarch=""
+ use debug && myconf+=( --debug )
+ use icu && myconf+=( --with-intl=system-icu )
+ use npm || myconf+=( --without-npm )
+ use snapshot || myconf+=( --without-snapshot )
+ use ssl || myconf+=( --without-ssl )
+
+ case ${ABI} in
+ x86) myarch="ia32";;
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ *) die "Unrecognized ARCH ${ARCH}";;
+ esac
+
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ --shared-openssl \
+ --shared-libuv \
+ --shared-http-parser \
+ --shared-zlib \
+ --without-dtrace \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${ED}" PREFIX=/usr
+ use npm && dodoc -r "${LIBDIR}"/node_modules/npm/html
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die
+ find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete
+
+ # set up a symlink structure that npm expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ pax-mark -m "${ED}"/usr/bin/node
+}
+
+src_test() {
+ declare -xl TESTTYPE="${BUILDTYPE}"
+ "${PYTHON}" tools/test.py --mode=${TESTTYPE} -J message simple || die
+}
+
+pkg_postinst() {
+ einfo "When using node-gyp to install native modules, you can avoid"
+ einfo "having to download the full tarball by doing the following:"
+ einfo ""
+ einfo "node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-4.6.1.ebuild b/net-libs/nodejs/nodejs-4.6.1.ebuild
new file mode 100644
index 000000000000..2503970fda61
--- /dev/null
+++ b/net-libs/nodejs/nodejs-4.6.1.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug icu +npm snapshot +ssl test"
+
+RDEPEND="icu? ( >=dev-libs/icu-55:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.5.2:=
+ >=dev-libs/libuv-1.8.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1 # Verbose build
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ epatch_user
+}
+
+src_configure() {
+ local myarch=""
+ local myconf+=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) die "Unrecognized ARCH ${ARCH}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ --without-dtrace \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${ED}" PREFIX=/usr
+ if use npm; then
+ dodoc -r "${LIBDIR}"/node_modules/npm/html
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die
+ find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete || die
+ fi
+
+ # set up a symlink structure that npm expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ pax-mark -m "${ED}"/usr/bin/node
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "When using node-gyp to install native modules, you can avoid"
+ einfo "having to download the full tarball by doing the following:"
+ einfo ""
+ einfo "node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-6.11.2.ebuild b/net-libs/nodejs/nodejs-6.11.2.ebuild
new file mode 100644
index 000000000000..67c451917337
--- /dev/null
+++ b/net-libs/nodejs/nodejs-6.11.2.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl test"
+
+RDEPEND="icu? ( >=dev-libs/icu-56:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.9.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+ "${FILESDIR}"/gentoo-global-npm-config.patch
+)
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid writing a depfile, not useful
+ sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ default
+}
+
+src_configure() {
+ local myarch=""
+ local myconf=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) myarch="${ABI}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ --without-dtrace \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${D}"
+ pax-mark -m "${ED}"usr/bin/node
+
+ # set up a symlink structure that node-gyp expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ if use doc; then
+ # Patch docs to make them offline readable
+ for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
+ sed -i '/fonts.googleapis.com/ d' $i;
+ done
+ # Install docs!
+ dohtml -r "${S}"/doc/*
+ fi
+
+ if use npm; then
+ dodir /etc/npm
+
+ # Install bash completion for `npm`
+ # We need to temporarily replace default config path since
+ # npm otherwise tries to write outside of the sandbox
+ local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
+ local tmp_npm_completion_file="$(emktemp)"
+ "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
+ newbashcomp "${tmp_npm_completion_file}" npm
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+
+ # Move man pages
+ doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
+
+ # Clean up
+ rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
+
+ local find_exp="-or -name"
+ local find_name=()
+ for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
+ ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
+ "*.md" "*.markdown" "*.bat" "*.cmd"; do
+ find_name+=( ${find_exp} "${match}" )
+ done
+
+ # Remove various development and/or inappropriate files and
+ # useless docs of dependend packages.
+ find "${LIBDIR}"/node_modules \
+ \( -type d -name examples \) -or \( -type f \( \
+ -iname "LICEN?E*" \
+ "${find_name[@]}" \
+ \) \) -exec rm -rf "{}" \;
+ fi
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "The global npm config lives in /etc/npm. This deviates slightly"
+ einfo "from upstream which otherwise would have it live in /usr/etc/."
+ einfo ""
+ einfo "Protip: When using node-gyp to install native modules, you can"
+ einfo "avoid having to download extras by doing the following:"
+ einfo "$ node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-6.11.3.ebuild b/net-libs/nodejs/nodejs-6.11.3.ebuild
new file mode 100644
index 000000000000..67c451917337
--- /dev/null
+++ b/net-libs/nodejs/nodejs-6.11.3.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl test"
+
+RDEPEND="icu? ( >=dev-libs/icu-56:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.9.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+ "${FILESDIR}"/gentoo-global-npm-config.patch
+)
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid writing a depfile, not useful
+ sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ default
+}
+
+src_configure() {
+ local myarch=""
+ local myconf=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) myarch="${ABI}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ --without-dtrace \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${D}"
+ pax-mark -m "${ED}"usr/bin/node
+
+ # set up a symlink structure that node-gyp expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ if use doc; then
+ # Patch docs to make them offline readable
+ for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
+ sed -i '/fonts.googleapis.com/ d' $i;
+ done
+ # Install docs!
+ dohtml -r "${S}"/doc/*
+ fi
+
+ if use npm; then
+ dodir /etc/npm
+
+ # Install bash completion for `npm`
+ # We need to temporarily replace default config path since
+ # npm otherwise tries to write outside of the sandbox
+ local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
+ local tmp_npm_completion_file="$(emktemp)"
+ "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
+ newbashcomp "${tmp_npm_completion_file}" npm
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+
+ # Move man pages
+ doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
+
+ # Clean up
+ rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
+
+ local find_exp="-or -name"
+ local find_name=()
+ for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
+ ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
+ "*.md" "*.markdown" "*.bat" "*.cmd"; do
+ find_name+=( ${find_exp} "${match}" )
+ done
+
+ # Remove various development and/or inappropriate files and
+ # useless docs of dependend packages.
+ find "${LIBDIR}"/node_modules \
+ \( -type d -name examples \) -or \( -type f \( \
+ -iname "LICEN?E*" \
+ "${find_name[@]}" \
+ \) \) -exec rm -rf "{}" \;
+ fi
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "The global npm config lives in /etc/npm. This deviates slightly"
+ einfo "from upstream which otherwise would have it live in /usr/etc/."
+ einfo ""
+ einfo "Protip: When using node-gyp to install native modules, you can"
+ einfo "avoid having to download extras by doing the following:"
+ einfo "$ node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-6.9.4.ebuild b/net-libs/nodejs/nodejs-6.9.4.ebuild
new file mode 100644
index 000000000000..cc671a01d90b
--- /dev/null
+++ b/net-libs/nodejs/nodejs-6.9.4.ebuild
@@ -0,0 +1,192 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86 ~amd64-linux ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl test"
+
+RDEPEND="icu? ( >=dev-libs/icu-56:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.9.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+ "${FILESDIR}"/gentoo-global-npm-config.patch
+)
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid writing a depfile, not useful
+ sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ default
+}
+
+src_configure() {
+ local myarch=""
+ local myconf=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) myarch="${ABI}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ --without-dtrace \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${D}"
+ pax-mark -m "${ED}"usr/bin/node
+
+ # set up a symlink structure that node-gyp expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ if use doc; then
+ # Patch docs to make them offline readable
+ for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
+ sed -i '/fonts.googleapis.com/ d' $i;
+ done
+ # Install docs!
+ dohtml -r "${S}"/doc/*
+ fi
+
+ if use npm; then
+ dodir /etc/npm
+
+ # Install bash completion for `npm`
+ # We need to temporarily replace default config path since
+ # npm otherwise tries to write outside of the sandbox
+ local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
+ local tmp_npm_completion_file="$(emktemp)"
+ "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
+ newbashcomp "${tmp_npm_completion_file}" npm
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+
+ # Move man pages
+ doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
+
+ # Clean up
+ rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
+
+ local find_exp="-or -name"
+ local find_name=()
+ for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
+ ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
+ "*.md" "*.markdown" "*.bat" "*.cmd"; do
+ find_name+=( ${find_exp} "${match}" )
+ done
+
+ # Remove various development and/or inappropriate files and
+ # useless docs of dependend packages.
+ find "${LIBDIR}"/node_modules \
+ \( -type d -name examples \) -or \( -type f \( \
+ -iname "LICEN?E*" \
+ "${find_name[@]}" \
+ \) \) -exec rm -rf "{}" \;
+ fi
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "The global npm config lives in /etc/npm. This deviates slightly"
+ einfo "from upstream which otherwise would have it live in /usr/etc/."
+ einfo ""
+ einfo "Protip: When using node-gyp to install native modules, you can"
+ einfo "avoid having to download extras by doing the following:"
+ einfo "$ node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-7.10.0.ebuild b/net-libs/nodejs/nodejs-7.10.0.ebuild
new file mode 100644
index 000000000000..5144cf86d427
--- /dev/null
+++ b/net-libs/nodejs/nodejs-7.10.0.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test"
+
+RDEPEND="icu? ( >=dev-libs/icu-56:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.11.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ systemtap? ( dev-util/systemtap )
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+ "${FILESDIR}"/gentoo-global-npm-config.patch
+)
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid writing a depfile, not useful
+ sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ default
+}
+
+src_configure() {
+ local myarch=""
+ local myconf=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) myarch="${ABI}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ $(use_with systemtap dtrace) \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${D}"
+ pax-mark -m "${ED}"usr/bin/node
+
+ # set up a symlink structure that node-gyp expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ if use doc; then
+ # Patch docs to make them offline readable
+ for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
+ sed -i '/fonts.googleapis.com/ d' $i;
+ done
+ # Install docs!
+ dohtml -r "${S}"/doc/*
+ fi
+
+ if use npm; then
+ dodir /etc/npm
+
+ # Install bash completion for `npm`
+ # We need to temporarily replace default config path since
+ # npm otherwise tries to write outside of the sandbox
+ local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
+ local tmp_npm_completion_file="$(emktemp)"
+ "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
+ newbashcomp "${tmp_npm_completion_file}" npm
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+
+ # Move man pages
+ doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
+
+ # Clean up
+ rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
+
+ local find_exp="-or -name"
+ local find_name=()
+ for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
+ ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
+ "*.md" "*.markdown" "*.bat" "*.cmd"; do
+ find_name+=( ${find_exp} "${match}" )
+ done
+
+ # Remove various development and/or inappropriate files and
+ # useless docs of dependend packages.
+ find "${LIBDIR}"/node_modules \
+ \( -type d -name examples \) -or \( -type f \( \
+ -iname "LICEN?E*" \
+ "${find_name[@]}" \
+ \) \) -exec rm -rf "{}" \;
+ fi
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "The global npm config lives in /etc/npm. This deviates slightly"
+ einfo "from upstream which otherwise would have it live in /usr/etc/."
+ einfo ""
+ einfo "Protip: When using node-gyp to install native modules, you can"
+ einfo "avoid having to download extras by doing the following:"
+ einfo "$ node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-8.2.1.ebuild b/net-libs/nodejs/nodejs-8.2.1.ebuild
new file mode 100644
index 000000000000..5144cf86d427
--- /dev/null
+++ b/net-libs/nodejs/nodejs-8.2.1.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test"
+
+RDEPEND="icu? ( >=dev-libs/icu-56:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.11.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ systemtap? ( dev-util/systemtap )
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+ "${FILESDIR}"/gentoo-global-npm-config.patch
+)
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid writing a depfile, not useful
+ sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ default
+}
+
+src_configure() {
+ local myarch=""
+ local myconf=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) myarch="${ABI}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ $(use_with systemtap dtrace) \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${D}"
+ pax-mark -m "${ED}"usr/bin/node
+
+ # set up a symlink structure that node-gyp expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ if use doc; then
+ # Patch docs to make them offline readable
+ for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
+ sed -i '/fonts.googleapis.com/ d' $i;
+ done
+ # Install docs!
+ dohtml -r "${S}"/doc/*
+ fi
+
+ if use npm; then
+ dodir /etc/npm
+
+ # Install bash completion for `npm`
+ # We need to temporarily replace default config path since
+ # npm otherwise tries to write outside of the sandbox
+ local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
+ local tmp_npm_completion_file="$(emktemp)"
+ "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
+ newbashcomp "${tmp_npm_completion_file}" npm
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+
+ # Move man pages
+ doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
+
+ # Clean up
+ rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
+
+ local find_exp="-or -name"
+ local find_name=()
+ for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
+ ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
+ "*.md" "*.markdown" "*.bat" "*.cmd"; do
+ find_name+=( ${find_exp} "${match}" )
+ done
+
+ # Remove various development and/or inappropriate files and
+ # useless docs of dependend packages.
+ find "${LIBDIR}"/node_modules \
+ \( -type d -name examples \) -or \( -type f \( \
+ -iname "LICEN?E*" \
+ "${find_name[@]}" \
+ \) \) -exec rm -rf "{}" \;
+ fi
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "The global npm config lives in /etc/npm. This deviates slightly"
+ einfo "from upstream which otherwise would have it live in /usr/etc/."
+ einfo ""
+ einfo "Protip: When using node-gyp to install native modules, you can"
+ einfo "avoid having to download extras by doing the following:"
+ einfo "$ node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-8.4.0.ebuild b/net-libs/nodejs/nodejs-8.4.0.ebuild
new file mode 100644
index 000000000000..a86e5fe18f8c
--- /dev/null
+++ b/net-libs/nodejs/nodejs-8.4.0.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test"
+
+RDEPEND="icu? ( >=dev-libs/icu-56:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.11.0:=
+ net-libs/nghttp2
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ systemtap? ( dev-util/systemtap )
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+ "${FILESDIR}"/gentoo-global-npm-config.patch
+ "${FILESDIR}"/nodejs-8.4.0-shared-nghttp2.patch
+)
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid writing a depfile, not useful
+ sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ default
+}
+
+src_configure() {
+ local myarch=""
+ local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-openssl --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) myarch="${ABI}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ $(use_with systemtap dtrace) \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${D}"
+ pax-mark -m "${ED}"usr/bin/node
+
+ # set up a symlink structure that node-gyp expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ if use doc; then
+ # Patch docs to make them offline readable
+ for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
+ sed -i '/fonts.googleapis.com/ d' $i;
+ done
+ # Install docs!
+ dohtml -r "${S}"/doc/*
+ fi
+
+ if use npm; then
+ dodir /etc/npm
+
+ # Install bash completion for `npm`
+ # We need to temporarily replace default config path since
+ # npm otherwise tries to write outside of the sandbox
+ local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
+ local tmp_npm_completion_file="$(emktemp)"
+ "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
+ newbashcomp "${tmp_npm_completion_file}" npm
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+
+ # Move man pages
+ doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
+
+ # Clean up
+ rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
+
+ local find_exp="-or -name"
+ local find_name=()
+ for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
+ ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
+ "*.md" "*.markdown" "*.bat" "*.cmd"; do
+ find_name+=( ${find_exp} "${match}" )
+ done
+
+ # Remove various development and/or inappropriate files and
+ # useless docs of dependend packages.
+ find "${LIBDIR}"/node_modules \
+ \( -type d -name examples \) -or \( -type f \( \
+ -iname "LICEN?E*" \
+ "${find_name[@]}" \
+ \) \) -exec rm -rf "{}" \;
+ fi
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "The global npm config lives in /etc/npm. This deviates slightly"
+ einfo "from upstream which otherwise would have it live in /usr/etc/."
+ einfo ""
+ einfo "Protip: When using node-gyp to install native modules, you can"
+ einfo "avoid having to download extras by doing the following:"
+ einfo "$ node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/nodejs/nodejs-8.5.0.ebuild b/net-libs/nodejs/nodejs-8.5.0.ebuild
new file mode 100644
index 000000000000..337dc33d32c6
--- /dev/null
+++ b/net-libs/nodejs/nodejs-8.5.0.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
+
+DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
+HOMEPAGE="https://nodejs.org/"
+SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test"
+
+RDEPEND="icu? ( >=dev-libs/icu-56:= )
+ npm? ( ${PYTHON_DEPS} )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.14.1:=
+ >=net-libs/nghttp2-1.25.0
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ systemtap? ( dev-util/systemtap )
+ test? ( net-misc/curl )"
+
+S="${WORKDIR}/node-v${PV}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+ "${FILESDIR}"/gentoo-global-npm-config.patch
+ "${FILESDIR}"/nodejs-8.4.0-shared-nghttp2.patch
+)
+
+pkg_pretend() {
+ (use x86 && ! use cpu_flags_x86_sse2) && \
+ die "Your CPU doesn't support the required SSE2 instruction."
+
+ ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
+ die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
+}
+
+src_prepare() {
+ tc-export CC CXX PKG_CONFIG
+ export V=1
+ export BUILDTYPE=Release
+
+ # fix compilation on Darwin
+ # https://code.google.com/p/gyp/issues/detail?id=260
+ sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # Avoid writing a depfile, not useful
+ sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
+
+ # Avoid a test that I've only been able to reproduce from emerge. It doesnt
+ # seem sandbox related either (invoking it from a sandbox works fine).
+ # The issue is that no stdin handle is openened when asked for one.
+ # It doesn't really belong upstream , so it'll just be removed until someone
+ # with more gentoo-knowledge than me (jbergstroem) figures it out.
+ rm test/parallel/test-stdout-close-unref.js || die
+
+ # debug builds. change install path, remove optimisations and override buildtype
+ if use debug; then
+ sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
+ BUILDTYPE=Debug
+ fi
+
+ default
+}
+
+src_configure() {
+ local myarch=""
+ local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-openssl --shared-zlib )
+ use npm || myconf+=( --without-npm )
+ use icu && myconf+=( --with-intl=system-icu )
+ use snapshot && myconf+=( --with-snapshot )
+ use ssl || myconf+=( --without-ssl )
+ use debug && myconf+=( --debug )
+
+ case ${ABI} in
+ amd64) myarch="x64";;
+ arm) myarch="arm";;
+ arm64) myarch="arm64";;
+ ppc64) myarch="ppc64";;
+ x32) myarch="x32";;
+ x86) myarch="ia32";;
+ *) myarch="${ABI}";;
+ esac
+
+ GYP_DEFINES="linux_use_gold_flags=0
+ linux_use_bundled_binutils=0
+ linux_use_bundled_gold=0" \
+ "${PYTHON}" configure \
+ --prefix="${EPREFIX}"/usr \
+ --dest-cpu=${myarch} \
+ $(use_with systemtap dtrace) \
+ "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake -C out mksnapshot
+ pax-mark m "out/${BUILDTYPE}/mksnapshot"
+ emake -C out
+}
+
+src_install() {
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+ emake install DESTDIR="${D}"
+ pax-mark -m "${ED}"usr/bin/node
+
+ # set up a symlink structure that node-gyp expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ if use doc; then
+ # Patch docs to make them offline readable
+ for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
+ sed -i '/fonts.googleapis.com/ d' $i;
+ done
+ # Install docs!
+ dohtml -r "${S}"/doc/*
+ fi
+
+ if use npm; then
+ dodir /etc/npm
+
+ # Install bash completion for `npm`
+ # We need to temporarily replace default config path since
+ # npm otherwise tries to write outside of the sandbox
+ local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
+ local tmp_npm_completion_file="$(emktemp)"
+ "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
+ newbashcomp "${tmp_npm_completion_file}" npm
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+
+ # Move man pages
+ doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
+
+ # Clean up
+ rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
+ rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
+
+ local find_exp="-or -name"
+ local find_name=()
+ for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
+ ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
+ "*.md" "*.markdown" "*.bat" "*.cmd"; do
+ find_name+=( ${find_exp} "${match}" )
+ done
+
+ # Remove various development and/or inappropriate files and
+ # useless docs of dependend packages.
+ find "${LIBDIR}"/node_modules \
+ \( -type d -name examples \) -or \( -type f \( \
+ -iname "LICEN?E*" \
+ "${find_name[@]}" \
+ \) \) -exec rm -rf "{}" \;
+ fi
+}
+
+src_test() {
+ out/${BUILDTYPE}/cctest || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
+}
+
+pkg_postinst() {
+ einfo "The global npm config lives in /etc/npm. This deviates slightly"
+ einfo "from upstream which otherwise would have it live in /usr/etc/."
+ einfo ""
+ einfo "Protip: When using node-gyp to install native modules, you can"
+ einfo "avoid having to download extras by doing the following:"
+ einfo "$ node-gyp --nodedir /usr/include/node <command>"
+}
diff --git a/net-libs/ntirpc/Manifest b/net-libs/ntirpc/Manifest
new file mode 100644
index 000000000000..5c84f2fe16a8
--- /dev/null
+++ b/net-libs/ntirpc/Manifest
@@ -0,0 +1,8 @@
+AUX ntirpc-1.4.1-city-header.patch 1703 SHA256 48d9c682825a7f4e61c3b52fdd8980ad2f7ffcc096511f0123e0c84c076fb8ea SHA512 568abe507aafacb5a3a80fa7aca09379ff89a08386027aba26664f6f4dfc4fd7423fea5b9eb19de79e2daf2c37bfa246a7dac82a9cdaa2433a9171ac611b15f3 WHIRLPOOL 874fca9ea6e1f46787478534b1e12668cfc090f5a879c590edfb4feda0767901d5be6af5e6866b623d2a7e04f1c0f583e242af982b7664f8645a22bc3a018903
+DIST ntirpc-1.4.1.tar.gz 446025 SHA256 0e0a8a33f49ae91bccd73cfe7cc0ba33641df3cb9ed589dd5d81140a9d8838d0 SHA512 49a27dbd68b3e292437392acf2c010cc968b4d29b82b6e1a84e6c81a0c3979d3b38338212b391294b543ccd321073a33b16d7231ab68d797ead414d1b919137c WHIRLPOOL 01a287654bacf6a1647bb0847197ea7a427cfe6bdb6c379846ab9ca1dc872173edb8c899fe11511155fcddbafec24e4a6536607d4ce31c0b0476c872c8d41176
+DIST ntirpc-1.5.2.tar.gz 433706 SHA256 94751ea3a93c880516fc06d2805399440d92e348b6b78baf35436cda8f7d73d2 SHA512 5bbc48ab5bf2aba7e4c473a6faf586c1aef27a2009bf92082495456c436c707dfdcfc5e16a56c3e31ba3fb68afc3d2d47e8d27ed03be5c0be44e22e24a0cb68e WHIRLPOOL 4e00a07b9d905a1d622fefb3040a3868bf776aaabbdb79406f6569a94f4387716f76f110d21d3bc22693e0cb747d2082e0ba3321ccbfa6146155b295612a3bb6
+DIST ntirpc-1.5.3.tar.gz 434096 SHA256 59a2c9bab3d177112b1db55988cc2eacc1d6f6fc074c0c3a2afc2fc9a740a793 SHA512 bc879e5cb9c16bf76b173f09fac50475ed7616837a625abd433175610cc16399abba2294a8657aadc71d4f45b4b53c97414a77bd52b1f81df3dd990407957363 WHIRLPOOL 5faf60782b782479ffc839c28a51c6a4aa38e9227159ffef2e0470e63aa341b0ac90c85c2def83d4fc2f20b97ca698a357de55528fdd279d1aac17e9b2e02c42
+EBUILD ntirpc-1.4.1.ebuild 791 SHA256 a0836e4c4916c533b7396df2ee20ddeeffd647b0c2bf684ae2c3f3c6a0a1da7d SHA512 b455cdefaad312a7bc1112a4fa5f1cdee295f4c29ff502d87b5da9a68a397340483f8d6cbb1ca58eb27c8681b95f662d08bae1fdb1b45a4b1c3d01ca29aaf3e6 WHIRLPOOL 1e4281d51eee121b0592877b41b651d000da09bcfe6a17edbdad6d24881d4e8e301f1937417bac567a9a234c4499e22a91f8e37402acffcdd8659e5d19a96581
+EBUILD ntirpc-1.5.2.ebuild 724 SHA256 07388eb02ae5e45a69030c14fbd0f89a55e35c7b9f360d1de2a76fa77c22c262 SHA512 bd058c16d0b26ad849948f205b29c01f5380e402134784003a0e1c74b68de3d36c877d0cbd041b1179c3869fa16533782082a75d7de89ac340376d0e4684eccf WHIRLPOOL 1ff4c5d1d7a39b88ad742c8eb9887d3c9a4b04059fefa51c370a3627c469a8aec73646460126a6c0b15431a1fbf2357929c493b168038279daaf5b2d6f8a9889
+EBUILD ntirpc-1.5.3.ebuild 809 SHA256 39f51ee21ea44267a341b9b9606dfa497e29ac5cad7559f3c2375145c8830edf SHA512 925ee0874d29b8eed85c41d2162d1964f0e479583cad73cccadffb248826cf82ba4148eedadd839dd9134e622482a0233456d9594b3f1261e550704e0e1aa6fa WHIRLPOOL 8dbd92f25978333d10adc6e11153f59911d7b98cb093e9099e49a85703d865d07ffc4072f905fae28ecb76f8156394ccf4e194c1f43718413ff275345e60dee6
+MISC metadata.xml 427 SHA256 95627d274c89ec78981d725152516d71c90b8e525c2508b6b38456eb5fc58890 SHA512 99f5af46839fbf52e5217cf831a7a95fa3f5d501d61ff63488aa7989e0ec98151b2f94607a39f879e0e5b0ba79bc732ee7224a9e4196ff9a40fa13253ece0b0c WHIRLPOOL 23695a9cbcb15afc57eb4b0779502c518fc5f06926da0f8557890f8aa106f48854f14992793816c58a13e24028b4ffa612eae2a2cc9444b46ed2a3dda44b78cd
diff --git a/net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch b/net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch
new file mode 100644
index 000000000000..25c10e393797
--- /dev/null
+++ b/net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch
@@ -0,0 +1,60 @@
+From c2416e1996f694ea0cefb217f806e45931ef0b03 Mon Sep 17 00:00:00 2001
+From: Dylan Reid <dgreid@chromium.org>
+Date: Wed, 15 Feb 2017 12:31:55 -0800
+Subject: [PATCH] Make city.h includes consistent
+
+Most of the code base already uses <misc/city.h>. Modify the places
+that include "city.h" to follow that pattern. cmake doesn't add misc to
+the include paths passed to the compiler. I ran into "can't find
+city.h" errors when attempting to add an ebuild for gentoo.
+
+Change-Id: I1e07d82bbe58fbae4759263734ac22170220eeb7
+Signed-off-by: Dylan Reid <dgreid@chromium.org>
+---
+ ntirpc/misc/citycrc.h | 2 +-
+ src/city-test.c | 2 +-
+ src/citycrc.h | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/ntirpc/misc/citycrc.h b/ntirpc/misc/citycrc.h
+index 57069344f1f8..d3620158a5ca 100644
+--- a/ntirpc/misc/citycrc.h
++++ b/ntirpc/misc/citycrc.h
+@@ -34,7 +34,7 @@
+ #ifndef CITY_HASH_CRC_H_
+ #define CITY_HASH_CRC_H_
+
+-#include "city.h"
++#include <misc/city.h>
+
+ /* Hash function for a byte array. */
+ uint128 CityHashCrc128(const char *s, size_t len);
+diff --git a/src/city-test.c b/src/city-test.c
+index 03d98a2ba9ec..8b504dd5c57c 100644
+--- a/src/city-test.c
++++ b/src/city-test.c
+@@ -27,7 +27,7 @@
+ #include <string.h>
+ #include <stdio.h>
+
+-#include "city.h"
++#include <misc/city.h>
+ #ifdef __SSE4_2__
+ #include "citycrc.h"
+ #endif
+diff --git a/src/citycrc.h b/src/citycrc.h
+index f6cab94eff04..7998521b68cf 100644
+--- a/src/citycrc.h
++++ b/src/citycrc.h
+@@ -33,7 +33,7 @@
+ #ifndef CITY_HASH_CRC_H_
+ #define CITY_HASH_CRC_H_
+
+-#include "city.h"
++#include <misc/city.h>
+
+ /* Hash function for a byte array. */
+ uint128 CityHashCrc128(const char *s, size_t len);
+--
+2.11.1
+
diff --git a/net-libs/ntirpc/metadata.xml b/net-libs/ntirpc/metadata.xml
new file mode 100644
index 000000000000..e95e6d1fbaee
--- /dev/null
+++ b/net-libs/ntirpc/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name="gssapi">Include support for RPCSEC GSS</flag>
+ <flag name="rdma">Include support for RDMA RPC</flag>
+</use>
+<upstream>
+ <remote-id type="github">nfs-ganesha/ntirpc</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/net-libs/ntirpc/ntirpc-1.4.1.ebuild b/net-libs/ntirpc/ntirpc-1.4.1.ebuild
new file mode 100644
index 000000000000..61ddf68d5d6f
--- /dev/null
+++ b/net-libs/ntirpc/ntirpc-1.4.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit cmake-multilib
+
+DESCRIPTION="Transport Independent RPC library for nfs-ganesha"
+HOMEPAGE="https://github.com/linuxbox2/ntirpc"
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gssapi rdma"
+
+# Since the GSS option only controls some extra files to be enabled,
+# there's nothing to list in the depend string for it.
+RDEPEND="app-crypt/mit-krb5
+ rdma? ( sys-fabric/librdmacm )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-city-header.patch
+)
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_use gssapi GSS)
+ $(cmake-utils_use_use rdma RPC_RDMA)
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/ntirpc/ntirpc-1.5.2.ebuild b/net-libs/ntirpc/ntirpc-1.5.2.ebuild
new file mode 100644
index 000000000000..0f07315803a4
--- /dev/null
+++ b/net-libs/ntirpc/ntirpc-1.5.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="Transport Independent RPC library for nfs-ganesha"
+HOMEPAGE="https://github.com/linuxbox2/ntirpc"
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gssapi rdma"
+
+# Since the GSS option only controls some extra files to be enabled,
+# there's nothing to list in the depend string for it.
+RDEPEND="app-crypt/mit-krb5
+ rdma? ( sys-fabric/librdmacm )"
+DEPEND="${RDEPEND}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DUSE_GSS="$(usex gssapi)"
+ -DUSE_PRC_RDMA="$(usex rdma)"
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/ntirpc/ntirpc-1.5.3.ebuild b/net-libs/ntirpc/ntirpc-1.5.3.ebuild
new file mode 100644
index 000000000000..baba07b564de
--- /dev/null
+++ b/net-libs/ntirpc/ntirpc-1.5.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+COMMIT="fadcbdedb65998925482b26c88964b4213b9e1ac"
+DESCRIPTION="Transport Independent RPC library for nfs-ganesha"
+HOMEPAGE="https://github.com/linuxbox2/ntirpc"
+SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gssapi rdma"
+
+# Since the GSS option only controls some extra files to be enabled,
+# there's nothing to list in the depend string for it.
+RDEPEND="app-crypt/mit-krb5
+ rdma? ( sys-fabric/librdmacm )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DUSE_GSS="$(usex gssapi)"
+ -DUSE_PRC_RDMA="$(usex rdma)"
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/obby/Manifest b/net-libs/obby/Manifest
new file mode 100644
index 000000000000..5ca58de08a7f
--- /dev/null
+++ b/net-libs/obby/Manifest
@@ -0,0 +1,5 @@
+DIST obby-0.4.8.tar.gz 530525 SHA256 7d1d7ba6e800cea1b1a3c47d1189f959ef49a647ebe77170351e2dfd27b89b67 SHA512 39cd01e74f8df805bd6f077afab023f70f6da16d421dd0d12abc82972a9ec3e2563cc4ef6bf99c74b59f1c96e18eb3d5065f8b07add8ecb56c26601715f184d0 WHIRLPOOL bf00c4f68e64e2cf1fb39031f4f0ede396c9842aaecf94dcaed6d8f092fb35194e66475406963b510c66e0814706ceb710dd0a183ba876fe5c3109f1e685ea44
+EBUILD obby-0.4.8-r1.ebuild 767 SHA256 7c068b247e2c38df3d60e880fbfed7dd0e397efcfa4f94e5edaa1051fb6aa87c SHA512 a0ec62111bbc20b8c3bd82a63899af50000c7468fddf1e634c1f754d3ec7ef1f9cda9f95d356b0bc88d762dca11446dc1691030c492952dac511f7845f338974 WHIRLPOOL 2643712cc9a8f82df7d6a2e68d04048cdbb0e4b72c0f4ca66f322d604c24d3c545532948aa02f572bee66f133851643a3d39e1647aeaae2f1e41f80bcf2d7d29
+MISC ChangeLog 3031 SHA256 5461f285bc15c475c9ce69ea9afe46d7eb37cfbd59e95dd6d79bff8d105031c2 SHA512 ea8eb801d937ece8f7c0927c492c961834a614cfc822d45b5b0ee18c9ef9e16ae63513f77001c108974215936310bc835bac564196927831142ad61cae5f7c5f WHIRLPOOL 8695114e836b0358d5cb55211c048725568bfb01dd02a4da36970f9bb3161d2d26acb48e9b9db135dd66ea95e433cecbda57e3dde07c46afe83c796c544a9da0
+MISC ChangeLog-2015 5881 SHA256 dc27256da6eb4ea57786b0e7bd464fa07ea88129aa2b6aa3f0b8c7e88d1276f4 SHA512 6d99a50f4d32f03a3da147c5365d4eabdd468a918f921892a659561359b1711d6e1c4f62f33c3c78bd618d8ce5956b7d496b4e1f97c90145a25c36831253c0ab WHIRLPOOL 6255e9ebdc241eda624c864498b0076ab3453e3a3531d1333ed0604b81f5c04c9ebd48b765a8911d71d43799c2473d519cea466a0e92aac06a830970f6e25800
+MISC metadata.xml 385 SHA256 6ecc5a7fb3fbaaeb21093b184a2d83d5a686d17fc713ea286a60e14d1b502bf2 SHA512 51166e672fd655840ef07da2ce3d10e54aee8d823d46c0c8bd92b204c57ed995398c473aa021b884c7c3016dcedffd0ba9a49016fc02c85197dfc48c25658768 WHIRLPOOL 8a772fed6c5b526c6cef6276d55cf8895663bf95641779f955e8d3b8e5c344b8aff71890129a568b79a504ffbaca75bbd9142576174a07373479f670dba0b8ac
diff --git a/net-libs/obby/metadata.xml b/net-libs/obby/metadata.xml
new file mode 100644
index 000000000000..bc8832395288
--- /dev/null
+++ b/net-libs/obby/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 type="person">
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+ <longdescription>Framework to synchronize changes within a text documents to other participants of a session</longdescription>
+</pkgmetadata>
diff --git a/net-libs/obby/obby-0.4.8-r1.ebuild b/net-libs/obby/obby-0.4.8-r1.ebuild
new file mode 100644
index 000000000000..e60864110269
--- /dev/null
+++ b/net-libs/obby/obby-0.4.8-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit flag-o-matic multilib
+
+DESCRIPTION="Library for collaborative text editing"
+HOMEPAGE="http://gobby.0x539.de/"
+SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc x86"
+IUSE="ipv6 nls static-libs zeroconf"
+
+RDEPEND="
+ net-libs/net6
+ dev-libs/libsigc++:2
+ zeroconf? ( net-dns/avahi[dbus] )
+"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+"
+
+src_configure() {
+ append-cxxflags -std=c++11
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable nls) \
+ $(use_enable static-libs static) \
+ $(use_with zeroconf)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib${PN}.la
+}
diff --git a/net-libs/onion/Manifest b/net-libs/onion/Manifest
new file mode 100644
index 000000000000..69c9d1b7b746
--- /dev/null
+++ b/net-libs/onion/Manifest
@@ -0,0 +1,6 @@
+AUX protos.patch 1239 SHA256 cefb42b1bd00e6c421e59a4b8fc74bbb6633f8d8630da5a67e329ed1fc519bee SHA512 0dd7f95dab267b1df6279fc60869696d506b62756a863c86ade9725dc17e48bc4b71b984d53bce94e88448ab295673fbe27e7687e2807d32841d0ad5ddf6b018 WHIRLPOOL 339ceeb46df4fefc015e441c9b044661713ae28b0e39af774633e00e41c85ef47bc0ae0358d5d316fec80f7f9d9832e1aeaeac761042c1d55140e7d8bac4f649
+DIST onion-0.8.tar.gz 344347 SHA256 9708ba74b6727fa2fef219a821241f21a661ea9a30611213b0133e7effab1b17 SHA512 c40a36346de7dee6e98d0b5c38b5e133606046e29bacb06a0055a361013077ec0f6adb04dfcbf2f4ce0b72317c9ed918573299aed8760f069dcfd7c211a302d7 WHIRLPOOL 7bdb11b950cddcc948609b6e3d9278e3ba1a17956bf2997fa5aaa62b7c0a8b2b5a023aff3a49ef0625a9a53cf3289f2446655b2c2cf015568c46bfbde1306f29
+EBUILD onion-0.8.ebuild 1885 SHA256 88c7a0347cc76ea45cf2b4339e2aa06e9a3411f102f428444f9ea8efb7a410f9 SHA512 662dedd18af86bacbb769d1fc8588ff5277b61ae8ac9e3a6c84618a63f257bcbe6c9a9a58b58c180e6a3cd2172179b404dc5613ccbddfc6586c1ffa315a88153 WHIRLPOOL c3545523aff684a308a7ee90910975c1bb509c43c9f057861180ff562ea7bf816b383851f2e518b0da461720ed37dd3562a7aa71dfa03281ff4b85f260e8cb55
+EBUILD onion-9999.ebuild 1845 SHA256 ac9fe526e62473240b5d184447603e58f1e7214fef18c7b37d5d6a04aac61e83 SHA512 8cf4f821b41d7ea8fcfb17b50a3b96c45e29670b738392942f35e7abb9b01b8158b3d8e02094e6c66aa49116c79700197a4728deb80c0f8f0ec53a120f8753b8 WHIRLPOOL ce0340ad80827e6e0c805f60d8d6e72b441304f018e63ccc075f42f9806e4f4172ac10d7aaab7b720296ed24428b09e4b2bdba7a7a077feb44b628d73aa87e7c
+MISC ChangeLog 1375 SHA256 9b01c7f3465aa73524d180e204293826e291bdf81a55adf7f6c6f594bc370f17 SHA512 351c45859220f3db6efbb0421d7f468864abca9d145fa8a8a051edd4ca13c75e4632fed31976d5d4e7d8778472217a8900335173588d011b4148c2c9f0ac32ed WHIRLPOOL 4af52d8dee52ff31329fb6c08979793ae1cb6dc80f82a1574d2bb736a9180a386dfcb0b76d8c110b49329688a9852d7343b7a070def158b520fe3c2fd1c8d1c8
+MISC metadata.xml 736 SHA256 6148ca5a0511663a9ed44af5e0d2fb6c618e7c7d4e315d30471c4359ad573bca SHA512 90debf4cb11c1fa8d661f9b0e8fabc74cf1517cb0e7548ead60d3c918783e22f278921a1426885d0c23df50dcf2c65d21ad5c8ff06e8744f6e2ddf8c38b81efc WHIRLPOOL b1a3996b3abb402d0a8e9b8853db97b8c8b1932aa507c595dca8ebb52ab0912108700c442af94bb98f48649e6665dc1c1df3d6fae87822ab5f283eb33f5ab82c
diff --git a/net-libs/onion/files/protos.patch b/net-libs/onion/files/protos.patch
new file mode 100644
index 000000000000..59050a95c4e6
--- /dev/null
+++ b/net-libs/onion/files/protos.patch
@@ -0,0 +1,28 @@
+Prototypes do not match, fixes some build failures.
+
+Index: onion-0.8/src/onion/poller_libev.c
+===================================================================
+--- onion-0.8.orig/src/onion/poller_libev.c
++++ onion-0.8/src/onion/poller_libev.c
+@@ -75,7 +75,7 @@ void onion_poller_slot_set_timeout(onion
+ el->timeout=timeout_ms;
+ }
+ /// Sets the polling type: read/write/other. O_POLL_READ | O_POLL_WRITE | O_POLL_OTHER
+-void onion_poller_slot_set_type(onion_poller_slot *el, int type){
++void onion_poller_slot_set_type(onion_poller_slot *el, onion_poller_slot_type_e type){
+ el->type=0;
+ if (type&O_POLL_READ)
+ el->type|=EV_READ;
+Index: onion-0.8/src/onion/poller_libevent.c
+===================================================================
+--- onion-0.8.orig/src/onion/poller_libevent.c
++++ onion-0.8/src/onion/poller_libevent.c
+@@ -77,7 +77,7 @@ void onion_poller_slot_set_timeout(onion
+ el->timeout=timeout_ms;
+ }
+ /// Sets the polling type: read/write/other. O_POLL_READ | O_POLL_WRITE | O_POLL_OTHER
+-void onion_poller_slot_set_type(onion_poller_slot *el, int type){
++void onion_poller_slot_set_type(onion_poller_slot *el, onion_poller_slot_type_e type){
+ el->type=EV_PERSIST;
+ if (type&O_POLL_READ)
+ el->type|=EV_READ;
diff --git a/net-libs/onion/metadata.xml b/net-libs/onion/metadata.xml
new file mode 100644
index 000000000000..c10c1a61f399
--- /dev/null
+++ b/net-libs/onion/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 type="person">
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+ <use>
+ <flag name="libev">Use <pkg>dev-libs/libev</pkg> as thread poller instead of Linux's epoll.</flag>
+ <flag name="libevent">Use <pkg>dev-libs/libevent</pkg> as thread poller instead of libev or Linux's epoll.</flag>
+ <flag name="boehm-gc">Add <pkg>dev-libs/boehm-gc</pkg> support for memory allocations.</flag>
+ <flag name="redis">Add support for redis sessions.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">davidmoreno/onion</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/onion/onion-0.8.ebuild b/net-libs/onion/onion-0.8.ebuild
new file mode 100644
index 000000000000..c1b092d06142
--- /dev/null
+++ b/net-libs/onion/onion-0.8.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/davidmoreno/onion"
+fi
+
+inherit ${SCM} cmake-utils
+
+DESCRIPTION="C library to create simple HTTP servers and Web Applications"
+HOMEPAGE="http://www.coralbits.com/libonion/ https://github.com/davidmoreno/onion"
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64"
+ SRC_URI="https://github.com/davidmoreno/onion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="|| ( GPL-2+ Apache-2.0 ) AGPL-3"
+SLOT="0"
+IUSE="
+ gnutls pam png jpeg xml systemd sqlite boehm-gc
+ test examples cxx -libev -libevent
+ redis
+"
+
+RDEPEND="
+ gnutls? ( net-libs/gnutls dev-libs/libgcrypt:0= )
+ pam? ( virtual/pam )
+ png? ( media-libs/libpng:0= x11-libs/cairo )
+ jpeg? ( virtual/jpeg:0 )
+ xml? ( dev-libs/libxml2:2 sys-libs/zlib )
+ systemd? ( sys-apps/systemd )
+ sqlite? ( dev-db/sqlite:3 )
+ boehm-gc? ( dev-libs/boehm-gc )
+ libev? ( dev-libs/libev )
+ !libev? ( libevent? ( dev-libs/libevent ) )
+ redis? ( dev-libs/hiredis )
+"
+DEPEND="${RDEPEND}
+ test? ( net-misc/curl )
+"
+REQUIRED_USE="test? ( examples )"
+
+PATCHES=( "${FILESDIR}/protos.patch" )
+
+src_configure() {
+ use test || echo '' > tests/CMakeLists.txt
+ local mycmakeargs=(
+ "-DONION_USE_SSL=$(usex gnutls)"
+ "-DONION_USE_PAM=$(usex pam)"
+ "-DONION_USE_PNG=$(usex png)"
+ "-DONION_USE_JPEG=$(usex jpeg)"
+ "-DONION_USE_XML2=$(usex xml)"
+ "-DONION_USE_SYSTEMD=$(usex systemd)"
+ "-DONION_USE_SQLITE3=$(usex sqlite)"
+ "-DONION_USE_GC=$(usex boehm-gc)"
+ "-DONION_USE_TESTS=$(usex test)"
+ "-DONION_EXAMPLES=$(usex examples)"
+ "-DONION_USE_BINDINGS_CPP=$(usex cxx)"
+ "-DONION_USE_REDIS=$(usex redis)"
+ "-DONION_POLLER=$(usex libev libev "$(usex libevent libevent default)")"
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/onion/onion-9999.ebuild b/net-libs/onion/onion-9999.ebuild
new file mode 100644
index 000000000000..e815359b1035
--- /dev/null
+++ b/net-libs/onion/onion-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/davidmoreno/onion"
+fi
+
+inherit ${SCM} cmake-utils
+
+DESCRIPTION="C library to create simple HTTP servers and Web Applications"
+HOMEPAGE="http://www.coralbits.com/libonion/ https://github.com/davidmoreno/onion"
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64"
+ SRC_URI="https://github.com/davidmoreno/onion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="|| ( GPL-2+ Apache-2.0 ) AGPL-3"
+SLOT="0"
+IUSE="
+ gnutls pam png jpeg xml systemd sqlite boehm-gc
+ test examples cxx -libev -libevent
+ redis
+"
+
+RDEPEND="
+ gnutls? ( net-libs/gnutls dev-libs/libgcrypt:0= )
+ pam? ( virtual/pam )
+ png? ( media-libs/libpng:0= x11-libs/cairo )
+ jpeg? ( virtual/jpeg:0 )
+ xml? ( dev-libs/libxml2:2 sys-libs/zlib )
+ systemd? ( sys-apps/systemd )
+ sqlite? ( dev-db/sqlite:3 )
+ boehm-gc? ( dev-libs/boehm-gc )
+ libev? ( dev-libs/libev )
+ !libev? ( libevent? ( dev-libs/libevent ) )
+ redis? ( dev-libs/hiredis )
+"
+DEPEND="${RDEPEND}
+ test? ( net-misc/curl )
+"
+REQUIRED_USE="test? ( examples )"
+
+src_configure() {
+ use test || echo '' > tests/CMakeLists.txt
+ local mycmakeargs=(
+ "-DONION_USE_SSL=$(usex gnutls)"
+ "-DONION_USE_PAM=$(usex pam)"
+ "-DONION_USE_PNG=$(usex png)"
+ "-DONION_USE_JPEG=$(usex jpeg)"
+ "-DONION_USE_XML2=$(usex xml)"
+ "-DONION_USE_SYSTEMD=$(usex systemd)"
+ "-DONION_USE_SQLITE3=$(usex sqlite)"
+ "-DONION_USE_GC=$(usex boehm-gc)"
+ "-DONION_USE_TESTS=$(usex test)"
+ "-DONION_EXAMPLES=$(usex examples)"
+ "-DONION_USE_BINDINGS_CPP=$(usex cxx)"
+ "-DONION_USE_REDIS=$(usex redis)"
+ "-DONION_POLLER=$(usex libev libev "$(usex libevent libevent default)")"
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/opal/Manifest b/net-libs/opal/Manifest
new file mode 100644
index 000000000000..c38224559e2f
--- /dev/null
+++ b/net-libs/opal/Manifest
@@ -0,0 +1,9 @@
+AUX opal-3.10.10-ffmpeg2-1.patch 15039 SHA256 34176e949bc874d927157316141e6c043cfef9a98bc094490eb0c30db85b8ef2 SHA512 606eb31858505c03086e963d2f75108f7ef1e6653beb46d4bc5c8ec5672fca06c653ae82689cacd6278bad32d243c4822ba9ab87500626380ca74c39081d8a82 WHIRLPOOL 8ab5ced9a8cdb2ada23d953321ff7b06477cc309a0ff43f1bfa1ad00db499bcf2b8548998e4428bfc6f5d4dfc1fb956e53aae7a88a677b0378e1ac46e01b1031
+AUX opal-3.10.9-disable-h323-workaround.patch 498 SHA256 b1d943f7eb33c1828bf5a086abe1256dac55ce7f9a9cd16cbe9fa72b00d7ede2 SHA512 58e8ef12c39bce3a4d386b2b6033e1e242852bbf78371c58e91bd020cfcd95b40a9831db91fa76da431a9f8c4bb40c846b420e3a462dad77658a37c2281a9d39 WHIRLPOOL 6c590b837ebdcb11491aa3b9759d6c7e5930aa07d294bcfd473327f37866df97400bf1de588da853b6c807a233c23388359ac5a1e27c05ae1d4cc361585b98ae
+AUX opal-3.10.9-java-ruby-swig-fix.patch 874 SHA256 f813a831ac8d8c6c47f951125c1c8e971849d21a9cd7403e2bd72d39a5718930 SHA512 a7132cd6ad61d143cc11e00a048aaf66e1802890ac5fbde7ff964f99dc45a3abc79a081572cbdae5a84a50eee8af11266695a5de9c2691385c6f849e27105022 WHIRLPOOL ea85ac9c3603ff0a9eaf955f232c0197c35bb39ddce9a7d28c0f682e16e3660534eab0c5106bc8395ed2ac2445fb8f615d567e5ad607b5089331c116c4ae16db
+DIST opal-3.10.11-htmldoc.tar.bz2 2944338 SHA256 66708e69f1bea6a1160f3aa904643f49b2e2679822c1446d5aeb1f29dd973cea SHA512 6075487344d4cfa5c2e2219376e3eccd98028475eac6f89d20d24d611a8806a27eb354ce8e77e16c620c8cb3d398b9502082f3fe8f67763d3f67feea835819b5 WHIRLPOOL a23aafd7da85d00db2c285641ab75f1c0850c6eaaaa649c8278891282d86312d062be7ac4d89ec3955eac11eb91c018c7b05a89282b35f1b129af90f36e34033
+DIST opal-3.10.11.tar.bz2 8590616 SHA256 f38e7969e88a28dd9a10a6051315aceecde79d0bbd1a35676868dc5787aed706 SHA512 970745375e7ebb29178ce9d0bc29254e69dd952e5f754038979a8613489a26f0fb68d63ec2709ffa1964e50fe9cfde874489f683a451d83e7a075d62d9228fa1 WHIRLPOOL b4387f8a664c2763f1e62dc16772ce869dee6d5aaac271ef0013d1e7f207d19c5e3578c26215ce246c278bc4de9aa538dabae8a3b6a794b250a5f30f9be7d206
+EBUILD opal-3.10.11-r1.ebuild 7154 SHA256 019783cee5f5239141b7117e3c4699ee0838a5a3a2de2ec925509bdff4dc4b31 SHA512 7ea10d2622315c6f20af990d2d4239f9e30c88ccf975e58acda2aec2723e9a693aa575f0fdb531c868f21162dff1d7940be458a5ad658cc7c9981e36c168c717 WHIRLPOOL 6e0014b0e47e4f083081fca470730858a8a22d793f3a3260203acb696acf50e9250dc12150853bf8d956a8a09694f1086ce44401f696588e839b0dd1a7bec29e
+MISC ChangeLog 3486 SHA256 6386a0439e2b87d44b430929f0ecfeae746143520d8149d73e8286eea4c484ca SHA512 874c31b0659f3bee366e1a3af8fb41bdd1272e716fb27a4cab8cc7a81a1c76a615b077438604f0dab46a235ca8eb94e1c4bf21497402b125a9d97316b2c0c064 WHIRLPOOL 68ad32c1c06dc3997568ed42856b575fe8c961d09a9c61501cef0760233f81a1828458ce0392207c26e9a1e78b00d26508b3f89962b6896446f7bcb58e26eaca
+MISC ChangeLog-2015 16328 SHA256 482319146ed9758ad6cb790bc11bfb4d16ce9460a262c5f0eec955c03bf9a995 SHA512 1a732d995c1d67d403e5e3d6935b04539a14f1fe3b5a42b7331cde695e1eebeddf7bb44a3bfd45443a4cbe3c4de2d3dd4f3a06291d1811aa593c9ef463c0a98d WHIRLPOOL ba320a652431c6dc4f0c39e564a74817697452f89af5387da708981c0848b4dfa50c92eef1e600d7f468a5e2bb2448926d1dd8bf2a83a644f6c9ed7a7828e817
+MISC metadata.xml 1887 SHA256 83f685b3c1b0074e5b5d1980f1527b460a128a895e662ddb536a429b247a6d0b SHA512 871736e9e60f8342398ab1a9de8edf2a454d18d3dd7100b08972bc1fccec1f88183135028eb75cb77f506324e1b23f3c8b59f9d157a8c3c81b02049fc7eeee00 WHIRLPOOL e8ce684c08d4d0ca88325968669f46c60ed7c801d5ffcf33899de38a1ab5cefbeb0beca27072425ce4fbcaa564e1b2bd5a889da3d89f3deb9b3602a22c889c3c
diff --git a/net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch b/net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch
new file mode 100644
index 000000000000..6b58ac28f3d4
--- /dev/null
+++ b/net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch
@@ -0,0 +1,396 @@
+Submitted By: Igor Živković <contact@igor-zivkovic.from.hr>
+Date: 2013-10-08
+Initial Package Version: 3.10.10
+Upstream Status: Unknown
+Origin: Gentoo
+Description: Fixes building against FFmpeg version >= 2.0.0
+
+diff -Naur opal-3.10.10.orig/plugins/video/common/dyna.cxx opal-3.10.10/plugins/video/common/dyna.cxx
+--- opal-3.10.10.orig/plugins/video/common/dyna.cxx 2013-02-20 03:18:05.000000000 +0100
++++ opal-3.10.10/plugins/video/common/dyna.cxx 2013-10-08 12:57:25.058873513 +0200
+@@ -210,7 +210,7 @@
+ #endif
+
+
+-FFMPEGLibrary::FFMPEGLibrary(CodecID codec)
++FFMPEGLibrary::FFMPEGLibrary(AVCodecID codec)
+ {
+ m_codec = codec;
+ if (m_codec==CODEC_ID_H264)
+@@ -348,12 +348,12 @@
+ return true;
+ }
+
+-AVCodec *FFMPEGLibrary::AvcodecFindEncoder(enum CodecID id)
++AVCodec *FFMPEGLibrary::AvcodecFindEncoder(enum AVCodecID id)
+ {
+ return Favcodec_find_encoder(id);
+ }
+
+-AVCodec *FFMPEGLibrary::AvcodecFindDecoder(enum CodecID id)
++AVCodec *FFMPEGLibrary::AvcodecFindDecoder(enum AVCodecID id)
+ {
+ WaitAndSignal m(processLock);
+
+diff -Naur opal-3.10.10.orig/plugins/video/common/dyna.h opal-3.10.10/plugins/video/common/dyna.h
+--- opal-3.10.10.orig/plugins/video/common/dyna.h 2013-02-20 03:18:05.000000000 +0100
++++ opal-3.10.10/plugins/video/common/dyna.h 2013-10-08 12:57:25.058873513 +0200
+@@ -88,13 +88,13 @@
+ class FFMPEGLibrary
+ {
+ public:
+- FFMPEGLibrary(CodecID codec);
++ FFMPEGLibrary(AVCodecID codec);
+ ~FFMPEGLibrary();
+
+ bool Load();
+
+- AVCodec *AvcodecFindEncoder(enum CodecID id);
+- AVCodec *AvcodecFindDecoder(enum CodecID id);
++ AVCodec *AvcodecFindEncoder(enum AVCodecID id);
++ AVCodec *AvcodecFindDecoder(enum AVCodecID id);
+ AVCodecContext *AvcodecAllocContext(void);
+ AVFrame *AvcodecAllocFrame(void);
+ int AvcodecOpen(AVCodecContext *ctx, AVCodec *codec);
+@@ -117,15 +117,15 @@
+ DynaLink m_libAvcodec;
+ DynaLink m_libAvutil;
+
+- CodecID m_codec;
++ AVCodecID m_codec;
+ char m_codecString[32];
+
+ void (*Favcodec_init)(void);
+ void (*Fav_init_packet)(AVPacket *pkt);
+
+ void (*Favcodec_register_all)(void);
+- AVCodec *(*Favcodec_find_encoder)(enum CodecID id);
+- AVCodec *(*Favcodec_find_decoder)(enum CodecID id);
++ AVCodec *(*Favcodec_find_encoder)(enum AVCodecID id);
++ AVCodec *(*Favcodec_find_decoder)(enum AVCodecID id);
+ AVCodecContext *(*Favcodec_alloc_context)(void);
+ AVFrame *(*Favcodec_alloc_frame)(void);
+ int (*Favcodec_open)(AVCodecContext *ctx, AVCodec *codec);
+diff -Naur opal-3.10.10.orig/plugins/video/common/ffmpeg/libavcodec/avcodec.h opal-3.10.10/plugins/video/common/ffmpeg/libavcodec/avcodec.h
+--- opal-3.10.10.orig/plugins/video/common/ffmpeg/libavcodec/avcodec.h 2013-02-20 03:18:04.000000000 +0100
++++ opal-3.10.10/plugins/video/common/ffmpeg/libavcodec/avcodec.h 2013-10-08 12:57:25.060873488 +0200
+@@ -101,7 +101,7 @@
+ * 1. no value of a existing codec ID changes (that would break ABI),
+ * 2. it is as close as possible to similar codecs.
+ */
+-enum CodecID {
++enum AVCodecID {
+ CODEC_ID_NONE,
+
+ /* video codecs */
+@@ -1390,7 +1390,7 @@
+
+ char codec_name[32];
+ enum AVMediaType codec_type; /* see AVMEDIA_TYPE_xxx */
+- enum CodecID codec_id; /* see CODEC_ID_xxx */
++ enum AVCodecID codec_id; /* see CODEC_ID_xxx */
+
+ /**
+ * fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
+@@ -2843,7 +2843,7 @@
+ */
+ const char *name;
+ enum AVMediaType type;
+- enum CodecID id;
++ enum AVCodecID id;
+ int priv_data_size;
+ int (*init)(AVCodecContext *);
+ int (*encode)(AVCodecContext *, uint8_t *buf, int buf_size, void *data);
+@@ -2898,7 +2898,7 @@
+ *
+ * See CODEC_ID_xxx
+ */
+- enum CodecID id;
++ enum AVCodecID id;
+
+ /**
+ * Supported pixel format.
+@@ -3402,10 +3402,10 @@
+ /**
+ * Find a registered encoder with a matching codec ID.
+ *
+- * @param id CodecID of the requested encoder
++ * @param id AVCodecID of the requested encoder
+ * @return An encoder if one was found, NULL otherwise.
+ */
+-AVCodec *avcodec_find_encoder(enum CodecID id);
++AVCodec *avcodec_find_encoder(enum AVCodecID id);
+
+ /**
+ * Find a registered encoder with the specified name.
+@@ -3418,10 +3418,10 @@
+ /**
+ * Find a registered decoder with a matching codec ID.
+ *
+- * @param id CodecID of the requested decoder
++ * @param id AVCodecID of the requested decoder
+ * @return A decoder if one was found, NULL otherwise.
+ */
+-AVCodec *avcodec_find_decoder(enum CodecID id);
++AVCodec *avcodec_find_decoder(enum AVCodecID id);
+
+ /**
+ * Find a registered decoder with the specified name.
+@@ -3822,7 +3822,7 @@
+ * @param[in] codec_id the codec
+ * @return Number of bits per sample or zero if unknown for the given codec.
+ */
+-int av_get_bits_per_sample(enum CodecID codec_id);
++int av_get_bits_per_sample(enum AVCodecID codec_id);
+
+ #if FF_API_OLD_SAMPLE_FMT
+ /**
+diff -Naur opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.cxx opal-3.10.10/plugins/video/H.263-1998/h263-1998.cxx
+--- opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.cxx 2013-02-20 03:18:03.000000000 +0100
++++ opal-3.10.10/plugins/video/H.263-1998/h263-1998.cxx 2013-10-08 12:57:25.061873475 +0200
+@@ -48,6 +48,10 @@
+ #endif
+
+ #include "h263-1998.h"
++extern "C"
++{
++#include <libavutil/opt.h>
++}
+ #include <limits>
+ #include <iomanip>
+ #include <stdio.h>
+@@ -203,7 +207,7 @@
+ PTRACE(4, m_prefix, "Encoder closed");
+ }
+
+-bool H263_Base_EncoderContext::Init(CodecID codecId)
++bool H263_Base_EncoderContext::Init(AVCodecID codecId)
+ {
+ PTRACE(5, m_prefix, "Opening encoder");
+
+@@ -317,9 +321,9 @@
+ // Level 2+
+ // works with eyeBeam, signaled via non-standard "D"
+ if (atoi(value) == 1)
+- m_context->flags |= CODEC_FLAG_H263P_UMV;
++ av_opt_set_int(m_context->priv_data, "umv", 1, 0);
+ else
+- m_context->flags &= ~CODEC_FLAG_H263P_UMV;
++ av_opt_set_int(m_context->priv_data, "umv", 0, 0);
+ return;
+ }
+
+@@ -328,9 +332,9 @@
+ // Annex F: Advanced Prediction Mode
+ // does not work with eyeBeam
+ if (atoi(value) == 1)
+- m_context->flags |= CODEC_FLAG_OBMC;
++ av_opt_set_int(m_context->priv_data, "obmc", 1, 0);
+ else
+- m_context->flags &= ~CODEC_FLAG_OBMC;
++ av_opt_set_int(m_context->priv_data, "obmc", 0, 0);
+ return;
+ }
+ #endif
+@@ -360,9 +364,9 @@
+ // Annex K: Slice Structure
+ // does not work with eyeBeam
+ if (atoi(value) != 0)
+- m_context->flags |= CODEC_FLAG_H263P_SLICE_STRUCT;
++ av_opt_set_int(m_context->priv_data, "structured_slices", 1, 0);
+ else
+- m_context->flags &= ~CODEC_FLAG_H263P_SLICE_STRUCT;
++ av_opt_set_int(m_context->priv_data, "structured_slices", 0, 0);
+ return;
+ }
+
+@@ -370,9 +374,9 @@
+ // Annex S: Alternative INTER VLC mode
+ // does not work with eyeBeam
+ if (atoi(value) == 1)
+- m_context->flags |= CODEC_FLAG_H263P_AIV;
++ av_opt_set_int(m_context->priv_data, "aiv", 1, 0);
+ else
+- m_context->flags &= ~CODEC_FLAG_H263P_AIV;
++ av_opt_set_int(m_context->priv_data, "aiv", 0, 0);
+ return;
+ }
+
+@@ -450,15 +454,6 @@
+ PTRACE(5, m_prefix, "qmax set to " << m_context->qmax);
+ PTRACE(5, m_prefix, "payload size set to " << m_context->rtp_payload_size);
+
+- #define CODEC_TRACER_FLAG(tracer, flag) \
+- PTRACE(4, m_prefix, #flag " is " << ((m_context->flags & flag) ? "enabled" : "disabled"));
+- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_UMV);
+- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_OBMC);
+- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_AC_PRED);
+- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_SLICE_STRUCT)
+- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_LOOP_FILTER);
+- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_AIV);
+-
+ return FFMPEGLibraryInstance.AvcodecOpen(m_context, m_codec) == 0;
+ }
+
+@@ -521,7 +516,7 @@
+
+ // Need to copy to local buffer to guarantee 16 byte alignment
+ memcpy(m_inputFrame->data[0], OPAL_VIDEO_FRAME_DATA_PTR(header), header->width*header->height*3/2);
+- m_inputFrame->pict_type = (flags & PluginCodec_CoderForceIFrame) ? FF_I_TYPE : AV_PICTURE_TYPE_NONE;
++ m_inputFrame->pict_type = (flags & PluginCodec_CoderForceIFrame) ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_NONE;
+
+ /*
+ m_inputFrame->pts = (int64_t)srcRTP.GetTimestamp()*m_context->time_base.den/m_context->time_base.num/VIDEO_CLOCKRATE;
+@@ -603,13 +598,13 @@
+ m_context->rtp_callback = &H263_RFC2190_EncoderContext::RTPCallBack;
+ m_context->opaque = this; // used to separate out packets from different encode threads
+
+- m_context->flags &= ~CODEC_FLAG_H263P_UMV;
++ av_opt_set_int(m_context->priv_data, "umv", 0, 0);
+ m_context->flags &= ~CODEC_FLAG_4MV;
+ #if LIBAVCODEC_RTP_MODE
+ m_context->flags &= ~CODEC_FLAG_H263P_AIC;
+ #endif
+- m_context->flags &= ~CODEC_FLAG_H263P_AIV;
+- m_context->flags &= ~CODEC_FLAG_H263P_SLICE_STRUCT;
++ av_opt_set_int(m_context->priv_data, "aiv", 0, 0);
++ av_opt_set_int(m_context->priv_data, "structured_slices", 0, 0);
+
+ return true;
+ }
+diff -Naur opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.h opal-3.10.10/plugins/video/H.263-1998/h263-1998.h
+--- opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.h 2013-02-20 03:18:03.000000000 +0100
++++ opal-3.10.10/plugins/video/H.263-1998/h263-1998.h 2013-10-08 12:57:25.062873463 +0200
+@@ -115,7 +115,7 @@
+ virtual ~H263_Base_EncoderContext();
+
+ virtual bool Init() = 0;
+- virtual bool Init(CodecID codecId);
++ virtual bool Init(AVCodecID codecId);
+
+ virtual bool SetOptions(const char * const * options);
+ virtual void SetOption(const char * option, const char * value);
+diff -Naur opal-3.10.10.orig/plugins/video/H.263-1998/Makefile.in opal-3.10.10/plugins/video/H.263-1998/Makefile.in
+--- opal-3.10.10.orig/plugins/video/H.263-1998/Makefile.in 2013-02-20 03:18:03.000000000 +0100
++++ opal-3.10.10/plugins/video/H.263-1998/Makefile.in 2013-10-08 12:57:25.062873463 +0200
+@@ -35,7 +35,7 @@
+ $(COMMONDIR)/dyna.cxx
+
+ CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR)
+-LIBS += @DL_LIBS@
++LIBS += @DL_LIBS@ @LIBAVUTIL_LIBS@
+
+ HAVE_LIBAVCODEC_RTP_MODE=@HAVE_LIBAVCODEC_RTP_MODE@
+ ifeq ($(HAVE_LIBAVCODEC_RTP_MODE),yes)
+diff -Naur opal-3.10.10.orig/plugins/video/H.264/gpl/h264_helper.cxx opal-3.10.10/plugins/video/H.264/gpl/h264_helper.cxx
+--- opal-3.10.10.orig/plugins/video/H.264/gpl/h264_helper.cxx 2013-02-20 03:18:02.000000000 +0100
++++ opal-3.10.10/plugins/video/H.264/gpl/h264_helper.cxx 2013-10-08 12:57:25.062873463 +0200
+@@ -27,6 +27,7 @@
+ #include <fstream>
+ #include <stdlib.h>
+ #include <sys/stat.h>
++#include <unistd.h>
+
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+diff -Naur opal-3.10.10.orig/plugins/video/H.264/h264-x264.cxx opal-3.10.10/plugins/video/H.264/h264-x264.cxx
+--- opal-3.10.10.orig/plugins/video/H.264/h264-x264.cxx 2013-02-20 03:18:02.000000000 +0100
++++ opal-3.10.10/plugins/video/H.264/h264-x264.cxx 2013-10-08 12:57:25.063873450 +0200
+@@ -40,6 +40,9 @@
+ #include "plugin-config.h"
+ #endif
+
++#define FF_IDCT_H264 11
++#define CODEC_FLAG2_SKIP_RD 0x00004000
++
+ #include <codec/opalplugin.hpp>
+
+ #include "../common/ffmpeg.h"
+@@ -1071,13 +1074,10 @@
+ return false;
+
+ m_context->workaround_bugs = FF_BUG_AUTODETECT;
+- m_context->error_recognition = FF_ER_AGGRESSIVE;
+ m_context->idct_algo = FF_IDCT_H264;
+ m_context->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK;
+ m_context->flags = CODEC_FLAG_INPUT_PRESERVED | CODEC_FLAG_EMU_EDGE;
+- m_context->flags2 = CODEC_FLAG2_BRDO |
+- CODEC_FLAG2_MEMC_ONLY |
+- CODEC_FLAG2_DROP_FRAME_TIMECODE |
++ m_context->flags2 = CODEC_FLAG2_DROP_FRAME_TIMECODE |
+ CODEC_FLAG2_SKIP_RD |
+ CODEC_FLAG2_CHUNKS;
+
+diff -Naur opal-3.10.10.orig/plugins/video/H.264/shared/x264wrap.cxx opal-3.10.10/plugins/video/H.264/shared/x264wrap.cxx
+--- opal-3.10.10.orig/plugins/video/H.264/shared/x264wrap.cxx 2013-02-20 03:18:02.000000000 +0100
++++ opal-3.10.10/plugins/video/H.264/shared/x264wrap.cxx 2013-10-08 12:57:25.064873438 +0200
+@@ -33,6 +33,7 @@
+
+ #include <codec/opalplugin.hpp>
+ #include <stdio.h>
++#include <unistd.h>
+
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+diff -Naur opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/Makefile.in opal-3.10.10/plugins/video/MPEG4-ffmpeg/Makefile.in
+--- opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/Makefile.in 2013-02-20 03:18:07.000000000 +0100
++++ opal-3.10.10/plugins/video/MPEG4-ffmpeg/Makefile.in 2013-10-08 12:57:25.064873438 +0200
+@@ -31,7 +31,7 @@
+ SRCS := mpeg4.cxx $(COMMONDIR)/dyna.cxx
+
+ CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR)
+-LIBS += @DL_LIBS@
++LIBS += @DL_LIBS@ @LIBAVUTIL_LIBS@
+
+ # Add LIBAVCODEC_SOURCE_DIR to the include path so we can #include <libavcodec/...h>
+ # Also add libavutil, so ffmpeg headers can #include "log.h".
+diff -Naur opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/mpeg4.cxx opal-3.10.10/plugins/video/MPEG4-ffmpeg/mpeg4.cxx
+--- opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/mpeg4.cxx 2013-02-20 03:18:07.000000000 +0100
++++ opal-3.10.10/plugins/video/MPEG4-ffmpeg/mpeg4.cxx 2013-10-08 12:57:25.065873425 +0200
+@@ -103,6 +103,7 @@
+
+ #else /* LIBAVCODEC_HAVE_SOURCE_DIR */
+ #include "../common/ffmpeg.h"
++#include <libavutil/opt.h>
+ #endif /* LIBAVCODEC_HAVE_SOURCE_DIR */
+ }
+
+@@ -589,17 +590,17 @@
+ m_avpicture->quality = m_videoQMin;
+
+ #ifdef USE_ORIG
+- m_avcontext->flags |= CODEC_FLAG_PART; // data partitioning
++ av_opt_set_int(m_avcontext->priv_data, "data_partitionin", 1, 0);
+ m_avcontext->flags |= CODEC_FLAG_4MV; // 4 motion vectors
+ #else
+ m_avcontext->max_b_frames=0; /*don't use b frames*/
+ m_avcontext->flags|=CODEC_FLAG_AC_PRED;
+- m_avcontext->flags|=CODEC_FLAG_H263P_UMV;
++ av_opt_set_int(m_avcontext->priv_data, "umv", 1, 0);
+ /*c->flags|=CODEC_FLAG_QPEL;*/ /*don't enable this one: this forces profile_level to advanced simple profile */
+ m_avcontext->flags|=CODEC_FLAG_4MV;
+ m_avcontext->flags|=CODEC_FLAG_GMC;
+ m_avcontext->flags|=CODEC_FLAG_LOOP_FILTER;
+- m_avcontext->flags|=CODEC_FLAG_H263P_SLICE_STRUCT;
++ av_opt_set_int(m_avcontext->priv_data, "structured_slices", 1, 0);
+ #endif
+ m_avcontext->opaque = this; // for use in RTP callback
+ }
+@@ -804,7 +805,7 @@
+ // Should the next frame be an I-Frame?
+ if ((flags & PluginCodec_CoderForceIFrame) || (m_frameNum == 0))
+ {
+- m_avpicture->pict_type = FF_I_TYPE;
++ m_avpicture->pict_type = AV_PICTURE_TYPE_I;
+ }
+ else // No IFrame requested, let avcodec decide what to do
+ {
+@@ -1325,7 +1326,7 @@
+
+ void MPEG4DecoderContext::SetStaticDecodingParams() {
+ m_avcontext->flags |= CODEC_FLAG_4MV;
+- m_avcontext->flags |= CODEC_FLAG_PART;
++ av_opt_set_int(m_avcontext->priv_data, "data_partitionin", 1, 0);
+ m_avcontext->workaround_bugs = 0; // no workaround for buggy implementations
+ }
+
diff --git a/net-libs/opal/files/opal-3.10.9-disable-h323-workaround.patch b/net-libs/opal/files/opal-3.10.9-disable-h323-workaround.patch
new file mode 100644
index 000000000000..3d1761566ed1
--- /dev/null
+++ b/net-libs/opal/files/opal-3.10.9-disable-h323-workaround.patch
@@ -0,0 +1,13 @@
+# Sent to upstream on 2012-10-23
+# By Jesus Rivero <neurogeek@gentoo.org>
+diff -uNr opal-3.10.8.orig/include/h323/h323.h opal-3.10.8/include/h323/h323.h
+--- opal-3.10.8.orig/include/h323/h323.h 2012-10-22 07:50:37.000000000 -0400
++++ opal-3.10.8/include/h323/h323.h 2012-10-23 14:10:37.000000000 -0400
+@@ -40,6 +40,7 @@
+ #include <h323/h323con.h>
+ #include <h323/gkclient.h>
+ #include <opal/buildopts.h>
++#include <ptlib.h>
+
+ PString OpalGetVersion();
+ unsigned OpalGetMajorVersion();
diff --git a/net-libs/opal/files/opal-3.10.9-java-ruby-swig-fix.patch b/net-libs/opal/files/opal-3.10.9-java-ruby-swig-fix.patch
new file mode 100644
index 000000000000..65708635a34d
--- /dev/null
+++ b/net-libs/opal/files/opal-3.10.9-java-ruby-swig-fix.patch
@@ -0,0 +1,29 @@
+diff -uNr opal-3.10.9.orig/Makefile.in opal-3.10.9/Makefile.in
+--- opal-3.10.9.orig/Makefile.in 2012-12-03 11:09:17.000000000 -0500
++++ opal-3.10.9/Makefile.in 2012-12-03 11:09:35.000000000 -0500
+@@ -371,9 +371,9 @@
+ ifeq ($(OPAL_JAVA), yes)
+
+ JAVA_SRCDIR = $(OPAL_SRCDIR)/java
+-JAVA_WRAPPER = $(JAVA_SRCDIR)/java_swig_wrapper.c
++JAVA_WRAPPER = $(JAVA_SRCDIR)/java_swig_wrapper.cxx
+
+-VPATH_C += $(JAVA_SRCDIR)
++VPATH_CXX += $(JAVA_SRCDIR)
+ SOURCES += $(JAVA_WRAPPER)
+
+ endif
+@@ -384,10 +384,10 @@
+
+ ifeq ($(OPAL_RUBY), yes)
+
+-RUBY_SRCDIR = $(OPAL_SRCDIR)/ruby
+-RUBY_WRAPPER = $(JAVA_SRCDIR)/ruby_swig_wrapper.c
++RUBY_SRCDIR = $(OPAL_SRCDIR)/Ruby
++RUBY_WRAPPER = $(JAVA_SRCDIR)/ruby_swig_wrapper.cxx
+
+-VPATH_C += $(RUBY_SRCDIR)
++VPATH_CXX += $(RUBY_SRCDIR)
+ SOURCES += $(RUBY_WRAPPER)
+
+ endif
diff --git a/net-libs/opal/metadata.xml b/net-libs/opal/metadata.xml
new file mode 100644
index 000000000000..1f2a52bbd602
--- /dev/null
+++ b/net-libs/opal/metadata.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="celt">Enable CELT ultra-low delay audio codec</flag>
+ <flag name="dtmf">Enable DTMF encoding/decoding support</flag>
+ <flag name="fax">Enable T.38 FAX protocol</flag>
+ <flag name="h224">Enable H.224 real time control protocol</flag>
+ <flag name="h281">Enable H.281 Far-End Camera Control protocol</flag>
+ <flag name="h323">Enable H.323 protocol</flag>
+ <flag name="iax">Enable Inter-Asterisk eXchange protocol</flag>
+ <flag name="ivr">Enable Interactive Voice Response</flag>
+ <flag name="ilbc">Enable iLBC (RFC 3951) speech codec</flag>
+ <flag name="lid">Enable Line Interface Device</flag>
+ <flag name="plugins">Enable plugins support</flag>
+ <flag name="sbc">Enable the Bluetooth low-complexity, SubBand Codec
+ </flag>
+ <flag name="sip">Enable Session Initiation Protocol</flag>
+ <flag name="sipim">Enable SIP Instant Messages session</flag>
+ <flag name="srtp">Enable Secure Real-time Transport Protocol</flag>
+ <flag name="stats">Enable statistic reporting</flag>
+ <flag name="swig">Use swig to generate bindings</flag>
+ <flag name="video">Enable video support</flag>
+ <flag name="vpb">Enable Voicetronics VPB card support</flag>
+ <flag name="vxml">Enable VXML support</flag>
+ <flag name="wav">Enable WAVFILE support</flag>
+ <flag name="x264-static">Install x264 plugin statically linked with x264
+ </flag>
+ <!-- unused atm
+ <flag name="g711plc">Enable G711 Packet Loss Concealment</flag>
+ <flag name="msrp">Enable Message Session Relay Protocol</flag>
+ <flag name="rfc4103">Enable RTP Payload for Text Conversation</flag>
+ -->
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">opalvoip</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/opal/opal-3.10.11-r1.ebuild b/net-libs/opal/opal-3.10.11-r1.ebuild
new file mode 100644
index 000000000000..eb0508072328
--- /dev/null
+++ b/net-libs/opal/opal-3.10.11-r1.ebuild
@@ -0,0 +1,252 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools toolchain-funcs java-pkg-opt-2 flag-o-matic
+
+DESCRIPTION="C++ class library normalising numerous telephony protocols"
+HOMEPAGE="http://www.opalvoip.org/"
+SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
+ doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )"
+
+LICENSE="MPL-1.0"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
+IUSE="celt debug doc +dtmf examples fax ffmpeg h224 h281 h323 iax ilbc
+ipv6 ivr java ldap libav lid +plugins sbc +sip +sipim +sound srtp ssl static-libs
+stats swig theora +video vpb vxml +wav x264 x264-static +xml"
+
+REQUIRED_USE="
+ x264-static? ( x264 )
+ h281? ( h224 )
+ sip? ( sipim )
+"
+
+RDEPEND="
+ >=net-libs/ptlib-2.10.10:=[stun,debug=,dtmf,http,ipv6?,ldap?,sound?,ssl?,video?,vxml?,wav?,xml?]
+ >=media-libs/speex-1.2_beta
+ fax? ( net-libs/ptlib[asn] )
+ h323? ( net-libs/ptlib[asn] )
+ ivr? ( net-libs/ptlib[http,xml,vxml] )
+ java? ( >=virtual/jre-1.4:* )
+ plugins? (
+ media-sound/gsm
+ celt? ( media-libs/celt:0 )
+ ffmpeg? (
+ libav? ( media-video/libav:0=[encode] )
+ !libav? ( media-video/ffmpeg:0=[encode] ) )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ sbc? ( media-libs/libsamplerate )
+ theora? ( media-libs/libtheora )
+ x264? ( virtual/ffmpeg
+ media-libs/x264 ) )
+ srtp? ( net-libs/libsrtp:0= )
+ vxml? ( net-libs/ptlib[http,vxml] )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ java? ( swig? ( dev-lang/swig )
+ >=virtual/jdk-1.4 )
+"
+
+# NOTES:
+# ffmpeg[encode] is for h263 and mpeg4
+# ssl, xml, vxml, ipv6, ldap, sound, wav, and video are use flags
+# herited from ptlib: feature is enabled if ptlib has enabled it
+# however, disabling it if ptlib has it looks hard (coz of buildopts.h)
+# forcing ptlib to disable it for opal is not a solution too
+# atm, accepting the "auto-feature" looks like a good solution
+# (asn is used for fax and config _only_ for examples)
+# OPALDIR should not be used anymore but if a package still need it, create it
+
+pkg_setup() {
+ # workaround for bug 282838
+ append-cxxflags "-fno-visibility-inlines-hidden"
+ append-cxxflags "-fno-strict-aliasing"
+
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # remove visual studio related files from samples/
+ if use examples; then
+ rm -f samples/*/*.vcproj
+ rm -f samples/*/*.sln
+ rm -f samples/*/*.dsp
+ rm -f samples/*/*.dsw
+ fi
+
+ # LFS ffmpeg2+ fixes.
+ eapply "${FILESDIR}"/opal-3.10.10-ffmpeg2-1.patch
+
+ if ! use h323; then
+ # Without this patch, ekiga wont compile, even with
+ # USE=-h323.
+ eapply "${FILESDIR}/${PN}-3.10.9-disable-h323-workaround.patch"
+ fi
+
+ eapply "${FILESDIR}/${PN}-3.10.9-java-ruby-swig-fix.patch"
+
+ sed -i -e "s:\(.*HAS_H224.*\), \[OPAL_H323\]:\1:" configure.ac \
+ || die "sed failed"
+
+ # sed fixes for ffmpeg-3.
+ sed -e 's/CODEC_ID/AV_&/' \
+ -e 's/PIX_FMT_/AV_&/' \
+ -i plugins/video/H.263-1998/h263-1998.cxx \
+ plugins/video/common/dyna.cxx \
+ plugins/video/H.264/h264-x264.cxx \
+ plugins/video/MPEG4-ffmpeg/mpeg4.cxx || die "sed failed"
+
+ eaclocal
+ eautoconf
+
+ # in plugins
+ cd plugins/
+ eaclocal
+ eautoconf
+ cd ..
+
+ # disable celt if celt is not enabled (prevent auto magic dep)
+ # already in repository
+ if ! use celt; then
+ sed -i -e "s/HAVE_CELT=yes/HAVE_CELT=no/" plugins/configure \
+ || die "sed failed"
+ fi
+
+ # fix automatic swig detection, upstream bug 2712521 (upstream reject it)
+ if ! use swig; then
+ sed -i -e "/^SWIG=/d" configure || die "patching configure failed"
+ fi
+
+ use ilbc || { rm -r plugins/audio/iLBC/ || die "removing iLBC failed"; }
+
+ java-pkg-opt-2_src_prepare
+}
+
+src_configure() {
+ local forcedconf=""
+
+ # fix bug 277233, upstream bug 2820939
+ if use fax; then
+ forcedconf="${forcedconf} --enable-statistics"
+ fi
+
+ # --with-libavcodec-source-dir should _not_ be set, it's for trunk sources
+ # versioncheck: check for ptlib version
+ # shared: should always be enabled for a lib
+ # localspeex, localspeexdsp, localgsm, localilbc: never use bundled libs
+ # samples: only build some samples, useless
+ # libavcodec-stackalign-hack: prevent hack (default disable by upstream)
+ # default-to-full-capabilties: default enable by upstream
+ # aec: atm, only used when bundled speex, so it's painless for us
+ # zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from
+ # http://zfoneproject.com/ wich is not in portage
+ # msrp: highly experimental
+ # spandsp: doesn't work with newest spandsp, upstream bug 2796047
+ # g711plc: force enable
+ # rfc4103: not really used, upstream bug 2795831
+ # t38, spandsp: merged in fax
+ # h450, h460, h501: merged in h323 (they are additional features of h323)
+ econf \
+ --enable-versioncheck \
+ --enable-shared \
+ --disable-zrtp \
+ --disable-localspeex \
+ --disable-localspeexdsp \
+ --disable-localgsm \
+ --disable-localilbc \
+ --disable-samples \
+ --disable-libavcodec-stackalign-hack \
+ --enable-default-to-full-capabilties \
+ --enable-aec \
+ --disable-msrp \
+ --disable-spandsp \
+ --enable-g711plc \
+ --enable-rfc4103 \
+ --disable-capi \
+ --disable-ixj \
+ $(use_enable debug) \
+ $(use_enable fax) \
+ $(use_enable fax t38) \
+ $(use_enable h224) \
+ $(use_enable h281) \
+ $(use_enable h323) \
+ $(use_enable h323 h450) \
+ $(use_enable h323 h460) \
+ $(use_enable h323 h501) \
+ $(use_enable iax) \
+ $(use_enable ivr) \
+ $(use_enable java) \
+ $(use_enable lid) \
+ $(use_enable plugins) \
+ $(use_enable sbc) \
+ $(use_enable sip) \
+ $(use_enable sipim) \
+ $(use_enable stats statistics) \
+ $(use_enable video) $(use_enable video rfc4175) \
+ $(use_enable vpb) \
+ $(use_enable x264 h264) \
+ $(use_enable x264-static x264-link-static) \
+ ${forcedconf}
+}
+
+src_compile() {
+ local makeopts=""
+
+ use debug && makeopts="debug"
+
+ emake ${makeopts}
+}
+
+src_install() {
+ default
+
+ # Get rid of static libraries if not requested
+ # There seems to be no easy way to disable this in the build system
+ if ! use static-libs; then
+ rm -v "${D}"/usr/lib*/*.a || die
+ fi
+
+ if use doc; then
+ dohtml -r "${WORKDIR}"/html/* docs/* || die "dohtml failed"
+ fi
+
+ if use examples; then
+ local exampledir="/usr/share/doc/${PF}/examples"
+ local basedir="samples"
+ local sampledirs="`ls ${basedir} --hide=configure* \
+ --hide=opal_samples.mak.in`"
+
+ # first, install files
+ insinto ${exampledir}/
+ doins ${basedir}/{configure*,opal_samples*} \
+ || die "doins failed"
+
+ # now, all examples
+ for x in ${sampledirs}; do
+ insinto ${exampledir}/${x}/
+ doins ${basedir}/${x}/* || die "doins failed"
+ done
+
+ # some examples need version.h
+ insinto "/usr/share/doc/${PF}/"
+ doins version.h || die "doins failed"
+ fi
+}
+
+pkg_postinst() {
+ if use examples; then
+ ewarn "All examples have been installed, some of them will not work on your system"
+ ewarn "it will depend of the enabled USE flags in ptlib and opal"
+ fi
+
+ if ! use plugins || ! use sound || ! use video; then
+ ewarn "You have disabled sound, video or plugins USE flags."
+ ewarn "Most audio/video features or plugins have been disabled silently"
+ ewarn "even if enabled via USE flags."
+ ewarn "Having a feature enabled via USE flag but disabled can lead to issues."
+ fi
+}
diff --git a/net-libs/openmq-cclient/Manifest b/net-libs/openmq-cclient/Manifest
new file mode 100644
index 000000000000..23e1ae06acf7
--- /dev/null
+++ b/net-libs/openmq-cclient/Manifest
@@ -0,0 +1,7 @@
+AUX Makefile.in-4 1877 SHA256 83a868c781ebd5e24d35056879388daf493a1537e7b5c3dbb7a6469b9bfeda29 SHA512 ea4d441035f275df31c28a05100377b40e7ae282767f74e247bfba31739b7f6462d5e94938bfc4aac6c4f2d78c792a10d941e01e5b8e0c9cf412bf7d878dcf33 WHIRLPOOL 652ad3907d7089160b6f55ad0770106a951adb4545e19536449d3b6291cf953ff03333c30859d51ff42804cadcd44f5e1c266672deea58f75151d6791fc2e463
+AUX openmq-cclient-4.4.1-aix-gcc.patch 376 SHA256 7136c7675963b46e970f83ad96b9f9f8c8cb608ce329cd5265d58ea55ff6c0df SHA512 c7899238b90072a26a8bf1700940d30218d59629b8acea8699f101948f2d659ea684fb73ba560adbbe171c36eec3ae244a9f1707349647213518a654d48c5725 WHIRLPOOL 1cbf7c6fd9abe689d9f3daf3e02ea4777d9201878e42e36e6b27ca7bfe98457220a2e4a7f06276d117eb48c7a1424738fdb0f61c2a3fd3db78b0253182224920
+DIST openmq4.4u1b7-final-source.zip 6892740 SHA256 56e3c5e2c53cee12076f4974236c7f72a5069bb7034b633747c3721d42d57346 SHA512 4bc51a3bc0a82ae41998ae3d60912d807ff069d6165ea9cfdc1c6eefc9e57b00ad91d6ed2efa032e76be744db3328511bb02023d14a64bd3b64c8667982fbe8c WHIRLPOOL a73b7baed08317ad659f2c7a03c784e82c56cc8d57f41efb96014e22d4d137e55f6319a7c652319cc0d75c868800a337099ece54e025cedd425aae0e2b7f5090
+EBUILD openmq-cclient-4.4.1.ebuild 1780 SHA256 2cc94d93112ce6453ff9d3ac4760de8d8d1e3ad3095ff3c51c13612f207a9b1a SHA512 b05b4a198ea6811faf1165522df25efb37d7f555fb9972c49ccf6fd74ff453f0b3263408803a37d4a097f431a839b2734d3c1ebad04ae25f98ae2b78003901bc WHIRLPOOL 8f64dbbfc343aa297cd8ee134a028b95cdb5efbc819b7753460470c0bf44769ebbeac4bbc22fe226e81cbf23403bc854dcb499f1297924ca39761989dc2e69f0
+MISC ChangeLog 2949 SHA256 ce2c93400ef0faedb8f0020e75517f1869210da2b30a6a796f93dbfa7f7eb1fd SHA512 a206360b580fb689d6ea625de2fca1339044f9f98f02cced0a9b55e4c5d6004568b006f3f7d66d728556e23f3584753cac2c1ce27ade17be9f277d7bc65abd4c WHIRLPOOL d6d8022bead4d76f86f34752e995fdc439e1655417196cf920b46d7845758bb869a41c260ff88e9ee101db8bc053a7d6562a047972f9ce3190ab7272d0537d81
+MISC ChangeLog-2015 710 SHA256 295a5afe25449e296fe034eadc9f98b6c68ba0dec286f00f9b283cf5568b6d87 SHA512 176d57ad60ae865a2a9581607c35ffa89ae253567717f1d80ffe180c6d81e6a5157ad44384fd5e73988b4cf0531daac9b06ab194744e583bd4270a5f85d707f3 WHIRLPOOL 50faf39d5efeabf0f0da2aea4f038894ab688174c0b61762b00ca5b00d8681e4d6a55c4072b4c1b6ccd9141bf9002b2fe6cfb1ac67a6ce0a89d699a00e1fd9e4
+MISC metadata.xml 864 SHA256 2f9506c5bae8ed69dbc11fc56aa498026781c7f7d99b712563dcfb4417d48a2d SHA512 beb566a77afec231f42d0f44dc4442c621a6341c40716d44f68f32ad517be715925635b721e57a714f38780afa90fbb30e85fb9f8350ef930309bfa0ebcb811a WHIRLPOOL 8332881eadacbdda5644a91847d6ebbc4be5c9097faf0118ebc8ada366b90073cefa6272cfcb74265084c384acc15dbe2d3b5f9a2bb04f8a1f75be453e8f1d47
diff --git a/net-libs/openmq-cclient/files/Makefile.in-4 b/net-libs/openmq-cclient/files/Makefile.in-4
new file mode 100644
index 000000000000..8d536b927566
--- /dev/null
+++ b/net-libs/openmq-cclient/files/Makefile.in-4
@@ -0,0 +1,69 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+top_srcdir=@top_srcdir@
+top_builddir=@top_builddir@
+
+CC = @CC@
+CXX = @CXX@
+LIBTOOL = @LIBTOOL@
+
+CFLAGS = @CFLAGS@
+CXXFLAGS = @CXXFLAGS@
+LDFLAGS = @LDFLAGS@
+
+LTCC = $(LIBTOOL) --mode=compile --tag=CC $(CC)
+LTCXX = $(LIBTOOL) --mode=compile --tag=CXX $(CXX)
+LTLD = $(LIBTOOL) --mode=link --tag=CXX $(CXX)
+
+NS_S_PR_CFLAGS = $(shell pkg-config --cflags nss nspr)
+NS_S_PR_LIBS = $(shell pkg-config --libs nss nspr)
+
+SRCS = $(shell find "$(top_srcdir)" -name examples -prune -o -type f '(' -name '*.cpp' -o -name '*.c' -not -name '*Test*' ')')
+LTOBJS = $(subst .c,.lo,$(subst .cpp,.lo,$(SRCS)))
+
+HDRS = $(top_srcdir)/cshim/mq/xa.h $(shell find "$(top_srcdir)"/cshim -type f -name 'mq*.h')
+INSTHDRS = $(subst $(top_srcdir)/cshim,$(DESTDIR)$(includedir),$(HDRS))
+
+LTLIBRARY = libmqcrt.la
+INSTLTLIBRARY = $(DESTDIR)$(libdir)/$(LTLIBRARY)
+
+.SUFFIXES:
+.SUFFIXES: .cpp .c .lo
+
+default: all
+
+all: $(LTLIBRARY)
+
+Makefile: Makefile.in
+ $(top_builddir)/config.status $@
+
+.cpp.lo:
+ $(LTCXX) -o $@ $(NS_S_PR_CFLAGS) $(CXXFLAGS) -c $<
+
+.c.lo:
+ $(LTCC) -o $@ $(NS_S_PR_CFLAGS) $(CFLAGS) -c $<
+
+VERSIONNUMBER = $(shell { echo '#include "cshim/mqversion.h"'; echo '-version-number MQ_VMAJOR:MQ_VMINOR:MQ_VMICRO'; } | ${CC} -E - | grep version-number)
+
+$(LTLIBRARY): $(LTOBJS)
+ version=` \
+ { echo '#include "cshim/mqversion.h"' \
+ ; echo '-version-number MQ_VMAJOR:MQ_VMINOR:MQ_VMICRO' \
+ ; } \
+ | ${CC} -E - \
+ | grep version-number \
+ ` \
+ && $(LTLD) -o $@ --no-undefined $${version} $(CXXFLAGS) $(NS_S_PR_LIBS) $(LDFLAGS) -rpath $(libdir) $?
+
+$(INSTLTLIBRARY): $(LTLIBRARY)
+ $(top_srcdir)/install-sh -d "$(dir $@)"
+ $(LIBTOOL) --mode=install cp $(LTLIBRARY) $@
+
+$(DESTDIR)$(includedir)/%: $(top_srcdir)/cshim/%
+ $(top_srcdir)/install-sh -d "$(dir $@)"
+ cp -f "$<" "$@"
+
+install: $(INSTLTLIBRARY) $(INSTHDRS)
diff --git a/net-libs/openmq-cclient/files/openmq-cclient-4.4.1-aix-gcc.patch b/net-libs/openmq-cclient/files/openmq-cclient-4.4.1-aix-gcc.patch
new file mode 100644
index 000000000000..e9a9d7281738
--- /dev/null
+++ b/net-libs/openmq-cclient/files/openmq-cclient-4.4.1-aix-gcc.patch
@@ -0,0 +1,13 @@
+Seems they've never seen gcc on AIX.
+
+--- cshim/mqbasictypes.h.orig 2010-03-01 18:00:38 +0100
++++ cshim/mqbasictypes.h 2010-03-01 18:00:58 +0100
+@@ -64,7 +64,7 @@
+ #endif
+ #endif
+
+-#if (defined(__IBMC__) || defined (__IBMCPP__)) && defined(__unix__)
++#if ((defined(__IBMC__) || defined (__IBMCPP__)) && defined(__unix__)) || defined(_AIX)
+ #ifndef AIX
+ #define AIX
+ #endif
diff --git a/net-libs/openmq-cclient/metadata.xml b/net-libs/openmq-cclient/metadata.xml
new file mode 100644
index 000000000000..b06234150687
--- /dev/null
+++ b/net-libs/openmq-cclient/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>haubi@gentoo.org</email>
+ <name>Michael Haubenwallner</name>
+ </maintainer>
+ <longdescription lang="en">
+ Open message queue is an enterprise quality, production ready, scalable
+ messaging server. It provides a complete Java Message Service (JMS)
+ implementation for message oriented system integration. In addition,
+ Open MQ provides the additional enterprise features that are necessary
+ for enterprise deployments, large and small. It gets its roots from Java
+ Message Queue and provides all the features, functions and capabilities
+ of the currently available licensed product: Java System Message Queue.
+ These ebuilds install the c-client library only.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-libs/openmq-cclient/openmq-cclient-4.4.1.ebuild b/net-libs/openmq-cclient/openmq-cclient-4.4.1.ebuild
new file mode 100644
index 000000000000..a60d88a6722b
--- /dev/null
+++ b/net-libs/openmq-cclient/openmq-cclient-4.4.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit versionator autotools
+
+DESCRIPTION="C-Client Library for Open Source Java Message Service (JMS)"
+HOMEPAGE="https://mq.java.net/"
+
+# set this for rc and final versions to the build-number of open-mq
+MY_BUILDV="b7"
+
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc-aix"
+IUSE=""
+
+if [[ $(x=( $(get_all_version_components) ); echo ${x[3]}) == '.' ]]; then
+ MY_PV=$(replace_version_separator 2 'u' $(get_version_component_range 1-3))
+else
+ MY_PV=$(get_version_component_range 1-2)
+fi
+
+if [[ ${PV} == *rc* || ${PV} == *beta* ]]; then
+ for x in $(get_version_components); do
+ if [[ ${x} == rc* ]]; then
+ MY_BUILDV="${MY_BUILDV}-${x}"
+ break
+ fi
+ if [[ ${x} == beta* ]]; then
+ MY_BUILDV=b${x#beta}
+ break
+ fi
+ done
+else
+ MY_BUILDV="${MY_BUILDV}-final"
+fi
+
+MY_ZIPV=$(replace_version_separator 1 _ $(get_version_component_range 1-2))
+SRC_URI="http://download.java.net/mq/open-mq/${MY_PV}/${MY_BUILDV}/openmq${MY_ZIPV}-source.zip -> openmq${MY_PV}${MY_BUILDV}-source.zip"
+
+RDEPEND="
+ dev-libs/nss
+ dev-libs/nspr
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ app-arch/unzip
+"
+
+S="${WORKDIR}/mq/src/share/cclient"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-aix-gcc.patch
+
+ einfo "avoiding potential conflict with <xa.h>"
+ mkdir cshim/mq || die
+ mv cshim/xa.h cshim/mq/ || die
+ ln -s mq/xa.h cshim/xa.h || die
+ sed -i -e 's,"xa.h","mq/xa.h",' cshim/mqxaswitch.h || die
+ eend $?
+
+ cp "${FILESDIR}"/Makefile.in-4 Makefile.in || die
+ cat > configure.ac <<-EOF
+ AC_INIT(local-libtool, 0)
+ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_LIBTOOL
+ AC_OUTPUT(Makefile)
+ EOF
+
+ eautoreconf
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+}
diff --git a/net-libs/openpgm/Manifest b/net-libs/openpgm/Manifest
new file mode 100644
index 000000000000..2cb12741b372
--- /dev/null
+++ b/net-libs/openpgm/Manifest
@@ -0,0 +1,7 @@
+DIST openpgm-5.1.118.tar.gz 557816 SHA256 707cd52acaeb957f3b74044ea260fd03456612826d54cafb289a7400eb8032a9 SHA512 50acd102f03fb250cd027c8f4843749641c7b1a4c1dfc41b136627feb59209bc7a2bbd08b7edeac603fb820118c6683ae9377a692949608bad455fef91c97274 WHIRLPOOL b4b426879fd503d455afebc22d13310cf76a4a89ed314b2c102812b47398bcee7271f69ebd3de896fb0d38e49833d92fe9219eb8fbc868755188502ee6c45776
+DIST openpgm-5.2.122.tar.gz 583469 SHA256 acc1545fd8060aa66b17327110e2859e451cfc685ebd3b2211619728e3471b66 SHA512 f8b29fb69acb548536179262665c0cdcc8bb1510d3e970d6abebaf33e301f87fbfa7e2c46e387973d8b65470350af66b3130482269b9fbb15fe7bf98b52f6404 WHIRLPOOL acc80b7a0093250f9046ffdbfd2c42c1a9fc8a4c00c6a0b687feadad9e907d9de843ed68dd1c183a9a768538d8840cd7b1a20af7687f0809ec7c34c5823e7791
+EBUILD openpgm-5.1.118-r1.ebuild 756 SHA256 c25dbbb7120c9fd50a8750bea559ee1610cff22780556029a27ab4425b0c310e SHA512 21a78fddc51bb0c38725458533937e6083b23bbd4dae427d48713d098c1359258c38818279fbdc73872154ff6dbaa71f0d1dcd05096a3526f082c12b30d3f9e4 WHIRLPOOL ac2b794acaaa62d48d55d24f76bf0c86f98088db5f477ee926eef8bd7a4e34439de945fb89b2a3d932939bae526d4b4bd9cd0afb4eb3890d634a29c727fd553f
+EBUILD openpgm-5.2.122.ebuild 762 SHA256 4e27a83955cb2b5c2d32b23a4e14ee7fead1e0dd9079f788f307c20548096caf SHA512 c3b2b91329cb767c531407a1273ce7867446133f6e102f2bd119dc531ebab933c2248899400f4871a38cc67dad7cc45057c430961c567566e3c39de27a1cf9ee WHIRLPOOL fefa422631a6ecd2e000767e2762f6babb0dbeecc6abb9044f3fd2b33dae5c8df11e61abd408941e2e1df518e515f873cd6662b40cbd450a651698f8a28d4222
+MISC ChangeLog 4320 SHA256 ed2c06f86eafcc5284cc3a3f5180ee15b6b616f05bfc72863a4185fff2b1c8c4 SHA512 c62712b7ed984160c513e107700a5c435385ad9f6e96b88530e48273aec3af7ee4b17e8fee62746de3b7aa3dbf0261d42fc0b8ae915d324d3669670ed227e4d7 WHIRLPOOL 2fa38f375352d7a11f9efc70c9fb91b810ea673186b7cdc6be49565a049c264f00af9ba957d84600bb031ef97b741c38e9e4c0ac0f592c320d8c9686996141a5
+MISC ChangeLog-2015 3455 SHA256 7c6160cc22dc48842245b5d62b7dfc9030437a963a530e2b4e4c6152cc229b83 SHA512 a6002338200ed3ee3580717b7d6a9ab136e6572819703739305efe3f1446caad42a64bfe4e64543888233d6bc470010bcfff3e795364f986d636ca1aae7f8f90 WHIRLPOOL 57f93aeed18992e170d8f89d89c442fee94d97b84b77e63a3a7e61d07be269a93a33f169a6a736a8a98d49d191b95e9ccc7e77e59be4e516541b7bbf6c1e6970
+MISC metadata.xml 252 SHA256 f341008ba2d509b0c93862e49e5a8f99d08e39e03064b580fed7907888956e02 SHA512 a630f122a596a2325eb582cbaf062dcbd4e27bf2bf5677b8ef0695cd61434c1d96a2c33ef353b6e9659c5fee62a98edfe652474a2150b6ca159e71b146199773 WHIRLPOOL 288e18db46c96d270a262821026d30e26ce8a7056ee8a214fe99284b0781fcb74200fae548b067dd568720db13148aa2589f2a3dc625ad99171a9cd28d67ef35
diff --git a/net-libs/openpgm/metadata.xml b/net-libs/openpgm/metadata.xml
new file mode 100644
index 000000000000..ce00d8d56813
--- /dev/null
+++ b/net-libs/openpgm/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-needed -->
+ <upstream>
+ <remote-id type="github">steve-o/openpgm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/openpgm/openpgm-5.1.118-r1.ebuild b/net-libs/openpgm/openpgm-5.1.118-r1.ebuild
new file mode 100644
index 000000000000..9afff1551e09
--- /dev/null
+++ b/net-libs/openpgm/openpgm-5.1.118-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools-utils python-any-r1
+
+MY_PV="${PV//./-}"
+
+DESCRIPTION="Open source implementation of the Pragmatic General Multicast specification"
+HOMEPAGE="https://github.com/steve-o/openpgm"
+SRC_URI="https://github.com/steve-o/${PN}/archive/release-${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ppc ppc64 x86 ~x86-fbsd"
+IUSE="static-libs"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+
+S="${WORKDIR}/${PN}-release-${MY_PV}/${PN}/pgm"
+
+src_install() {
+ DOCS=( "${S}"/../doc/. "${S}"/README )
+
+ autotools-utils_src_install
+}
diff --git a/net-libs/openpgm/openpgm-5.2.122.ebuild b/net-libs/openpgm/openpgm-5.2.122.ebuild
new file mode 100644
index 000000000000..e2d1b1647456
--- /dev/null
+++ b/net-libs/openpgm/openpgm-5.2.122.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools-utils python-any-r1
+
+MY_PV="${PV//./-}"
+
+DESCRIPTION="Open source implementation of the Pragmatic General Multicast specification"
+HOMEPAGE="https://github.com/steve-o/openpgm"
+SRC_URI="https://github.com/steve-o/${PN}/archive/release-${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 arm arm64 hppa ppc ppc64 x86 ~x86-fbsd"
+IUSE="static-libs"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+
+S="${WORKDIR}/${PN}-release-${MY_PV}/${PN}/pgm"
+
+src_install() {
+ DOCS=( "${S}"/../doc/. "${S}"/README )
+
+ autotools-utils_src_install
+}
diff --git a/net-libs/openslp/Manifest b/net-libs/openslp/Manifest
new file mode 100644
index 000000000000..5f65ec8e989a
--- /dev/null
+++ b/net-libs/openslp/Manifest
@@ -0,0 +1,18 @@
+AUX openslp-1.2.1-cflags.patch 400 SHA256 0b7ecc480aae4a47761d6328f61135eef371e4098318de8278899f7e1f8ec766 SHA512 cb3c5a71ce9eb23daa2c25829549942b18e75472cda8d76d99bcae1371615f48f8de5bc126b266b51f4cc009049ccbbdb7958e0c09fe34d887da5af6c117c5ec WHIRLPOOL 07b8cb4fde8f65ad6db39a724d6dbc37bfbfe2e67a301620302aabf61b34b8afa03f272664fc8cf2d6fd7269a865819056206ada0f271b18540190bff43fc5b1
+AUX openslp-1.2.1-fbsd.patch 346 SHA256 131caf1dafc81f519d2e50bead9a2658e4efcb3594777ab189fd60a23f097da9 SHA512 7e8aeb152791d004fddd45c4ac8152f0df849f73b8428357476cfaf2a67c3418581dd05da439a9c856dcef0c6e231da13050ac8bc93d0f186dff2c644f407457 WHIRLPOOL 2ed6fea663137c9220582876f5b1cd3ac4d54f6a05f2afe8a90bf4a1fb71e36373582d9cd560b9285e6242d0d0fcdfb75bc217ec274cd313d7cc944e0d598b7d
+AUX openslp-1.2.1-fixoverflow.patch 506 SHA256 3f97013477a1ce9ee421ffe70c1ed3a24435ee7c85d2a665b4c4a21bded789c4 SHA512 a0f4dd64513a481fa6fff9fd7b5efc7b2b8ffcd6df0463cba6ae1508897af7269bdd061ee28c7868dfe9d9cbc61bb880791629ce7bcd51272a1df50460a7e20f WHIRLPOOL 661fb227a79078bc00123d87b2eee38b5e68f50536cf0ded2c50b61e5b26480bc783bf63b6adcd3046e3e07856adf63ee8e25606a76bd4bf6ce4e0eb4891f552
+AUX openslp-2.0.0-CVE-2012-4428.patch 1714 SHA256 8b98ce6295a9fb90c4dec022c944bbce1ccf985cc5371616e771cb09ab59bf41 SHA512 f83e0e4d0ea0b5ef01ca7eb94089d48a68b113cd51aa3234aa2b02e8733ae5eab33ea171fce11d6e0ee28996bb270ec2b0615ca3cc04ac6df6e3519f6d93c802 WHIRLPOOL 8b69ddf87a594403a75de0c6409f9ecdae0f3f2237851f54dcfb2130c36f1cad80e2efb74b50807845c982c1e128c6a7e0faea88a81619cae413b9caa8325955
+AUX openslp-2.0.0-CVE-2016-4912.patch 677 SHA256 6091a0d140e0a5da733c0ac5c8a726e3f01450d94571c1598978bcd67785aaaf SHA512 ff577e831c31f16f37fc4d6268e8876364125fcbc92afa4e7e9371353a0a409bd98a764dd2b1553aa8fbc921b9fcb8a3369ca20c2612db217a6be7979efbe1ec WHIRLPOOL f75478207f9936df936376d141b92307934c4659122c265a329e1fd647bec97072a7338346e7db05384c1137197423f2133cc009df82bb12d3de0ea57dc6828b
+AUX openslp-2.0.0-CVE-2016-7567.patch 2994 SHA256 263cdb569b6e8a53c403a35ff90058eceec500414328c151c186964761e7bb82 SHA512 44651a49bc43f1fb23b2621f39a6eb7f6329a76436460ef68a41b213f3037229e3a97006cec9b4206c461237532cbd04f3bd9d1a1bb59c96e0c37f5af0ae9e7e WHIRLPOOL ee6a459dfcf6e5eddf592a26a9e8b99275d4068f90cea7d3eb6a58eeb309bec0383bcc00bb6b778bf02141e691d526d911cd1462566109dff30089434817208e
+AUX openslp-2.0.0-cflags.patch 814 SHA256 cff59349acf8fd9e0e70bf3bf59a30b29408d8b6baf4b993aacc783aab3dd775 SHA512 d21b2c839d34e22c46ffc67e7011564ea99f39d5f2a1dc45a5d925944187942f82069177462fe6a04d139d90188dfc354ca12229698ea84f891b4b58a4083a55 WHIRLPOOL be8d55640c0430f138e9d29b24650fd4dcfc53faf82943f6d4c2537c49ffec2a5af6ed2db5cc84f54bcb35396dbd4cf4e32e1e794578d5d0d2ebbf636ee6bb83
+AUX openslp-2.0.0-namespace.patch 29475 SHA256 0bca962d644e4a9f47b6b8c70b024634a71ab7cad0a0e6ceaee2cdfeb9770d55 SHA512 1fb64ac5990356e5f98e4fd76038c6c51f9632163b68850d44cecc136fafdf4639ee187f9e879aba08f99c8fc79ca8f4e735b4253ab59af7b7120d1f119f20f2 WHIRLPOOL 4e5b4dd1a2bd7f90daae99ac1f0536a35c23542643cb62bdc7b86ed43cb526a2699dde9ccd2d6ec64ecacca53363af29624251769f1e0614b6c4566409cb6c29
+AUX slpd-init 2206 SHA256 903fdfdd8a5b482af011fc12f9050a9afceac09e4eed9e9cd4fa58240ab61349 SHA512 f76e98cfd48303d3095f2c9af0e81da7fd2def6d62fcadb881e64dd565af354cff65325d678c6d78cb62fffab67723513c1818a5f5c7606f21aa3a651bd8722b WHIRLPOOL 976c3e4a9e52a3e6288ba31b3f3fd0803237ace0ef8cdbc983272a03a4616046a77f1cf250bda20dceb1988f958ad7c3f4cd1516aa10ba3dbab80104abb1754e
+AUX slpd.service 203 SHA256 cd2f8cf14bd699eca303e1af30162df5e3cd189f0046ed0f0e2236665e4906b1 SHA512 189bc5ffe034ab4effdf4187f28110f028452fc9f6e27ff6c44681410b205eba4fb0412b5dd112d27596cef5e2143be6c722a2d5592d803d29dd25e4722ab6ce WHIRLPOOL f3d959d1012e99914b04103e81791da2933cddc32b6dbd0444dd02793c1c8a1217da12d9275102681286b2d75f0e58cfeb7a16f6c8e06dce382642efc8d06f2c
+DIST openslp-1.2.1.tar.gz 886195 SHA256 08c7ec1e76fdd66461b3784d52047f594405f31ba2791ab0c1ec7c97639f5fbd SHA512 34742d88e772d7dba5c6fab1ccb7bf27d6174c5ca429aec406472994bcd806bfaf16dd86fce2ae4c51659587e99cced2436cf36772f6e086f7b87275fb1b19b6 WHIRLPOOL 391f735f3a05d0054dec6cbfcc217f3567c2a09ed7931bb57c8289cab9e7f566e01524ead861ef34afe00e2fd2c2feb4262d4410bf83641e26615adef80ba7a8
+DIST openslp-2.0.0.tar.gz 5424646 SHA256 924337a2a8e5be043ebaea2a78365c7427ac6e9cee24610a0780808b2ba7579b SHA512 e7627417d45d5d0cc83d6e13d62fe192702ce7b763f1b4fb51aa5da8285405b16a34c3ac4f0a1ecffdf59557b29ec7d24925941e56ddee277c8897162f597ade WHIRLPOOL 03600b4e19732c4cde1b8843c91267eaa781024060feead7127f397f1c016d10758d9ac99dde39046e5746d54af16e60002b9b40f813c5e5c930cb24eaed700c
+EBUILD openslp-1.2.1-r3.ebuild 1027 SHA256 19408aac833048b76794ac0e4d25333294876e6f7e8b6a640d0d7b293e64c64a SHA512 373241a78ba23618fdad9d565bbb5b750e55dc3d5d58aef86bf65c4d6bf3215ad3af936306f30b1800173d3611545e43797e7d6320e10b2f686c8bde5a96b625 WHIRLPOOL 278a69d6272734416ee36df14e8e325a036f397fc2ab8274b106345ccc47307ab44e60ba3e89fdfe94108d9491f61e0cf1b17556b4b017de728428ebce787463
+EBUILD openslp-2.0.0-r4.ebuild 1085 SHA256 c236e4101ef8c93e1fdfc55eed3477c8e075b52956e5fa095b4109163d594e4d SHA512 1004ec076caeaf700c5142e8af2d7cacd7d829836eb4b4127c591cb99d76661416a60595856f0696f866f8441260c834f22c0f48793c71299a5c8ce4b317bfb9 WHIRLPOOL ca591a905d5c6301a3dd95b675341f7e47d83a0878d376d09be2332ae2e2c4e74af65268b520e3d1eec7f776cd6f32fce3d9ca244fa08895ad3552092d404f21
+EBUILD openslp-2.0.0-r5.ebuild 1144 SHA256 98ef4ad2ee893252cf19e2c5edb1dce2d47befe7a808f1f664926c3d7df241ca SHA512 7b49dbf4f14504dcbe89411279456dc2f3ccfdf266969729726b500e724ca5f07d7d7b4d11071f9d1d8b382d411373fd3660ee966bf489ed2fe81a61faed076c WHIRLPOOL feb46b5a007db0c414ec6a6a1dd3c29cd5b5e510007d623aa08cad0d6c4fa22eb8976f822b0124cd26df483f5ded25bffba39ef4454256b8d066c7c02fe2fa0e
+MISC ChangeLog 3032 SHA256 260567b4e461476895dbe1d07b9c825aa5d971e1caf6085529f7daf699bde00b SHA512 a7e679ef11c78093a9e8de7c343b5f814d80c0f93261d01013a8f3e8c01abec84d9be169a9a75d29c914678d580af9a8bc8d296db695a17b4c1e780b62a044fa WHIRLPOOL 40fc427fd5c3004e7f742d1ffd1982798c11b533cf155998128c5b4287206ac3b2380925f617e12cc9e29a84a1a0b5b150c206db34ad34962f364310fa08aa62
+MISC ChangeLog-2015 9188 SHA256 c0f4f90a373ecf4f1fc953a83c8c36b99a1d0417d6defe621cbd755567154cda SHA512 5333002b5bd291ce2390f9b56b9fb042f182d2f17da904ebd7561290629076ae56b9c5533d03aa31b1735c9b271ca88f889664b2a3d78e1578687947835cc8ad WHIRLPOOL fcde967322506a74b7ebe427981f33325c19c5b2500dd16e7b544be1260efb24a467635f3abda3d38a81aa71c1dd5d723a83cf6d57b848279bc3513a7e3f665c
+MISC metadata.xml 336 SHA256 807d0f36f4b7e0c0709cc27eb83a688f3c521a81dc50c8491cc6a889efa9512b SHA512 2aab4978f409d1ceb235b846e06bae2c750c68c69f54f6d5a3f96b30be24c6262cd085b741cc193d8d60a4486581817347ab5b3bcc84d43da48dcc2c215df84f WHIRLPOOL b312c5d2afdb6ceb29343a5b8e65c20262aeb3894d937cf3a248a539d538690a073c1cec4f3a4c2142c0bbbe965725659990c2b4ac1302c627d3256dcb22cc15
diff --git a/net-libs/openslp/files/openslp-1.2.1-cflags.patch b/net-libs/openslp/files/openslp-1.2.1-cflags.patch
new file mode 100644
index 000000000000..a9a1d2634e7f
--- /dev/null
+++ b/net-libs/openslp/files/openslp-1.2.1-cflags.patch
@@ -0,0 +1,11 @@
+diff -ruN openslp-1.2.1.orig/configure.in openslp-1.2.1/configure.in
+--- openslp-1.2.1.orig/configure.in 2005-02-15 21:06:02.000000000 +0100
++++ openslp-1.2.1/configure.in 2012-01-24 23:49:13.000000000 +0100
+@@ -153,7 +153,6 @@
+ OPTFLAGS="-O"
+ fi
+ fi
+-CFLAGS="$CFLAGS $OPTFLAGS"
+
+ dnl ***********************************************************************
+ dnl Checks for header files.
diff --git a/net-libs/openslp/files/openslp-1.2.1-fbsd.patch b/net-libs/openslp/files/openslp-1.2.1-fbsd.patch
new file mode 100644
index 000000000000..dac041516f23
--- /dev/null
+++ b/net-libs/openslp/files/openslp-1.2.1-fbsd.patch
@@ -0,0 +1,12 @@
+Index: openslp-1.2.1/common/Makefile.am
+===================================================================
+--- openslp-1.2.1.orig/common/Makefile.am
++++ openslp-1.2.1/common/Makefile.am
+@@ -24,6 +24,7 @@ libcommonlibslp_la_SOURCES = \
+ slp_parse.c \
+ slp_pid.c \
+ slp_dhcp.c \
++ slp_net.c \
+ $(slp_v1message_SRCS) \
+ $(slp_security_SRCS)
+
diff --git a/net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch b/net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch
new file mode 100644
index 000000000000..c02d8407fb3b
--- /dev/null
+++ b/net-libs/openslp/files/openslp-1.2.1-fixoverflow.patch
@@ -0,0 +1,11 @@
+--- a/openslp-1.2.1/slpd/slpd_socket.c 2010-09-11 16:31:47.325871093 -0500
++++ b/openslp-1.2.1/slpd/slpd_socket.c 2010-09-11 16:31:55.706851189 -0500
+@@ -183,7 +183,7 @@
+ memcpy(&mreq.imr_multiaddr, maddr, sizeof(struct in_addr));
+
+ /* drop for the specified interface */
+- memcpy(&mreq.imr_interface,addr,sizeof(addr));
++ memcpy(&mreq.imr_interface,addr,sizeof(struct in_addr));
+
+ return setsockopt(sockfd, IPPROTO_IP, IP_DROP_MEMBERSHIP, (char*)&mreq,sizeof(mreq));
+ }
diff --git a/net-libs/openslp/files/openslp-2.0.0-CVE-2012-4428.patch b/net-libs/openslp/files/openslp-2.0.0-CVE-2012-4428.patch
new file mode 100644
index 000000000000..28564c007cf3
--- /dev/null
+++ b/net-libs/openslp/files/openslp-2.0.0-CVE-2012-4428.patch
@@ -0,0 +1,51 @@
+
+Description: Fix out-of-bounds buffer access (CVE-2012-4428)
+ Fix handling of string-list in common/slp_common.c by not increasing
+ the item pointer past the string-list pointer, and letting '\\' only
+ escape the item separator ','.
+Author: Guillem Jover <guillem@debian.org>
+Origin: vendor
+Bug: http://sourceforge.net/p/openslp/bugs/122/
+Bug-Debian: https://bugs.debian.org/687597
+Last-Update: 2014-07-25
+
+Strangely nobody seems to have fixed this in openslp-2.0.0 ever.
+Patch forward-ported; one chunk isn't needed anymore as the code has been
+independently rewritten. Andreas K. Hüttel <dilfridge@gentoo.org>
+
+
+diff -ruN openslp-2.0.0.orig/common/slp_compare.c openslp-2.0.0/common/slp_compare.c
+--- openslp-2.0.0.orig/common/slp_compare.c 2012-12-12 20:12:43.000000000 +0100
++++ openslp-2.0.0/common/slp_compare.c 2017-02-18 19:59:55.296473698 +0100
+@@ -587,13 +587,10 @@
+ /* seek to the end of the next list item */
+ while(1)
+ {
+- if(itemend == listend || *itemend == ',')
+- {
+- if(*(itemend - 1) != '\\')
+- {
+- break;
+- }
+- }
++ if(itemend == listend)
++ break;
++ if(*itemend == ',' && *(itemend - 1) != '\\')
++ break;
+
+ itemend++;
+ }
+@@ -683,9 +680,10 @@
+ /* seek to the end of the next list item */
+ while (1)
+ {
+- if (itemend == listend || *itemend == ',')
+- if (*(itemend - 1) != '\\')
+- break;
++ if(itemend == listend)
++ break;
++ if(*itemend == ',' && *(itemend - 1) != '\\')
++ break;
+ itemend++;
+ }
+
diff --git a/net-libs/openslp/files/openslp-2.0.0-CVE-2016-4912.patch b/net-libs/openslp/files/openslp-2.0.0-CVE-2016-4912.patch
new file mode 100644
index 000000000000..d8a0eca0d3d3
--- /dev/null
+++ b/net-libs/openslp/files/openslp-2.0.0-CVE-2016-4912.patch
@@ -0,0 +1,15 @@
+Source: https://src.fedoraproject.org/cgit/rpms/openslp.git/plain/openslp-2.0.0-null-pointer-deref.patch
+See also https://bugs.gentoo.org/show_bug.cgi?id=583396
+
+diff -up openslp-2.0.0/common/slp_xmalloc.c.orig openslp-2.0.0/common/slp_xmalloc.c
+--- openslp-2.0.0/common/slp_xmalloc.c.orig 2012-12-07 01:52:08.000000000 +0100
++++ openslp-2.0.0/common/slp_xmalloc.c 2016-05-23 12:58:57.953532979 +0200
+@@ -203,6 +203,8 @@ void * _xrealloc(const char * file, int
+ if (x->size != size)
+ {
+ newptr = _xmalloc(file, line, size);
++ if (newptr == 0)
++ return 0;
+ memcpy(newptr, ptr, x->size);
+ _xfree(file, line, x);
+ }
diff --git a/net-libs/openslp/files/openslp-2.0.0-CVE-2016-7567.patch b/net-libs/openslp/files/openslp-2.0.0-CVE-2016-7567.patch
new file mode 100644
index 000000000000..2d54fa04bfce
--- /dev/null
+++ b/net-libs/openslp/files/openslp-2.0.0-CVE-2016-7567.patch
@@ -0,0 +1,94 @@
+See
+http://www.openwall.com/lists/oss-security/2016/09/27/4
+https://bugs.gentoo.org/show_bug.cgi?id=595542
+
+diff -r 598821da69f2 -r 34fb3aa5e6b4 openslp/common/slp_compare.c
+--- a/common/slp_compare.c Sat Jun 08 15:14:45 2013 -0600
++++ b/common/slp_compare.c Mon Nov 30 20:50:12 2015 -0700
+@@ -194,7 +194,8 @@
+ * @return The new (shorter) length of @p str.
+ *
+ * @note This routine assumes that leading and trailing white space have
+- * already been removed from @p str.
++ * already been removed from @p str. It also assumes that @p str may
++ * not be null-terminated.
+ */
+ static int SLPFoldWhiteSpace(size_t len, char * str)
+ {
+@@ -203,11 +204,11 @@
+ {
+ if (isspace(*p))
+ {
+- char * ws2p = ++p; /* Point ws2p to the second ws char. */
+- while (isspace(*p)) /* Scan till we hit a non-ws char. */
++ char * ws2p = ++p; /* Point ws2p to the second ws char. */
++ while (p < ep && isspace(*p)) /* Scan till we hit a non-ws char. */
+ p++;
+- len -= p - ws2p; /* Reduce the length by extra ws. */
+- memmove(ws2p, p, ep - p); /* Overwrite the extra white space. */
++ len -= p - ws2p; /* Reduce the length by extra ws. */
++ memmove(ws2p, p, ep - p); /* Overwrite the extra white space. */
+ }
+ p++;
+ }
+@@ -821,6 +822,50 @@
+
+ #ifdef SLP_COMPARE_TEST
+
++/* Test boundary conditions of SLPFoldWhiteSpace. */
++static int test_SLPFoldWhiteSpace(void)
++{
++ static char test_str0[] = " ";
++ static char test_str1[] = "Blah";
++ static char test_str3[] = "Blah blah";
++ static char test_str4[] = "Blah blah";
++ static char test_str5[] = "Blah blah blah";
++ static char test_str8[] = " Blah blah";
++ static char test_str9[] = " Blah blah";
++ static char test_strC[] = "Blah blah ";
++ static char test_strD[] = "Blah blah xxxx";
++
++ static char * test_strs[] =
++ {
++ test_str0, test_str0, test_str0, test_str1, test_strC,
++ test_str3, test_str4, test_str5, test_strC, test_strC,
++ test_str8, test_str9, test_strC, test_strD,
++ };
++
++ static int test_lens[] =
++ {
++ 0, 1, 2, 4, 9, 10, 11, 15, 10, 11, 10, 11, 11, 11,
++ };
++
++ static int test_fins[] =
++ {
++ 0, 1, 1, 4, 9, 9, 9, 14, 10, 10, 10, 10, 10, 10,
++ };
++
++#define MAX_BUFSZ 32
++
++ int i;
++ for (i = 0; i < sizeof(test_strs) / sizeof(*test_strs); ++i)
++ {
++ char test_buf[MAX_BUFSZ];
++ memmove(test_buf, test_strs[i], test_lens[i]);
++ int len = SLPFoldWhiteSpace(test_lens[i], test_buf);
++ if (len != test_fins[i])
++ return -1;
++ }
++ return 0;
++}
++
+ /* ---------------- Test main for the slp_compare.c module ----------------
+ *
+ * Compile with:
+@@ -840,6 +885,9 @@
+
+ int count;
+
++ if (test_SLPFoldWhiteSpace() != 0)
++ return -1;
++
+ /* *** SLPContainsStringList ***
+ */
+ count = SLPContainsStringList(sizeof lst1 - 1, lst1, sizeof str1 - 1, str1);
diff --git a/net-libs/openslp/files/openslp-2.0.0-cflags.patch b/net-libs/openslp/files/openslp-2.0.0-cflags.patch
new file mode 100644
index 000000000000..b77261ee1f6d
--- /dev/null
+++ b/net-libs/openslp/files/openslp-2.0.0-cflags.patch
@@ -0,0 +1,25 @@
+diff -ruN openslp-2.0.0.orig/configure.ac openslp-2.0.0/configure.ac
+--- openslp-2.0.0.orig/configure.ac 2013-06-08 06:58:54.000000000 +0200
++++ openslp-2.0.0/configure.ac 2013-07-12 22:17:15.000000000 +0200
+@@ -240,7 +240,6 @@
+ OPTFLAGS="-O"
+ fi
+ fi
+-CFLAGS="$CFLAGS $OPTFLAGS"
+
+ #
+ # Configuration and output
+diff -ruN openslp-2.0.0.orig/etc/Makefile.am openslp-2.0.0/etc/Makefile.am
+--- openslp-2.0.0.orig/etc/Makefile.am 2012-11-28 18:07:04.000000000 +0100
++++ openslp-2.0.0/etc/Makefile.am 2013-07-12 22:28:20.000000000 +0200
+@@ -3,8 +3,8 @@
+ dist_sysconf_DATA = slp.conf slp.reg slp.spi
+
+ #make sure the slpd log directory is there
+-install-data-hook:
+- mkdir -p $(localstatedir)/log
++#install-data-hook:
++# mkdir -p $(localstatedir)/log
+
+ ##install-data-local:
+ ## mkdir -p $(DESTDIR)$(sysconfdir)
diff --git a/net-libs/openslp/files/openslp-2.0.0-namespace.patch b/net-libs/openslp/files/openslp-2.0.0-namespace.patch
new file mode 100644
index 000000000000..b5e817877406
--- /dev/null
+++ b/net-libs/openslp/files/openslp-2.0.0-namespace.patch
@@ -0,0 +1,773 @@
+# HG changeset patch
+# User John Calcote <john.calcote@gmail.com>
+# Date 1491588156 21600
+# Fri Apr 07 12:02:36 2017 -0600
+# Node ID 51ed69107d096c5b9886954d89e0709975d5aa15
+# Parent c1c294ce953e35f757020b01314cfc49556ccc0c
+BUG#149: cleanup libslp namespace; fix ctype function calls throughout.
+
+diff -ruN openslp-2.0.0.orig/common/slp_compare.c openslp-2.0.0/common/slp_compare.c
+--- openslp-2.0.0.orig/common/slp_compare.c 2017-06-10 01:15:33.214875294 +0200
++++ openslp-2.0.0/common/slp_compare.c 2017-06-10 01:16:39.072878034 +0200
+@@ -83,9 +83,10 @@
+ *
+ * @internal
+ */
+-int strncasecmp(const char * s1, const char * s2, size_t len)
++int slp_strncasecmp(const char * s1, const char * s2, size_t len)
+ {
+- while (*s1 && (*s1 == *s2 || tolower(*s1) == tolower(*s2)))
++ while (*s1 && (*s1 == *s2
++ || tolower((unsigned char)*s1) == tolower((unsigned char)*s2)))
+ {
+ len--;
+ if (len == 0)
+@@ -93,7 +94,7 @@
+ s1++;
+ s2++;
+ }
+- return len? (int)(*(unsigned char *)s1 - (int)*(unsigned char *)s2): 0;
++ return len? (unsigned char)*s1 - (unsigned char)*s2: 0;
+ }
+ # endif
+
+@@ -113,11 +114,12 @@
+ *
+ * @internal
+ */
+-int strcasecmp(const char * s1, const char * s2)
++int slp_strcasecmp(const char * s1, const char * s2)
+ {
+- while (*s1 && (*s1 == *s2 || tolower(*s1) == tolower(*s2)))
++ while (*s1 && (*s1 == *s2
++ || tolower((unsigned char)*s1) == tolower((unsigned char)*s2)))
+ s1++, s2++;
+- return (int)(*(unsigned char *)s1 - (int)*(unsigned char *)s2);
++ return (unsigned char)*s1 - (unsigned char)*s2;
+ }
+ # endif
+ #endif
+@@ -202,13 +204,13 @@
+ char * p = str, * ep = str + len;
+ while (p < ep)
+ {
+- if (isspace(*p))
++ if (isspace((unsigned char)*p))
+ {
+- char * ws2p = ++p; /* Point ws2p to the second ws char. */
+- while (p < ep && isspace(*p)) /* Scan till we hit a non-ws char. */
++ char * ws2p = ++p; /* Point ws2p to the second ws char. */
++ while (p < ep && isspace((unsigned char)*p)) /* Scan till we hit a non-ws char. */
+ p++;
+- len -= p - ws2p; /* Reduce the length by extra ws. */
+- memmove(ws2p, p, ep - p); /* Overwrite the extra white space. */
++ len -= p - ws2p; /* Reduce the length by extra ws. */
++ memmove(ws2p, p, ep - p); /* Overwrite the extra white space. */
+ }
+ p++;
+ }
+@@ -276,9 +278,9 @@
+ char *upd = dststr;
+ while (len > 0 && *srcstr)
+ {
+- if (isspace(*srcstr))
++ if (isspace((unsigned char)*srcstr))
+ {
+- while (isspace(*srcstr) && len > 0)
++ while (isspace((unsigned char)*srcstr) && len > 0)
+ {
+ ++srcstr, --len;
+ }
+@@ -311,7 +313,7 @@
+ }
+ else
+ {
+- *upd++ = (char)tolower(*srcstr++);
++ *upd++ = (char)tolower((unsigned char)*srcstr++);
+ --len;
+ }
+ }
+@@ -340,15 +342,15 @@
+ char * cpy1, * cpy2;
+
+ /* Remove leading white space. */
+- while (str1len && isspace(*str1))
++ while (str1len && isspace((unsigned char)*str1))
+ str1++, str1len--;
+- while (str2len && isspace(*str2))
++ while (str2len && isspace((unsigned char)*str2))
+ str2++, str2len--;
+
+ /* Remove trailing white space. */
+- while (str1len && isspace(str1[str1len - 1]))
++ while (str1len && isspace((unsigned char)str1[str1len - 1]))
+ str1len--;
+- while (str2len && isspace(str2[str2len - 1]))
++ while (str2len && isspace((unsigned char)str2[str2len - 1]))
+ str2len--;
+
+ /*A quick check for empty strings before we start xmemduping and xfreeing*/
+diff -ruN openslp-2.0.0.orig/common/slp_compare.h openslp-2.0.0/common/slp_compare.h
+--- openslp-2.0.0.orig/common/slp_compare.h 2012-11-28 18:07:04.000000000 +0100
++++ openslp-2.0.0/common/slp_compare.h 2017-06-10 01:16:39.072878034 +0200
+@@ -52,10 +52,12 @@
+
+ #ifndef _WIN32
+ # ifndef HAVE_STRNCASECMP
+-int strncasecmp(const char * s1, const char * s2, size_t len);
++int slp_strncasecmp(const char * s1, const char * s2, size_t len);
++# define strncasecmp slp_strncasecmp
+ # endif
+ # ifndef HAVE_STRCASECMP
+-int strcasecmp(const char * s1, const char * s2);
++int slp_strcasecmp(const char * s1, const char * s2);
++# define strcasecmp slp_strcasecmp
+ # endif
+ #endif
+
+diff -ruN openslp-2.0.0.orig/common/slp_dhcp.c openslp-2.0.0/common/slp_dhcp.c
+--- openslp-2.0.0.orig/common/slp_dhcp.c 2012-12-07 01:52:08.000000000 +0100
++++ openslp-2.0.0/common/slp_dhcp.c 2017-06-10 01:16:39.073878034 +0200
+@@ -405,7 +405,7 @@
+ * ENOTCONN (read error), ETIMEDOUT (read timeout), ENOMEM (out of
+ * memory), or EINVAL (on parse error).
+ */
+-int DHCPGetOptionInfo(unsigned char * dhcpOptCodes, int dhcpOptCodeCnt,
++int slp_DHCPGetOptionInfo(unsigned char * dhcpOptCodes, int dhcpOptCodeCnt,
+ DHCPInfoCallBack * dhcpInfoCB, void * context)
+ {
+ uint32_t xid;
+@@ -539,7 +539,7 @@
+ * @return Zero on success, or a non-zero value to stop the caller from
+ * continuing to parse the buffer and call this routine.
+ */
+-int DHCPParseSLPTags(int tag, void * optdata, size_t optdatasz,
++int slp_DHCPParseSLPTags(int tag, void * optdata, size_t optdatasz,
+ void * context)
+ {
+ size_t cpysz, bufsz, dasize;
+@@ -707,8 +707,8 @@
+ ctx.scopelistlen = 0;
+ ctx.addrlistlen = 0;
+
+- if ((err = DHCPGetOptionInfo(dhcpOpts, sizeof(dhcpOpts),
+- DHCPParseSLPTags, &ctx)) != 0)
++ if ((err = slp_DHCPGetOptionInfo(dhcpOpts, sizeof(dhcpOpts),
++ slp_DHCPParseSLPTags, &ctx)) != 0)
+ return FAIL;
+
+ printf("ScopeList: [%.*s]\n", ctx.scopelistlen, ctx.scopelist);
+diff -ruN openslp-2.0.0.orig/common/slp_dhcp.h openslp-2.0.0/common/slp_dhcp.h
+--- openslp-2.0.0.orig/common/slp_dhcp.h 2012-11-28 18:07:04.000000000 +0100
++++ openslp-2.0.0/common/slp_dhcp.h 2017-06-10 01:16:39.073878034 +0200
+@@ -131,10 +131,10 @@
+ typedef int DHCPInfoCallBack(int tag, void * optdata,
+ size_t optdatasz, void * context);
+
+-int DHCPGetOptionInfo(unsigned char * dhcpOptCodes, int dhcpOptCodeCnt,
++int slp_DHCPGetOptionInfo(unsigned char * dhcpOptCodes, int dhcpOptCodeCnt,
+ DHCPInfoCallBack * dhcpInfoCB, void * context);
+
+-int DHCPParseSLPTags(int tag, void * optdata, size_t optdatasz,
++int slp_DHCPParseSLPTags(int tag, void * optdata, size_t optdatasz,
+ void * context);
+
+ /** DHCP interface context structure */
+diff -ruN openslp-2.0.0.orig/common/slp_iface.c openslp-2.0.0/common/slp_iface.c
+--- openslp-2.0.0.orig/common/slp_iface.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/common/slp_iface.c 2017-06-10 01:16:39.073878034 +0200
+@@ -645,7 +645,7 @@
+ *
+ * @internal
+ */
+-int sizeof_ifreq(struct ifreq* ifr)
++static int sizeof_ifreq(struct ifreq* ifr)
+ {
+ #ifdef HAVE_SOCKADDR_STORAGE_SS_LEN
+ int len = ifr->ifr_addr.sa_len + sizeof(ifr->ifr_name);
+diff -ruN openslp-2.0.0.orig/common/slp_message.c openslp-2.0.0/common/slp_message.c
+--- openslp-2.0.0.orig/common/slp_message.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/common/slp_message.c 2017-06-10 01:16:39.073878034 +0200
+@@ -58,7 +58,7 @@
+ * @return A 16-bit unsigned value in native format; the buffer pointer
+ * is moved ahead by 2 bytes on return.
+ */
+-uint16_t GetUINT16(uint8_t ** cpp)
++uint16_t slp_GetUINT16(uint8_t ** cpp)
+ {
+ uint16_t rv = AS_UINT16(*cpp);
+ *cpp += 2;
+@@ -72,7 +72,7 @@
+ * @return A 32-bit unsigned value in native format; the buffer pointer
+ * is moved ahead by 3 bytes on return.
+ */
+-uint32_t GetUINT24(uint8_t ** cpp)
++uint32_t slp_GetUINT24(uint8_t ** cpp)
+ {
+ uint32_t rv = AS_UINT24(*cpp);
+ *cpp += 3;
+@@ -86,7 +86,7 @@
+ * @return A 32-bit unsigned value in native format; the buffer pointer
+ * is moved ahead by 4 bytes on return.
+ */
+-uint32_t GetUINT32(uint8_t ** cpp)
++uint32_t slp_GetUINT32(uint8_t ** cpp)
+ {
+ uint32_t rv = AS_UINT32(*cpp);
+ *cpp += 4;
+@@ -106,7 +106,7 @@
+ * @p cppstring pointer; the buffer pointer is moved ahead by @p len bytes
+ * on return.
+ */
+-char * GetStrPtr(uint8_t ** cpp, size_t len)
++char * slp_GetStrPtr(uint8_t ** cpp, size_t len)
+ {
+ char * sp = (char *)*cpp;
+ *cpp += len;
+@@ -120,7 +120,7 @@
+ *
+ * @note The buffer address is moved ahead by 2 bytes on return.
+ */
+-void PutUINT16(uint8_t ** cpp, size_t val)
++void slp_PutUINT16(uint8_t ** cpp, size_t val)
+ {
+ TO_UINT16(*cpp, val);
+ *cpp += 2;
+@@ -133,7 +133,7 @@
+ *
+ * @note The buffer address is moved ahead by 3 bytes on return.
+ */
+-void PutUINT24(uint8_t ** cpp, size_t val)
++void slp_PutUINT24(uint8_t ** cpp, size_t val)
+ {
+ TO_UINT24(*cpp, val);
+ *cpp += 3;
+@@ -146,7 +146,7 @@
+ *
+ * @note The buffer address is moved ahead by 4 bytes on return.
+ */
+-void PutUINT32(uint8_t ** cpp, size_t val)
++void slp_PutUINT32(uint8_t ** cpp, size_t val)
+ {
+ TO_UINT32(*cpp, val);
+ *cpp += 4;
+diff -ruN openslp-2.0.0.orig/common/slp_message.h openslp-2.0.0/common/slp_message.h
+--- openslp-2.0.0.orig/common/slp_message.h 2012-12-07 21:13:28.000000000 +0100
++++ openslp-2.0.0/common/slp_message.h 2017-06-10 01:16:39.073878034 +0200
+@@ -188,14 +188,23 @@
+ #define PEEK_LENGTH(p) ((*p == 2) ? AS_UINT24(p + 2) : (*p == 1) ? AS_UINT16(p + 2) : 1)
+
+ /* buffer-based wire routines */
+-uint16_t GetUINT16(uint8_t ** cpp);
+-uint32_t GetUINT24(uint8_t ** cpp);
+-uint32_t GetUINT32(uint8_t ** cpp);
+-char * GetStrPtr(uint8_t ** cpp, size_t length);
++uint16_t slp_GetUINT16(uint8_t ** cpp);
++uint32_t slp_GetUINT24(uint8_t ** cpp);
++uint32_t slp_GetUINT32(uint8_t ** cpp);
++char * slp_GetStrPtr(uint8_t ** cpp, size_t length);
+
+-void PutUINT16(uint8_t ** cpp, size_t val);
+-void PutUINT24(uint8_t ** cpp, size_t val);
+-void PutUINT32(uint8_t ** cpp, size_t val);
++void slp_PutUINT16(uint8_t ** cpp, size_t val);
++void slp_PutUINT24(uint8_t ** cpp, size_t val);
++void slp_PutUINT32(uint8_t ** cpp, size_t val);
++
++#define GetUINT16 slp_GetUINT16
++#define GetUINT24 slp_GetUINT24
++#define GetUINT32 slp_GetUINT32
++#define GetStrPtr slp_GetStrPtr
++
++#define PutUINT16 slp_PutUINT16
++#define PutUINT24 slp_PutUINT24
++#define PutUINT32 slp_PutUINT32
+
+ /** SLPHeader structure and associated functions */
+ typedef struct _SLPHeader
+diff -ruN openslp-2.0.0.orig/common/slp_net.c openslp-2.0.0/common/slp_net.c
+--- openslp-2.0.0.orig/common/slp_net.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/common/slp_net.c 2017-06-10 01:16:39.073878034 +0200
+@@ -76,18 +76,20 @@
+ #endif
+
+ /** IPv6 SLP address constants */
+-const struct in6_addr in6addr_srvloc_node = IN6ADDR_SRVLOC_NODE_INIT;
+-const struct in6_addr in6addr_srvloc_link = IN6ADDR_SRVLOC_LINK_INIT;
+-const struct in6_addr in6addr_srvloc_site = IN6ADDR_SRVLOC_SITE_INIT;
+-const struct in6_addr in6addr_srvlocda_node = IN6ADDR_SRVLDA_NODE_INIT;
+-const struct in6_addr in6addr_srvlocda_link = IN6ADDR_SRVLDA_LINK_INIT;
+-const struct in6_addr in6addr_srvlocda_site = IN6ADDR_SRVLDA_SITE_INIT;
+-const struct in6_addr in6addr_service_node_mask = IN6ADDR_SVCNOD_MASK_INIT;
+-const struct in6_addr in6addr_service_link_mask = IN6ADDR_SVCLNK_MASK_INIT;
+-const struct in6_addr in6addr_service_site_mask = IN6ADDR_SVCSIT_MASK_INIT;
+-const struct in6_addr slp_in6addr_any = SLP_IN6ADDR_ANY_INIT;
+-const struct in6_addr slp_in6addr_loopback = SLP_IN6ADDR_LOOPBACK_INIT;
++const struct in6_addr in6addr_srvloc_node = IN6ADDR_SRVLOC_NODE_INIT;
++const struct in6_addr in6addr_srvloc_link = IN6ADDR_SRVLOC_LINK_INIT;
++const struct in6_addr in6addr_srvloc_site = IN6ADDR_SRVLOC_SITE_INIT;
+
++const struct in6_addr in6addr_srvlocda_node = IN6ADDR_SRVLDA_NODE_INIT;
++const struct in6_addr in6addr_srvlocda_link = IN6ADDR_SRVLDA_LINK_INIT;
++const struct in6_addr in6addr_srvlocda_site = IN6ADDR_SRVLDA_SITE_INIT;
++
++const struct in6_addr slp_in6addr_any = SLP_IN6ADDR_ANY_INIT;
++const struct in6_addr slp_in6addr_loopback = SLP_IN6ADDR_LOOPBACK_INIT;
++
++static const struct in6_addr in6addr_service_node_mask = IN6ADDR_SVCNOD_MASK_INIT;
++static const struct in6_addr in6addr_service_link_mask = IN6ADDR_SVCLNK_MASK_INIT;
++static const struct in6_addr in6addr_service_site_mask = IN6ADDR_SVCSIT_MASK_INIT;
+
+ /** Returns the scope embedded in the IPv6 multicast address.
+ *
+diff -ruN openslp-2.0.0.orig/common/slp_net.h openslp-2.0.0/common/slp_net.h
+--- openslp-2.0.0.orig/common/slp_net.h 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/common/slp_net.h 2017-06-10 01:16:39.073878034 +0200
+@@ -65,9 +65,6 @@
+ extern const struct in6_addr in6addr_srvlocda_node;
+ extern const struct in6_addr in6addr_srvlocda_link;
+ extern const struct in6_addr in6addr_srvlocda_site;
+-extern const struct in6_addr in6addr_service_node_mask;
+-extern const struct in6_addr in6addr_service_link_mask;
+-/* extern const struct in6_addr in6addr_service_site_mask; */
+
+ /** IN6 "Any" and "Loopback" address initializer macros */
+ #ifdef _AIX
+diff -ruN openslp-2.0.0.orig/common/slp_network.c openslp-2.0.0/common/slp_network.c
+--- openslp-2.0.0.orig/common/slp_network.c 2013-06-08 04:50:38.000000000 +0200
++++ openslp-2.0.0/common/slp_network.c 2017-06-10 01:16:39.073878034 +0200
+@@ -364,7 +364,7 @@
+ * @returns A const pointer to @p dst on success; or NULL on failure,
+ * and sets @a errno to EAFNOSUPPORT.
+ */
+-const char * saddr_ntop(const void * src, char * dst, size_t dstsz)
++const char * slp_saddr_ntop(const void * src, char * dst, size_t dstsz)
+ {
+ switch (((const struct sockaddr *)src)->sa_family)
+ {
+diff -ruN openslp-2.0.0.orig/common/slp_network.h openslp-2.0.0/common/slp_network.h
+--- openslp-2.0.0.orig/common/slp_network.h 2012-11-28 18:07:04.000000000 +0100
++++ openslp-2.0.0/common/slp_network.h 2017-06-10 01:16:39.073878034 +0200
+@@ -62,7 +62,7 @@
+ size_t bufsz, void * peeraddr, struct timeval * timeout);
+ int SLPNetworkRecvMessage(sockfd_t sockfd, int socktype, SLPBuffer * buf,
+ void * peeraddr, struct timeval * timeout);
+-const char * saddr_ntop(const void * src, char * dst, size_t dstsz);
++const char * slp_saddr_ntop(const void * src, char * dst, size_t dstsz);
+
+ void SLPNetworkSetSndRcvBuf(sockfd_t sock);
+ /*! @} */
+diff -ruN openslp-2.0.0.orig/common/slp_v1message.c openslp-2.0.0/common/slp_v1message.c
+--- openslp-2.0.0.orig/common/slp_v1message.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/common/slp_v1message.c 2017-06-10 01:16:39.073878034 +0200
+@@ -275,10 +275,10 @@
+ || (tmp = strstr(srvreg->attrlist, "scope")) != 0)
+ {
+ tmp += 5;
+- while (*tmp && (isspace(*tmp) || *tmp == '='))
++ while (*tmp && (isspace((unsigned char)*tmp) || *tmp == '='))
+ tmp++; /* Find start of scope string. */
+ srvreg->scopelist = tmp;
+- while (*tmp && !isspace(*tmp) && *tmp != ')')
++ while (*tmp && !isspace((unsigned char)*tmp) && *tmp != ')')
+ tmp++; /* Find end of scope string. */
+ srvreg->scopelistlen = tmp - srvreg->scopelist;
+ /** @todo Should we convert to UTF-8 here? */
+diff -ruN openslp-2.0.0.orig/common/slp_xmalloc.c openslp-2.0.0/common/slp_xmalloc.c
+--- openslp-2.0.0.orig/common/slp_xmalloc.c 2017-06-10 01:15:33.209875294 +0200
++++ openslp-2.0.0/common/slp_xmalloc.c 2017-06-10 01:18:31.228882700 +0200
+@@ -106,7 +106,7 @@
+ *
+ * @return A pointer to the newly allocated memory block.
+ */
+-void * _xmalloc(const char * file, int line, size_t size)
++void * slp_xmalloc(const char * file, int line, size_t size)
+ {
+ xallocation_t * x;
+
+@@ -161,10 +161,10 @@
+ *
+ * @return A pointer to the newly allocated and cleared memory block.
+ */
+-void * _xcalloc(const char * file, int line, int numblks, size_t size)
++void * slp_xcalloc(const char * file, int line, int numblks, size_t size)
+ {
+ size_t blksz = numblks * size;
+- void * ptr = _xmalloc(file, line, blksz);
++ void * ptr = slp_xmalloc(file, line, blksz);
+ if (ptr)
+ memset(ptr, 0, blksz);
+ return ptr;
+@@ -183,16 +183,16 @@
+ * NULL for @p buf actually allocates a new buffer, passing 0
+ * for @p size actually allocates a new buffer.
+ */
+-void * _xrealloc(const char * file, int line, void * ptr, size_t size)
++void * slp_xrealloc(const char * file, int line, void * ptr, size_t size)
+ {
+ xallocation_t * x;
+
+ if (!ptr)
+- return _xmalloc(file, line, size);
++ return slp_xmalloc(file, line, size);
+
+ if (!size)
+ {
+- _xfree(file, line, ptr);
++ slp_xfree(file, line, ptr);
+ return 0;
+ }
+
+@@ -202,11 +202,11 @@
+ void * newptr = ptr;
+ if (x->size != size)
+ {
+- newptr = _xmalloc(file, line, size);
++ newptr = slp_xmalloc(file, line, size);
+ if (newptr == 0)
+ return 0;
+ memcpy(newptr, ptr, x->size);
+- _xfree(file, line, x);
++ slp_xfree(file, line, x);
+ }
+ return newptr;
+ }
+@@ -227,10 +227,10 @@
+ * @return A pointer to the duplicated string, or NULL on memory
+ * allocation failure.
+ */
+-char * _xstrdup(const char * file, int line, const char * str)
++char * slp_xstrdup(const char * file, int line, const char * str)
+ {
+ size_t strsz = strlen(str) + 1;
+- char * ptr = _xmalloc(file, line, strsz);
++ char * ptr = slp_xmalloc(file, line, strsz);
+ if (ptr)
+ memcpy(ptr, str, strsz);
+ return ptr;
+@@ -246,9 +246,9 @@
+ * @return A pointer to the duplicated memory block, or NULL on memory
+ * allocation failure.
+ */
+-void * _xmemdup(const char * file, int line, const void * ptr, size_t size)
++void * slp_xmemdup(const char * file, int line, const void * ptr, size_t size)
+ {
+- void * cpy = _xmalloc(file, line, size);
++ void * cpy = slp_xmalloc(file, line, size);
+ if (cpy)
+ memcpy(cpy, ptr, size);
+ return cpy;
+@@ -260,7 +260,7 @@
+ * @param[in] line - The line number where @e xfree was called.
+ * @param[in] ptr - The address of the block to be free'd.
+ */
+-void _xfree(const char * file, int line, void * ptr)
++void slp_xfree(const char * file, int line, void * ptr)
+ {
+ xallocation_t * x;
+
+@@ -292,7 +292,7 @@
+ * @return A boolean true (1) on success, or false (0) the log file
+ * fails to open.
+ */
+-int xmalloc_init(const char * filename, size_t freemem)
++int slp_xmalloc_init(const char * filename, size_t freemem)
+ {
+ G_xmalloc_fh = fopen(filename, "w");
+ if (G_xmalloc_fh == 0)
+@@ -305,7 +305,7 @@
+ *
+ * @return 0
+ */
+-int xmalloc_report(void)
++int slp_xmalloc_report(void)
+ {
+ xallocation_t * x;
+
+@@ -327,7 +327,7 @@
+
+ /** Deinitialize the debug memory allocator.
+ */
+-void xmalloc_deinit(void)
++void slp_xmalloc_deinit(void)
+ {
+ xmalloc_report();
+
+@@ -352,7 +352,7 @@
+ * @return A pointer to the duplicated memory block, or NULL on memory
+ * allocation failure.
+ */
+-void * _xmemdup(const void * ptr, size_t size)
++void * slp_xmemdup(const void * ptr, size_t size)
+ {
+ void * cpy = malloc(size);
+ if (cpy)
+diff -ruN openslp-2.0.0.orig/common/slp_xmalloc.h openslp-2.0.0/common/slp_xmalloc.h
+--- openslp-2.0.0.orig/common/slp_xmalloc.h 2012-11-28 18:07:04.000000000 +0100
++++ openslp-2.0.0/common/slp_xmalloc.h 2017-06-10 01:16:39.073878034 +0200
+@@ -63,34 +63,38 @@
+ size_t size;
+ } xallocation_t;
+
+-void * _xmalloc(const char * file, int line, size_t size);
+-void * _xcalloc(const char * file, int line, int numblks, size_t size);
+-void * _xrealloc(const char * file, int line, void * ptr, size_t size);
+-char * _xstrdup(const char * file, int line, const char * str);
+-void * _xmemdup(const char * file, int line, const void * ptr, size_t size);
+-void _xfree(const char * file, int line, void * ptr);
+-
+-int xmalloc_init(const char * filename, size_t freemem);
+-int xmalloc_report(void);
+-void xmalloc_deinit(void);
+-
+-#define xmalloc(s) _xmalloc(__FILE__,__LINE__,(s))
+-#define xcalloc(n,s) _xcalloc(__FILE__,__LINE__,(n),(s))
+-#define xrealloc(p,s) _xrealloc(__FILE__,__LINE__,(p),(s))
+-#define xfree(p) _xfree(__FILE__,__LINE__,(p))
+-#define xstrdup(p) _xstrdup(__FILE__,__LINE__,(p))
+-#define xmemdup(p,s) _xmemdup(__FILE__,__LINE__,(p),(s))
++void * slp_xmalloc(const char * file, int line, size_t size);
++void * slp_xcalloc(const char * file, int line, int numblks, size_t size);
++void * slp_xrealloc(const char * file, int line, void * ptr, size_t size);
++char * slp_xstrdup(const char * file, int line, const char * str);
++void * slp_xmemdup(const char * file, int line, const void * ptr, size_t size);
++void slp_xfree(const char * file, int line, void * ptr);
++
++int slp_xmalloc_init(const char * filename, size_t freemem);
++int slp_xmalloc_report(void);
++void slp_xmalloc_deinit(void);
++
++#define xmalloc(s) slp_xmalloc(__FILE__,__LINE__,(s))
++#define xcalloc(n,s) slp_xcalloc(__FILE__,__LINE__,(n),(s))
++#define xrealloc(p,s) slp_xrealloc(__FILE__,__LINE__,(p),(s))
++#define xfree(p) slp_xfree(__FILE__,__LINE__,(p))
++#define xstrdup(p) slp_xstrdup(__FILE__,__LINE__,(p))
++#define xmemdup(p,s) slp_xmemdup(__FILE__,__LINE__,(p),(s))
++
++#define xmalloc_init slp_xmalloc_init
++#define xmalloc_report slp_xmalloc_report
++#define xmalloc_deinit slp_xmalloc_deinit
+
+ #else /* ?DEBUG */
+
+-void * _xmemdup(const void * ptr, size_t srclen);
++void * slp_xmemdup(const void * ptr, size_t srclen);
+
+ #define xmalloc malloc
+ #define xcalloc calloc
+ #define xrealloc realloc
+ #define xfree free
+ #define xstrdup strdup
+-#define xmemdup _xmemdup
++#define xmemdup slp_xmemdup
+
+ #endif /* ?DEBUG */
+
+diff -ruN openslp-2.0.0.orig/libslp/libslp.h openslp-2.0.0/libslp/libslp.h
+--- openslp-2.0.0.orig/libslp/libslp.h 2012-11-28 18:07:04.000000000 +0100
++++ openslp-2.0.0/libslp/libslp.h 2017-06-10 01:16:39.073878034 +0200
+@@ -263,11 +263,15 @@
+
+ void KnownDAFreeAll(void);
+
+-void PutL16String(uint8_t ** cpp, const char * str, size_t strsz);
+-size_t SizeofURLEntry(size_t urllen, size_t urlauthlen);
+-void PutURLEntry(uint8_t ** cpp, uint16_t lifetime, const char * url,
++void slp_PutL16String(uint8_t ** cpp, const char * str, size_t strsz);
++size_t slp_SizeofURLEntry(size_t urllen, size_t urlauthlen);
++void slp_PutURLEntry(uint8_t ** cpp, uint16_t lifetime, const char * url,
+ size_t urllen, const uint8_t * urlauth, size_t urlauthlen);
+
++#define PutL16String slp_PutL16String
++#define SizeofURLEntry slp_SizeofURLEntry
++#define PutURLEntry slp_PutURLEntry
++
+ int LIBSLPPropertyInit(char const * gconffile);
+ void LIBSLPPropertyCleanup();
+
+diff -ruN openslp-2.0.0.orig/libslp/libslp_knownda.c openslp-2.0.0/libslp/libslp_knownda.c
+--- openslp-2.0.0.orig/libslp/libslp_knownda.c 2012-12-12 18:38:52.000000000 +0100
++++ openslp-2.0.0/libslp/libslp_knownda.c 2017-06-10 01:16:39.074878034 +0200
+@@ -520,7 +520,7 @@
+ *ctx.scopelist = 0;
+ ctx.addrlistlen = 0;
+
+- DHCPGetOptionInfo(dhcpOpts, sizeof(dhcpOpts), DHCPParseSLPTags, &ctx);
++ slp_DHCPGetOptionInfo(dhcpOpts, sizeof(dhcpOpts), slp_DHCPParseSLPTags, &ctx);
+
+ if (!*ctx.scopelist)
+ {
+diff -ruN openslp-2.0.0.orig/libslp/libslp_network.c openslp-2.0.0/libslp/libslp_network.c
+--- openslp-2.0.0.orig/libslp/libslp_network.c 2013-06-08 04:50:38.000000000 +0200
++++ openslp-2.0.0/libslp/libslp_network.c 2017-06-10 01:16:39.074878034 +0200
+@@ -142,7 +142,7 @@
+ *
+ * @internal
+ */
+-void timeval_subtract(struct timeval *lhs, struct timeval *rhs)
++static void timeval_subtract(struct timeval *lhs, struct timeval *rhs)
+ {
+ lhs->tv_sec -= rhs->tv_sec;
+ lhs->tv_usec -= rhs->tv_usec;
+@@ -162,7 +162,7 @@
+ *
+ * @internal
+ */
+-void timeval_add(struct timeval *lhs, struct timeval *rhs)
++static void timeval_add(struct timeval *lhs, struct timeval *rhs)
+ {
+ lhs->tv_sec += rhs->tv_sec;
+ lhs->tv_usec += rhs->tv_usec;
+@@ -183,7 +183,7 @@
+ *
+ * @return the size
+ */
+-size_t CalcBufferSize(int v1, char buftype, size_t langsize, size_t prlistlen, size_t bufsize)
++static size_t CalcBufferSize(int v1, char buftype, size_t langsize, size_t prlistlen, size_t bufsize)
+ {
+ size_t size = 0;
+
+diff -ruN openslp-2.0.0.orig/libslp/libslp_parse.c openslp-2.0.0/libslp/libslp_parse.c
+--- openslp-2.0.0.orig/libslp/libslp_parse.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/libslp/libslp_parse.c 2017-06-10 01:16:39.074878034 +0200
+@@ -102,10 +102,10 @@
+ * next buffer position after the URL Entry written on exit.
+ *
+ * @remarks Currently OpenSLP only handles a single authentication
+- * block. To handle more than this, PutURLEntry would have to take
++ * block. To handle more than this, slp_PutURLEntry would have to take
+ * arrays of @p urlauth and @p urlauthlen values.
+ */
+-void PutURLEntry(uint8_t ** cpp, uint16_t lifetime, const char * url,
++void slp_PutURLEntry(uint8_t ** cpp, uint16_t lifetime, const char * url,
+ size_t urllen, const uint8_t * urlauth, size_t urlauthlen)
+ {
+ uint8_t * curpos = *cpp;
+diff -ruN openslp-2.0.0.orig/libslpattr/libslpattr.c openslp-2.0.0/libslpattr/libslpattr.c
+--- openslp-2.0.0.orig/libslpattr/libslpattr.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/libslpattr/libslpattr.c 2017-06-10 01:16:39.074878034 +0200
+@@ -134,8 +134,8 @@
+ */
+ static char unescape(char d1, char d2)
+ {
+- SLP_ASSERT(isxdigit((int) d1));
+- SLP_ASSERT(isxdigit((int) d2));
++ SLP_ASSERT(isxdigit((unsigned char)d1));
++ SLP_ASSERT(isxdigit((unsigned char)d2));
+
+ if ((d1 >= 'A') && (d1 <= 'F'))
+ d1 = d1 - 'A' + 0x0A;
+@@ -184,8 +184,8 @@
+ /*** Check that the characters are legal, and that the value has
+ * not been truncated.
+ ***/
+- if ((i + 2 < len) && isxdigit((int) src[i + 1]) && isxdigit((int)
+- src[i + 2]))
++ if ((i + 2 < len) && isxdigit((unsigned char)src[i + 1])
++ && isxdigit((unsigned char)src[i + 2]))
+ {
+ *write = unescape(src[i + 1], src[i + 2]);
+ i += 2;
+@@ -2049,14 +2049,14 @@
+
+
+ /***** Check integer *****/
+- if (*val == '-' || isdigit((int) * val))
++ if (*val == '-' || isdigit((unsigned char)*val))
+ {
+ /*** Verify. ***/
+ SLPBoolean is_int = SLP_TRUE; /* Flag true if the attr is an int. */
+ for (i = 1; i < len; i++)
+ {
+ /* We start at 1 since first char has already been checked. */
+- if (!isdigit((int) val[i]))
++ if (!isdigit((unsigned char)val[i]))
+ {
+ is_int = SLP_FALSE;
+ break;
+diff -ruN openslp-2.0.0.orig/slpd/slpd_knownda.c openslp-2.0.0/slpd/slpd_knownda.c
+--- openslp-2.0.0.orig/slpd/slpd_knownda.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/slpd/slpd_knownda.c 2017-06-10 01:16:39.074878034 +0200
+@@ -488,7 +488,7 @@
+ *ctx.scopelist = 0;
+ ctx.addrlistlen = 0;
+
+- DHCPGetOptionInfo(dhcpOpts, sizeof(dhcpOpts), DHCPParseSLPTags, &ctx);
++ slp_DHCPGetOptionInfo(dhcpOpts, sizeof(dhcpOpts), slp_DHCPParseSLPTags, &ctx);
+
+ alp = ctx.addrlist;
+ while (ctx.addrlistlen >= 4)
+diff -ruN openslp-2.0.0.orig/slpd/slpd_main.c openslp-2.0.0/slpd/slpd_main.c
+--- openslp-2.0.0.orig/slpd/slpd_main.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/slpd/slpd_main.c 2017-06-10 01:16:39.074878034 +0200
+@@ -358,10 +358,11 @@
+ if (fd)
+ {
+ memset(pidstr,0,14);
+- (void)fread(pidstr,13,1,fd);
+- pid = atoi(pidstr);
+- if (pid && kill(pid, 0) == 0)
+- return -1; /* we are already running */
++ if (fread(pidstr,13,1,fd) > 0) {
++ pid = atoi(pidstr);
++ if (pid && kill(pid, 0) == 0)
++ return -1; /* we are already running */
++ }
+ fclose(fd);
+ }
+ return 0;
+@@ -449,7 +450,8 @@
+ int i;
+
+ /* change directory to root */
+- (void)chdir("/");
++ if (chdir("/") != 0)
++ ; /* TODO: ... */
+
+ /* close all open file handles */
+ for (i = 0; i < 8192; i++)
+diff -ruN openslp-2.0.0.orig/slpd/slpd_predicate.c openslp-2.0.0/slpd/slpd_predicate.c
+--- openslp-2.0.0.orig/slpd/slpd_predicate.c 2012-12-11 00:31:53.000000000 +0100
++++ openslp-2.0.0/slpd/slpd_predicate.c 2017-06-10 01:16:39.075878034 +0200
+@@ -161,7 +161,7 @@
+ /* Verify escape sequences. */
+ if (seq_pos == 1 || seq_pos == 2)
+ {
+- if (!isxdigit((int) escaped[i]))
++ if (!isxdigit((unsigned char)escaped[i]))
+ return 0;
+
+ if (seq_pos == 2)
+@@ -198,7 +198,7 @@
+ */
+ static int unescape_check(char d1, char d2, char * val)
+ {
+- if (!isxdigit((int) d1) || !isxdigit((int) d2))
++ if (!isxdigit((unsigned char)d1) || !isxdigit((unsigned char)d2))
+ return 0;
+
+ if ((d1 >= 'A') && (d1 <= 'F'))
+@@ -285,10 +285,10 @@
+
+ if (unesc != verbatim[ver_i]) /* quick check for equality*/
+ {
+- if (!isascii(unesc) /* case insensitive check */
+- || !isalpha(unesc)
+- || !isalpha(verbatim[ver_i])
+- || tolower(unesc) != tolower(verbatim[ver_i]))
++ if (!isascii((unsigned char)unesc) /* case insensitive check */
++ || !isalpha((unsigned char)unesc)
++ || !isalpha((unsigned char)verbatim[ver_i])
++ || tolower((unsigned char)unesc) != tolower((unsigned char)verbatim[ver_i]))
+ return FR_EVAL_FALSE;
+ }
+
+@@ -866,7 +866,7 @@
+ int i;
+
+ for (i = 0; str[i] != 0; i++)
+- if (!((!isdigit((int) str[i])) || str[i] == '-'))
++ if (!((!isdigit((unsigned char)str[i])) || str[i] == '-'))
+ return 0;
+
+ return 1;
diff --git a/net-libs/openslp/files/slpd-init b/net-libs/openslp/files/slpd-init
new file mode 100644
index 000000000000..de7f5af3131e
--- /dev/null
+++ b/net-libs/openslp/files/slpd-init
@@ -0,0 +1,88 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+#
+# Does nothing if a route exists that supports multicast traffic.
+# If no routes supporting multicast traffic exists, the function
+# tries to add one. A 0 is returned on success and a 1 on failure.
+# One parameter must be passed in. This variable determins verbosity.
+# If parameter is non-zero debugging will appear.
+#
+multicast_route_set() {
+ PING_OPTIONS_1='-c1 -w1'
+ PING_OPTIONS_2='-c1 -i1'
+ MULTICAST_ADDRESS='239.255.255.253'
+ TMP_FILE=/tmp/route.check
+ PING_ERROR_NO_ROUTE='unreachable'
+
+ MSG_FAILED_TO_FIND='Failed to Detect Multicast Route'
+ MSG_SUCCESS_ON_FIND='Multicast Route Enabled'
+ MSG_ADDING_ROUTE='Attempting to Add Multicast Route ...'
+ MSG_FAILED_TO_ADD=' FAILED - Route NOT Added.'
+ MSG_SUCCES_ON_ADD=' SUCCESS - Route Added.'
+
+ CMD_GET_INTERFACE="netstat -i | awk 'BEGIN{}(NR>2)&&(!/^lo*/){print \$1;exit}'"
+ CMD_ADD_ROUTE="route add -net 224.0.0.0 netmask 240.0.0.0"
+
+ ping $PING_OPTIONS_1 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
+ if [ $? = 2 ]; then
+ ping $PING_OPTIONS_2 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
+ fi
+
+ grep $PING_ERROR_NO_ROUTE $TMP_FILE > /dev/null 2>&1
+ err_unreachable_found=$?
+
+ #If errors, add route. Otherwise, do nothing
+ if [ -s $TMP_FILE ] && [ $err_unreachable_found = 0 ]; then
+
+ if [ $1 != 0 ]; then
+ echo $MSG_FAILED_TO_FIND
+ echo $MSG_ADDING_ROUTE
+ fi
+
+ $CMD_ADD_ROUTE `eval $CMD_GET_INTERFACE` > /dev/null 2>&1
+ retval=$?
+ if [ $1 != 0 ]; then
+
+ if [ $retval = 0 ]; then
+ echo $MSG_SUCCES_ON_ADD
+ else
+ echo $MSG_FAILED_TO_ADD
+ fi
+ fi
+ else
+ if [ $1 != 0 ]; then
+ echo -n $MSG_SUCCESS_ON_FIND
+ fi
+ retval=0
+ fi
+
+ rm -f $TMP_FILE # Clean up
+ return $retval
+}
+
+checkconfig() {
+ multicast_route_set 0
+ if [ $? -ne 0 ]; then
+ eerror "No route available for multicast traffic!"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting slpd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/slpd --pidfile /var/run/slpd.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping slpd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/slpd.pid
+ eend $?
+}
diff --git a/net-libs/openslp/files/slpd.service b/net-libs/openslp/files/slpd.service
new file mode 100644
index 000000000000..ab5c02f3b773
--- /dev/null
+++ b/net-libs/openslp/files/slpd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Service Location Protocol
+After=network-online.target
+
+[Service]
+ExecStart=/usr/sbin/slpd -l /var/log/slpd.log -d
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=network.target
diff --git a/net-libs/openslp/metadata.xml b/net-libs/openslp/metadata.xml
new file mode 100644
index 000000000000..c01f3945d893
--- /dev/null
+++ b/net-libs/openslp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">openslp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/openslp/openslp-1.2.1-r3.ebuild b/net-libs/openslp/openslp-1.2.1-r3.ebuild
new file mode 100644
index 000000000000..6ff9091f8631
--- /dev/null
+++ b/net-libs/openslp/openslp-1.2.1-r3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils autotools systemd
+
+DESCRIPTION="An open-source implementation of Service Location Protocol"
+HOMEPAGE="http://www.openslp.org/"
+SRC_URI="mirror://sourceforge/openslp/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="dev-libs/openssl"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-fbsd.patch
+ epatch "${FILESDIR}"/${P}-fixoverflow.patch
+ epatch "${FILESDIR}"/${P}-cflags.patch
+ eautoreconf
+}
+
+src_compile() {
+ econf || die
+ emake -j1 || die "make failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS FAQ ChangeLog NEWS README* THANKS
+ rm -rf "${D}"/usr/doc
+ dohtml -r .
+ newinitd "${FILESDIR}"/slpd-init slpd
+ systemd_dounit "${FILESDIR}"/slpd.service
+}
diff --git a/net-libs/openslp/openslp-2.0.0-r4.ebuild b/net-libs/openslp/openslp-2.0.0-r4.ebuild
new file mode 100644
index 000000000000..c35ff61807d7
--- /dev/null
+++ b/net-libs/openslp/openslp-2.0.0-r4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd
+
+DESCRIPTION="An open-source implementation of Service Location Protocol"
+HOMEPAGE="http://www.openslp.org/"
+SRC_URI="mirror://sourceforge/openslp/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="libressl"
+RESTRICT="test"
+
+DEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.0-cflags.patch
+ "${FILESDIR}"/${PN}-2.0.0-CVE-2016-4912.patch
+ "${FILESDIR}"/${PN}-2.0.0-CVE-2012-4428.patch
+ "${FILESDIR}"/${PN}-2.0.0-CVE-2016-7567.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS FAQ ChangeLog NEWS README* THANKS
+ rm -rfv "${D}"/usr/doc
+ dohtml -r .
+ newinitd "${FILESDIR}"/slpd-init slpd
+ systemd_dounit "${FILESDIR}"/slpd.service
+}
diff --git a/net-libs/openslp/openslp-2.0.0-r5.ebuild b/net-libs/openslp/openslp-2.0.0-r5.ebuild
new file mode 100644
index 000000000000..f41d437d410e
--- /dev/null
+++ b/net-libs/openslp/openslp-2.0.0-r5.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd
+
+DESCRIPTION="An open-source implementation of Service Location Protocol"
+HOMEPAGE="http://www.openslp.org/"
+SRC_URI="mirror://sourceforge/openslp/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="libressl"
+RESTRICT="test"
+
+DEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.0-cflags.patch
+ "${FILESDIR}"/${PN}-2.0.0-CVE-2016-4912.patch
+ "${FILESDIR}"/${PN}-2.0.0-CVE-2012-4428.patch
+ "${FILESDIR}"/${PN}-2.0.0-CVE-2016-7567.patch
+ "${FILESDIR}"/${PN}-2.0.0-namespace.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS FAQ ChangeLog NEWS README* THANKS
+ rm -rfv "${D}"/usr/doc
+ dohtml -r .
+ newinitd "${FILESDIR}"/slpd-init slpd
+ systemd_dounit "${FILESDIR}"/slpd.service
+}
diff --git a/net-libs/ortp/Manifest b/net-libs/ortp/Manifest
new file mode 100644
index 000000000000..b8b9dc17b318
--- /dev/null
+++ b/net-libs/ortp/Manifest
@@ -0,0 +1,7 @@
+DIST ortp-0.20.0.tar.gz 515505 SHA256 f2a8263f8242756e2ce092c710ac068cd4b21051fc70c1937b275193a2bfb3d3 SHA512 a4d666be6b6825eeb28204001d5d1263c80ef3c07931586e753d3efa8c72d76e993335c4eeaa558209b5d10d5e991ba0c88e2f5c9a35aff46b36d6e76f92b706 WHIRLPOOL cc1a9473580748a76d26bde42f074bd9bbb1bd066a7b514b0016dd75d2d5b57ff29eba18e10139457acc406593bb566fdc8c256a4241a77718d965419ecd8b50
+DIST ortp-0.23.0.tar.gz 540135 SHA256 91a5ada15f62ce5f08beceef4d0adb65469211e2f208bd96e493a8df9f84fcdb SHA512 70560168f1b138ad825e4e836e7ee218bd24b92a2d76666ba2794a4b31cadbdd8fdd40fee78d612187cde6a827005cbd836cdfc13a70947374356fb84a853ea4 WHIRLPOOL cb9dc4c925ed92816d58dc66bab9f179d6a99abe64a218710cd92763422cb8b5f81ce4bdc5ad935798e792d7a5f3ab74e9b8cbdfc9bbde7781ce92d7b90ef507
+EBUILD ortp-0.20.0.ebuild 1859 SHA256 6666113760eef94d8db6e0f133d8f81545e6ec05d1a2bd2b1dbe7a9bfb894154 SHA512 21ae36326b1d5448034f08717cd946a31c0d0324a7b7832c6f536186c1d53a9ed512a0111a26461365f27ab61c3207831cca9f6d323520e310f2724d3f766db9 WHIRLPOOL 48e3d6bf7d60f5382191094d455bd5fba4f410be198aa9631d61aeeab0416c758ecd1a104a21f27b1b3307cc55b9a1e51e50279ff4910efdc403ee669a87fadf
+EBUILD ortp-0.23.0-r1.ebuild 1861 SHA256 24d53100b53cf879090d640271d823556540cca2d2ab9eadd2a8f155e5ebbdf0 SHA512 7f57da1c3feb1a53bec07b3c0279485ca473321f8b7d66d8b268296d39263c7a422f402838398ec1041410c3fe8820352f04987d40cc127c13926d71c89c4a18 WHIRLPOOL 5ebf86e586915bb9f55be6c32205b15f80b179a23359a0294a8a30820ee07a38f4701a9c44853d3212404de4861225d2587a12889ec7b1f6f061125932991bd2
+MISC ChangeLog 2968 SHA256 6d32416a9850a5cf76b6ba77d0317e249dcc0936c7c1632f9c098f111a60353c SHA512 dfa62c126f22684154a80c690824894a8daa1132208b427dba5b51e6311c18e99a0d847b522a0e31e5e139d34af0c83e787af06278cfeb4a21d4a715bdf23dd9 WHIRLPOOL e2f9919692f54f4088e22e7d13247ae9ed43102baca87c0cdfd9c53f0bf49f66e6917c12f2f080f302896ce02cce737fa781114c63cdab027c8dc4232e3168b0
+MISC ChangeLog-2015 11061 SHA256 c3186fee3ce526af47be9261c1bebc90db60f0e3cff9da568cee2b48c517abe9 SHA512 f214c6cca6926e8f40f16a87116ea5773d34291e23780a754424b5e1cff835730f998f7c8ff628ed036eff58f92bdfb2335ee61d5a875caed91169e245623cea WHIRLPOOL 04e2b2b6436e4ca6eb0bceeb48e4f62ca67cd8e1a3c11276fcb03e7e0a9c8a931227476949e6a52d9cbbd9fa32c24d29e37cd1ae3f33bff57541e13c37150429
+MISC metadata.xml 362 SHA256 acd7a7f9c7846022a080bf532bb9d474fbfba88173734a51e701f6791e51754b SHA512 6a9fd13fe951f0cdd6574a83f53a0c21324fa9cf45c878e71fe1c6aefa6a52ca8e285f2d433d2bd62723241b59793c06d66e4e9f6f8be1530f8377de224a66c7 WHIRLPOOL 11214e8d45fd38c12d17ad90379bf2bcde642dc4bcce6af321ec82ce674d792523cb47c159648f100be28d8d9e17ee78dd4a7f07d2034d3a42cd1a0672cfd8e8
diff --git a/net-libs/ortp/metadata.xml b/net-libs/ortp/metadata.xml
new file mode 100644
index 000000000000..6e703ab66664
--- /dev/null
+++ b/net-libs/ortp/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 type="person"><email>chainsaw@gentoo.org</email></maintainer>
+ <use>
+ <flag name="ntp-timestamp">Turn on NTP timestamping on received packet</flag>
+ <flag name="srtp">Add support for Secure RTP</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/ortp/ortp-0.20.0.ebuild b/net-libs/ortp/ortp-0.20.0.ebuild
new file mode 100644
index 000000000000..9b860bad5ada
--- /dev/null
+++ b/net-libs/ortp/ortp-0.20.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack"
+HOMEPAGE="http://www.linphone.org/"
+SRC_URI="mirror://nongnu/linphone/${PN}/sources/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug doc examples ipv6 minimal srtp ssl" # zrtp"
+
+# Note:
+# This package supposedly requires libzrtpcpp-2.0.0
+# but it is incompatible with its API...
+
+RDEPEND="srtp? ( net-libs/libsrtp )
+ ssl? ( dev-libs/openssl )"
+# zrtp? ( >=net-libs/libzrtpcpp-2.0.0 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ virtual/pkgconfig"
+
+#REQUIRED_USE="zrtp? ( srtp )"
+
+src_prepare() {
+ # ${P} is added after ${docdir}
+ if use doc; then
+ sed -i -e 's/$(docdir)\/$(PACKAGE)-$(VERSION)/$(docdir)/' Makefile.in \
+ || die "patching Makefile.in failed"
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ # memcheck is for HP-UX only
+ --disable-memcheck
+ # mode64bit adds +DA2.0W +DS2.0 CFLAGS wich are needed for HP-UX
+ --disable-mode64bit
+ # strict adds -Werror, don't want it
+ --disable-strict
+ # they seriously failed to understand AC_ARG_ENABLE...
+ --disable-tests_enabled
+ --enable-fast-install
+ --enable-libtool-lock
+
+ $(use_enable debug)
+ $(use_enable ipv6)
+ $(use_enable minimal perf)
+ $(use_enable ssl ssl-hmac)
+# $(use_enable zrtp)
+ --disable-zrtp
+
+ "--with-srtp=$(usex srtp "${EPREFIX}"/usr none)"
+ $(use doc || echo ac_cv_path_DOXYGEN=false)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \
+ install
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ prune_libtool_files
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins src/tests/*.c
+ fi
+}
diff --git a/net-libs/ortp/ortp-0.23.0-r1.ebuild b/net-libs/ortp/ortp-0.23.0-r1.ebuild
new file mode 100644
index 000000000000..f9f6a6b1384f
--- /dev/null
+++ b/net-libs/ortp/ortp-0.23.0-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack"
+HOMEPAGE="http://www.linphone.org/"
+SRC_URI="mirror://nongnu/linphone/${PN}/sources/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/9"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug doc examples ipv6 libressl minimal ntp-timestamp ssl srtp"
+
+RDEPEND="
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= ) )
+ srtp? ( net-libs/libsrtp:0= )
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+ # ${P} is added after ${docdir}
+ if use doc; then
+ sed -i -e 's/$(docdir)\/$(PACKAGE)-$(VERSION)/$(docdir)/' Makefile.in \
+ || die "patching Makefile.in failed"
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ # memcheck is for HP-UX only
+ --disable-memcheck
+ # mode64bit adds +DA2.0W +DS2.0 CFLAGS wich are needed for HP-UX
+ --disable-mode64bit
+ # strict adds -Werror, do not want it
+ --disable-strict
+ # they seriously failed to understand AC_ARG_ENABLE...
+ --disable-tests_enabled
+ --enable-fast-install
+ --enable-libtool-lock
+ # this is fine as long as we do not link to polarssl
+ --enable-broken-srtp
+ # zrtp removed from the tree
+ --disable-zrtp
+
+ $(use_enable debug)
+ $(use_enable ipv6)
+ $(use_enable minimal perf)
+ $(use_enable ntp-timestamp)
+ $(use_enable ssl ssl-hmac)
+
+ --with-srtp=$(usex srtp "${EPREFIX}"/usr none)
+ $(use doc || echo ac_cv_path_DOXYGEN=false)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \
+ install
+
+ einstalldocs
+
+ prune_libtool_files
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins src/tests/*.c
+ fi
+}
diff --git a/net-libs/osptoolkit/Manifest b/net-libs/osptoolkit/Manifest
new file mode 100644
index 000000000000..fc371501c872
--- /dev/null
+++ b/net-libs/osptoolkit/Manifest
@@ -0,0 +1,6 @@
+AUX osptoolkit-4.13.0-gcc5.patch 768 SHA256 710770a97f710a97e00cdec714c204a0ea6b7dd093cc902fd4a49c0cf756a200 SHA512 4f2d11e32b958ca5621321ed0258d3b8544528c16bb9418eb5ddd7c1929b24d42ec0ec6d714c658905df249a8356efb4cc13309a0ccc70521425faad306136fd WHIRLPOOL 1fea3dfcbc67ad2b9b7f557ed33bbdc91e09de764cae1667dfe1134787c857229c3e85f777843ebbb5ae1ad44bd2d2c91fad7f8ed36bde62dd8e0b20a078aa26
+DIST OSPToolkit-4.13.0.tar.gz 422064 SHA256 e12771340b5c33f22d006a7cc03c952be8a11e9af1d531136ecadcfa2a8d2483 SHA512 35e54350cdecf0367af47986a7c3eddfcdf924b0d6e7c52ccccdecd96d3d64ba7f8d8d266cc4d26708f0741e40eeff80db4690272702c35d4e5bafba745776bf WHIRLPOOL ab918e6f054038802dbf1220c5e698a3b64815b6326a23fa6a9114ffe5376b19ac2779acfcda0c44967374e08355d20f7d75e0794b123ad1aa7e4fd55595ba25
+EBUILD osptoolkit-4.13.0.ebuild 2720 SHA256 84c8b32e40ccf0d45c3a9ae5ef26588e5c4b43d7f64e725d33681ff742744a2d SHA512 bdee9975b225101cd0712cbbadac13d43ded13d99c319e3592b81637156d644c7cae31cee6bdd29e8d8244eba95275073dcc42762ad627dbe7d851c3d6ccaa7c WHIRLPOOL 3c469d0e692204b2ff6a0f52ffbc2a923ee51e304e528bac951340e1ac8023b87cc9906d5687429e0fab5873522ce7c4af09f7c78c2b82588772c428dc95a1ab
+MISC ChangeLog 2243 SHA256 22859923a4fb41ca213742a277868e21b6994a91acc1ca5b0e8f68c85a646c0d SHA512 6dd6b935cdcabb643c2e2ab716aa513c27607d7de641fc063eddf47e1a638a45c7188de29b5da6c8757956c0e9ca6b330d50d4aa67c847eda2d138aa251fcdcc WHIRLPOOL 5d6d5133660e30e0113a280dd077272d68c5dfd2b2ecb3b1dea02bc05d8005bcb49f095174910afcfe0465857ce18dd318eaaba33380a6ac6ec795743ea68880
+MISC ChangeLog-2015 3099 SHA256 f7c6a7092220d8e857027348fa936cb6efb502f9ab395e9c354b7affd46d7d3e SHA512 9bb43bc2f856e09c14830452ce1f1d0a31040b03caa56eeba205d9fe006c4d67c99381d7f42562a9eaa0bb7fceb9eb8f96e1cc6d2b4b5ae504bc73305e47ef04 WHIRLPOOL 3b12862152b18a242f3211f96cf96b3a381fc84905b557aafc141f586109bc3bcd18aaf340bde6c33420e0ee89923557ca64208f6b81ada3afed84f567fea020
+MISC metadata.xml 336 SHA256 392f19e42fd62454d1953aae26ae76f4d37cd3f7feb8a53e21ee3dc91f396d59 SHA512 09152b4aecb17930c71dfe645780e61205a9f13c6ade1fd8f16298a7f982e36d802f2b8744a9de95c48b41a28ebafbc8e76a7f0262721c5fa41a61bffef5a5dc WHIRLPOOL e93143ea60c6fcd18a285ddfeb7c502fd7e82774aff7ecf1f7c9848a6efccbc09f2fe0d277025635ae906bbba04145e8169bdecd1112dbcbc06005ebcd19bb90
diff --git a/net-libs/osptoolkit/files/osptoolkit-4.13.0-gcc5.patch b/net-libs/osptoolkit/files/osptoolkit-4.13.0-gcc5.patch
new file mode 100644
index 000000000000..a06ffeecc91a
--- /dev/null
+++ b/net-libs/osptoolkit/files/osptoolkit-4.13.0-gcc5.patch
@@ -0,0 +1,17 @@
+Starting with GCC 5, the __builtin_isnan() fucntion requires proper overloaded types, even in C:
+* osptransapi.c:1040:13: error: non-floating-point argument in call to function ‘__builtin_isnan’
+* OSPM_ISNAN(metrics.mean, tnisnan);
+See also:
+https://bugs.gentoo.org/show_bug.cgi?id=581058
+
+--- a/src/osptransapi.c
++++ b/src/osptransapi.c
+@@ -983,7 +983,7 @@
+ /* sample mean - have to cast Samples to a float to get some precision on the mean */
+ mean = ((metrics.mean * currnumber) + (ospvMean * ospvSamples)) / (float)metrics.samples;
+
+- OSPM_ISNAN(metrics.mean, tnisnan);
++ OSPM_ISNAN((double)metrics.mean, tnisnan);
+
+ if (tnisnan) {
+ errcode = OSPC_ERR_TRAN_INVALID_CALC;
diff --git a/net-libs/osptoolkit/metadata.xml b/net-libs/osptoolkit/metadata.xml
new file mode 100644
index 000000000000..8e8837dfca6a
--- /dev/null
+++ b/net-libs/osptoolkit/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">osp-toolkit</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/osptoolkit/osptoolkit-4.13.0.ebuild b/net-libs/osptoolkit/osptoolkit-4.13.0.ebuild
new file mode 100644
index 000000000000..2c1dd1459dbf
--- /dev/null
+++ b/net-libs/osptoolkit/osptoolkit-4.13.0.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+S_DATE="20161107"
+
+DESCRIPTION="Open Settlement Protocol development kit"
+HOMEPAGE="http://www.transnexus.com/OSP%20Toolkit/OSP%20Toolkit%20Documents/OSP%20Toolkit%20Documents.htm"
+SRC_URI="mirror://sourceforge/osp-toolkit/OSPToolkit-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/openssl:0="
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/TK-${PV//./_}-${S_DATE}
+
+# TODO:
+# generate a shared lib
+
+# NOTES:
+# osptest isn't a test that can be used for src_test, it's part of the toolkit
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.13.0-gcc5.patch
+)
+
+src_prepare() {
+ default
+
+ # remove -O and use users CFLAGS, see bug 241034
+ sed -i -e "s/ -O//" -e "s/^CFLAGS =/CFLAGS +=/" src/Makefile test/Makefile \
+ enroll/Makefile || die "patching Makefiles failed"
+
+ # use users LDFLAGS
+ sed -i -e "s:LFLAGS:LDFLAGS:" test/Makefile \
+ || die "patching test/Makefile failed"
+ sed -i -e "s:\(\$(LIBS\):\$(LDFLAGS) \1:" enroll/Makefile \
+ || die "patching enroll/Makefile failed"
+
+ # change lib dir to $(get_libdir)
+ sed -i -e "s:\$(INSTALL_PATH)/lib:\$(INSTALL_PATH)/$(get_libdir):" \
+ src/Makefile || die "patching src/Makefile failed"
+
+ # test.cfg is located in /etc/${PN}/test.cfg
+ sed -i -e \
+ "s:\(^#define CONFIG_FILENAME.*\"\).*\(test.cfg\"\):\1/etc/${PN}/\2:" \
+ test/test_app.c || die "patching test/test_app.c failed"
+
+ # configure enroll.sh
+ sed -i -e "s:^\(OPENSSL_CONF\).*:\1=/etc/${PN}/openssl.cnf:" \
+ -e "s:^\(RANDFILE\).*:\1=\/etc/${PN}/.rnd:" \
+ bin/enroll.sh || die "patching bin/enroll.sh failed"
+
+ # change enroll path
+ sed -i -e "s:^\(enroll\):/usr/lib/${PN}/\1:" \
+ bin/enroll.sh || die "patching bin/enroll.sh failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" -C src build
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" -C enroll linux
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" -C test linux
+}
+
+src_install() {
+ emake -C src INSTALL_PATH="${ED%/}"/usr install
+
+ local DOCS=( README.txt RELNOTES.txt )
+ einstalldocs
+
+ insinto /etc/${PN}
+ doins bin/test.cfg bin/.rnd bin/openssl.cnf
+
+ # install enroll and enroll.sh in lib dir to prevent executing them
+ local ospdir=/usr/$(get_libdir)/${PN}
+ dodir ${ospdir}
+ exeinto ${ospdir}
+ doexe bin/enroll bin/enroll.sh
+
+ # use the symlink to execute enroll.sh
+ dosym ${ospdir}/enroll.sh /usr/bin/ospenroll
+
+ newbin bin/test_app osptest
+}
+
+pkg_postinst() {
+ elog "OSP test application is now available with 'osptest' command"
+ elog "OSP enroll application is now available with 'ospenroll' command"
+ elog "ospenroll is using /etc/${PN}/openssl.cnf as an openssl configuration"
+}
diff --git a/net-libs/pacparser/Manifest b/net-libs/pacparser/Manifest
new file mode 100644
index 000000000000..126ceb4d128a
--- /dev/null
+++ b/net-libs/pacparser/Manifest
@@ -0,0 +1,8 @@
+AUX pacparser-1.3.1-makefile.patch 2265 SHA256 2e5b9fa7fbaad4ae818a608b6d5b667ee442a9a49f5b0f558361ea13dbf86670 SHA512 6812dc1482554053fedf0f522260cc5da6b5f9bfa9e1ccf51bb5d1ad92c3663122460c6d41f8c3a2318b37e251ec8bf5849f3f4140d2f6fd647d5be61544af51 WHIRLPOOL 85e985b0f4d28b9288b67741499f0bf2236fa0d2c3da142cfb9d365ccd1b3ce7548a427d0d23bc8838dc8ef333a82872f25088604b81d8e71d8ce4dac0731081
+DIST pacparser-1.3.1.tar.gz 1229362 SHA256 040fb94c420f6aaad295b0b60cf1659f996fee1997c332bec2a6390955276585 SHA512 20295667d92eb5385429c085c14ca8dc1ba216487ff474304433f99119216934be2dd1647452173418de31f5345679dd7159eafd331e40a2b87564f878d31349 WHIRLPOOL 47caf428b4574d9fbb40cffe46afb38cc6bb786382805754f1653e3d554af60e695e1718902c94822b229b7fb4f9748257745a1b3faedfa02cc7b06ba457768f
+DIST pacparser-1.3.7.tar.gz 905596 SHA256 eb48ec2fc202d12a4b882133048c7590329849f32c2285bc4dbe418f29aad249 SHA512 979238204cd352ecf502a5a6216a35d7c47e82a173c32c6f0a5166f1fe790c66ac74ec1d9d0a58b54038d19e893f8b365ed868664f84ab9d5e653584bf20130b WHIRLPOOL be594e02c2eb41edf737ebd0a1b24c4aa044df9883f749f2d625858b16b7d15bd35045c481717c08ec65ec7043c09ef31d2a16d0c4bae6b1c78ab5fa86418c3e
+EBUILD pacparser-1.3.1.ebuild 1360 SHA256 0c8e2bf555d9a6d32f1c10526108f380c6737b3b27de811338d1c2fa0c586536 SHA512 64b6facfd2512c729e5bed4727489830d0602a720ca7918b9c02f9a936d48410c465101aed9058f550eb6f804813d263c4388add156f472187c936790633fb6e WHIRLPOOL 9d272ca0f763d5180ec311ed6f955d3d76135e9ccdb76ceca8e2fdb45919c711cef5f952b0c59f33f6eeda6a3179d7745d40b923c5aec9ffdf1f764db3864bd0
+EBUILD pacparser-1.3.7.ebuild 1602 SHA256 d8f919b304f807a77375b262881f1596e83636c6075c9f9098ad4d1227db080b SHA512 c40f3ea5279259ff52a05041d870797a23879f3a7a512af64e9f0e26bff9a7a52d7bf47f7e53baeb0c8a7cf5d0b2cbd75238d4892b349fe31117f28014b0a341 WHIRLPOOL f5698266d7e9760e4279fe076eb4b416a81240f60b9332ef67853bf4a5f9f7b5222886f567341dfe03a538dd11be427592b17f4e275664635fdc37845a6674f8
+MISC ChangeLog 2860 SHA256 cabe94fcae5fcd3c52cf97cb176415b2cb2032f87b4980d722e42a5b7b49cc8a SHA512 bd8c620942add8d05ec4959c5a062d85c125671e65fa6b542e1be3f28288399d1ce74f953f2743c1fef6beb83cf27792994646cf3554ca0d18bb4be903185d3e WHIRLPOOL ef87b4608e7a9a410699a6e91668bf5a213df32b21f599138928aa1168b7d52c386f16c683f3d9354ce946b89cf0d8ae148dc5cee6fef3e99a7a0a6b59fc29a4
+MISC ChangeLog-2015 841 SHA256 09f909d344976fcf6f592009ee01a5c54cb689fb2813bb7d5bd71491a8ba57b5 SHA512 6c1623592503e37ed0069cc09117b61201bfee2b65b6bc78fa385589fc194f97132db240ad86c35441da359800ce094726f470dacc011128bba92dd3bbc040eb WHIRLPOOL e7856d77aa3043de6f615b85a72d64b1853f344c8c821fb76417a51ae414d8766cf86ed26e26370fe0311293d9ac3ae208a277a826f4596b84fd2e38707c59f6
+MISC metadata.xml 1211 SHA256 9142f65183c5f33757a1d2099d1b583ceaa56f24a5d2c68dcba03be8c8037a61 SHA512 f8bdcabda15db7e7fdcc91d90a4d43c791883a47c8123843d20fefc45b1357912a192eae37fa0909908d9f795f644086010273aad9361e317b8d6a91dec8523c WHIRLPOOL c60b612d13b259c34d7194226eb2631c4bea8ebac38b63fdf60ba2c9f5f19a4357c0b0563d3c864de52f5401715ac7d058c194bbb0ab39349b4b13bdefe97f32
diff --git a/net-libs/pacparser/files/pacparser-1.3.1-makefile.patch b/net-libs/pacparser/files/pacparser-1.3.1-makefile.patch
new file mode 100644
index 000000000000..a1434075d18a
--- /dev/null
+++ b/net-libs/pacparser/files/pacparser-1.3.1-makefile.patch
@@ -0,0 +1,66 @@
+diff -Nur pacparser-1.3.1.orig/src/Makefile pacparser-1.3.1/src/Makefile
+--- pacparser-1.3.1.orig/src/Makefile 2013-11-26 04:21:24.000000000 +0000
++++ pacparser-1.3.1/src/Makefile 2013-11-26 04:27:11.000000000 +0000
+@@ -55,7 +55,7 @@
+ endif
+ endif
+
+-CFLAGS = -g -DXP_UNIX -Wall -DVERSION=$(VERSION)
++CFLAGS := $(CFLAGS) -g -DXP_UNIX -Wall -DVERSION=$(VERSION)
+
+ ifndef PYTHON
+ PYTHON = python
+@@ -67,13 +67,14 @@
+
+ LIBRARY_LINK = $(LIBRARY_NAME).$(SO_SUFFIX)
+ PREFIX := $(DESTDIR)$(PREFIX)
+-LIB_PREFIX = $(PREFIX)/lib
+-INC_PREFIX = $(PREFIX)/include
+-BIN_PREFIX = $(PREFIX)/bin
+-MAN_PREFIX = $(PREFIX)/share/man
++LIB_PREFIX := $(PREFIX)/lib
++INC_PREFIX := $(PREFIX)/include
++BIN_PREFIX := $(PREFIX)/bin
++MAN_PREFIX := $(PREFIX)/share/man
++DOC_PREFIX := $(PREFIX)/share/doc/pacparser
+
+ .PHONY: clean pymod install-pymod
+-all: testpactester
++all: pactester
+
+ spidermonkey/js/src: spidermonkey/js-?.?.?.tar.gz
+ tar xzvf spidermonkey/js-?.?.?.tar.gz -C spidermonkey
+@@ -97,7 +98,7 @@
+ ln -sf $(LIBRARY) $(LIBRARY_LINK)
+
+ pactester: pactester.c pacparser.h $(LIBRARY_LINK)
+- $(CC) pactester.c -o pactester -lpacparser -L. -I.
++ $(CC) $(CFLAGS) $(LDFLAGS) pactester.c -o pactester -lpacparser -L. -I.
+
+ testpactester: pactester
+ echo "Running tests for pactester."
+@@ -118,16 +119,20 @@
+ # install pacparser manpages
+ install -d $(MAN_PREFIX)/man3/
+ (test -d ../docs && install -m 644 ../docs/man/man3/*.3 $(MAN_PREFIX)/man3/) || true
++
++install-docs:
+ # install html docs
+- install -d $(PREFIX)/share/doc/pacparser/html/
+- (test -d ../docs/html && install -m 644 ../docs/html/* $(PREFIX)/share/doc/pacparser/html/) || true
++ install -d $(DOC_PREFIX)/html/
++ (test -d ../docs/html && install -m 644 ../docs/html/* $(DOC_PREFIX)/html/) || true
+ # install examples
+- install -d $(PREFIX)/share/doc/pacparser/examples/
+- (test -d ../examples && install -m 644 ../examples/* $(PREFIX)/share/doc//pacparser/examples/) || true
++ install -d $(DOC_PREFIX)/examples/
++ (test -d ../examples && install -m 644 ../examples/* $(DOC_PREFIX)/examples/) || true
+
+ # Targets to build python module
+ pymod: pacparser.o pacparser.h libjs.a
+ cd pymod && ARCHFLAGS="" $(PYTHON) setup.py build
++
++test-pymod: pymod
+ $(PYTHON) ../tests/runtests.py
+
+ install-pymod: pymod
diff --git a/net-libs/pacparser/metadata.xml b/net-libs/pacparser/metadata.xml
new file mode 100644
index 000000000000..f15997fe5b71
--- /dev/null
+++ b/net-libs/pacparser/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bicatali@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ A library to parse proxy auto-config (PAC) files. Proxy auto-config
+ files are a vastly used proxy configuration method these days. Web
+ browsers can use a PAC file to determine which proxy server to use
+ or whether to go direct for a given URL. PAC files are written in
+ JavaScript and can be programmed to return different proxy methods
+ (e.g. "PROXY proxy1:port; DIRECT") depending upon URL, source IP
+ address, protocol, time of the day etc. PAC files introduce a lot
+ of possibilities.
+ Needless to say, PAC files are now a widely accepted method for
+ proxy configuration management and companies all over are using
+ them in corporate environments. Almost all popular web browsers
+ support PAC files. The idea behind pacparser is to make it easy to
+ add this PAC file parsing capability to any program (C and Python
+ supported right now).
+</longdescription>
+ <upstream>
+ <remote-id type="github">pacparser/pacparser</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/pacparser/pacparser-1.3.1.ebuild b/net-libs/pacparser/pacparser-1.3.1.ebuild
new file mode 100644
index 000000000000..d74a0944e0dc
--- /dev/null
+++ b/net-libs/pacparser/pacparser-1.3.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit eutils python-r1 multilib
+
+DESCRIPTION="Library to parse proxy auto-config files"
+HOMEPAGE="https://github.com/pacparser/pacparser"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc python"
+
+DEPEND="python? ( ${PYTHON_DEPS} )"
+RDEPEND="${DEPEND}"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# spidermonkey-1.7.0 is bundled
+# tested unbundling with spidermonkey-1.8* and 17
+# failures : unbundling not worth
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ export NO_INTERNET=yes
+}
+
+src_compile() {
+ emake -j1 -C src
+ use python && python_foreach_impl emake -j1 -C src pymod
+}
+
+src_test() {
+ emake -j1 -C src testpactester
+ use python && emake -j1 -C src test-pymod
+}
+
+src_install() {
+ emake DESTDIR="${ED}" LIB_PREFIX="${ED}/usr/$(get_libdir)" -C src install
+ dodoc README
+ use python && python_foreach_impl \
+ emake DESTDIR="${D}" \
+ LIB_PREFIX="${D}/usr/$(get_libdir)" -C src install-pymod
+ use doc && emake DESTDIR="${ED}" \
+ DOC_PREFIX="${ED}/usr/share/doc/${PF}" -C src install-docs
+ # conflicts (bug #509168), and useless
+ rm "${ED}"/usr/share/man/man3/deprecated.3 || die
+}
diff --git a/net-libs/pacparser/pacparser-1.3.7.ebuild b/net-libs/pacparser/pacparser-1.3.7.ebuild
new file mode 100644
index 000000000000..7256ae1e8a84
--- /dev/null
+++ b/net-libs/pacparser/pacparser-1.3.7.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit eutils python-r1 toolchain-funcs
+
+DESCRIPTION="Library to parse proxy auto-config files"
+HOMEPAGE="http://pacparser.manugarg.com/"
+SRC_URI="https://github.com/pacparser/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc python"
+
+DEPEND="python? ( ${PYTHON_DEPS} )"
+RDEPEND="${DEPEND}"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# spidermonkey-1.7.0 is bundled
+# tested unbundling with spidermonkey-1.8* and 1.7
+# and got many failures : unbundling not worth.
+
+src_prepare() {
+ default
+ sed -e 's|CFLAGS = |CFLAGS := $(CFLAGS) |' \
+ -e 's|= $(PREFIX)|:= $(PREFIX)|g' \
+ -e "s|share/doc.*pacparser|share/doc/${PF}|g" \
+ -e "s|/lib|/$(get_libdir)|g" \
+ -i src/Makefile || die
+ export NO_INTERNET=yes
+ tc-export CC AR RANLIB
+}
+
+src_compile() {
+ emake -C src spidermonkey/js/src
+ sed -e '/CC = gcc/d' \
+ -i src/spidermonkey/js/src/config/Linux_All.mk || die
+ emake -j1 -C src
+ use python && python_foreach_impl emake -C src pymod
+}
+
+src_test() {
+ emake -C src testpactester
+}
+
+src_install() {
+ emake DESTDIR="${ED}" LIB_PREFIX="${ED}/usr/$(get_libdir)" -C src install
+ dodoc README.md
+ use python && python_foreach_impl \
+ emake DESTDIR="${D}" \
+ LIB_PREFIX="${D}/usr/$(get_libdir)" -C src install-pymod
+ if use doc; then
+ docompress -x /usr/share/doc/${PF}/{html,examples}
+ else
+ rm -r "${ED}"/usr/share/doc/${PF}/{html,examples} || die
+ fi
+}
diff --git a/net-libs/phodav/Manifest b/net-libs/phodav/Manifest
new file mode 100644
index 000000000000..1467e5ae65ad
--- /dev/null
+++ b/net-libs/phodav/Manifest
@@ -0,0 +1,9 @@
+AUX 70-spice-webdavd.rules 159 SHA256 eb5b7af994160f4283da3e2a8c19954171818c0c26240a8f56d52f8e90a3aa22 SHA512 f9a427f0d4f4db4aa3e0c7a4f77281b405ebde3e932bf591f018f39f6094fa47f16649534b2dc45434433367f60b98d58e32e49c5b03ba1333015319de5644cc WHIRLPOOL d03a9a703a42eccecfafd064c79ea048afcad3d6a578fefb444c35b8be57b23e9304ebaf22ba44c4e56b5500d13ebd3246cc8e5a4506e8f30caf32aa000a8d23
+AUX spice-webdavd.initd 344 SHA256 6904201571b9b0c642cea1db747de633f3343a642f3264c77f37a99a425ba17a SHA512 df4e08bb5fec88bd7c0002e25c5ce348f538d49de9b74890c97a53516e8c3d0f60c87c77050c5357e73f5d33f1daaabb9007d7e35d4d34b15b105dc4ce273dfb WHIRLPOOL 64e22c2d397e8b0e74129bece9914ed7f1b2c4b94beed9f1ce2dd32ce2e628a4b7a8d3b547da9e9639bea0f8dd917d01ac240232c1304139d925bbe412d2bf2e
+DIST phodav-2.1.tar.xz 293128 SHA256 da6073440b4cfd63f4d65b17e1a2a35ff501c7c940591da4533a03c2233ab898 SHA512 e43bd4c9ed97b7454e8452246c37211905b4cff430e91f3d2d36182736e1b8924d6ad477f58f110c98b85f02c085cd12c099020a0bea8abb19e65a9d52e1f4a8 WHIRLPOOL 4091fb0ac23b6a57c385054afa66a61eb038a37593167d888755dad38894898b45d7fcab6fa6d7582e4e2c5f0879e1ac782df2efc03e7e4372ac0a3341a4b10d
+DIST phodav-2.2.tar.xz 294216 SHA256 080305dc9e804562f200ffc8c7d345c76754fce9cb01489dddb1b2c52c0557c1 SHA512 1d16716c1bda674a6695b651e9b1bcb4b7cfefd9b60291ed3f5691f4f6f45f68a970d99fc4820bed0484cf0a43c1bf32e4d208fcc239ac0c0b7a75bf779e8913 WHIRLPOOL 6f5dd0ab04a48d307254f8aa0e0e02440b3f2e39a750f7da3fee24cd463a76dfe06e07779c789c7f2ca30093511ee774740b4ab19662fca27c5aff8af556d885
+EBUILD phodav-2.1.ebuild 1255 SHA256 7df309032762605a32b4ef3470ad3bde214bd1d6fe387805bf0157e224cd72dd SHA512 2a09d351e0b45efcb5efce2d58fe6e265c4e98d54795ff4d89c0751933534e8dc8dc0ce69031d7361f14155c822dcf90e6f9d322caffbf25c631729714a8fc1c WHIRLPOOL e01cb3f39548f1da0a4c6cd7cded91950cd75c6c66ed9ef439f7fb9f1efad6176f9479262913489a9817cd360fe09fb24c6da9c0b3dbcdca9620ca7428112681
+EBUILD phodav-2.2.ebuild 1519 SHA256 d4b760dcac4d99d13c807ee1242816a436c326b28fd772551ce08b66d7dcc780 SHA512 2329f59358f7da30e1df03cf365f00527d3b3fde5f8783081981e0e06ff09c7e6419a4fdd8f75c7c6cd25d1e742b9d2704cfd3c0a7dc4f66943bdd4662e9b341 WHIRLPOOL 736a4489da4ace38fa540f825cfc4852904c5111a2c48ee6c3e634554a75416fb18260592cc248be8dd76f6997f4b21d5c89e8a87d2a72dd3efc5d5e99dc0558
+MISC ChangeLog 4256 SHA256 869ef6b79dc1454ae4c79c131a5250ec986cede805db04f6fa9c78ca5c29335e SHA512 a5e1934b8cf90508d192cc658e1207e4f60a65cee38e3f62cfd4ceba7338d17407a514d536192245484be5d3248348dc3f21e2d9024fd099540ff9b19362e7ac WHIRLPOOL f8f20f2ef5e081bc0cf43e8eb1c9fb89de58df409e63eb230fc4009f9cd3b8028f9a747116068e0cf060e0c91cbbd7ac0e8bf4cad5b1a7774cb492bcdd267ca0
+MISC ChangeLog-2015 1953 SHA256 0950c4633aaac3a4365a6b1a1e287ac29334e31f4f0992c3123937c815f5c141 SHA512 27f57a6630d85dbd0d8ded203e7c05a2af982bf68a9d5d61b31ddf94cefcb39c21fabd51923887116affd8fd4b1afeec291d94a8339e1bffde3c80db802cc3c7 WHIRLPOOL ee389381929cc2d56e4a4e1d5263998755f9bfec590e6c7e5c0afddb76e8007e8c27d5de493878113a6c01f545815296c1433bdee68b430eda226f08c68fdd3f
+MISC metadata.xml 477 SHA256 8810ec510a0446a338c6b78bc9ff0810c30bfcc78e6fac5d8543b60608da61de SHA512 30ad4932fe0c1785b8e5aa041ca37c5f4ff15a19df7128b19a507c228268e663a6623d6c6b736b31fd90f8fa50831bd2ec0d82e1466ce01ad3ecd9200f6670e4 WHIRLPOOL 706e455e1193dd59fafde348e23dd96986eb52da9f82a6d6834bc86b148cd0b5988bfb192ce954889543f3c6e556ebed3c66be4b196a6bd7761de7388639561d
diff --git a/net-libs/phodav/files/70-spice-webdavd.rules b/net-libs/phodav/files/70-spice-webdavd.rules
new file mode 100644
index 000000000000..80c3b02bc933
--- /dev/null
+++ b/net-libs/phodav/files/70-spice-webdavd.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="virtio-ports", ENV{DEVLINKS}=="/dev/virtio-ports/org.spice-space.webdav.0", RUN+="/bin/env /etc/init.d/spice-webdavd --quiet start"
diff --git a/net-libs/phodav/files/spice-webdavd.initd b/net-libs/phodav/files/spice-webdavd.initd
new file mode 100644
index 000000000000..938024058f9c
--- /dev/null
+++ b/net-libs/phodav/files/spice-webdavd.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Spice guest utility for file sharing via WebDAV"
+
+command="/usr/sbin/spice-webdavd"
+command_args="--port 9843"
+
+pidfile="/run/${SVCNAME}.pid"
+command_background="yes"
+
+depend() {
+ need dbus
+ use avahi
+}
diff --git a/net-libs/phodav/metadata.xml b/net-libs/phodav/metadata.xml
new file mode 100644
index 000000000000..805ad1db73c1
--- /dev/null
+++ b/net-libs/phodav/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>virtualization@gentoo.org</email>
+ <name>Gentoo Virtualization Project</name>
+ </maintainer>
+ <use>
+ <flag name="spice">Install the spice-webdavd guest agent</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/phodav/phodav-2.1.ebuild b/net-libs/phodav/phodav-2.1.ebuild
new file mode 100644
index 000000000000..91ed0ed6f210
--- /dev/null
+++ b/net-libs/phodav/phodav-2.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2 systemd udev
+
+DESCRIPTION="WebDav server implementation using libsoup"
+HOMEPAGE="https://wiki.gnome.org/phodav"
+
+LICENSE="LGPL-2.1+"
+SLOT="2.0"
+KEYWORDS="alpha amd64 arm ppc ppc64 x86"
+IUSE="spice systemd zeroconf"
+
+RDEPEND="
+ dev-libs/glib:2
+ >=net-libs/libsoup-2.48:2.4
+ dev-libs/libxml2
+ zeroconf? ( net-dns/avahi )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.10
+ >=dev-util/intltool-0.40.0
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ --program-suffix=-${SLOT} \
+ $(use_with zeroconf avahi) \
+ --with-udevdir=$(get_udevdir) \
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
+
+ if ! use zeroconf ; then
+ sed -i -e 's|avahi-daemon.service||' data/spice-webdavd.service || die
+ fi
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use spice ; then
+ if ! use systemd ; then
+ newinitd "${FILESDIR}/spice-webdavd.initd" spice-webdavd
+ udev_dorules "${FILESDIR}/70-spice-webdavd.rules"
+ rm -r "${D}$(systemd_get_systemunitdir)" || die
+ fi
+ else
+ rm -r "${D}"{/usr/sbin,$(get_udevdir),$(systemd_get_systemunitdir)} || die
+ fi
+}
diff --git a/net-libs/phodav/phodav-2.2.ebuild b/net-libs/phodav/phodav-2.2.ebuild
new file mode 100644
index 000000000000..cb299868916a
--- /dev/null
+++ b/net-libs/phodav/phodav-2.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2 systemd udev
+
+DESCRIPTION="WebDav server implementation using libsoup"
+HOMEPAGE="https://wiki.gnome.org/phodav"
+
+LICENSE="LGPL-2.1+"
+SLOT="2.0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="spice systemd zeroconf"
+
+# It included g_uuid_* symbols of its own from an unapplied patch to glib; now that they
+# were merged, it conflicts and crashes. Ensure glib versions from >2.51 are used, so it
+# doesn't break badly when phodav-2.2 is upgraded to before glib to 2.52
+RDEPEND="
+ >=dev-libs/glib-2.51:2
+ >=net-libs/libsoup-2.48:2.4
+ dev-libs/libxml2
+ zeroconf? ( net-dns/avahi )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.10
+ >=dev-util/intltool-0.40.0
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ --program-suffix=-${SLOT} \
+ $(use_with zeroconf avahi) \
+ --with-udevdir=$(get_udevdir) \
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
+
+ if ! use zeroconf ; then
+ sed -i -e 's|avahi-daemon.service||' data/spice-webdavd.service || die
+ fi
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use spice ; then
+ if ! use systemd ; then
+ newinitd "${FILESDIR}/spice-webdavd.initd" spice-webdavd
+ udev_dorules "${FILESDIR}/70-spice-webdavd.rules"
+ rm -r "${D}$(systemd_get_systemunitdir)" || die
+ fi
+ else
+ rm -r "${D}"{/usr/sbin,$(get_udevdir),$(systemd_get_systemunitdir)} || die
+ fi
+}
diff --git a/net-libs/pjproject/Manifest b/net-libs/pjproject/Manifest
new file mode 100644
index 000000000000..8b0c956d1565
--- /dev/null
+++ b/net-libs/pjproject/Manifest
@@ -0,0 +1,6 @@
+DIST pjproject-2.5.1.tar.bz2 4180967 SHA256 c5a63bed7a0832ff53ddcd69612cf43148019d0f320b22beb5ca2223bc857dcb SHA512 7722980e5afa4b541614c4117462b0df3fff2bfec45ca5da18a7c3fce2a5dd6c628ed0bb2412da6086abd59c5ba2844bea9466f49737dbc9ca85d32ef67a2628 WHIRLPOOL 5b7845a31a3da765358f0a1b28805e39dadae06b01f94fb84809f01bddec8e5d3bfa3c0ef19be6a5dbb7519e3f5948c4bf1c73eebf3efeb609c6a3bf4598585f
+DIST pjproject-2.6.tar.bz2 4933273 SHA256 2f5a1da1c174d845871c758bd80fbb580fca7799d3cfaa0d3c4e082b5161c7b4 SHA512 48be9a80f90b1cb292c6eb0d071d889f6027f56bdd75095c510d9be2d6b5f1df5a6371617009371525ac5797dc61f5814dcc1cc11d14105e5a2576539f89293f WHIRLPOOL a7cc5fe528bc24b9f0563170297539530089202280d7640f84863ae07194c0fe1b81be8c46fb493574350e43dcfcc0f90aeb939ef2eda7940babff955c445f04
+EBUILD pjproject-2.5.1.ebuild 2357 SHA256 4b9c2301330fbfc44bd87e59c0754e7a233272389c7d265bc3f36bfd7a1d9c0a SHA512 69f97760597abffc8c9a0a664615c806a8e30a5464ac0c533c8498a42889b45c4c30915c7e9ad9cfb7ca266d2a0ed5a04d259bc6f1f444b947809e88c05a7e20 WHIRLPOOL 1f780617e9ce42124a76fc2a8e9b01855e9c0ea123e0aaab9e910007e2c9ed276b46b7b7c86e7a0131f444a09258d9c20531033032e600f90540a806c6b7a6fe
+EBUILD pjproject-2.6.ebuild 2357 SHA256 4b9c2301330fbfc44bd87e59c0754e7a233272389c7d265bc3f36bfd7a1d9c0a SHA512 69f97760597abffc8c9a0a664615c806a8e30a5464ac0c533c8498a42889b45c4c30915c7e9ad9cfb7ca266d2a0ed5a04d259bc6f1f444b947809e88c05a7e20 WHIRLPOOL 1f780617e9ce42124a76fc2a8e9b01855e9c0ea123e0aaab9e910007e2c9ed276b46b7b7c86e7a0131f444a09258d9c20531033032e600f90540a806c6b7a6fe
+MISC ChangeLog 299 SHA256 8607b0f62d9f8fa2b322b4065a8978a5cf0332af58af3244bcee80fd087e9616 SHA512 e1617bc45f730bc90716a1062eb75fc46a769edc84fbd004901cb1e45a12139477dd58b910b7e8af78b7bc661e6ce3b924be7273a953fb40a7e471368ceb218b WHIRLPOOL 290209d5635eea7122ecbfba1655c22245d267b131c537811a428046a0bc371c031adbae8dfe2db92cc0c5f4ce4f3fb14203a521d7656e6edb792aae3b5ef116
+MISC metadata.xml 1187 SHA256 96ae67f2963a89ebe62aa1a71227d97bf91049fe247f29c6e6f01988866c704a SHA512 695aa6fabb06d0462fc96013b386f103949aa653a243e088a572d5d04d35810c6153a98036af04b36cbe69e8b1555ad8bc0205a1fe862e0bec2b56e8988e1946 WHIRLPOOL c3d23674e9c432da3d72235d84c9ee07269dcd0825afe1603cbcecc1707853ec70657dbb5fa740652f48bdde11cdc492ecb25ae652bf5b8bf0def4f30bef9e95
diff --git a/net-libs/pjproject/metadata.xml b/net-libs/pjproject/metadata.xml
new file mode 100644
index 000000000000..42ac90f2199b
--- /dev/null
+++ b/net-libs/pjproject/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <use>
+ <flag name="amr">Inlcude AMR codec in the build</flag>
+ <flag name="v4l2">Include Video4Linux v2 support in the build</flag>
+ <flag name="epoll">Use /dev/epoll ioqueue on Linux (experimental)</flag>
+ <flag name="g711">Include G.711 codecs in the build</flag>
+ <flag name="g722">Include G.722 codec in the build</flag>
+ <flag name="g7221">Include G.722.1 codec in the build</flag>
+ <flag name="ilbc">Include iLBC codec in the build</flag>
+ <flag name="l16">Include Linear/L16 codec family in the build</flag>
+ <flag name="libyuv">Include libyuv in the build</flag>
+ <flag name="openh264">Include Open H.264 support in the build</flag>
+ <flag name="opus">Include OPUS support in the build</flag>
+ <flag name="resample">Include resampling implementations in the build</flag>
+ <flag name="silk">Include SILK support in the build</flag>
+ <flag name="webrtc">Enable WebRTC support</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/pjproject/pjproject-2.5.1.ebuild b/net-libs/pjproject/pjproject-2.5.1.ebuild
new file mode 100644
index 000000000000..d47ae1c5b9b5
--- /dev/null
+++ b/net-libs/pjproject/pjproject-2.5.1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="Open source SIP, Media, and NAT Traversal Library"
+HOMEPAGE="http://www.pjsip.org/"
+SRC_URI="http://www.pjsip.org/release/${PV}/${P}.tar.bz2"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16"
+VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv"
+SOUND_FLAGS="alsa oss portaudio"
+IUSE="amr debug doc epoll examples ipv6 opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ oss? ( media-libs/portaudio[oss] )
+ portaudio? ( media-libs/portaudio )
+
+ amr? ( media-libs/opencore-amr )
+ gsm? ( media-sound/gsm )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ opus? ( media-libs/opus )
+ speex? ( media-libs/speex )
+
+ ffmpeg? ( virtual/ffmpeg:= )
+ sdl? ( media-libs/libsdl )
+ openh264? ( media-libs/openh264 )
+ resample? ( media-libs/libsamplerate )
+
+ ssl? ( dev-libs/openssl:= )
+
+ net-libs/libsrtp:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+REQUIRED_USE="?? ( ${SOUND_FLAGS} )"
+
+src_configure() {
+ local myconf=()
+ local videnable="--disable-video"
+ local t
+
+ use ipv6 && append-flags -DPJ_HAS_IPV6=1
+ use debug || append-flags -DNDEBUG=1
+
+ for t in ${CODEC_FLAGS}; do
+ myconf+=( $(use_enable ${t} ${t}-codec) )
+ done
+
+ for t in ${VIDEO_FLAGS}; do
+ myconf+=( $(use_enable ${t}) )
+ use "${t}" && videnable="--enable-video"
+ done
+
+ econf \
+ --enable-shared \
+ --with-external-srtp \
+ ${videnable} \
+ $(use_enable epoll) \
+ $(use_with gsm external-gsm) \
+ $(use_with speex external-speex) \
+ $(use_enable speex speex-aec) \
+ $(use_enable resample) \
+ $(use_enable resample libsamplerate) \
+ $(use_enable resample resample-dll) \
+ $(use_enable alsa sound) \
+ $(use_enable oss) \
+ $(use_with portaudio external-pa) \
+ $(use_enable portaudio ext-sound) \
+ $(use_enable amr opencore-amr) \
+ $(use_enable silk) \
+ $(use_enable opus) \
+ $(use_enable ssl) \
+ $(use_enable webrtc) \
+ "${myconf[@]}"
+}
+
+src_compile() {
+ emake dep
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if use doc; then
+ dodoc README.txt README-RTEMS
+ fi
+
+ if use examples; then
+ insinto "/usr/share/doc/${PF}/examples"
+ doins -r pjsip-apps/src/samples
+ fi
+
+ use static-libs || rm "${D}/usr/$(get_libdir)/*.a"
+}
diff --git a/net-libs/pjproject/pjproject-2.6.ebuild b/net-libs/pjproject/pjproject-2.6.ebuild
new file mode 100644
index 000000000000..d47ae1c5b9b5
--- /dev/null
+++ b/net-libs/pjproject/pjproject-2.6.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="Open source SIP, Media, and NAT Traversal Library"
+HOMEPAGE="http://www.pjsip.org/"
+SRC_URI="http://www.pjsip.org/release/${PV}/${P}.tar.bz2"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16"
+VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv"
+SOUND_FLAGS="alsa oss portaudio"
+IUSE="amr debug doc epoll examples ipv6 opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ oss? ( media-libs/portaudio[oss] )
+ portaudio? ( media-libs/portaudio )
+
+ amr? ( media-libs/opencore-amr )
+ gsm? ( media-sound/gsm )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ opus? ( media-libs/opus )
+ speex? ( media-libs/speex )
+
+ ffmpeg? ( virtual/ffmpeg:= )
+ sdl? ( media-libs/libsdl )
+ openh264? ( media-libs/openh264 )
+ resample? ( media-libs/libsamplerate )
+
+ ssl? ( dev-libs/openssl:= )
+
+ net-libs/libsrtp:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+REQUIRED_USE="?? ( ${SOUND_FLAGS} )"
+
+src_configure() {
+ local myconf=()
+ local videnable="--disable-video"
+ local t
+
+ use ipv6 && append-flags -DPJ_HAS_IPV6=1
+ use debug || append-flags -DNDEBUG=1
+
+ for t in ${CODEC_FLAGS}; do
+ myconf+=( $(use_enable ${t} ${t}-codec) )
+ done
+
+ for t in ${VIDEO_FLAGS}; do
+ myconf+=( $(use_enable ${t}) )
+ use "${t}" && videnable="--enable-video"
+ done
+
+ econf \
+ --enable-shared \
+ --with-external-srtp \
+ ${videnable} \
+ $(use_enable epoll) \
+ $(use_with gsm external-gsm) \
+ $(use_with speex external-speex) \
+ $(use_enable speex speex-aec) \
+ $(use_enable resample) \
+ $(use_enable resample libsamplerate) \
+ $(use_enable resample resample-dll) \
+ $(use_enable alsa sound) \
+ $(use_enable oss) \
+ $(use_with portaudio external-pa) \
+ $(use_enable portaudio ext-sound) \
+ $(use_enable amr opencore-amr) \
+ $(use_enable silk) \
+ $(use_enable opus) \
+ $(use_enable ssl) \
+ $(use_enable webrtc) \
+ "${myconf[@]}"
+}
+
+src_compile() {
+ emake dep
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if use doc; then
+ dodoc README.txt README-RTEMS
+ fi
+
+ if use examples; then
+ insinto "/usr/share/doc/${PF}/examples"
+ doins -r pjsip-apps/src/samples
+ fi
+
+ use static-libs || rm "${D}/usr/$(get_libdir)/*.a"
+}
diff --git a/net-libs/polarssl/Manifest b/net-libs/polarssl/Manifest
new file mode 100644
index 000000000000..677d94c5f502
--- /dev/null
+++ b/net-libs/polarssl/Manifest
@@ -0,0 +1,7 @@
+AUX polarssl-1.3.9-respect-cflags.patch 619 SHA256 8b494d78d13504b56f345ba39f9dc7fef79f97efcd72ae8b40ffa087425828be SHA512 1dc7d7ea34b95c379b8d035497b8975c0de8befadb8f918021bafa726e11ecab83f9aed1d9e295c03c4b50e1cd12efb0956322b82ac6413222a30a5079fc6cea WHIRLPOOL e739a3a0e6330931caf0b522312c2d47ee5c0647de7ac1151aea004251937ce6bc302fb0360c2c49c516af88fd9811d50ba60f75bf04ea5c904614196925fcbb
+DIST polarssl-1.3.9-gpl.tgz 1741396 SHA256 d3605afc28ed4b7d1d9e3142d72e42855e4a23c07c951bbb0299556b02d36755 SHA512 e8958f834fd80ac996ac58152a0a5d4e31449e8b7b79ee6daac6f45bed60c5c5ad31f84b211d5e36ad0d6c82a742841e986a738735af048c286bce0e8fe4d62d WHIRLPOOL 21f27e50a8563df18c9b27a595da47715b1f04114d900dee2dfac3de51db58e4094da680a44007cf9f02fcc30689bca02d79a957509d1715dce1673d7713fa93
+EBUILD polarssl-1.3.9-r1.ebuild 2503 SHA256 a54fd5918f3d13cd80ca789f7e9a9d2268f0007b3228cde9dddd3394d1806061 SHA512 ed2fb511fbb1c6e63d7fe9cbf87753d6371282bdce0df889356d278d65c163c666a6192674199cce9c2b118f60bfaee2b2cf4d33b51bd6ffcaf08e0f0226da14 WHIRLPOOL 08d37832d486dfb0ffbc522ba33af74225fe2e5cb7dce9c522ae7a1a3861d55622680cdbb45b286a8a4bcdd7ad37df40292a3c18c33fd5941019290a8acedf64
+EBUILD polarssl-1.3.9.ebuild 2434 SHA256 561cc045be945364bda5daa8401f3f0b703d3f7d2456668c44f35d7356f9e204 SHA512 6b63b637ca5386749180730634bf4748d8ec9c75b260a5498596a6ca654e80805d7033e95b8d45952f2265bcbdabe78ebb1555330e46a8bf527bb5cae78c8527 WHIRLPOOL a3ec4b20b95bc5f21af7d91c8cb07d61d1e038ab6a777456ab1c5183d5a41d173ed580a0bd0d2b2fcfc09d131037302dcfb42e633943da6ff77489335444f449
+MISC ChangeLog 4186 SHA256 9060dae254ed0e1572d3e713d6ce6f045674c64beb7cadeefee2661ca447c295 SHA512 61a18dd5bd880a455df8b19c86a5b7525352f5b13f329844c09400997a21ebacf2a07c182fcedd692454849f5354fad7a84184676cb76345915c21a612df8e0e WHIRLPOOL c39dbee48f9c74aa9dd6bc5fee3c39819e787095d3ecd059bfeb44425e8b44c1a4e4da938cec018640b35318f1c36537c2320929223b6208c31220119b227092
+MISC ChangeLog-2015 12426 SHA256 b089206f7b85970545bb20a12bbf45ebe91e9c7265ceaf3159077313d0442164 SHA512 1ab51ceac0d09efb6c9b89482ca54f02b2cd46a4bb3e3c7f0ec8b5cbac4b17f60abdfea07077a3abb537eebc6954750f7635cafd00760cd9ccc888d6913ba786 WHIRLPOOL e3690e06100bc36a455bb8a4a93c49aebf8ed26b207e216c1252134b1a41969055ca798698475fdd5a70c96d2f708a45136a390c3e111ce18c75dcc464845d35
+MISC metadata.xml 633 SHA256 5b0902a9b09cf40880365c57cba7b6bdf2118d2984ff69be96ea035b1d40540d SHA512 57018df16efca7e15c3836d744d4276bea309816dd9c345467c280d737284a45c3c4828b8dc93013d284d5f2b153ec01d4a0deed5df130c782d71d0e0553d4ab WHIRLPOOL ea3396b54474a083776784a94551e7c3bbb173f4cead0a0b02fe18e41759d0a565dd980040190b8abd5bb17ec0eb2ce5e68e41f08055149e7f5f46b552e371a2
diff --git a/net-libs/polarssl/files/polarssl-1.3.9-respect-cflags.patch b/net-libs/polarssl/files/polarssl-1.3.9-respect-cflags.patch
new file mode 100644
index 000000000000..45dffd53041c
--- /dev/null
+++ b/net-libs/polarssl/files/polarssl-1.3.9-respect-cflags.patch
@@ -0,0 +1,15 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sat Oct 25 17:12:43 UTC 2014
+Subject: respect system cflags
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,7 +4,7 @@
+ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}")
+
+ if(CMAKE_COMPILER_IS_GNUCC)
+- set(CMAKE_C_FLAGS "-Wall -Wextra -W -Wdeclaration-after-statement -Wlogical-op -Wwrite-strings")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -W -Wdeclaration-after-statement -Wlogical-op -Wwrite-strings")
+ set(CMAKE_C_FLAGS_RELEASE "-O2")
+ set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
+ set(CMAKE_C_FLAGS_COVERAGE "-g3 -O0 --coverage")
diff --git a/net-libs/polarssl/metadata.xml b/net-libs/polarssl/metadata.xml
new file mode 100644
index 000000000000..eafc157bbafb
--- /dev/null
+++ b/net-libs/polarssl/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tommy@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ The aim of the PolarSSL project is to provide a quality, open-source
+ cryptographic library written in C and targeted at embedded systems.
+ </longdescription>
+ <use>
+ <flag name="havege">Enable the HAVEGE random generator.
+ Warning: the HAVEGE random generator is not suitable for
+ virtualized environments
+ </flag>
+ <flag name="programs">Build PolarSSL programs</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/polarssl/polarssl-1.3.9-r1.ebuild b/net-libs/polarssl/polarssl-1.3.9-r1.ebuild
new file mode 100644
index 000000000000..a8b641680e7f
--- /dev/null
+++ b/net-libs/polarssl/polarssl-1.3.9-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib cmake-utils multilib-minimal
+
+DESCRIPTION="Cryptographic library for embedded systems"
+HOMEPAGE="http://polarssl.org/"
+SRC_URI="http://polarssl.org/download/${P}-gpl.tgz"
+
+LICENSE="GPL-2"
+SLOT="0/7"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="doc havege libressl programs cpu_flags_x86_sse2 static-libs test threads zlib"
+
+RDEPEND="
+ programs? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen media-gfx/graphviz )
+ test? ( dev-lang/perl )"
+
+enable_polarssl_option() {
+ local myopt="$@"
+ # check that config.h syntax is the same at version bump
+ sed -i \
+ -e "s://#define ${myopt}:#define ${myopt}:" \
+ include/polarssl/config.h || die
+}
+
+src_prepare() {
+ use cpu_flags_x86_sse2 && enable_polarssl_option POLARSSL_HAVE_SSE2
+ use zlib && enable_polarssl_option POLARSSL_ZLIB_SUPPORT
+ use havege && enable_polarssl_option POLARSSL_HAVEGE_C
+ use threads && enable_polarssl_option POLARSSL_THREADING_C
+ use threads && enable_polarssl_option POLARSSL_THREADING_PTHREAD
+
+ epatch "${FILESDIR}"/${PN}-1.3.9-respect-cflags.patch
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(multilib_is_native_abi && cmake-utils_use_enable programs PROGRAMS \
+ || echo -DENABLE_PROGRAMS=OFF)
+ $(cmake-utils_use_enable zlib ZLIB_SUPPORT)
+ $(cmake-utils_use_use static-libs STATIC_POLARSSL_LIBRARY)
+ $(cmake-utils_use_enable test TESTING)
+ -DUSE_SHARED_POLARSSL_LIBRARY=ON
+ -DINSTALL_POLARSSL_HEADERS=ON
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)"
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+ use doc && multilib_is_native_abi && emake apidoc
+}
+
+multilib_src_test() {
+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \
+ cmake-utils_src_test
+}
+
+multilib_src_install() {
+ cmake-utils_src_install
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ use doc && dohtml -r apidoc
+
+ if use programs ; then
+ # avoid file collisions with sys-apps/coreutils
+ local p e
+ for p in "${ED%/}"/usr/bin/* ; do
+ if [[ -x "${p}" && ! -d "${p}" ]] ; then
+ mv "${p}" "${ED%/}"/usr/bin/polarssl_${p##*/} || die
+ fi
+ done
+ for e in aes hash pkey ssl test ; do
+ docinto "${e}"
+ dodoc programs/"${e}"/*.c
+ dodoc programs/"${e}"/*.txt
+ done
+ fi
+}
diff --git a/net-libs/polarssl/polarssl-1.3.9.ebuild b/net-libs/polarssl/polarssl-1.3.9.ebuild
new file mode 100644
index 000000000000..1e9b0680450e
--- /dev/null
+++ b/net-libs/polarssl/polarssl-1.3.9.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib cmake-utils multilib-minimal
+
+DESCRIPTION="Cryptographic library for embedded systems"
+HOMEPAGE="http://polarssl.org/"
+SRC_URI="http://polarssl.org/download/${P}-gpl.tgz"
+
+LICENSE="GPL-2"
+SLOT="0/7"
+KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="doc havege programs cpu_flags_x86_sse2 static-libs test threads zlib"
+
+RDEPEND="
+ programs? ( dev-libs/openssl:0 )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen media-gfx/graphviz )
+ test? ( dev-lang/perl )"
+
+enable_polarssl_option() {
+ local myopt="$@"
+ # check that config.h syntax is the same at version bump
+ sed -i \
+ -e "s://#define ${myopt}:#define ${myopt}:" \
+ include/polarssl/config.h || die
+}
+
+src_prepare() {
+ use cpu_flags_x86_sse2 && enable_polarssl_option POLARSSL_HAVE_SSE2
+ use zlib && enable_polarssl_option POLARSSL_ZLIB_SUPPORT
+ use havege && enable_polarssl_option POLARSSL_HAVEGE_C
+ use threads && enable_polarssl_option POLARSSL_THREADING_C
+ use threads && enable_polarssl_option POLARSSL_THREADING_PTHREAD
+
+ epatch "${FILESDIR}"/${PN}-1.3.9-respect-cflags.patch
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(multilib_is_native_abi && cmake-utils_use_enable programs PROGRAMS \
+ || echo -DENABLE_PROGRAMS=OFF)
+ $(cmake-utils_use_enable zlib ZLIB_SUPPORT)
+ $(cmake-utils_use_use static-libs STATIC_POLARSSL_LIBRARY)
+ $(cmake-utils_use_enable test TESTING)
+ -DUSE_SHARED_POLARSSL_LIBRARY=ON
+ -DINSTALL_POLARSSL_HEADERS=ON
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)"
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+ use doc && multilib_is_native_abi && emake apidoc
+}
+
+multilib_src_test() {
+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \
+ cmake-utils_src_test
+}
+
+multilib_src_install() {
+ cmake-utils_src_install
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ use doc && dohtml -r apidoc
+
+ if use programs ; then
+ # avoid file collisions with sys-apps/coreutils
+ local p e
+ for p in "${ED%/}"/usr/bin/* ; do
+ if [[ -x "${p}" && ! -d "${p}" ]] ; then
+ mv "${p}" "${ED%/}"/usr/bin/polarssl_${p##*/} || die
+ fi
+ done
+ for e in aes hash pkey ssl test ; do
+ docinto "${e}"
+ dodoc programs/"${e}"/*.c
+ dodoc programs/"${e}"/*.txt
+ done
+ fi
+}
diff --git a/net-libs/ptlib/Manifest b/net-libs/ptlib/Manifest
new file mode 100644
index 000000000000..a59aeb00497a
--- /dev/null
+++ b/net-libs/ptlib/Manifest
@@ -0,0 +1,13 @@
+AUX ptlib-2.10.10-mga-bison-parameter.patch 820 SHA256 49f9b7f1d7fff2201aae0ae66ff45c32f00eb671cbd9c7e53414905490bffc73 SHA512 9e28f29c26bd990bea3ff22bff8594eb24aff9a485bea54ebd97d0ec96d693ba64ee872fe1e7036188167d31f010a38ee811821236673bfaddbe28854a584748 WHIRLPOOL e42ead5c4fc5c709ca63f1db0459dc48dc0d016534404964c115b2e8980a147a86f5ae897166093c98fad0a01ecbe87903159d2be60bdb58d5ae00462c7b07c5
+AUX ptlib-2.10.10-respect_cflags_cxxflags.patch 578 SHA256 3dcabc0f391ad92df07c2f9da52d5c4c23cce2807299627965ce80aedaa7aeeb SHA512 551d9b8dd248fa66da731bd274c6183deacdbfe48d46b3686ae72aca5b622d4f62c00f6e27bf989d9ae8f2b9c58481b29c84eb99ee0c0a994668037c81bc15f8 WHIRLPOOL ab3dd47947f430fcb55da28f2245edbbd75812c47282495d3f881ae21862bdb0fc53146c13f01b46ecc2201436c4a5df6fb5c288c29b5fdb8df640908190d87c
+AUX ptlib-2.10.11-gcc6.patch 979 SHA256 67845b828fc9e559a466c1fb9c2d445391a7aeba054437bc254a244bf1aa3d23 SHA512 11433fc6bdc3e6e275b5a8545796d566fe5e7ad26908205f8cb689ccc4e243d7abb94a11a0e18b60b7ac5ff8a546303b204db85f632e5e8da8d993d98183621b WHIRLPOOL 2c633d4195ec87b4865d0a8a004dbe376b28ddd0051259a8a8113a362fc96fb20ea81bbda56775b777aabeb0f1b31600d3a654570564b3112f02b9c7c5ef1784
+AUX ptlib-2.10.9-disable-telnet-symbols.patch 636 SHA256 0c73d3156f0650972cbb071f99f0819fa1106cdb3d110644bff5d9f19a18a851 SHA512 63568fd8b6333af4ce553acf3a143dd91ff948ba905333ffa4e0156be4557aacedc75c6f2025d36216b6c9719fa79da9a9fe77c9c6f9e07d5e9764358532d682 WHIRLPOOL d90e9e4facbf0a119b9583952f74789d437c4e7dd9a751f025769342c21a914296db118495646b27966c917eebc966be3cbaa125d1e9d6cbcdc3444359fa2fac
+AUX ptlib-2.10.9-pkgconfig_ldflags.patch 444 SHA256 578b4dbbf25e8531fc976ffd98d5a1c541ba7ec12d6a6ce743d6b9730c6a915c SHA512 948a3c3ba011ae773b0c575109b833446bc5acc7dd3415545dc5f53548a0c2d973f3485672d3694a373242b9ff33911fd9c5efe67c42c8be1289b7622f87e8b4 WHIRLPOOL 67a47f383d3f16084ed79e1841e427274e2f3f6d8a6327082b0d3788ce86f4f2266302658752ee67126d9c74be3946ca764a4759fa474418857fa366af6ac676
+AUX ptlib-2.10.9-respect_cxxflags.patch 350 SHA256 4a4f49ea3c124be2088b004cb5b68a23af6b833911252ae65e283b319e9ba020 SHA512 a74aa658f73b0b73db90324a7e6ef6546e43c190aa052119abf6898c70938a64a896b62d4a237002c7e235f1ba527c80e3befb9757da5de18934a029abf1bd7d WHIRLPOOL 5cfd451bdc485aa1eccbf417923c0ab8028a6f24b24d472261e70ad1159ea8a652b4250553d03facdec0199fa082943021975ea5eecedca34656868e52ce19be
+AUX ptlib-2.10.9-svn_revision_override.patch 706 SHA256 fb1d37737a908fc018ed1ea05caf6b9f41ccd491f9affba0fafb984e25d32d70 SHA512 be1c89ba86f6587d59fa9ed14e2db4ec02639922461d06e28ef302e2ae9085f7d6c388b51931ec32d78aff0c38eb72d48714e6602e296ce934053eaf6f1bb137 WHIRLPOOL 24564aa6acc957c8f5836c8fecfb9b28467ccbf1bf9d179fb0be258ba6ed00c93985e0e1f176f7756f2d5210c08d2c47e55a911ebf91a035a31327d70eb2cd2d
+DIST ptlib-2.10.10-htmldoc.tar.bz2 4504867 SHA256 bce8a9eeb32f5e556acab3a753844500e751cd4a6db6ce88778fba692d24019a SHA512 7db5d169ad107132d2bca945a1269bae0dd0100b7566b1766dda83d0559a6f2044ffc21905520f7f15d218dd0b1290eaa13d5150d81340c6b0a9a464a713741d WHIRLPOOL 1832acdaded357471c5db982195723dfbf30d22359427d7dc7ac880d2a997a73d9963f7003cae70c6d17874daf1984f5c24c3c600656b078edcec3fa6552ce36
+DIST ptlib-2.10.11.tar.bz2 3736259 SHA256 27a8ba1fd147195c0b310897f81d26f73996b77b18147e587638444cfacd681a SHA512 ac8af8962330abf11986ccb863be0990c2e78ae611666d17c68068b72c4a5ea523ba74c55566284c3549e2346e407ccfffb5cc509fbf6ef19f1eb51dcb8b5f15 WHIRLPOOL 3dafe50df538b8d24a20b58252c5dfa578ac81f25d9086f748af928f54658533e1bf28dc1f40cbbeadd5062d57072ad71e243c0275428f155077ee752e26e4ab
+EBUILD ptlib-2.10.11.ebuild 6278 SHA256 35b62f098da4aaa377d0fb8a1d69c3921d7c04431a1b26b07a35e6dd22be5b0e SHA512 caf82a7e556ea73801c06e7d08699662bd82391f21bd0d95ebfe7ff6e108f6c81dd774a17f4bda6b778fcbe17d0484c8cfeea6c84afd987f96d5cc27118ae9a1 WHIRLPOOL 73f69235592225e7774b9a32e73b834fca48ebc350832eb171a77e38499e61eb6cb5356f04f61c95d8e028cdaadd9b1feaa020ff9e18ac71a13537cc596e06ae
+MISC ChangeLog 3397 SHA256 8e4ca29c6b025a85bdb2319bbfce38cd2afd37e09052f7fd8100fc4cbcf5f2e3 SHA512 b361f779f14418055c4ed91958879e33dcadac7ed59c3d75fcfab3c43ef8b8edce54a3f97a85907447d64c936fc141cb46d54332652d734db81bf1dbcf35762c WHIRLPOOL 516f7463e37f881b88461fdf51a1aabea3b5322cc25c2455698cd2ad14f6588a767de00aec55d3a91563c9b559e26ae0bb3a3422699e39430d95e98b49d1a393
+MISC ChangeLog-2015 10951 SHA256 86824fb4e71aa256da874d8b3f16543f24d66f00157f9af38d7dfcc6a647bd9b SHA512 8f23d95f12101df9ff6ba80be3616fb92cf38df2e21b79c75b6be8b200da451c75a6befb8c905f577ab036e0e96c02b00b7c7edb4861eb0c8be62d4d0c763f5d WHIRLPOOL 5e8fb2eaa6387d098a11f2d3d73a8be152f51f973de57c7a13a0ccb20a6ecb9dd60c9c04077a8184f944d85f8e7815b7df370cd47c9888b643d9a9d5706e9f86
+MISC metadata.xml 1102 SHA256 da7609c77bc8897543540e54ab8b9098801e5d119dab03d0739537d98fe51c31 SHA512 1d45a13f4197fbf7fc9ae6f8f0222309f59dd0fd7bedd6844125c48e60431d99a81d0e4dbeee4b9aa1dc4fb2c1e100f262b113dadf46e65613ed5a09e18435f7 WHIRLPOOL 3f5f4a91532d40a9ebd84f87092b9b53fe7659bf1acce37da78d7e5f84f6bc039f73aa37f37186c0255df9027f5101b271a746055c270c28ba2e530745978224
diff --git a/net-libs/ptlib/files/ptlib-2.10.10-mga-bison-parameter.patch b/net-libs/ptlib/files/ptlib-2.10.10-mga-bison-parameter.patch
new file mode 100644
index 000000000000..fcc8d0d2e7a8
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.10-mga-bison-parameter.patch
@@ -0,0 +1,39 @@
+--- ptlib-2.10.11/./src/ptlib/common/getdate.y 2013-08-15 01:20:26.000000000 +0200
++++ /mnt/chroot/cauldron/home/dan/rpm/BUILD/ptlib-2.10.11/src/ptlib/common/getdate.y 2013-12-15 00:24:27.866481490 +0100
+@@ -121,9 +121,9 @@
+ static int yylex();
+
+ #ifdef __GNUC__
+-static int yyerror(char const *msg);
++static int yyerror(void *, char const *msg);
+ #else
+-static void yyerror(char const *msg);
++static void yyerror(void *, char const *msg);
+ #endif
+
+
+@@ -132,7 +132,8 @@
+
+ %}
+
+-%pure_parser
++%pure-parser
++%parse-param {void *parseParam}
+
+ %union {
+ time_t Number;
+@@ -1018,12 +1019,12 @@
+ #endif
+
+ #ifdef __GNUC__
+-int yyerror(const char * s)
++int yyerror(void *var, const char * s)
+ {
+ return 0;
+ }
+ #else
+-static void yyerror(const char * s)
++static void yyerror(void *var, const char * s)
+ {
+ }
+ #endif
diff --git a/net-libs/ptlib/files/ptlib-2.10.10-respect_cflags_cxxflags.patch b/net-libs/ptlib/files/ptlib-2.10.10-respect_cflags_cxxflags.patch
new file mode 100644
index 000000000000..4442d333fcd1
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.10-respect_cflags_cxxflags.patch
@@ -0,0 +1,14 @@
+diff -ur ptlib-2.10.10.orig/make/ptbuildopts.mak.in ptlib-2.10.10/make/ptbuildopts.mak.in
+--- ptlib-2.10.10.orig/make/ptbuildopts.mak.in 2014-08-04 18:11:02.000000000 +0000
++++ ptlib-2.10.10/make/ptbuildopts.mak.in 2014-08-04 18:11:32.000000000 +0000
+@@ -15,8 +15,8 @@
+ OSTYPE = @OSTYPE@
+ OSRELEASE = @OSRELEASE@
+
+-STDCCFLAGS += @STDCCFLAGS@ @CPPFLAGS@
+-STDCXXFLAGS += @STDCXXFLAGS@ @CPPFLAGS@
++STDCCFLAGS += @STDCCFLAGS@ @CFLAGS@
++STDCXXFLAGS += @STDCXXFLAGS@ @CXXFLAGS@
+ OPTSTDCCFLAGS += @OPTSTDCCFLAGS@
+ LDFLAGS += @LDFLAGS@
+ ENDLDLIBS += @ENDLDLIBS@ \ No newline at end of file
diff --git a/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch b/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch
new file mode 100644
index 000000000000..140de64f16e4
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch
@@ -0,0 +1,29 @@
+--- a/src/ptlib/unix/svcproc.cxx
++++ b/src/ptlib/unix/svcproc.cxx
+@@ -217,7 +217,7 @@
+ pid_t pid;
+
+ {
+- ifstream pidfile(pidfilename);
++ ifstream pidfile(static_cast<const char*>(pidfilename));
+ if (!pidfile.is_open()) {
+ cout << "Could not open pid file: \"" << pidfilename << "\""
+ " - " << strerror(errno) << endl;
+@@ -384,7 +384,7 @@
+ // Run as a daemon, ie fork
+
+ if (!pidfilename) {
+- ifstream pidfile(pidfilename);
++ ifstream pidfile(static_cast<const char*>(pidfilename));
+ if (pidfile.is_open()) {
+ pid_t pid;
+ pidfile >> pid;
+@@ -412,7 +412,7 @@
+ cout << "Daemon started with pid " << pid << endl;
+ if (!pidfilename) {
+ // Write out the child pid to magic file in /var/run (at least for linux)
+- ofstream pidfile(pidfilename);
++ ofstream pidfile(static_cast<const char*>(pidfilename));
+ if (pidfile.is_open())
+ pidfile << pid;
+ else
diff --git a/net-libs/ptlib/files/ptlib-2.10.9-disable-telnet-symbols.patch b/net-libs/ptlib/files/ptlib-2.10.9-disable-telnet-symbols.patch
new file mode 100644
index 000000000000..0a3012c8510a
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.9-disable-telnet-symbols.patch
@@ -0,0 +1,19 @@
+diff -uNr ptlib-2.10.8.orig/src/ptclib/cli.cxx ptlib-2.10.8/src/ptclib/cli.cxx
+--- ptlib-2.10.8.orig/src/ptclib/cli.cxx 2012-10-19 13:45:35.000000000 -0400
++++ ptlib-2.10.8/src/ptclib/cli.cxx 2012-10-22 16:02:58.000000000 -0400
+@@ -858,6 +858,7 @@
+
+ ///////////////////////////////////////////////////////////////////////////////
+
++#ifdef HAS_TELNET
+ PCLITelnet::PCLITelnet(WORD port, const char * prompt, bool singleThreadForAll)
+ : PCLISocket(port, prompt, singleThreadForAll)
+ {
+@@ -868,6 +869,7 @@
+ {
+ return new PTelnetSocket();
+ }
++#endif
+
+
+ ///////////////////////////////////////////////////////////////////////////////
diff --git a/net-libs/ptlib/files/ptlib-2.10.9-pkgconfig_ldflags.patch b/net-libs/ptlib/files/ptlib-2.10.9-pkgconfig_ldflags.patch
new file mode 100644
index 000000000000..acd531977c3b
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.9-pkgconfig_ldflags.patch
@@ -0,0 +1,11 @@
+diff -uNr ptlib-2.10.8.orig/ptlib.pc.in ptlib-2.10.8/ptlib.pc.in
+--- ptlib-2.10.8.orig/ptlib.pc.in 2012-10-19 13:45:35.000000000 -0400
++++ ptlib-2.10.8/ptlib.pc.in 2012-10-19 14:03:26.000000000 -0400
+@@ -11,7 +11,7 @@
+ Name: ptlib
+ Description: PT Library
+ Version: @PTLIB_VERSION@
+-Libs: @LDFLAGS@ -L${libdir} -lpt${suffix}
++Libs: @ENDLDLIBS@ -L${libdir} -lpt${suffix}
+ Libs.private: @ENDLDLIBS@
+ Cflags: -I${includedir} @STDCCFLAGS@
diff --git a/net-libs/ptlib/files/ptlib-2.10.9-respect_cxxflags.patch b/net-libs/ptlib/files/ptlib-2.10.9-respect_cxxflags.patch
new file mode 100644
index 000000000000..dc09f960f05a
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.9-respect_cxxflags.patch
@@ -0,0 +1,10 @@
+diff -uNr ptlib-2.10.8.orig/configure.ac ptlib-2.10.8/configure.ac
+--- ptlib-2.10.8.orig/configure.ac 2012-10-19 13:45:35.000000000 -0400
++++ ptlib-2.10.8/configure.ac 2012-10-23 08:08:57.000000000 -0400
+@@ -538,7 +540,7 @@
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+- STDCXXFLAGS="$STDCCFLAGS -frtti"
++ STDCXXFLAGS="$STDCXXFLAGS -frtti"
+ fi
diff --git a/net-libs/ptlib/files/ptlib-2.10.9-svn_revision_override.patch b/net-libs/ptlib/files/ptlib-2.10.9-svn_revision_override.patch
new file mode 100644
index 000000000000..5531fd9f6fcb
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.9-svn_revision_override.patch
@@ -0,0 +1,18 @@
+diff -uNr ptlib-2.10.8.orig/src/ptlib/common/osutils.cxx ptlib-2.10.8/src/ptlib/common/osutils.cxx
+--- ptlib-2.10.8.orig/src/ptlib/common/osutils.cxx 2012-10-19 13:45:35.000000000 -0400
++++ ptlib-2.10.8/src/ptlib/common/osutils.cxx 2012-10-19 13:52:50.000000000 -0400
+@@ -43,13 +43,13 @@
+ #include <ptlib/svcproc.h>
+ #include <ptlib/pluginmgr.h>
+ #include "../../../version.h"
+-#include "../../../revision.h"
++# define SVN_REVISION 0
++//#include "../../../revision.h"
+
+ #ifdef _WIN32
+ #include <ptlib/msos/ptlib/debstrm.h>
+ #endif
+
+-
+ static const char * const VersionStatus[PProcess::NumCodeStatuses] = { "alpha", "beta", "." };
+ static const char DefaultRollOverPattern[] = "_yyyy_MM_dd_hh_mm";
diff --git a/net-libs/ptlib/metadata.xml b/net-libs/ptlib/metadata.xml
new file mode 100644
index 000000000000..11317127f35c
--- /dev/null
+++ b/net-libs/ptlib/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="asn">Enable ASN decoding/encoding support</flag>
+ <flag name="dtmf">Enable DTMF encoding/decoding support</flag>
+ <flag name="http">Enable HTTP support</flag>
+ <flag name="mail">Enable mail protocols (POP3/SMTP)</flag>
+ <flag name="qos">Enable QOS support</flag>
+ <flag name="remote">Enable remote connection support</flag>
+ <flag name="serial">Enable serial port support</flag>
+ <flag name="shmvideo">Enable shared memory video devices</flag>
+ <flag name="socks">Enable SOCKS protocol support</flag>
+ <flag name="stun">Enable STUN support</flag>
+ <flag name="telnet">Enable telnet protocol support</flag>
+ <flag name="tts">Enable Text-To-Speech server support</flag>
+ <flag name="video">Enable video support</flag>
+ <flag name="vxml">Enable VoiceXML support</flag>
+ <flag name="wav">Enable WAVFILE support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">opalvoip</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/ptlib/ptlib-2.10.11.ebuild b/net-libs/ptlib/ptlib-2.10.11.ebuild
new file mode 100644
index 000000000000..02495a8d0e38
--- /dev/null
+++ b/net-libs/ptlib/ptlib-2.10.11.ebuild
@@ -0,0 +1,225 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Network focused portable C++ class library providing high level functions"
+HOMEPAGE="http://www.opalvoip.org/"
+SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
+ doc? ( mirror://sourceforge/opalvoip/${PN}-2.10.10-htmldoc.tar.bz2 )"
+
+LICENSE="MPL-1.0"
+SLOT="0/${PV}"
+KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86"
+# default enabled are features from 'minsize', the most used according to ptlib
+IUSE="alsa +asn debug doc +dtmf examples ffmpeg ftp +http ipv6
+xmpp ldap lua mail odbc oss pch pulseaudio qos remote sasl sdl serial
+shmvideo snmp soap socks +sound ssl static-libs +stun telnet tts v4l +video
+vxml +wav +xml xmlrpc"
+
+CDEPEND="
+ ldap? ( net-nds/openldap )
+ lua? ( dev-lang/lua )
+ odbc? ( dev-db/unixODBC )
+ pulseaudio? ( media-sound/pulseaudio )
+ sasl? ( dev-libs/cyrus-sasl:2 )
+ sdl? ( media-libs/libsdl )
+ sound? ( alsa? ( media-libs/alsa-lib ) )
+ ssl? ( dev-libs/openssl )
+ video? ( v4l? ( media-libs/libv4l ) )
+ xml? ( dev-libs/expat )
+ !!dev-libs/pwlib"
+RDEPEND="${CDEPEND}
+ ffmpeg? ( virtual/ffmpeg )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ sys-devel/bison
+ sys-devel/flex
+ video? ( v4l? ( sys-kernel/linux-headers ) )"
+
+# NOTES:
+# media-libs/libdc1394:2 should be supported but headers location have changed
+# tools/ directory is ignored
+# avc plugin is disabled to fix bug 276514, see upstream bug 2821744
+
+conditional_use_warn_msg() {
+ ewarn "To enable ${1} USE flag, you need ${2} USE flag to be enabled"
+ ewarn "Please, enable ${2} or disable ${1}"
+}
+
+REQUIRED_USE="sdl? ( video )
+ xmpp? ( xml )
+ vxml? ( http tts xml )
+ xmlrpc? ( http xml )
+ soap? ( http xml )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.10.9-svn_revision_override.patch" \
+ "${FILESDIR}/${PN}-2.10.9-pkgconfig_ldflags.patch" \
+ "${FILESDIR}/${PN}-2.10.9-respect_cxxflags.patch" \
+ "${FILESDIR}/${PN}-2.10.10-mga-bison-parameter.patch" \
+ "${FILESDIR}/${PN}-2.10.10-respect_cflags_cxxflags.patch" \
+ "${FILESDIR}/${P}-gcc6.patch"
+
+ if ! use telnet; then
+ epatch "${FILESDIR}/${PN}-2.10.9-disable-telnet-symbols.patch"
+ fi
+
+ # remove visual studio related files from samples/
+ if use examples; then
+ rm -f samples/*/*.vcproj
+ rm -f samples/*/*.sln
+ rm -f samples/*/*.dsp
+ rm -f samples/*/*.dsw
+ fi
+
+ if [[ ! -z ${TARGET+set} ]]; then
+ ewarn "TARGET variable is set. Removing as it would break the build, bug #465722."
+ unset TARGET
+ fi
+}
+
+src_configure() {
+ local myconf=""
+
+ # plugins are disabled only if ! sound and ! video
+ if ! use sound && ! use video; then
+ myconf="${myconf} --disable-plugins"
+ else
+ myconf="${myconf} --enable-plugins"
+ fi
+
+ # minsize: presets of features (overwritten by use flags)
+ # ansi-bool, atomicity: there is no reason to disable those features
+ # internalregex: we want to use system one
+ # sunaudio and bsdvideo are respectively for SunOS and BSD's
+ # appshare, vfw: only for windows
+ # samples: no need to build samples
+ # avc: disabled, bug 276514, upstream bug 2821744
+ # mlib: SUN mediaLibs. Not in tree.
+ # pipechan, configfile, resolver, url: force enabling
+ econf ${myconf} \
+ --disable-minsize \
+ --enable-ansi-bool \
+ --enable-atomicity \
+ --disable-internalregex \
+ --disable-sunaudio \
+ --disable-bsdvideo \
+ --disable-appshare \
+ --disable-vfw \
+ --disable-samples \
+ --disable-avc \
+ --disable-mlib \
+ --enable-configfile \
+ --enable-pipechan \
+ --enable-resolver \
+ --enable-url \
+ $(use_enable alsa) \
+ $(use_enable asn) \
+ $(use_enable debug exceptions) \
+ $(use_enable debug memcheck) \
+ $(use_enable debug tracing) \
+ $(use_enable dtmf) \
+ --disable-esd \
+ $(use_enable ffmpeg ffvdev) \
+ $(use_enable ftp) \
+ $(use_enable http) \
+ $(use_enable http httpforms) \
+ $(use_enable http httpsvc) \
+ --disable-dc \
+ $(use_enable ipv6) \
+ $(use_enable xmpp jabber) \
+ $(use_enable ldap openldap) \
+ $(use_enable lua) \
+ $(use_enable mail pop3smtp) \
+ $(use_enable pulseaudio pulse) \
+ $(use_enable odbc) \
+ $(use_enable oss) \
+ $(use_enable pch) \
+ $(use_enable qos) \
+ $(use_enable remote remconn) \
+ $(use_enable sasl) \
+ $(use_enable sdl) \
+ $(use_enable serial) \
+ $(use_enable shmvideo) \
+ $(use_enable snmp) \
+ $(use_enable soap) \
+ $(use_enable socks) \
+ $(use_enable sound audio) \
+ $(use_enable ssl openssl) \
+ $(use_enable stun) \
+ $(use_enable telnet) \
+ $(use_enable tts) \
+ --disable-v4l \
+ $(use_enable v4l v4l2) \
+ $(use_enable video) $(use_enable video vidfile) \
+ $(use_enable vxml) \
+ $(use_enable wav wavfile) \
+ $(use_enable xml expat) \
+ $(use_enable xmlrpc)
+}
+
+src_compile() {
+ local makeopts=""
+ tc-env_build
+
+ use debug && makeopts="debug"
+
+ emake ${makeopts} V=1 || die "emake failed"
+}
+
+src_install() {
+ local makeopts=""
+
+ use debug && makeopts="DEBUG=1"
+
+ emake DESTDIR="${D}" ${makeopts} install || die "emake install failed"
+
+ # Get rid of static libraries if not requested
+ # There seems to be no easy way to disable this in the build system
+ if ! use static-libs; then
+ rm -v "${D}"/usr/lib*/*.a || die
+ fi
+
+ if use doc; then
+ dohtml -r "${WORKDIR}"/html/* || die "dohtml failed"
+ fi
+
+ dodoc History.txt ReadMe.txt ReadMe_QOS.txt || die "dodoc failed"
+
+ if use sound || use video; then
+ newdoc plugins/ReadMe.txt ReadMe-Plugins.txt || die "newdoc failed"
+ fi
+
+ if use examples; then
+ local exampledir="/usr/share/doc/${PF}/examples"
+ local basedir="samples"
+ local sampledirs="`ls samples --hide=Makefile`"
+
+ # first, install Makefile
+ insinto ${exampledir}/
+ doins ${basedir}/Makefile || die "doins failed"
+
+ # now, all examples
+ for x in ${sampledirs}; do
+ insinto ${exampledir}/${x}/
+ doins ${basedir}/${x}/* || die "doins failed"
+ done
+ fi
+}
+
+pkg_postinst() {
+ if use examples; then
+ ewarn "All examples have been installed, some of them will not work on your system"
+ ewarn "it will depend of the enabled USE flags."
+ ewarn "To test examples, you have to run PTLIBDIR=/usr/share/ptlib make"
+ fi
+
+ if ! use sound || ! use video; then
+ ewarn "You have disabled sound or video USE flags."
+ ewarn "Most audio/video have been disabled silently even if enabled via USE flags."
+ ewarn "Having a feature enabled via use flag but disabled can lead to issues."
+ fi
+}
diff --git a/net-libs/qmf/Manifest b/net-libs/qmf/Manifest
new file mode 100644
index 000000000000..7ab7e25beea4
--- /dev/null
+++ b/net-libs/qmf/Manifest
@@ -0,0 +1,6 @@
+AUX qmf-4.0.2-tests.patch 457 SHA256 c2c453898565a55e49cb35f745c86ac61d640344febf6a329f303dafcc90bfdd SHA512 862b4d667e5e61551521b41c8c0e092ad5d0833c779b6a9531a802df7cc8c32b9504974a84e5f2ffc4d416aa69819c22726dd9ae4ccec0b60890482a3e207632 WHIRLPOOL 9d8b2e0932db8d45f3bdcb369adb6bd84e0a86f7ddba6d975233cddb98f964ab224bdce41b9b880e7437cea01f138d15b0f3fde65b3307fc02cc11dcb6be1a40
+DIST qmf-4.0.3.tar.gz 2099647 SHA256 0de3f27a49d5c7d67db3266ba62b61e260a850ea88420efb03db00502e45e39a SHA512 2df508ccc5d14bd1f0e68c2e07bded8b89c0c970302a130975c1ae3e49935ff46e77741a5c63580394c423fc56e526d3ac7738c740fc29f5d2eaec7fe2c8005d WHIRLPOOL 907315c32a900c60dd4b4a2122fef97454f5c922936b6c9ea269ec4c0d4d74ccea4f2d2248f348bb691057f4cbf36ddf11a2f3ab2192ff886db81873bcec60d3
+EBUILD qmf-4.0.3.ebuild 2288 SHA256 ad517a36481e7636b1830a8875eeeeac1147da30cb3f4fafdd9c05abbdc40f86 SHA512 c42898847299164ccd539b1ca38a88e3f148c555b9b12a6e5857b3317af070cc7034e517bd341011d4347838262a306aa1d661b5b00d5878a3f90487516ab6ce WHIRLPOOL 4a0422f19905c5135176627b83bc6451eb70c3995f4269a174cfebddc177e3cd0a2f46f78953e5285b66e5ebe66a30c357000767d45acd71130ab5a7406dcaec
+MISC ChangeLog 2751 SHA256 61451e02ff5399646001820cdb7efe7ade1def90ab29a81da08827c3bbe1dc4f SHA512 ad340068b636c36d20d991f3c471179434ed2b2b98654b43e176e90fb332485801ce6bef1a5b306267ea8b704fa2718d43d05355951a07b442b4eb814f12fd2c WHIRLPOOL 65210515679ea77e092727e4ed4006a6093da309abaf08cbb402713c486f41404e93f011eadbf753b2b33e11f6554d4e6b51db2cf490f36fa5428a7be502be6b
+MISC ChangeLog-2015 2646 SHA256 08d904cfc298aa4551417578f8655fc0ad7b27cfa62232c4c3d826eda4f6fb80 SHA512 f7adaa27bbe7a8b66da7cbd75ad66223deaae80db4dbe46932ed6e1b5cd0e9bdc4f738a338e9f9e3069afc7f07a7c24ff8bca908457de667e2ebfd686167284a WHIRLPOOL 3112f5f3cd034fa9d619a5020f82b2ad442510e1c5f27e899b5e163fc3d9a134ce4574841ab3796015a6fddfec586d73ec3fb24cef558618afbccc5a0f68a167
+MISC metadata.xml 243 SHA256 40d70720dcef790c8b2af5864ea1d289f0a661e0db1e89d2c6a8a5c0d2ea971e SHA512 fc40891d1d0c8526f7ac87f25fbdb63e927494f972894e0006fe85eab8eef60ae79761cbc42febd202172da040283a2daa432908bf02ef83d27454660f20e72b WHIRLPOOL 0c09ba0a23280f3d5b0bd26ca7e3f3fe8e43302780afbcb20218599b9b8f426485b8aba8c97f1507f9adab1688d78cb132792cb4d13e130454c393b69fc662f4
diff --git a/net-libs/qmf/files/qmf-4.0.2-tests.patch b/net-libs/qmf/files/qmf-4.0.2-tests.patch
new file mode 100644
index 000000000000..38a7f4c7b714
--- /dev/null
+++ b/net-libs/qmf/files/qmf-4.0.2-tests.patch
@@ -0,0 +1,13 @@
+diff -Naur qmf-9999.orig/tests/tests.pri qmf-9999/tests/tests.pri
+--- qmf-9999.orig/tests/tests.pri 2013-04-13 12:05:32.323423194 -0700
++++ qmf-9999/tests/tests.pri 2013-04-13 12:09:25.068513480 -0700
+@@ -11,7 +11,8 @@
+ INCLUDEPATH += . $$QMFPATH $$QMFPATH/support
+ LIBS += -L$$QMFPATH/build
+ macx:LIBS += -F$$QMFPATH/build
+-QMAKE_LFLAGS += -Wl,-rpath,$$QMFPATH
++QMAKE_LFLAGS += -Wl,-rpath,\\\$$ORIGIN/$$QMFPATH/build
+
+ include(../common.pri)
+
++DESTDIR =
diff --git a/net-libs/qmf/metadata.xml b/net-libs/qmf/metadata.xml
new file mode 100644
index 000000000000..32fe1293e9a9
--- /dev/null
+++ b/net-libs/qmf/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 type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/qmf/qmf-4.0.3.ebuild b/net-libs/qmf/qmf-4.0.3.ebuild
new file mode 100644
index 000000000000..f1d6022513e9
--- /dev/null
+++ b/net-libs/qmf/qmf-4.0.3.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-r2
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI=(
+ "git://code.qt.io/qt-labs/messagingframework.git"
+ "https://code.qt.io/git/qt-labs/messagingframework.git"
+ )
+else
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${P}.tar.gz"
+ S=${WORKDIR}/qt-labs-messagingframework
+fi
+
+DESCRIPTION="The Qt Messaging Framework"
+HOMEPAGE="https://code.qt.io/cgit/qt-labs/messagingframework.git/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="debug doc icu test zlib"
+
+RDEPEND="
+ dev-qt/qtcore:4[ssl]
+ dev-qt/qtgui:4
+ dev-qt/qtsql:4
+ icu? ( dev-libs/icu:= )
+ zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-qt/qttest:4 )
+"
+
+DOCS=( CHANGES )
+PATCHES=(
+ "${FILESDIR}/${PN}-4.0.2-tests.patch"
+)
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ sed -i -e '/SUBDIRS.*=/s/benchmarks//' messagingframework.pro || die
+
+ # disable examples which require dev-qt/qtwebkit:4
+ sed -i -e '/SUBDIRS.*=/s/examples//' messagingframework.pro || die
+
+ if ! use test; then
+ sed -i -e '/SUBDIRS.*=/s/tests//' messagingframework.pro || die
+ fi
+
+ # disable automagic deps
+ if ! use icu; then
+ sed -i -e 's/packagesExist(icu-uc)/false:&/' \
+ src/libraries/qmfclient/qmfclient.pro || die
+ fi
+ if ! use zlib; then
+ sed -i -e 's/packagesExist(zlib)/false:&/' \
+ src/plugins/messageservices/imap/imap.pro || die
+ fi
+
+ # fix libdir
+ find "${S}" -name '*.pro' -type f -print0 | xargs -0 \
+ sed -i -re "s:/lib(/|$):/$(get_libdir)\1:" || die
+ sed -i -e "s:/lib/:/$(get_libdir)/:" \
+ src/libraries/qmfclient/support/qmailnamespace.cpp || die
+}
+
+src_configure() {
+ eqmake4 QMF_INSTALL_ROOT="${EPREFIX}/usr"
+}
+
+src_test() {
+ cd "${S}"/tests
+
+ export QMF_DATA=${T}
+ local fail=false test=
+ for test in tst_*; do
+ # skip test that requires messageserver to be running
+ [[ ${test} == tst_qmailstorageaction ]] && continue
+
+ if ! LC_ALL=C ./${test}/${test}; then
+ eerror "${test#tst_} test failed!"
+ fail=true
+ fi
+ echo
+ done
+
+ ${fail} && die "some tests have failed!"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use doc; then
+ emake docs
+
+ dodoc -r doc/html
+ dodoc doc/html/qmf.qch
+ docompress -x /usr/share/doc/${PF}/qmf.qch
+ fi
+}
diff --git a/net-libs/quasselc/Manifest b/net-libs/quasselc/Manifest
new file mode 100644
index 000000000000..df69440fe39a
--- /dev/null
+++ b/net-libs/quasselc/Manifest
@@ -0,0 +1,3 @@
+DIST quasselc-0_p20170111.zip 39051 SHA256 35360cf14e34e5bcde4d4e26cd36ddc1c3e57a786cebe7e8ff096dc20e90e2d9 SHA512 bf2aa58953778c340408de45ddacdd47e862a431a4ee7384d595b6635954b3f705c4b51b56811f2f4c6b5b603d237512638613c912d48daed9a3cb55952d314b WHIRLPOOL c1b2753683c59a50906aba30ee995c274601cdc1062afdef884f77d2880e0a6b6db8de2f71f7d4ce63b5ee554cdda0d40f55f4fcfb7f9b8f0f23d7acd0257e0e
+EBUILD quasselc-0_p20170111.ebuild 942 SHA256 c0c982fbee659072d3822fc3a11febbe1212f8c4563c691e7eb3a92cc3192133 SHA512 e49c00a358603f8a0e774ae414e7a1c5390bf81b401eb74aeb6f1f531304f6d95b448cc53057960a6b3517a79ab7a4b33dc8256df92f89895f2f7cb14b0771e7 WHIRLPOOL e48c89bd06440cb59630fd73ff8ec9cb702cefce57cdebb39dabc90a9ab65d918e3a2f165d7e42a8c54f7c4210734677577b25f17e8ae07fd93c5a667526d8a8
+MISC metadata.xml 475 SHA256 1dc5cb33de8aa6371825e4f268ce430e7459c47865c8be998552ba5681e25606 SHA512 845ba9861385b9e2735c52f1f96507049405d733d1d5d262d5f7d9458a19fd82060a671afee60a293175e2e947d402b492720e0bb5048a8f80784e069c8ac733 WHIRLPOOL e6385a7c2279a28db35e0c18a25d1c96962f6df182ed69d4e899cdc68fc4902f5306adc267e54398846027280ed6c114d1da2ed84c472353bde1f69917a7ac32
diff --git a/net-libs/quasselc/metadata.xml b/net-libs/quasselc/metadata.xml
new file mode 100644
index 000000000000..09dbfc6cdcd8
--- /dev/null
+++ b/net-libs/quasselc/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wraeth@gentoo.org</email>
+ <name>Sam Jorna</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">phhusson/QuasselC</remote-id>
+ <bugs-to>https://github.com/phhusson/QuasselC/issues</bugs-to>
+ </upstream>
+ <longdescription lang="en">API to access a Quassel Core in pure C.</longdescription>
+</pkgmetadata>
diff --git a/net-libs/quasselc/quasselc-0_p20170111.ebuild b/net-libs/quasselc/quasselc-0_p20170111.ebuild
new file mode 100644
index 000000000000..96e2e94dad8a
--- /dev/null
+++ b/net-libs/quasselc/quasselc-0_p20170111.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic
+
+# Commit Date: Wed Jan 11 18:27:31 2017 +0100
+COMMIT="a0a1e6bd87d3eac68b5369972d1c2035cfe47e94"
+
+DESCRIPTION="API for accessing Quassel using C"
+HOMEPAGE="https://github.com/phhusson/QuasselC"
+SRC_URI="https://github.com/phhusson/QuasselC/archive/${COMMIT}.zip -> ${PF}.zip"
+
+LICENSE="GPL-3 LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/QuasselC-${COMMIT}"
+
+src_prepare() {
+ default
+
+ # Makefile hardcodes much
+ sed -e '/^CFLAGS/d' -i Makefile || die
+ local includes=$($(tc-getPKG_CONFIG) glib-2.0 --cflags)
+ append-cflags "${includes} -fPIC -std=gnu11"
+}
+
+src_compile() {
+ tc-export CC
+ export prefix="${ROOT}usr" libdir="${ROOT}usr/$(get_libdir)"
+ default
+}
+
+src_install() {
+ default
+ dosym "libquasselc.so.0" "/usr/$(get_libdir)/libquasselc.so"
+}
diff --git a/net-libs/qxmpp/Manifest b/net-libs/qxmpp/Manifest
new file mode 100644
index 000000000000..8aaaa6afcd27
--- /dev/null
+++ b/net-libs/qxmpp/Manifest
@@ -0,0 +1,8 @@
+DIST qxmpp-0.8.0.tar.gz 1115730 SHA256 6a5e40b67bfbc2315f2b8bc0210e7556b0b9903e18b4f68267072f3421f74712 SHA512 b4e3afa9a4ffdc03d2baf9660986d0cf4de5c2c7d1518ad83cd9b252ff7822da66d9356eab49ce9bd642884a41ec3b72f8d4e2cda964a9276d525d4895c6165f WHIRLPOOL 4694ec5ee96512516fc3b195857db247e81cf8677c1f97870f8f89463c03b83d67a550dc8571c32ae44e57a48d5ce87f5e237eecc9ccde73fccc273a8f688711
+DIST qxmpp-0.9.3.tar.gz 300764 SHA256 13f5162a1df720702c6ae15a476a4cb8ea3e57d861a992c4de9147909765e6de SHA512 c6ada4398468b9ce84955ab3a1ca155afe3098dfe39dc952c3675be1a1e3a4f118f8b1e251567bc124faa645d2654252d3e32d94e21aae79547056a10a2d6a71 WHIRLPOOL 623447034d769cc6a601459d8b6828dab1b72ba892e69040a86d82b0649567998305d07fd23d520fa2dca1147a87a72e2bffb0793cce09277b636a22fa51ca0b
+EBUILD qxmpp-0.8.0.ebuild 1544 SHA256 27d25e0fc06dff0f69c76ff8ac0ef3aa0fed4e9c535eeb9d52ae6bb5d6fbc249 SHA512 6d6c09eae7acb85bdc6f8f03a0962c71f02fb4f669aff259aff601d00c8b3be17670ba44ec72cd08a488d065c882c6538eda7bcb7bd6021a12dcf8e0581d925f WHIRLPOOL f30b3d86c04e82e7831802ce27e6aa525cbdccf381dc614d58e0d4c3a258c81f33fc5be3fac3485cdf9d96a6b162144d6036305d5d1a361caee42346745a848e
+EBUILD qxmpp-0.9.3-r1.ebuild 1831 SHA256 9614f520ec082289f9ccd7681e7da2c5d192c1a4c59313fd5ecff76c51cfebb6 SHA512 7d96a9e6e247d2e8c6ea1d1c8edf552fee0530b7e328357f02d2082e66b53d6dfc9826657449351eca1007aff85666f695008e61b5c1c379284e68c6a5932e58 WHIRLPOOL 57ff2f7f955cfe831adc2c291551fdaa07086bb3dc77f1f39f3053436ac72bf3e1153c38e179aa8d4935cda2a3b6f11c673fb689ac21f888beed4407935e2fdd
+EBUILD qxmpp-9999.ebuild 1784 SHA256 bb7a8922b85cf9657770e552e20549f358c9faeed4e95f7652a42fb830d436ec SHA512 40e0c2b35ed81dd304df95feb634164ab69012641504df03e3dd9dfeba76437644e3d9125d33535a31e7e80ec39db6ca5efdbaa49f885e405bf9b650dc79a576 WHIRLPOOL 75601489b4f705d4186044dd90c25ba929a4c594eca435571b35f5af49617d53e82e9818388379fd5d21dc522098db1021d987f7072416f444c740464cde24e3
+MISC ChangeLog 3489 SHA256 a41ac809c6e6d0e71d2d14096d2ae179e4a9e2cc6cbca0ee47a34ab1773ebc63 SHA512 39c2b3ed09f6f76b6abde247379b3cebc7621a3d2117fa1b1591eb75fc3b9468881acd6e510605a5cbc3960ba07c01faafb308b42960277364739b76bf5567b5 WHIRLPOOL abc0f655603a4e4f534f495b27e7a3463f1509f1100233b6bdb544e983e3a97dd3f33ce79fab0f93a9cfbf558beb6737a585ea1f7aeabb241b5b752e94997eca
+MISC ChangeLog-2015 6544 SHA256 42c6c54298e374d5325d156c1a041ac147b56e3e59d47f31f2d5f6c936ad761b SHA512 5622489696a3052504cf745d942d46048904ae7d8d036b1689b22ed554e15f132756494a8e65cfae516ca20d48697faa36547fdd6abac459cd1a829291a5973b WHIRLPOOL 9ec4f6ee2ab564cc108f80be3b36487e890960eee766e32e062fa9ffffc3cd6e5002c63207ee06d7ed656f0b7d833bc5435bdaba1749783c3c9683dae43bb6e6
+MISC metadata.xml 794 SHA256 9f4d6605299b6f431cb541c883517765ec3741b7cbbe8b300df8842b2b5bfb63 SHA512 0486690da78f6876a4dc81eec34dbcfdb63df109ed9135c9fce5fe8355f3adb216e7766def8d87870a9ece522f57b295ed48aa7cca36f7bb2a64eef7f77bb74d WHIRLPOOL 909cc54eeadd4714aa1e387a167bd0c8dbd71aed2f14926b70b9592db04f8812d55b4b2a1dc6f53088dc5ab0b852bd1f599913c77429a60185c6d016995a54bb
diff --git a/net-libs/qxmpp/metadata.xml b/net-libs/qxmpp/metadata.xml
new file mode 100644
index 000000000000..128b3f2f7fdc
--- /dev/null
+++ b/net-libs/qxmpp/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>0xd34df00d@gmail.com</email>
+ <name>Georg Rudoy</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/qxmpp-project/qxmpp/issues</bugs-to>
+ <changelog>https://raw.githubusercontent.com/qxmpp-project/qxmpp/master/CHANGELOG</changelog>
+ <remote-id type="github">qxmpp-project/qxmpp</remote-id>
+ </upstream>
+ <use>
+ <flag name="opus">Enable Opus codec support via <pkg>media-libs/opus</pkg></flag>
+ <flag name="vpx">Enable VP8 codec support via <pkg>media-libs/libvpx</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/qxmpp/qxmpp-0.8.0.ebuild b/net-libs/qxmpp/qxmpp-0.8.0.ebuild
new file mode 100644
index 000000000000..9e4bdbb2bb2a
--- /dev/null
+++ b/net-libs/qxmpp/qxmpp-0.8.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-r2 multilib
+
+DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework"
+HOMEPAGE="https://code.google.com/p/qxmpp/"
+SRC_URI="http://download.qxmpp.org/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux"
+IUSE="debug doc +speex test theora vpx"
+
+RDEPEND="dev-qt/qtcore:4
+ speex? ( media-libs/speex )
+ theora? ( media-libs/libtheora )
+ vpx? ( media-libs/libvpx )"
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:4 )"
+
+src_prepare(){
+ if ! use doc; then
+ sed -i \
+ -e '/SUBDIRS/s/doc//' \
+ -e '/INSTALLS/d' \
+ qxmpp.pro || die "sed for removing docs failed"
+ fi
+ if ! use test; then
+ sed -i -e '/SUBDIRS/s/tests//' \
+ qxmpp.pro || die "sed for removing tests failed"
+ fi
+ # There is no point in building examples. Also, they require dev-qt/qtgui
+ sed -i -e '/SUBDIRS/s/examples//' \
+ qxmpp.pro || die "sed for removing examples failed"
+ qt4-r2_src_prepare
+}
+
+src_configure(){
+ local conf_speex
+ local conf_theora
+ local conf_vpx
+
+ use speex && conf_speex="QXMPP_USE_SPEEX=1"
+ use theora && conf_theora="QXMPP_USE_THEORA=1"
+ use vpx && conf_vpx="QXMPP_USE_VPX=1"
+
+ eqmake4 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_speex}" "${conf_theora}" "${conf_vpx}"
+}
+
+src_install() {
+ qt4-r2_src_install
+ if use doc; then
+ # Use proper path for documentation
+ mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
+ fi
+}
diff --git a/net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild b/net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild
new file mode 100644
index 000000000000..688a4490a702
--- /dev/null
+++ b/net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework"
+HOMEPAGE="https://github.com/qxmpp-project/qxmpp/"
+SRC_URI="https://github.com/${PN}-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="debug doc opus +speex test theora vpx"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtxml:5
+ opus? ( media-libs/opus )
+ speex? ( media-libs/speex )
+ theora? ( media-libs/libtheora )
+ vpx? ( media-libs/libvpx )
+"
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:5 )
+"
+
+src_prepare(){
+ if ! use doc; then
+ sed -i \
+ -e '/SUBDIRS/s/doc//' \
+ -e '/INSTALLS/d' \
+ qxmpp.pro || die "sed for removing docs failed"
+ fi
+ if ! use test; then
+ sed -i -e '/SUBDIRS/s/tests//' \
+ qxmpp.pro || die "sed for removing tests failed"
+ fi
+ # There is no point in building examples. Also, they require dev-qt/qtgui
+ sed -i -e '/SUBDIRS/s/examples//' \
+ qxmpp.pro || die "sed for removing examples failed"
+ default_src_prepare
+}
+
+src_configure(){
+ local conf_speex
+ local conf_theora
+ local conf_vpx
+
+ use opus && conf_opus="QXMPP_USE_OPUS=1"
+ use speex && conf_speex="QXMPP_USE_SPEEX=1"
+ use theora && conf_theora="QXMPP_USE_THEORA=1"
+ use vpx && conf_vpx="QXMPP_USE_VPX=1"
+
+ eqmake5 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_opus}" "${conf_speex}" "${conf_theora}" "${conf_vpx}"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ if use doc; then
+ # Use proper path for documentation
+ mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
+ fi
+}
+
+src_test() {
+ MAKEOPTS="-j1" # random tests fail otherwise
+ default_src_test
+}
diff --git a/net-libs/qxmpp/qxmpp-9999.ebuild b/net-libs/qxmpp/qxmpp-9999.ebuild
new file mode 100644
index 000000000000..21806f48a186
--- /dev/null
+++ b/net-libs/qxmpp/qxmpp-9999.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/qxmpp-project/qxmpp"
+
+inherit git-r3 qmake-utils
+
+DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework"
+HOMEPAGE="https://github.com/qxmpp-project/qxmpp/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug doc opus +speex test theora vpx"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtxml:5
+ opus? ( media-libs/opus )
+ speex? ( media-libs/speex )
+ theora? ( media-libs/libtheora )
+ vpx? ( media-libs/libvpx )
+"
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:5 )
+"
+
+src_prepare(){
+ if ! use doc; then
+ sed -i \
+ -e '/SUBDIRS/s/doc//' \
+ -e '/INSTALLS/d' \
+ qxmpp.pro || die "sed for removing docs failed"
+ fi
+ if ! use test; then
+ sed -i -e '/SUBDIRS/s/tests//' \
+ qxmpp.pro || die "sed for removing tests failed"
+ fi
+ # There is no point in building examples. Also, they require dev-qt/qtgui
+ sed -i -e '/SUBDIRS/s/examples//' \
+ qxmpp.pro || die "sed for removing examples failed"
+ default_src_prepare
+}
+
+src_configure(){
+ local conf_speex
+ local conf_theora
+ local conf_vpx
+
+ use opus && conf_opus="QXMPP_USE_OPUS=1"
+ use speex && conf_speex="QXMPP_USE_SPEEX=1"
+ use theora && conf_theora="QXMPP_USE_THEORA=1"
+ use vpx && conf_vpx="QXMPP_USE_VPX=1"
+
+ eqmake5 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_opus}" "${conf_speex}" "${conf_theora}" "${conf_vpx}"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ if use doc; then
+ # Use proper path for documentation
+ mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
+ fi
+}
+
+src_test() {
+ MAKEOPTS="-j1" # random tests fail otherwise
+ default_src_test
+}
diff --git a/net-libs/rabbitmq-c/Manifest b/net-libs/rabbitmq-c/Manifest
new file mode 100644
index 000000000000..1de3eca7efe5
--- /dev/null
+++ b/net-libs/rabbitmq-c/Manifest
@@ -0,0 +1,7 @@
+DIST rabbitmq-c-v0.5.0.zip 234929 SHA256 91e883c5cc3c72c5cb351c598b39e2e531c891b5a3e6ad1f82ee261caa5a3e6c SHA512 7b30ecc4831f0145db68a1811b5cb7e4eb55a6b826efa0834a705c03f2ecba3d6d2b8187cdf1472e7da2af8dc77b67674916ec31fa6086e00a01304a097b4430 WHIRLPOOL acf08d02c0ddcc9f651aae2e5cef5f37f0748179cbd015d7c550405e2efb380c5d921faec49cb5eebdd442985aa73236cc9861b74925e8c3370a589dba7af602
+DIST rabbitmq-c-v0.8.0.zip 249220 SHA256 f32d6b7c368f7883da76dd10f9035d9194c5d988bd2cbd9daf0cde2b4e92004d SHA512 e386979ce1bc05c02cda06e8582981e0df25f9b31ca950f8a921bd2b249020f751ba65a6f38b8f5ba0be1b3e89492b29b72c6cd1d5ed3d6f19440799d6419ba6 WHIRLPOOL 705bb4c685c1d441776403d5c47f910de06ce4a1874bcc2e2a535bc9f9f1fdd1dede4e02e451423c4faefa492cab0a21c23d0bc1cf1adf9e43a2f6f88e65cb1c
+EBUILD rabbitmq-c-0.5.0.ebuild 838 SHA256 6c3f6f5dd457a919ab7c2050d3a01a6e7f69b32959b443fe3254073063968fe8 SHA512 8d264f879f19e1bcaa76b16b73fb9afd4dfa6cc90e9c2ea742c568476f68565954a09df5e73c06049ef4813f10a24f27a39bdf7664ef5e937b8234c3bb6d4ee5 WHIRLPOOL 342bd43720571d2dc86936274893fe90e051a306cdd25fb9f3e0370c049069b90222d6465edc075e69cecbb85b8abd8c7928ab7f2fdeb76c3db306e7b1657f7b
+EBUILD rabbitmq-c-0.8.0.ebuild 1088 SHA256 54456978d050d0750de4277ac1c9566cdbd3329750dd307c384d47e535d688b4 SHA512 21a145c6b8008bc3bcfe021a731486d7800c36d4fc41b1651ad29a69b0dba1b2d21844b9365466402adba36086b1d5250b4bf77df3291ba3b3c1a18b61355a2d WHIRLPOOL 526b5ab69aa1e3f75ed16c95ea8fa81ed1c6e5e577c4b9cda02a66cab33b07b6ed389794ac477f45fc918a159409bea73488993a7832baba5c19ec3d7c136ebf
+MISC ChangeLog 3225 SHA256 c3df4a48a6aac13de5e892f6dff51d487ce686a9384461544c5573a15191022d SHA512 e4d6185a530506f2bd9a29c245f25ba0ae787cb3ce5eeef1ac66784c5b17adec0c38a229fd3e6845f606eff904321c2096ac307d934a66da8ba518d01cd2e04c WHIRLPOOL 0b50ea43dc614feddf1d989d7bf8985f98c60354a8c23ed70c9e98da86ff8d7313038d02b1da7411fc12bed671415321084e6a77a0fb20913f57329307278dd3
+MISC ChangeLog-2015 1092 SHA256 73cf5273ecc30dca45e785bc044c1f2ac6d6a7567074e5a7030f661078b3d0d2 SHA512 9afc259248ae43e04e2e3dc052b72d9f6c93ce4e636ea7c13d1a71f28c06802b4f53eae0966678d0f8060ca9021f3818892a0aacbca15052d4709a2c446a3977 WHIRLPOOL 55ec7a98080632db71c7f12d2de601f29b49c064738505cb6f34173197f8b7add88d9daa683c393ff3653abaacd907e4d944f077375a519ba22e1bb53fd5a84f
+MISC metadata.xml 334 SHA256 c848c8138e2296214038cd9632c0c485e41ab75f054db56ade3769d05283daa1 SHA512 e28cd79f898d2fc3a02d48b62a572102724cf18951810791479c273f8407f0c4bf8f202bf72f035c8383fe7ab4a8f216a98ce79cbaa9bb1ad82f69c26d762d76 WHIRLPOOL 8d55d871b83547c2ef029fc7c112fbdc4076103b052b0790f3c746f66f02c0fbb0ebfce30db75888fd274a363a7bf0f746812d55ae135815c3095643405ed51b
diff --git a/net-libs/rabbitmq-c/metadata.xml b/net-libs/rabbitmq-c/metadata.xml
new file mode 100644
index 000000000000..bf9c427ce7c4
--- /dev/null
+++ b/net-libs/rabbitmq-c/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="tools">Builds cli tools to interact with brokers</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">alanxz/rabbitmq-c</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/rabbitmq-c/rabbitmq-c-0.5.0.ebuild b/net-libs/rabbitmq-c/rabbitmq-c-0.5.0.ebuild
new file mode 100644
index 000000000000..38842119cb7a
--- /dev/null
+++ b/net-libs/rabbitmq-c/rabbitmq-c-0.5.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit cmake-utils eutils multilib
+
+DESCRIPTION="RabbitMQ C client"
+HOMEPAGE="https://github.com/alanxz/rabbitmq-c"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="https://github.com/alanxz/${PN}.git"
+else
+ SRC_URI="https://github.com/alanxz/${PN}/archive/v${PV}.zip -> ${PN}-v${PV}.zip"
+ KEYWORDS="amd64 ~arm hppa x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="tools"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+DOCS=( "AUTHORS" "README.md" "THANKS" "TODO" )
+
+src_unpack() {
+ if [[ ${PV} == *9999* ]]; then
+ git-2_src_unpack
+ else
+ unpack ${A}
+ fi
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DCMAKE_SKIP_RPATH=ON
+ $(cmake-utils_use tools BUILD_TOOLS)
+ $(cmake-utils_use tools BUILD_TOOLS_DOCS)
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/rabbitmq-c/rabbitmq-c-0.8.0.ebuild b/net-libs/rabbitmq-c/rabbitmq-c-0.8.0.ebuild
new file mode 100644
index 000000000000..2c2270167831
--- /dev/null
+++ b/net-libs/rabbitmq-c/rabbitmq-c-0.8.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+DESCRIPTION="RabbitMQ C client"
+HOMEPAGE="https://github.com/alanxz/rabbitmq-c"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/alanxz/${PN}.git"
+else
+ SRC_URI="https://github.com/alanxz/${PN}/archive/v${PV}.zip -> ${PN}-v${PV}.zip"
+ KEYWORDS="amd64 arm ~arm64 hppa ~ppc x86"
+fi
+
+LICENSE="MIT"
+SLOT="0/4"
+IUSE="doc libressl test +ssl static-libs tools"
+
+REQUIRED_USE="test? ( static-libs )"
+
+RDEPEND="ssl? (
+ libressl? ( dev-libs/libressl:= )
+ !libressl? ( dev-libs/openssl:0= )
+ )
+ tools? ( dev-libs/popt )"
+DEPEND="${DEPEND}
+ doc? ( app-doc/doxygen )
+ tools? ( app-text/xmlto )"
+DOCS=( AUTHORS README.md THANKS TODO )
+
+src_configure() {
+ mycmakeargs=(
+ -DCMAKE_SKIP_RPATH=ON
+ -DBUILD_API_DOCS=$(usex doc)
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ -DBUILD_TESTS=$(usex test)
+ -DBUILD_TOOLS=$(usex tools)
+ -DBUILD_TOOLS_DOCS=$(usex tools)
+ -DENABLE_SSL_SUPPORT=$(usex ssl)
+ )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/rest/Manifest b/net-libs/rest/Manifest
new file mode 100644
index 000000000000..ffbe7d6a9757
--- /dev/null
+++ b/net-libs/rest/Manifest
@@ -0,0 +1,5 @@
+DIST rest-0.8.0.tar.xz 334024 SHA256 e7b89b200c1417073aef739e8a27ff2ab578056c27796ec74f5886a5e0dff647 SHA512 dfcfed4196e613ed4415ea04eaa890e47d1d2e6899afdefff3dd7bfed5bcace58724158deb4c0cc7974f9a4493d00d5c0a27415160f2795df81c2210c14a823a WHIRLPOOL b4a2de0fac2fe5bd6280c5e06a18a2b3b2fe1ca3d6f6a38ae1a34c3a9d1a3d8efa8c19ffac15ed4f9ca2ef7a7febf225f8954f6446c3a7078a3e2c02ff08ee73
+EBUILD rest-0.8.0.ebuild 1483 SHA256 4c64a04f8ae6de7ec5d6bb6b860056ee67732142e28992b19a4b0859945ef687 SHA512 d308e4194480917c537a696c9e825dbffe17c73dca684adb653e73baed63869534ae0d09316c669a2452d267d21bfc724ebdf442178b8e95e7b20645687c2279 WHIRLPOOL 163c465d6840fe0c619372bda771d2c1a4933ed4e98a14ca6501ecf87949d502e04286bc3d0ab29ea66e0a998844b29e7e512a3d6dcc64a766e731234ccaffff
+MISC ChangeLog 4454 SHA256 5e42fa635b46e3e44193170e08d69d919af8f5de99bed6cfec75badc94ceb5da SHA512 5cbfaad67725de9b5c0e367af8ee85e5e04c2d4b34446a5f1adae44d16d1b162c604580eb2ea78c53f65ceb62a8421fefe5811956187217ee7c55b43a67368cb WHIRLPOOL b0d2733de73c2e6d9bcabc539e13d4416b6b670ddb612a1e8324cfde38535e29763ea3aebe485e595db3884617a83611b03fde943debc590b30c843e0352bc9a
+MISC ChangeLog-2015 5469 SHA256 38f95baadbbf93e8185399b0f42581585ad3e44fe4ae1e2ff69cfa84f1d6d8da SHA512 2dc1af7fd3fe124131da9c9fb16c1a3c54fb31bd018b963d1f8c6d9cce41f42358cb7ab05364d952cc33d309348f3e49828f91180e15e2fcc25b603801a8e670 WHIRLPOOL 61d6271a17d2e8fd51f86c30c01fe94b57bfb9ba61409dfc9575d620115063d78616b79bbbac125e43355218b90e7dcedf13e03ff658e3ca3512587e53884de1
+MISC metadata.xml 259 SHA256 6d16d32cce05219baff0d7aef9baf4f8f4622ba77a55e9bc5ae9b074ae8d4600 SHA512 fbef629394690b3a5608abc6344816f6acf1e8e2663f29949fd14a662c628f16fee77a1ec1641066806d143fb94c1571bc5b46b829dc53620af6956377fe15cc WHIRLPOOL dd2c856848fdc98df5a4ffca31b95078656373a87ccf2e44be410e7139f2980f3ebb0ae951e2e92fc46ce8e3a3ecefec169c3a15bbcceba69c1bd8224a8dd271
diff --git a/net-libs/rest/metadata.xml b/net-libs/rest/metadata.xml
new file mode 100644
index 000000000000..4cbddcaa19ad
--- /dev/null
+++ b/net-libs/rest/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/rest/rest-0.8.0.ebuild b/net-libs/rest/rest-0.8.0.ebuild
new file mode 100644
index 000000000000..d479dae138eb
--- /dev/null
+++ b/net-libs/rest/rest-0.8.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+GNOME2_LA_PUNT="yes"
+
+inherit eutils gnome2 multilib-minimal virtualx
+
+DESCRIPTION="Helper library for RESTful services"
+HOMEPAGE="https://wiki.gnome.org/Projects/Librest"
+
+LICENSE="LGPL-2.1"
+SLOT="0.7"
+IUSE="+introspection test"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+
+# Coverage testing should not be enabled
+RDEPEND="
+ app-misc/ca-certificates
+ >=dev-libs/glib-2.24:2[${MULTILIB_USEDEP}]
+ dev-libs/libxml2:2[${MULTILIB_USEDEP}]
+ net-libs/libsoup:2.4[${MULTILIB_USEDEP}]
+ introspection? ( >=dev-libs/gobject-introspection-0.6.7:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.13
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig[${MULTILIB_USEDEP}]
+ test? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
+"
+
+multilib_src_configure() {
+ # gnome support only adds dependency on obsolete libsoup-gnome
+ # https://bugzilla.gnome.org/show_bug.cgi?id=758166
+ ECONF_SOURCE=${S} \
+ gnome2_src_configure \
+ --disable-static \
+ --disable-gcov \
+ --without-gnome \
+ --with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \
+ $(multilib_native_use_enable introspection)
+
+ if multilib_is_native_abi; then
+ ln -s "${S}"/docs/reference/rest/html docs/reference/rest/html || die
+ fi
+}
+
+multilib_src_test() {
+ # Tests need dbus
+ virtx emake check
+}
+
+multilib_src_compile() {
+ gnome2_src_compile
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
diff --git a/net-libs/ripe-atlas-sagan/Manifest b/net-libs/ripe-atlas-sagan/Manifest
new file mode 100644
index 000000000000..2cedc600420e
--- /dev/null
+++ b/net-libs/ripe-atlas-sagan/Manifest
@@ -0,0 +1,8 @@
+DIST ripe.atlas.sagan-1.1.10.tar.gz 128425 SHA256 3831bf2bc66188c5764b3d0b3c0e5387b3d670d0a8839ed464a244c6ffe5288b SHA512 dab5aa200a77ca4f4a29b2cef79df7c12cee4e6ff2583e5cdf1e6e381b9ca4de2e4bf8c56e9856f9b79ed196f72304d62b8cbaa76b0aa9a5d5294559b8f6bbce WHIRLPOOL 576de474f85db1c6eb22ed897a08deeae9d071b132ae67502ab849753d49760abf7a0facf20eabfe2c15f10331c245237d07149d3cf8e4243cd6a6a50bd73d57
+DIST ripe.atlas.sagan-1.1.11.tar.gz 102136 SHA256 b51c464b6ef4f2cca0621bb1c4a2c626b58afbe9c32c5292c6ab7c8c1b705d08 SHA512 4c2ba0774be46cf9dc9eafe5904dd7915f21bfa047fcf5867d6e1a41a4370f70cc837d398368efa2f4b24750f655514287dcd5b97a1b47e725fba3f17f49d477 WHIRLPOOL 10db92116c0d9b9e0c739ca7468a193d3acaf24594548c5e1ff2c75e48f8f15f93025af6f9c630766c093c6ebc39d2dc409e45b27a15bcca4169f3be87bde548
+DIST ripe.atlas.sagan-1.1.8.tar.gz 100037 SHA256 bb394f738570b0b0c18257856b61c730375d91996c8c726f9dcd367fd618b3d8 SHA512 9e89eff270d58ac0d69abf5c589a129b468ad7adbe49144eae9e3ee1a73ada3278efbf395aea02b612fd3b3b3db2996d68587f5465b1cec29de79b112cb20b53 WHIRLPOOL 7bb747e21a0ab6030e9fa1de827bfecddc34e596aadea5f9de2f05b13d6aff221982ed3a7bdd13256c6686e644b611bc80d395a401eaa0c0fda95f856b543339
+EBUILD ripe-atlas-sagan-1.1.10.ebuild 832 SHA256 f6189803e71f9d9120bc2ed4d6cf9a27977043f37e2cef9d8059b9ab43551fa1 SHA512 38f1d4499182234929fddb6c3c12478d8e39a7c27e9330b28210fbec78a2fdcaf1dc62023dd96124dd1b61c21f433bd69b6fc9ccfbce2e97d4447448980d2107 WHIRLPOOL 62bc2e00ca0db89e4f6f9691945f5c048e3ff4b75a6beb8ba25506cd9b750533f184142c04a868655235b27e6d20fafd5a85d5259ad292fe3f372b45f15029c0
+EBUILD ripe-atlas-sagan-1.1.11.ebuild 863 SHA256 c4636df31389b287400f5bc57ba40446e7cf9edd6f516990690fd71008a461a2 SHA512 0d8b738097d9c941c16c6ad9689cad2ec7a47a3cb73dcc235916fafe2b51deeacd3a5679c3c1b95f8282b999707130bc7592df3a44188f9025f45ed2264af059 WHIRLPOOL 5b7e2e427afdb89702bdd08d788f54f33575ec53849d09a29519f70ad4be1db3bf679a759e00d784c62f55d538d794503079a6c95ab5528387a50514ebaea635
+EBUILD ripe-atlas-sagan-1.1.8.ebuild 864 SHA256 c9b461ba37401474242ff6bdfccbc6f98474ae6962e07ab4563fa5d05b51f257 SHA512 3fd7439f7d6490f40403953c452a5161b84aa8a59376a9ac79ddbbebd4ef479617a1a66b887232a9a147af077053c4fc83f16c631f93af3d58bb6cb658370be0 WHIRLPOOL 05afcb1e9051d240bd8cde861d848ad805e245da874a5538e2e75b85913b0809f45ddcee431481ed8fa15663f109a709cc93c3dabc60732d30ce33dc74bc0624
+MISC ChangeLog 1831 SHA256 68753db2c3d3ae31cc40c76e66bf3934ab116b81964859d6f0c5963375973779 SHA512 02b7fbe7feedcfbb8b82d837471ccff1157e7bac073ee2863414899c365195478bc16a0133bc6b20173a131ed62e024dacb4293b87ab725417d3f93042d13b9d WHIRLPOOL 878e0dd42f5dc4c518df73ac82aa6c5709b2bfa50f347440e4e7745fb31964322f8e87f55b25fa176861f9a7fe6650431ca203313e95084e3bb3841d620eeb0b
+MISC metadata.xml 523 SHA256 d0126184e82d0f4afdee90f97e8ed6258c3a4b0ba4d403977fd78bb872d506e7 SHA512 7a6d366f6b99f4eea39eff55406080865eae1ad4f504653dfba7d365a7ed7aad152447553295ba614a8419e135425da25ca97e460bd825a67b6533f1c6c8dd2e WHIRLPOOL c19d7c828698b22b8b95de6ba188b586a2c581d1d24b5836f7aceab1955c480ce0a9bd4363243caad97a544e0f274e2bcaabdba35ade3667bfe09e683986c2fa
diff --git a/net-libs/ripe-atlas-sagan/metadata.xml b/net-libs/ripe-atlas-sagan/metadata.xml
new file mode 100644
index 000000000000..b5451fd0a2cd
--- /dev/null
+++ b/net-libs/ripe-atlas-sagan/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gentoo@danielquinn.org</email>
+ <name>Daniel Quinn</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">ripe.atlas.sagan</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.10.ebuild b/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.10.ebuild
new file mode 100644
index 000000000000..55c64671ce04
--- /dev/null
+++ b/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.10.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python{3_4,3_5} )
+
+inherit distutils-r1
+
+MY_PN=${PN//-/.}
+DESCRIPTION="A parsing library for RIPE Atlas result strings"
+HOMEPAGE="https://atlas.ripe.net/"
+SRC_URI="mirror://pypi/${PN:0:1}/ripe.atlas.sagan/ripe.atlas.sagan-${PVR}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+S="${WORKDIR}/${MY_PN}-${PVR}"
+
+RDEPEND="
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/pyopenssl[${PYTHON_USEDEP}]
+ dev-python/ujson[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ "${RDEPEND}"
+ dev-python/nose[${PYTHON_USEDEP}] )"
+
+python_test() {
+ nosetests --verbose || die "Tests failed with ${EPYTHON}"
+}
diff --git a/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.11.ebuild b/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.11.ebuild
new file mode 100644
index 000000000000..e5b1ab37184a
--- /dev/null
+++ b/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.11.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python{3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+MY_PN=${PN//-/.}
+DESCRIPTION="A parsing library for RIPE Atlas result strings"
+HOMEPAGE="https://atlas.ripe.net/"
+SRC_URI="mirror://pypi/${PN:0:1}/ripe.atlas.sagan/ripe.atlas.sagan-${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+DOCS=( CHANGES.rst README.rst )
+
+S="${WORKDIR}/${MY_PN}-${PVR}"
+
+RDEPEND="
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/pyopenssl[${PYTHON_USEDEP}]
+ dev-python/ujson[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}] )"
+
+python_test() {
+ nosetests --verbose || die "Tests failed with ${EPYTHON}"
+}
diff --git a/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.8.ebuild b/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.8.ebuild
new file mode 100644
index 000000000000..1c6fe5182120
--- /dev/null
+++ b/net-libs/ripe-atlas-sagan/ripe-atlas-sagan-1.1.8.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python{3_4,3_5} )
+
+inherit distutils-r1
+
+MY_PN=${PN//-/.}
+DESCRIPTION="A parsing library for RIPE Atlas result strings"
+HOMEPAGE="https://atlas.ripe.net/"
+SRC_URI="mirror://pypi/${PN:0:1}/ripe.atlas.sagan/ripe.atlas.sagan-${PVR}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+S="${WORKDIR}/${MY_PN}-${PVR}"
+
+RDEPEND="
+ dev-python/ipy[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/pyopenssl[${PYTHON_USEDEP}]
+ dev-python/ujson[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ "${RDEPEND}"
+ dev-python/nose[${PYTHON_USEDEP}] )"
+
+python_test() {
+ nosetests --verbose || die "Tests failed with ${EPYTHON}"
+}
diff --git a/net-libs/roadrunner/Manifest b/net-libs/roadrunner/Manifest
new file mode 100644
index 000000000000..5095f1ae2b59
--- /dev/null
+++ b/net-libs/roadrunner/Manifest
@@ -0,0 +1,5 @@
+DIST roadrunner-0.9.1.tar.gz 338564 SHA256 fd6d051c071f468d622d81e4baf7135ba36d97ff0bddb9142fed655d9de8fc5e SHA512 ca1f60ba5a1d844ea088699cfc0b35ac2cae202bfbf7b8846f2b59da3dca0aa9051cf4c7bd7a398ebbf8f3cdbc096faff4a5fc19feb6544576c4141800e90b4b WHIRLPOOL 50cf30c11f4f79952ca887b221b60f6ab9343a8d01b6dcca8e7a77f299b4ae3df23b5a3b7f8f6e410c810fbc36dd7bfbd69d12d11443e7b17fdeeeba9f2f2137
+EBUILD roadrunner-0.9.1.ebuild 831 SHA256 1adbdd5943b7bacd9d454b7135cf2aad1e7ce1ad7c5268ba5356eab9d40becb3 SHA512 0f0a356e6c17ad1c77d9000005237eab1f4f1e6e382e613aff871e3886cd2829424e615f6fa6ae57d8a88c6da8828b8e024a50d1198b0358323c190bf7e945eb WHIRLPOOL 8a7901a570bffefc26a3edb99853d89bd284768238cbc2c574ebd8015d1e1acab9a0fb102c0b9ab9638e8f79d73e5a08f8fba23b50d2ace359fb860aa181f6c4
+MISC ChangeLog 2531 SHA256 aac2d50e8edba8ed8871e3508c932b77b7bbb7fbaa0ede5fa7511534ee3d82ba SHA512 40a0496911613d16c4a085af2c71ce8f098a2bf18db4b49d2d2f0eb0b10f884403c6a66d8c8fdfb0b51a89a1b8347634e74a974941c2a6d11b33fa437e5d05bb WHIRLPOOL 73ace7861f7a6bf598e81c84fbd30cb58693a8345dc221f6e2cfc741b33a4068a865acbd990ec283d74560781344ebc7a75edc5fc01e60e18ba8621f41843d37
+MISC ChangeLog-2015 1512 SHA256 176783a14bbee553a89a9edfe1e2a9f31801e8afa2f7a324780c3fe7c1c59894 SHA512 6153e2932e4bf6556e7d5be8f86abfefb9d6088378e01701d4d93f2e6ee19aa3dc6f74cff7e1f0f30e146ba521c5091ddfceea319ddd5eac564d25273f174102 WHIRLPOOL f65adb4d111633ff2ab093d3190244da0309cfa0bc12029848aeed3c3b5b693b7dbd9465018ab0987fd1c5908a74ade3994b33f4b449bbbd9752f58c231fb05f
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/roadrunner/metadata.xml b/net-libs/roadrunner/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/roadrunner/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/roadrunner/roadrunner-0.9.1.ebuild b/net-libs/roadrunner/roadrunner-0.9.1.ebuild
new file mode 100644
index 000000000000..a15eb8db1f84
--- /dev/null
+++ b/net-libs/roadrunner/roadrunner-0.9.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# EBuild details
+DESCRIPTION="RoadRunner library provides API for using Blocks Extensible Exchange Protocol"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" #was http://rr.codefactory.se
+# upstream Died
+SRC_URI="mirror://gentoo/roadrunner-${PV}.tar.gz"
+
+LICENSE="Sleepycat"
+SLOT="0"
+KEYWORDS="x86 ppc"
+
+# doc = include documentation
+IUSE="doc"
+
+RDEPEND=">=dev-libs/glib-2.2.1
+ >=dev-libs/libxml2-2.5.11"
+
+DEPEND="
+ >=dev-libs/glib-2.2.1
+ >=dev-libs/libxml2-2.5.11
+ virtual/pkgconfig
+ doc? ( dev-util/gtk-doc )"
+
+src_compile() {
+ econf \
+ $(use_enable doc gtk-doc) \
+ || die "configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ # Seems that the Makefiles are OK
+ emake DESTDIR="${D}" install || die
+}
diff --git a/net-libs/rpc2/Manifest b/net-libs/rpc2/Manifest
new file mode 100644
index 000000000000..c66c9e0f450a
--- /dev/null
+++ b/net-libs/rpc2/Manifest
@@ -0,0 +1,9 @@
+DIST rpc2-2.0.tar.gz 623373 SHA256 d0aa0620173faeff36a2a4628eb9602125d64556d5126eb28a2d36d06bb0025b SHA512 36489147b29cc69b41a2c7df4044e9a1bcf3e7fa95b0443a9cb429b05493d083eb317feac06f9b026c021c1a654a537818bb23ab155254dd86ddab0f627d7b8d WHIRLPOOL c4233c8ed63d4127f2a4ca5fc6b3456b12b771503b0cb73e9e7052471d3c9f23b46adfb516d98ecf2638ea164f69e5e8cc749af67ae0b26f0d76d7ac927e11d6
+DIST rpc2-2.10.tar.gz 595825 SHA256 b381f0a51aab470f4698f0143cf04b22c64e9176d6e4f11c0a50d28b3169fa07 SHA512 45d67a1eab7938c120a933aaa1c938d569fabe5d4e90f190c327d48a75de17a324f0717eeed05ae2874db59dd45d4dd604d3df61209807aed6ae357317e4b0bb WHIRLPOOL a567fefb17800367079fc3e54d2f177d19417a168926ae75479b9ecb77b76c0c5643d659a0e649d97fc59028953baec7f62a79cd2dc0de6ecaccca0ef66fa56c
+DIST rpc2-2.14.tar.gz 628236 SHA256 1a5c8aa838c4e52aa40ad9b269e79695da28154c4ee2c143578b1b8620cccd1b SHA512 7d80a9d2c69469526fa31e0c0a3f0eee20e2662d1ee03eaa3a642d48f152f611f5e219a4d730a94d49b65b77e67eeefb179bc160c0cf7a9d0e7e31f8d7f882c5 WHIRLPOOL 3e41b4585ebf6772780529f790cbb3b72850acc67c8716f627443cfeaaa65cf0fc204027b7646c9b1186db480a8551a49259093d3d65f124933fd194ac6c6b8a
+EBUILD rpc2-2.0.ebuild 589 SHA256 9564b8e30ebd0944fa50942eef55a614b81d875944d92e21e4ae849bffa4cec2 SHA512 b07d8adc56861bf6cb26e06161d53c1a622ab5fbd49388e97a1a8aa44ceaf6df3cb69e54baac55fcd124151fbcac9a347b6649e08b809abb2fb81a5cca05a980 WHIRLPOOL ad9af73f287b3f0a4b5483fe5df6054e1f5b70e669965abff71bd36fb30468985af0b02e3edf3111f7373241aa4ebe4960517f64e4e70f8ded9dfa8398c4f13b
+EBUILD rpc2-2.10.ebuild 613 SHA256 fe74082b12cc9a658d5f25c276f7bfff1c535f55e044f9d0b32a58061f13c046 SHA512 6f69ec0b248b28af25280f5db4fe909159156e3c059b332a78286eb08b79f8eaba86dad9260f655bd02ff01f7224a78e3f6415613c9be56f250d54cd10309113 WHIRLPOOL 7532352aef605eb3ec18c83e3904e0018655e1d06e0872bf32da40a4a5140242064f1ddb942dce810562d417a4b5e3f7225c94d6932759cd1de488705d299b43
+EBUILD rpc2-2.14.ebuild 611 SHA256 60d1349bde9e163dcf2b8dce0b8d9574b6a858fae16da1d5fc57c166569b662b SHA512 827d0826ab26aed9f828f2f521d5f27003bf02361744c00a9d34339daca7ba0471573f5371506867613de23ae394a9aa76fbeb3fea45ce6f3743d4dca16f38d9 WHIRLPOOL 3f3a0c8d6364cb12d8c59c9037af9698d9627611caa0647533c6e099acbf5ff81e74f84c1213fd15c9a58ea856e87f653d881ae7d96f87a61c357d6cd1c4f344
+MISC ChangeLog 2640 SHA256 f2ad8b15a55eb80cbfb53320997d64dc19f4086d5623c8b490557539d2ddcc98 SHA512 1a7be0ab4ced804856a2abafbe6f419583635d5718db9b8a8f7de5173525b6353f95d073ef6a215c5b0b9fb9f9439ce21fa1985b9325925b2f44b96d1bdada1a WHIRLPOOL 9ce2347e901edb6fd60c5fcc9d6a6fb07e9857220a28312255bf4beb7e440b9e0afef84949581a43a8bbee090cbff12875db170e4dd79255a320eb2631fca59a
+MISC ChangeLog-2015 4439 SHA256 14c6bb259f3ae87cbecfb9bd6f1db0afa9b6b4bfec170ff36d6207ddca048da7 SHA512 ae03584bc43007360ddc0dc34e0689ba49225982d431b1aec66c2cd61508ab849413e0baa521366e0778db72bdc2de9e804697551344ca8018e4cf22804f36c4 WHIRLPOOL 83f02c71443d571f3dea59fbaadd69a5e190e8926714d24e3674458772b038b4f0ad76985c9e175b308697d472b2ba5afe848a118078c6780d54dbf568f564d7
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/net-libs/rpc2/metadata.xml b/net-libs/rpc2/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/net-libs/rpc2/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 type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/rpc2/rpc2-2.0.ebuild b/net-libs/rpc2/rpc2-2.0.ebuild
new file mode 100644
index 000000000000..8a0054c0f6c0
--- /dev/null
+++ b/net-libs/rpc2/rpc2-2.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Remote procedure call package for IP/UDP (used by Coda)"
+HOMEPAGE="http://www.coda.cs.cmu.edu/"
+SRC_URI="http://www.coda.cs.cmu.edu/pub/rpc2/src/${P}.tar.gz"
+IUSE=""
+SLOT="1"
+LICENSE="LGPL-2.1"
+KEYWORDS="~alpha ~amd64 ~hppa ia64 ~mips ~ppc ~sparc x86"
+
+RDEPEND=">=sys-libs/lwp-2.1"
+
+DEPEND="${RDEPEND}
+ sys-apps/gawk
+ sys-apps/sed
+ sys-apps/grep
+ sys-devel/libtool"
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc NEWS README.ipv6
+}
diff --git a/net-libs/rpc2/rpc2-2.10.ebuild b/net-libs/rpc2/rpc2-2.10.ebuild
new file mode 100644
index 000000000000..3621e22d98f2
--- /dev/null
+++ b/net-libs/rpc2/rpc2-2.10.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="Remote procedure call package for IP/UDP (used by Coda)"
+HOMEPAGE="http://www.coda.cs.cmu.edu/"
+SRC_URI="http://www.coda.cs.cmu.edu/pub/rpc2/src/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE="static-libs"
+
+RDEPEND=">=sys-libs/lwp-2.5"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ dodoc README.ipv6
+ use static-libs || find "${ED}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/rpc2/rpc2-2.14.ebuild b/net-libs/rpc2/rpc2-2.14.ebuild
new file mode 100644
index 000000000000..baa5a0fa5694
--- /dev/null
+++ b/net-libs/rpc2/rpc2-2.14.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Remote procedure call package for IP/UDP (used by Coda)"
+HOMEPAGE="http://www.coda.cs.cmu.edu/"
+SRC_URI="http://www.coda.cs.cmu.edu/pub/rpc2/src/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE="static-libs"
+
+RDEPEND=">=sys-libs/lwp-2.5"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ dodoc README.ipv6
+ use static-libs || find "${ED}"/usr -name '*.la' -delete
+}
diff --git a/net-libs/rpcsvc-proto/Manifest b/net-libs/rpcsvc-proto/Manifest
new file mode 100644
index 000000000000..8fb6858a4140
--- /dev/null
+++ b/net-libs/rpcsvc-proto/Manifest
@@ -0,0 +1,3 @@
+DIST rpcsvc-proto-1.2.tar.gz 59883 SHA256 9b6a0d3813f29a1f92f92e6445e3286195567813bf34423ddbf0044ab0e2457b SHA512 59e6ac2c3e551daef584878e8ae8fc2da7cb80a04c20f96de561abc972fcfac1fbb57a5ee0dbe7bf5288a1527c9b87fc3f73a259b30393982a9a642cf4b4deb4 WHIRLPOOL 802983f71d2bafb600367f395c8fdcb9bfdf5f5af4a52444420d4b5472f2ae0a506d1b40c7a501e83e97c75cbb2298be34382a6c759b895abf105ec49dd66f0b
+EBUILD rpcsvc-proto-1.2-r1.ebuild 649 SHA256 ffbebb9d04f4ccca3d6c1c7290e2254f7529a582ef895d45f4a49e96f39f8fd4 SHA512 9901e68bd3672ce6689f055d4d79cc73cbf4352c7bb4e1d901450a6ba47f63c0dfe16681a003069a631d31f56b91ed7cc156d3f54a0b1e39b6bb592d180da96d WHIRLPOOL a836d62b2e58dd53368628b81860da302116be1e0a7228f4d0bf0b76753026aea9dea415501299e43d3838b9ba3dbb3bc17ff9c414700f32006283ea0ab0bac3
+MISC metadata.xml 379 SHA256 ebf32af5bc074fc17a37c93745bc34847424be60d6d5d23a69d88baabc554bcf SHA512 00a77262e76176fbc54ff2d1d8ba070868f185f5f940abd25ad1af80fd52f1560c9e0290c42283a98519a653a334ed6dfd4e0f8540d10946253b3afc205bb753 WHIRLPOOL eab5963365c94d28e5e60cc0b4eaee3d576bf8cc3372eb739f0fcbdbf4f3c37fc1af7c90b39866e476fdcd2d529b7e78f2bbcc1d3b938c047702d09db3141fa6
diff --git a/net-libs/rpcsvc-proto/metadata.xml b/net-libs/rpcsvc-proto/metadata.xml
new file mode 100644
index 000000000000..bcf493eae9ae
--- /dev/null
+++ b/net-libs/rpcsvc-proto/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/rpcsvc-proto/rpcsvc-proto-1.2-r1.ebuild b/net-libs/rpcsvc-proto/rpcsvc-proto-1.2-r1.ebuild
new file mode 100644
index 000000000000..fa06a5e856c3
--- /dev/null
+++ b/net-libs/rpcsvc-proto/rpcsvc-proto-1.2-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="rpcsvc protocol definitions from glibc"
+HOMEPAGE="https://github.com/thkukuk/rpcsvc-proto"
+SRC_URI="https://github.com/thkukuk/${PN}/archive/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="LGPL-2.1+ BSD"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="!<sys-libs/glibc-2.26"
+
+S=${WORKDIR}/${PN}-${P}
+
+src_prepare(){
+ default
+ eautoreconf
+}
+
+src_install(){
+ default
+
+ # provided by sys-fs/quota[rpc]
+ rm "${ED}"/usr/include/rpcsvc/rquota.{x,h} || die
+}
diff --git a/net-libs/serf/Manifest b/net-libs/serf/Manifest
new file mode 100644
index 000000000000..65bc82fa596b
--- /dev/null
+++ b/net-libs/serf/Manifest
@@ -0,0 +1,13 @@
+AUX serf-1.3.2-disable_linking_against_unneeded_libraries.patch 554 SHA256 057212a8d404c5f6947b816c72e14a340cf8bb62d1023b9b2459220e9aa5d9f6 SHA512 29a2a18d062ecede2c544a6de510f17556deb9d9036b4c9248035e22d561e90fac902fdd38c5dbda649bb44f2eeab3407ee3fc59697c825a8fd76a787043c4ee WHIRLPOOL 11964600ababa183ce2a00bc031d833a8ffd73685f48a281078e4628f75c52aa160cd3bbaeba3f39a8c2ca4b93fab56fd88eec00c6bce785da1601587dd413f3
+AUX serf-1.3.8-openssl.patch 960 SHA256 821e73a2d9490f4dc0645eaa2654df4c79cdde19274b85f4056058ce95a6cab7 SHA512 902f0b28a0166bb2c30127600eeacd8117ab9c8a21787aec7f6ee77b94554a613ec1bdcaef3bbbd730254c9c26a7c40b47906b296ca869af909ec18d9f2ad59b WHIRLPOOL 065b2e58254c6dc195b5075bc7c2d37e38131fd44d08756f2489db0606421e1dbf571ceae04e61eced55657691e0271b38f92bc3b9b3f635a88faf85882bedd7
+AUX serf-1.3.8-scons_variables.patch 3553 SHA256 e4c19508eef345eddebdaf932c40279d835adcce9eb4988dd9fc7b1318cf554d SHA512 e492c5a9289700330e964a9b42da9002f1b992ed197a9aea54f188188264e8dc2047a3005c9724769ff5e845d5b9db31d622981e016284523fc65dec6a3c04bf WHIRLPOOL 0fa539b1c3dba179753348422add7b5a3b5d0ce6e914ef2bb7cc0079ccde7bf7183c80212ea5dfb33706669011c08b2700fc8b97adad0923e93e1d6f6bad00be
+AUX serf-1.3.8-static-lib.patch 1922 SHA256 b3b040d3fd41ad2fd3e32635867f4f7a197e79e3e0cb7e82c5bf55ee8b36c76b SHA512 c5d7cbc7ed7632e3ead1a1eec36106a4e50f89c42b7099d8e6bc2a3021b4b3058c16cb1aef1fedbb26e6bd5b4d0b12b34567d40c38c0f1c5cb6528e924db9e84 WHIRLPOOL 13b42e6809c16b1ae34f51e514fe764f732f9c2fc962610150f6cc24fdf4e69d281208b2ab0bff64ce2dd129a1a522022d3ada4289d6f6f1882f313bf517a1e7
+AUX serf-1.3.8-tests.patch 3159 SHA256 273f91ccf80f607bd8bd5e0fbe2fc4ad617510a032d65d64ad1a2aabeba127d5 SHA512 d2b89743e38492a0626b509864c34a3747d73b5aeb7a22df84ce739588663582eea3b6c3d599b8e42896b1720c529e19c5497ff4e830e67981f0664b5e6c533d WHIRLPOOL 64e61a39343a9ab5770991e047cca282fd20f0e346eb295d1feae6eaa433cb8def390adc2ffb9b2cc9fa38eeb313a164314abc219ed94afe1b6a7ba46b23b64f
+DIST serf-1.3.8.tar.bz2 143337 SHA256 e0500be065dbbce490449837bb2ab624e46d64fc0b090474d9acaa87c82b2590 SHA512 78787a0d1e3e72dd9afc2e0de65e9af3b4303fefdcb865bd5e087fae570a7fe4d1395ce021756db4685c6e63e31c495563afe57baf677bf9846657f5d63d4205 WHIRLPOOL 951b1ff92e739998f24bd44e2541c10352c83594cbfdb82ba915ced32509df7d6f2bbec8bd8fbf4c75116dab114970d1a8ec2fc0157912303bfbd065ea6739ac
+DIST serf-1.3.9.tar.bz2 145132 SHA256 549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc SHA512 9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d WHIRLPOOL 6b8dc6a229810f55b90d3713a55b9888b5154115c51f8d37773815da8e0167a5999d3bd9fd7f4132909465b13e677164ce336555fceba1b8a8c504c8fa7ae8ee
+EBUILD serf-1.3.8-r1.ebuild 2089 SHA256 5297ef9196bb90615d722067a921c8014f97b73ae446b6cabd7aad5f6756aa8b SHA512 c87bece36357431c0376855d8dafd974e64c6d0106b3f4966ca3d46aa33602dae497126d7cdacd867fc416d3bc486716ba8c3868380a85ff854be43b683bb23e WHIRLPOOL 2c8fab2c0a17331beb48cf6276bec34b3c9057c8cc4dd68705893af4275ab84226e5ea2e0e06854ea1c312574fbe9176572cbaa4aad3e4bec32a08eb23d2f1ad
+EBUILD serf-1.3.8.ebuild 1466 SHA256 98105f6fea19d4757b4a31a0d243a40b6b95517a350c14234f2439131185d180 SHA512 1790d5466dd4d1b478e752579c3907325b147b8a90d4a73a76f8572e0e717769e3a8b93503aa2149000915de0edb9288fae361d557fa18408458bba3ab185050 WHIRLPOOL 47bc10eb5e8f179d1969574c8385cdeb15623354bb8694c2f6228292d1c7098869d0a44e34e32ad710a274f8366a220b881243da3f056351fb929346a84aa919
+EBUILD serf-1.3.9.ebuild 2092 SHA256 ffc86e68b5c2908bdeec4459e9aa8d06e0a4568ad49d3b7a4a2674fed1bd85bf SHA512 b0fd733f83306234c0e93cb0fe9eefce2abc7cbbf71ef084a268fa231864580cb6f5614f261f9c0cd2d586c26bc7a5ff3343d8a37a30acd26da96cc29ec22fc9 WHIRLPOOL 4bff77a62306b780a581b0a4a89763356705ec8bb638a7c085559043081b02fc76a28376ac4fdf06578ff062cbba44a94762733e21e7c5e5014ac702c6ae6999
+MISC ChangeLog 3696 SHA256 629466a2bc8274c931de7259494196d174c80ef0d2159ca2c866056866645db0 SHA512 b1f60834bc6dbb01b24b3ce1880eb27265ce3fe891f31badaf8e563a22ee4297c2b9629c600be6168c9ce56ac2438115a244fa92becbae74ff5b00bb961ac0b7 WHIRLPOOL 4fb276f1dfb02fa38118ceeabb1a52565100fe0a0bd4663c78ead79db1b49230270a130b3651c54bca2cafdf32924e2dd69b631192ec6a066a4a836a5c2aeed2
+MISC ChangeLog-2015 17897 SHA256 ba82cdad5ad4b2d3185bb3f9b742f6c4e6f17cef4ac5dd77f0767f6865eb7346 SHA512 60d9777e05a961fa1600647c82bc0ee58e4b85fb2eeeb23196af1fac4484c0085fafd76acd78bcb6c109878d233f8a14d151b2d16566f7943010d7b2ef2bd6eb WHIRLPOOL 0059e21507d152b5b3a1c24f76780e72c9422060d05a92ede6acf3d94fe0f58d94d8fdf5fa0943a9778715249f3886b01d135c60373bca26e549270373773eee
+MISC metadata.xml 339 SHA256 daf21088e28ed633fba8900a168fe443c3d838f72ca644d1a8f30f3a24ad66bc SHA512 b98b7e682407dd662a866336f76031793f13b0d76a7dae86b542afb515fdda1224b8141c71ff1f502294c2bcd88f3f80d18d654dcabe77088bef049bf462f18c WHIRLPOOL fdace229c58536b56e4dbe0fcedf783ede06fdb19a700964adff95e298367d8b82d2fadf2160db5b1cd9aed572f51c282ead8e034d8dde532ca5910330269b5f
diff --git a/net-libs/serf/files/serf-1.3.2-disable_linking_against_unneeded_libraries.patch b/net-libs/serf/files/serf-1.3.2-disable_linking_against_unneeded_libraries.patch
new file mode 100644
index 000000000000..f86646a28d89
--- /dev/null
+++ b/net-libs/serf/files/serf-1.3.2-disable_linking_against_unneeded_libraries.patch
@@ -0,0 +1,13 @@
+--- SConstruct
++++ SConstruct
+@@ -345,8 +345,8 @@
+ ### there is probably a better way to run/capture output.
+ ### env.ParseConfig() may be handy for getting this stuff into the build
+ if CALLOUT_OKAY:
+- apr_libs = os.popen(env.subst('$APR --link-libtool --libs')).read().strip()
+- apu_libs = os.popen(env.subst('$APU --link-libtool --libs')).read().strip()
++ apr_libs = os.popen(env.subst('$APR --link-ld')).read().strip()
++ apu_libs = os.popen(env.subst('$APU --link-ld')).read().strip()
+ else:
+ apr_libs = ''
+ apu_libs = ''
diff --git a/net-libs/serf/files/serf-1.3.8-openssl.patch b/net-libs/serf/files/serf-1.3.8-openssl.patch
new file mode 100644
index 000000000000..4cc3719303bb
--- /dev/null
+++ b/net-libs/serf/files/serf-1.3.8-openssl.patch
@@ -0,0 +1,28 @@
+the build doesn't actually use the openssl var for anything useful.
+it blindly adds it to the -I/-L paths which causes problems when you
+cross-compile and when you link (it also adds it to -rpath). punt
+the setting and forget about it.
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -354,8 +354,6 @@ else:
+ apr_libs = ''
+ apu_libs = ''
+
+- env.Append(CPPPATH=['$OPENSSL/include'])
+- env.Append(LIBPATH=['$OPENSSL/lib'])
+
+
+ # If build with gssapi, get its information and define SERF_HAVE_GSSAPI
+@@ -369,8 +369,9 @@ if sys.platform == 'win32':
+ # On some systems, the -R values that APR describes never make it into actual
+ # RPATH flags. We'll manually map all directories in LIBPATH into new
+ # flags to set RPATH values.
+-for d in env['LIBPATH']:
+- env.Append(RPATH=':'+d)
++if env.get('LIBPATH', None):
++ for d in env['LIBPATH']:
++ env.Append(RPATH=':'+d)
+
+ # Set up the construction of serf-*.pc
+ pkgconfig = env.Textfile('serf-%d.pc' % (MAJOR,),
diff --git a/net-libs/serf/files/serf-1.3.8-scons_variables.patch b/net-libs/serf/files/serf-1.3.8-scons_variables.patch
new file mode 100644
index 000000000000..b51e846d8932
--- /dev/null
+++ b/net-libs/serf/files/serf-1.3.8-scons_variables.patch
@@ -0,0 +1,110 @@
+https://code.google.com/p/serf/issues/detail?id=151
+https://code.google.com/p/serf/source/detail?r=2413
+
+--- SConstruct
++++ SConstruct
+@@ -223,12 +223,12 @@
+
+ if sys.platform == 'darwin':
+ # linkflags.append('-Wl,-install_name,@executable_path/%s.dylib' % (LIBNAME,))
+- env.Append(LINKFLAGS='-Wl,-install_name,%s/%s.dylib' % (thisdir, LIBNAME,))
++ env.Append(LINKFLAGS=['-Wl,-install_name,%s/%s.dylib' % (thisdir, LIBNAME,)])
+
+ if sys.platform != 'win32':
+ ### gcc only. figure out appropriate test / better way to check these
+ ### flags, and check for gcc.
+- env.Append(CFLAGS='-std=c89')
++ env.Append(CFLAGS=['-std=c89'])
+
+ ### These warnings are not available on Solaris
+ if sys.platform != 'sunos5':
+@@ -237,17 +237,17 @@
+ '-Wall'])
+
+ if debug:
+- env.Append(CCFLAGS='-g')
++ env.Append(CCFLAGS=['-g'])
+ env.Append(CPPDEFINES=['DEBUG', '_DEBUG'])
+ else:
+- env.Append(CCFLAGS='-O2')
+- env.Append(CPPDEFINES='NDEBUG')
++ env.Append(CCFLAGS=['-O2'])
++ env.Append(CPPDEFINES=['NDEBUG'])
+
+ ### works for Mac OS. probably needs to change
+ env.Append(LIBS=['ssl', 'crypto', 'z', ])
+
+ if sys.platform == 'sunos5':
+- env.Append(LIBS='m')
++ env.Append(LIBS=['m'])
+ else:
+ # Warning level 4, no unused argument warnings
+ env.Append(CCFLAGS=['/W4', '/wd4100'])
+@@ -260,8 +260,8 @@
+ else:
+ # Optimize for speed, use DLL runtime
+ env.Append(CCFLAGS=['/O2', '/MD'])
+- env.Append(CPPDEFINES='NDEBUG')
+- env.Append(LINKFLAGS='/RELEASE')
++ env.Append(CPPDEFINES=['NDEBUG'])
++ env.Append(LINKFLAGS=['/RELEASE'])
+
+ # PLAN THE BUILD
+ SHARED_SOURCES = []
+@@ -307,25 +307,25 @@
+ CPPPATH=['$APR/include', '$APU/include'])
+
+ # zlib
+- env.Append(LIBS='zlib.lib')
++ env.Append(LIBS=['zlib.lib'])
+ if not env.get('SOURCE_LAYOUT', None):
+- env.Append(CPPPATH='$ZLIB/include',
+- LIBPATH='$ZLIB/lib')
++ env.Append(CPPPATH=['$ZLIB/include'],
++ LIBPATH=['$ZLIB/lib'])
+ else:
+- env.Append(CPPPATH='$ZLIB',
+- LIBPATH='$ZLIB')
++ env.Append(CPPPATH=['$ZLIB'],
++ LIBPATH=['$ZLIB'])
+
+ # openssl
+ env.Append(LIBS=['libeay32.lib', 'ssleay32.lib'])
+ if not env.get('SOURCE_LAYOUT', None):
+- env.Append(CPPPATH='$OPENSSL/include/openssl',
+- LIBPATH='$OPENSSL/lib')
++ env.Append(CPPPATH=['$OPENSSL/include/openssl'],
++ LIBPATH=['$OPENSSL/lib'])
+ elif 0: # opensslstatic:
+- env.Append(CPPPATH='$OPENSSL/inc32',
+- LIBPATH='$OPENSSL/out32')
++ env.Append(CPPPATH=['$OPENSSL/inc32'],
++ LIBPATH=['$OPENSSL/out32'])
+ else:
+- env.Append(CPPPATH='$OPENSSL/inc32',
+- LIBPATH='$OPENSSL/out32dll')
++ env.Append(CPPPATH=['$OPENSSL/inc32'],
++ LIBPATH=['$OPENSSL/out32dll'])
+ else:
+ if os.path.isdir(apr):
+ apr = os.path.join(apr, 'bin', 'apr-1-config')
+@@ -351,8 +351,8 @@
+ apr_libs = ''
+ apu_libs = ''
+
+- env.Append(CPPPATH='$OPENSSL/include')
+- env.Append(LIBPATH='$OPENSSL/lib')
++ env.Append(CPPPATH=['$OPENSSL/include'])
++ env.Append(LIBPATH=['$OPENSSL/lib'])
+
+
+ # If build with gssapi, get its information and define SERF_HAVE_GSSAPI
+@@ -362,7 +362,7 @@
+ env['GSSAPI_LIBS'] = cmd.strip()
+ return env.MergeFlags(cmd, unique)
+ env.ParseConfig('$GSSAPI --libs gssapi', parse_libs)
+- env.Append(CPPDEFINES='SERF_HAVE_GSSAPI')
++ env.Append(CPPDEFINES=['SERF_HAVE_GSSAPI'])
+ if sys.platform == 'win32':
+ env.Append(CPPDEFINES=['SERF_HAVE_SSPI'])
+
diff --git a/net-libs/serf/files/serf-1.3.8-static-lib.patch b/net-libs/serf/files/serf-1.3.8-static-lib.patch
new file mode 100644
index 000000000000..1538328ece66
--- /dev/null
+++ b/net-libs/serf/files/serf-1.3.8-static-lib.patch
@@ -0,0 +1,49 @@
+respect the active archiver tool instead of using `ar` all the time.
+same for `ranlib`.
+
+also add support for BUILD_STATIC bool for controlling the libserf.a.
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -103,6 +103,9 @@
+ BoolVariable('APR_STATIC',
+ "Enable using a static compiled APR",
+ False),
++ RawListVariable('AR', "Command name or path of the archiver", None),
++ RawListVariable('RANLIB', "Command name or path of the archiver indexer", None),
++ BoolVariable('BUILD_STATIC', 'Build libserf static library', True),
+ RawListVariable('CC', "Command name or path of the C compiler", None),
+ RawListVariable('CFLAGS', "Extra flags for the C compiler (space-separated)",
+ None),
+@@ -193,6 +196,7 @@ if gssapi and os.path.isdir(gssapi):
+
+ debug = env.get('DEBUG', None)
+ aprstatic = env.get('APR_STATIC', None)
++build_static = env.get('BUILD_STATIC', True)
+
+ Help(opts.GenerateHelpText(env))
+ opts.Save(SAVED_CONFIG, env)
+@@ -384,7 +388,9 @@ pkgconfig = env.Textfile('serf-%d.pc' % (MAJOR,),
+ env.get('GSSAPI_LIBS', '')),
+ })
+
+-env.Default(lib_static, lib_shared, pkgconfig)
++env.Default(lib_shared, pkgconfig)
++if build_static:
++ env.Default(lib_static)
+
+ if CALLOUT_OKAY:
+ conf = Configure(env)
+@@ -420,8 +420,10 @@ if sys.platform == 'darwin':
+ % (target_install_shared_path,
+ install_shared_path)))
+
+-env.Alias('install-lib', [install_static, install_shared,
+- ])
++install_libs = [install_shared]
++if build_static:
++ install_libs.append(install_static)
++env.Alias('install-lib', install_libs)
+ env.Alias('install-inc', env.Install(incdir, HEADER_FILES))
+ env.Alias('install-pc', env.Install(os.path.join(libdir, 'pkgconfig'),
+ pkgconfig))
diff --git a/net-libs/serf/files/serf-1.3.8-tests.patch b/net-libs/serf/files/serf-1.3.8-tests.patch
new file mode 100644
index 000000000000..65b9962f2529
--- /dev/null
+++ b/net-libs/serf/files/serf-1.3.8-tests.patch
@@ -0,0 +1,95 @@
+https://code.google.com/p/serf/source/detail?r=2443
+https://code.google.com/p/serf/source/detail?r=2444
+https://code.google.com/p/serf/source/detail?r=2445
+
+--- test/test_buckets.c
++++ test/test_buckets.c
+@@ -1232,9 +1232,9 @@
+
+ /* The largest buffer we should need is 0.1% larger than the
+ uncompressed data, + 12 bytes. This info comes from zlib.h.
++ buf_size = orig_len + (orig_len / 1000) + 12;
+ Note: This isn't sufficient when using Z_NO_FLUSH and extremely compressed
+ data. Use a buffer bigger than what we need. */
+-// buf_size = orig_len + (orig_len / 1000) + 12;
+ buf_size = 100000;
+
+ write_buf = apr_palloc(pool, buf_size);
+@@ -1309,12 +1309,12 @@
+ expected_len);
+ }
+
+-static void deflate_buckets(CuTest *tc, int nr_of_loops)
++static void deflate_buckets(CuTest *tc, int nr_of_loops, apr_pool_t *pool)
+ {
+ const char *msg = "12345678901234567890123456789012345678901234567890";
+
+ test_baton_t *tb = tc->testBaton;
+- serf_bucket_alloc_t *alloc = serf_bucket_allocator_create(tb->pool, NULL,
++ serf_bucket_alloc_t *alloc = serf_bucket_allocator_create(pool, NULL,
+ NULL);
+ z_stream zdestr;
+ int i;
+@@ -1333,8 +1333,8 @@
+ {
+ serf_config_t *config;
+
+- serf_context_t *ctx = serf_context_create(tb->pool);
+- /* status = */ serf__config_store_get_config(ctx, NULL, &config, tb->pool);
++ serf_context_t *ctx = serf_context_create(pool);
++ /* status = */ serf__config_store_get_config(ctx, NULL, &config, pool);
+
+ serf_bucket_set_config(defbkt, config);
+ }
+@@ -1356,11 +1356,11 @@
+ if (i == nr_of_loops - 1) {
+ CuAssertIntEquals(tc, APR_SUCCESS,
+ deflate_compress(&data, &len, &zdestr, msg,
+- strlen(msg), 1, tb->pool));
++ strlen(msg), 1, pool));
+ } else {
+ CuAssertIntEquals(tc, APR_SUCCESS,
+ deflate_compress(&data, &len, &zdestr, msg,
+- strlen(msg), 0, tb->pool));
++ strlen(msg), 0, pool));
+ }
+
+ if (len == 0)
+@@ -1378,10 +1378,15 @@
+ static void test_deflate_buckets(CuTest *tc)
+ {
+ int i;
++ apr_pool_t *iterpool;
++ test_baton_t *tb = tc->testBaton;
+
++ apr_pool_create(&iterpool, tb->pool);
+ for (i = 1; i < 1000; i++) {
+- deflate_buckets(tc, i);
++ apr_pool_clear(iterpool);
++ deflate_buckets(tc, i, iterpool);
+ }
++ apr_pool_destroy(iterpool);
+ }
+
+ static apr_status_t discard_data(serf_bucket_t *bkt,
+--- test/test_util.c
++++ test/test_util.c
+@@ -363,10 +363,18 @@
+ return status;
+ }
+
++static int pool_abort_func(int retcode)
++{
++ fprintf(stderr, "Out of memory\n");
++ abort();
++ return 0;
++}
++
+ void *test_setup(void *dummy)
+ {
+ apr_pool_t *test_pool;
+ apr_pool_create(&test_pool, NULL);
++ apr_pool_abort_set(pool_abort_func, test_pool);
+ return test_pool;
+ }
+
diff --git a/net-libs/serf/metadata.xml b/net-libs/serf/metadata.xml
new file mode 100644
index 000000000000..9e50e18ed484
--- /dev/null
+++ b/net-libs/serf/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/serf/serf-1.3.8-r1.ebuild b/net-libs/serf/serf-1.3.8-r1.ebuild
new file mode 100644
index 000000000000..c93bcfde2fca
--- /dev/null
+++ b/net-libs/serf/serf-1.3.8-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils scons-utils toolchain-funcs flag-o-matic
+
+DESCRIPTION="HTTP client library"
+HOMEPAGE="https://serf.apache.org/"
+SRC_URI="mirror://apache/${PN}/${P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="kerberos static-libs libressl"
+
+RDEPEND="dev-libs/apr:1=
+ dev-libs/apr-util:1=
+ !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= )
+ sys-libs/zlib:0=
+ kerberos? ( virtual/krb5 )"
+DEPEND="${RDEPEND}
+ >=dev-util/scons-2.3.0"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.3.2-disable_linking_against_unneeded_libraries.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-scons_variables.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-tests.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-static-lib.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-openssl.patch"
+
+ # https://code.google.com/p/serf/issues/detail?id=133
+ sed -e "/env.Append(CCFLAGS=\['-O2'\])/d" -i SConstruct
+
+ # need limits.h for PATH_MAX (only when EXTENSIONS is enabled)
+ [[ ${CHOST} == *-solaris* ]] && append-cppflags -D__EXTENSIONS__
+}
+
+src_compile() {
+ myesconsargs=(
+ PREFIX="${EPREFIX}/usr"
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ # These config scripts are sent through a shell with an empty env
+ # which breaks the SYSROOT usage in them. Set the vars inline to
+ # avoid that.
+ APR="SYSROOT='${SYSROOT}' ${SYSROOT}${EPREFIX}/usr/bin/apr-1-config"
+ APU="SYSROOT='${SYSROOT}' ${SYSROOT}${EPREFIX}/usr/bin/apu-1-config"
+ BUILD_STATIC=$(usex static-libs)
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ CC="$(tc-getCC)"
+ CPPFLAGS="${CPPFLAGS}"
+ CFLAGS="${CFLAGS}"
+ LINKFLAGS="${LDFLAGS}"
+ )
+
+ if use kerberos; then
+ myesconsargs+=( GSSAPI="${SYSROOT}${EPREFIX}/usr/bin/krb5-config" )
+ fi
+
+ escons
+}
+
+src_test() {
+ escons check
+}
+
+src_install() {
+ escons install --install-sandbox="${D}"
+}
diff --git a/net-libs/serf/serf-1.3.8.ebuild b/net-libs/serf/serf-1.3.8.ebuild
new file mode 100644
index 000000000000..f82999ef22bf
--- /dev/null
+++ b/net-libs/serf/serf-1.3.8.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils scons-utils toolchain-funcs
+
+DESCRIPTION="HTTP client library"
+HOMEPAGE="https://serf.apache.org/"
+SRC_URI="mirror://apache/${PN}/${P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="kerberos"
+
+RDEPEND="dev-libs/apr:1=
+ dev-libs/apr-util:1=
+ dev-libs/openssl:0=
+ sys-libs/zlib:0=
+ kerberos? ( virtual/krb5 )"
+DEPEND="${RDEPEND}
+ >=dev-util/scons-2.3.0"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.3.2-disable_linking_against_unneeded_libraries.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-scons_variables.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-tests.patch"
+
+ # https://code.google.com/p/serf/issues/detail?id=133
+ sed -e "/env.Append(CCFLAGS=\['-O2'\])/d" -i SConstruct
+}
+
+src_compile() {
+ local myesconsargs=(
+ PREFIX="${EPREFIX}/usr"
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ APR="${EPREFIX}/usr/bin/apr-1-config"
+ APU="${EPREFIX}/usr/bin/apu-1-config"
+ OPENSSL="${EPREFIX}/usr"
+ CC="$(tc-getCC)"
+ CPPFLAGS="${CPPFLAGS}"
+ CFLAGS="${CFLAGS}"
+ LINKFLAGS="${LDFLAGS}"
+ )
+
+ if use kerberos; then
+ myesconsargs+=(GSSAPI="${EPREFIX}/usr/bin/krb5-config")
+ fi
+
+ escons
+}
+
+src_test() {
+ escons check
+}
+
+src_install() {
+ escons install --install-sandbox="${D}"
+}
diff --git a/net-libs/serf/serf-1.3.9.ebuild b/net-libs/serf/serf-1.3.9.ebuild
new file mode 100644
index 000000000000..031df82e090b
--- /dev/null
+++ b/net-libs/serf/serf-1.3.9.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils scons-utils toolchain-funcs flag-o-matic
+
+DESCRIPTION="HTTP client library"
+HOMEPAGE="https://serf.apache.org/"
+SRC_URI="mirror://apache/${PN}/${P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="kerberos static-libs libressl"
+
+RDEPEND="dev-libs/apr:1=
+ dev-libs/apr-util:1=
+ !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= )
+ sys-libs/zlib:0=
+ kerberos? ( virtual/krb5 )"
+DEPEND="${RDEPEND}
+ >=dev-util/scons-2.3.0"
+
+src_prepare() {
+ #epatch "${FILESDIR}/${PN}-1.3.2-disable_linking_against_unneeded_libraries.patch"
+ #epatch "${FILESDIR}/${PN}-1.3.8-scons_variables.patch"
+ #epatch "${FILESDIR}/${PN}-1.3.8-tests.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-static-lib.patch"
+ epatch "${FILESDIR}/${PN}-1.3.8-openssl.patch"
+
+ # https://code.google.com/p/serf/issues/detail?id=133
+ sed -e "/env.Append(CCFLAGS=\['-O2'\])/d" -i SConstruct
+
+ # need limits.h for PATH_MAX (only when EXTENSIONS is enabled)
+ [[ ${CHOST} == *-solaris* ]] && append-cppflags -D__EXTENSIONS__
+}
+
+src_compile() {
+ myesconsargs=(
+ PREFIX="${EPREFIX}/usr"
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ # These config scripts are sent through a shell with an empty env
+ # which breaks the SYSROOT usage in them. Set the vars inline to
+ # avoid that.
+ APR="SYSROOT='${SYSROOT}' ${SYSROOT}${EPREFIX}/usr/bin/apr-1-config"
+ APU="SYSROOT='${SYSROOT}' ${SYSROOT}${EPREFIX}/usr/bin/apu-1-config"
+ BUILD_STATIC=$(usex static-libs)
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ CC="$(tc-getCC)"
+ CPPFLAGS="${CPPFLAGS}"
+ CFLAGS="${CFLAGS}"
+ LINKFLAGS="${LDFLAGS}"
+ )
+
+ if use kerberos; then
+ myesconsargs+=( GSSAPI="${SYSROOT}${EPREFIX}/usr/bin/krb5-config" )
+ fi
+
+ escons
+}
+
+src_test() {
+ escons check
+}
+
+src_install() {
+ escons install --install-sandbox="${D}"
+}
diff --git a/net-libs/shairplay/Manifest b/net-libs/shairplay/Manifest
new file mode 100644
index 000000000000..515b3198cb6f
--- /dev/null
+++ b/net-libs/shairplay/Manifest
@@ -0,0 +1,4 @@
+DIST shairplay-0_pre20170118.tar.gz 291352 SHA256 d748b4aaab634a4605d741ced15479da20f47027b8822404037706166366e3fe SHA512 05a8ac399659235e88d3b1a7fbe8364ba526881b24ee082c3b7a5709b9b63eac376071d44028e4758ab22ca56d30f8e996b12dc9d3bd99bd38fe453e00a4a18b WHIRLPOOL a196687ea5768c1897350f1b3ed7e0ea37b6a16c6472cbae5341187f2e83e75203f41a49f43b5ac0824014cdb9bbfd7c2425fd8beec0edaa991aca72e0286edd
+EBUILD shairplay-0_pre20170118.ebuild 960 SHA256 680b902bbfd6032684056f6fca5d2cbf3fcc4e8c694e2bbd1d5363f8a2dd4502 SHA512 3ce15525ded41e9ffd2d6ac3134a73a8bc0a8bea1d018d3e93f42c5aa35a9b983e3848806fad8089f20e9ca7fdaab1c1ba7ad7697423872b1a9f4c89be48018e WHIRLPOOL 8ee4a774214921685cb8a19fcacb5b563f59df08f7fe690abb9070b5aab760adc1668ba8215731ca28c41430fef12e0c4e588ce5199e319b5daeee33347d0d31
+EBUILD shairplay-9999.ebuild 962 SHA256 1f2f924fe7421c372e315630119bd0dd2af1f65f9d4d52b988f4a72498981c4a SHA512 e03e7ada6986d16e1d890074926a79998323be00fa51713887617ac9ef0299f98866a4f7eb076d9485c7d0eaa7781692fb2c59b97a8e7b4b38f6c39b3ed9be3f WHIRLPOOL 83602e8b2f13f49f4953268236940d02ec570006a3bc919631d904dfbcfb1582de52310221ecdba8d389e7006618d57e15cd84c7cf5df06a05a51f53a87f0ad8
+MISC metadata.xml 777 SHA256 5387d519dd19878d5c580450dde2446cf3fadadd033d90e466c0adf2f007f10c SHA512 e5ebd29706e1776a3fce64fe14d281d6094bbf577a1ce6ceee242799d8c8295ebc10dfe5180e9085a9b0c1a2580a6d6911bffc4c6a777b43182f440c210ad87c WHIRLPOOL 163aecf3fd4a73442294dc0a9f0d22489d0e374022c25c76b3e539cc2a2ac2e5bccd97119402bd07aaf455aa0f983d2e03c3395ea93d9716cc8b5c9aa4256730
diff --git a/net-libs/shairplay/metadata.xml b/net-libs/shairplay/metadata.xml
new file mode 100644
index 000000000000..f3f5cf662bcc
--- /dev/null
+++ b/net-libs/shairplay/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>Apple airplay and raop protocol server</longdescription>
+ <use>
+ <flag name='alac'>Add support for Apple Lossless Audio Codec files</flag>
+ <flag name='static-libs'>Build static versions of dynamic libraries as well</flag>
+ <flag name='tools'>Build and install a binary shairplay in /usr/bin</flag>
+ </use>
+ <maintainer type="person">
+ <email>candrews@gentoo.org</email>
+ <name>Craig Andrews</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/juhovh/shairplay</bugs-to>
+ <remote-id type="github">juhovh/shairplay</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/shairplay/shairplay-0_pre20170118.ebuild b/net-libs/shairplay/shairplay-0_pre20170118.ebuild
new file mode 100644
index 000000000000..0df35df053a7
--- /dev/null
+++ b/net-libs/shairplay/shairplay-0_pre20170118.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools vcs-snapshot
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/juhovh/${PN}.git"
+else
+ EGIT_COMMIT="498bc5bcdd305e04721f94a04b9f26a7da72673f"
+ SRC_URI="https://github.com/juhovh/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 x86"
+fi
+
+DESCRIPTION="Apple airplay and raop protocol server"
+HOMEPAGE="https://github.com/juhovh/shairplay"
+LICENSE="BSD LGPL-2.1 MIT"
+
+SLOT="0"
+IUSE="alac static-libs tools"
+
+DEPEND="
+ tools? ( media-libs/libao )
+"
+
+RDEPEND="
+ alac? (
+ media-sound/alac_decoder
+ net-libs/shairplay[tools]
+ )
+ tools? (
+ dev-libs/openssl:0=
+ net-dns/avahi[mdnsresponder-compat]
+ )
+"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-libs/shairplay/shairplay-9999.ebuild b/net-libs/shairplay/shairplay-9999.ebuild
new file mode 100644
index 000000000000..76a24ddd83bc
--- /dev/null
+++ b/net-libs/shairplay/shairplay-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools vcs-snapshot
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/juhovh/${PN}.git"
+else
+ EGIT_COMMIT="498bc5bcdd305e04721f94a04b9f26a7da72673f"
+ SRC_URI="https://github.com/juhovh/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Apple airplay and raop protocol server"
+HOMEPAGE="https://github.com/juhovh/shairplay"
+LICENSE="BSD LGPL-2.1 MIT"
+
+SLOT="0"
+IUSE="alac static-libs tools"
+
+DEPEND="
+ tools? ( media-libs/libao )
+"
+
+RDEPEND="
+ alac? (
+ media-sound/alac_decoder
+ net-libs/shairplay[tools]
+ )
+ tools? (
+ dev-libs/openssl:0=
+ net-dns/avahi[mdnsresponder-compat]
+ )
+"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/net-libs/signon-oauth2/Manifest b/net-libs/signon-oauth2/Manifest
new file mode 100644
index 000000000000..2ef36265f704
--- /dev/null
+++ b/net-libs/signon-oauth2/Manifest
@@ -0,0 +1,5 @@
+AUX signon-oauth2-0.21-unused-dependency.patch 295 SHA256 9afae2d485d2c2e334c8ec03dd4963fca9183255f5710c3cd55fbecd1c45a92c SHA512 16a1b68ca0d32f1948691cb1372852ec3e45ecac4eb4a2f6fff040400692aa699907e82e73da445e556c5f9107d8048f7803b45bed07d293206a692dddc38b48 WHIRLPOOL 6935b9b30dccd1e046e0b39663de3703b2d48179803f5ce4e31ad16ce8552779f1d1df440fc3e8d4afd4eb89625da78e0e925248350e994ef8dcb4ac92f7a9bf
+DIST signon-oauth2-0.21.tar.bz2 37819 SHA256 d09b74d9b298c1f2d5229b15d2aa1761a7e8fe0fb26d16626dd28faba3e314a3 SHA512 b0f97353e87c08420c3132f3357522b526a7c48df807ab833e05297ebfc86e0e8f25d4d3aa94e8ebc4aa1d9bc77856d63c43e5b5e9f3e63628f7710b9a056fd0 WHIRLPOOL 9ed35ca0f1a457665f6991d5d8d550e07f0cc0db428b5c8dd4f1a7f0056989fe9961ab657e54de531c3c7f185c987c6531c008c012d3de38f15780fdfdfb0651
+EBUILD signon-oauth2-0.21-r1.ebuild 841 SHA256 9e1a1aafb22eeb24e12f332d5535a2326a929337619292bf8d07658958a4b1ea SHA512 8fe420882ef3212253a9a0c3ab3111cdd1e0ebf0bd57fa2a7174b4ebb94478e464a909484e619c373de72fb9880f9d4de5fcded607b49dbe5894410c3f924cca WHIRLPOOL 0805b5aae46ea2e4d33998abf176364580cf0f3f9ff348e426c7a4c45057e216a44e07cb7fbf040916e841be8e801622524492f39ce060908cd8da26b94489a6
+MISC ChangeLog 1496 SHA256 bdd961e9b664b029b60fbb3c906408c7ba66f90377933a3f664ac244907427e9 SHA512 e13c8032318c833bc9a75746106bdb742d43db74d878e7cb2c3be7d00c38f06d43727a6d378f226ba8bb4374549c58cc431d2e2868828d0cad9871510d5a66fc WHIRLPOOL 6204f54fb927d4c163d244e39c8aee27107542b6d3277f3c8d9084320d0bfd7d870a1055e6243804e10a0b5df0bb20a4a883d94c94efe8de19497dc1fd815416
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/signon-oauth2/files/signon-oauth2-0.21-unused-dependency.patch b/net-libs/signon-oauth2/files/signon-oauth2-0.21-unused-dependency.patch
new file mode 100644
index 000000000000..3e6656dd272c
--- /dev/null
+++ b/net-libs/signon-oauth2/files/signon-oauth2-0.21-unused-dependency.patch
@@ -0,0 +1,16 @@
+Qt5XmlPatterns is not actually used, but build will fail if it's missing.
+
+Gentoo-bug: 564316
+
+--- src/src.pro
++++ src/src.pro
+@@ -4,8 +4,7 @@
+ TARGET = oauth2plugin
+ DESTDIR = lib/signon
+ QT += core \
+- network \
+- xmlpatterns
++ network
+ QT -= gui
+ CONFIG += plugin \
+ build_all \
diff --git a/net-libs/signon-oauth2/metadata.xml b/net-libs/signon-oauth2/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/signon-oauth2/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/signon-oauth2/signon-oauth2-0.21-r1.ebuild b/net-libs/signon-oauth2/signon-oauth2-0.21-r1.ebuild
new file mode 100644
index 000000000000..dc913a9e2838
--- /dev/null
+++ b/net-libs/signon-oauth2/signon-oauth2-0.21-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qmake-utils
+
+DESCRIPTION="OAuth2 plugin for Signon daemon"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5[ssl]
+ net-libs/signond
+"
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:5 )
+"
+
+src_prepare() {
+ if use !test; then
+ sed -i -e '/^SUBDIRS/s/tests//' signon-oauth2.pro || die "couldn't disable tests"
+ else
+ sed -i -e '/^INSTALLS.*/,+1d' tests/tests.pro || die "couldn't remove tests from install target"
+ fi
+
+ epatch "${FILESDIR}/${P}-unused-dependency.patch"
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
diff --git a/net-libs/signon-ui/Manifest b/net-libs/signon-ui/Manifest
new file mode 100644
index 000000000000..4046d4f7906b
--- /dev/null
+++ b/net-libs/signon-ui/Manifest
@@ -0,0 +1,4 @@
+DIST signon-ui-0.15.tar.bz2 60278 SHA256 a14f0a82af129e33476e9d6839fa2d5e40c46a6e8bb71d7deb6255d995764af3 SHA512 02167d48cec3efbd1b0f39f65732742416b46e638a888a74df02bbfeb6deaefdd81549c8cee1a80ecdc8a9f9d0363a6935e8f105bec40bb798af5cc19a74bf03 WHIRLPOOL a4dbc850ff732998dc4aa3d63312e0bd5ca4865a3c3510f323fd6b3935983f82b8943a0d6f3a758d894d104f23c559ee7b15c8ae0ddf2a4966550aff7bb4ee0f
+EBUILD signon-ui-0.15.ebuild 935 SHA256 8035713de336cff638d187edb88648daf63edd672936a0bb7e8e0047e804f65f SHA512 f4771fcfc9bb0cca68ea0f6e0d3681b3d4e508b55c22ec8bd7bfdd40b5063ae705839463b237e92eed89482a280024955c95c15e3501561d47c5d8b03ba78ce9 WHIRLPOOL 9fcace92d882944bee54f0073504d182a347140c1b86f06b59f41b6e8bcf0d6409e02d64e1bc4eba5b653910000aa0325541fcbcbfe5c75d142dd04ad2e6cd8b
+MISC ChangeLog 1597 SHA256 13d2aafb30fd90e33feffdf60ddad097086b763e7f63871556644bd7b62f4632 SHA512 40a69da4ecad6950b22a36055e412e3e5637b4194a92d56965e501cb2d5567aab9b48a456f122272fc0b23be0fbbf2d07bf015e2c1f0e25e165a221b82770dc2 WHIRLPOOL 0e04afe855b3578728a224749d8f73c1b97e59fc13ca0b7370f96fc05b2b99efdc363a1b7e3a8994d9d743b2556de65259364c8db8ee28571b340be9742460b3
+MISC metadata.xml 326 SHA256 19bf8e3ffde4968f6cbe4f524212989256dc91e8e48fb65adcc411c52d4fc686 SHA512 5fae353739749bdc5a688a5819992063f045818006124b8cefbb4ef6a3452d91122931aae8286627b9121f893b97e66a44caa732edfbc2aab9301d8d039b0a7f WHIRLPOOL 42cd40727c48be26e83bbf5012c2786b330cc52611662620fe1496833350d1c8f265e2ff7e3907de61b5b56071437cb6f2e95704d22a637d3feceb8a2a923a37
diff --git a/net-libs/signon-ui/metadata.xml b/net-libs/signon-ui/metadata.xml
new file mode 100644
index 000000000000..09d6ab8594df
--- /dev/null
+++ b/net-libs/signon-ui/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">signon-ui</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/signon-ui/signon-ui-0.15.ebuild b/net-libs/signon-ui/signon-ui-0.15.ebuild
new file mode 100644
index 000000000000..dc8cffe53a31
--- /dev/null
+++ b/net-libs/signon-ui/signon-ui-0.15.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils
+
+DESCRIPTION="Signon UI"
+HOMEPAGE="https://launchpad.net/signon-ui"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
+
+LICENSE="GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+RESTRICT="test"
+
+# <libproxy-0.4.12[kde] results in segfaults due to symbol collisions with qt4
+RDEPEND="
+ dev-libs/glib:2
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+ net-libs/accounts-qt
+ net-libs/signond
+ net-libs/libproxy
+ x11-libs/libnotify
+ !<net-libs/libproxy-0.4.12[kde]
+"
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:5 )
+"
+
+src_prepare() {
+ use test || sed -i -e '/^SUBDIRS.*/,+1d' tests/tests.pro || die "couldn't disable tests"
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
diff --git a/net-libs/signond/Manifest b/net-libs/signond/Manifest
new file mode 100644
index 000000000000..c0790a673da8
--- /dev/null
+++ b/net-libs/signond/Manifest
@@ -0,0 +1,4 @@
+DIST signond-8.58.tar.gz 277287 SHA256 301e2e3b6919585c8ffc56f73ec1f0f9b18a533e1db88461e9fa4e2acf75a34a SHA512 74c9f32ea99c869c0aa72b5816962336869131ea4e8484c53636b35f2ed669a49cbc0ccf10c2c446697892235b94cf2c74f8d5402f430081d7d51421646eec91 WHIRLPOOL 7cff41e9ca37627a6a80a3c23d960958543ee2344ee24771d5e02c6a519d82f68a5003bf9a2bb413c9cbf20f7b450adaf9a82160cd422146431fce237d87d084
+EBUILD signond-8.58.ebuild 1504 SHA256 d46d897a80c24033efa562578c02badc70d85bd222b17e3b252997a5928b8811 SHA512 79dcd94289c7580d6ea79886f1e34b675702b6b4776a38296ca48b9d1130658829f452c4a1c92a9909c195dc60cc0dd0187ae9c40ccdab0e98df1793894af6f4 WHIRLPOOL e9ac53ac3501cc3343a2c7ef98bb594898d431c8e0575d20903290963330c12846ef9d1035abfcfd90320b125d07132d76f85c16a1fbb049f48ee8807f4d167b
+MISC ChangeLog 2047 SHA256 36114df8ecf58dfc2ece09dcbff1a0db98541b7e99f1315c64773dae9c1180b1 SHA512 ccf1950064e45a40d5300d663915d1f65b5fbf11d7a2add973e9005a71c56a839474af67416e5c48727529d7fbae30355644901f631d4353d51bfcab8e44b47c WHIRLPOOL ad1ab2f8c3e986cc34dae63069a307df1f7aaaad5d69c06443f618c2479eded415437323bd6f41e2c69f459f5269ccb419014bde61270cf8877aa3d8220f60ff
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/signond/metadata.xml b/net-libs/signond/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/signond/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/signond/signond-8.58.ebuild b/net-libs/signond/signond-8.58.ebuild
new file mode 100644
index 000000000000..7194b5932aac
--- /dev/null
+++ b/net-libs/signond/signond-8.58.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils vcs-snapshot
+
+DESCRIPTION="Signon daemon for libaccounts-glib"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="https://gitlab.com/accounts-sso/signond/repository/archive.tar.gz?ref=VERSION_8.58 -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="doc test"
+
+RESTRICT="test"
+
+# <libproxy-0.4.12[kde] results in segfaults due to symbol collisions with qt4
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtsql:5
+ net-libs/libproxy
+ !<net-libs/libproxy-0.4.12[kde]
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-qt/qttest:5 )
+"
+
+src_prepare() {
+ # remove unused dependency
+ sed -e "/xml \\\/d" -i src/signond/signond.pro || die
+
+ # ensure qt5 version of binary is used
+ sed -e "s|qdbusxml2cpp|$(qt5_get_bindir)/&|" -i src/signond/signond.pro || die
+
+ # install docs to correct location
+ sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" -i doc/doc.pri || die
+
+ # don't install example plugin
+ sed -e "/example/d" -i src/plugins/plugins.pro || die
+
+ # make tests optional
+ use test || sed -i -e '/^SUBDIRS/s/tests//' signon.pro || die "couldn't disable tests"
+
+ # make docs optional
+ use doc || sed -e "/include(\s*doc\/doc.pri\s*)/d" -i \
+ signon.pro -i lib/SignOn/SignOn.pro lib/plugins/plugins.pro || die
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
diff --git a/net-libs/socket_wrapper/Manifest b/net-libs/socket_wrapper/Manifest
new file mode 100644
index 000000000000..8eabd80d6cfb
--- /dev/null
+++ b/net-libs/socket_wrapper/Manifest
@@ -0,0 +1,7 @@
+DIST socket_wrapper-1.1.6.tar.gz 54150 SHA256 b97265e98e4da58cd0b438c1f17cdfb65b5c4e4a8fe2aab9360042a812931220 SHA512 8d5868877cdc7b20efbb8073276574d65d61a8fea73df2924a3fa4581284d30d7a1f03351c470a473e0e2eb6ed1a1513a98559a620b3976741892bb807cfe7ea WHIRLPOOL b46992b84e96238f4f4a6074734976d48e4ccced4f7a555a9a779935aa934620215863dc0d561621d7f0288eb17943f6628d9b9002f0eca1a639bac2fa0cc65e
+DIST socket_wrapper-1.1.7.tar.gz 54774 SHA256 a3488125a3eee4e5189a69f3ff132e5d637b56bc208bbd6ecee6017d66edf89a SHA512 3ddf7c1e0bf75268ed9bb44dfb02028d2d678a206ce6290ee1fc8da851ccf0cf97255c2cc498212abf65b96a9114563c4f922816d0109d379b096682a6bfe1f1 WHIRLPOOL b09ed79623bd853eaafda7fa4d59a7ad3e7d027b8105f66fe045e5c81a7a78e730ec8f2b9cd3eb9752b6b2dcf0dfdd9b1c123bd88c38b35d122b13d615a0795e
+EBUILD socket_wrapper-1.1.6.ebuild 701 SHA256 5ddeb26a497b8cbe9943d39f3c7f0cffbf528bf878154f01fb94e32acbe73679 SHA512 f3929eaf574cb4eee26e44015436160149d000f49c385b8d543c685e6ccb650d8c3b0b18ea2a13d9ca41e45be44874c0ef80106c4eb8a4f0187daa1c7d2661f0 WHIRLPOOL 0f51d9b1e0ce896a6ca5f91a638ce2e29a618f70eb60b117141f04d433acb91fb7dd236ca7d57d5713ad7cded11739ae8fd85b7cd7b08637abd0e5266132bc2a
+EBUILD socket_wrapper-1.1.7.ebuild 709 SHA256 f5bcd8902d9fab06452480f3cd1d99fb660c4f2acaee5daffd4c9f7a78d8c2eb SHA512 15be0a8e54836a01abbdea3f76f86383cbda45da334758bb5d58d7dd46e3b83f1bd35b9832fd76d8887c03acba87fe1f0f29f2ed066fca4787134c029527d2e9 WHIRLPOOL 1aca30ccac615dbda9b28663afbe72e0d2838cbf315ca452fb1c30a904350994030ee84fee6f8c813e90bcba04f46e8794a757de9618877241aa218a0958496a
+MISC ChangeLog 6900 SHA256 1bd818d7d2aa03dd0f30468968ecfdaa7a3b3cf5041561329fb53a4e14314ab9 SHA512 44c44506a81053c11609f3a0aeee80f07d441312466b5e4034a3cfdfeca9cf64bc6534e55912292b1854a3b1494ccb6284b17181219c1cf1d61e7f40e939fc31 WHIRLPOOL 7a9766ce1815d48104a1a6b92ea3a5ad0981cba0ac2fc86daa8f311b47378e2b8a36a17ad67a6365a7711bf9f6ab7a5b572524de0163a9c8799ab4942e20d44f
+MISC ChangeLog-2015 403 SHA256 1f9dce14b2fe67460973a5840c57276a337e68df2a82151fb37d7e79a5e86d5f SHA512 023cc2b2cc40603b62de67e8336b84a1fdff77b06062ef5f970c8175d59e9c41150319d6788b28e8d45256d999a9ece55a3188b28456ecedc261d6dfe6ec9cb9 WHIRLPOOL 1556e29f22ee6933e553b8848666fbcd63061ea04b689e3be618af41e5772767dee22e2d9e9aaff9e03f3c381890471b77288a485884ac83b7eb79a419ce499c
+MISC metadata.xml 360 SHA256 debc337b7549e12f55cf6ebdf900a95eb3b2370aa60daa49fd7ae97659ca5a85 SHA512 6cfeb9ed18b5c3b6c6e6875311bad627e9baffdf7b0846d70c8e0e36ce053ce849f867e963f7504292bbeb4b133c828e75a2d877c34fe7858ab3b9403ce533d2 WHIRLPOOL 1e6aa7563470c001516ce0b5f398d4fb5d854bb8a3a47a6631bd53f9b377950644ccb487a651f9648ead2815b815e8fd16d3cf7b6cd5c2d18958472b2a25c421
diff --git a/net-libs/socket_wrapper/metadata.xml b/net-libs/socket_wrapper/metadata.xml
new file mode 100644
index 000000000000..f05d1f266834
--- /dev/null
+++ b/net-libs/socket_wrapper/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+<maintainer type="project">
+ <email>samba@gentoo.org</email>
+ <name>Samba</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/socket_wrapper/socket_wrapper-1.1.6.ebuild b/net-libs/socket_wrapper/socket_wrapper-1.1.6.ebuild
new file mode 100644
index 000000000000..cc6cbb4002e7
--- /dev/null
+++ b/net-libs/socket_wrapper/socket_wrapper-1.1.6.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="A library passing all socket communications through unix sockets"
+HOMEPAGE="https://cwrap.org/socket_wrapper.html"
+SRC_URI="https://ftp.samba.org/pub/cwrap/${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+# Work around a problem with >=dev-util/cmake-3.3.0 (bug #558340)
+# Because of this we cannot use cmake-multilib_src_configure() here.
+multilib_src_configure() {
+ local mycmakeargs=( -DCMAKE_LIBRARY_PATH=/usr/$(get_libdir) )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/socket_wrapper/socket_wrapper-1.1.7.ebuild b/net-libs/socket_wrapper/socket_wrapper-1.1.7.ebuild
new file mode 100644
index 000000000000..c1d878ce96f9
--- /dev/null
+++ b/net-libs/socket_wrapper/socket_wrapper-1.1.7.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="A library passing all socket communications through unix sockets"
+HOMEPAGE="https://cwrap.org/socket_wrapper.html"
+SRC_URI="https://ftp.samba.org/pub/cwrap/${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 ~hppa ia64 ppc ppc64 sparc x86"
+IUSE="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+# Work around a problem with >=dev-util/cmake-3.3.0 (bug #558340)
+# Because of this we cannot use cmake-multilib_src_configure() here.
+multilib_src_configure() {
+ local mycmakeargs=( -DCMAKE_LIBRARY_PATH=/usr/$(get_libdir) )
+ cmake-utils_src_configure
+}
diff --git a/net-libs/sofia-sip/Manifest b/net-libs/sofia-sip/Manifest
new file mode 100644
index 000000000000..07826dfc03f7
--- /dev/null
+++ b/net-libs/sofia-sip/Manifest
@@ -0,0 +1,5 @@
+DIST sofia-sip-1.12.11.tar.gz 2927808 SHA256 2b01bc2e1826e00d1f7f57d29a2854b15fd5fe24695e47a14a735d195dd37c81 SHA512 48bef0223ecf5a31267773c8e2491c1990b4419be67154e350cc9e5644a98e55409d635d7828824de3e0e1658caebe5b61e44d613615beb709ecbe8180be131c WHIRLPOOL 81231856b974847a384ce8539306f3175960085381e031fb53594f86ab924e04811f76f68f4882cabdd4b5771de10da90fd35e4d4b4398db7f99c9e2d71f52fb
+EBUILD sofia-sip-1.12.11.ebuild 858 SHA256 33e24b21fe001820b15b7e64e54520835c606efe825db56feccc202715b38fc7 SHA512 ffed8fe8445744e230e5f4ed7ccc75f165426c2bde0b3fa412b0c3dbe1ced58b9b4d00b64a62aba171711b491b07400287fd18855fc433d8bdf3322accdd6906 WHIRLPOOL 33b5ec78aab91e38b3035c85e39d8643f23444452d620b7a9096d562babc25fef3a3e9abcc7d8d1edb916de16e4749406421233455f6a9f9c42c0680445498c9
+MISC ChangeLog 2437 SHA256 7eaa4c82f69926aefe283f234d4f13ce59320b60652744e0d1bc65c2dd63da3f SHA512 1d4c4da849e3530b6c43ba37efd7833680c9e2c696c7c4828a1b517fff8a6ff36b10dc9319aae5d7fdb0421405ff498881b4d699ecb42422eddfd1c44f187b6d WHIRLPOOL 8545e25dd097fa38dba33feecfc2f8ec130fa9091c2ce989279a4fdbe5226fe62013d0ca34d1abc6ed28d0f08bddc9dbbdb08c428ee19d7ed7fe50643fd35ceb
+MISC ChangeLog-2015 3992 SHA256 ea00cd96c8cfee7bd047095667e7ef54d9218a51bf426e0865be89ecd164a6ef SHA512 fa18cf21576019a133754260ae84cdc904d27dcf22d6544d7cebea6906dc7374541c4869f5fee17704c64943479b1620fc034efb06d83e9559aa70d51c60b7ea WHIRLPOOL f4418727ca1c9d91d59a67fe026370892cff177c55790bd12d0d79b3a1ed2e9349cb421eae9f283352ec9bf9ba65ab33112328bc3c521644569c2f527e2215dc
+MISC metadata.xml 332 SHA256 c9327d964a41b6f7f0a128e9f93d964ae75e7248deb3bae555c1c1ead453c95a SHA512 cd0911cea94332c8e64908a7537ea78683c562638aac05ab1659873ce5c43d378fedb09f848badb12258078779a172ef87313a2b6fb5001a3f33bd954ce7d420 WHIRLPOOL cf3ab342e09a0d0ded1252461e3ae4f379d7ef2ed6a63f3b26e570dad303a43ab10afbc917e048b4da2f081e5579f224913bcdd89b3357a4c148973a5de8098d
diff --git a/net-libs/sofia-sip/metadata.xml b/net-libs/sofia-sip/metadata.xml
new file mode 100644
index 000000000000..2f36d58bd791
--- /dev/null
+++ b/net-libs/sofia-sip/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">sofia-sip</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/sofia-sip/sofia-sip-1.12.11.ebuild b/net-libs/sofia-sip/sofia-sip-1.12.11.ebuild
new file mode 100644
index 000000000000..c0b59d79c028
--- /dev/null
+++ b/net-libs/sofia-sip/sofia-sip-1.12.11.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="RFC3261 compliant SIP User-Agent library"
+HOMEPAGE="http://sofia-sip.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1+ BSD public-domain" # See COPYRIGHT
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ia64 ppc ~ppc64 sparc x86 ~x86-linux"
+IUSE="libressl ssl static-libs"
+
+RDEPEND="dev-libs/glib:2
+ ssl? (
+ !libressl? ( dev-libs/openssl )
+ libressl? ( dev-libs/libressl )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+# tests are broken, see bugs 304607 and 330261
+RESTRICT="test"
+
+DOCS=( AUTHORS ChangeLog README README.developers RELEASE TODO )
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ default
+ rm -f "${ED}"usr/lib*/lib${PN}*.la
+}
diff --git a/net-libs/stem/Manifest b/net-libs/stem/Manifest
new file mode 100644
index 000000000000..e7d6689c73b0
--- /dev/null
+++ b/net-libs/stem/Manifest
@@ -0,0 +1,11 @@
+DIST stem-1.3.0.tar.bz2 1481513 SHA256 770e370156e0e92a9862e4670ee3f4ac385742006e578608528ee16cbab9d416 SHA512 dea65d026a27985432b291614dc3c8da7a628fad945a755abb706177864edd387c8ea96cd8358af60825b342896d57ea1daa96365efd5156bf8885e7a7aa9714 WHIRLPOOL 1e3d9f800ed9670a347d41c565250a42e1a166e24c55dc3a0128cd3b2c5d9a8f0e926e73338a4cdd846997911c11db5e2fa98f2b7dd5a259da523951d8bf1626
+DIST stem-1.4.0.tar.bz2 1569644 SHA256 6c8af06a6fa9553ad4da3e397cffa42d7ddd9396a1425b2757f125e7699ef83c SHA512 0d93355659ff04d8846133845636c0596e06331b6646a62c597c2d6156be39705ed182d480dde3e49653c4b5341f663e4da83610110383d9d8c395ac1e473191 WHIRLPOOL 3eb30be403980a6a446fa0fe666fe628ef1f732e5a7da6ae3db323e4053c7df866142faad979a69cfeecb031077896e4883c58fdb6b3db84f7c5502141b4df7c
+DIST stem-1.4.1.tar.bz2 1570151 SHA256 f2c460df59d63f60e5046221994be655a361c31b81cda0120e594999587869e8 SHA512 40ed898efd55d749dad9e02ff00cc4770f588f9d0fd40995d3a0ed4d13ac3bd7cf1fba011a01729668be30ef9627bd6b140d4fbd76cedb5fa5793d9750aa48b7 WHIRLPOOL 2a52c1bc4a0acb18ebaf12654f0f4a8c167992f994336db1c16d6e3d49039007a5832fb0e80ac78ba82e789144bb374f7ce1105bba3e5edd14e99e83c2514ebf
+DIST stem-1.5.4.tar.gz 1915722 SHA256 3649133037ee186e80115650094a2fb2f60a23f006ebddab34d9039be9b2f7c8 SHA512 1ea74341a1013f1f98d3d5ed1d552e79277cf54a6337d1a8b66bda0baae022d70c4c0c9ce35c843222d183a716466d93e1df3ee55ae6cd16cf10c6cf415d3cf7 WHIRLPOOL df5e1449fc2f7454b5288ed8e02e09388bb47792bae4c78ace8f3046d65967295b601cf28c4c52159663eb285c37d4542ee0b81815b0fad10faeda4023710b64
+EBUILD stem-1.3.0.ebuild 1025 SHA256 d5d16139561b3924de8a930b40385325d77d2db93828463a537af2b561c38e01 SHA512 e787ab3c9fb7ccaa668421d75ddc6527372f6775d1ad4316b5ac5aa12f8c9dc9e9ef494a7441afc1b28e32b8438634ac15e70c418fe5585875dd6e0fa41b2086 WHIRLPOOL b94b834782e570eaab209045151f4c48edab335dfe49ecab3bbd61d7053bafab92d5292140b1170d3491fa6bd552887ecf3dafaa0036b79fbdbd53f44a27258c
+EBUILD stem-1.4.0.ebuild 987 SHA256 20644b0f54d37617f33bb57806e5b3f9c2939ddd75de0ed4de8a7dccd05ca55e SHA512 2b9a0f037f5bcf458a41473b1006bf658fc3c3993ec9148e13b16e6c73ea755bd2b00a1834ce094011605f2d61e937eee13185e822ffb81f259f5030c1985db7 WHIRLPOOL 1baee33c8f94459efd79a1f9681d6f55074c7410accc814247f4f43a7be01391180f4329dd33210acc33aad33393d2ec853a42dd7b430ea79b31d8b89403091e
+EBUILD stem-1.4.1.ebuild 987 SHA256 20644b0f54d37617f33bb57806e5b3f9c2939ddd75de0ed4de8a7dccd05ca55e SHA512 2b9a0f037f5bcf458a41473b1006bf658fc3c3993ec9148e13b16e6c73ea755bd2b00a1834ce094011605f2d61e937eee13185e822ffb81f259f5030c1985db7 WHIRLPOOL 1baee33c8f94459efd79a1f9681d6f55074c7410accc814247f4f43a7be01391180f4329dd33210acc33aad33393d2ec853a42dd7b430ea79b31d8b89403091e
+EBUILD stem-1.5.4.ebuild 1273 SHA256 7698613ef9c63b5fcaecdcba023c127dc4501f95748a2ff2a7e5107ddebb9c0c SHA512 7aa70c4e3fc49b371e0333e9c6bb91216f6e1dc8991d6fb6feb58e4499dd51f7e8f49535c30688c4ba7096d15144326e962bc556abb675761760f3deb3c21b5e WHIRLPOOL 766084e96d7d64766fac4be4293b4965a77026e88cec639d028f54bb2a5347cb6d62bc27a5bfcecdff823e2198c9dfb2bbe9905cbbbd9822b1cc13868a074167
+MISC ChangeLog 2405 SHA256 632ae4f6832f2caa7dec9dd52f18eaf938e7918a9a51075a6ffa762883872b1b SHA512 7fd2d849b300f916d0931ac64b6c2dec2f5a2fb668a620a5a877e0278ad6448ca1434a56a8f03d30ffb5b2c6564e0edf1abdb3ee5bd42c945abba12dc547c1ac WHIRLPOOL 01a3a5096c0e112d7c6a3887bd3f043e28743024d868d76e82a46264383e8cb9d0a6bd681e4fb9841e824b7bc95f22230258c6cf738d4939e9b6f04f474c3fc9
+MISC ChangeLog-2015 2034 SHA256 f3ee6a18ed75e45af762662f135fc4b5c33f68615d9dd04e235141c7d6d6a149 SHA512 1e745c60e77072771c775dc13e4b39fdee82352925e5ac14c60e9c2de684a1515999a6b1c3284ae24edbc25e0835fdf00b034d8bd1db3be9ea8fe78430861beb WHIRLPOOL 719d82df3860783b375d4735a223f21c4fd775d3512ba158f5e7afcd2c223703e868e7ea5e1ad6d1edcc202f9c21ccb18f0b9a4b8b75c535869dd4cb84199194
+MISC metadata.xml 329 SHA256 04c8d1d7bbcf8da63db13d114cc1b0539f5283a1c8b36aa997d66d8c6ae35154 SHA512 e0be0234c4994bfff08e1790f82b8728a33961b9896ff5483b19591e2f00fe4b4ad83d42b59e64c056b393c35ec9ae92737f181d9549655853605537ac017974 WHIRLPOOL 9c8093a00fabb910ceb7a8eec12d1bf5c082be5f61a60542258df663aba8a3f8fbbafbbb5aeab57c65717d84cc8748bc38d5aa8736a106eacaf4d0b109969cdf
diff --git a/net-libs/stem/metadata.xml b/net-libs/stem/metadata.xml
new file mode 100644
index 000000000000..4d79f45f288f
--- /dev/null
+++ b/net-libs/stem/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">stem</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/stem/stem-1.3.0.ebuild b/net-libs/stem/stem-1.3.0.ebuild
new file mode 100644
index 000000000000..2a3864161696
--- /dev/null
+++ b/net-libs/stem/stem-1.3.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+# Python3.3 fails to execute the test script
+PYTHON_COMPAT=(python2_7)
+
+inherit vcs-snapshot distutils-r1
+
+DESCRIPTION="Stem is a Python controller library for Tor"
+HOMEPAGE="https://stem.torproject.org"
+SRC_URI="mirror://pypi/s/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}]
+ net-vpn/tor )
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+RDEPEND="net-vpn/tor"
+
+DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} )
+
+python_prepare_all() {
+ # Disable failing test
+ sed -i -e "/test_expand_path/a \
+ \ \ \ \ return" test/integ/util/system.py || die
+ sed -i -e "/test_get_connections_by_ss/,+1d"\
+ test/integ/util/connection.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ ${PYTHON} run_tests.py --all --target RUN_ALL || die
+}
diff --git a/net-libs/stem/stem-1.4.0.ebuild b/net-libs/stem/stem-1.4.0.ebuild
new file mode 100644
index 000000000000..63e61e8dbcd7
--- /dev/null
+++ b/net-libs/stem/stem-1.4.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=(python{2_7,3_4})
+
+inherit vcs-snapshot distutils-r1
+
+DESCRIPTION="Stem is a Python controller library for Tor"
+HOMEPAGE="https://stem.torproject.org"
+SRC_URI="mirror://pypi/s/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}]
+ net-vpn/tor )
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+RDEPEND="net-vpn/tor"
+
+DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} )
+
+python_prepare_all() {
+ # Disable failing test
+ sed -i -e "/test_expand_path/a \
+ \ \ \ \ return" test/integ/util/system.py || die
+ sed -i -e "/test_get_connections_by_ss/,+1d"\
+ test/integ/util/connection.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ ${PYTHON} run_tests.py --all --target RUN_ALL || die
+}
diff --git a/net-libs/stem/stem-1.4.1.ebuild b/net-libs/stem/stem-1.4.1.ebuild
new file mode 100644
index 000000000000..63e61e8dbcd7
--- /dev/null
+++ b/net-libs/stem/stem-1.4.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=(python{2_7,3_4})
+
+inherit vcs-snapshot distutils-r1
+
+DESCRIPTION="Stem is a Python controller library for Tor"
+HOMEPAGE="https://stem.torproject.org"
+SRC_URI="mirror://pypi/s/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}]
+ net-vpn/tor )
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+RDEPEND="net-vpn/tor"
+
+DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} )
+
+python_prepare_all() {
+ # Disable failing test
+ sed -i -e "/test_expand_path/a \
+ \ \ \ \ return" test/integ/util/system.py || die
+ sed -i -e "/test_get_connections_by_ss/,+1d"\
+ test/integ/util/connection.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ ${PYTHON} run_tests.py --all --target RUN_ALL || die
+}
diff --git a/net-libs/stem/stem-1.5.4.ebuild b/net-libs/stem/stem-1.5.4.ebuild
new file mode 100644
index 000000000000..b61e4b7f54ef
--- /dev/null
+++ b/net-libs/stem/stem-1.5.4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
+
+inherit vcs-snapshot distutils-r1
+
+DESCRIPTION="Stem is a Python controller library for Tor"
+HOMEPAGE="https://stem.torproject.org"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}]
+ net-vpn/tor )
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+RDEPEND="net-vpn/tor"
+
+DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} )
+
+python_prepare_all() {
+ # Disable failing test
+ sed -i -e "/test_expand_path/a \
+ \ \ \ \ return" test/integ/util/system.py || die
+ sed -i -e "/test_parsing_with_example/a \
+ \ \ \ \ return" test/unit/manual.py || die
+ sed -i -e "/test_parsing_with_unknown_options/a \
+ \ \ \ \ return" test/unit/manual.py || die
+ sed -i -e "/test_saving_manual/a \
+ \ \ \ \ return" test/unit/manual.py || die
+ sed -i -e "/test_sdist_matches_git/a \
+ \ \ \ \ return" test/integ/installation.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ ${PYTHON} run_tests.py --all --target RUN_ALL || die
+}
diff --git a/net-libs/telepathy-accounts-signon/Manifest b/net-libs/telepathy-accounts-signon/Manifest
new file mode 100644
index 000000000000..3992e206aee4
--- /dev/null
+++ b/net-libs/telepathy-accounts-signon/Manifest
@@ -0,0 +1,4 @@
+DIST telepathy-accounts-signon-1.0.tar.xz 17584 SHA256 0fa65581d3b8844443c33f70732ebd727049707f47505f683face98a47dc173c SHA512 10058570efbd7dc916a3102b72e506999793ca0ad9ce79f5b33f20d207ec3396fb067242558d2903e49a04b14e7f4717e43475aaaf902a03fc7d4a0bb52c717c WHIRLPOOL 9400e22d7c86b152f1564449d78c38abdea79c6757bf6837620006b4aa55be524bf631b93c33e640d1da2f3eb9342ebf6eebce3f85cc2d09b7ba72de7cdd368d
+EBUILD telepathy-accounts-signon-1.0.ebuild 624 SHA256 715678086158561ccbaf37e4396637b6ba70da5db2c765c2d535dfac141cd5c7 SHA512 2651b723dcced4871ae242ff3f868f52497b67ed72b18f8fe4453a6ce4cf3c6a88730feafcecd5392e5c79b66d1f8c37c6e697a55b66c68fbcff14e26d04a64d WHIRLPOOL e4ae7deb4bd6c20acc02790f2ed40dca687fcb11738b3a68a1ad1ef42252624335d0edefd5d274f288f25eb11babbdc4c4909c9579bfffa24759e31243dd16ac
+MISC ChangeLog 1053 SHA256 4d9f1c96312018cd322ccb6823a3aa5aaff4e30134082e1bf890684cf1c8e70a SHA512 e96bb701578810876a68586783fadb60d6a8c2e90f46f306c27ed5212ba043c1ade5e44337690efd04d1576b4a79896797f42d2de1c9569a86e2cc3d8eec4200 WHIRLPOOL d96b8812a4d6eb73ad0f844bc88ff5fcb65645ecbf2c89e0aae19342c50e401045b3a2b67f306b914dd42624b61a90707e2c681a2551da94c12b18a8c5fd9622
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/telepathy-accounts-signon/metadata.xml b/net-libs/telepathy-accounts-signon/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/telepathy-accounts-signon/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/telepathy-accounts-signon/telepathy-accounts-signon-1.0.ebuild b/net-libs/telepathy-accounts-signon/telepathy-accounts-signon-1.0.ebuild
new file mode 100644
index 000000000000..2913bfb8a1f5
--- /dev/null
+++ b/net-libs/telepathy-accounts-signon/telepathy-accounts-signon-1.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils
+
+DESCRIPTION="Mission control plugin for Telepathy to provide IM accounts and authentication"
+HOMEPAGE="https://01.org/gsso"
+SRC_URI="https://dev.gentoo.org/~johu/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ dev-libs/glib:2
+ net-im/telepathy-mission-control
+ net-libs/libaccounts-glib
+ net-libs/libsignon-glib
+ net-libs/telepathy-glib
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
diff --git a/net-libs/telepathy-farstream/Manifest b/net-libs/telepathy-farstream/Manifest
new file mode 100644
index 000000000000..bcc3f8e4c8e2
--- /dev/null
+++ b/net-libs/telepathy-farstream/Manifest
@@ -0,0 +1,5 @@
+DIST telepathy-farstream-0.6.2.tar.gz 601409 SHA256 6fa099f22d13a2a49240445a13e918928aef097675d76e5cc9f98ab496087e0a SHA512 ef9c07df607add411df404f5e2dfbf92afde8387291980e59f9e0b85d6edf0904582f10491316ae01349fe242d44a3579a27663127d5a91cb7b06ad163b6e4a6 WHIRLPOOL e71dfadaf68c3a221dcd8ac40c8ed6d36031f03d2d765a3852b0d3dc67e8e39101d15a364f546efd6c0e8970803fb0191e9bc66fd1c44d369f9a14e8f709cc92
+EBUILD telepathy-farstream-0.6.2.ebuild 1135 SHA256 fd5658011ecc087d4a20cde9ddea5fa28801cabb78a7fe6be947c23a607db3d7 SHA512 945497523b0c4ec3cd497e8f031094996a611a8820c3e39efe21d2ffecad65c2a2d8efe56f733683769b6dfe781aa113aa157f3d5872fe91e4f4974c55116ccb WHIRLPOOL 2bc4ebe91d433c6b92ef8f519fb7c9028fab2c8455f85c3fd364ee6f905dd768e80bec098c28d11ffca0aebbcf1130c615299610cd5139387d362d4856d5c5f2
+MISC ChangeLog 3266 SHA256 59c30b45be181e706e0d693fa7e528c85b358955628a29bdc840cb4045831e9b SHA512 be1019aedfad6f6a53de198c90a17f67a23afb9c2579402084cd29698df1b69660032c87e7b57f484dfc547293a9f3f8b4688e1a1bcfde2b10de5cf2366f8be2 WHIRLPOOL 1bcbd8a9cecf8b8b5ccdf3b1e120b5706bcb9cffafbbf89ae636b4d8223954335eb89b1d12de852207a702d349d9c9c3a2f0be32f306bc9b2e81e8a08a04f5d9
+MISC ChangeLog-2015 4550 SHA256 c760596aec524c6274b92424fdd34e7ff6f33bc58632521c8d49914d02adc16f SHA512 c8ed1e84005a398929180138c983ca64ca64a02e67eb919bbf8969bbbeb38bdf7f4fcd532f9a542b4a6fa9df191abdf6c5fc97f82a3a7345702437fa9bf46703 WHIRLPOOL f5d2e3cb019b3531e5a28218d72fa0d98c783f45b6fb1691a6ef2763fa5060ae4e542cc3c4d6f944cb496dad3bea5a3f8ae8ec1554457d8c0251d77ffbf9523e
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/telepathy-farstream/metadata.xml b/net-libs/telepathy-farstream/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/telepathy-farstream/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/telepathy-farstream/telepathy-farstream-0.6.2.ebuild b/net-libs/telepathy-farstream/telepathy-farstream-0.6.2.ebuild
new file mode 100644
index 000000000000..d04f9dc1e79f
--- /dev/null
+++ b/net-libs/telepathy-farstream/telepathy-farstream-0.6.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2
+
+DESCRIPTION="Telepathy client library that uses Farstream to handle Call channels"
+HOMEPAGE="https://telepathy.freedesktop.org/"
+SRC_URI="https://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/3"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="examples +introspection"
+
+RDEPEND="
+ >=dev-libs/glib-2.32:2
+ >=sys-apps/dbus-0.60
+ >=dev-libs/dbus-glib-0.60
+ media-libs/gstreamer:1.0[introspection?]
+ >=net-libs/telepathy-glib-0.21[introspection?]
+ net-libs/farstream:0.2=[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-1.30 )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.17
+ virtual/pkgconfig
+"
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ --disable-Werror \
+ $(use_enable introspection)
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*.c
+ insinto /usr/share/doc/${PF}/examples/python
+ doins examples/python/*.py
+ fi
+}
diff --git a/net-libs/telepathy-glib/Manifest b/net-libs/telepathy-glib/Manifest
new file mode 100644
index 000000000000..69ea61417c2c
--- /dev/null
+++ b/net-libs/telepathy-glib/Manifest
@@ -0,0 +1,5 @@
+DIST telepathy-glib-0.24.1.tar.gz 3898149 SHA256 9e0df1d8f857e0270cf0b32e2d1ca5a24aa7282873361785d573f72ad7f7d5eb SHA512 2fed94f76a19d6069f671cdd45d2fd8a4b4ad27c4601aff66041ca205456be397c76a86f92cc9bf20fa4eb6d4c15a67ed8196644c143c37e945f382229a63335 WHIRLPOOL bc1c48cbc961d0a4c263dbdd4a31ff6a4ca3a32bfc3b9bc12f2691f46028f7c371ae16a4cd2908f425f49e8eaa84158e5122523f24e2d669defbf8868fb6cd17
+EBUILD telepathy-glib-0.24.1.ebuild 1533 SHA256 8ee65c38935a061308613aafc633edf496aa5f6b54a6a867427e5a296a55d18c SHA512 efcc99188ad9686af6abea3bc1e0d845fcd60070952f0c1aa7a2461589e4eb9d4597859301f52487aff8c87a2856ff29a799551f225032d5b6c5f5c5f83cbb99 WHIRLPOOL 5cc10464879fe4313b6491d1ca569726bf319a2be430c51eebe4032f3913b16bde3a859fee22e8ee2b372bec24946697b60b2e2cf3af9c753af6b05f2daeac2b
+MISC ChangeLog 4464 SHA256 c34b8586b5b24017b94a618a34b8df0f4a746131b466d171f47274cff5a3d0d9 SHA512 f2f4d9a6d0e18eeea56270333378988f17887218602119ea555a8b7b7f661bf187b22e9b5bee182d8b1dc163be31715a7c261b1cce2d318f07b134bd46c90fd7 WHIRLPOOL effe9f745cb4b8c0a41dd1eb7a3fbd428e37d55d099db9af9820788886659817cfd2301921084a3c024c43faa83156dbed3c6041d746c9cd16d5d57ff6503d50
+MISC ChangeLog-2015 25158 SHA256 01811aa93be2e05fa06a271813e011ec4682c41110aab7a9811fb603c24a70af SHA512 c04c45d6f68273131baf836a3ca57a1cab342b1ef49d8cd9fb6ab02d496caa6bb36de2d4aa4a50fd243a809ce291f56c853495d39c10ff3a34ea8b36076f4944 WHIRLPOOL 7138a5b1d407492ad70ed284390daed76d555c0121743fbefbc6f576e1341ac2606d381bb97e77c89a45aedadc996559d3606a62e7d5253c69034904f2c9d3a9
+MISC metadata.xml 253 SHA256 8f92439176f4cd2ba6a060c523c6b29ab210cd9aab7903b6db6eecc6654b1e21 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 WHIRLPOOL d5d853bd8a39a54c45728e16a1aa295e014e0a3a105a01ec6b3c93a4f53d7b7055644708301751b7f5be68543056d3f0bd611d5ce0be442eb5d06f5e032fe154
diff --git a/net-libs/telepathy-glib/metadata.xml b/net-libs/telepathy-glib/metadata.xml
new file mode 100644
index 000000000000..996e7cacd217
--- /dev/null
+++ b/net-libs/telepathy-glib/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/telepathy-glib/telepathy-glib-0.24.1.ebuild b/net-libs/telepathy-glib/telepathy-glib-0.24.1.ebuild
new file mode 100644
index 000000000000..8630652a2289
--- /dev/null
+++ b/net-libs/telepathy-glib/telepathy-glib-0.24.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.18"
+VALA_USE_DEPEND="vapigen"
+
+inherit eutils gnome2 python-single-r1 vala virtualx
+
+DESCRIPTION="GLib bindings for the Telepathy D-Bus protocol"
+HOMEPAGE="https://telepathy.freedesktop.org/"
+SRC_URI="https://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
+
+IUSE="debug +introspection +vala"
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ vala? ( introspection )
+"
+
+# Broken for a long time and upstream doesn't care
+# https://bugs.freedesktop.org/show_bug.cgi?id=63212
+RESTRICT="test"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=dev-libs/glib-2.36:2
+ >=dev-libs/dbus-glib-0.90
+ introspection? ( >=dev-libs/gobject-introspection-1.30 )
+"
+DEPEND="${RDEPEND}
+ dev-libs/libxslt
+ dev-util/gtk-doc-am
+ virtual/pkgconfig
+ vala? ( $(vala_depend) )
+"
+# See bug 504744 for reference
+PDEPEND="
+ net-im/telepathy-mission-control
+"
+
+src_prepare() {
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ --disable-installed-tests \
+ $(use_enable debug backtrace) \
+ $(use_enable debug debug-cache) \
+ $(use_enable introspection) \
+ $(use_enable vala vala-bindings)
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ # Needs dbus for tests (auto-launched)
+ Xemake -j1 check
+}
diff --git a/net-libs/telepathy-logger-qt/Manifest b/net-libs/telepathy-logger-qt/Manifest
new file mode 100644
index 000000000000..9e518072348a
--- /dev/null
+++ b/net-libs/telepathy-logger-qt/Manifest
@@ -0,0 +1,8 @@
+AUX telepathy-logger-qt-15.04.0-cmake-3.9.patch 10869 SHA256 b15262746ccfd19111cc0152cfbffdd20c8aa8da99e3c654a57b5b63df37afc8 SHA512 0475b66dfd81cba40b61380aa4eaf9c6c570e9a86850445fef028461a40a72e51896a3f8500ac22e02ed6a5521938b40bf5335e86d25184e5f4da0794a2e631d WHIRLPOOL 3987da7b3529fb63a593c0cfd22fe30602fceb0f08b77c5b636caa92bb19f2a06cfd5f6911d1dc51ee258bfba0a8169b4dd5ad08d94724f9bbd43deceb4dd87b
+DIST telepathy-logger-qt-15.04.0.tar.xz 94408 SHA256 83ce7be50edd9f8806c6f93cc56ba640120c2561767f8c666dcfddd72ee57898 SHA512 e8fc989f5ebfdee9e30cba709ff66ebfe1385e5cb8707feb3ee585f23637fdcfa7eb4a39fd7cbeca5ca633cc88188905e4995422fcaa9b0b998ab78800d5e7b7 WHIRLPOOL 16bfcca008fabb7e96d85d31daeb9dfc8deda3b11fcd1fc603f2422d3d7a8c8f55267d02e36711c2326403c8d152265200a38835dfe36d0d5bd20a268a66fcf2
+DIST telepathy-logger-qt-17.08.0.tar.xz 94184 SHA256 d098a77de2a58381d9ebcd64c8ae54c773b5206ed7888576653d3b505fe5032a SHA512 1768509b61d83cdd39adf8abd74f71d0c9ae757411e08017c6788fe50962b57768a8fdc9fbba75f5968bb22849ff619e790323806d29ae63066e41cc5f22c366 WHIRLPOOL b04378a770b85a01c93bab8d84d9bc35e870f0e5ff3a284472ba46924bcf2b66949200db7a8e50d693eb119ba494dd76cb8c7c7ac7ed203fd6ceb00335e580b3
+EBUILD telepathy-logger-qt-15.04.0.ebuild 775 SHA256 26b161ac42a1a3611824f5971e3b284239508195e85e40e27abdb70518850af2 SHA512 1f8d1f1138106bee014b4f3f32ae293c6eec8a03c7a1862ee565af5853941acf21ee44fcfde52bb008d350718c75669ef5f4c387030a3925ece3342271a2cca3 WHIRLPOOL 093d1fdd2ad453d596758436837a922128d4c2c81bd9973c467be309f60682fe4036fa507a552db8772d718d4b43f0d576bbe67d3aa3987a84deebae4c30a2c8
+EBUILD telepathy-logger-qt-17.08.0.ebuild 714 SHA256 9152e99bbdd70b96fa371db5f735038b42d3f319f86688419bf49f84ad2b1aa3 SHA512 7caaec1e078e9ba91b979937e022b6c34c5f93b68e6a11f092937e5724551ffba8f8fbdebb03eb1a67b3e1d32f014507fe5482a4b1edc81911a12ac1e34de85f WHIRLPOOL c2c8a145ef97176cb7bbde004f8a9f909a35df23fba9f5f4c965fe4f11a85f85efe081283d126f336ed4b98ddf00399573884e2d76893fdec97bbfb43633af68
+MISC ChangeLog 3290 SHA256 6c6e32587bc1e988952d0650482cb511f6fa1615259c7116604d96358d191680 SHA512 d1ef3da5169e45bb7da0df8f9453cce5968fd526635493d8c9c58cedec4bef72d4656cccb1fa9e34596ac23138d8f6c98e0550c73623e140bf6b5646d46cbf42 WHIRLPOOL 3611094f2794ebbe03d5c1a7ee769a4f3215a7ff29a40c932d4115d196c34fa7062317db1c7064469ef73defcbe022e32de8a38e3eafeebe73db85084d046ad7
+MISC ChangeLog-2015 2963 SHA256 feb36c94f2923b355934492b5d43c64b699fb84bc5c3d7f646657070c72a4871 SHA512 0f76fd32d52b16b66fdc814d9c25c1c9733d8e70cada4df022f9d248305b8bcd5a407d28564a5110e3aa4650c82c572feca6e67a5c713406bd82212b3f65f964 WHIRLPOOL d86deb44865497ca78ab499aafb87a6d374f259a0004a214a65dd080877b38ab324e17695defb2e5f8513c580a58b1f7cf35b744fa496101a1af3e37415b06d6
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch b/net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch
new file mode 100644
index 000000000000..84d66851a221
--- /dev/null
+++ b/net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch
@@ -0,0 +1,249 @@
+diff --git a/cmake/modules/TpQtMacros.cmake b/cmake/modules/TpQtMacros.cmake
+--- a/cmake/modules/TpQtMacros.cmake
++++ b/cmake/modules/TpQtMacros.cmake
+@@ -128,15 +128,15 @@
+ FOREACH(_currentArg ${ARGN})
+ IF ("${_currentArg}" STREQUAL "DEPENDS")
+ SET(_TPQT_DOING_DEPENDS TRUE)
+- ELSE ("${_currentArg}" STREQUAL "DEPENDS")
++ ELSE ()
+ IF(_TPQT_DOING_DEPENDS)
+ LIST(APPEND ${_tpqt_depends} "${_currentArg}")
+- ELSE(_TPQT_DOING_DEPENDS)
++ ELSE()
+ LIST(APPEND ${_tpqt_other} "${_currentArg}")
+- ENDIF(_TPQT_DOING_DEPENDS)
+- ENDIF ("${_currentArg}" STREQUAL "DEPENDS")
+- ENDFOREACH(_currentArg)
+-ENDMACRO (TPQT_EXTRACT_DEPENDS)
++ ENDIF()
++ ENDIF ()
++ ENDFOREACH()
++ENDMACRO ()
+
+ # helper function to set up a moc rule
+ FUNCTION (TPQT_CREATE_MOC_COMMAND_TARGET_DEPS infile outfile moc_flags moc_options)
+@@ -151,54 +151,54 @@
+ GET_FILENAME_COMPONENT(_moc_outfile_dir "${outfile}" PATH)
+ IF(_moc_outfile_dir)
+ SET(_moc_working_dir WORKING_DIRECTORY ${_moc_outfile_dir})
+- ENDIF(_moc_outfile_dir)
++ ENDIF()
+ SET (_moc_parameters_file ${outfile}_parameters)
+ SET (_moc_parameters ${moc_flags} ${moc_options} -o "${outfile}" "${infile}")
+ FILE (REMOVE ${_moc_parameters_file})
+ FOREACH(arg ${_moc_parameters})
+ FILE (APPEND ${_moc_parameters_file} "${arg}\n")
+- ENDFOREACH(arg)
++ ENDFOREACH()
+ ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
+ COMMAND ${QT_MOC_EXECUTABLE} @${_moc_outfile_name}_parameters
+ DEPENDS ${infile}
+ ${_moc_working_dir}
+ VERBATIM)
+- ELSE (WIN32)
++ ELSE ()
+ ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
+ COMMAND ${QT_MOC_EXECUTABLE}
+ ARGS ${moc_flags} ${moc_options} -o ${outfile} ${infile}
+ DEPENDS ${infile})
+- ENDIF (WIN32)
++ ENDIF ()
+
+ add_custom_target(moc-${_moc_outfile_name} DEPENDS ${outfile})
+ add_dependencies(moc-${_moc_outfile_name} ${ARGN})
+-ENDFUNCTION (TPQT_CREATE_MOC_COMMAND_TARGET_DEPS)
++ENDFUNCTION ()
+
+ # add the -i option to QT_GENERATE_MOC
+ function(TPQT_GENERATE_MOC_I infile outfile)
+ qt5_get_moc_flags(moc_flags)
+ get_filename_component(abs_infile ${infile} ABSOLUTE)
+- qt5_create_moc_command(${abs_infile} ${outfile} "${moc_flags}" "-i")
++ qt_create_moc_command(${abs_infile} ${outfile} "${moc_flags}" "-i")
+ set_source_files_properties(${outfile} PROPERTIES SKIP_AUTOMOC TRUE) # dont run automoc on this file
+-endfunction(TPQT_GENERATE_MOC_I)
++endfunction()
+
+ # same as tpqt_generate_moc_i, but lets the caller specify a list of targets which the mocs should depend on
+ function(TPQT_GENERATE_MOC_I_TARGET_DEPS infile outfile)
+ qt5_get_moc_flags(moc_flags)
+ get_filename_component(abs_infile ${infile} ABSOLUTE)
+ tpqt_create_moc_command_target_deps(${abs_infile} ${outfile} "${moc_flags}" "-i" ${ARGN})
+ set_source_files_properties(${outfile} PROPERTIES SKIP_AUTOMOC TRUE) # dont run automoc on this file
+-endfunction(TPQT_GENERATE_MOC_I_TARGET_DEPS)
++endfunction()
+
+ # generates mocs for the passed list. The list should be added to the target's sources
+ function(tpqt_generate_mocs)
+ file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/_gen" )
+ foreach(moc_src ${ARGN})
+ string(REPLACE ".h" ".moc.hpp" generated_file ${moc_src})
+ tpqt_generate_moc_i(${CMAKE_CURRENT_SOURCE_DIR}/${moc_src} ${CMAKE_CURRENT_BINARY_DIR}/_gen/${generated_file})
+ set_property(SOURCE ${moc_src} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/${generated_file})
+- endforeach(moc_src ${ARGN})
+-endfunction(tpqt_generate_mocs)
++ endforeach()
++endfunction()
+
+ function(tpqt_client_generator spec group pretty_include namespace)
+ tpqt_extract_depends(client_generator_args client_generator_depends ${ARGN})
+@@ -223,18 +223,20 @@
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+
+ DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py
+- ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py)
++ ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py
++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/stable-spec.xml
++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/spec-${spec}.xml)
+ add_custom_target(generate_cli-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/cli-${spec}-body.hpp)
+ add_dependencies(all-generated-sources generate_cli-${spec}-body)
+
+ if (client_generator_depends)
+ add_dependencies(generate_cli-${spec}-body ${client_generator_depends})
+- endif (client_generator_depends)
++ endif ()
+
+ tpqt_generate_moc_i_target_deps(${CMAKE_CURRENT_BINARY_DIR}/_gen/cli-${spec}.h
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/cli-${spec}.moc.hpp
+ "generate_cli-${spec}-body")
+-endfunction(tpqt_client_generator spec group pretty_include namespace)
++endfunction()
+
+ function(tpqt_future_client_generator spec namespace)
+ tpqt_extract_depends(future_client_generator_args future_client_generator_depends ${ARGN})
+@@ -259,18 +261,20 @@
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+
+ DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py
+- ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py)
++ ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py
++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-spec.xml
++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}.xml)
+ add_custom_target(generate_future-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}-body.hpp)
+ add_dependencies(all-generated-sources generate_future-${spec}-body)
+
+ if (future_client_generator_depends)
+ add_dependencies(generate_future-${spec}-body ${future_client_generator_depends})
+- endif (future_client_generator_depends)
++ endif ()
+
+ tpqt_generate_moc_i_target_deps(${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}.h
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}.moc.hpp
+ "generate_future-${spec}-body")
+-endfunction(tpqt_future_client_generator spec namespace)
++endfunction()
+
+ function(tpqt_service_generator spec group pretty_include namespace)
+ tpqt_extract_depends(service_generator_args service_generator_depends ${ARGN})
+@@ -294,18 +298,20 @@
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+
+ DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py
+- ${CMAKE_SOURCE_DIR}/tools/qt-svc-gen.py)
++ ${CMAKE_SOURCE_DIR}/tools/qt-svc-gen.py
++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/stable-spec.xml
++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/spec-svc-${spec}.xml)
+ add_custom_target(generate_service-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/svc-${spec}.cpp)
+ add_dependencies(all-generated-service-sources generate_service-${spec}-body)
+
+ if (service_generator_depends)
+ add_dependencies(generate_service-${spec}-body ${service_generator_depends})
+- endif (service_generator_depends)
++ endif ()
+
+ tpqt_generate_moc_i_target_deps(${CMAKE_CURRENT_BINARY_DIR}/_gen/svc-${spec}.h
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/svc-${spec}.moc.hpp
+ "generate_service-${spec}-body")
+-endfunction(tpqt_service_generator spec group pretty_include namespace)
++endfunction()
+
+ # This function is used for generating CM in various examples
+ function(tpqt_generate_manager_file MANAGER_FILE OUTPUT_FILENAME DEPEND_FILENAME)
+@@ -324,7 +330,7 @@
+
+ set_source_files_properties(${DEPEND_FILENAME}
+ PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/param-spec-struct.h)
+-endfunction(tpqt_generate_manager_file MANAGER_FILE)
++endfunction()
+
+ function(tpqt_xincludator _TARGET_NAME _INPUT_FILE _OUTPUT_FILE)
+ tpqt_extract_depends(xincludator_gen_args xincludator_gen_depends ${ARGN})
+@@ -346,8 +352,8 @@
+
+ if (xincludator_gen_depends)
+ add_dependencies(${_TARGET_NAME} ${xincludator_gen_depends})
+- endif (xincludator_gen_depends)
+-endfunction(tpqt_xincludator _TARGET_NAME _INPUT_FILE _OUTPUT_FILE)
++ endif ()
++endfunction()
+
+ function(tpqt_constants_gen _TARGET_NAME _SPEC_XML _OUTFILE)
+ tpqt_extract_depends(constants_gen_args constants_gen_depends ${ARGN})
+@@ -371,8 +377,8 @@
+
+ if (constants_gen_depends)
+ add_dependencies(${_TARGET_NAME} ${constants_gen_depends})
+- endif (constants_gen_depends)
+-endfunction (tpqt_constants_gen _TARGET_NAME _SPEC_XML _OUTFILE)
++ endif ()
++endfunction ()
+
+ function(tpqt_types_gen _TARGET_NAME _SPEC_XML _OUTFILE_DECL _OUTFILE_IMPL _NAMESPACE _REALINCLUDE _PRETTYINCLUDE)
+ tpqt_extract_depends(types_gen_args types_gen_depends ${ARGN})
+@@ -398,8 +404,8 @@
+
+ if (types_gen_depends)
+ add_dependencies(${_TARGET_NAME} ${types_gen_depends})
+- endif (types_gen_depends)
+-endfunction(tpqt_types_gen _TARGET_NAME _SPEC_XML _OUTFILE_DECL _OUTFILE_IMPL _NAMESPACE _REALINCLUDE _PRETTYINCLUDE)
++ endif ()
++endfunction()
+
+ macro(tpqt_add_generic_unit_test _fancyName _name)
+ tpqt_generate_moc_i(${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp)
+@@ -410,7 +416,7 @@
+
+ # Valgrind and Callgrind targets
+ _tpqt_add_check_targets(${_fancyName} ${_name} ${CMAKE_CURRENT_BINARY_DIR}/runGenericTest.sh ${CMAKE_CURRENT_BINARY_DIR}/test-${_name})
+-endmacro(tpqt_add_generic_unit_test _fancyName _name)
++endmacro()
+
+ macro(tpqt_add_dbus_unit_test _fancyName _name)
+ tpqt_generate_moc_i(${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp)
+@@ -422,7 +428,7 @@
+
+ # Valgrind and Callgrind targets
+ _tpqt_add_check_targets(${_fancyName} ${_name} ${with_session_bus} ${CMAKE_CURRENT_BINARY_DIR}/test-${_name})
+-endmacro(tpqt_add_dbus_unit_test _fancyName _name)
++endmacro()
+
+ macro(_tpqt_add_check_targets _fancyName _name _runnerScript)
+ set_tests_properties(${_fancyName}
+@@ -474,20 +480,20 @@
+ COMMENT
+ "Running callgrind on test \"${_fancyName}\"")
+ add_dependencies(check-callgrind check-callgrind-${_fancyName})
+-endmacro(_tpqt_add_check_targets _fancyName _name)
++endmacro()
+
+ function(tpqt_setup_dbus_test_environment)
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/runDbusTest.sh "
+ ${test_environment}
+ sh ${CMAKE_SOURCE_DIR}/tools/with-session-bus.sh \\
+ --config-file=${CMAKE_BINARY_DIR}/tests/dbus-1/session.conf -- $@
+ ")
+-endfunction(tpqt_setup_dbus_test_environment)
++endfunction()
+
+ macro(make_install_path_absolute out in)
+ if (IS_ABSOLUTE "${in}")
+ set(${out} "${in}")
+- else (IS_ABSOLUTE "${in}")
++ else ()
+ set(${out} "\${TELEPATHY_QT${QT_VERSION_MAJOR}_INSTALL_DIR}/${in}")
+- endif (IS_ABSOLUTE "${in}")
+-endmacro(make_install_path_absolute out in)
++ endif ()
++endmacro()
+
diff --git a/net-libs/telepathy-logger-qt/metadata.xml b/net-libs/telepathy-logger-qt/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/net-libs/telepathy-logger-qt/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild b/net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild
new file mode 100644
index 000000000000..3fcd609b29e8
--- /dev/null
+++ b/net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit kde5 python-any-r1
+
+DESCRIPTION="Qt bindings for the Telepathy logger"
+HOMEPAGE="https://projects.kde.org/projects/extragear/network/telepathy/telepathy-logger-qt"
+
+if [[ ${KDE_BUILD_TYPE} = live ]]; then
+ KEYWORDS=""
+else
+ SRC_URI="mirror://kde/stable/telepathy-logger-qt/${PV%.*}/src/${P}.tar.xz"
+ KEYWORDS="amd64 x86"
+fi
+
+LICENSE="LGPL-2.1"
+IUSE=""
+
+RDEPEND="
+ $(add_qt_dep qtdbus)
+ dev-libs/dbus-glib
+ dev-libs/glib:2
+ dev-libs/libxml2
+ net-im/telepathy-logger
+ net-libs/telepathy-glib
+ net-libs/telepathy-qt[qt5(+)]
+ sys-apps/dbus
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+"
+
+PATCHES=( "${FILESDIR}/${P}-cmake-3.9.patch" )
diff --git a/net-libs/telepathy-logger-qt/telepathy-logger-qt-17.08.0.ebuild b/net-libs/telepathy-logger-qt/telepathy-logger-qt-17.08.0.ebuild
new file mode 100644
index 000000000000..17435e6cc0f3
--- /dev/null
+++ b/net-libs/telepathy-logger-qt/telepathy-logger-qt-17.08.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit kde5 python-any-r1
+
+DESCRIPTION="Qt bindings for the Telepathy logger"
+HOMEPAGE="https://projects.kde.org/projects/extragear/network/telepathy/telepathy-logger-qt"
+
+if [[ ${KDE_BUILD_TYPE} = release ]]; then
+ SRC_URI="mirror://kde/stable/telepathy-logger-qt/${PV%.*}/src/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+IUSE=""
+
+RDEPEND="
+ $(add_qt_dep qtdbus)
+ dev-libs/dbus-glib
+ dev-libs/glib:2
+ dev-libs/libxml2
+ net-im/telepathy-logger
+ net-libs/telepathy-glib
+ net-libs/telepathy-qt[qt5(+)]
+ sys-apps/dbus
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+"
diff --git a/net-libs/telepathy-qt/Manifest b/net-libs/telepathy-qt/Manifest
new file mode 100644
index 000000000000..638003fbe563
--- /dev/null
+++ b/net-libs/telepathy-qt/Manifest
@@ -0,0 +1,8 @@
+AUX telepathy-qt-0.9.6.1-qtpath.patch 935 SHA256 ff90fd5a0df73b4fdcc4e0d9dcb462f94b2c09be1e4dc3da74e0a02c52d23e42 SHA512 8b1351e005db5b85e39bc56e666dff000f7acc1bf1cf1d1df9577b8da1f7fbde6ee4a0abd0c81ba757aa49c8a30efb9fa3e46561efd9e2c64d69ee818b80a42f WHIRLPOOL 7a8fcabfbb8c3be899280ff078ba1126abd7ba2371262e9760c132fdaefa5de834ee94c52b86600dfa504c8dc0856301295f891a5ac3f9e428cd52f7670e50c1
+AUX telepathy-qt-0.9.6.1-yes-release.patch 578 SHA256 9ff91927a01d1d34060f42463c2b64bc280d7babab2a8cf80601f0d55d5547f3 SHA512 c0c3e3e6b698aa5410d33653f36a1dac044054fa03830f1c78c1a1d82aa74e24ef84d4ccfc8b3ce295e655f2618aa318c863b8b49303097d5774e789efb4cc80 WHIRLPOOL b20bf88549fc3d5ebf0d99d7f50fce0bfae9f07b35b56cf79b9f61f989a183e758d0c345ec73fe9916f08c1857cee736c2856a17cd42dd0e764c9617cc50dcf0
+DIST telepathy-qt-0.9.7.tar.gz 6213405 SHA256 21bad30be7ebc4ba667d53d92cd1cec1be23114103f2149404d9740721693d4f SHA512 081daecb2509ea690079014bcc88eacbf2b3e4f4ac42aaf1b0cb264c01b801bc499a041482571d383f258cb3d3e2c6ffa5682fbe417fe807fcc25a06d2ead877 WHIRLPOOL 81569b648ae51ba932d1a212d69cd51a727201f5c36f7b91fe2da52ec0ed3a3fc01165a260f262e182474a383ff614ea6e4ee7dd6691add04052b1f4d14cd63d
+EBUILD telepathy-qt-0.9.7-r1.ebuild 1368 SHA256 02c61f72d761c832ebd59966c4fe2e440d52b31c4a1e503f7d1a94538c40ae90 SHA512 b200a19741a41e80f5aca9c2935851fbe3d94f3416c96f4857d7f557315c4df1d927bb0d7e8b1432714de52622fa967bc333f13f5e87682ad2febdbdf3e828e9 WHIRLPOOL 99f6eae42b0062c711d02d7cc21265c57cd609ec0aa6b38a2eeddd11701b2090a1cd366950b0cfe72fee7be5be6ec7e26a00ab2c6f39072dfc42144ea81decd5
+EBUILD telepathy-qt-0.9.7.ebuild 2064 SHA256 2ac0a043464586ed02653b307d6c7869165ed724e17765134cdea83eb94a1023 SHA512 e65c96f9426b15689e993da6c2dc1f89377723bb769aeb6b386ab19fa48a9ed2cba0e60f79f7b14300a72071fc0e65cd85c2845098e2c7ea6aab2cb4baa7771e WHIRLPOOL d1fa1b09ae37f052a9dc8333669c099023f4c125a7ed90cff9f72ae6c97c38989fc68a8661621ae287b7fda7e3521805df4729887b9ebc82ee3142b755ec060c
+MISC ChangeLog 6252 SHA256 1d82e57eb0256ea68e8d883325fd7814c04fc545eca4ea0b2ea6da9b243fcdb2 SHA512 1379678cd8aca52f4870936e4e5e617dd3f02dd3ed5255a93c5179bd112c408079827c817086e00ee00449df8069de6a62d4d2d3b188119ecc5b00e20baf7d94 WHIRLPOOL c512eed746b10c51bd40ca7847815989f2133121f0f4fa053279866ffde08b01a1e3c76bcd68c4c6b38c58f8946de6d69b07abddf33c5c57f9e732456e1cc50e
+MISC ChangeLog-2015 8224 SHA256 092aaefc81e46cd5ea9b7b1300d4d85934f4092e47684de533d35791d2b839f1 SHA512 f0c238dd82dec9d5a8a488ad03578264789a8002d9ef7a69ed570ff1e03d43f4d05a8c7625caa23e64b2586a7a3dea89404deb1e0ccf81a7062d98950f13e3d1 WHIRLPOOL 25752e3762e455d480e3e517fc981cc03f767291e401c4b2b7a818f6a13d9f5e6254dd6f0a01dc6ca03ce2c06ebdfe534777de80a710a31656f759e8534a1b97
+MISC metadata.xml 772 SHA256 97ef34e162004fe597ca5792a9484b3c5879ec454b86c9e11333d60bf985e68b SHA512 592a624b936e4c1067e611cb32aa7b0ac7dcb7653be04e87bb1b9bad46650248efc472c96e366d936052f95f685802ebd522855b42d35cd6ababb35c9524215a WHIRLPOOL c294b6c728c42c782a190a14d4f288a8f118b9d7fe18548e7e5667423f08a74fad62a0a72bba6bb55d0b70215e05ed67bf13aa8fc638c84e4cf4a1fa1e2f7c91
diff --git a/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch b/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch
new file mode 100644
index 000000000000..a14e1da1a658
--- /dev/null
+++ b/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch
@@ -0,0 +1,21 @@
+Ensure that the correct version of Qt is always used.
+
+With the introduction qt-4.8.6, Qt binaries were moved from /usr/bin to
+/usr/$(get_libdir)/qt4/bin, leaving behind in their place symlinks to qtchooser.
+
+There is no guarantee to which version of Qt these symlinks might point, so it
+is necessary to find the correct version explicitly.
+
+Once qmake is found, it is queried for the correct location of all other items.
+
+--- a/cmake/modules/FindQt.cmake
++++ b/cmake/modules/FindQt.cmake
+@@ -19,7 +19,7 @@
+ IF(NOT QT5_INSTALLED)
+ IF(NOT QT_QMAKE_EXECUTABLE)
+ FIND_PROGRAM(QT_QMAKE_EXECUTABLE_FINDQT NAMES qmake qmake4 qmake-qt4 qmake5 qmake-qt5
+- PATHS "${QT_SEARCH_PATH}/bin" "$ENV{QTDIR}/bin")
++ PATHS /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin /usr/bin NO_DEFAULT_PATH)
+ SET(QT_QMAKE_EXECUTABLE ${QT_QMAKE_EXECUTABLE_FINDQT} CACHE PATH "Qt qmake program.")
+ ENDIF(NOT QT_QMAKE_EXECUTABLE)
+
diff --git a/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-yes-release.patch b/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-yes-release.patch
new file mode 100644
index 000000000000..97a880c72ca7
--- /dev/null
+++ b/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-yes-release.patch
@@ -0,0 +1,17 @@
+diff --git a/cmake/modules/TelepathyDefaults.cmake b/cmake/modules/TelepathyDefaults.cmake
+index d34b24d..eb51454 100644
+--- a/cmake/modules/TelepathyDefaults.cmake
++++ b/cmake/modules/TelepathyDefaults.cmake
+@@ -59,11 +59,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
+ set(DEPRECATED_DECLARATIONS_FLAGS)
+ endif (CXX_DEPRECATED_DECLARATIONS)
+
+- if(${TP_QT_NANO_VERSION} EQUAL 0)
+- set(NOT_RELEASE 0)
+- else(${TP_QT_NANO_VERSION} EQUAL 0)
+- set(NOT_RELEASE 1)
+- endif(${TP_QT_NANO_VERSION} EQUAL 0)
++ set(NOT_RELEASE 0)
+
+ set(desired
+ all
diff --git a/net-libs/telepathy-qt/metadata.xml b/net-libs/telepathy-qt/metadata.xml
new file mode 100644
index 000000000000..0bfa4d0b48ae
--- /dev/null
+++ b/net-libs/telepathy-qt/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>akulichalexander@gmail.com</email>
+ <name>Alexandr Akulich</name>
+ <description>Proxy maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="farstream">Enable support for audio/video calls via farstream</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/telepathy-qt/telepathy-qt-0.9.7-r1.ebuild b/net-libs/telepathy-qt/telepathy-qt-0.9.7-r1.ebuild
new file mode 100644
index 000000000000..fe116123a3ea
--- /dev/null
+++ b/net-libs/telepathy-qt/telepathy-qt-0.9.7-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-any-r1 cmake-utils virtualx
+
+DESCRIPTION="Qt bindings for the Telepathy D-Bus protocol"
+HOMEPAGE="https://telepathy.freedesktop.org/"
+SRC_URI="https://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="debug farstream test"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtxml:5
+ farstream? (
+ >=net-libs/telepathy-farstream-0.2.2
+ >=net-libs/telepathy-glib-0.18.0
+ )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+ test? (
+ dev-libs/dbus-glib
+ dev-libs/glib:2
+ dev-python/dbus-python
+ dev-qt/qttest:5
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.9.6.1-yes-release.patch"
+ "${FILESDIR}/${PN}-0.9.6.1-qtpath.patch"
+)
+
+# bug 549448 - last checked with 0.9.7
+RESTRICT="test"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDESIRED_QT_VERSION=5
+ -DENABLE_DEBUG_OUTPUT=$(usex debug)
+ -DENABLE_FARSTREAM=$(usex farstream)
+ -DENABLE_TESTS=$(usex test)
+ -DENABLE_EXAMPLES=OFF
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ _test_runner() {
+ ctest -E '(CallChannel)'
+ }
+
+ pushd "${BUILD_DIR}" > /dev/null || die
+ virtx _test_runner
+ popd > /dev/null || die
+}
diff --git a/net-libs/telepathy-qt/telepathy-qt-0.9.7.ebuild b/net-libs/telepathy-qt/telepathy-qt-0.9.7.ebuild
new file mode 100644
index 000000000000..859d1d251680
--- /dev/null
+++ b/net-libs/telepathy-qt/telepathy-qt-0.9.7.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-any-r1 cmake-utils virtualx multibuild
+
+DESCRIPTION="Qt bindings for the Telepathy D-Bus protocol"
+HOMEPAGE="https://telepathy.freedesktop.org/"
+SRC_URI="https://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="debug farstream +qt4 qt5 test"
+
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+RDEPEND="
+ farstream? (
+ >=net-libs/telepathy-farstream-0.2.2
+ >=net-libs/telepathy-glib-0.18.0
+ )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtxml:5
+ )
+ !net-libs/telepathy-qt4
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+ test? (
+ dev-libs/dbus-glib
+ dev-libs/glib:2
+ dev-python/dbus-python
+ qt4? ( dev-qt/qttest:4 )
+ qt5? ( dev-qt/qttest:5 )
+ )
+"
+
+DOCS=( AUTHORS ChangeLog HACKING NEWS README )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.9.6.1-yes-release.patch"
+ "${FILESDIR}/${PN}-0.9.6.1-qtpath.patch"
+)
+
+# bug 549448 - last checked with 0.9.7
+RESTRICT="test"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+
+ MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
+}
+
+src_configure() {
+ myconfigure() {
+ local mycmakeargs=(
+ -DENABLE_DEBUG_OUTPUT=$(usex debug)
+ -DENABLE_FARSTREAM=$(usex farstream)
+ -DENABLE_TESTS=$(usex test)
+ -DENABLE_EXAMPLES=OFF
+ )
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ mycmakeargs+=( -DDESIRED_QT_VERSION=4 )
+ fi
+ if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ mycmakeargs+=( -DDESIRED_QT_VERSION=5 )
+ fi
+ cmake-utils_src_configure
+ }
+
+ multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+ multibuild_foreach_variant cmake-utils_src_compile
+}
+
+src_test() {
+ _test_runner() {
+ ctest -E '(CallChannel)'
+ }
+
+ mytest() {
+ pushd "${BUILD_DIR}" > /dev/null || die
+ virtx _test_runner
+ popd > /dev/null || die
+ }
+
+ multibuild_foreach_variant mytest
+}
+
+src_install() {
+ multibuild_foreach_variant cmake-utils_src_install
+}
diff --git a/net-libs/tox/Manifest b/net-libs/tox/Manifest
new file mode 100644
index 000000000000..b9e4b3ab10a7
--- /dev/null
+++ b/net-libs/tox/Manifest
@@ -0,0 +1,13 @@
+AUX confd 27 SHA256 eb0aa3b25232a64971c6b39799c384577cf85ffe16ec41119b6b4e8336649cd5 SHA512 1f7d9888a794ca4db64332430f6fd4ed3e257618fd87855922ff9186bca332827197f4f5aa199a27586fd2fcee04ed4d617bbaeb3866d9ba6f9c37ff8cb61ba1 WHIRLPOOL 6ee1adbbaf88b3334c19b60ec4b25081900afcf95f290b1376ef70c39bdeb5dfc7cb5e02f396dd2d2f010bba924595fa39d35cbfab01e03c1c274a0f8a171524
+AUX initd 524 SHA256 6d490b473102783ec9a491a9b7f4886d52393498e5495bca4d27a95fcbf35f52 SHA512 01e564d9e056b55e68586630cb5af5875c9ad02cde74610d85ea2c23673a4b9fd2b6fe206f25e9c625d63dc41fa56f6360de9191ba46851b88d090cce0ea34ad WHIRLPOOL 0dddf412173493e4e464df9bf9b71669f0a5a29398af793f59b59c47788556adc02fe31f14bd65849eccccbf6fe39cbb851330de88d95db6d2152bad72383939
+AUX tox-bootstrapd.conf 2171 SHA256 50857064339feba2e087364984d2af329fcf3c526fb559f1ee52d6f7406a1a62 SHA512 b2fc5db3facc47bc9ae13824ff355b2e7fb496f489ef5e5cc01d17d8fe31befa740d510d76130967c858930ae6ef6183a5feff5a6a0b6853a008100859e4afda WHIRLPOOL 11af2838d1f0e471194303021c0653ce4166493f59eb55affffd66d5e3bc83d446275d553db5c458dcd36a8ea0b29bdc17d00b5815bdd0449708a8bea75693a0
+AUX tox-bootstrapd.service 356 SHA256 cf871bebb33b4b1e3bf15bceb6809fa8ab85d16d1c1f8ef86e42a93d8d32d9e0 SHA512 7811da914bd0f496cec0540470ef2263c7899c0adbc27611c0ce5c108507b0c27978785d675c93d6fd7ef826336551fec534d39338e581e4d0e81af30581772d WHIRLPOOL 94b9fcdb039b690cd8f5cb0eac49eb9362ca1ff365ccbfb952e7a83767a6eec96c8e96ce925397aaa49bebf09d2c87b190062609414772625a5c91fd2ec6c85c
+DIST c-toxcore-0.1.10.tar.gz 820090 SHA256 4e9a2881dd0ea8e65a35fc9621644ccf500c1797a2d37983b0057ed3be971299 SHA512 428fee2d811d0b6d5d005f082aa06f95765794b1a8bc77ec4411bb9ec9085b99675535b88db50f5ad7313850a0bb3c54c4e2e8d8864cea7c0c7d81be9879b157 WHIRLPOOL 122a6f89c1d34afc685b80e74b9c20e3175ba49865d25a580f0e850d7851304b9077842f23084d4691efa9896d33ddfe136deac034d0eb51f821622e068bc988
+DIST tox-0.1.6.tar.lz 314837 SHA256 c51dfaf30cddbfb9a6080c8202d68113452224570109cd9a6f1b7d9709eae6af SHA512 57ed7cee2c621c57e24f5ab36d68d99414d9820cdb3e8b7c4390818222f9d885f352f9cf76c8eb522c238bebc7d420bcf3cdd5f6ab65b9801aadbd225765166c WHIRLPOOL f75b27ade0f87f3793affbd291aba4b9e2387a29cd89deaf1351ed0797f634737938ff68d95a9fa1866891a68fa7a3b7f1c7ff0b68e3865eb7835fb9c4e5ff8b
+DIST tox-0_pre20160904.tar.gz 395495 SHA256 2d4a0d096bdb81b12b10551765fb9f87270e170f10f387f700b3def68cb6c35c SHA512 c0da52ac908141e97e96510a05431cbfb4b9aae81faf4c136c95e21b90a23e3bbe6db88303e48c0f4f3c74ca954229787564b7aa41bfb462afb0d8f8430cdaa1 WHIRLPOOL abd3f61784fac93d983e453515d1e8bc87f7d76651a53ce6f566a277d7ec7c1e03294d95781364ce9ab30f2698c6f5cd552bfa4888f8d5d0d315daf038980c63
+EBUILD tox-0.1.10.ebuild 2214 SHA256 536e3a430ef50c6a60bf2ad60287de2760d69ae6b6575eac0f0291c51c8cf51d SHA512 c57222375a9135a00053ad05567658ab5c108015733e23b2aeb89e4ef93a835e3df3db9b65d3f01dddc38336d97bca366a4e1972c7d44471cf6a47c3913cebc4 WHIRLPOOL 887a66531d7ab4947d12303c6b6528155ac6c41af303a05851b50cb5de0e7833dd5457ee3cdd93c436d541a3006f746bd3b02bd0066315b9e0c90ccf3a43fa24
+EBUILD tox-0.1.6.ebuild 2250 SHA256 672084ac2cc6c4a08a89f337c3ab112b8242af867644f9e3671da9a92132c887 SHA512 3566194ff9f4afc1ccb95cce44ecc47b13c3ad1b0ee8eecd6acbfd4e122deed63342ccd23eda9202070aba9f59e21328e610d454a2209edc3d513d54ed2963c1 WHIRLPOOL c87b392d2b502e0a595fc9cde58de3959e004d75e5ec43af080d7364d2c8c1fd9b2c2c99951beacc79303a24e465a3805180e1a5071dea27abaed35e8e80fab4
+EBUILD tox-0_pre20160904.ebuild 2237 SHA256 7ec4f96f048f1c511e3d63063f4cc472dba0079275da17cb67bf73aed8933562 SHA512 123f25a734fbd69c6d48d594359264b1ddfe9ad2423ebf8bf5f768e352e38b9d59d3be42932d6709340900fcc45131d5496bf0f474ea9ed70753a3d97c841543 WHIRLPOOL ec18d991b7112a6ec10a9a2bf7b357c57b3a3143a3aa9ccdadcdd68441ac29a400b9b000313a267e36296d8daf57f77743d8c79134376f106fce11136720db9f
+EBUILD tox-9999.ebuild 2146 SHA256 f7a0f301ae09f85946b9bc90cdc5f162e061ba97309639f7ef2622361bd0462e SHA512 d4f6aee075b56a8e034488c3f4b0808544dd718751a4cbcaf2ca81d6fdf04b4b4dfaa68f17665faa7457af36398769ba26d73545b1e1a6ee803001eeb9ce36dc WHIRLPOOL 13f658be5ef3e48e5f8d810b6b05a00f490e610cd3af3149b8e113f22c4b180a68323bf2962c87da7c130fe563a9506f2af9effd477bb718f6934b1da63dd97b
+MISC ChangeLog 2185 SHA256 53747c4875fdcd861798d08c5f324cc7319d6163df4bde0eff763784c1ff8c54 SHA512 b8897c4b229d2a0b517222dc817ef72942735875c8e15894e83dbf0deacbac81ffb336090e3cc32fb90b5ae78f07d976c31742f8dd15c7fb1481b5645b71ba9a WHIRLPOOL d3005cabfef99231618c9fd84931719886599d4b9cb7a4299c7672d299d9b9ae1a8303f5b5537c1f461eb57ec05b48480089cb1137aa92d93631ea3f5a4d8e60
+MISC metadata.xml 993 SHA256 d8ce0668b05a54387e04f4d4667d08598109aaac5eb94d457f4b3b1cb9d77e07 SHA512 27348dc74fa485f5972a089cacd2536601e3256e617d5e9f7b181c022d8232a5945264cab2272e36f64263f887a7ae24f50efbd5a2d47b3b7a2a3ec16cc6b645 WHIRLPOOL 47ab496e378d2e20b5600e98c37e093056a4f989fe3d5474486086bcafb6ae4c530c78bd5ea86639a3e7c8a401762e8b7b02d8500613b52d11cd974eb4ebc356
diff --git a/net-libs/tox/files/confd b/net-libs/tox/files/confd
new file mode 100644
index 000000000000..33f850bff01b
--- /dev/null
+++ b/net-libs/tox/files/confd
@@ -0,0 +1,2 @@
+TOX_GROUP=tox
+TOX_USER=tox
diff --git a/net-libs/tox/files/initd b/net-libs/tox/files/initd
new file mode 100644
index 000000000000..f08c59457e5a
--- /dev/null
+++ b/net-libs/tox/files/initd
@@ -0,0 +1,30 @@
+#!/sbin/openrc-run
+
+PIDDIR=/run/tox-bootstrapd
+PIDFILE="${PIDDIR}"/tox-bootstrap.pid
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting tox-dht-bootstrap daemon"
+
+ checkpath -d -q -o "${TOX_USER}":"${TOX_GROUP}" "${PIDDIR}"
+
+ start-stop-daemon --start \
+ --pidfile "${PIDFILE}" \
+ --user="${TOX_USER}" --group="${TOX_GROUP}" \
+ --exec /usr/bin/tox-bootstrapd -- /etc/tox-bootstrapd.conf
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping tox-dht-bootstrap daemon"
+
+ start-stop-daemon --stop \
+ --pidfile "${PIDFILE}"
+
+ eend $?
+}
diff --git a/net-libs/tox/files/tox-bootstrapd.conf b/net-libs/tox/files/tox-bootstrapd.conf
new file mode 100644
index 000000000000..3413f5907d46
--- /dev/null
+++ b/net-libs/tox/files/tox-bootstrapd.conf
@@ -0,0 +1,65 @@
+// Tox DHT bootstrap daemon configuration file.
+
+// Listening port (UDP).
+port = 33445
+
+// A key file is like a password, so keep it where no one can read it.
+// If there is no key file, a new one will be generated.
+// The daemon should have permission to read/write it.
+keys_file_path = "/var/lib/tox-bootstrapd/keys"
+
+// The PID file written to by the daemon.
+// Make sure that the user that daemon runs as has permissions to write to the
+// PID file.
+pid_file_path = "/var/run/tox-bootstrapd/tox-bootstrapd.pid"
+
+// Enable IPv6.
+enable_ipv6 = true
+
+// Fallback to IPv4 in case IPv6 fails.
+enable_ipv4_fallback = true
+
+// Automatically bootstrap with nodes on local area network.
+enable_lan_discovery = true
+
+enable_tcp_relay = true
+
+// While Tox uses 33445 port by default, 443 (https) and 3389 (rdp) ports are very
+// common among nodes, so it's encouraged to keep them in place.
+tcp_relay_ports = [443, 3389, 33445]
+
+// Reply to MOTD (Message Of The Day) requests.
+enable_motd = true
+
+// Just a message that is sent when someone requests MOTD.
+// Put anything you want, but note that it will be trimmed to fit into 255 bytes.
+motd = "tox-bootstrapd"
+
+// Any number of nodes the daemon will bootstrap itself off.
+//
+// Remember to replace the provided example with your own node list.
+// There is a maintained list of bootstrap nodes on Tox's wiki, if you need it
+// (https://wiki.tox.chat/users/nodes).
+//
+// You may leave the list empty or remove "bootstrap_nodes" completely,
+// in both cases this will be interpreted as if you don't want to bootstrap
+// from anyone.
+//
+// address = any IPv4 or IPv6 address and also any US-ASCII domain name.
+bootstrap_nodes = (
+ { // Example Node 1 (IPv4)
+ address = "127.0.0.1"
+ port = 33445
+ public_key = "728925473812C7AAC482BE7250BCCAD0B8CB9F737BF3D42ABD34459C1768F854"
+ },
+ { // Example Node 2 (IPv6)
+ address = "::1/128"
+ port = 33445
+ public_key = "3E78BACF0F84235B30054B54898F56793E1DEF8BD46B1038B9D822E8460FAB67"
+ },
+ { // Example Node 3 (US-ASCII domain name)
+ address = "example.org"
+ port = 33445
+ public_key = "8CD5A9BF0A6CE358BA36F7A653F99FA6B258FF756E490F52C1F98CC420F78858"
+ }
+)
diff --git a/net-libs/tox/files/tox-bootstrapd.service b/net-libs/tox/files/tox-bootstrapd.service
new file mode 100644
index 000000000000..c841b3c2cd9d
--- /dev/null
+++ b/net-libs/tox/files/tox-bootstrapd.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Tox DHT Bootstrap Daemon
+After=network.target
+
+[Service]
+User=tox
+Group=tox
+RuntimeDirectory=tox-bootstrapd
+PIDFile=/run/tox-bootstrapd/tox-bootstrapd.pid
+WorkingDirectory=/var/lib/tox-bootstrapd
+ExecStart=/usr/bin/tox-bootstrapd /etc/tox-bootstrapd.conf
+#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-libs/tox/metadata.xml b/net-libs/tox/metadata.xml
new file mode 100644
index 000000000000..a057ca4ee5f9
--- /dev/null
+++ b/net-libs/tox/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>zexavexxe@gmail.com</email>
+ <name>Zetok Zalbavar</name>
+ <description>Proxy maintainers. CC him on bugs</description>
+ </maintainer>
+ <use>
+ <flag name="av">Adds support for audio and video.</flag>
+ <flag name="no-log">Log level: 0 (no debug info logged)</flag>
+ <flag name="log-error">Log level: 1</flag>
+ <flag name="log-warn">Log level: 2</flag>
+ <flag name="log-info">Log level: 3</flag>
+ <flag name="log-debug">Log level: 4</flag>
+ <flag name="log-trace">Log level: 5</flag>
+ <flag name="ntox">Enable the testing nTox client.</flag>
+ <flag name="daemon">Enable the DHT Bootstrap Daemon.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">TokTok/c-toxcore</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/tox/tox-0.1.10.ebuild b/net-libs/tox/tox-0.1.10.ebuild
new file mode 100644
index 000000000000..ce36d2840170
--- /dev/null
+++ b/net-libs/tox/tox-0.1.10.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd user
+
+DESCRIPTION="Encrypted P2P, messaging, and audio/video calling platform"
+HOMEPAGE="https://tox.chat"
+SRC_URI="https://github.com/TokTok/c-toxcore/releases/download/v${PV}/c-toxcore-${PV}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0/0.1"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+av daemon log-debug log-error log-info log-trace log-warn +no-log ntox static-libs test"
+
+REQUIRED_USE="^^ ( no-log log-trace log-debug log-info log-warn log-error )"
+
+RDEPEND="
+ av? ( media-libs/libvpx:=
+ media-libs/opus )
+ daemon? ( dev-libs/libconfig )
+ ntox? ( sys-libs/ncurses:0= )
+ >=dev-libs/libsodium-0.6.1:=[asm,urandom]"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )
+ virtual/pkgconfig"
+
+S="${WORKDIR}/c-toxcore-${PV}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(usex log-trace "--enable-logging --with-log-level=TRACE" "") \
+ $(usex log-debug "--enable-logging --with-log-level=DEBUG" "") \
+ $(usex log-info "--enable-logging --with-log-level=INFO" "") \
+ $(usex log-warn "--enable-logging --with-log-level=WARNING" "") \
+ $(usex log-error "--enable-logging --with-log-level=ERROR" "") \
+ $(use_enable av) \
+ $(use_enable test tests) \
+ $(use_enable ntox) \
+ $(use_enable daemon) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ if use daemon; then
+ newinitd "${FILESDIR}"/initd tox-dht-daemon
+ newconfd "${FILESDIR}"/confd tox-dht-daemon
+ insinto /etc
+ doins "${FILESDIR}"/tox-bootstrapd.conf
+ systemd_dounit "${FILESDIR}"/tox-bootstrapd.service
+ fi
+
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ if use daemon; then
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+ if [[ -f ${EROOT%/}/var/lib/tox-dht-bootstrap/key ]]; then
+ ewarn "Backwards compatability with the bootstrap daemon might have been"
+ ewarn "broken a while ago. To resolve this issue, REMOVE the following files:"
+ ewarn " ${EROOT%/}/var/lib/tox-dht-bootstrap/key"
+ ewarn " ${EROOT%/}/etc/tox-bootstrapd.conf"
+ ewarn " ${EROOT%/}/run/tox-dht-bootstrap/tox-dht-bootstrap.pid"
+ ewarn "Then just reinstall net-libs/tox"
+ fi
+ fi
+}
diff --git a/net-libs/tox/tox-0.1.6.ebuild b/net-libs/tox/tox-0.1.6.ebuild
new file mode 100644
index 000000000000..6f3d6ba59e87
--- /dev/null
+++ b/net-libs/tox/tox-0.1.6.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd unpacker user
+
+DESCRIPTION="Encrypted P2P, messaging, and audio/video calling platform"
+HOMEPAGE="https://tox.chat"
+SRC_URI="https://github.com/TokTok/c-toxcore/releases/download/v${PV}/c-toxcore-v${PV}.tar.lz -> ${P}.tar.lz"
+
+LICENSE="GPL-3+"
+SLOT="0/0.1"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+av daemon log-debug log-error log-info log-trace log-warn +no-log ntox static-libs test"
+
+REQUIRED_USE="^^ ( no-log log-trace log-debug log-info log-warn log-error )"
+
+RDEPEND="
+ av? ( media-libs/libvpx:=
+ media-libs/opus )
+ daemon? ( dev-libs/libconfig )
+ ntox? ( sys-libs/ncurses:0= )
+ >=dev-libs/libsodium-0.6.1:=[asm,urandom]"
+DEPEND="${RDEPEND}
+ $(unpacker_src_uri_depends)
+ test? ( dev-libs/check )
+ virtual/pkgconfig"
+
+S=${WORKDIR}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(usex log-trace "--enable-logging --with-log-level=TRACE" "") \
+ $(usex log-debug "--enable-logging --with-log-level=DEBUG" "") \
+ $(usex log-info "--enable-logging --with-log-level=INFO" "") \
+ $(usex log-warn "--enable-logging --with-log-level=WARNING" "") \
+ $(usex log-error "--enable-logging --with-log-level=ERROR" "") \
+ $(use_enable av) \
+ $(use_enable test tests) \
+ $(use_enable ntox) \
+ $(use_enable daemon) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ if use daemon; then
+ newinitd "${FILESDIR}"/initd tox-dht-daemon
+ newconfd "${FILESDIR}"/confd tox-dht-daemon
+ insinto /etc
+ doins "${FILESDIR}"/tox-bootstrapd.conf
+ systemd_dounit "${FILESDIR}"/tox-bootstrapd.service
+ fi
+
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ if use daemon; then
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+ if [[ -f ${EROOT%/}/var/lib/tox-dht-bootstrap/key ]]; then
+ ewarn "Backwards compatability with the bootstrap daemon might have been"
+ ewarn "broken a while ago. To resolve this issue, REMOVE the following files:"
+ ewarn " ${EROOT%/}/var/lib/tox-dht-bootstrap/key"
+ ewarn " ${EROOT%/}/etc/tox-bootstrapd.conf"
+ ewarn " ${EROOT%/}/run/tox-dht-bootstrap/tox-dht-bootstrap.pid"
+ ewarn "Then just re-emerge net-libs/tox"
+ fi
+ fi
+}
diff --git a/net-libs/tox/tox-0_pre20160904.ebuild b/net-libs/tox/tox-0_pre20160904.ebuild
new file mode 100644
index 000000000000..ee3124095514
--- /dev/null
+++ b/net-libs/tox/tox-0_pre20160904.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd user vcs-snapshot
+
+DESCRIPTION="Encrypted P2P, messaging, and audio/video calling platform"
+HOMEPAGE="https://tox.chat"
+EGIT_COMMIT="755f084e8720b349026c85afbad58954cb7ff1d4"
+SRC_URI="https://github.com/irungentoo/toxcore/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0/0.0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+av daemon log-debug log-error log-info log-trace log-warn +no-log ntox static-libs test"
+
+REQUIRED_USE="^^ ( no-log log-trace log-debug log-info log-warn log-error )"
+
+RDEPEND="
+ av? ( media-libs/libvpx:=
+ media-libs/opus )
+ daemon? ( dev-libs/libconfig )
+ ntox? ( sys-libs/ncurses:0= )
+ >=dev-libs/libsodium-0.6.1:=[asm,urandom]"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(usex log-trace "--enable-logging --with-log-level=TRACE" "") \
+ $(usex log-debug "--enable-logging --with-log-level=DEBUG" "") \
+ $(usex log-info "--enable-logging --with-log-level=INFO" "") \
+ $(usex log-warn "--enable-logging --with-log-level=WARNING" "") \
+ $(usex log-error "--enable-logging --with-log-level=ERROR" "") \
+ $(use_enable av) \
+ $(use_enable test tests) \
+ $(use_enable ntox) \
+ $(use_enable daemon) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ if use daemon; then
+ newinitd "${FILESDIR}"/initd tox-dht-daemon
+ newconfd "${FILESDIR}"/confd tox-dht-daemon
+ insinto /etc
+ doins "${FILESDIR}"/tox-bootstrapd.conf
+ systemd_dounit "${FILESDIR}"/tox-bootstrapd.service
+ fi
+
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ if use daemon; then
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+ if [[ -f ${EROOT}var/lib/tox-dht-bootstrap/key ]]; then
+ ewarn "Backwards compatability with the bootstrap daemon might have been"
+ ewarn "broken a while ago. To resolve this issue, REMOVE the following files:"
+ ewarn " ${EROOT}var/lib/tox-dht-bootstrap/key"
+ ewarn " ${EROOT}etc/tox-bootstrapd.conf"
+ ewarn " ${EROOT}run/tox-dht-bootstrap/tox-dht-bootstrap.pid"
+ ewarn "Then just re-emerge net-libs/tox"
+ fi
+ fi
+}
diff --git a/net-libs/tox/tox-9999.ebuild b/net-libs/tox/tox-9999.ebuild
new file mode 100644
index 000000000000..e7b2b5569ca2
--- /dev/null
+++ b/net-libs/tox/tox-9999.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools git-r3 user systemd
+
+DESCRIPTION="Encrypted P2P, messaging, and audio/video calling platform"
+HOMEPAGE="https://tox.chat"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/TokTok/c-toxcore.git"
+
+LICENSE="GPL-3+"
+SLOT="0/0.1"
+KEYWORDS=""
+IUSE="+av daemon log-debug log-error log-info log-trace log-warn +no-log ntox static-libs test"
+
+REQUIRED_USE="^^ ( no-log log-trace log-debug log-info log-warn log-error )"
+
+RDEPEND="
+ av? ( media-libs/libvpx:=
+ media-libs/opus )
+ daemon? ( dev-libs/libconfig )
+ ntox? ( sys-libs/ncurses:0= )
+ >=dev-libs/libsodium-0.6.1:=[asm,urandom]"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/check )
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(usex log-trace "--enable-logging --with-log-level=TRACE" "") \
+ $(usex log-debug "--enable-logging --with-log-level=DEBUG" "") \
+ $(usex log-info "--enable-logging --with-log-level=INFO" "") \
+ $(usex log-warn "--enable-logging --with-log-level=WARNING" "") \
+ $(usex log-error "--enable-logging --with-log-level=ERROR" "") \
+ $(use_enable av) \
+ $(use_enable test tests) \
+ $(use_enable ntox) \
+ $(use_enable daemon) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ if use daemon; then
+ newinitd "${FILESDIR}"/initd tox-dht-daemon
+ newconfd "${FILESDIR}"/confd tox-dht-daemon
+ insinto /etc
+ doins "${FILESDIR}"/tox-bootstrapd.conf
+ systemd_dounit "${FILESDIR}"/tox-bootstrapd.service
+ fi
+
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ if use daemon; then
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+ if [[ -f ${EROOT%/}/var/lib/tox-dht-bootstrap/key ]]; then
+ ewarn "Backwards compatability with the bootstrap daemon might have been"
+ ewarn "broken a while ago. To resolve this issue, REMOVE the following files:"
+ ewarn " ${EROOT%/}/var/lib/tox-dht-bootstrap/key"
+ ewarn " ${EROOT%/}/etc/tox-bootstrapd.conf"
+ ewarn " ${EROOT%/}/run/tox-dht-bootstrap/tox-dht-bootstrap.pid"
+ ewarn "Then just re-emerge net-libs/tox"
+ fi
+ fi
+}
diff --git a/net-libs/udns/Manifest b/net-libs/udns/Manifest
new file mode 100644
index 000000000000..ecb9eef940a9
--- /dev/null
+++ b/net-libs/udns/Manifest
@@ -0,0 +1,5 @@
+DIST udns-0.4.tar.gz 84716 SHA256 115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710 SHA512 2990d57b3b6bf176a12ee07fd4391921e13634fc8409e8ce4df8dbe7b3556a116ae59ab328a1b6a95ebc94298f6b56ec7197a06a649d8d642b371b8ecef3e40b WHIRLPOOL 363522b4a9fb813b494d312f2dd8556f246bb4589f68940f1de8daef9009fe09025a7d988e6e415eee33a3c1c04c520aa174dfd67a1ea2280b97292e97de4d7d
+EBUILD udns-0.4.ebuild 1071 SHA256 a9a4753bdac7cbe2ce431924d6ef30c750ecd95c326e60c15b6071dc7be3e1fd SHA512 94a2a9f396392cd6d624e670b80a86336d40359e3f71a1e148ee836885d4ab2741da262c8bd34dd812eb65bf00921afabc90a5121c9533138cdce3cd5de8f7b5 WHIRLPOOL cbebf68ff1733e6a1045771a1f0dedfd5985550c8abc6415c6fae34a9a935cd35dbb922469fc914e0750aaa0c270e40aefa4015b388f2d60f6648f1bedd6fd07
+MISC ChangeLog 2509 SHA256 169321c6fbfe8799ddab472a87757cd92c1497f224479ed971d7aea1b358cafd SHA512 06bccad8d992a1d03e8901c700dbbc4d6899e25db3d8d4e809917adef1c923e69a35f1af4235894a568c23df1b9eaa6d68d242cced6957ebfea3ff172b189523 WHIRLPOOL cdef9b6f60dab7e6bbf540a9fcbb9da670171818f1d0a634a3e90b748061036dcda44cd2b9b4f75ad1c2424ff67c1470ee1f0c7c39818b44de23864a04448522
+MISC ChangeLog-2015 4323 SHA256 63e69a29b6212d847d6ebad390f988ce696e22ca8ae85d43f91a789d79eb21ad SHA512 d5257e15e97dd1281df49fdc9a3072cafb5450d86010a6c47fe89d5fe025b6f93a4f343d84b8080b19d41af5c66b08a40f1ca8ed309ca73c11ff385f089f6240 WHIRLPOOL a156c235a737b84d1bfa23c756516d27f8f22c1e79336b31e62e4dc4fd18859c9d8e129687f6d9b1078b51c2b883aa4cc42fa5d004f1147fe84989c9b206377f
+MISC metadata.xml 401 SHA256 72858cc9e2fe056082a82234ed055720fe465bf7365a0409ba7e3f1cc3926a6a SHA512 dea311676ce60848f158807241d561e062fb5b51a37137b732af1014d9ea702e57870c3125067ce90795bf97b1d3a2da8cad242fb4cc4e210ae7509b7f3362dc WHIRLPOOL 87e10b67e3695ad832337f6861e33fbc3abb30234061a21e0d78dc77bf9305f58f07ac7ad2e39bf188f83be8d0591275e280fc4f82086bf9116e40c81c9880c0
diff --git a/net-libs/udns/metadata.xml b/net-libs/udns/metadata.xml
new file mode 100644
index 000000000000..f0db182dbd42
--- /dev/null
+++ b/net-libs/udns/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<use>
+ <flag name="tools">Build and install dnsget, ex-rdns and rblcheck tools</flag>
+</use>
+<longdescription>
+UDNS is a stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries.
+</longdescription>
+</pkgmetadata>
diff --git a/net-libs/udns/udns-0.4.ebuild b/net-libs/udns/udns-0.4.ebuild
new file mode 100644
index 000000000000..4702098a5cba
--- /dev/null
+++ b/net-libs/udns/udns-0.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Async-capable DNS stub resolver library"
+HOMEPAGE="http://www.corpit.ru/mjt/udns.html"
+SRC_URI="http://www.corpit.ru/mjt/udns/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86 ~x86-fbsd"
+IUSE="ipv6 static +tools"
+
+# Yes, this doesn't depend on any other library beside "system" set
+DEPEND=""
+RDEPEND=""
+
+src_configure() {
+ # Uses non-standard configure script, econf doesn't work
+ CC=$(tc-getCC) ./configure $(use_enable ipv6) || die "Configure failed"
+}
+
+src_compile() {
+ if use tools; then
+ emake shared
+ else
+ emake sharedlib
+ fi
+}
+
+src_install() {
+ dolib.so libudns.so.0
+ dosym libudns.so.0 "/usr/$(get_libdir)/libudns.so"
+
+ if use tools; then
+ newbin dnsget_s dnsget
+ newbin ex-rdns_s ex-rdns
+ newbin rblcheck_s rblcheck
+ fi
+
+ insinto /usr/include
+ doins udns.h
+
+ doman udns.3
+ if use tools; then
+ doman dnsget.1 rblcheck.1
+ fi
+ dodoc NEWS NOTES TODO
+}
diff --git a/net-libs/uhttpmock/Manifest b/net-libs/uhttpmock/Manifest
new file mode 100644
index 000000000000..eddd45c2a975
--- /dev/null
+++ b/net-libs/uhttpmock/Manifest
@@ -0,0 +1,9 @@
+DIST uhttpmock-0.4.0.tar.xz 295392 SHA256 0d9a75ac66070879a14caabddfaa7bd4e888e2abb03f9ac73610921ed341b571 SHA512 0f98db886aa02a911fc94c957a371651f9be5784602ea0492d04798dcf12c4a519a292ede9d37b25a965832e5d96ca9da7ce0ca8127af74d3986c4ef74e1f527 WHIRLPOOL 2d5a00407ed9c5022cb86773ee87580b6e8573c451beee9eeec535cbfb0b8e8d7847d6ec7f35914b9d4f3a3744d608383db181779dbc2ca2cb86667545b5f4f4
+DIST uhttpmock-0.5.0.tar.xz 296908 SHA256 26da182a2db2579c5ba4dad9096d52099e0766228c295cfbaed6de4046f7d16e SHA512 952b618f3a12d7190f3812bc0bd53dd655a83d27f29bb749e62b36a08492bf535b85db7f5ff66f15c72bf5574696149f00476041f225ca6039ad87b221f5a1c6 WHIRLPOOL 8b85b70b18f47195726298dea99e8b3546d1a62bb15fc84839a152dfe050e5f599246a31394f9c542b8d3c5ff10ac9f403a9c467f95f2a2e2e112ad72abb250b
+DIST uhttpmock-0.5.1.tar.xz 310976 SHA256 a6a34a011db142a98473b492039c84468d575f416689484f1f82a84927f17798 SHA512 99135c0983be78eaaf962e5b182eaaf921e1d6ed30f98691d8766e9d4a9e07188965ce3f546a13a8c32b148bad305083cc3cfdf48d9a8b91efffaec5a46d8006 WHIRLPOOL 06d4bc6155f3e063521e10fe57b371c7a16e6c7b7f13c49f9684a8d8e8a0314e217ca4add24525fa27eb5a1d1bae8a5367909b95dc72ac02658867d188ed3d0c
+EBUILD uhttpmock-0.4.0.ebuild 898 SHA256 66b754c2303a726a88b539285c5cba8dea8507d6b4de5f91f21499ab9a986fef SHA512 d814535856b9d49164189dee8d3461a44acff4244fd7c013aef1e6b693ac6839b4b0ef664a93dd80ed17410ffda3da738cdee333c4072ff962ed85e899a1170d WHIRLPOOL d81e629a17e798aa3e96dac10cbadd1bde28f468d777ef3740bd762ca690a96c07c032ac4ad5f88d8946751b1d02afca8ec0876795ab9371987c6b9920e673a3
+EBUILD uhttpmock-0.5.0.ebuild 917 SHA256 a7ccc0abd855fa9fb927b4005c97ca08e1a054013308c03434cdc1c5c7594938 SHA512 8638c25404eef22e6f9df98436306ca8ecbb51fd2b1726a4f716db9f1ab713ffb643c8a74f37dc5ef4391b2f6bdeaa1e96be8281af1c9823c0fe9ce919c85b83 WHIRLPOOL 6fed5823441dfee4fcc65a9d23d19dfb736acb58acabdb7ca7c74a5b6d44c38bae7fb740d2a4f940e18f96b700956fc0deca83db8fafda077bb349aec52b8abd
+EBUILD uhttpmock-0.5.1.ebuild 921 SHA256 111efb4d6c153217336fb34c416d2c958bf2f086e160b7b172503d4d0a0a3901 SHA512 c19507740a92b4c730548cfe399177ab36f1f301d9c209d27d773b1f2b6f6712986ed6994904336faabb3533415706dc2648f8d574be59eb5e7a1e5653eef760 WHIRLPOOL 21b90b66587915d629d70700a2d2f1c3f045f6f58e0a6e3ff602b04d7f15343d4031262ce010350a712df4f5282b40171b66ae729a05105727c3007d4f93716d
+MISC ChangeLog 3427 SHA256 b90e18c342f01fc6d91a6c556810eb469bed9a62f51646dca82f469e13e38b3c SHA512 5fd91a8f74f648e2b4a4a489fbe58ff23155e296d36e6d081d8301e986a941e0bf5f6bf4d9e27a24c91a20f042ac438c2828bca00d11634a746ff8a7a76e321a WHIRLPOOL 84048d732b9235f07370dbfbf1b44ab147ecb2c398cc94c82e43b0599bea3ee8ddb1e64a0d59a4f14f1a17371e87f1b3f2aaed26f949205df35e938590e12752
+MISC ChangeLog-2015 1935 SHA256 a348359003ab8bb358aa2acb0c012962eef9f57b4b47751447a2088a7fb61979 SHA512 a80922ba0166ef0287fa8f6087dab4fe72cf18eec3726a8c5db46cd3a7a9a3dcffc253d87c64d9e3ce241fbe891977d972f9915afb91e5d33a250ba19a7938ae WHIRLPOOL e451860eb04ab56e1ecf16f8f16d40ba02a92540fe8adf6db250d1d6634c8423f9a6792c1d2b70db04edd96f4d4774f0abb1d464a6c061245e322e36a8821fb3
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/net-libs/uhttpmock/metadata.xml b/net-libs/uhttpmock/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/net-libs/uhttpmock/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/uhttpmock/uhttpmock-0.4.0.ebuild b/net-libs/uhttpmock/uhttpmock-0.4.0.ebuild
new file mode 100644
index 000000000000..77b4b347d056
--- /dev/null
+++ b/net-libs/uhttpmock/uhttpmock-0.4.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG="yes"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="HTTP web service mocking library"
+HOMEPAGE="https://gitlab.com/uhttpmock/uhttpmock"
+SRC_URI="http://tecnocode.co.uk/downloads/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+
+IUSE="+introspection vala"
+REQUIRED_USE="vala? ( introspection )"
+
+KEYWORDS="amd64 ~arm hppa ~ppc ~ppc64 ~sparc x86"
+
+RDEPEND="
+ >=dev-libs/glib-2.36.0:2
+ >=net-libs/libsoup-2.37.91:2.4
+ introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.14
+ virtual/pkgconfig
+ vala? ( $(vala_depend) )
+"
+
+src_prepare() {
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable introspection) \
+ $(use_enable vala)
+}
diff --git a/net-libs/uhttpmock/uhttpmock-0.5.0.ebuild b/net-libs/uhttpmock/uhttpmock-0.5.0.ebuild
new file mode 100644
index 000000000000..086e3f4a0543
--- /dev/null
+++ b/net-libs/uhttpmock/uhttpmock-0.5.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG="yes"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="HTTP web service mocking library"
+HOMEPAGE="https://gitlab.com/uhttpmock/uhttpmock"
+SRC_URI="http://tecnocode.co.uk/downloads/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+
+IUSE="+introspection vala"
+REQUIRED_USE="vala? ( introspection )"
+
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~ppc ~ppc64 sparc x86"
+
+RDEPEND="
+ >=dev-libs/glib-2.36.0:2
+ >=net-libs/libsoup-2.37.91:2.4
+ introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.14
+ virtual/pkgconfig
+ vala? ( $(vala_depend) )
+"
+
+src_prepare() {
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable introspection) \
+ $(use_enable vala)
+}
diff --git a/net-libs/uhttpmock/uhttpmock-0.5.1.ebuild b/net-libs/uhttpmock/uhttpmock-0.5.1.ebuild
new file mode 100644
index 000000000000..ddbb936d67a7
--- /dev/null
+++ b/net-libs/uhttpmock/uhttpmock-0.5.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG="yes"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="HTTP web service mocking library"
+HOMEPAGE="https://gitlab.com/uhttpmock/uhttpmock"
+SRC_URI="http://tecnocode.co.uk/downloads/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+
+IUSE="+introspection vala"
+REQUIRED_USE="vala? ( introspection )"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-libs/glib-2.36.0:2
+ >=net-libs/libsoup-2.37.91:2.4
+ introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.14
+ virtual/pkgconfig
+ vala? ( $(vala_depend) )
+"
+
+src_prepare() {
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable introspection) \
+ $(use_enable vala)
+}
diff --git a/net-libs/vanessa-mcast/Manifest b/net-libs/vanessa-mcast/Manifest
new file mode 100644
index 000000000000..4018a9e54e48
--- /dev/null
+++ b/net-libs/vanessa-mcast/Manifest
@@ -0,0 +1,5 @@
+DIST vanessa_mcast-1.0.0.tar.gz 292643 SHA256 a028bbfda0c9331f0ca00d4393dace9eaf4d5678fb1ae2f5abc911f6dbab3694 SHA512 594b1c02368b2e90f8a31a53bc03ab1d16fde010094ddde6790802d0c444c3455de6a633fd5c9265d583548cd213ebd992d45cf578fe55cec710eba318a28f23 WHIRLPOOL 5ce3b8d21ff6fb2ceaa3eff1ceca5d63cf4413be698cd05e563b3c5b8b63531d355f72a94c6b853a13d1cdd738056ba74a2592efd4e812f36a177af39fa57b0b
+EBUILD vanessa-mcast-1.0.0.ebuild 563 SHA256 523439775476b8b77af678c295d8ca1b5f53286cb4c29ddc7f950ce7bfc98435 SHA512 bbab9f2bd0f2527aff4d08182bb4f6b78049c88d1d89f47c8feab76ec845940b8c0aae1adab90f633585d555211bbd9f09e7c864467315500abd99d45d6e2e9f WHIRLPOOL 3f5f21d62e602f5e2383abf846ecb8280c2451e69fa0a52d78974cf474204da4d99f2739dbeda97861cceff682564e824fe14ee18de36ea0c11045551ba7231c
+MISC ChangeLog 2712 SHA256 3ed8bf3e5ba6e858cf4811309d0d2b04a86cbf753c7607b53b5784f0c64d6de8 SHA512 94f7a464a463ee96d9d0c58fc59572fdf3fe04086cfff4b6007017c8f34b8f72d115b059fbbf34ec0262997ebd06f3191c8c3ce067cf834d14602375da51b863 WHIRLPOOL e60ac849892ca796a31dc6e7e935a905422a4c737773270be60a304f6501456d4b33c96ec1b880cd5301377b53ec1dad8ddfcd57f2e26b7d1e4dc620ac0f7e93
+MISC ChangeLog-2015 1057 SHA256 5c97e899db47e6740b68a77123e0746552db4415fdfebc703145e470ee9cfeb5 SHA512 c279c51436d2741c26e4c96a366bfb2fa5a9c995901ebf1d97a519288471c8b595b44732beb55e0f29a1a425a7adc52b97f5bc7f11f3bd59dfca0028dd68ce13 WHIRLPOOL 9c7ff417cebff2d6ddcd48adab717a35443da50d45e2e0b8be1454ed5f4057550de696b6baab93f22c66fff46a6f291789a1ec43b0a810c709857ad8e23a5d48
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-libs/vanessa-mcast/metadata.xml b/net-libs/vanessa-mcast/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-libs/vanessa-mcast/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-needed -->
+</pkgmetadata>
diff --git a/net-libs/vanessa-mcast/vanessa-mcast-1.0.0.ebuild b/net-libs/vanessa-mcast/vanessa-mcast-1.0.0.ebuild
new file mode 100644
index 000000000000..8f4f6f6b1e87
--- /dev/null
+++ b/net-libs/vanessa-mcast/vanessa-mcast-1.0.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_PN="${PN/-/_}"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Multicast Helper Library"
+HOMEPAGE="http://horms.net/projects/vanessa/"
+SRC_URI="http://horms.net/projects/vanessa/download/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE=""
+
+DEPEND=">=dev-libs/vanessa-logger-0.0.6
+ >=net-libs/vanessa-socket-0.0.7"
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc README NEWS AUTHORS TODO INSTALL
+}
diff --git a/net-libs/vanessa-socket/Manifest b/net-libs/vanessa-socket/Manifest
new file mode 100644
index 000000000000..18179d8a0752
--- /dev/null
+++ b/net-libs/vanessa-socket/Manifest
@@ -0,0 +1,7 @@
+DIST vanessa_socket-0.0.12.tar.gz 346375 SHA256 809f11da9507c69d72839e672149d391c036be57cd49cc9a35ac64bdefbf51bc SHA512 24767cd77b6017156eb82df6c76b364bcc379d043562528d389b994497bbc041d29aaf72fc94bb877e7df19f196f8cce8879e203ac679570a92ff0782bef2d42 WHIRLPOOL da6890d4470e74f6bf6759e97886c2d29014fd53d08075b58792d0d33ed735b74772d808f58859cacc44111525bdc382018721570c012dc07959c61394eca9de
+DIST vanessa_socket-0.0.13.tar.gz 384431 SHA256 13f837fd70d3ec0f8ffdf02bb326aa5cb9985167bf06365f8ba228f389ddee15 SHA512 c25ddabb3ead8e88fc924277ed1aac3a932f35f31974ee6340310cb8c6dabbe9ab163ebe475c9eb7b2dc66f79a07b1c70e00b228f57ba2b06bce87e5e0e3ac65 WHIRLPOOL 84848d09d991cf1c393dee48081a507ce62d949a30d28dc8c78b1dca6d0c1a57673a7c74e325a68b5d71016f88336cea94062758441ecd46b4b74d46a5e2758f
+EBUILD vanessa-socket-0.0.12.ebuild 657 SHA256 4b224864afa2ec532a9051e09d4105712520aa427d0827448157e199f3b61573 SHA512 82df968e0dcdf53b88f17784e14d9897345899e61e020bdf1d10d7a509f54eac6fcee1049c521999bdd77fa72546d4d25e6ce2b8561cf8d05ca77fd26709c5e8 WHIRLPOOL 11ba0376d3b0433e43c611ef113060749a7b613f544dcb504b329e5cf8c1e2b3e75b9fd8dd4b00d30c733fff41cc4eafa0549905e82f83a55d5a7bd90b30549b
+EBUILD vanessa-socket-0.0.13.ebuild 583 SHA256 787d13188b0efa14197ead1065d6de96fc430d12867985d22605b7f1f93a0e41 SHA512 ee58e2451c0d901bf9a219a99fd4c37d5be86d9ec2e1c4765067082b5a3666b01ad620857e6da8fbcbc481945f1d07fd8febf49cd466df64c23326adc394db7b WHIRLPOOL a55062b7d35d26e4197e78a8275fd4e9ad8774931422252a6b57720fbba3091e9b1413da8fd625bfab3736b7a4cedb7aae3096eddee4753ae80ad08810a970d3
+MISC ChangeLog 2637 SHA256 6dc6e092201d8f796952fe1eb5e8245190963071a6735fca8a42b5ab852844d1 SHA512 cedade744b9f37a2913bf7860c04a90f26d6e4702de9cc66a2afb495343589d50e40439fc1a0689bb812f509adbaa318b6a11d000a9a9208e24e35f2cd3f6a60 WHIRLPOOL 655ce60f8f9818171db673883be5a94cf3bbdbc94f2d3486130fba713b9258c2ef8e84ec8d4b2f9f82158623de9ed5102e8ea588de79d46dde17a4e81dd5ad9b
+MISC ChangeLog-2015 2789 SHA256 3fa1e180f4eb21fb95cacf2829b8b9ea63181b6dc97884ff2e4d04e6dd93964e SHA512 1bf7a48afee69226eb562c5338d0f0cb5b93cd916fb377e6d0f694a6b171d9092040dd235efbbae523e5af645f66cd97f447744b7fecce1d115689fc1e1150a1 WHIRLPOOL 085c101a196488002e4f3c2b5184b8b68efed2c840c979c73c6cb80474159318397233a0fbaf86323af7932ebe292f8efc56406dbf52cc4d67961d8b2a901481
+MISC metadata.xml 289 SHA256 b01d9209bd293f2ce11786f6061344eb427c5370bfcd0b20a3b97f3cd8e88375 SHA512 eb4947560bda57063dd746f397daafccc5d30e8aa694d75419a2dd4da56461fd6c82274c13e1ac01f8bad0d742c00f4116c20ceefe50f383988c9d12be27c90c WHIRLPOOL e8797141a6d561bf4750a69f8a92d9007579ef6271e134b5d429e0374d522f616a8a4beb5ff85333787880b0d1de3618b4f984a2c595dbc4e2e8f3b23be2da04
diff --git a/net-libs/vanessa-socket/metadata.xml b/net-libs/vanessa-socket/metadata.xml
new file mode 100644
index 000000000000..a7029b1a1086
--- /dev/null
+++ b/net-libs/vanessa-socket/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 type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-libs/vanessa-socket/vanessa-socket-0.0.12.ebuild b/net-libs/vanessa-socket/vanessa-socket-0.0.12.ebuild
new file mode 100644
index 000000000000..88531f805655
--- /dev/null
+++ b/net-libs/vanessa-socket/vanessa-socket-0.0.12.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+MY_PN="${PN/-/_}"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Simplifies TCP/IP socket operations"
+HOMEPAGE="http://horms.net/projects/vanessa/"
+SRC_URI="http://horms.net/projects/vanessa/download/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+
+DEPEND=">=dev-libs/vanessa-logger-0.0.6"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ econf || die "error configure"
+ emake || die "error compiling"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "error installing"
+ dodoc README NEWS AUTHORS TODO
+}
diff --git a/net-libs/vanessa-socket/vanessa-socket-0.0.13.ebuild b/net-libs/vanessa-socket/vanessa-socket-0.0.13.ebuild
new file mode 100644
index 000000000000..e393e77c63ec
--- /dev/null
+++ b/net-libs/vanessa-socket/vanessa-socket-0.0.13.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MY_PN="${PN/-/_}"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Simplifies TCP/IP socket operations"
+HOMEPAGE="http://horms.net/projects/vanessa/"
+SRC_URI="http://horms.net/projects/vanessa/download/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/vanessa-logger-0.0.6"
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ make DESTDIR="${D}" install || die "error installing"
+ dodoc README NEWS AUTHORS TODO
+}
diff --git a/net-libs/wandio/Manifest b/net-libs/wandio/Manifest
new file mode 100644
index 000000000000..da2b84177f28
--- /dev/null
+++ b/net-libs/wandio/Manifest
@@ -0,0 +1,6 @@
+DIST wandio-1.0.3.tar.gz 373723 SHA256 31dcc1402ace3023020446d6c7284fd84447f9b36e570206a179895e1eaa705b SHA512 fb86d022149d839e49805a35c9f5ada0b0bdf1174287d03c823145fbb0b3a5b3d7d78b5bfbf511da73cb06a22650f9a2d5cfd143dfa5b29eacdac1870977081c WHIRLPOOL 843ff98d2407897da9d20feb84287323b7aa2ac09ff23d5d7f4626e48321f7b6ee2fdfda4753bf16296ccf75c9dd5967c5c0c3fde8f62f1f73324980f5534e73
+DIST wandio-1.0.4.tar.gz 381793 SHA256 0fe4ae99ad7224f11a9c988be151cbdc12c6dc15872b67f101764d6f3fc70629 SHA512 247e3fe26ca0732acf50549284bdce34b3e0afd6b7bc7a44a2188c67a5fb38417feca23e9428acae903941c3d0a9f077e05aae879199deed64711615cd4174a2 WHIRLPOOL b8efa255f7d56717824eccb8df600099013a80bb2737b81441d228e3757ad60e1ab8cc8c7308b1dfa841bb5791edf154a60ebe93fc2fade9cfc95d88fe27f91a
+EBUILD wandio-1.0.3.ebuild 760 SHA256 916fbb2669a697008874e2e4b0b3b913bdf0d42afb0930148a9f8bfd4ec89f0e SHA512 59166163ea180f91bfdf4342871ef70de1489f8f24df06db3fa59822963f032c207a250b8bdd53316c10efc70e5d0ea515b988e9bd40190c70711fcc8a9778aa WHIRLPOOL 77905647aa7ea60bbb4a09db960f125038f2fd08d09d9331b6d2a60e1e7d252a31fcbe96859636b22f3023165394d7bee0609b2429634f03571e274e41946a54
+EBUILD wandio-1.0.4.ebuild 760 SHA256 916fbb2669a697008874e2e4b0b3b913bdf0d42afb0930148a9f8bfd4ec89f0e SHA512 59166163ea180f91bfdf4342871ef70de1489f8f24df06db3fa59822963f032c207a250b8bdd53316c10efc70e5d0ea515b988e9bd40190c70711fcc8a9778aa WHIRLPOOL 77905647aa7ea60bbb4a09db960f125038f2fd08d09d9331b6d2a60e1e7d252a31fcbe96859636b22f3023165394d7bee0609b2429634f03571e274e41946a54
+MISC ChangeLog 613 SHA256 28ef15288f9431c28cdf518083e1e79aa909c13cbe672f5931dc5d6c182d0ebe SHA512 66f36750afb39f2c9859a856597c9158a8fa7788e84b5eca95290729e281597117b4a422ff29c7c4d0cb5cb43880d186b627cc77310c8d425d5854549c196b4b WHIRLPOOL 739cbd7f0b7c8a049abb9d1963d5b18f3f8a95edf3a99a8a75ffbdb665db9f5c347c00a13306a8cf694dbfb0817eca8445686385c487a8c2baa829bfbce80786
+MISC metadata.xml 325 SHA256 f40c22a34fe3e536bf0e016aef66a96fac7c52e24e3e38f667494d87fc6a1386 SHA512 f6baf388df040729e65cf7b578f13650917d22989b89ba4adeaeba332fdc78fc8f3661fc37c238a495c75f4cc601c2642f13e2660e73b6e36da8db39dacb052a WHIRLPOOL 6020eb596992bc8559652e645bce538d68cd634268c1fae232e7a9611b03587e87edde1a7a3af6e853300e43b758aee8e61bf9a5936f3b025229437df13bb757
diff --git a/net-libs/wandio/metadata.xml b/net-libs/wandio/metadata.xml
new file mode 100644
index 000000000000..5cf4e8226272
--- /dev/null
+++ b/net-libs/wandio/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 type="project">
+<email>netmon@gentoo.org</email>
+</maintainer>
+<use>
+<flag name='http'>Build support for reading files over HTTP using <pkg>net-misc/curl</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/wandio/wandio-1.0.3.ebuild b/net-libs/wandio/wandio-1.0.3.ebuild
new file mode 100644
index 000000000000..aa7cbe4c16af
--- /dev/null
+++ b/net-libs/wandio/wandio-1.0.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Library for transparent file I/O with compression"
+HOMEPAGE="http://research.wand.net.nz/software/libwandio.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 http lzma lzo static-libs zlib"
+
+RDEPEND="
+ !<net-libs/libtrace-4
+ bzip2? ( app-arch/bzip2 )
+ lzma? ( app-arch/xz-utils )
+ lzo? ( dev-libs/lzo )
+ http? ( net-misc/curl )
+ zlib? ( sys-libs/zlib )
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with bzip2) \
+ $(use_with http) \
+ $(use_with lzma) \
+ $(use_with lzo) \
+ $(use_with zlib)
+}
diff --git a/net-libs/wandio/wandio-1.0.4.ebuild b/net-libs/wandio/wandio-1.0.4.ebuild
new file mode 100644
index 000000000000..aa7cbe4c16af
--- /dev/null
+++ b/net-libs/wandio/wandio-1.0.4.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Library for transparent file I/O with compression"
+HOMEPAGE="http://research.wand.net.nz/software/libwandio.php"
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 http lzma lzo static-libs zlib"
+
+RDEPEND="
+ !<net-libs/libtrace-4
+ bzip2? ( app-arch/bzip2 )
+ lzma? ( app-arch/xz-utils )
+ lzo? ( dev-libs/lzo )
+ http? ( net-misc/curl )
+ zlib? ( sys-libs/zlib )
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with bzip2) \
+ $(use_with http) \
+ $(use_with lzma) \
+ $(use_with lzo) \
+ $(use_with zlib)
+}
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest
new file mode 100644
index 000000000000..7b168001cc30
--- /dev/null
+++ b/net-libs/webkit-gtk/Manifest
@@ -0,0 +1,20 @@
+AUX webkit-gtk-1.11.90-gtk-docize-fix.patch 426 SHA256 20d26df63afbdbf829974597bf53a9657007e9940431ffa0020f1d5fa5d22b4f SHA512 e35cc255e36742519b4f26b60d8e704eb3e0e66e8e13599cadae6fe445a3a87a2c6c65b6746c4d39f1ab11e7eb79b0f63a5fc9d5af5d7fa8907b224b852e3b32 WHIRLPOOL a91ba71b8b4fa2f1ff5de1633fa477bc1f45de37f3bbd212af1ecf4b6298c5454c199cd89f6602854978d4ae6a551316eb96c4f90c82a0c07018e94ac3025e43
+AUX webkit-gtk-1.6.1-darwin-quartz.patch 1516 SHA256 34ad751c33e868d85b41e06ecbd085b61a81c42bd52063bada52bc59b9e05a23 SHA512 ca8c80d06aa93c07d658ebf3433f5fdee9225616740a075f5606df87e3b90a83b2c492777a8e30255cdd4f11f889be789544ac1fc4a39056e1929a72720347ea WHIRLPOOL 558250f3cf6de4d511a26afb0aeacc04b7049b3d0499362d320c035acac20932d7c16f6ff99d83833498296e3a21b5e2bab985b1ee5fca709754b582195a0fd1
+AUX webkit-gtk-2.2.5-hppa-platform.patch 530 SHA256 9a2b8311a89aa3500d19d2425c0f12f67c1457c67ecaa322511170461c4c6be7 SHA512 168d4f8acddf4a5fa6ddc3661ef3ec344824c854db036b279d38d526b6025cfbb8bbd15bc64ddd846876749823796ca7d05e4083cf35a744d46b00cfd5179ae1 WHIRLPOOL 5fc8070bf07eef199578db5802452b4443ee3a00b555325b430a3cfd923a0cbb827497907462cb224b07f2f1713d65a26af4adf24b3dca59cb9040dbd6227f92
+AUX webkit-gtk-2.2.5-ia64-platform.patch 331 SHA256 1ac5327f4f190bc4cbee9e62d4a2805879bbffd914ba75be17afd1aa245e6693 SHA512 dae3cde801d2d29c61abb64c00bf33ac1f7080dd2085cc9a1520c8606ef65538ccee9b1e4c4c16a3dba551acd035542f80b6e808ae5090bb883c85ecfa7ac36e WHIRLPOOL d9ca8172f685f515bb22a38d269e73f1e0fdcbf487bb83557f41649cd9ff5883d1fe0827aef3c753d975895252db3e3fa5eef3f72b43a6557492effd5db10072
+AUX webkit-gtk-2.4.1-ia64-malloc.patch 807 SHA256 8e01dee48af7e8e0d24729dd9b99e88b47125b5f91d07df29d579785e60d398d SHA512 d9e7a792861ff30137072eba6b5b80e7b37e47e7302bf1cd56027b5c30aea3fd215891f6272d85b80e98c826b3216d0701fe92f06b76e7d1fb860028d7a701c0 WHIRLPOOL 7cf769d9752cf800f72e76233ef299e2da8c13f427cd8d312d47d76282091f06ec32a618dda9d0bacedbc5dcf8aa4289ce9ce089cdbb90be28deeb75e449a925
+AUX webkit-gtk-2.4.11-video-web-audio.patch 520 SHA256 103db2178fb3bc6db9706dc2874c1a68d748133082330a6f6cca909d26fa0dac SHA512 df7b54fed95d0132bbed22fa90f3523b94a70940ac33acefc46aa0c59b604ee36d3350035fe8bca78ba9a7ab45527d0c1afde8160e4d408eb8a7ee07048bd8d1 WHIRLPOOL af4cad5c7da3fca085e588dadf093ae3155351b81dbf2cfe8201c93515b4e23af08e62049f836dec960fe25297a786e379cd51c386ca9c605a8812cc9e5a6506
+AUX webkit-gtk-2.4.4-atomic-ppc.patch 1294 SHA256 64fc5b9e019fb759cfcf2dc65d7bf0dfcd2cff6469049098d84e180bcf4fbfcc SHA512 80c5c158eba950e56e6a3c046cc3325efcdeab0ad1add140bae1b08a9620553e2166f5df7b0a586814cd49add430dfd15b6675f1467532f294120bdd8852d067 WHIRLPOOL 310ac0d0d04156f681e9039634c2f3ca02c358f70dec091f4c1c221653eef97dcea8c454ac64d3c3b326c47687c3b4e7d168d2fba6813b28ae6c450891849723
+AUX webkit-gtk-2.4.4-jpeg-9a.patch 1262 SHA256 b442a8021ec5bfc751708fe6409baff6ae8576d7fb49da95245b6ba2c1557536 SHA512 8bfc1255f083b7d4cdbe5e03d7a006efae976988847f36c27758589a2410cf6b84e0c81a3c9673ec9b552e34af92e6d833a8db5413c03d0c85c3d82f4628c583 WHIRLPOOL 25e62e4c95b99bad82a45a82091c6ac7a7cbe02391b4873d383649413fa6eea236130a62aef7ba1f0a24f172554e9b6d650f7bfeb41abb96b8387ef85f807932
+AUX webkit-gtk-2.4.7-disable-webgl.patch 442 SHA256 6fb78d5f94806ddb976ceb076e623a2fd67e80111d624a2b3c01fde2fbbcd64e SHA512 742854749e674b3fec33652709921630a5fd3d7afd10446b3121a8cf94fb4fef70cc4de6ffe1a08143f518fd76aa05d0f4b54a041192cbc8eb9fbd5766faa5b8 WHIRLPOOL ba3f9b9dbee12f6dae05db9f343a46fd7d182d377e1a951e1785a5aff9a046d057bbf85821642e948c15a084e69d01054fe5632d7460892b196334adea582e72
+AUX webkit-gtk-2.4.9-gcc-6.patch 1890 SHA256 d0d82c1a1e955e03dd7667e351d99da485d7297acf378e715820202e48d4088e SHA512 cfcfe95b08d503456b1ea6e1770dd4ca4cd61f613ef76962cd01bc4826fbb25aed04834f820da987fd1c80941b90da73086ec5e7e19285e54082f5e90598fd9c WHIRLPOOL 1ebbeb9564978b3ddf4488c9fe72113da0ff10a0ba8c3bcd418b913a936ebe09da907e86714b7419f2746af1648ab786850559c4a5c6a0f1b51ed98e9aab0334
+AUX webkit-gtk-2.8.5-fix-alpha-build.patch 914 SHA256 aa6617505fe9342153ba9442ea109d880ca6c3315777c57ab599f67515e2a9f7 SHA512 c3599c21dbcc709cf1bbc56eafdff8f8d30d65732fff73e601a828b397523d9a0cec96a4e7940ad1b4b3d9b4711f6d5f2935dcd34cac9adec63b73401638fd5e WHIRLPOOL 68a39ccf49e7719393f14cd5d53497148527bd697b010378bdec4cdefb21c5fc7ce5081ce10b412c61390a82e45fa44d9d34aa7f223c51ad15eb1d0288ccbe60
+AUX webkit-gtk-2.8.5-fix-ia64-build.patch 663 SHA256 d076739707de117fbc9aebc684c4a43024e1673e4c30fdfa3be529331f0c1f78 SHA512 ce8dbe7f2bacfc6d1ad70d39d80447ab90e6daf63bc1dc4a49c406255f76eff090f79e6076ebc349d69193b72a821fa6591692cf74a28e529f8db95cf86358fc WHIRLPOOL adf8e11ee3060bcba606cf17673d06d9c98034a71f6a7406832fabf461c4697abcd0c3d4cdb8d8298caf221c797e0732a9f865d761fcf05753a1dfd96dfd3d82
+DIST webkitgtk-2.16.6.tar.xz 14658120 SHA256 fc23650df953123c59b9c0edf3855e7bd55bd107820997fc72375811e1ea4b21 SHA512 bb488d7a60e4d6f9683ac343852a75854ef73e6b5aa093361ffe2d08e71e2f11c19da4447f9937221e518cda784bdacfcfd151f9395605a1957380fbc5b1533b WHIRLPOOL b3053979c1837d97ba525e078d4a14c64a66c61cb0117041af02c8fd250b2062fda66e782134d6bf44f3f80a04917a9b2ac61aa4e800f0011e5243d7eb8583f4
+DIST webkitgtk-2.4.11.tar.xz 9869100 SHA256 588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7 SHA512 2e2cf01a52b8593765a0a3c2d7f0ad306121660019eb402226bd2826c7d4666dab4e91ca6ccbd29abe0ad3993549f256ed1ab88de22e9c8516d5f40a4edd6bfb WHIRLPOOL de86c4abfb22aacbf62163d0398158931c9cf6ab628547d3b30e613f0505d67c85c3200f7db96500e7c2b35f640cdaa7f501346fc13f492c9439dff4056849a3
+EBUILD webkit-gtk-2.16.6.ebuild 8423 SHA256 9043479f20882e6ba2c68cdfdeebb2bc15802cbc910764ae1a9fde04698a0496 SHA512 aecbca385defdaaf9f24aedbac7c149007fb6f2367ec2efa704083c9dbd24f7d38bee04a3c8b42b412f66c2d0228e5183b9aaa3316b528b9771cb6b00e26fb0d WHIRLPOOL 0a048e4ffffca3ba71a174da7a211d5213c0291e01a7e09a0eb9b0048613726c0514bdcac0f503571c70a92975f70cb1ac6bc64ce665fc0ee52a19b5915de66b
+EBUILD webkit-gtk-2.4.11-r1.ebuild 8966 SHA256 7f1f65d1ae35ca378ff6f349e8a11abf470eb123e45a3bdbe9c52ecbc779a744 SHA512 559a7228b2c7f2dd00c26c7d4b0b935850eb93cc1e192c2e6695e5a418766050c80181d3b96254dcbfc3b9a8419c0605835a13b7640ceb6b750ec40edff35cd9 WHIRLPOOL 9c2fc07c2b3bdb5dc87ab91054df2bbc5605208167940e9604dc5e680a57a72958fed48b09fd64c95888e5bc0aafbfaa33821322a3cc040691a29b50a7ab989a
+EBUILD webkit-gtk-2.4.11-r200.ebuild 8373 SHA256 fd9192efa1b99815a456576fb1c2546747b7d4ebe07bbba2a79df26db0aee254 SHA512 7b96440750ed9f5e6402aed773cfe1e40e419364d7d526922247e58c9cb7ead97960f9866d90cc990abce8e183d06bd66191d09991d137b7b9ba86faee4f4dca WHIRLPOOL 49a2b920b0fdc7b0bc4846279060ab842494ca04a6748617b54d3ee7ec6622225c6405097c797402bf208b495802588fb1e08ef659ce3393c762821b1745bbaa
+MISC ChangeLog 15451 SHA256 0b65bc7fdc313946992c6be4dc78e9eab37283a4f68e5597dc30b51d667f8e73 SHA512 4baaa1690d1b2b0aff0bf6c82e3f3dcfe51c2100e64874f350c57f74da673f82248280ba6459c7a11f54c59687b1e7780e92ba0076fe365d390e8ed740aa7f32 WHIRLPOOL 7cafcdfcc3450bd74ff57f7f845ea814284fcc29aa9eb1a97254898fd1032c3a6994fb4aafc6a1d914a804a3e6d40e4e3e6e5a8049e760645e59dc0fbe930c53
+MISC ChangeLog-2015 68642 SHA256 5bff244006d996d0c8420da452b9f38139d3090da7ebade2985991ed283f470a SHA512 dac3a9c9f9ccd64fb1554a5e2c919e1306a69b1757f34e0082f76cdcd45188e8f2e299b5181fa8dcda1480263dc242b91a63449c9c7dd344386be81cc1ae66ae WHIRLPOOL b069be8455c7d13a2552ef91029cf37dd6dc47d93bd96793dead7595f19442fa4ec8ff0da0e1f194dde93b5d88683750f4969cd46848417e44f40d6d8fa991f7
+MISC metadata.xml 697 SHA256 4f096b51e01f6f74430bbca04ba292bcc015631d57417deb91a995fe943203a6 SHA512 64bebe1fd72f81707b462bdf3630404e71a87d1807519c86ed5eff393a324e30a32c489f0c7d86d3b6dc2b3855758452e95ae98fb4d0c27555947b35b28907d9 WHIRLPOOL 17cce501d17ac9a29c142462737d223b087bf80b18284fb346de62e9c9f9f23e02efa6a30ec63780ee48d0b2c21a34af9fdc6fd7f72ac152fb272085214adea1
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.11.90-gtk-docize-fix.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.11.90-gtk-docize-fix.patch
new file mode 100644
index 000000000000..c94f545356ee
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-1.11.90-gtk-docize-fix.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac.old 2013-03-02 09:22:53.791750644 +0200
++++ b/configure.ac 2013-03-02 09:24:56.725213764 +0200
+@@ -24,6 +24,7 @@
+ m4_include([Source/autotools/SetupLibtool.m4])
+ m4_include([Source/autotools/ReadCommandLineArguments.m4])
+ m4_include([Source/autotools/FindDependencies.m4])
++GTK_DOC_CHECK([1.10])
+ m4_include([Source/autotools/SetupCompilerFlags.m4])
+ m4_include([Source/autotools/SetupAutoconfHeader.m4])
+
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.6.1-darwin-quartz.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.6.1-darwin-quartz.patch
new file mode 100644
index 000000000000..5ad357e9eeed
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-1.6.1-darwin-quartz.patch
@@ -0,0 +1,67 @@
+Original from:
+http://trac.macports.org/browser/trunk/dports/www/webkit-gtk/files/patch-quartz-WebCore-plugins-gtk-gtkxtbin.c.diff?format=txt
+http://trac.macports.org/browser/trunk/dports/www/webkit-gtk/files/patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff?format=txt
+
+Adapted for 1.6.1
+
+--- Source/WebCore/plugins/gtk/PluginViewGtk.cpp
++++ Source/WebCore/plugins/gtk/PluginViewGtk.cpp
+@@ -70,6 +70,8 @@
+ #endif
+ #include <gtk/gtk.h>
+
++#undef XP_UNIX
++
+ #if defined(XP_UNIX)
+ #include "RefPtrCairo.h"
+ #include "gtk2xtbin.h"
+@@ -439,9 +441,9 @@
+ event->setDefaultHandled();
+ }
+
+-#if defined(XP_UNIX)
+ void PluginView::handleFocusInEvent()
+ {
++#if defined(XP_UNIX)
+ if (!m_isStarted || m_status != PluginStatusLoadedSuccessfully)
+ return;
+
+@@ -454,10 +456,12 @@
+ event.detail = NotifyDetailNone;
+
+ dispatchNPEvent(npEvent);
++#endif
+ }
+
+ void PluginView::handleFocusOutEvent()
+ {
++#if defined(XP_UNIX)
+ if (!m_isStarted || m_status != PluginStatusLoadedSuccessfully)
+ return;
+
+@@ -470,8 +474,8 @@
+ event.detail = NotifyDetailNone;
+
+ dispatchNPEvent(npEvent);
+-}
+ #endif
++}
+
+ void PluginView::setParent(ScrollView* parent)
+ {
+--- Source/WebCore/plugins/gtk/gtk2xtbin.c
++++ Source/WebCore/plugins/gtk/gtk2xtbin.c
+@@ -41,7 +41,7 @@
+ * The GtkXtBin widget allows for Xt toolkit code to be used
+ * inside a GTK application.
+ */
+-
++#if 0
+ #include "GtkVersioning.h"
+ #include "xembed.h"
+ #include "gtk2xtbin.h"
+@@ -966,3 +966,4 @@
+
+ return;
+ }
++#endif
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-hppa-platform.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-hppa-platform.patch
new file mode 100644
index 000000000000..8aee778c1bb9
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-hppa-platform.patch
@@ -0,0 +1,20 @@
+Index: webkitgtk/Source/WTF/wtf/Platform.h
+===================================================================
+--- webkitgtk.orig/Source/WTF/wtf/Platform.h
++++ webkitgtk/Source/WTF/wtf/Platform.h
+@@ -72,6 +72,15 @@
+ #define WTF_CPU_BIG_ENDIAN 1
+ #endif
+
++/* CPU(HPPA) - HP PARISC */
++#if defined(__hppa__)
++#define WTF_CPU_HPPA 1
++#define WTF_CPU_BIG_ENDIAN 1
++#define ENABLE_JIT 0
++#define ENABLE_YARR_JIT 0
++#define ENABLE_ASSEMBLER 0
++#endif
++
+ /* CPU(IA64) - Itanium / IA-64 */
+ #if defined(__ia64__)
+ #define WTF_CPU_IA64 1
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-ia64-platform.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-ia64-platform.patch
new file mode 100644
index 000000000000..a63e9e82e31a
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-ia64-platform.patch
@@ -0,0 +1,12 @@
+--- a/Source/WTF/wtf/Platform.h 2014-02-25 00:33:16.561606810 +0100
++++ b/Source/WTF/wtf/Platform.h 2014-02-25 00:49:52.895512955 +0100
+@@ -79,6 +79,9 @@
+ #if !defined(__LP64__)
+ #define WTF_CPU_IA64_32 1
+ #endif
++#define ENABLE_JIT 0
++#define ENABLE_YARR_JIT 0
++#define ENABLE_ASSEMBLER 0
+ #endif
+
+ /* CPU(MIPS) - MIPS 32-bit */
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.1-ia64-malloc.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.1-ia64-malloc.patch
new file mode 100644
index 000000000000..8c387ffecb61
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.4.1-ia64-malloc.patch
@@ -0,0 +1,20 @@
+Description: Fix wide pointer issues on ia64 (closes: #642750).
+Author: Stephan Schreiber <info@fs-driver.org>
+Index: webkitgtk/Source/WTF/wtf/Platform.h
+===================================================================
+--- webkitgtk.orig/Source/WTF/wtf/Platform.h
++++ webkitgtk/Source/WTF/wtf/Platform.h
+@@ -705,6 +705,13 @@
+ #define ENABLE_JIT 1
+ #endif
+
++/* FIXME: The fast malloc implementation is broken on Itanium / IA64 because
++ some memory barriers are missing in the thread-unsafe code around the
++ pagemap_cache_ object. */
++#if CPU(IA64) || CPU(IA64_32)
++#define USE_SYSTEM_MALLOC 1
++#endif
++
+ /* The JIT is enabled by default on all x86, x86-64, ARM & MIPS platforms except Win64. */
+ #if !defined(ENABLE_JIT) \
+ && (CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(MIPS)) \
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.11-video-web-audio.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.11-video-web-audio.patch
new file mode 100644
index 000000000000..ead696c7856b
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.4.11-video-web-audio.patch
@@ -0,0 +1,11 @@
+diff -purN a/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp b/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp
+--- a/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp 2016-03-14 08:09:01.000000000 +0100
++++ b/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp 2016-04-10 19:43:00.215345381 +0200
+@@ -40,6 +40,7 @@
+ #include "PaintInfo.h"
+ #include "PlatformContextCairo.h"
+ #include "RenderElement.h"
++#include "RenderBox.h"
+ #include "TextDirection.h"
+ #include "UserAgentStyleSheets.h"
+ #include "WidgetRenderingContext.h"
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-atomic-ppc.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-atomic-ppc.patch
new file mode 100644
index 000000000000..c160376fc608
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-atomic-ppc.patch
@@ -0,0 +1,32 @@
+$OpenBSD: patch-Source_WebKit2_Platform_IPC_Connection_h,v 1.2 2014/07/14 21:13:31 ajacoutot Exp $
+https://bugs.webkit.org/show_bug.cgi?id=130837
+--- a/Source/WebKit2/Platform/IPC/Connection.h.orig Fri Jul 4 11:06:55 2014
++++ b/Source/WebKit2/Platform/IPC/Connection.h Mon Jul 14 19:31:35 2014
+@@ -216,7 +216,11 @@ class Connection : public ThreadSafeRefCounted<Connect
+
+ Client* m_client;
+ bool m_isServer;
++#if CPU(PPC)
++ uint64_t m_syncRequestID;
++#else
+ std::atomic<uint64_t> m_syncRequestID;
++#endif
+
+ bool m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage;
+ bool m_shouldExitOnSyncMessageSendFailure;
+$OpenBSD: patch-Source_WebKit2_UIProcess_StatisticsRequest_cpp,v 1.3 2014/03/27 22:03:48 landry Exp $
+https://bugs.webkit.org/show_bug.cgi?id=130837
+--- a/Source/WebKit2/UIProcess/StatisticsRequest.cpp.orig Thu Mar 27 21:13:49 2014
++++ b/Source/WebKit2/UIProcess/StatisticsRequest.cpp Thu Mar 27 21:14:23 2014
+@@ -44,7 +44,11 @@ StatisticsRequest::~StatisticsRequest()
+
+ uint64_t StatisticsRequest::addOutstandingRequest()
+ {
++#if CPU(PPC)
++ static int64_t uniqueRequestID;
++#else
+ static std::atomic<int64_t> uniqueRequestID;
++#endif
+
+ uint64_t requestID = ++uniqueRequestID;
+ m_outstandingRequests.add(requestID);
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-jpeg-9a.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-jpeg-9a.patch
new file mode 100644
index 000000000000..cded605f54ff
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-jpeg-9a.patch
@@ -0,0 +1,30 @@
+http://bugs.gentoo.org/481688
+http://trac.webkit.org/changeset/166490/trunk/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+
+--- a/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
++++ b/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+@@ -334,5 +334,5 @@
+ case JPEG_HEADER:
+ // Read file parameters with jpeg_read_header().
+- if (jpeg_read_header(&m_info, true) == JPEG_SUSPENDED)
++ if (jpeg_read_header(&m_info, TRUE) == JPEG_SUSPENDED)
+ return false; // I/O suspension.
+
+@@ -420,7 +420,7 @@
+ m_info.dct_method = dctMethod();
+ m_info.dither_mode = ditherMode();
+- m_info.do_fancy_upsampling = doFancyUpsampling();
+- m_info.enable_2pass_quant = false;
+- m_info.do_block_smoothing = true;
++ m_info.do_fancy_upsampling = doFancyUpsampling() ? TRUE : FALSE;
++ m_info.enable_2pass_quant = FALSE;
++ m_info.do_block_smoothing = TRUE;
+
+ // Start decompressor.
+@@ -573,5 +573,5 @@
+ // called, then we have hit the end of the buffer. A return value of false
+ // indicates that we have no data to supply yet.
+- return false;
++ return FALSE;
+ }
+
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.7-disable-webgl.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.7-disable-webgl.patch
new file mode 100644
index 000000000000..67760e2878ba
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.4.7-disable-webgl.patch
@@ -0,0 +1,11 @@
+--- webkitgtk-2.4.6.orig/Source/WebCore/platform/graphics/OpenGLShims.cpp 2014-09-26 11:40:44.000000000 +0400
++++ webkitgtk-2.4.6.orig/Source/WebCore/platform/graphics/OpenGLShims.cpp 2014-10-13 15:38:38.496444600 +0400
+@@ -17,7 +17,7 @@
+ */
+
+ #include "config.h"
+-#if USE(3D_GRAPHICS) || defined(QT_OPENGL_SHIMS)
++#if USE(3D_GRAPHICS) || defined(QT_OPENGL_SHIMS) || USE(EGL) || USE(GLX)
+
+ #define DISABLE_SHIMS
+ #include "OpenGLShims.h"
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch
new file mode 100644
index 000000000000..bd8507cdb018
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch
@@ -0,0 +1,29 @@
+Fedora patch fixes build failure for gcc-6 (abs/fabs ambifuity)
+https://bugs.webkit.org/show_bug.cgi?id=159124#c1
+https://bugs.gentoo.org/show_bug.cgi?id=592048
+diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp
+--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600
++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700
+@@ -85,8 +85,8 @@
+ guint32 eventTime = getEventTime(event);
+
+ if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
+- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
+- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
++ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
++ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
+ && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
+ && (buttonEvent->button == m_previousClickButton)))
+ m_currentClickCount++;
+diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
+--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600
++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700
+@@ -659,7 +659,7 @@
+ if (!std::isfinite(time))
+ return String::fromUTF8(_("indefinite time"));
+
+- int seconds = static_cast<int>(abs(time));
++ int seconds = static_cast<int>(fabs(time));
+ int days = seconds / (60 * 60 * 24);
+ int hours = seconds / (60 * 60);
+ int minutes = (seconds / 60) % 60;
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-alpha-build.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-alpha-build.patch
new file mode 100644
index 000000000000..3817bce4084a
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-alpha-build.patch
@@ -0,0 +1,22 @@
+--- a/Source/JavaScriptCore/CMakeLists.txt.orig 2015-08-06 11:21:27.000000000 +0300
++++ b/Source/JavaScriptCore/CMakeLists.txt 2015-10-29 17:47:10.535712494 +0300
+@@ -1146,6 +1146,7 @@
+ list(APPEND JavaScriptCore_SOURCES ${DERIVED_SOURCES_DIR}/GeneratedJITStubs.obj)
+ endif ()
+ elseif (WTF_CPU_ARM64)
++elseif (WTF_CPU_ALPHA)
+ elseif (WTF_CPU_HPPA)
+ elseif (WTF_CPU_IA64)
+ elseif (WTF_CPU_PPC)
+ elseif (WTF_CPU_PPC64)
+--- a/CMakeLists.txt.orig 2015-08-06 11:21:27.000000000 +0300
++++ b/CMakeLists.txt 2015-10-29 01:23:37.416886279 +0300
+@@ -82,6 +82,8 @@
+ set(WTF_CPU_ARM 1)
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
+ set(WTF_CPU_ARM64 1)
++elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "alpha")
++ set(WTF_CPU_ALPHA 1)
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
+ set(WTF_CPU_MIPS 1)
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "sh4")
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-ia64-build.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-ia64-build.patch
new file mode 100644
index 000000000000..6c88c49d8b9e
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-2.8.5-fix-ia64-build.patch
@@ -0,0 +1,21 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -98,6 +98,8 @@
+ set(WTF_CPU_PPC64LE 1)
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "parisc*")
+ set(WTF_CPU_HPPA 1)
++elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ia64")
++ set(WTF_CPU_IA64 1)
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "s390")
+ set(WTF_CPU_S390 1)
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "s390x")
+--- a/Source/JavaScriptCore/CMakeLists.txt
++++ b/Source/JavaScriptCore/CMakeLists.txt
+@@ -1147,6 +1147,7 @@
+ endif ()
+ elseif (WTF_CPU_ARM64)
+ elseif (WTF_CPU_HPPA)
++elseif (WTF_CPU_IA64)
+ elseif (WTF_CPU_PPC)
+ elseif (WTF_CPU_PPC64)
+ elseif (WTF_CPU_PPC64LE)
diff --git a/net-libs/webkit-gtk/metadata.xml b/net-libs/webkit-gtk/metadata.xml
new file mode 100644
index 000000000000..2aec05767e2c
--- /dev/null
+++ b/net-libs/webkit-gtk/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<use>
+ <flag name="coverage">Enable code coverage support</flag>
+ <flag name="egl">Enable EGL support</flag>
+ <flag name="geoloc">Enable geolocation support through <pkg>app-misc/geoclue</pkg></flag>
+ <flag name="geolocation">Enable geolocation support through <pkg>app-misc/geoclue</pkg></flag>
+ <flag name="gles2">Enable GLESv2 support</flag>
+ <flag name="webgl">Build support for the WebGL HTML API using <pkg>virtual/opengl</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.16.6.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.16.6.ebuild
new file mode 100644
index 000000000000..44c39f369684
--- /dev/null
+++ b/net-libs/webkit-gtk/webkit-gtk-2.16.6.ebuild
@@ -0,0 +1,288 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+CMAKE_MAKEFILE_GENERATOR="ninja"
+PYTHON_COMPAT=( python2_7 )
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+inherit check-reqs cmake-utils eutils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx
+
+MY_P="webkitgtk-${PV}"
+DESCRIPTION="Open source web browser engine"
+HOMEPAGE="http://www.webkitgtk.org/"
+SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz"
+
+LICENSE="LGPL-2+ BSD"
+SLOT="4/37" # soname version of libwebkit2gtk-4.0
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+
+IUSE="aqua coverage doc +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jit libnotify nsplugin +opengl spell wayland +webgl X"
+
+# webgl needs gstreamer, bug #560612
+REQUIRED_USE="
+ geolocation? ( introspection )
+ gles2? ( egl )
+ introspection? ( gstreamer )
+ nsplugin? ( X )
+ webgl? ( ^^ ( gles2 opengl ) )
+ !webgl? ( ?? ( gles2 opengl ) )
+ webgl? ( gstreamer )
+ wayland? ( egl )
+ || ( aqua wayland X )
+"
+
+# Tests fail to link for inexplicable reasons
+# https://bugs.webkit.org/show_bug.cgi?id=148210
+RESTRICT="test"
+
+# use sqlite, svg by default
+# Aqua support in gtk3 is untested
+# Dependencies found at Source/cmake/OptionsGTK.cmake
+# Various compile-time optionals for gtk+-3.22.0 - ensure it
+RDEPEND="
+ dev-db/sqlite:3=
+ >=dev-libs/glib-2.36:2
+ dev-libs/hyphen
+ >=dev-libs/icu-3.8.1-r1:=
+ >=dev-libs/libxml2-2.8:2
+ >=dev-libs/libxslt-1.1.7
+ >=media-libs/fontconfig-2.8:1.0
+ >=media-libs/freetype-2.4.2:2
+ >=media-libs/harfbuzz-1.3.3:=[icu(+)]
+ >=media-libs/libpng-1.4:0=
+ media-libs/libwebp:=
+ dev-libs/libgcrypt:0=
+ >=net-libs/libsoup-2.42:2.4[introspection?]
+ >=x11-libs/cairo-1.10.2:=
+ >=x11-libs/gtk+-3.22:3[introspection?]
+ >=x11-libs/pango-1.30.0
+ virtual/jpeg:0=
+
+ aqua? ( >=x11-libs/gtk+-3.14:3[aqua] )
+ egl? ( media-libs/mesa[egl] )
+ geolocation? ( >=app-misc/geoclue-2.1.5:2.0 )
+ gles2? ( media-libs/mesa[gles2] )
+ gnome-keyring? ( app-crypt/libsecret )
+ gstreamer? (
+ >=media-libs/gstreamer-1.2.3:1.0
+ >=media-libs/gst-plugins-base-1.2.3:1.0
+ >=media-libs/gst-plugins-bad-1.8:1.0[opengl?] )
+ introspection? ( >=dev-libs/gobject-introspection-1.32.0:= )
+ libnotify? ( x11-libs/libnotify )
+ nsplugin? ( >=x11-libs/gtk+-2.24.10:2 )
+ opengl? ( virtual/opengl
+ x11-libs/cairo[opengl] )
+ spell? ( >=app-text/enchant-0.22:= )
+ wayland? ( >=x11-libs/gtk+-3.14:3[wayland] )
+ webgl? (
+ x11-libs/cairo[opengl]
+ x11-libs/libXcomposite
+ x11-libs/libXdamage )
+ X? (
+ x11-libs/cairo[X]
+ >=x11-libs/gtk+-3.14:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXrender
+ x11-libs/libXt )
+"
+
+# paxctl needed for bug #407085
+# Need real bison, not yacc
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ ${RUBY_DEPS}
+ >=dev-lang/perl-5.10
+ >=app-accessibility/at-spi2-core-2.5.3
+ >=dev-libs/atk-2.8.0
+ >=dev-util/gtk-doc-am-1.10
+ >=dev-util/gperf-3.0.1
+ >=sys-devel/bison-2.4.3
+ || ( >=sys-devel/gcc-4.9 >=sys-devel/clang-3.3 )
+ sys-devel/gettext
+ virtual/pkgconfig
+
+ dev-lang/perl
+ virtual/perl-Data-Dumper
+ virtual/perl-Carp
+
+ doc? ( >=dev-util/gtk-doc-1.10 )
+ geolocation? ( dev-util/gdbus-codegen )
+ introspection? ( jit? ( sys-apps/paxctl ) )
+ test? (
+ dev-lang/python:2.7
+ dev-python/pygobject:3[python_targets_python2_7]
+ x11-themes/hicolor-icon-theme
+ jit? ( sys-apps/paxctl ) )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
+
+PATCHES=(
+ # https://bugs.gentoo.org/show_bug.cgi?id=555504
+ "${FILESDIR}"/${PN}-2.8.5-fix-ia64-build.patch
+
+ # https://bugs.gentoo.org/show_bug.cgi?id=564352
+ # https://bugs.webkit.org/show_bug.cgi?id=167283
+ "${FILESDIR}"/${PN}-2.8.5-fix-alpha-build.patch
+)
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != "binary" ]] ; then
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
+ check-reqs_pkg_pretend
+ fi
+
+ if ! test-flag-CXX -std=c++11 ; then
+ die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags"
+ fi
+
+ if tc-is-gcc && [[ $(gcc-version) < 4.9 ]] ; then
+ die 'The active compiler needs to be gcc 4.9 (or newer)'
+ fi
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ check-reqs_pkg_setup
+ fi
+
+ python-any-r1_pkg_setup
+}
+
+src_configure() {
+ # Respect CC, otherwise fails on prefix #395875
+ tc-export CC
+
+ # Arches without JIT support also need this to really disable it in all places
+ use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
+
+ # It does not compile on alpha without this in LDFLAGS
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504
+ use ia64 && append-ldflags "-Wl,--no-as-needed"
+
+ # Sigbuses on SPARC with mcpu and co., bug #???
+ use sparc && filter-flags "-mvis"
+
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
+ use ppc64 && append-flags "-mminimal-toc"
+
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference)
+ # --no-keep-memory doesn't work on ia64, bug #502492
+ if ! use ia64; then
+ append-ldflags "-Wl,--no-keep-memory"
+ fi
+
+ # We try to use gold when possible for this package
+# if ! tc-ld-is-gold ; then
+# append-ldflags "-Wl,--reduce-memory-overheads"
+# fi
+
+ # older glibc needs this for INTPTR_MAX, bug #533976
+ if has_version "<sys-libs/glibc-2.18" ; then
+ append-cppflags "-D__STDC_LIMIT_MACROS"
+ fi
+
+ # Multiple rendering bugs on youtube, github, etc without this, bug #547224
+ append-flags $(test-flags -fno-strict-aliasing)
+
+ local ruby_interpreter=""
+
+ if has_version "virtual/rubygems[ruby_targets_ruby24]"; then
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby24)"
+ elif has_version "virtual/rubygems[ruby_targets_ruby23]"; then
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby23)"
+ elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby22)"
+ else
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby21)"
+ fi
+
+ # TODO: Check Web Audio support
+ # should somehow let user select between them?
+ #
+ # FTL_JIT requires llvm
+ #
+ # opengl needs to be explicetly handled, bug #576634
+
+ local opengl_enabled
+ if use opengl || use gles2; then
+ opengl_enabled=ON
+ else
+ opengl_enabled=OFF
+ fi
+
+ # support for webgl (aka 2d-canvas accelerating)
+ local canvas_enabled
+ if use webgl && ! use gles2 ; then
+ canvas_enabled=ON
+ else
+ canvas_enabled=OFF
+ fi
+
+ local mycmakeargs=(
+ -DENABLE_QUARTZ_TARGET=$(usex aqua)
+ -DENABLE_API_TESTS=$(usex test)
+ -DENABLE_GTKDOC=$(usex doc)
+ -DENABLE_GEOLOCATION=$(usex geolocation)
+ $(cmake-utils_use_find_package gles2 OpenGLES2)
+ -DENABLE_GLES2=$(usex gles2)
+ -DENABLE_VIDEO=$(usex gstreamer)
+ -DENABLE_WEB_AUDIO=$(usex gstreamer)
+ -DENABLE_INTROSPECTION=$(usex introspection)
+ -DENABLE_JIT=$(usex jit)
+ -DUSE_LIBNOTIFY=$(usex libnotify)
+ -DUSE_LIBSECRET=$(usex gnome-keyring)
+ -DENABLE_PLUGIN_PROCESS_GTK2=$(usex nsplugin)
+ -DENABLE_SPELLCHECK=$(usex spell)
+ -DENABLE_WAYLAND_TARGET=$(usex wayland)
+ -DENABLE_WEBGL=$(usex webgl)
+ $(cmake-utils_use_find_package egl EGL)
+ $(cmake-utils_use_find_package opengl OpenGL)
+ -DENABLE_X11_TARGET=$(usex X)
+ -DENABLE_OPENGL=${opengl_enabled}
+ -DENABLE_ACCELERATED_2D_CANVAS=${canvas_enabled}
+ -DCMAKE_BUILD_TYPE=Release
+ -DPORT=GTK
+ ${ruby_interpreter}
+ )
+
+ # Allow it to use GOLD when possible as it has all the magic to
+ # detect when to use it and using gold for this concrete package has
+ # multiple advantages and is also the upstream default, bug #585788
+# if tc-ld-is-gold ; then
+# mycmakeargs+=( -DUSE_LD_GOLD=ON )
+# else
+# mycmakeargs+=( -DUSE_LD_GOLD=OFF )
+# fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_test() {
+ # Prevents test failures on PaX systems
+ use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
+
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # Prevents crashes on PaX systems, bug #522808
+ use jit && pax-mark m "${ED}usr/bin/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess"
+ pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"
+ use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2
+}
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild
new file mode 100644
index 000000000000..7e418d824541
--- /dev/null
+++ b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild
@@ -0,0 +1,275 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+inherit autotools check-reqs flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx
+
+MY_P="webkitgtk-${PV}"
+DESCRIPTION="Open source web browser engine"
+HOMEPAGE="http://www.webkitgtk.org/"
+SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz"
+
+LICENSE="LGPL-2+ BSD"
+SLOT="3/25" # soname version of libwebkit2gtk-3.0
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+
+IUSE="aqua coverage debug +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jit +opengl spell wayland +webgl +X"
+# bugs 372493, 416331
+REQUIRED_USE="
+ geolocation? ( introspection )
+ gles2? ( egl )
+ introspection? ( gstreamer )
+ webgl? ( ^^ ( gles2 opengl ) )
+ !webgl? ( ?? ( gles2 opengl ) )
+ || ( aqua wayland X )
+"
+
+# use sqlite, svg by default
+# Aqua support in gtk3 is untested
+# gtk2 is needed for plugin process support
+# gtk3-3.10 required for wayland
+# gtk3-3.20 is needed to ensure we get fixed theming:
+# https://bugzilla.gnome.org/show_bug.cgi?id=757503
+RDEPEND="
+ dev-db/sqlite:3=
+ >=dev-libs/glib-2.36:2
+ >=dev-libs/icu-3.8.1-r1:=
+ >=dev-libs/libxml2-2.6:2
+ >=dev-libs/libxslt-1.1.7
+ >=media-libs/fontconfig-2.5:1.0
+ >=media-libs/freetype-2.4.2:2
+ >=media-libs/harfbuzz-0.9.7:=[icu(+)]
+ >=media-libs/libpng-1.4:0=
+ media-libs/libwebp:=
+ >=net-libs/libsoup-2.42:2.4[introspection?]
+ virtual/jpeg:0=
+ >=x11-libs/cairo-1.10:=[X?]
+ >=x11-libs/gtk+-3.20.0:3[X?,aqua?,introspection?]
+ >=x11-libs/pango-1.30.0
+
+ >=x11-libs/gtk+-2.24.10:2
+
+ egl? ( media-libs/mesa[egl] )
+ geolocation? ( >=app-misc/geoclue-2.1.5:2.0 )
+ gles2? ( media-libs/mesa[gles2] )
+ gnome-keyring? ( app-crypt/libsecret )
+ gstreamer? (
+ >=media-libs/gstreamer-1.2:1.0
+ >=media-libs/gst-plugins-base-1.2:1.0 )
+ introspection? ( >=dev-libs/gobject-introspection-1.32.0:= )
+ opengl? ( virtual/opengl )
+ spell? ( >=app-text/enchant-0.22:= )
+ wayland? ( >=x11-libs/gtk+-3.10:3[wayland] )
+ webgl? (
+ x11-libs/cairo[opengl]
+ x11-libs/libXcomposite
+ x11-libs/libXdamage )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXrender
+ x11-libs/libXt )
+"
+
+# paxctl needed for bug #407085
+# Need real bison, not yacc
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ ${RUBY_DEPS}
+ >=dev-lang/perl-5.10
+ >=app-accessibility/at-spi2-core-2.5.3
+ >=dev-libs/atk-2.8.0
+ >=dev-util/gtk-doc-am-1.10
+ >=dev-util/gperf-3.0.1
+ >=sys-devel/bison-2.4.3
+ >=sys-devel/flex-2.5.34
+ || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 )
+ sys-devel/gettext
+ >=sys-devel/make-3.82-r4
+ virtual/pkgconfig
+
+ geolocation? ( dev-util/gdbus-codegen )
+ introspection? ( jit? ( sys-apps/paxctl ) )
+ test? (
+ dev-lang/python:2.7
+ dev-python/pygobject:3[python_targets_python2_7]
+ x11-themes/hicolor-icon-theme
+ jit? ( sys-apps/paxctl ) )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
+ check-reqs_pkg_pretend
+ fi
+
+ if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then
+ die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
+ fi
+}
+
+pkg_setup() {
+ # Check whether any of the debugging flags is enabled
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then
+ replace-flags -ggdb -g
+ ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS."
+ ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too"
+ ewarn "large for current binutils releases (bug #432784) and has very"
+ ewarn "high temporary build space and memory requirements."
+ ewarn "If you really want to build ${PN} with \"-ggdb\", add"
+ ewarn "WEBKIT_GTK_GGDB=yes"
+ ewarn "to your make.conf file."
+ fi
+ einfo "You need to have at least 18GB of temporary build space available"
+ einfo "to build ${PN} with debugging CFLAGS. Note that it might still"
+ einfo "not be enough, as the total space requirements depend on the flags"
+ einfo "(-ggdb vs -g1) and enabled features."
+ check-reqs_pkg_setup
+ fi
+
+ [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ # intermediate MacPorts hack while upstream bug is not fixed properly
+ # https://bugs.webkit.org/show_bug.cgi?id=28727
+ use aqua && eapply "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch
+
+ # Leave optimization level to user CFLAGS
+ # FORTIFY_SOURCE is enabled by default in Gentoo
+ sed -e 's/-O[012]//g' \
+ -e 's/-D_FORTIFY_SOURCE=2//g' \
+ -i Source/autotools/SetupCompilerFlags.m4 || die
+
+ # bug #459978, upstream bug #113397
+ eapply "${FILESDIR}"/${PN}-1.11.90-gtk-docize-fix.patch
+
+ # Debian patches to fix support for some arches
+ # https://bugs.webkit.org/show_bug.cgi?id=129540
+ eapply "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch
+ # https://bugs.webkit.org/show_bug.cgi?id=129542
+ eapply "${FILESDIR}"/${PN}-2.4.1-ia64-malloc.patch
+
+ # Fix building on ppc (from OpenBSD, only needed on slot 3)
+ # https://bugs.webkit.org/show_bug.cgi?id=130837
+ eapply "${FILESDIR}"/${PN}-2.4.4-atomic-ppc.patch
+
+ # Fix build with recent libjpeg, bug #481688
+ # https://bugs.webkit.org/show_bug.cgi?id=122412
+ eapply "${FILESDIR}"/${PN}-2.4.4-jpeg-9a.patch
+
+ # Fix building with --disable-webgl, bug #500966
+ # https://bugs.webkit.org/show_bug.cgi?id=131267
+ eapply "${FILESDIR}"/${PN}-2.4.7-disable-webgl.patch
+
+ # https://bugs.webkit.org/show_bug.cgi?id=156510
+ eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch
+
+ # https://bugs.webkit.org/show_bug.cgi?id=159124#c1
+ eapply "${FILESDIR}"/${PN}-2.4.9-gcc-6.patch
+
+ AT_M4DIR=Source/autotools eautoreconf
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # Respect CC, otherwise fails on prefix #395875
+ tc-export CC
+
+ # Arches without JIT support also need this to really disable it in all places
+ use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
+
+ # It does not compile on alpha without this in LDFLAGS
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ # Sigbuses on SPARC with mcpu and co., bug #???
+ use sparc && filter-flags "-mvis"
+
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
+ use ppc64 && append-flags "-mminimal-toc"
+
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference)
+ # --no-keep-memory doesn't work on ia64, bug #502492
+ if ! use ia64; then
+ append-ldflags "-Wl,--no-keep-memory"
+ fi
+ if ! $(tc-getLD) --version | grep -q "GNU gold"; then
+ append-ldflags "-Wl,--reduce-memory-overheads"
+ fi
+
+ local ruby_interpreter=""
+
+ if has_version "virtual/rubygems[ruby_targets_ruby23]"; then
+ ruby_interpreter="RUBY=$(type -P ruby23)"
+ elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then
+ ruby_interpreter="RUBY=$(type -P ruby22)"
+ elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then
+ ruby_interpreter="RUBY=$(type -P ruby21)"
+ else
+ ruby_interpreter="RUBY=$(type -P ruby20)"
+ fi
+
+ # TODO: Check Web Audio support
+ # should somehow let user select between them?
+ #
+ # * Aqua support in gtk3 is untested
+ # * dependency-tracking is required so parallel builds won't fail
+ gnome2_src_configure \
+ $(use_enable aqua quartz-target) \
+ $(use_enable coverage) \
+ $(use_enable debug) \
+ $(use_enable egl) \
+ $(use_enable geolocation) \
+ $(use_enable gles2) \
+ $(use_enable gnome-keyring credential_storage) \
+ $(use_enable gstreamer video) \
+ $(use_enable gstreamer web-audio) \
+ $(use_enable introspection) \
+ $(use_enable jit) \
+ $(use_enable opengl glx) \
+ $(use_enable spell spellcheck) \
+ $(use_enable webgl) \
+ $(use_enable webgl accelerated-compositing) \
+ $(use_enable wayland wayland-target) \
+ $(use_enable X x11-target) \
+ --with-gtk=3.0 \
+ --enable-dependency-tracking \
+ --disable-gtk-doc \
+ ${ruby_interpreter}
+}
+
+src_test() {
+ # Tests expect an out-of-source build in WebKitBuild
+ ln -s . WebKitBuild || die "ln failed"
+
+ # Prevents test failures on PaX systems
+ use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
+
+ # Tests need virtualx, bug #294691, bug #310695
+ # Parallel tests sometimes fail
+ virtx emake -j1 check
+}
+
+src_install() {
+ DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install
+
+ # https://bugs.webkit.org/show_bug.cgi?id=129242
+ MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install
+
+ newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk
+ newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore
+ newdoc Source/WebCore/ChangeLog ChangeLog.WebCore
+
+ # Prevents crashes on PaX systems, bug #522808
+ use jit && pax-mark m "${ED}usr/bin/jsc-3" "${ED}usr/libexec/WebKitWebProcess"
+ pax-mark m "${ED}usr/libexec/WebKitPluginProcess"
+}
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild
new file mode 100644
index 000000000000..1c3cf3c05cf5
--- /dev/null
+++ b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild
@@ -0,0 +1,262 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+inherit autotools check-reqs flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx
+
+MY_P="webkitgtk-${PV}"
+DESCRIPTION="Open source web browser engine"
+HOMEPAGE="http://www.webkitgtk.org/"
+SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz"
+
+LICENSE="LGPL-2+ BSD"
+SLOT="2" # no usable subslot
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+
+IUSE="aqua coverage debug +egl +geoloc gles2 gnome-keyring +gstreamer +introspection +jit +opengl spell +webgl +X"
+# bugs 372493, 416331
+REQUIRED_USE="
+ geoloc? ( introspection )
+ gles2? ( egl )
+ introspection? ( gstreamer )
+ webgl? ( ^^ ( gles2 opengl ) )
+ !webgl? ( ?? ( gles2 opengl ) )
+ || ( aqua X )
+"
+
+# use sqlite, svg by default
+RDEPEND="
+ dev-db/sqlite:3=
+ >=dev-libs/glib-2.36:2
+ >=dev-libs/icu-3.8.1-r1:=
+ >=dev-libs/libxml2-2.6:2
+ >=dev-libs/libxslt-1.1.7
+ >=media-libs/fontconfig-2.5:1.0
+ >=media-libs/freetype-2.4.2:2
+ >=media-libs/harfbuzz-0.9.7:=[icu(+)]
+ >=media-libs/libpng-1.4:0=
+ media-libs/libwebp:=
+ >=net-libs/libsoup-2.42:2.4[introspection?]
+ virtual/jpeg:0=
+ >=x11-libs/cairo-1.10:=[X]
+ >=x11-libs/gtk+-2.24.10:2[aqua?,introspection?]
+ x11-libs/libXrender
+ x11-libs/libXt
+ >=x11-libs/pango-1.30.0
+
+ egl? ( media-libs/mesa[egl] )
+ geoloc? ( >=app-misc/geoclue-2.1.5:2.0 )
+ gles2? ( media-libs/mesa[gles2] )
+ gnome-keyring? ( app-crypt/libsecret )
+ gstreamer? (
+ >=media-libs/gstreamer-1.2:1.0
+ >=media-libs/gst-plugins-base-1.2:1.0 )
+ introspection? ( >=dev-libs/gobject-introspection-1.32.0:= )
+ opengl? ( virtual/opengl )
+ spell? ( >=app-text/enchant-0.22:= )
+ webgl? (
+ x11-libs/cairo[opengl]
+ x11-libs/libXcomposite
+ x11-libs/libXdamage )
+"
+
+# paxctl needed for bug #407085
+# Need real bison, not yacc
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ ${RUBY_DEPS}
+ >=dev-lang/perl-5.10
+ >=dev-libs/atk-2.8.0
+ >=dev-util/gtk-doc-am-1.10
+ >=dev-util/gperf-3.0.1
+ >=sys-devel/bison-2.4.3
+ >=sys-devel/flex-2.5.34
+ || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 )
+ sys-devel/gettext
+ >=sys-devel/make-3.82-r4
+ virtual/pkgconfig
+
+ geoloc? ( dev-util/gdbus-codegen )
+ introspection? ( jit? ( sys-apps/paxctl ) )
+ test? (
+ dev-lang/python:2.7
+ dev-python/pygobject:3[python_targets_python2_7]
+ x11-themes/hicolor-icon-theme
+ jit? ( sys-apps/paxctl ) )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
+ check-reqs_pkg_pretend
+ fi
+
+ if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then
+ die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
+ fi
+}
+
+pkg_setup() {
+ # Check whether any of the debugging flags is enabled
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then
+ replace-flags -ggdb -g
+ ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS."
+ ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too"
+ ewarn "large for current binutils releases (bug #432784) and has very"
+ ewarn "high temporary build space and memory requirements."
+ ewarn "If you really want to build ${PN} with \"-ggdb\", add"
+ ewarn "WEBKIT_GTK_GGDB=yes"
+ ewarn "to your make.conf file."
+ fi
+ einfo "You need to have at least 18GB of temporary build space available"
+ einfo "to build ${PN} with debugging CFLAGS. Note that it might still"
+ einfo "not be enough, as the total space requirements depend on the flags"
+ einfo "(-ggdb vs -g1) and enabled features."
+ check-reqs_pkg_setup
+ fi
+
+ [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ # intermediate MacPorts hack while upstream bug is not fixed properly
+ # https://bugs.webkit.org/show_bug.cgi?id=28727
+ use aqua && eapply "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch
+
+ # Leave optimization level to user CFLAGS
+ # FORTIFY_SOURCE is enabled by default in Gentoo
+ sed -e 's/-O[012]//g' \
+ -e 's/-D_FORTIFY_SOURCE=2//g' \
+ -i Source/autotools/SetupCompilerFlags.m4 || die
+
+ # bug #459978, upstream bug #113397
+ eapply "${FILESDIR}"/${PN}-1.11.90-gtk-docize-fix.patch
+
+ # Debian patches to fix support for some arches
+ # https://bugs.webkit.org/show_bug.cgi?id=129540
+ eapply "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch
+ # https://bugs.webkit.org/show_bug.cgi?id=129542
+ eapply "${FILESDIR}"/${PN}-2.4.1-ia64-malloc.patch
+
+ # Fix build with recent libjpeg, bug #481688
+ # https://bugs.webkit.org/show_bug.cgi?id=122412
+ eapply "${FILESDIR}"/${PN}-2.4.4-jpeg-9a.patch
+
+ # Fix building with --disable-webgl, bug #500966
+ # https://bugs.webkit.org/show_bug.cgi?id=131267
+ eapply "${FILESDIR}"/${PN}-2.4.7-disable-webgl.patch
+
+ # https://bugs.webkit.org/show_bug.cgi?id=156510
+ eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch
+
+ # https://bugs.webkit.org/show_bug.cgi?id=159124#c1
+ eapply "${FILESDIR}"/${PN}-2.4.9-gcc-6.patch
+
+ AT_M4DIR=Source/autotools eautoreconf
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # Respect CC, otherwise fails on prefix #395875
+ tc-export CC
+
+ # Arches without JIT support also need this to really disable it in all places
+ use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
+
+ # It does not compile on alpha without this in LDFLAGS
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ # Sigbuses on SPARC with mcpu and co., bug #???
+ use sparc && filter-flags "-mvis"
+
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
+ use ppc64 && append-flags "-mminimal-toc"
+
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference)
+ # --no-keep-memory doesn't work on ia64, bug #502492
+ if ! use ia64; then
+ append-ldflags "-Wl,--no-keep-memory"
+ fi
+ if ! $(tc-getLD) --version | grep -q "GNU gold"; then
+ append-ldflags "-Wl,--reduce-memory-overheads"
+ fi
+
+ local ruby_interpreter=""
+
+ if has_version "virtual/rubygems[ruby_targets_ruby23]"; then
+ ruby_interpreter="RUBY=$(type -P ruby23)"
+ elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then
+ ruby_interpreter="RUBY=$(type -P ruby22)"
+ elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then
+ ruby_interpreter="RUBY=$(type -P ruby21)"
+ else
+ ruby_interpreter="RUBY=$(type -P ruby20)"
+ fi
+
+ # TODO: Check Web Audio support
+ # should somehow let user select between them?
+ #
+ # * dependency-tracking is required so parallel builds won't fail
+ gnome2_src_configure \
+ $(use_enable aqua quartz-target) \
+ $(use_enable coverage) \
+ $(use_enable debug) \
+ $(use_enable egl) \
+ $(use_enable geoloc geolocation) \
+ $(use_enable gles2) \
+ $(use_enable gnome-keyring credential_storage) \
+ $(use_enable gstreamer video) \
+ $(use_enable gstreamer web-audio) \
+ $(use_enable introspection) \
+ $(use_enable jit) \
+ $(use_enable opengl glx) \
+ $(use_enable spell spellcheck) \
+ $(use_enable webgl) \
+ $(use_enable webgl accelerated-compositing) \
+ $(use_enable X x11-target) \
+ --with-gtk=2.0 \
+ --disable-webkit2 \
+ --enable-dependency-tracking \
+ --disable-gtk-doc \
+ ${ruby_interpreter}
+}
+
+src_test() {
+ # Tests expect an out-of-source build in WebKitBuild
+ ln -s . WebKitBuild || die "ln failed"
+
+ # Prevents test failures on PaX systems
+ use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
+
+ # Tests need virtualx, bug #294691, bug #310695
+ # Parallel tests sometimes fail
+ virtx emake -j1 check
+}
+
+src_install() {
+ DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install
+
+ # https://bugs.webkit.org/show_bug.cgi?id=129242
+ MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install
+
+ newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk
+ newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore
+ newdoc Source/WebCore/ChangeLog ChangeLog.WebCore
+
+ # Prevents crashes on PaX systems
+ use jit && pax-mark m "${ED}usr/bin/jsc-1"
+
+ # File collisions with slot 3
+ # bug #402699, https://bugs.webkit.org/show_bug.cgi?id=78134
+ rm -rf "${ED}usr/share/gtk-doc" || die
+}
diff --git a/net-libs/wvstreams/Manifest b/net-libs/wvstreams/Manifest
new file mode 100644
index 000000000000..f376d6c62dbd
--- /dev/null
+++ b/net-libs/wvstreams/Manifest
@@ -0,0 +1,15 @@
+AUX wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch 383 SHA256 79ced88593948a2083747b118f60fee7cdae18c0baf3b6115175b17955297d07 SHA512 629d0890d46849f2b46ce1823955f9bca98f0adb04f3ac92758c90435841803a0134cea66ef9ba01262f2abc8da82ded9e113dfeec51722593b36943c5d2786f WHIRLPOOL f1acc70f1aa018e2312f5e4fa2dbc1d3344615588bf4bf4ba03ba2276438beed33b441e6a38b1cc19e7ca07cd12e2f71701a5f0b824db7c7e11ce169df5afa52
+AUX wvstreams-4.6.1-_DEFAULT_SOURCE.patch 271 SHA256 0028aec2ac20e6751bceaa0947987d18435798ddc42f39018ee8d98af0683388 SHA512 99ffbd0551b60f66487db9cdda019400d244d8865ce8998bc906fbf169f1a3c19b7e8deaed57f2b572df8aa23405762405919929b894251115db05b786bee0dd WHIRLPOOL 6314203fca64955b57956a84de8711f2f3bfe3a7a4b466034a05188bb1c170d25a94499d3c6259992b85550267250e0adb06b99f75639c16833c960e74b8d364
+AUX wvstreams-4.6.1-autoconf.patch 701 SHA256 3387909a7bb48c080be2c06d41a94d3467cd5a1eda796dfc5a5a9e301fae3bd1 SHA512 31262107df38069b64b52b9660f0b5d8a2644a7f59e0e3e03a0502b1590690f039ad19d33ce73c3890b1e3d240658a5119791386db9e5a1f7045ae4650b1349e WHIRLPOOL 38102d70ef3ddadf6de3682fcbdb46e33c4ead431c15a16310320fb1eb0f90e07e84623c9ceb9cd84410d87d098323e0824d7c5a340fe435a711499fe5ced41b
+AUX wvstreams-4.6.1-fix-c++14.patch 1205 SHA256 ee4ebfe131f2c9a2dd32ea5ef1490e1817f36223ec0273a2f20744cb4e38e134 SHA512 a627b30fa9af412307fa082f27ff999fb7f198cf4acecc14f9efa0aee493a602672628b555096e833692c66abc35bc64011abd0588ac26232d338b0c81c69306 WHIRLPOOL 5a39acc27342a6401166d6397dc683495c7f8f876b049ae3252de407a1386f6cc35ed4e3afce818ef06146bc9b2c46077c1eb26a70f3ea7016992e911ef04041
+AUX wvstreams-4.6.1-gcc47.patch 1308 SHA256 58974ca81f6088232ca617c9eaf5bf9d1c223dea422f098d7b7d34c2b3b69c45 SHA512 cfac44a0c80d58e67d4a3be17cca3008f6c7bba02b434701fcf07a1209220edf93b4d0dc1f478456e07e28f9e39ab9d19a52a07ad1f9ecd09028ef5446cebfa5 WHIRLPOOL 3d0bbe4450956dfd6f7fef34fb33fcf16c6032bd7269006a055190427d2ff695656347640b5919bd75a3247fb26806399aa59aab24c49dff770c61efcc0e52e1
+AUX wvstreams-4.6.1-glibc212.patch 497 SHA256 f9f85eeafce67d53dc4265e739fa2349ab18d55dd37933c343d4ce945b0d86ff SHA512 467ef4faad88b4ba150a05f95147bbd2ba8d297bbb5e32a1c85e482b62786e1ec82f6ae8a8f62426c01239ec9e9da899f38fcd7a7d4737dd9a8c9d6de0bdedb1 WHIRLPOOL 2d0c0cc6d71707e35d398d70070553ae57dc77ed7ecb0fb4f25bf11219d761e6197113087624f8e94119e358a5fe09b7d6a4aa6c77739ea4f6e814f43330e3db
+AUX wvstreams-4.6.1-openssl-1.0.0.patch 399 SHA256 251794f1fbb99e3dccc068a3e2ba3249687dc270ac154ba736b028ac43418642 SHA512 98d8c8b529e9ce6c8219f70dbec8f9270d14952e88e3f0f0cf16e58cfed2cad8a2bd4039d2006290f9567beaeb5ec77ef500fb5bc812b7a3bac6a1bf4e2888aa WHIRLPOOL 09fc6ad0543173529b033d294ace1427e300849e9d744e2510dc1473e2e4158451d15cb5f0ca6952bfca88064a01673a7d4dba3cd765f734d398d0e54091eea2
+AUX wvstreams-4.6.1-parallel-make.patch 1882 SHA256 488f265874ee4c5e722fd26a0c426c172fe4685f283cff11bfd53d8c7d74e299 SHA512 d7fffbd7940495f2e34d3317b8f0066f6caa98e213df00bf31e3f42fa6821c9fd017e3052f7ff98303a8d8bb61d9b24a14b87ddd18199038e083e42cf253c17e WHIRLPOOL 4bb2036a0ef8be08306cc961cd49a8398eeed8e9b67b0340e6790206131608f75791e36fb418110f4638aeaf8ecdf3cc9f5fae2fd0f24d3e3042b45e82e9cb6f
+DIST wvstreams-4.6.1.tar.gz 1118456 SHA256 8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8ebc07633 SHA512 59d64e527d86394b768b35254bf95ea59c412c0e092393ea3c84ec3202949150439bb6093bd7350b64ad4767acdb8feb38806c03de4e5cf238ed893f41db4a4a WHIRLPOOL 4d5a8e39332d00c1614d81e3d980d2458aebdf745b6630c8875adfff89b2c0baf08d39e5f7cc47bb4dbe37bc573c7e019e31163837df6d6d13741eeccc1c8e7a
+EBUILD wvstreams-4.6.1-r3.ebuild 2404 SHA256 ec8aabbf8e9ee613cc4e37618a75aa08ac40f3294c61105a722e7dac07b5cc8a SHA512 f4a95c3d74d79315e297a78c99ab2fca17b953c2b2b0f62934ed1de78b3ef98aba423057033eee1936717ff32f469b404875944f81b8e6f723f8cd701990ace9 WHIRLPOOL c4f4b39a2d0f31044fcc2c426057f64dab474687e7d3136f0855165a112c3a900f47329358aab65b97c746bf955d6192a3bf09b2ff46109ca685380f527c85d8
+EBUILD wvstreams-4.6.1-r4.ebuild 2039 SHA256 10e202a03e1f160dc4282af5acc4b442c98a3d2801b56ca470896aa896942349 SHA512 2a24763688a9d28d488ab6baced03d253af9a3a3d15c3d657b14fba32bb230614c8051b7da39b61a895ebbd5bd0eff5e2e68d3c45c7f2c42e5ac27cf2a5d78a1 WHIRLPOOL 9d85a350702457dd2d14da5a6778f73efedfe7625793d479f3385f670fb5547d12fa059bdc5238077e8eeb8b2fc7b5dbe5e7b72572ee30c079519088f8021817
+EBUILD wvstreams-4.6.1-r5.ebuild 2113 SHA256 299668f61eba0be1ea85649392a11f25200c87a628588b56148c727a849f4863 SHA512 2fe82454c1c34ac4d70e98b439e31beb3e8d9d6696e8ba0de6068f38e68288291f05bf0dce5f204b2374e746cf166f81300ad8d03d6d185eca5ac1d2ef191aaa WHIRLPOOL 4bcd422f0e9026b34d712da2007b2c8baf1ad047bfcb8a95ff02a10b6eb6a6b50b21f5c8b7b57dfa925cdabaaaa10c95fb26b5434f2d41a29273eb8b7447dc42
+MISC ChangeLog 3133 SHA256 a1069599338b4972a9b6050d86e5fb8c9beae9b0631560e5e099466e3705c78a SHA512 384ea935735de708f4d4c950be17d9c5813aca3fd2a079bd1c77e244be773d288d49b75bd38e0abd8de0a83623126fa1e1ad56db333bf804674cfc79b9b2bc50 WHIRLPOOL b6814a1ab2d55708b74c32a4c7e45082c4564bc15ad546618641ff90f504416db535640b34ec7abeafe8227b141e05b9bc3862a1da7c26fc8c05e846d4bb6914
+MISC ChangeLog-2015 27822 SHA256 cb0d9738ec60077eeeb552b2a28721580a68208952ef54b44d90a1bac0f383b1 SHA512 8802369d241831354507f9d5afde6c60b1c2d75134f84a830748ea86be778bb6b224da9f8c9504d2009564aa4b5fb6fa4a4bf6e6c5f087b20f781a19d8a04988 WHIRLPOOL 70b0326438af1b1fdb29a4f45e7671f1bd1427e246e97b6d76bccd124585dd6b4bac6e34942f8431cff9c44614db43f30d4ae335644150fd6381771804029e68
+MISC metadata.xml 567 SHA256 27e518f0770824985adea92155328ab4c024cf4b367d3249d00ba6aba6302d3b SHA512 11ce01ce8844fa3c43e8175c36a0f76266ce43acc9d6ed86156bfddc0b8e5f5ede6ecac9518e329c48fa46a448e57021496e46f9282d6d0cc81133ac9488c437 WHIRLPOOL 1fe86f1f3c7d6478299ae6c1b759a2be3b19168afdd92257cd992a35ac736e19ee59a3fbe4fdee1fd33c0839ded0d50fd97a3270086d9cbb7048a0626b43d6a0
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
new file mode 100644
index 000000000000..15fb13ca633c
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
@@ -0,0 +1,11 @@
+--- a/utils/wvtask.cc
++++ b/utils/wvtask.cc
+@@ -429,7 +429,7 @@
+ total = (val+1) * (size_t)1024;
+
+ if (!use_shared_stack())
+- total = 1024; // enough to save the do_task stack frame
++ total = 2048; // enough to save the do_task stack frame
+
+ // set up a stack frame for the new task. This runs once
+ // per get_stack.
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch
new file mode 100644
index 000000000000..1084a5be21e3
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch
@@ -0,0 +1,11 @@
+--- a/wvrules.mk
++++ b/wvrules.mk
+@@ -83,7 +83,7 @@
+
+ INCFLAGS=$(addprefix -I,$(WVSTREAMS_INC) $(XPATH))
+ CPPFLAGS+=$(INCFLAGS) \
+- -D_BSD_SOURCE -D_GNU_SOURCE $(OSDEFINE) \
++ -D_DEFAULT_SOURCE $(OSDEFINE) \
+ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
+ -DUNSTABLE
+
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-autoconf.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-autoconf.patch
new file mode 100644
index 000000000000..a9b9a5ac90c1
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-autoconf.patch
@@ -0,0 +1,31 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -641,6 +641,8 @@
+
+ AC_CONFIG_HEADERS(include/wvautoconf.h)
+
++AC_CONFIG_SUBDIRS(argp)
++
+ AC_OUTPUT
+
+ # Now convert PACKAGE_* macros into WVPACKAGE_* in include/wvautoconf.h
+--- a/argp/configure.ac
++++ b/argp/configure.ac
+@@ -4,7 +4,7 @@
+ AC_PREREQ(2.54)
+ AC_INIT(argp-ba.c)
+ AM_INIT_AUTOMAKE(argp, standalone-1.3)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ # GNU libc defaults to supplying the ISO C library functions only. The
+ # _GNU_SOURCE define enables these extensions, in particular we want
+@@ -18,7 +18,7 @@
+ AC_PROG_RANLIB
+ AC_PROGRAM_CHECK(AR,ar,ar,:)
+ AC_PROGRAM_CHECK(AR,gar,gar,:)
+-AM_PROG_CC_STDC
++AC_PROG_CC
+
+ AC_SUBST(AR)
+
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch
new file mode 100644
index 000000000000..b2c2efd56248
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch
@@ -0,0 +1,36 @@
+Fix building with C++14, which errors out due to explicit operator bool() conversion
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594058
+
+--- a/streams/wvstream.cc
++++ b/streams/wvstream.cc
+@@ -907,9 +907,9 @@
+
+ if (forceable)
+ {
+- si.wants.readable = readcb;
+- si.wants.writable = writecb;
+- si.wants.isexception = exceptcb;
++ si.wants.readable = static_cast<bool>(readcb);
++ si.wants.writable = static_cast<bool>(writecb);
++ si.wants.isexception = static_cast<bool>(exceptcb);
+ }
+ else
+ {
+@@ -1019,7 +1019,7 @@
+
+ IWvStream::SelectRequest WvStream::get_select_request()
+ {
+- return IWvStream::SelectRequest(readcb, writecb, exceptcb);
++ return IWvStream::SelectRequest(static_cast<bool>(readcb), static_cast<bool>(writecb), static_cast<bool>(exceptcb));
+ }
+
+
+@@ -1107,7 +1107,7 @@
+ // inefficient, because if the alarm was expired then pre_select()
+ // returned true anyway and short-circuited the previous select().
+ TRACE("hello-%p\n", this);
+- return !alarm_was_ticking || select(0, readcb, writecb, exceptcb);
++ return !alarm_was_ticking || select(0, static_cast<bool>(readcb), static_cast<bool>(writecb), static_cast<bool>(exceptcb));
+ }
+
+
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-gcc47.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-gcc47.patch
new file mode 100644
index 000000000000..a1ad88817932
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-gcc47.patch
@@ -0,0 +1,50 @@
+http://bugs.gentoo.org/419563
+http://bugs.gentoo.org/419971
+
+See -gcc47-patch and -magic.patch in Fedora git:
+
+http://pkgs.fedoraproject.org/gitweb/?p=libwvstreams.git;a=tree
+
+--- a/include/wvtask.h
++++ b/include/wvtask.h
+@@ -45,7 +45,8 @@
+ typedef void TaskFunc(void *userdata);
+
+ static int taskcount, numtasks, numrunning;
+- int magic_number, *stack_magic;
++ int volatile magic_number;
++ int *stack_magic;
+ WvString name;
+ int tid;
+
+@@ -84,7 +85,7 @@
+ static WvTaskMan *singleton;
+ static int links;
+
+- static int magic_number;
++ static int volatile magic_number;
+ static WvTaskList all_tasks, free_tasks;
+
+ static void get_stack(WvTask &task, size_t size);
+--- a/include/wvuid.h
++++ b/include/wvuid.h
+@@ -7,6 +7,7 @@
+ #ifndef __WVUID_H
+ #define __WVUID_H
+
++#include <unistd.h>
+ #include "wvstring.h"
+
+ #if WIN32
+--- a/utils/wvtask.cc
++++ b/utils/wvtask.cc
+@@ -58,7 +58,8 @@
+ int WvTask::taskcount, WvTask::numtasks, WvTask::numrunning;
+
+ WvTaskMan *WvTaskMan::singleton;
+-int WvTaskMan::links, WvTaskMan::magic_number;
++int WvTaskMan::links;
++int volatile WvTaskMan::magic_number;
+ WvTaskList WvTaskMan::all_tasks, WvTaskMan::free_tasks;
+ ucontext_t WvTaskMan::stackmaster_task, WvTaskMan::get_stack_return,
+ WvTaskMan::toplevel;
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-glibc212.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-glibc212.patch
new file mode 100644
index 000000000000..38218d7213a9
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-glibc212.patch
@@ -0,0 +1,23 @@
+http://bugs.gentoo.org/333301
+
+--- a/ipstreams/wvunixdgsocket.cc
++++ b/ipstreams/wvunixdgsocket.cc
+@@ -1,5 +1,5 @@
+ #include "wvunixdgsocket.h"
+-#ifdef MACOS
++#if defined(MACOS) || defined(__GNUC__)
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #endif
+--- a/streams/wvatomicfile.cc
++++ b/streams/wvatomicfile.cc
+@@ -11,7 +11,8 @@
+ #include "wvfileutils.h"
+ #include "wvstrutils.h"
+
+-#ifdef MACOS
++#if defined(MACOS) || defined(__GNUC__)
++#include <sys/types.h>
+ #include <sys/stat.h>
+ #endif
+
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-openssl-1.0.0.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-openssl-1.0.0.patch
new file mode 100644
index 000000000000..327e19a0c11b
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-openssl-1.0.0.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/304283
+
+--- a/crypto/wvx509.cc
++++ b/crypto/wvx509.cc
+@@ -1157,7 +1157,11 @@
+
+ if (ext)
+ {
++#if OPENSSL_VERSION_NUMBER >= 0x10000000L
++ const X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
++#else
+ X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
++#endif
+ if (!method)
+ {
+ WvDynBuf buf;
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-parallel-make.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-parallel-make.patch
new file mode 100644
index 000000000000..688178c3a1bd
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-parallel-make.patch
@@ -0,0 +1,56 @@
+--- a/Makefile
++++ b/Makefile
+@@ -131,12 +131,19 @@
+ # libwvstreams: stream/event handling library
+ #
+ TARGETS += libwvstreams.so
+-TARGETS += crypto/tests/ssltest ipstreams/tests/unixtest
++TARGETS += crypto/tests/ssltest
++crypto/tests/ssltest: $(LIBWVSTREAMS)
++
++TARGETS += ipstreams/tests/unixtest
++ipstreams/tests/unixtest: $(LIBWVSTREAMS)
++
+ TARGETS += crypto/tests/printcert
++crypto/tests/printcert: $(LIBWVSTREAMS)
+
+ ifndef _MACOS
+ ifneq ("$(with_readline)", "no")
+ TARGETS += ipstreams/tests/wsd
++ ipstreams/tests/wsd: $(LIBWVSTREAMS)
+ ipstreams/tests/wsd-LIBS += -lreadline
+ else
+ TEST_SKIP_OBJS += ipstreams/tests/wsd
+@@ -179,7 +186,11 @@
+ #
+ ifneq ("$(with_dbus)", "no")
+ TARGETS += libwvdbus.so
+- TARGETS += dbus/tests/wvdbus dbus/tests/wvdbusd
++ TARGETS += dbus/tests/wvdbus
++ dbus/tests/wvdbus: $(LIBWVDBUS)
++
++ TARGETS += dbus/tests/wvdbusd
++ dbus/tests/wvdbusd: $(LIBWVDBUS)
+ TESTS += $(call tests_cc,dbus/tests)
+ libwvdbus_OBJS += $(call objects,dbus)
+ libwvdbus.so: $(libwvdbus_OBJS) $(LIBWVSTREAMS)
+--- a/wvrules-posix.mk
++++ b/wvrules-posix.mk
+@@ -85,12 +85,15 @@
+ $(AR) s $1
+ endef
+
+-CC: FORCE
++CC:
+ @CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
+ $(WVSTREAMS)/gen-cc CC c
+
+-CXX: FORCE
++CXX:
+ @CC="$(CXX)" CFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
+ $(WVSTREAMS)/gen-cc CXX cc
+
++#All files must depend on the above two rules. This is a godawful hack.
++$(shell find -type f '(' -name '*.c' -o -name '*.cc' ')' ): CC CXX
++
+ wvlink=$(LINK_MSG)$(WVLINK_CC) $(LDFLAGS) $($1-LDFLAGS) -o $1 $(filter %.o %.a %.so, $2) $($1-LIBS) $(XX_LIBS) $(LDLIBS) $(PRELIBS) $(LIBS)
diff --git a/net-libs/wvstreams/metadata.xml b/net-libs/wvstreams/metadata.xml
new file mode 100644
index 000000000000..bc7e48187998
--- /dev/null
+++ b/net-libs/wvstreams/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type='person'>
+<email>jer@gentoo.org</email>
+</maintainer>
+ <upstream>
+ <remote-id type="google-code">wvstreams</remote-id>
+ </upstream>
+ <use>
+ <flag name="boost">
+ Use <pkg>dev-libs/boost</pkg> to provide TR1-compatible
+ functional interface. This USE flag is only needed with GCC
+ earlier than version 4.1, or with other compilares not providing
+ said interface.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild b/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
new file mode 100644
index 000000000000..dad2d2f206a9
--- /dev/null
+++ b/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic toolchain-funcs versionator
+
+DESCRIPTION="A network programming library in C++"
+HOMEPAGE="http://alumnit.ca/wiki/?WvStreams"
+SRC_URI="https://wvstreams.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ppc sparc x86"
+IUSE="pam doc +ssl +dbus debug boost"
+
+#Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL!
+RESTRICT="test"
+
+#QA Fail: xplc is compiled as a part of wvstreams.
+#It'll take a larger patching effort to get it extracted, since upstream integrated it
+#more tightly this time. Probably for the better since upstream xplc seems dead.
+
+RDEPEND="sys-libs/readline:0=
+ sys-libs/zlib
+ dbus? ( >=sys-apps/dbus-1.4.20 )
+ <dev-libs/openssl-1.1:0=
+ pam? ( virtual/pam )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ boost? ( >=dev-libs/boost-1.34.1:= )"
+
+DOCS="ChangeLog README*"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} == "binary" ]] && return
+
+ if ! use boost && ! version_is_at_least 4.1 "$(gcc-fullversion)"; then
+ eerror "This package requires the active gcc to be at least version 4.1"
+ eerror "or USE=boost must be installed."
+ die "Please activate >=sys-devel/gcc-4.1 with gcc-config."
+ fi
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-parallel-make.patch \
+ "${FILESDIR}"/${P}-openssl-1.0.0.patch \
+ "${FILESDIR}"/${P}-glibc212.patch \
+ "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-fix-c++14.patch
+
+ sed -i \
+ -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
+ -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
+ argp/configure.ac || die
+
+ eautoreconf
+ pushd argp >/dev/null
+ eautoreconf
+ popd >/dev/null
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
+
+ tc-export AR CXX
+
+ use boost && export ac_cv_header_tr1_functional=no
+
+ econf \
+ --localstatedir=/var \
+ $(use_enable debug) \
+ --disable-optimization \
+ $(use_with dbus) \
+ --with-openssl \
+ $(use_with pam) \
+ --without-tcl \
+ --without-qt \
+ --with-zlib \
+ --without-valgrind
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ doxygen || die
+ fi
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ #the list of files is too big for dohtml -r Docs/doxy-html/*
+ cd Docs/doxy-html
+ dohtml -r *
+ fi
+}
diff --git a/net-libs/wvstreams/wvstreams-4.6.1-r4.ebuild b/net-libs/wvstreams/wvstreams-4.6.1-r4.ebuild
new file mode 100644
index 000000000000..df4b00f5a857
--- /dev/null
+++ b/net-libs/wvstreams/wvstreams-4.6.1-r4.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils flag-o-matic toolchain-funcs versionator
+
+DESCRIPTION="A network programming library in C++"
+HOMEPAGE="http://alumnit.ca/wiki/?WvStreams"
+SRC_URI="https://wvstreams.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="pam doc +ssl +dbus debug boost"
+
+#Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL!
+RESTRICT="test"
+
+#QA Fail: xplc is compiled as a part of wvstreams.
+#It'll take a larger patching effort to get it extracted, since upstream integrated it
+#more tightly this time. Probably for the better since upstream xplc seems dead.
+
+RDEPEND="
+ <dev-libs/openssl-1.1:0=
+ sys-libs/readline:0=
+ sys-libs/zlib
+ dbus? ( >=sys-apps/dbus-1.4.20 )
+ pam? ( virtual/pam )
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ boost? ( >=dev-libs/boost-1.34.1:= )
+"
+DOCS="ChangeLog README*"
+PATCHES=(
+ "${FILESDIR}"/${P}-autoconf.patch
+ "${FILESDIR}"/${P}-fix-c++14.patch
+ "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-glibc212.patch
+ "${FILESDIR}"/${P}-openssl-1.0.0.patch
+ "${FILESDIR}"/${P}-parallel-make.patch
+ "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
+
+ tc-export AR CXX
+
+ use boost && export ac_cv_header_tr1_functional=no
+
+ econf \
+ $(use_enable debug) \
+ $(use_with dbus) \
+ $(use_with pam) \
+ --cache-file=${T}/config.cache \
+ --disable-optimization \
+ --localstatedir=/var \
+ --with-openssl \
+ --with-zlib \
+ --without-qt \
+ --without-tcl \
+ --without-valgrind
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ doxygen || die
+ fi
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ #the list of files is too big for dohtml -r Docs/doxy-html/*
+ docinto html
+ dodoc -r Docs/doxy-html/*
+ fi
+}
diff --git a/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild b/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild
new file mode 100644
index 000000000000..8d33d4bb7186
--- /dev/null
+++ b/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils flag-o-matic toolchain-funcs versionator
+
+DESCRIPTION="A network programming library in C++"
+HOMEPAGE="http://alumnit.ca/wiki/?WvStreams"
+SRC_URI="https://wvstreams.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="pam doc +ssl +dbus debug boost"
+
+#Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL!
+RESTRICT="test"
+
+#QA Fail: xplc is compiled as a part of wvstreams.
+#It'll take a larger patching effort to get it extracted, since upstream integrated it
+#more tightly this time. Probably for the better since upstream xplc seems dead.
+
+RDEPEND="
+ <dev-libs/openssl-1.1:0=
+ sys-libs/readline:0=
+ sys-libs/zlib
+ dbus? ( >=sys-apps/dbus-1.4.20 )
+ pam? ( virtual/pam )
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ boost? ( >=dev-libs/boost-1.34.1:= )
+"
+DOCS="ChangeLog README*"
+PATCHES=(
+ "${FILESDIR}"/${P}-autoconf.patch
+ "${FILESDIR}"/${P}-fix-c++14.patch
+ "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-glibc212.patch
+ "${FILESDIR}"/${P}-openssl-1.0.0.patch
+ "${FILESDIR}"/${P}-parallel-make.patch
+ "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
+ "${FILESDIR}"/${P}-2048-bytes-should-be-enough-right-question-mark.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
+
+ tc-export AR CXX
+
+ use boost && export ac_cv_header_tr1_functional=no
+
+ econf \
+ $(use_enable debug) \
+ $(use_with dbus) \
+ $(use_with pam) \
+ --cache-file=${T}/config.cache \
+ --disable-optimization \
+ --localstatedir=/var \
+ --with-openssl \
+ --with-zlib \
+ --without-qt \
+ --without-tcl \
+ --without-valgrind
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ doxygen || die
+ fi
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ #the list of files is too big for dohtml -r Docs/doxy-html/*
+ docinto html
+ dodoc -r Docs/doxy-html/*
+ fi
+}
diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest
new file mode 100644
index 000000000000..b29789cddd63
--- /dev/null
+++ b/net-libs/xrootd/Manifest
@@ -0,0 +1,13 @@
+AUX cmsd.initd 885 SHA256 2f1a252874546a9fc57eb210085acfb5005e15cc8a0ee6ff2b4485fafc1d02b5 SHA512 7f666e98634b205964d69fd540fb79c7ff3b6f1b423ed416a966d1e0d6a18d950908e1dc463e3cc8029fc062b2ff7d29693af8e5af2fb13a36500d40b16345e9 WHIRLPOOL 8429708608bf7f229743a53fc973237819c1d4e5a81f5526f3a31acbd3f9503b6efb022c24ba6f46e5d2e2d923d464fafdf09e8953dfc82a371db7fab3a0cf13
+AUX frm_purged.initd 895 SHA256 36f16a055912e6f0fc04a2064c8c6962304c2762b7226bf8959145da1bd465bf SHA512 f9c09f8baae7ed391d5248f5dfb7a1d4d60f23605b2646e6f3c2ec33b05838918a4ba4874424e9b4e674f1ca127d57760364552f6f948dcd3ef84245730efc30 WHIRLPOOL f15f84a69c64ee6523649b50a891af11f8d44ea54dd7a6688f3579e77401a6f1f0220131c6404c61ee15dce112bbc64999e2d10a862bf68b7426a079dbbc5db1
+AUX frm_xfrd.initd 899 SHA256 f884dd84e04aa87e08e2757fb664aeb05e34a98ba32edd8e9198df5467607ba3 SHA512 1c38b20c9b54cab17706c040a90b00df61c9b2f5e4e7a9cc26fa3b125e1d132097222921b5627a33f69b80c8ae5a64cfbaea0a4880588de9fa9d18f6aaa04768 WHIRLPOOL 78b399748553001187e4d33353b2dd3f13ca22c217fb298b92900107504cd28cd62355b43d36757869cfb5072dcd3ab5f29ae1298749409af9e1360ef64fc70e
+AUX xrootd-no-werror.patch 486 SHA256 e0ec720e85586b0630148466540464607539d82db44664b67e25992906ae2ddd SHA512 9a866518836d61416ca4e40587dc9fb81121c7b2c245b9d26053058cef6d2ec75b94c687929378e1ed7287432a99f91888f4a138536447dd934ac03e484f5a4f WHIRLPOOL 25517a503a06a7a658c157505fb88019eb74db5caa178ca1296ebf68d2caba28717c063aab7c650bac84cfab12bc4e68b3c8697dd687447fdcc9783d20df50a5
+AUX xrootd.confd 651 SHA256 c0bec135fc63da3000a520ebe1cffec7e507f4f31e9038f7ef4350f973548785 SHA512 60ab5b6d77cf79437960044bf201127c8adf5134e7f61a18dcccd2e474a4e41eda971e3ada71dea987716080fb308af98a5237bab2a0b82f50f932ff59e3fdea WHIRLPOOL ca35a9ce16b7d82839ca6ef1989b5b40177c93ff52379a2296e4bd99483422f2f49c57eb0b646673f84bc09f9b3b8f1298c906311367711f60170394c0dee6c6
+AUX xrootd.initd 858 SHA256 b3fd5a20fb1888fccb1f93658b833eb54c7abd2ab25243e913d71ee27b66e664 SHA512 dcdb75341d904c9850c2bf97393ccbb68ad37b095e0a20ca4dab27b10dd7525874c8ad6e07e5b9c1f3c3566391a50c06dee70622d865fa51a7e73aa4096da955 WHIRLPOOL fd3f30862121ca6d1858f5f61ee59a327d0375e9caf5458eed9d0b57b6e5d2fc113d9ce661916c548de39637184f4ae31acc92617fab4a76540bdbdb71beb73a
+DIST xrootd-4.4.0.tar.gz 2146909 SHA256 f066e7488390c0bc50938d23f6582fb154466204209ca92681f0aa06340e77c8 SHA512 3e81285b97b928830538f358daf358538609d1678d5beb23b8c0f8fdda7ad22895cc96ba0aaadf55892b7cba08a60182fee19e27af3225b638cb209a4146bbfa WHIRLPOOL febb09eb0a18660807e05bf1ae3645bb5969eba7dbe7a764d4efec4883b1c8558dcc6f5577881bc2b37feeb99b77f2dd9d087b22d933a1be186959e8b79f837e
+DIST xrootd-4.5.0.tar.gz 2172752 SHA256 27a8e4ef1e6bb6bfe076fef50afe474870edd198699d43359ef01de2f446c670 SHA512 0ffa982b872ac94eae1e26d1ebbb94db46f607fb4b0f1d4a2261a7d34dc7715b67cb7c7beecea300f82578bf4773d18e9b86c55b32dfd65ab2e48f3cbb03f173 WHIRLPOOL 0263647475007500b5df1590c6707f2c8025bb8e0970247a8a5674a96bc0fa1c88ed77c3478296df10ef178fe6b233abfebbb2539e0abfa9643f1d5b24c59c75
+EBUILD xrootd-4.4.0.ebuild 1998 SHA256 8d7114d6cb92fb87f92b524376c5cd503dbf1b363610acea98fe3aff2d37fde9 SHA512 16394e1339dd97893c89063a14e78476cee973317e3f24adc6563dc0de4689a4b524afe7a7395beb06cc62f4d5149c1ee0d69bc5d03298ba21a97ca0cac46b6d WHIRLPOOL 013bb66b09072cd9e7d7e8a0796aa8f4a6b256a66613fe2e75f4328fabb95c4e9bd5294c818f4200ee7cb7891b421d32195510822c834badc70fdffb10170cbe
+EBUILD xrootd-4.5.0.ebuild 2600 SHA256 24c142259b7d74e175b34dc959ecf9bdeaaf07e53ebc192fc60e4449cdbd52c5 SHA512 9700666b53a38fe5d24965823a71e73ee0dcf90dade960a9af16153f8f266e7cb24daeb327a10a2ff7a867e603c162eaf6df13393880784da6e470233d1dafc9 WHIRLPOOL 01dc5ee85ce59398f23c581db3082c157fce3455a6a45cabb08a34d067313f3afba49bc47b7fede1cd59e8b761e5be18f67b11839ca0bdd77dbf77b113d8fb6c
+MISC ChangeLog 3085 SHA256 2477c6fd7fc730d97ee37051c6d49335a6b3ccbcb9d182fcd5eacc09515fef6b SHA512 5e6001044bcc45b12e6f534429314641fa1b6f08d05ece152742be61def7c712a3c5a16a9734e92bdb459f45f4b141bf49c1991644be0228b955a228b9421687 WHIRLPOOL f46ce97352265d791cdc541f7b1b9ec9241274e1d3bcb0001416d1eac1193cc3cac359d5ed395125d40b9bedfe70b47d5caecd029326bb08a793ec09c8cfb85e
+MISC ChangeLog-2015 4715 SHA256 0853a8e6218b2a4a576a3c158ea208a3bc200bdcdd2ac6bc5423de87856b2666 SHA512 de885f11709c038fd23e579c3ca37d6c44617cfefd022ef1bd9d8cae53ca5eab3063c57bf16280be6b0895d6c46826b54ba229c0892ffbe04f84a370eee13621 WHIRLPOOL 8be84cea7583db4636a9a81d6e8989a07c4ab3b235f1c6b0a0cfea953d2981669c3036c054f30109f6d7a6fd80cb61f2f348a0ea38e390b085232b1261274581
+MISC metadata.xml 934 SHA256 9deec5628e0eb8456cbe2db2cf589ae527c3860ade5d5f0c4e1d1c5fbdfa2ac8 SHA512 44828821d0307904163a2a818855efc7c68029be18aa0e11ea07bd99d794c433888bcf74a19632a7e3b68494192e6d8c2b9d30b9c33aea748e8b03ebd44efb25 WHIRLPOOL 60747e380cfdd6b80882b1e832bcf79129258a305eed69fe065e0560dd649998d7275b1801cdda618c556aced515c8761815b5a7b0cf2824f0600489cad8e7a7
diff --git a/net-libs/xrootd/files/cmsd.initd b/net-libs/xrootd/files/cmsd.initd
new file mode 100644
index 000000000000..9a2f9e292b64
--- /dev/null
+++ b/net-libs/xrootd/files/cmsd.initd
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+. /etc/conf.d/xrootd
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
+start() {
+ ebegin "Starting Cluster Management Service daemon"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${CMSD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Cluster Management Service daemon"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/net-libs/xrootd/files/frm_purged.initd b/net-libs/xrootd/files/frm_purged.initd
new file mode 100644
index 000000000000..14741ef498ac
--- /dev/null
+++ b/net-libs/xrootd/files/frm_purged.initd
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+. /etc/conf.d/xrootd
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
+start() {
+ ebegin "Starting File Residency Manager purge daemon"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${FRM_PURGED_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping File Residency Manager purge daemon"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/net-libs/xrootd/files/frm_xfrd.initd b/net-libs/xrootd/files/frm_xfrd.initd
new file mode 100644
index 000000000000..37272d2a5872
--- /dev/null
+++ b/net-libs/xrootd/files/frm_xfrd.initd
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+. /etc/conf.d/xrootd
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
+start() {
+ ebegin "Starting File Residency Manager transfer daemon"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${FRM_XFRD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping File Residency Manager transfer daemon"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/net-libs/xrootd/files/xrootd-no-werror.patch b/net-libs/xrootd/files/xrootd-no-werror.patch
new file mode 100644
index 000000000000..b8010b777e39
--- /dev/null
+++ b/net-libs/xrootd/files/xrootd-no-werror.patch
@@ -0,0 +1,11 @@
+--- a/cmake/XRootDOSDefs.cmake
++++ b/cmake/XRootDOSDefs.cmake
+@@ -15,7 +15,7 @@
+ # GCC
+ #-------------------------------------------------------------------------------
+ if( CMAKE_COMPILER_IS_GNUCXX )
+- set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror" )
++ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra" )
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter" )
+ # gcc 4.1 is retarded
+ execute_process( COMMAND ${CMAKE_C_COMPILER} -dumpversion
diff --git a/net-libs/xrootd/files/xrootd.confd b/net-libs/xrootd/files/xrootd.confd
new file mode 100644
index 000000000000..0e847e53e69c
--- /dev/null
+++ b/net-libs/xrootd/files/xrootd.confd
@@ -0,0 +1,21 @@
+# conf.d file for xroot, cmsd, frm_purged, frm_xfrd daemons
+
+# User to run as, please note that:
+# 1) daemons will refuse to run as root;
+# 2) several dirs must be created with an appropriate permissions
+# and ownership, so be careful when changing default 'xrootd' user.
+XROOTD_USER="xrootd"
+
+# Configuration file MUST be the same for all four daemons.
+# See /etc/xrootd for available simple defaults.
+XROOTD_CONF="/etc/xrootd/xrootd-clustered.cfg"
+
+# Logdir for all daemons
+XROOTD_LOGDIR="/var/log/xrootd"
+
+# Additional options for each daemon, please refer to their
+# documentation for details
+XROOTD_OPTS=""
+CMSD_OPTS=""
+FRM_PURGED=""
+FRM_XFRD=""
diff --git a/net-libs/xrootd/files/xrootd.initd b/net-libs/xrootd/files/xrootd.initd
new file mode 100644
index 000000000000..c3adf500bf3b
--- /dev/null
+++ b/net-libs/xrootd/files/xrootd.initd
@@ -0,0 +1,32 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start_pre() {
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/spool
+ checkpath -q -d -m 0755 -o xrootd:xrootd /var/run/xrootd
+}
+
+start() {
+ ebegin "Starting extended ROOTD file server"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${XROOTD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping extended ROOTD file server"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/net-libs/xrootd/metadata.xml b/net-libs/xrootd/metadata.xml
new file mode 100644
index 000000000000..ecd16e038b97
--- /dev/null
+++ b/net-libs/xrootd/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-physics@gentoo.org</email>
+ <name>Gentoo Physics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ XROOTD software framework is a fully generic suite for fast, low latency
+ and scalable data access, which can serve natively any kind of data,
+ organized as a hierarchical filesystem-like namespace, based on the
+ concept of directory.
+ It is usually used with <pkg>sci-physics/root</pkg> and its PROOF
+ facilities for cluster computing in high energy physics.
+</longdescription>
+ <use>
+ <flag name="fuse">Enable the <pkg>sys-fs/fuse</pkg> filesystem driver</flag>
+ <flag name="http">Enable http protocol support</flag>
+ <flag name="rbd">Enable rados block device support via <pkg>sys-cluster/ceph</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/xrootd/xrootd-4.4.0.ebuild b/net-libs/xrootd/xrootd-4.4.0.ebuild
new file mode 100644
index 000000000000..77d78382d960
--- /dev/null
+++ b/net-libs/xrootd/xrootd-4.4.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils user
+
+DESCRIPTION="Extended ROOT remote file server"
+HOMEPAGE="http://xrootd.org/"
+SRC_URI="http://xrootd.org/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc fuse http kerberos readline ssl test"
+
+RDEPEND="
+ !<sci-physics/root-5.32[xrootd]
+ sys-libs/zlib
+ fuse? ( sys-fs/fuse )
+ kerberos? ( virtual/krb5 )
+ readline? ( sys-libs/readline:0= )
+ ssl? ( dev-libs/openssl:0= )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen[dot] )
+ test? ( dev-util/cppunit )"
+
+REQUIRED_USE="http? ( kerberos ssl )"
+PATCHES=( "${FILESDIR}"/${PN}-no-werror.patch )
+
+# xrootd plugins are not intended to be linked with,
+# they are to be loaded at runtime by xrootd,
+# see https://github.com/xrootd/xrootd/issues/447
+QA_SONAME="/usr/lib.*/libXrd*-4.so"
+
+pkg_setup() {
+ enewgroup xrootd
+ enewuser xrootd -1 -1 "${EPREFIX}"/var/spool/xrootd xrootd
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_FUSE=$(usex fuse)
+ -DENABLE_HTTP=$(usex http)
+ -DENABLE_KRB5=$(usex kerberos)
+ -DENABLE_READLINE=$(usex readline)
+ -DENABLE_CRYPTO=$(usex ssl)
+ -DENABLE_TESTS=$(usex test)
+ -DENABLE_CEPH=OFF
+ -DENABLE_PYTHON=OFF # TODO: install python bindings properly
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc; then
+ doxygen Doxyfile || die
+ fi
+}
+
+src_install() {
+ use doc && HTML_DOCS=( doxydoc/html/. )
+ dodoc docs/ReleaseNotes.txt
+ cmake-utils_src_install
+ find "${D}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die
+
+ # base configs
+ insinto /etc/xrootd
+ doins packaging/common/*.cfg
+
+ fowners root:xrootd /etc/xrootd
+ keepdir /var/log/xrootd
+ fowners xrootd:xrootd /var/log/xrootd
+
+ local i
+ for i in cmsd frm_purged frm_xfrd xrootd; do
+ newinitd "${FILESDIR}"/${i}.initd ${i}
+ done
+ # all daemons MUST use single master config file
+ newconfd "${FILESDIR}"/xrootd.confd xrootd
+}
diff --git a/net-libs/xrootd/xrootd-4.5.0.ebuild b/net-libs/xrootd/xrootd-4.5.0.ebuild
new file mode 100644
index 000000000000..9026596f259a
--- /dev/null
+++ b/net-libs/xrootd/xrootd-4.5.0.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils python-single-r1 user
+
+DESCRIPTION="Extended ROOT remote file server"
+HOMEPAGE="http://xrootd.org/"
+SRC_URI="http://xrootd.org/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples fuse http kerberos python readline rbd ssl test"
+
+CDEPEND="
+ !<sci-physics/root-5.32[xrootd]
+ sys-libs/zlib
+ fuse? ( sys-fs/fuse )
+ kerberos? ( virtual/krb5 )
+ python? ( ${PYTHON_DEPS} )
+ rbd? ( sys-cluster/ceph )
+ readline? ( sys-libs/readline:0= )
+ ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${CDEPEND}
+ doc? (
+ app-doc/doxygen[dot]
+ python? ( dev-python/sphinx )
+ )
+ test? ( dev-util/cppunit )
+"
+RDEPEND="${CDEPEND}
+ dev-lang/perl
+"
+REQUIRED_USE="
+ http? ( kerberos ssl )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+PATCHES=( "${FILESDIR}"/${PN}-no-werror.patch )
+
+# xrootd plugins are not intended to be linked with,
+# they are to be loaded at runtime by xrootd,
+# see https://github.com/xrootd/xrootd/issues/447
+QA_SONAME="/usr/lib.*/libXrd*-4.so"
+
+pkg_setup() {
+ enewgroup xrootd
+ enewuser xrootd -1 -1 "${EPREFIX}"/var/spool/xrootd xrootd
+ use python && python_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_CEPH=$(usex rbd)
+ -DENABLE_CRYPTO=$(usex ssl)
+ -DENABLE_FUSE=$(usex fuse)
+ -DENABLE_HTTP=$(usex http)
+ -DENABLE_KRB5=$(usex kerberos)
+ -DENABLE_PYTHON=$(usex python)
+ -DENABLE_READLINE=$(usex readline)
+ -DENABLE_TESTS=$(usex test)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc; then
+ doxygen Doxyfile || die
+ if use python; then
+ emake -C bindings/python/docs html
+ fi
+ fi
+}
+
+src_install() {
+ use doc && HTML_DOCS=( doxydoc/html/. )
+ dodoc docs/ReleaseNotes.txt
+ cmake-utils_src_install
+ find "${D}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die
+
+ # base configs
+ insinto /etc/xrootd
+ doins packaging/common/*.cfg
+
+ fowners root:xrootd /etc/xrootd
+ keepdir /var/log/xrootd
+ fowners xrootd:xrootd /var/log/xrootd
+
+ local i
+ for i in cmsd frm_purged frm_xfrd xrootd; do
+ newinitd "${FILESDIR}"/${i}.initd ${i}
+ done
+ # all daemons MUST use single master config file
+ newconfd "${FILESDIR}"/xrootd.confd xrootd
+
+ if use python; then
+ python_optimize "${D}/$(python_get_sitedir)"
+
+ if use doc; then
+ docinto python
+ docompress -x "/usr/share/doc/${PF}/python/html"
+ dodoc -r bindings/python/docs/build/html
+ fi
+ if use examples; then
+ docinto python
+ dodoc -r bindings/python/examples
+ fi
+ fi
+}
diff --git a/net-libs/zeromq/Manifest b/net-libs/zeromq/Manifest
new file mode 100644
index 000000000000..14ed588e44ef
--- /dev/null
+++ b/net-libs/zeromq/Manifest
@@ -0,0 +1,25 @@
+AUX zeromq-3.2.3-unused-variable.patch 4012 SHA256 f80558d4bd5557128d2ebb44d075f4e32925fbcc5a726498184b0fa2721d672f SHA512 c54ee2ff1d11c33c734b7696a3fa98be8e0a5025678ac31599c652a4f0e2b507f41de3aae8d6808086bbe72fd0d485945ed2b822f984c2053f1f6f69b62a7b1f WHIRLPOOL 56113c224b01d7f300e1c6a1cb4bec2d297a3a285fe5ee3849c1f1cc82a984b8170869c67c1979a575042412e26675f8d5bfbbb4f531411d6243fc9b81309e95
+AUX zeromq-4.2.0-dl-backport.patch 897 SHA256 b58ecf12538fdcfed1dbf83705417b4b30a803c24be521c50f337183524e35f6 SHA512 db7ef6485040e158aabd2e5f5c49fbc02ba918415b3cd670baf7287a35ec67a8dd4d3509c30f7a00c88582e544f3cef886f99ecf218656cc8c3cd285fb221256 WHIRLPOOL 766447f152a7eb488ce853e3d7b7206bbddf8160e076a5d9e94d0248d9f24b4e6e378660717649cd65333f18d5ba5a44b6034bd9b0403e27b1458e53cde5a9ab
+AUX zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch 1317 SHA256 3b635156f7d54abb24a8002f5f8209f798145df7ad115b0c2b4cc78d6bd5ec10 SHA512 d75375a201e98be533d04cd29997cf28e81d3af958fad91acf5e8d9284c7b3d3d7d7b6a593fc752f6b50048c21d1fb9a7fd99d449f155e509fef9d35260f7188 WHIRLPOOL 7e4f999540a516696ec65a160768029972715fc7b3c1f3c3369b5173adce2309abd18fb849734df1bfa4bb37ae32ee91391ad61f9860cdd81c0da82987aa2751
+AUX zeromq-4.2.2-optional-libunwind.patch 2246 SHA256 40f53419900f625def934ce4fb9eaa7d105c07c867ce14c2e1d1d9f16e4c5730 SHA512 275175d2ed21654a224b55b7508dbee9e362929fa31fc33e8c20f303f6280a8416275143896e3541492b8d6187a559c805a38b31eae5ac14083905a50d5b8bdc WHIRLPOOL 07cc8b30b4c3614e071f7e8965df6d4a946c14971b90b082b360e4674ae93829cb30caa4456942f8c43994e9fe53ca4d3b3db65e6fef0ff54ddae992e322489d
+DIST zeromq-2.2.0.tar.gz 1899104 SHA256 6e2f4183e5259eeb67025b00116d900491fb71581e8e085373b51c3bc9571ae1 SHA512 fb3cf421b2dc48c31956b3e3ee4ab6ebc743deec3bf626c2238a1996c8c51be87260bd6aa662793a1f0c34dcda9b3146763777bb162dfad6fec4ca7acc403b2e WHIRLPOOL b35a6f0cdcff34ec188c989354fb53ee44f22ebb8d830f904447b4fa32ddd17de157998c2733a42ff0a6c1355f0ab2e0639e7666c7e983839e1dbde2188dcef5
+DIST zeromq-3.2.3.tar.gz 2072758 SHA256 e134c1aaf829dd77bca9dc0fa199ba31095a581bd0d3dda5fc59523b9f401238 SHA512 34ffb6aa645f62bd1158a8f2888bf92929ccf90917a6c50ed51ed1240732f498522e164d1536f26480c87ad5457fe614a93bf0e15f2f89b0b168e64a30de68ca WHIRLPOOL 14ba025abe6db59d6e8d1dd9df23f88e0171721bb046b9e2cf0cd7a5a6e9034980808d346fe10e755e367302cfbb670912576071345233148711815237fa176e
+DIST zeromq-3.2.5.tar.gz 2082960 SHA256 09653e56a466683edb2f87ee025c4de55b8740df69481b9d7da98748f0c92124 SHA512 3682204e5a47824d149968e62fbf9768134370e4f7debbbf8f2bfa24bdd0a781e50c4a9b4231af8a0c4bab61839169100525a91472448ef180a9672342e10a3f WHIRLPOOL a8afa70760fa1fa9382f4694beabfe50f5c8098b1f81d5c62c926cd3073fd25946f6b8d1236e903e6644a9fff783116e131f1f87a5b92d16a6e91e05bd7f6e75
+DIST zeromq-4.1.1.tar.gz 1383196 SHA256 43d61e5706b43946aad4a661400627bcde9c63cc25816d4749c67b64c3dab8db SHA512 6f626c89e573900d3b094ea6058693dee290eb9e4039a8a03d61d41b1d8976ed5596027ca76a43f371dbf86820edfbd56a84ecfab6864adfeee73035df7b5353 WHIRLPOOL b72f9118a0422bb2a6cc99e490085715739e7438fe88fb556b85e6da70a995c92ad0cdde296e02e31c02979458ad4bb6962ff0acd4f5642273659c29b43892e9
+DIST zeromq-4.1.6.tar.gz 799771 SHA256 02ebf60a43011e770799336365bcbce2eb85569e9b5f52aa0d8cc04672438a0a SHA512 c04a6bb7a719687d8e8e5e8a103f93ab75ead3fcd3516e6089959e4f02cff7c18e9d7a8696af4245d434b45e6aa6e2ca8f73d98db058df621bca3def97bf7af1 WHIRLPOOL 5c266d2f257584a606f7ec1d4d00a5c2d7a636814f33ce2a1bfd19a4ca650c5fa86527d70948bb4e04b20bd5e068ffd29a2bf63f9979459bf825c23e55340abb
+DIST zeromq-4.2.0.tar.gz 1046254 SHA256 53b83bf0ee978931f76fa9cb46ad4affea65787264a5f3d140bc743412d0c117 SHA512 3b6f0a1869fb1663ea40b3c3aa088b81399a35c051e4ade2b30bbac60bfceefe6b4403248a4635fb31d33767c1e478342f61c47b0ffdb4501419c13590ebeb96 WHIRLPOOL 432a8b04a28bd371a85c79dfd79d498808af8afe0e4d8b9bd903eef9d4f5e9c09c165484ee651b1a54e2e416bb324e39bee2db3a5880e216a7472c56c6e64190
+DIST zeromq-4.2.1.tar.gz 1243428 SHA256 27d1e82a099228ee85a7ddb2260f40830212402c605a4a10b5e5498a7e0e9d03 SHA512 6ef52edff930be34451e81bd21a7e23f08e135c8e10e006d0a6146e7fa4171e9dcf9065f77c33cb0c0db4c16cff4a50cab2a9d612e306490a02bc6a4a913ba6a WHIRLPOOL f86f2ea735f398b489fcba145dc3f98bf3b50e8cc26ccb91e0c57998c13aa030765634a82be5e24f6d63ad346fcf1214d42983788eee236f0d5409181b67f910
+DIST zeromq-4.2.2.tar.gz 1236437 SHA256 5b23f4ca9ef545d5bd3af55d305765e3ee06b986263b31967435d285a3e6df6b SHA512 d78813a61ce3311a1f8c230f7da0f5aedc97ef4b792afb6d398c5710da239348c0c7a67bdfeb38a7ab0282af498f1ed173649aff4add1bc35f0ef1b66f965443 WHIRLPOOL ebf95d311265db34420932aa0a1e112c1354ef0501dde6a5317792568156e9bb1c88e31e8009f3594a0f1b7c71a2ad1eac0993c6adcaaa8baf945f30c4039171
+EBUILD zeromq-2.2.0.ebuild 1309 SHA256 649166d54dd0522eeb7a8d642ccb8e9eb0fdc6c97f648b2f571c9579312541e7 SHA512 175a18d212a1966dceb29be017c1a018e5aa032c2cc176bd328b64106ae39287fc188a28c0e4242d9627f9957c7302c830749f0e396cb030ee30e929400e1b2e WHIRLPOOL 39d0c2c54e92930a28728e1827f533c7d18ff9cc1fd09ba0aa9ec14ab88c53902222c51616b2949df6183f81957dc613860433623480ddd2223af33239b8e89c
+EBUILD zeromq-3.2.3.ebuild 1520 SHA256 c295c486f8dd4e5920e506744809b92f3056c98bf4bd6c5ce04b7e4f6293c893 SHA512 1bb6da7c444a4377fe716d6a0702d12b2e23128418cd38820d2093da7bf0b14d9a3d7e85b17e283ec49bdedf5f5214d6723b23869d431c8fff82b816d3499fc4 WHIRLPOOL 2975b87b56c34966cca453ac5572312f2547c2d2e9c122bad98b0234a7c808832d81beb97c4ae2ca9d11975f0c85e857064252801e002f74595179dff8beafa9
+EBUILD zeromq-3.2.5.ebuild 1463 SHA256 2808a655ff1ca7ab347b631e9efeddf2e572563ad5f931588c8c90ca4abbe397 SHA512 1f0eaf965e38c837b94618b4d8c5308f11eef575d7e9c5cdace67768a11783c706b8a946df75a61554be45d480b6be282b8dd64c81f4db60c5cd658238a472fa WHIRLPOOL 046bdf3dbb6115f17a82e6787a8bfb24927f605cc0ca89ab778c4faf858b29b7fb98c7fa5466ff3c9461f194b1c1e79b9a00bd7b8d81738769915ce3fec34819
+EBUILD zeromq-4.1.1.ebuild 1029 SHA256 edac2c21b17617606a54348f42785e5ddd68e642808d6755b0eea158692a45d4 SHA512 0d18a5049611229103db0b20936c097717d092968d21e0967823e8984bddd2bb22a99c5e3217c00ea5418c20be772597ed00151380857105edf54e7386d8782a WHIRLPOOL 8481f6713271cf96b3738d15932865c1cb0c3eb29f68b69c154113bcae1c9e37aea89401e045f02d9e7f9d4a607958b6f5ae94406add3c0ba5eec9767754aee4
+EBUILD zeromq-4.1.6.ebuild 1154 SHA256 ef66d74781366df3528c621badcdd276f437597a477a4270d8ab9c27560c3ea5 SHA512 4c4c93f58c4ecf5ba82264198c1e40e265120c294761e348457830897201e89dfc50bfad4c5424bfe71eea9adb22cb105402485dbc31d49f1c20f5de80e86cd7 WHIRLPOOL 93b528f7eb6b87b912a7822ba2baa349b78eae262bf25d0958994766f67e8c3204f3b5c2debb1d4983fe19cc72800de31666679842b8eaf092f5dca540101563
+EBUILD zeromq-4.2.0-r1.ebuild 1268 SHA256 75bc198b2329465b1ec660fd47824e6c163ecfb7e2787c7c1de5a9976d9416d9 SHA512 e899d165a43f8d07a1f653e046483219f1dc1827e946c48490af8ce7a156e229a7041a4051076a3584d3768fbc80f8220d8453e7f5e8c0129abf86f411c098a1 WHIRLPOOL 2331c987bda2e176c811b0d0a5576ecba9dfe5da49328eec582649b14b898bf65385b266f8750efe117107c27937f4a8a6fe34951c61e66f4d3c5e2693e52509
+EBUILD zeromq-4.2.1.ebuild 1209 SHA256 5aa692b77bdcc6976cfb9e2da25a5b402e1ebe53d1eb2cc879e07b29048fe5b1 SHA512 d748d27548088f9121f1b3143fed334f5d69527a2868f46d6a1cc74daf0e6164801573d2c4065b9383245ec686680245dc46a036e1e6432d7f138f7a39136154 WHIRLPOOL 7fe0b358f2825a828f7f07272468cbe72d32c36a70165d37de61a0d85ca498ed42d0d3066920cfb2755ce67bfe5f22cbf2478919512b3cb9300c23e1fbc7aea0
+EBUILD zeromq-4.2.2-r1.ebuild 1380 SHA256 66efe92bf053d55886ce2b04f9d50d47292329fff2e02781c9085bf824e79432 SHA512 5ce25d3196c4be51420af99b4590d54c79b687d74a3b64ee44b1322bbce829e3e04b99ea5cb840f1f991f36cc12f9080806aa91666ba183372dee6963442b7d9 WHIRLPOOL e04341b6e82e0bd3fed692a1b1ed197bdca0ff0665291ab338baa5955061ad767ee40c2c6aa4a3da81b1c0de1e7e4f12d42d2af886d69c2cd1758aac92b80257
+EBUILD zeromq-4.2.2-r2.ebuild 1521 SHA256 6f5009e5a38468d9f14b135737a3305fe76951b0b84eaeb0b51485c5597de68e SHA512 76d3aae3ce742d06b8ca4026e8913963a501aa6179a5e8c9ccfe2d8c107c29d177a887b6e7faf5fbd9d34318283f536813b50633e07a735dbf27cc2b3f8afdf0 WHIRLPOOL 4adf06f4b9fa7525f757c099ebcc6968f427bd113d3839240a6bb7c8f483d40670547f180ba50c2840c146ae7d55e2b9cf120df7568c64cb1f0fad277c87a369
+EBUILD zeromq-4.2.2.ebuild 1217 SHA256 e3f0fa3c5448ff5a22003c12e9bbc7a8fec740d23a56fa2c0ab9ec239131a8b1 SHA512 097c10c8db5d2526d8eb5b0958d92be09c842373aad9b22dfa4c8d26cc6fa982440d28b8ac1ddabf1bce0e4a8f5e71ba16ebeecd7de02304ccdf2e5509da655c WHIRLPOOL e7d225fa284a750650e338f88913d7e1c0f861be4edea16ac0d716c58f8cf75e3612134569554ce87766f912cadf5055390dab495f4bbf20c674d4f7d8a588a4
+MISC ChangeLog 6676 SHA256 311b48768020ed8e2252dcc9a034995b81f00a182e02b8ec5f8e37617b78f97b SHA512 e4494ca72365f8c03f0bedec66ac2860f5c120ad2858a9204a674b72a318bedddd7db1581d5941af7fbde3cba57010f1447d54c1fd96c5f0abfedc6e95944ce6 WHIRLPOOL 351de5f5eaefecf51db8692b7677409b96560272e80df1d535a106a8ae38d21412b2f6a167322d71f90604e23f8a88217cb0c640a8017b9ba464885a4dd64cfd
+MISC ChangeLog-2015 10008 SHA256 7d620c3e362a41c8fadacd9c1e7ab9c058189ff9b5340265782937b21f89759a SHA512 15977242729f75e7c57e0f89698576afbd09d3b7ed30f79ef9fd41dd05db1290f37c92e9a5f1eefaea619ee21ed182826535c59519755669be2cf9661f5a9b54 WHIRLPOOL 61d74b6551db99a8d15ebc2e70bd9f86a04272c895dd78676bf11ecc46d6f3101df8306e44375b0eb219b1f0ecfaaed0108a6ae02baf2a9babe31a905f0edb66
+MISC metadata.xml 1349 SHA256 ca0ee8e5082dad01180b691e7da1568468a79397654b82408bd2a900a6057e6c SHA512 420989e7e605b7bcd1ee608d7e0ac06c563d3e37d01629963d7b6182eb3c187ca9667676ec73f267e15e35809d9552bc0d4407958d74d790381a3e45e1814296 WHIRLPOOL 2c32def9397f90f092af45e157423e9a75e4186e0bd7ee43e07738b1cfd7617e7c111d471fee735c03a1e909694b957b95b630a9b780d6bfd1f4cefd1bef5ebe
diff --git a/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch b/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch
new file mode 100644
index 000000000000..9fb86fa7d5c2
--- /dev/null
+++ b/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch
@@ -0,0 +1,105 @@
+Fix building with -Wall.
+
+Description from upstream repo:
+ Author: Pieter Hintjens <ph@imatix.com>
+ Date: Wed Jan 30 23:53:23 2013 +0100
+
+ Various cleanups to test programs
+
+ - Patch applied using git am from libzmq commit 5f009e52
+ - tests/test_raw_sock.cpp doesn't exist in zeromq3-x, so that
+ file was manually removed from the patch before 'git am'
+
+ Signed-off-by: AJ Lewis <aj.lewis@quantum.com>
+X-GENTOO-BUG: 483318
+X-GENTOO-BUG-URL: https://bugs.gentoo.org/show_bug.cgi?id=483318
+X-UPSTREAM-URL: https://github.com/zeromq/zeromq3-x/commit/bdd72826c96fa7cb6a8d2e5cf688c973a8e8d42f
+
+--- a/tests/test_connect_delay.cpp
++++ b/tests/test_connect_delay.cpp
+@@ -61,12 +61,12 @@ int main (void)
+ assert(from);
+
+ val = 0;
+- zmq_setsockopt (from, ZMQ_LINGER, &val, sizeof(val));
++ zmq_setsockopt (from, ZMQ_LINGER, &val, sizeof (val));
+ // This pipe will not connect
+ rc = zmq_connect (from, "tcp://localhost:5556");
+ assert (rc == 0);
+ // This pipe will
+- rc = zmq_connect (from, "tcp://localhost:5555");
++ rc = zmq_connect (from, "tcp://localhost:6555");
+ assert (rc == 0);
+
+ // We send 10 messages, 5 should just get stuck in the queue
+@@ -112,7 +112,6 @@ int main (void)
+ // cause the pipe attachment to be delayed until the connection
+ // succeeds.
+ context = zmq_ctx_new();
+- fprintf (stderr, " Rerunning with DELAY_ATTACH_ON_CONNECT\n");
+
+ // Bind the valid socket
+ to = zmq_socket (context, ZMQ_PULL);
+@@ -182,7 +181,6 @@ int main (void)
+ // block. Then we reconnect and verify messages flow again.
+ context = zmq_ctx_new();
+ void *context2 = zmq_ctx_new();
+- fprintf (stderr, " Running DELAY_ATTACH_ON_CONNECT with disconnect\n");
+
+ to = zmq_socket (context2, ZMQ_PULL);
+ assert (to);
+diff --git a/tests/test_disconnect_inproc.cpp b/tests/test_disconnect_inproc.cpp
+index 7875083..d6b68c6 100644
+--- a/tests/test_disconnect_inproc.cpp
++++ b/tests/test_disconnect_inproc.cpp
+@@ -40,16 +40,14 @@ int main(int argc, char** argv) {
+ zmq_msg_t msg;
+ zmq_msg_init (&msg);
+ zmq_msg_recv (&msg, pubSocket, 0);
+- int msgSize = zmq_msg_size(&msg);
+ char* buffer = (char*)zmq_msg_data(&msg);
+
+ if (buffer[0] == 0) {
+ assert(isSubscribed);
+- printf("unsubscribing from '%s'\n", strndup(buffer + 1, msgSize - 1));
+ isSubscribed = false;
+- } else {
++ }
++ else {
+ assert(!isSubscribed);
+- printf("subscribing on '%s'\n", strndup(buffer + 1, msgSize - 1));
+ isSubscribed = true;
+ }
+
+@@ -66,11 +64,6 @@ int main(int argc, char** argv) {
+ zmq_msg_t msg;
+ zmq_msg_init (&msg);
+ zmq_msg_recv (&msg, subSocket, 0);
+- int msgSize = zmq_msg_size(&msg);
+- char* buffer = (char*)zmq_msg_data(&msg);
+-
+- printf("received on subscriber '%s'\n", strndup(buffer, msgSize));
+-
+ zmq_getsockopt (subSocket, ZMQ_RCVMORE, &more, &more_size);
+ zmq_msg_close (&msg);
+
+diff --git a/tests/test_last_endpoint.cpp b/tests/test_last_endpoint.cpp
+index 5f121c4..ef3230b 100644
+--- a/tests/test_last_endpoint.cpp
++++ b/tests/test_last_endpoint.cpp
+@@ -29,11 +29,10 @@ static void do_bind_and_verify (void *s, const char *endpoint)
+ {
+ int rc = zmq_bind (s, endpoint);
+ assert (rc == 0);
+-
+- char test [255];
+- size_t siz = 255;
+- rc = zmq_getsockopt (s, ZMQ_LAST_ENDPOINT, test, &siz);
+- assert (rc == 0 && strcmp (test, endpoint) == 0);
++ char reported [255];
++ size_t size = 255;
++ rc = zmq_getsockopt (s, ZMQ_LAST_ENDPOINT, reported, &size);
++ assert (rc == 0 && strcmp (reported, endpoint) == 0);
+ }
+
+ int main (void)
diff --git a/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch b/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch
new file mode 100644
index 000000000000..c00001d632a5
--- /dev/null
+++ b/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch
@@ -0,0 +1,25 @@
+From 1b3fcbd3eead8f1f59f3e9472319d58ce6b52bb7 Mon Sep 17 00:00:00 2001
+From: Luca Boccassi <luca.boccassi@gmail.com>
+Date: Thu, 10 Nov 2016 22:49:41 +0000
+Subject: [PATCH] Problem: linker fails looking for dladdr
+
+Solution: search and add it via AC_CHECK_LIB when building with
+libunwind, as the backtrace function uses dladdr. This problem
+only appears on some distributions and with some compiler/toolchain
+versions.
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index 4fb2757..d548f9f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -650,6 +650,7 @@ PKG_CHECK_MODULES(LIBUNWIND, [libunwind],
+ AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used])
+ AC_SUBST([LIBUNWIND_CFLAGS])
+ AC_SUBST([LIBUNWIND_LIBS])
++ AC_CHECK_LIB([dl], [dladdr])
+ ],
+ [
+ AC_MSG_WARN([Cannot find libunwind])
diff --git a/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch b/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch
new file mode 100644
index 000000000000..3efe2153bfa9
--- /dev/null
+++ b/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch
@@ -0,0 +1,35 @@
+From 90c76fbd6069b8e1e98236f31317ed22792ab739 Mon Sep 17 00:00:00 2001
+From: Luca Boccassi <luca.boccassi@gmail.com>
+Date: Fri, 28 Apr 2017 16:08:46 +0100
+Subject: [PATCH] Problem: new zmq_poller used by zmq_poll without DRAFTs
+
+Solution: do not define ZMQ_HAVE_POLLER in src/zmq_drafts.h otherwise
+src/zmq.cpp will implement zmq_poll using the new poller classes.
+Same for ZMQ_HAVE_TIMERS, even though it has no internal effect, but
+to be safe against future development.
+---
+ src/zmq_draft.h | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/zmq_draft.h b/src/zmq_draft.h
+index bfbf9e3..9aed6dd 100644
+--- a/src/zmq_draft.h
++++ b/src/zmq_draft.h
+@@ -67,8 +67,6 @@ const char *zmq_msg_group(zmq_msg_t *msg);
+ /* Poller polling on sockets,fd and thread-safe sockets */
+ /******************************************************************************/
+
+-#define ZMQ_HAVE_POLLER
+-
+ typedef struct zmq_poller_event_t
+ {
+ void *socket;
+@@ -103,8 +101,6 @@ int zmq_poller_remove_fd (void *poller, int fd);
+ /* Scheduling timers */
+ /******************************************************************************/
+
+-#define ZMQ_HAVE_TIMERS
+-
+ typedef void (zmq_timer_fn)(int timer_id, void *arg);
+
+ void *zmq_timers_new (void);
diff --git a/net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch b/net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch
new file mode 100644
index 000000000000..36a5f66bbc91
--- /dev/null
+++ b/net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch
@@ -0,0 +1,70 @@
+Accepted upstream as: https://github.com/zeromq/libzmq/pull/2625
+
+From 88487e7da3e0412abde30af2855a667ab973f9fc Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Fri, 14 Jul 2017 21:44:30 +0100
+Subject: [PATCH] configure.ac: allow user to disable libunwind discovery via
+ --disable-libunwind
+
+on ia64 architecture libunwind comes with gcc. Unfortunately
+libunwind is not directly usable as-is and fails at link time:
+
+```
+ ia64-unknown-linux-gnu-g++ -o perf/.libs/local_lat perf/local_lat.o src/.libs/libzmq.so -lsodium -lrt -lpthread -ldl
+ src/.libs/libzmq.so: undefined reference to `_ULia64_step'
+```
+
+The change adds --{enable,disable}-libunwind flag to control
+automatic dependency. The default is unchanged: use if available.
+
+Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
+---
+ configure.ac | 32 ++++++++++++++++++++++----------
+ 1 file changed, 22 insertions(+), 10 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index c10f8445..ad193871 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -721,16 +721,28 @@ else
+ AC_SUBST(pkg_config_defines, "")
+ fi
+
+-PKG_CHECK_MODULES(LIBUNWIND, [libunwind],
+- [
+- AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used])
+- AC_SUBST([LIBUNWIND_CFLAGS])
+- AC_SUBST([LIBUNWIND_LIBS])
+- AC_CHECK_LIB([dl], [dladdr])
+- ],
+- [
+- AC_MSG_WARN([Cannot find libunwind])
+- ])
++AC_ARG_ENABLE([libunwind],
++ [AS_HELP_STRING([--enable-libunwind],
++ [enable libunwind [default=auto]])],
++ [enable_libunwind=$enableval],
++ [enable_libunwind="auto"])
++
++if test "x$enable_libunwind" != "xno"; then
++ PKG_CHECK_MODULES(LIBUNWIND, [libunwind],
++ [
++ AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used])
++ AC_SUBST([LIBUNWIND_CFLAGS])
++ AC_SUBST([LIBUNWIND_LIBS])
++ AC_CHECK_LIB([dl], [dladdr])
++ ],
++ [
++ if test "x$enable_libunwind" = "xyes"; then
++ AC_MSG_ERROR([Cannot find libunwind])
++ else
++ AC_MSG_WARN([Cannot find libunwind])
++ fi
++ ])
++fi
+
+ # Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS
+ AC_SUBST(LIBZMQ_EXTRA_CFLAGS)
+--
+2.13.3
+
diff --git a/net-libs/zeromq/metadata.xml b/net-libs/zeromq/metadata.xml
new file mode 100644
index 000000000000..981328e740da
--- /dev/null
+++ b/net-libs/zeromq/metadata.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>whissi@gentoo.org</email>
+ <name>Thomas Deutschmann</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>sustrik@fastmq.com</email>
+ <name>Martin Sustrik</name>
+ </maintainer>
+ <doc>http://zguide.zeromq.org/page:all</doc>
+ <bugs-to>https://github.com/zeromq/libzmq/issues</bugs-to>
+ <remote-id type="github">zeromq/zeromq4-1</remote-id>
+ <remote-id type="github">zeromq/libzmq</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message filtering
+ (subscriptions), seamless access to multiple transport protocols
+ and more.
+ </longdescription>
+ <slots>
+ <subslots>Reflect ABI of libzmq.so.</subslots>
+ </slots>
+ <use>
+ <flag name="pgm">
+ Build PGM (Pragmatic General Multicast)extention, a protocol for reliable
+ multicast transport of data over IP networks.
+ </flag>
+ <flag name="sodium">
+ Use <pkg>dev-libs/libsodium</pkg> for cryptography
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/zeromq/zeromq-2.2.0.ebuild b/net-libs/zeromq/zeromq-2.2.0.ebuild
new file mode 100644
index 000000000000..24ca582fb49a
--- /dev/null
+++ b/net-libs/zeromq/zeromq-2.2.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# NOTES:
+# 1- use flag 'pgm' (OpenPGM support) must be masked by profiles for ARM archs;
+
+EAPI=4
+WANT_AUTOCONF="2.5"
+inherit autotools
+
+DESCRIPTION="ZeroMQ is a brokerless messaging kernel with extremely high performance"
+HOMEPAGE="http://www.zeromq.org"
+SRC_URI="http://download.zeromq.org/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="pgm test static-libs"
+
+RDEPEND="!net-libs/cppzmq"
+DEPEND="pgm? (
+ virtual/pkgconfig
+ ~net-libs/openpgm-5.1.118
+ )
+ || ( sys-apps/util-linux sys-freebsd/freebsd-lib )"
+
+src_prepare() {
+ einfo "Removing bundled OpenPGM library"
+ rm -r "${S}"/foreign/openpgm/libpgm* || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use pgm && myconf="--with-system-pgm" || myconf="--without-pgm"
+ econf \
+ $(use_enable static-libs static) \
+ $myconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc NEWS README AUTHORS ChangeLog || die "dodoc failed"
+ doman doc/*.[1-9] || die "doman failed"
+
+ # remove useless .la files
+ find "${D}" -name '*.la' -delete
+
+ # remove useless .a (only for non static compilation)
+ use static-libs || find "${D}" -name '*.a' -delete
+}
diff --git a/net-libs/zeromq/zeromq-3.2.3.ebuild b/net-libs/zeromq/zeromq-3.2.3.ebuild
new file mode 100644
index 000000000000..1f5b77429309
--- /dev/null
+++ b/net-libs/zeromq/zeromq-3.2.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="ZeroMQ is a brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="http://download.zeromq.org/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="pgm test static-libs elibc_glibc"
+
+DEPEND="
+ || ( sys-devel/gcc sys-devel/gcc-apple )
+ pgm? (
+ virtual/pkgconfig
+ ~net-libs/openpgm-5.1.118
+ )
+ elibc_glibc? ( sys-apps/util-linux )"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-unused-variable.patch
+ einfo "Removing bundled OpenPGM library"
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
+ rm -r "${S}"/foreign/openpgm/libpgm* || die
+ # apply effective bit of below commit to fix compilation on Darwin
+ # https://github.com/zeromq/zeromq3-x/commit/400cbc208a768c4df5039f401dd2688eede6e1ca
+ sed -i -e '/strndup/d' tests/test_disconnect_inproc.cpp || die
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use pgm && myconf="--with-system-pgm" || myconf="--without-pgm"
+ econf \
+ $(use_enable static-libs static) \
+ ${myconf}
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ doman doc/*.[1-9]
+
+ # remove useless .la files
+ find "${ED}" -name '*.la' -delete || die
+
+ # remove useless .a (only for non static compilation)
+ if ! use static-libs; then
+ find "${ED}" -name '*.a' -delete || die
+ fi
+}
diff --git a/net-libs/zeromq/zeromq-3.2.5.ebuild b/net-libs/zeromq/zeromq-3.2.5.ebuild
new file mode 100644
index 000000000000..28a94b695134
--- /dev/null
+++ b/net-libs/zeromq/zeromq-3.2.5.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools
+
+DESCRIPTION="ZeroMQ is a brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="http://download.zeromq.org/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/3"
+KEYWORDS="amd64 arm hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="pgm test static-libs elibc_glibc"
+
+DEPEND="
+ || ( sys-devel/gcc sys-devel/gcc-apple )
+ pgm? (
+ virtual/pkgconfig
+ >=net-libs/openpgm-5.2
+ )
+ elibc_glibc? ( sys-apps/util-linux )"
+RDEPEND=""
+
+src_prepare() {
+ einfo "Removing bundled OpenPGM library"
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
+ rm -r "${S}"/foreign/openpgm/libpgm* || die
+ # apply effective bit of below commit to fix compilation on Darwin
+ # https://github.com/zeromq/zeromq3-x/commit/400cbc208a768c4df5039f401dd2688eede6e1ca
+ sed -i -e '/strndup/d' tests/test_disconnect_inproc.cpp || die
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use pgm && myconf="--with-system-pgm" || myconf="--without-pgm"
+ econf \
+ $(use_enable static-libs static) \
+ ${myconf}
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ doman doc/*.[1-9]
+
+ # remove useless .la files
+ find "${ED}" -name '*.la' -delete || die
+
+ # remove useless .a (only for non static compilation)
+ if ! use static-libs; then
+ find "${ED}" -name '*.a' -delete || die
+ fi
+}
diff --git a/net-libs/zeromq/zeromq-4.1.1.ebuild b/net-libs/zeromq/zeromq-4.1.1.ebuild
new file mode 100644
index 000000000000..f1bcf9d04ae3
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.1.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="A brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="http://download.zeromq.org/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/4"
+KEYWORDS="amd64 arm hppa ia64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="pgm static-libs test"
+
+RDEPEND="
+ dev-libs/libsodium:=
+ pgm? ( =net-libs/openpgm-5.2.122 )"
+DEPEND="${RDEPEND}
+ sys-apps/util-linux
+ pgm? ( virtual/pkgconfig )"
+
+src_prepare() {
+ einfo "Removing bundled OpenPGM library"
+ rm -fr "${S}"/foreign/openpgm/libpgm* || die
+ sed \
+ -e '/libzmq_werror=/s:yes:no:g' \
+ -i configure.ac || die
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=()
+ use pgm && myeconfargs+=( --with-system-pgm ) || myeconfargs+=( --without-pgm )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ autotools-utils_src_test -j1
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ doman doc/*.[1-9]
+}
diff --git a/net-libs/zeromq/zeromq-4.1.6.ebuild b/net-libs/zeromq/zeromq-4.1.6.ebuild
new file mode 100644
index 000000000000..ffa1660ff95d
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.1.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+DESCRIPTION="A brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="https://github.com/zeromq/zeromq4-1/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/5"
+KEYWORDS="amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="pgm static-libs test"
+
+RDEPEND="
+ dev-libs/libsodium:=
+ pgm? ( =net-libs/openpgm-5.2.122 )"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ app-text/xmlto
+ sys-apps/util-linux
+ pgm? ( virtual/pkgconfig )"
+
+src_prepare() {
+ sed \
+ -e '/libzmq_werror=/s:yes:no:g' \
+ -i configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable static-libs static)
+ --with-relaxed
+ --with-libsodium
+ $(use_with pgm)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # Restricting to one job because multiple tests are using the same port.
+ # Upstream knows the problem and says it doesn't support parallel test
+ # execution, see ${S}/INSTALL.
+ emake -j1 check
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/net-libs/zeromq/zeromq-4.2.0-r1.ebuild b/net-libs/zeromq/zeromq-4.2.0-r1.ebuild
new file mode 100644
index 000000000000..d69a469b3b23
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.2.0-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="A brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/5"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="pgm +sodium static-libs test"
+
+RDEPEND="
+ sys-libs/libunwind
+ sodium? ( dev-libs/libsodium:= )
+ pgm? ( =net-libs/openpgm-5.2.122 )"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ app-text/xmlto
+ sys-apps/util-linux
+ pgm? ( virtual/pkgconfig )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-dl-backport.patch
+)
+
+src_prepare() {
+ sed \
+ -e '/libzmq_werror=/s:yes:no:g' \
+ -i configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable static-libs static)
+ $(use_with sodium libsodium)
+ $(use_with pgm)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # Restricting to one job because multiple tests are using the same port.
+ # Upstream knows the problem and says it doesn't support parallel test
+ # execution, see ${S}/INSTALL.
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${ED}"usr/lib* -name '*.la' -delete || die
+}
diff --git a/net-libs/zeromq/zeromq-4.2.1.ebuild b/net-libs/zeromq/zeromq-4.2.1.ebuild
new file mode 100644
index 000000000000..586cff09f383
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.2.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="A brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/5"
+KEYWORDS="amd64 arm arm64 hppa ia64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="pgm +sodium static-libs test"
+
+RDEPEND="
+ sys-libs/libunwind
+ sodium? ( dev-libs/libsodium:= )
+ pgm? ( =net-libs/openpgm-5.2.122 )"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ app-text/xmlto
+ sys-apps/util-linux
+ pgm? ( virtual/pkgconfig )"
+
+src_prepare() {
+ sed \
+ -e '/libzmq_werror=/s:yes:no:g' \
+ -i configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable static-libs static)
+ $(use_with sodium libsodium)
+ $(use_with pgm)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # Restricting to one job because multiple tests are using the same port.
+ # Upstream knows the problem and says it doesn't support parallel test
+ # execution, see ${S}/INSTALL.
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${ED}"usr/lib* -name '*.la' -delete || die
+}
diff --git a/net-libs/zeromq/zeromq-4.2.2-r1.ebuild b/net-libs/zeromq/zeromq-4.2.2-r1.ebuild
new file mode 100644
index 000000000000..5f72e2a7662b
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.2.2-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="A brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/5"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="pgm +sodium static-libs test elibc_Darwin"
+
+RDEPEND="
+ !elibc_Darwin? ( sys-libs/libunwind )
+ sodium? ( dev-libs/libsodium:= )
+ pgm? ( =net-libs/openpgm-5.2.122 )"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ app-text/xmlto
+ !elibc_Darwin? ( sys-apps/util-linux )
+ pgm? ( virtual/pkgconfig )"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.2.1-disable-experimental-zmq_poll-implementation.patch )
+
+src_prepare() {
+ sed \
+ -e '/libzmq_werror=/s:yes:no:g' \
+ -i configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable static-libs static)
+ $(use_with sodium libsodium)
+ $(use_with pgm)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # Restricting to one job because multiple tests are using the same port.
+ # Upstream knows the problem and says it doesn't support parallel test
+ # execution, see ${S}/INSTALL.
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${ED}"usr/lib* -name '*.la' -delete || die
+}
diff --git a/net-libs/zeromq/zeromq-4.2.2-r2.ebuild b/net-libs/zeromq/zeromq-4.2.2-r2.ebuild
new file mode 100644
index 000000000000..51ff7c65b514
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.2.2-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="A brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/5"
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ia64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="doc pgm +sodium static-libs test unwind elibc_Darwin"
+
+RDEPEND="
+ !elibc_Darwin? ( unwind? ( sys-libs/libunwind ) )
+ sodium? ( dev-libs/libsodium:= )
+ pgm? ( =net-libs/openpgm-5.2.122 )"
+DEPEND="${RDEPEND}
+ !elibc_Darwin? ( sys-apps/util-linux )
+ doc? (
+ app-text/asciidoc
+ app-text/xmlto
+ )
+ pgm? ( virtual/pkgconfig )"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.2.1-disable-experimental-zmq_poll-implementation.patch
+ "${FILESDIR}"/${PN}-4.2.2-optional-libunwind.patch )
+
+src_prepare() {
+ sed \
+ -e '/libzmq_werror=/s:yes:no:g' \
+ -i configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable static-libs static)
+ $(use_enable unwind libunwind)
+ $(use_with sodium libsodium)
+ $(use_with pgm)
+ $(use_with doc docs)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # Restricting to one job because multiple tests are using the same port.
+ # Upstream knows the problem and says it doesn't support parallel test
+ # execution, see ${S}/INSTALL.
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${ED}"usr/lib* -name '*.la' -delete || die
+}
diff --git a/net-libs/zeromq/zeromq-4.2.2.ebuild b/net-libs/zeromq/zeromq-4.2.2.ebuild
new file mode 100644
index 000000000000..6c9a850b617a
--- /dev/null
+++ b/net-libs/zeromq/zeromq-4.2.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="A brokerless kernel"
+HOMEPAGE="http://www.zeromq.org/"
+SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/5"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="pgm +sodium static-libs test"
+
+RDEPEND="
+ sys-libs/libunwind
+ sodium? ( dev-libs/libsodium:= )
+ pgm? ( =net-libs/openpgm-5.2.122 )"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ app-text/xmlto
+ sys-apps/util-linux
+ pgm? ( virtual/pkgconfig )"
+
+src_prepare() {
+ sed \
+ -e '/libzmq_werror=/s:yes:no:g' \
+ -i configure.ac || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable static-libs static)
+ $(use_with sodium libsodium)
+ $(use_with pgm)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # Restricting to one job because multiple tests are using the same port.
+ # Upstream knows the problem and says it doesn't support parallel test
+ # execution, see ${S}/INSTALL.
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${ED}"usr/lib* -name '*.la' -delete || die
+}
diff --git a/net-libs/zmqpp/Manifest b/net-libs/zmqpp/Manifest
new file mode 100644
index 000000000000..693a4f698072
--- /dev/null
+++ b/net-libs/zmqpp/Manifest
@@ -0,0 +1,3 @@
+DIST zmqpp-4.1.2.tar.gz 92834 SHA256 831ad02df64034268d910c30f9fb1b1e631ad810182951af9d7d622650831eb5 SHA512 9a485ce94ff94705016c16b553b4058198f91146189d6af899c3aa5aecf4326dacbdbe5ca521232971cfa2bf47fd1c34abefaf819839725bd07d6a08d513fcc6 WHIRLPOOL c6b7dfabff232bb73c7824278c7a02c8d67b24ba1e1cdd55fad80d31d480d35eabf0888e0dd8f6e8f0ab92d1ef5c7ce16ad4ecb0785b06caaaa2110ea496a744
+EBUILD zmqpp-4.1.2.ebuild 718 SHA256 971ac69912f26c0af7696a36e3b004358d74245b3e312c2413ba68e54f4f1fe7 SHA512 def42ed023430c12cc4e23f04fc477fdb6e856d15435117e57e5e690b21382ed6403391e121c5c8a5262436b71d8037d90c27866bb1654cc4ab1af51afabe46d WHIRLPOOL 6a10d996796536d49cb364bf9da28f1dd789a6a4a1d111890d557ef787e14cc5e6dc837ba98b6e65f39f623f010c0f8eb4c762381d424557340a95ea70631911
+MISC metadata.xml 340 SHA256 a20f74b119e05fefb519ccf961c64797de5a6c7a26c2f26b66f7e98e164ba854 SHA512 603c91cf185cf470c55b427d8aacbab2e7b2298e4e1d49f3af5fc50257a4eaf7b3ed301a134696743b550db32ffab956efa17c25c7d2a524a7d6d65b230841f9 WHIRLPOOL b7795368a9b33510d56b608ea11498d4a3a0ee6eba9bc7b6f2d99710368c8f06255413ddd184bb4036b88b016b7a77e6b875592ea38a6a627e2458be33c2ee24
diff --git a/net-libs/zmqpp/metadata.xml b/net-libs/zmqpp/metadata.xml
new file mode 100644
index 000000000000..7fba4ac51079
--- /dev/null
+++ b/net-libs/zmqpp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">zeromq/zmqpp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/zmqpp/zmqpp-4.1.2.ebuild b/net-libs/zmqpp/zmqpp-4.1.2.ebuild
new file mode 100644
index 000000000000..0c069c867d2b
--- /dev/null
+++ b/net-libs/zmqpp/zmqpp-4.1.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="ZeroMQ 'highlevel' C++ bindings"
+HOMEPAGE="https://github.com/zeromq/zmqpp"
+if [[ $PV == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/zeromq/zmqpp.git"
+else
+ SRC_URI="https://github.com/zeromq/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+IUSE="static-libs"
+
+DEPEND="net-libs/zeromq[static-libs?]"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DIS_TRAVIS_CI_BUILD=OFF
+ -DZMQPP_BUILD_SHARED=ON
+ $(cmake-utils_use static-libs ZMQPP_BUILD_STATIC)
+ )
+
+ cmake-utils_src_configure
+}