Sergey Ilinykh 6 years ago
commit
531318dba4
94 changed files with 1663 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 29 0
      Documentation/ejabberd_upd.sh
  3. 5 0
      Documentation/regen_manifest.sh
  4. 4 0
      Documentation/regen_year.sh
  5. 1 0
      README.md
  6. 1 0
      dev-erlang/base64url/Manifest
  7. 21 0
      dev-erlang/base64url/base64url-1.0.ebuild
  8. 11 0
      dev-erlang/base64url/metadata.xml
  9. 1 0
      dev-erlang/cache_tab/Manifest
  10. 21 0
      dev-erlang/cache_tab/cache_tab-1.0.14.ebuild
  11. 21 0
      dev-erlang/cache_tab/metadata.xml
  12. 1 0
      dev-erlang/eimp/Manifest
  13. 23 0
      dev-erlang/eimp/eimp-1.0.6.ebuild
  14. 11 0
      dev-erlang/eimp/metadata.xml
  15. 1 0
      dev-erlang/epam/Manifest
  16. 33 0
      dev-erlang/epam/epam-1.0.4.ebuild
  17. 11 0
      dev-erlang/epam/metadata.xml
  18. 1 0
      dev-erlang/esip/Manifest
  19. 31 0
      dev-erlang/esip/esip-1.0.24.ebuild
  20. 11 0
      dev-erlang/esip/metadata.xml
  21. 1 0
      dev-erlang/ezlib/Manifest
  22. 21 0
      dev-erlang/ezlib/ezlib-1.0.4.ebuild
  23. 11 0
      dev-erlang/ezlib/metadata.xml
  24. 1 0
      dev-erlang/fast_tls/Manifest
  25. 24 0
      dev-erlang/fast_tls/fast_tls-1.0.23.ebuild
  26. 11 0
      dev-erlang/fast_tls/metadata.xml
  27. 1 0
      dev-erlang/fast_xml/Manifest
  28. 24 0
      dev-erlang/fast_xml/fast_xml-1.1.31.ebuild
  29. 11 0
      dev-erlang/fast_xml/metadata.xml
  30. 1 0
      dev-erlang/fast_yaml/Manifest
  31. 22 0
      dev-erlang/fast_yaml/fast_yaml-1.0.15.ebuild
  32. 11 0
      dev-erlang/fast_yaml/metadata.xml
  33. 1 0
      dev-erlang/iconv/Manifest
  34. 22 0
      dev-erlang/iconv/iconv-1.0.8.ebuild
  35. 11 0
      dev-erlang/iconv/metadata.xml
  36. 1 0
      dev-erlang/jose/Manifest
  37. 23 0
      dev-erlang/jose/jose-1.8.4.ebuild
  38. 11 0
      dev-erlang/jose/metadata.xml
  39. 1 0
      dev-erlang/lager/Manifest
  40. 28 0
      dev-erlang/lager/lager-3.6.1.ebuild
  41. 17 0
      dev-erlang/lager/metadata.xml
  42. 1 0
      dev-erlang/luerl/Manifest
  43. 20 0
      dev-erlang/luerl/luerl-0.3.ebuild
  44. 11 0
      dev-erlang/luerl/metadata.xml
  45. 1 0
      dev-erlang/p1_mysql/Manifest
  46. 11 0
      dev-erlang/p1_mysql/metadata.xml
  47. 20 0
      dev-erlang/p1_mysql/p1_mysql-1.0.6.ebuild
  48. 1 0
      dev-erlang/p1_oauth2/Manifest
  49. 11 0
      dev-erlang/p1_oauth2/metadata.xml
  50. 36 0
      dev-erlang/p1_oauth2/p1_oauth2-0.6.3.ebuild
  51. 1 0
      dev-erlang/p1_pgsql/Manifest
  52. 11 0
      dev-erlang/p1_pgsql/metadata.xml
  53. 20 0
      dev-erlang/p1_pgsql/p1_pgsql-1.1.6.ebuild
  54. 1 0
      dev-erlang/p1_utils/Manifest
  55. 15 0
      dev-erlang/p1_utils/metadata.xml
  56. 20 0
      dev-erlang/p1_utils/p1_utils-1.0.12.ebuild
  57. 1 0
      dev-erlang/riak_pb/Manifest
  58. 11 0
      dev-erlang/riak_pb/metadata.xml
  59. 22 0
      dev-erlang/riak_pb/riak_pb-2.3.2.ebuild
  60. 1 0
      dev-erlang/riakc/Manifest
  61. 11 0
      dev-erlang/riakc/metadata.xml
  62. 31 0
      dev-erlang/riakc/riakc-2.5.3.ebuild
  63. 1 0
      dev-erlang/sqlite3/Manifest
  64. 11 0
      dev-erlang/sqlite3/metadata.xml
  65. 26 0
      dev-erlang/sqlite3/sqlite3-1.1.6.ebuild
  66. 1 0
      dev-erlang/stringprep/Manifest
  67. 16 0
      dev-erlang/stringprep/metadata.xml
  68. 21 0
      dev-erlang/stringprep/stringprep-1.0.12.ebuild
  69. 1 0
      dev-erlang/stun/Manifest
  70. 11 0
      dev-erlang/stun/metadata.xml
  71. 22 0
      dev-erlang/stun/stun-1.0.23.ebuild
  72. 1 0
      dev-erlang/xmpp/Manifest
  73. 11 0
      dev-erlang/xmpp/metadata.xml
  74. 29 0
      dev-erlang/xmpp/xmpp-1.1.21.ebuild
  75. 1 0
      metadata/.gitignore
  76. 17 0
      metadata/layout.conf
  77. 10 0
      net-im/ejabberd/Manifest
  78. 338 0
      net-im/ejabberd/ejabberd-18.06.ebuild
  79. 15 0
      net-im/ejabberd/files/ejabberd-18.03-0002-Dont-overwrite-service-file.patch
  80. 38 0
      net-im/ejabberd/files/ejabberd-18.03-ejabberdctl.patch
  81. 5 0
      net-im/ejabberd/files/ejabberd.confd
  82. 54 0
      net-im/ejabberd/files/ejabberd.initd
  83. 13 0
      net-im/ejabberd/files/ejabberd.logrotate
  84. 2 0
      net-im/ejabberd/files/ejabberd.tmpfiles.conf
  85. 21 0
      net-im/ejabberd/files/epam-wrapper
  86. 41 0
      net-im/ejabberd/metadata.xml
  87. 7 0
      profiles/ChangeLog
  88. 74 0
      profiles/desc/apache2_modules.desc
  89. 12 0
      profiles/desc/apache2_mpms.desc
  90. 1 0
      profiles/eapi
  91. 1 0
      profiles/license_groups
  92. 0 0
      profiles/package.mask
  93. 1 0
      profiles/repo_name
  94. 111 0
      profiles/use.local.desc

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+*.swp

+ 29 - 0
Documentation/ejabberd_upd.sh

@@ -0,0 +1,29 @@
+#!/bin/bash
+
+ovrldir=$(readlink -f "$(dirname "$0")/..")
+ejabberd_ebuild=$(ls $ovrldir/net-im/ejabberd/*.ebuild | tail -n1)
+
+die() {
+	echo "ERROR: $@" >&2; exit 1;
+}
+
+update_pkg() {
+	pkg="$1"
+	atom=$(echo "$pkg" | grep -oP '[\w-_]+/[\w_.\d]+')
+	ebuild=$(ls $ovrldir/$atom/*.ebuild | tail -n1)
+	name=$(basename $pkg)
+	dst_ebuild=$ovrldir/$atom/$name.ebuild
+	git mv $ebuild $dst_ebuild
+	ebuild $dst_ebuild digest || die "Failed to update $pkg"
+	# TODO check deps of each dep
+}
+
+# mark all updated packages with '!' n line-start in ejabberd ebuild
+while read -r pkg; do
+	#echo $pkg
+	update_pkg $pkg
+done < <(grep -P '^!' $ejabberd_ebuild | grep -oP '[\w-_]+/[\w-_.\d]+')
+
+#cd $ovrldir
+#LANG=C git status | grep renamed
+

+ 5 - 0
Documentation/regen_manifest.sh

@@ -0,0 +1,5 @@
+#!/bin/sh
+
+find . -iname '*.ebuild' | \
+{ [[ $@ ]] && grep $@ || cat; } | \
+xargs -I{} ebuild {} digest

+ 4 - 0
Documentation/regen_year.sh

@@ -0,0 +1,4 @@
+#!/bin/sh
+
+find * -type f -print0 | xargs -0 sed -r "s/Copyright 1999-20[0-9]{2}/Copyright 1999-$(date +%Y)/" -i
+

+ 1 - 0
README.md

@@ -0,0 +1 @@
+An overlay for ejabberd and its dependencies

+ 1 - 0
dev-erlang/base64url/Manifest

@@ -0,0 +1 @@
+DIST base64url-1.0.tar.gz 2759 SHA256 73d15d618741e59b5ba260e2478f566c6bb30b01c23340157204e78d228a2c7e SHA512 f9f5062d8a45c5d0fbfb7179359137e88a1af10e29c1329506446d2142331176f6be2aa30387e4c98855440c1da943ea16a655ed2ad5168d4f5f8a2cd1c47c5f WHIRLPOOL 82ab847ff75bf25e2c7c721c7bea98e1ba5ef2c77e05c34923248cea0a22e8e32207d5fb9c666445ddf5363babcbb726067dbbaed921a9ac687ddad0e691fc4b

+ 21 - 0
dev-erlang/base64url/base64url-1.0.ebuild

@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="URL safe base64-compatible codec"
+HOMEPAGE="https://github.com/dvv/base64url"
+SRC_URI="https://github.com/dvv/base64url/archive/v${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md )

+ 11 - 0
dev-erlang/base64url/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">dvv/base64url</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/cache_tab/Manifest

@@ -0,0 +1 @@
+DIST cache_tab-1.0.14.tar.gz 18680 SHA256 2ec30e51e2ef334b53aef64152d3da14d0478d3bc997bd3317db88b756a26176 SHA512 d202d00fc6fed7b31b0c07089c5e96ce7cb92631fe1869076e66ecb7f06b09d98d952204cca0f9840e9fab1410edf8f50162db149864c76665c3b1b4b0b3c403 WHIRLPOOL 31fa663d0d4ffb9f05aa7a27bee803bd108f117d2a7770e8ea7c024ba9475cd71715459dd8fffcf428f2c860060a85ad4f4b013504aedd47394ae30e41aa1f8c

+ 21 - 0
dev-erlang/cache_tab/cache_tab-1.0.14.ebuild

@@ -0,0 +1,21 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="In-memory cache Erlang and Elixir library"
+HOMEPAGE="https://github.com/processone/cache_tab"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+
+DEPEND=">=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )

+ 21 - 0
dev-erlang/cache_tab/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<longdescription lang="en">
+		cache_tab application is intended to proxy back-end operations for
+		Key-Value insert, lookup and delete and maintain a cache of those
+		Key-Values in-memory, to save back-end operations.
+
+		Operations are intended to be atomic between back-end and cache tables.
+
+		The lifetime of the cache object and the max size of the cache can be
+		defined as table parameters to limit the size of the in-memory tables.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">processone/cache_tab</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/eimp/Manifest

@@ -0,0 +1 @@
+DIST eimp-1.0.6.tar.gz 3471317 SHA256 58544077026f90938396a703e699ec3a055677f955c6b3542412a3a8621beaeb SHA512 3d6e2535f75d813cad9d5d556bd4b24a9ea941869343f8cbb30c371284886b2a8be1b97022203657c42ee35d24210e59769ccf7fc3139db3e51dbe982fd8b4a1 WHIRLPOOL a55b00d6b2e5a4922dfc17b061735d86bfad21f65f75c5975b2231efa073cea66dd8f8689bc799d693a1a8c689374ba3ac108a9620bf955cd5a8f22d81e8552a

+ 23 - 0
dev-erlang/eimp/eimp-1.0.6.ebuild

@@ -0,0 +1,23 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Erlang Image Manipulation Process"
+HOMEPAGE="https://github.com/processone/eimp"
+SRC_URI="https://github.com/processone/eimp/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="media-libs/gd[png,jpeg,webp]
+	>=dev-lang/erlang-17.1
+	>=dev-erlang/p1_utils-1.0.11"
+DEPEND="${RDEPEND}"
+
+DOCS=( README.md LICENSE.txt )

+ 11 - 0
dev-erlang/eimp/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/xmpp</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/epam/Manifest

@@ -0,0 +1 @@
+DIST epam-1.0.4.tar.gz 43816 SHA256 50faf47b1a130525beaf3fcbf8f0412e9626b9e3fde2c082dcada50aaf3330a4 SHA512 46cbdfa683f48f24c4709837cba49745c3b7f87b6c1223b01ced65d547a8ec1a0467997070daf40bedeeb8298d7bb31eb33b331098b406964642f059b77fd313 WHIRLPOOL 37377ecfe82f6c37e523469d7ce9043e3ce59b64cdafa37023d595382375dba3293465418a756e146a4ee946046e13cb6525da774923d9235c5f1f9d85f5878d

+ 33 - 0
dev-erlang/epam/epam-1.0.4.ebuild

@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar user
+
+DESCRIPTION="epam for ejabberd to help with PAM authentication support"
+HOMEPAGE="https://github.com/processone/epam"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+
+DEPEND=">=dev-lang/erlang-17.1
+	sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md )
+
+pkg_setup() {
+	enewgroup "${PN}"
+}
+
+src_install() {
+	rebar_src_install
+
+	local epam_path="$(get_erl_libs)/${P}/priv/bin/epam"
+	fowners root:"${PN}" "${epam_path}"
+	fperms 4750 "${epam_path}"
+}

+ 11 - 0
dev-erlang/epam/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/epam</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/esip/Manifest

@@ -0,0 +1 @@
+DIST esip-1.0.24.tar.gz 85773 SHA256 280c0f59fd48e422cfe602f503649d80dab030bfbec4e760d39c7551819be6db SHA512 078e2c70df998023e86e92f5985f307d93a8d37201414458a465e86f66593e6127416ae73423ca285f4281aa7d2efaed7ced3b214ea7d67a861af76ebbcc0203 WHIRLPOOL 0feff46e096db3eab52a9c3fd61e3dd33010f79c0d650fb245169a06a4fdc7bfd71ca56f252f0d808542e5e86946f8bef60e29a5333db1b2db1e005a6ea0a17f

+ 31 - 0
dev-erlang/esip/esip-1.0.24.ebuild

@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="ProcessOne SIP server component"
+HOMEPAGE="https://github.com/processone/esip"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-erlang/fast_tls-1.0.21
+	>=dev-erlang/stun-1.0.21
+	>=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )
+
+src_prepare() {
+	rebar_src_prepare
+	rebar_fix_include_path stun
+
+	# ebin contains lonely .gitignore file asking for removal.
+	rm -r "${S}/ebin" || die
+}

+ 11 - 0
dev-erlang/esip/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/esip</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/ezlib/Manifest

@@ -0,0 +1 @@
+DIST ezlib-1.0.4.tar.gz 45510 SHA256 3328661c512c28e68db69b82202b8d6c4127f31f2aefc5b0040ba9bce6abe9b3 SHA512 16495a6756cd60ad921695d87136e399446850ce1160d92b825673fa1e0e7d3cd4a6b49f274debbfe7dfe4285370362ece64db8843afd564ffaffe9eeba0dc7a WHIRLPOOL a98db48f03971b147085128dc0928065926fb2bc029499f5a70ec169e6823bd23221fd045a06bf71e658d2dc7cb491fc96628e50baf9334fe841631c3c5c5029

+ 21 - 0
dev-erlang/ezlib/ezlib-1.0.4.ebuild

@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Native zlib driver for Erlang and Elixir"
+HOMEPAGE="https://github.com/processone/ezlib"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-lang/erlang-17.1
+	sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )

+ 11 - 0
dev-erlang/ezlib/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/ezlib</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/fast_tls/Manifest

@@ -0,0 +1 @@
+DIST fast_tls-1.0.23.tar.gz 76199 SHA256 6b9b65fd524210c1df500b65a0e44a5b8cbd64a38ff5e85e84c539524190bcaa SHA512 9cb638b32eb6bf77be4d9a5e5700ed62375e9350575278157f67d8b55e835e61bca305566822f21b2eb0c00be36f34daa3603ed76f23cdbff4f7d739693926cd WHIRLPOOL 0cd682d8387da73719b85b816bafdc8876c8ba21ba53527e73831edcf22943a2884016c55cf3945a8744cc8589470bebdd5ac3154ca003f1a9ca74cd6ff35813

+ 24 - 0
dev-erlang/fast_tls/fast_tls-1.0.23.ebuild

@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="TLS/SSL native driver for Erlang and Elixir"
+HOMEPAGE="https://github.com/processone/fast_tls"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+IUSE="libressl"
+
+DEPEND=">=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1
+	!libressl? ( dev-libs/openssl:0= )
+	libressl? ( dev-libs/libressl:0= )"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )

+ 11 - 0
dev-erlang/fast_tls/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/fast_tls</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/fast_xml/Manifest

@@ -0,0 +1 @@
+DIST fast_xml-1.1.31.tar.gz 93442 SHA256 eda59dccded0ab5c4454774162f9f50a1030c6b487cd7b4d42d1588e897f27d8 SHA512 672d9db46394c8abca8cda9ccee1a3a6972e1e023ca620f2d5375f79280d76ae073503df28db5405d2fe6d24238148cf10e6db701994faa6de3b6475e7b39106 WHIRLPOOL 1d3bd2393fad730aa9ac5b840744850abed2fb999dbe4f9adddd996f110f17dafc53da548d464589098fb2bbb966e55c4061b0e487d59fec00fac51316cda2c7

+ 24 - 0
dev-erlang/fast_xml/fast_xml-1.1.31.ebuild

@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Expat based Erlang XML parsing library"
+HOMEPAGE="https://github.com/processone/fast_xml"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+IUSE="test"
+
+RDEPEND=">=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1
+	dev-libs/expat"
+DEPEND="${RDEPEND}
+	test? ( >=dev-lang/elixir-1.1 )"
+
+DOCS=( CHANGELOG.md  README.md )

+ 11 - 0
dev-erlang/fast_xml/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/fast_xml</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/fast_yaml/Manifest

@@ -0,0 +1 @@
+DIST fast_yaml-1.0.15.tar.gz 49812 SHA256 e110ace33e4266fbcf078a1e4a1a9e836b25bef9c2869acbc59c988a0019093c SHA512 25c4e42d2198bf108a519e6ae9fb8b2f9fe42de6c581301ea24a06b3909fe87a9455272600160f4e349c65cf762313b1b2919839f4a4a4ab3e28cc3379a6d3d5 WHIRLPOOL f34a617bdf024313b7faf57eab6f0cc8271176c5d24ba7e9b761f36b826571273ade04013130412dfd5bab9e9ab42544021871d7b4b7d1091ebdf9d8ae66e110

+ 22 - 0
dev-erlang/fast_yaml/fast_yaml-1.0.15.ebuild

@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Yaml native library for Erlang and Elixir"
+HOMEPAGE="https://github.com/processone/fast_yaml"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1
+	dev-libs/libyaml"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )

+ 11 - 0
dev-erlang/fast_yaml/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/fast_yaml</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/iconv/Manifest

@@ -0,0 +1 @@
+DIST iconv-1.0.8.tar.gz 121549 SHA256 dc3039341fdc619afc7b0ba646bcf7d641e0c2d6d336d9a947e34ca3c3d35435 SHA512 9701980baa8c908042cc3299aaae42896ed37a5d5a7682a3a7818e0e814d9f93137b0f20dd87582995f438bd57fe3eaa9d8f8f3f57443cbbf70b2823eba555cd WHIRLPOOL a2cc5c12128e7dc72a59abe9f6c1bd9019260f49259c810593eeedb68b14369401e559d5fe39bc06c5b11de573ecc548761366f86d3bc710e97ee8fd0b3e58a9

+ 22 - 0
dev-erlang/iconv/iconv-1.0.8.ebuild

@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast encoding conversion library for Erlang and Elixir"
+HOMEPAGE="https://github.com/processone/iconv"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1
+	virtual/libiconv"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md )

+ 11 - 0
dev-erlang/iconv/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/iconv</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/jose/Manifest

@@ -0,0 +1 @@
+DIST erlang-jose-1.8.4.tar.gz 230947 SHA256 a21d514c8b079497f237359f718881d8d5b847cf07e696c2839d1e726e97009a SHA512 47171b4e5f6b61735a15365b4130c110c14de1f4b157cdbf97b448550d48de4ab27a30537e9d9f613d87862d592b3bd95638daacee60f3f5b9877d80a3de773b WHIRLPOOL a8b52b3bff51a39331e13610992db8044418220fa16865f461334b49961c27af9471eb58c90b3ae114d99e4fdcf6d266e5b452e0610e5ac9af70cae4e05a6056

+ 23 - 0
dev-erlang/jose/jose-1.8.4.ebuild

@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="JSON Object Signing and Encryption (JOSE) for Erlang and Elixir"
+HOMEPAGE="https://github.com/potatosalad/erlang-jose"
+SRC_URI="https://github.com/potatosalad/erlang-jose/archive/${PV}.tar.gz
+	-> erlang-${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+IUSE="" # TODO test
+
+DEPEND=">=dev-lang/erlang-17.1
+	>=dev-erlang/base64url-0.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )
+S="${WORKDIR}/erlang-${P}"

+ 11 - 0
dev-erlang/jose/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/p1_oauth2</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/lager/Manifest

@@ -0,0 +1 @@
+DIST lager-3.6.1.tar.gz 261364 SHA256 18c69812f8c83f6ef3a7ca28a7e7b561400cb0ea7a5f42c067df69456ba6c256 SHA512 fefce111bd3b2994b8d546bc09be7011305d77d02b3917d59bf8f6d8a0ee7e2facfac66b7fb57f66d845923ffce5f35322a65bbada8537b5298e66c08c57db05 WHIRLPOOL 53b563c04c54af21e1fff95d4581687a47b8a359a8fa17c9b7c8da7f9212a87f3f5ac666b980a57029368b007bedcd5ff7c0c7537641156551749d6a7b91207e

+ 28 - 0
dev-erlang/lager/lager-3.6.1.ebuild

@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Logging framework for Erlang/OTP"
+HOMEPAGE="https://github.com/erlang-lager/lager"
+SRC_URI="https://github.com/erlang-lager/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-erlang/goldrush-0.1.9
+	>=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md TODO )
+
+src_prepare() {
+	rebar_src_prepare
+	sed -i '/goldrush/d' rebar.config.script
+	# 'priv' directory contains only edoc.css, but doc isn't going to be built.
+	rm -r "${S}/priv" || die
+}

+ 17 - 0
dev-erlang/lager/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<longdescription lang="en">
+		Lager (as in the beer) is a logging framework for Erlang. Its purpose
+		is to provide a more traditional way to perform logging in an erlang
+		application that plays nicely with traditional UNIX logging tools like
+		logrotate and syslog.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">basho/lager</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/luerl/Manifest

@@ -0,0 +1 @@
+DIST luerl-0.3.tar.gz 95182 SHA256 37c6d2be8ecc624a8bf469b80609c4e3f2f079c30886575c31c46391dfedfec6 SHA512 490e4cd5d26b18d4102e83b6a8440fd31588f3888ac1942c44ac0985f68250b440eabeecdae648f076a6b8290a5ae838a59e0a517d745c5febfbc00b6d5dba44 WHIRLPOOL 8e3cd19269dad4725bbfb3575f4993a1184461fa97c64d9b75066328cd0360c581a484933fd084d7e7ffeed0e8d116edeec4f298cd2025bb29620040ef4bcc76

+ 20 - 0
dev-erlang/luerl/luerl-0.3.ebuild

@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Lua in Erlang"
+HOMEPAGE="https://github.com/rvirding/luerl"
+SRC_URI="https://github.com/rvirding/${PN}/archive/v${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md )

+ 11 - 0
dev-erlang/luerl/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">rvirding/luerl</remote-id>
+	</upstream>
+</pkgmetadata>

+ 1 - 0
dev-erlang/p1_mysql/Manifest

@@ -0,0 +1 @@
+DIST p1_mysql-1.0.6.tar.gz 20459 SHA256 c21a0d7a7ccc3b22f28710f94b65d71b177c4425ee3c8568edd2174b26a4a10b SHA512 616f9ddd4907467e89a49f5602f7096b1c0bf0b512e9cc54addc960069ed57457514585122aec876aa87b8937b9755b6ccadd4994d3abe85b600753f962bc1a9 WHIRLPOOL c0613a112e9dfb93a663ea5fb1125ab3d2a6ed80e50d4652eeaaa16fdfef8a76e681391f0720d92f17af2230a5ff4c92eec1d49db4065a91e75fcc884b98c605

+ 11 - 0
dev-erlang/p1_mysql/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/p1_mysql</remote-id>
+	</upstream>
+</pkgmetadata>

+ 20 - 0
dev-erlang/p1_mysql/p1_mysql-1.0.6.ebuild

@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Pure Erlang MySQL driver"
+HOMEPAGE="https://github.com/processone/p1_mysql"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )

+ 1 - 0
dev-erlang/p1_oauth2/Manifest

@@ -0,0 +1 @@
+DIST p1_oauth2-0.6.3.tar.gz 213860 SHA256 d7d954376ae7c131a0884c7c80b0b9e8270b6f574182df59ce4f2fbbae322854 SHA512 634606530f90810fb998baf26d14afc092699144506c9be771e74d5c965698d81b93bdc35ce53ff94d0b3ad1c4557a16660cfe74bc75586fbab2baa45b1d9c46 WHIRLPOOL 7bed07fd183ee0e7f36f6bb33b7d34d076857d651a5039008b9c47ab15033d5d61929b18f778d379ad2c162c5b9826e64c9ddb62cf1bf57218cd6adf4865dba8

+ 11 - 0
dev-erlang/p1_oauth2/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/p1_oauth2</remote-id>
+	</upstream>
+</pkgmetadata>

+ 36 - 0
dev-erlang/p1_oauth2/p1_oauth2-0.6.3.ebuild

@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Erlang OAuth 2.0 implementation"
+HOMEPAGE="https://github.com/processone/p1_oauth2"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+IUSE="test"
+
+CDEPEND=">=dev-lang/erlang-17.1"
+DEPEND="${CDEPEND}
+	test? (
+		>=dev-erlang/meck-0.8.3
+		>=dev-erlang/proper-1.1_p20150814
+	)"
+RDEPEND="${CDEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )
+
+src_prepare() {
+	rebar_src_prepare
+	rebar_remove_deps rebar.test.config
+	sed -e '/, warnings_as_errors/d' -i rebar.test.config || die
+}
+
+src_test() {
+	erebar -C rebar.test.config compile eunit
+}

+ 1 - 0
dev-erlang/p1_pgsql/Manifest

@@ -0,0 +1 @@
+DIST p1_pgsql-1.1.6.tar.gz 20545 SHA256 f309ac90499b56f7b4c572880b1daa6e24dae95d0bdf52383fa0a773f6a4476b SHA512 7bed2f44a134cdae1738c2a09257a406fe292a0f6bfb587eecb6597c1b4c6e9ea45d2ed6022ccc6a9a00fe008e4d99b2df4896ac2f0654e1daf7369a39dd60c9 WHIRLPOOL 9449e03087ca7dbb1eb44921ee1cf94dbd8eb4d23135be1e464e3a250fd70eed4b7cb6d9e10b0ef151b8cd647e1ab5c99d1c3829649e714ee5ef262cfe6f2922

+ 11 - 0
dev-erlang/p1_pgsql/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/p1_pgsql</remote-id>
+	</upstream>
+</pkgmetadata>

+ 20 - 0
dev-erlang/p1_pgsql/p1_pgsql-1.1.6.ebuild

@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Pure Erlang PostgreSQL driver"
+HOMEPAGE="https://github.com/processone/p1_pgsql"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="ErlPL-1.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )

+ 1 - 0
dev-erlang/p1_utils/Manifest

@@ -0,0 +1 @@
+DIST p1_utils-1.0.12.tar.gz 55067 SHA256 ecb29acbbf61686eb91f63a9e37b0a5c9cdd9e55bd8eb42edb632815dbdbf0c0 SHA512 48177ede896acf92cc3d5873602252fc339837c46a5fc85c53ba8eaf8154c99359386efb75f7dc99318329e6abca31e6bfe93f29bfe24041073881864efc6cbe WHIRLPOOL 04c469c99b23910f923381fc4e13a6935967e72d370af5f125d592a7904c9e4ba4fdc6636297b6873b7630c72606f958bd1d6815306486f4d0b490762243cd14

+ 15 - 0
dev-erlang/p1_utils/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<longdescription lang="en">
+		p1_utils is an application containing ProcessOne modules and tools that
+		are leveraged in other development projects.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">processone/p1_utils</remote-id>
+	</upstream>
+</pkgmetadata>

+ 20 - 0
dev-erlang/p1_utils/p1_utils-1.0.12.ebuild

@@ -0,0 +1,20 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Erlang utility modules from ProcessOne"
+HOMEPAGE="https://github.com/processone/p1_utils"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+
+DEPEND=">=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md  README.md )

+ 1 - 0
dev-erlang/riak_pb/Manifest

@@ -0,0 +1 @@
+DIST riak_pb-2.3.2.tar.gz 387073 SHA256 c42a96ab46a9ac81e4278fac45010e18014f0e3c063ad90a4f763d828b97320d SHA512 32cb37c7b631e7071ab64ef19afd2e96ee84f677c71d0bcdd0fc1ff522eafd2d633d72eb865ecd1e1fed999a470cb62b192b605ba5be2fd904501be9b07970cd WHIRLPOOL bc9b7a307d1b0865828add63099049ba5d7de1f62bf6e836103c56d6a01138dc947fc94afda5990fdd77527e321f28c3e5d99395efcd6b8d3efeb2353e996d35

+ 11 - 0
dev-erlang/riak_pb/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">basho/riak_pb</remote-id>
+	</upstream>
+</pkgmetadata>

+ 22 - 0
dev-erlang/riak_pb/riak_pb-2.3.2.ebuild

@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Riak Protocol Buffers messages"
+HOMEPAGE="https://github.com/basho/riak_pb"
+SRC_URI="https://github.com/basho/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-erlang/protobuffs-0.9.0
+	>=dev-erlang/hamcrest-0.1.0_p20160709
+	>=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md RELNOTES.md )

+ 1 - 0
dev-erlang/riakc/Manifest

@@ -0,0 +1 @@
+DIST riakc-2.5.3.tar.gz 275597 SHA256 745ef053d98935115279518e45bb0d9583dfe4bca084f812bb8b8658c33f0ace SHA512 d6777f563c2a7c71a81fc3a9297660595a1ab0f2b1ad4aeea6a0a30e851a81abb25d7db81c3c86e75cf839b71e1328e1da303f41b68e6203cef3a0691c1e7f3e WHIRLPOOL c2b58e91c7f668de84588c3d490b2d341589cfdaaa230c66851c2eeb60af6fbab5dd5bdf93eeeaa1106a45ee7927a7846c268d418a70c6088f9d9407ad6654a0

+ 11 - 0
dev-erlang/riakc/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">basho/riak-erlang-client</remote-id>
+	</upstream>
+</pkgmetadata>

+ 31 - 0
dev-erlang/riakc/riakc-2.5.3.ebuild

@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+MY_PN="riak-erlang-client"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Erlang clients for Riak"
+HOMEPAGE="https://github.com/basho/riak-erlang-client"
+SRC_URI="https://github.com/basho/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-erlang/riak_pb-2.3.2
+	>=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md RELNOTES.md )
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+	rebar_src_prepare
+	# 'priv' directory contains only edoc.css, but doc isn't going to be built.
+	rm -r "${S}/priv" || die
+}

+ 1 - 0
dev-erlang/sqlite3/Manifest

@@ -0,0 +1 @@
+DIST sqlite3-1.1.6.tar.gz 1834834 SHA256 dec01d20fa8df7d7690514ccae413cfa56fac7373d0a569cd44b43fe0f11e79a SHA512 f3781c186f4f677340bf752884559e9afe745726b6e8dfeb8b701ab34a5e58af0e7dba8bd852443f44fac874a1af66970ea29b044ff2f0cfbbeafbb4996cdc8d WHIRLPOOL db13b107e918e079828b26fe0cc28bab954e8d62fb66c14dd50a02df963cb5b3c1b61e85e00e753d8e66f9f353c2e4b949663b493ecc6f6ddcab1670dac691b2

+ 11 - 0
dev-erlang/sqlite3/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/erlang-sqlite3</remote-id>
+	</upstream>
+</pkgmetadata>

+ 26 - 0
dev-erlang/sqlite3/sqlite3-1.1.6.ebuild

@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+MY_PN="erlang-sqlite3"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="SQLite gen_server port for Erlang"
+HOMEPAGE="https://github.com/processone/erlang-sqlite3"
+SRC_URI="https://github.com/processone/${MY_PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="ErlPL-1.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-lang/erlang-17.1
+	dev-db/sqlite:3"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS README.md )
+
+S="${WORKDIR}/${MY_P}"

+ 1 - 0
dev-erlang/stringprep/Manifest

@@ -0,0 +1 @@
+DIST stringprep-1.0.12.tar.gz 95647 SHA256 0f659b46a46113b97948182fe0ce6611952ddd8ff5a3eebd9afc7a298d7d5d33 SHA512 b35feafec5f69c7097624b712ab947ec776d93557f1e1a53c67b95e8fcb9bdb9648c370d17f1ad9948c9abae3f534e11e5797967738e55f73a4b1919f1732d9a WHIRLPOOL 25f4c23464f7d071029d84b3d554e4ad0941847a0e3833162eba71d2f563b4336322162c040646fdfae8dc93f7c8e01e8a6e4aa0e3c54743eece81dacebf7583

+ 16 - 0
dev-erlang/stringprep/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<longdescription lang="en">
+		Stringprep is a framework for preparing Unicode test strings in order
+		to increase the likelihood that string input and string comparison
+		work.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">processone/stringprep</remote-id>
+	</upstream>
+</pkgmetadata>

+ 21 - 0
dev-erlang/stringprep/stringprep-1.0.12.ebuild

@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Stringprep implementation for Erlang and Elixir"
+HOMEPAGE="https://github.com/processone/stringprep"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 tcltk"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+
+DEPEND=">=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md README.md )

+ 1 - 0
dev-erlang/stun/Manifest

@@ -0,0 +1 @@
+DIST stun-1.0.23.tar.gz 29258 SHA256 0f86360b858961019368a746de162dc3f1e0476e570cafd40e8ff025aa61a130 SHA512 dda380d1527dc453172341da29363ed032a6cc0168e584a31f9244dc5cb22661c243a47a852f4cfdeb981a05496302ff33e14c964a573b2ccf1f57558102dd45 WHIRLPOOL 28fc6dea6ec0502e32e6aaae5145a6f566e3edb0d214d063f85388e2c59afd2a4f85cfec21b938e69b4e9c0c2f01774549101fc3b206054d6c75bb00bf5d6285

+ 11 - 0
dev-erlang/stun/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/stun</remote-id>
+	</upstream>
+</pkgmetadata>

+ 22 - 0
dev-erlang/stun/stun-1.0.23.ebuild

@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="STUN and TURN library for Erlang and Elixir"
+HOMEPAGE="https://github.com/processone/stun"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+
+DEPEND=">=dev-erlang/fast_tls-1.0.21
+	>=dev-erlang/p1_utils-1.0.11
+	>=dev-lang/erlang-17.1"
+RDEPEND="${DEPEND}"
+
+DOCS=( CHANGELOG.md README.md )

+ 1 - 0
dev-erlang/xmpp/Manifest

@@ -0,0 +1 @@
+DIST xmpp-1.1.21.tar.gz 398788 SHA256 8cd0828d6207e6d4f1ef29bb652b98208b2840a99580f003b1ee8fa2d0cedad1 SHA512 2d1c719758c785c9a69b3c0b7e53341706e0d8509e3cdb8c6d5d0f847d6338e775a3021e76def0d8b5ef6d08ffaecf30b48719df28776511ce2ea3622a24c812 WHIRLPOOL ffcc98bfec803c02baae3ed3e0c52a893ebcff6fd9663503664bab42881976f53fb45b1d894edcc775f4f4ff97751ceab36ffec9e184e14606052184f461d94d

+ 11 - 0
dev-erlang/xmpp/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">processone/xmpp</remote-id>
+	</upstream>
+</pkgmetadata>

+ 29 - 0
dev-erlang/xmpp/xmpp-1.1.21.ebuild

@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="XMPP parsing and serialization library on top of Fast XML"
+HOMEPAGE="https://github.com/processone/xmpp"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ppc ~sparc x86"
+IUSE="test"
+
+RDEPEND=">=dev-erlang/fast_xml-1.1.29
+	>=dev-erlang/p1_utils-1.0.11
+	>=dev-erlang/stringprep-1.0.11
+	dev-lang/erlang"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGELOG.md )
+
+src_prepare() {
+	rebar_src_prepare
+	rebar_fix_include_path fast_xml
+}

+ 1 - 0
metadata/.gitignore

@@ -0,0 +1 @@
+md5-cache

+ 17 - 0
metadata/layout.conf

@@ -0,0 +1,17 @@
+masters = gentoo
+# Use new hashes
+manifest-hashes = SHA256 SHA512 WHIRLPOOL
+# Do not update changelogs
+update-changelog = true
+# Use thin manifests
+thin-manifests = true
+# Dont sign thinn manifests. There is no current policy for git commit signing
+sign-manifests = false
+repo-name = ejabberd
+
+# Make egencache generate newer (more reliable)
+# md5-dict cache format (see bug #409445).
+# NOTE: list md5-dict first so clients prefer it
+# INFRA NOTE: Format 'pms' was removed on Aug 6 2012. (Announced prior as Aug 1
+# 2012 was the removal date)
+cache-formats = md5-dict

+ 10 - 0
net-im/ejabberd/Manifest

@@ -0,0 +1,10 @@
+AUX ejabberd-18.03-0002-Dont-overwrite-service-file.patch 470 BLAKE2B 0dd597eaa63ccedafbb5c2903f948cc078c4951c551f76827f66198b4a25ac71f81dfaa36a0e0f443a8567c5d4309d00bc7ed59732a945dd0696d08edea5189f SHA512 a6b38ae82a0fe5d5d643eb2a122921aff3a9701381f6162213cee11b4950bdb9f16add78465a01eb6df5824dfa4ba2adae6dc0451749f76eefd224f5f97b8b01
+AUX ejabberd-18.03-ejabberdctl.patch 1238 BLAKE2B 04b4317661afb77525b3d09fc2b1499faeb8ba49f32971f5302e64849808d7da21530d351aa728790e00cef076b8d679d1ca2ebb39e72d999ba3e628637ba00f SHA512 34e3aaecae83b8c00998dec3c8f26389a00af4aebf59592dcc0fa0afb917fbe33b057e83b38d3f5c24dad9e877d0a02c6b14a6d3396a6549e98e372fc293e9be
+AUX ejabberd.confd 161 BLAKE2B f08ab6310c950d3d248fbaf5e6e35bca2e31289ae476b2379a779ebc38926e091cf04883cce94cedff1e4dcf6ec3224079e7828502b97451a8a96fd278a4d102 SHA512 07143642982df18461fdecd16daaad3baf6a06f8222d7a76757797c531be2803975ed60cc43aace24a624aa7c73bd8fdc6e023e739de492271b79e571f27c8fb
+AUX ejabberd.initd 1071 BLAKE2B 0156332ebdc15d3c4e803be435408fd88b1c927857bad9c2bf0f5efe87dda6967e0588cea5421f6e888ee2cf704d183a6093bc3782c63f212b0e973b70bbc523 SHA512 3b46807c610460f4fef3ab4a186820e36d4c177749aa252c5d95e721a4a9461dba22e79177d57732728a9555b751f163e255531abffd1139d6efdf1f9d8621fb
+AUX ejabberd.logrotate 203 BLAKE2B f523a30cf927d403523f618a6ab28fe4281a95ce6a1e639b4075b0ce98a8a985deec5446655c41288258a286a1ceb46cb64422be554d1de754fd97fc86e67555 SHA512 53cead768a76d18c01b229d0a1c0f38561c7a872fd751f1bb9b427c107f36a5536654a0047c5aef05507223f75c0e0f91e9a83b6c283fb9eceb8e31938de00d2
+AUX ejabberd.tmpfiles.conf 78 BLAKE2B d516116f500baf9972b4bdee069ab9930bcc8aa309de4d25a38c93bfa82ac216211341d047078eed1346a39f327d856e8e9021e87d4c63ea9b26c0d581a0e2a0 SHA512 21953448f1695cf6b45d2eccf2eca7611d45c8407759fcc62b347afd22a4f25b79514275e18c473debc8070345b25bb49e1457e10bc37766f0590cb70f7f0230
+AUX epam-wrapper 336 BLAKE2B 914ba9c7469ba58fd29a4c70485c77ff2a93000e397aa8c58aab434cfceda34120880184488659e30f1961d576566111b4159b34b30fea5307bc255ce382781d SHA512 b66dfed9967e6524af8f46204eadcbed0a427ecc5cca30ec1fd58373714467077858a252c039828a18130244d46a54a019e17828cf3ac055c18044c2a6881449
+DIST ejabberd-18.06.tar.gz 1848145 BLAKE2B 160f393798aec1c96626eb4b94c6c6796100dd39f6a13096a09515914e5b0e36d44e4f7bc0423acd5ea0319a354a1637ddb1e959d4a8e5e75e67b37e13bacd97 SHA512 ccf3cb8d5edce255604abc7c3b0c77d237203fd673d425a7676a1c35f2d24a27bcfd605a941cd8e7149f111a134bca2aa1d488642e4d0decb273f757c6be8d60
+EBUILD ejabberd-18.06.ebuild 11064 BLAKE2B 712eafaaed06fa7343bfab69a312cc4c18551767c4e7b3a140608d3d3be869df3588a5bd36df7f20906c1815f9e176854310e938cef604c6ad954e571e8e40bc SHA512 022f734ef347ee7b66b385bd96d73865feabbc26424bc734844863c46954596547e6a298821f44ee65656ba2f78a143740f849f5f4348351043bc4b494ca9e4f
+MISC metadata.xml 1897 BLAKE2B 281c28ea03f605dd01da835137be70b0181b8b8616b23fd784a1dcfabd566e0160d2265d02da1c093019e36d673f4ab800f8066b56582fc6134dfc16251ce6fc SHA512 163f94c35500cbb9737252ecfcdd5e932579f24f54b99e63c6cf5dc4cff927956aecf8b8fd3ac0ebc5f63ea49802cd376dbfaba98696af39059f9c9f813c61e1

+ 338 - 0
net-im/ejabberd/ejabberd-18.06.ebuild

@@ -0,0 +1,338 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+SSL_CERT_MANDATORY=1
+
+inherit eutils pam rebar ssl-cert systemd
+
+DESCRIPTION="Robust, scalable and extensible XMPP server"
+HOMEPAGE="https://www.ejabberd.im/ https://github.com/processone/ejabberd/"
+SRC_URI="https://www.process-one.net/downloads/${PN}/${PV}/${P}.tgz
+	-> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="mssql? ( odbc )"
+# TODO: Add 'tools' flag.
+IUSE="captcha debug full-xml graphics hipe ldap mssql mysql nls odbc pam postgres redis
+	riak roster-gw sip sqlite stun zlib"
+
+RESTRICT="test"
+
+# TODO: Add dependencies for 'tools' flag enabled.
+# TODO: tools? (
+# TODO: 	>=dev-erlang/meck-0.8.4
+# TODO: 	>=dev-erlang/moka-1.0.5b
+# TODO: )
+# TODO: luerl seems to be optional. review it
+CDEPEND="
+	>=dev-erlang/cache_tab-1.0.14
+	>=dev-erlang/eimp-1.0.6
+	>=dev-erlang/fast_tls-1.0.23
+	>=dev-erlang/fast_xml-1.1.31
+	>=dev-erlang/fast_yaml-1.0.15
+	>=dev-erlang/jiffy-0.14.8
+	>=dev-erlang/jose-1.8.4
+	>=dev-erlang/lager-3.4.2
+	>=dev-erlang/luerl-0.3
+	>=dev-erlang/p1_oauth2-0.6.3
+	>=dev-erlang/p1_utils-1.0.12
+	>=dev-erlang/stringprep-1.0.12
+	>=dev-erlang/xmpp-1.1.21
+	>=dev-lang/erlang-17.1[hipe?,odbc?,ssl]
+	>=net-im/jabber-base-0.01
+	ldap? ( =net-nds/openldap-2* )
+	mysql? ( >=dev-erlang/p1_mysql-1.0.6 )
+	nls? ( >=dev-erlang/iconv-1.0.8 )
+	odbc? ( dev-db/unixODBC )
+	pam? ( >=dev-erlang/epam-1.0.4 )
+	postgres? ( >=dev-erlang/p1_pgsql-1.1.6 )
+	redis? ( >=dev-erlang/eredis-1.0.8 )
+	riak? (
+		>=dev-erlang/hamcrest-0.1.0_p20150103
+		>=dev-erlang/riakc-2.5.3
+	)
+	sip? ( >=dev-erlang/esip-1.0.24 )
+	sqlite? ( >=dev-erlang/sqlite3-1.1.6 )
+	stun? ( >=dev-erlang/stun-1.0.23 )
+	zlib? ( >=dev-erlang/ezlib-1.0.4 )"
+DEPEND="${CDEPEND}
+	>=sys-apps/gawk-4.1"
+RDEPEND="${CDEPEND}
+	captcha? ( media-gfx/imagemagick[truetype,png] )"
+
+DOCS=( README )
+PATCHES=( "${FILESDIR}/${P}-ejabberdctl.patch"
+	"${FILESDIR}/${P}-0002-Dont-overwrite-service-file.patch" )
+
+EJABBERD_CERT="${EPREFIX}/etc/ssl/ejabberd/server.pem"
+# Paths in net-im/jabber-base
+JABBER_ETC="${EPREFIX}/etc/jabber"
+JABBER_LOG="${EPREFIX}/var/log/jabber"
+JABBER_SPOOL="${EPREFIX}/var/spool/jabber"
+
+# Adjust example configuration file to Gentoo.
+# - Use our sample certificates.
+# - Correct PAM service name.
+adjust_config() {
+	sed -e "s|\"/path/to/ssl.pem\"|\"${EJABBERD_CERT}\"|g" \
+		-e "s|\"pamservicename\"|\"xmpp\"|" \
+		-i "${S}/ejabberd.yml.example" \
+		|| die 'failed to adjust example config'
+}
+
+# Set paths to ejabberd lib directory consistently to point always to directory
+# suffixed with version.
+correct_ejabberd_paths() {
+	sed -e "/^EJABBERDDIR[[:space:]]*=/{s:ejabberd:${P}:}" \
+		-i "${S}/Makefile.in" \
+		|| die 'failed to set ejabberd path in Makefile.in'
+	sed -e "/EJABBERD_BIN_PATH=/{s:ejabberd:${P}:}" \
+		-i "${S}/ejabberdctl.template" \
+		|| die 'failed to set ejabberd path in ejabberdctl.template'
+	sed -e 's|\(captcha_cmd:[[:space:]]*"\).\+"|\1'$(get_ejabberd_path)'/priv/bin/captcha.sh"|' \
+		-i "${S}/ejabberd.yml.example" \
+		|| die 'failed to correct path to captcha.sh in example config'
+}
+
+# Get epam-wrapper from 'files' directory and correct path to lib directory in
+# it. epam-wrapper is placed into work directory. It is assumed no epam-wrapper
+# file exists there already.
+customize_epam_wrapper() {
+	local epam_wrapper_src="$1"
+	local epam_wrapper_dst="${S}/epam-wrapper"
+
+	[[ -e ${epam_wrapper_dst} ]] && die 'epam-wrapper already exists'
+	sed -r -e "s@^(ERL_LIBS=).*\$@\1${EPREFIX}$(get_erl_libs)@" \
+		"${epam_wrapper_src}" >"${epam_wrapper_dst}" \
+		|| die 'failed to install epam-wrapper'
+}
+
+# Disable mod_irc in example configuration file.
+disable_mod_irc() {
+	local needs_iconv='needs dev-erlang/iconv (+nls USE flag)'
+	sed -r \
+		-e "s@^(\s*)(mod_irc\s*:.*$)@\1## \2 # ${needs_iconv}@" \
+		-i "${S}/ejabberd.yml.example" \
+		|| die 'failed to modify example config'
+}
+
+# Check if there already exists a certificate.
+ejabberd_cert_exists() {
+	local cert
+
+	for cert in $(gawk -- \
+			'match($0, /^[[:space:]]*certfile: "([^"]+)"/, m) {print m[1];}' \
+			"${EROOT%/}${JABBER_ETC}/ejabberd.yml"); do
+		[[ -f ${cert} ]] && return 0
+	done
+
+	return 1
+}
+
+# Generate and install sample ejabberd certificate. It's installed into
+# EJABBERD_CERT path.
+ejabberd_cert_install() {
+	SSL_ORGANIZATION="${SSL_ORGANIZATION:-ejabberd XMPP Server}"
+	install_cert "${EJABBERD_CERT%.*}"
+	chown root:jabber "${EROOT%/}${EJABBERD_CERT}" || die
+	chmod 0440 "${EROOT%/}${EJABBERD_CERT}" || die
+}
+
+# Get path to ejabberd lib directory.
+#
+# This is the path ./configure script Base for this path is path set in
+# ./configure script which is /usr/lib by default. If libdir is explicitely set
+# to something else than this should be adjusted here as well.
+get_ejabberd_path() {
+	echo "/usr/$(get_libdir)/${P}"
+}
+
+# Check whether mod_irc is enabled in ejabberd configuration on target system.
+is_mod_irc_enabled() {
+	egrep '^(\s*)(mod_irc\s*:.*$)' \
+		"${EROOT%/}${JABBER_ETC}/ejabberd.yml"
+}
+
+# Make ejabberd.service for systemd from upstream provided template.
+make_ejabberd_service() {
+	sed -r \
+		-e 's!@ctlscriptpath@!/usr/sbin!g' \
+		-e 's!(User|Group)=(.*)!\1=jabber!' \
+		"${PN}.service.template" >"${PN}.service" \
+		|| die 'failed to make ejabberd.service'
+}
+
+# Set paths to defined by net-im/jabber-base.
+set_jabberbase_paths() {
+	sed -e "/^ETCDIR[[:space:]]*=/{s:@sysconfdir@/ejabberd:${JABBER_ETC}:}" \
+		-e "/^LOGDIR[[:space:]]*=/{s:@localstatedir@/log/ejabberd:${JABBER_LOG}:}" \
+		-e "/^SPOOLDIR[[:space:]]*=/{s:@localstatedir@/lib/ejabberd:${JABBER_SPOOL}:}" \
+		-i "${S}/Makefile.in" \
+		|| die 'failed to set paths in Makefile.in'
+	sed -e "s|\(ETC_DIR:=\"\){{sysconfdir}}[^\"]*|\1${JABBER_ETC}|" \
+		-e "s|\(LOGS_DIR:=\"\){{localstatedir}}[^\"]*|\1${JABBER_LOG}|" \
+		-e "s|\(SPOOL_DIR:=\"\){{localstatedir}}[^\"]*|\1${JABBER_SPOOL}|" \
+		-i "${S}/ejabberdctl.template" \
+		|| die 'failed to set paths ejabberdctl.template'
+}
+
+# Skip installing docs because it's only COPYING that's installed by Makefile.
+skip_docs() {
+	gawk -i inplace '
+/# Documentation/, /^[[:space:]]*#?[[:space:]]*$/ {
+	if ($0 ~ /^[[:space:]]*#?[[:space:]]*$/) {
+		print $0;
+	} else {
+		next;
+	}
+}
+1
+' "${S}/Makefile.in" || die 'failed to remove docs section from Makefile.in'
+}
+
+src_prepare() {
+	default
+
+	rebar_remove_deps
+	correct_ejabberd_paths
+	set_jabberbase_paths
+	make_ejabberd_service
+	skip_docs
+	adjust_config
+	use nls || disable_mod_irc
+	customize_epam_wrapper "${FILESDIR}/epam-wrapper"
+
+	rebar_fix_include_path fast_xml
+	rebar_fix_include_path p1_utils
+	rebar_fix_include_path xmpp
+
+	# Fix bug #591862. ERL_LIBS should point directly to ejabberd directory
+	# rather than its parent which is default. That way ejabberd directory
+	# takes precedence is module lookup.
+	local ejabberd_erl_libs="$(get_ejabberd_path):$(get_erl_libs)"
+	sed -e "s|\(ERL_LIBS=\){{libdir}}.*|\1${ejabberd_erl_libs}|" \
+		-i "${S}/ejabberdctl.template" \
+		|| die 'failed to set ERL_LIBS in ejabberdctl.template'
+
+	sed -e "s|\(AC_INIT(ejabberd, \)m4_esyscmd([^)]*)|\1[$PV]|" \
+		-i configure.ac || die "Failed to write correct version to configure"
+	# eautoreconf # required in case of download from github
+}
+
+src_configure() {
+	econf \
+		--docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
+		--enable-user=jabber \
+		--disable-system-deps \
+		$(use_enable debug) \
+		$(use_enable full-xml) \
+		$(use_enable graphics) \
+		$(use_enable hipe) \
+		$(use_enable mssql) \
+		$(use_enable mysql) \
+		$(use_enable nls iconv) \
+		$(use_enable odbc) \
+		$(use_enable pam) \
+		$(use_enable postgres pgsql) \
+		$(use_enable redis) \
+		$(use_enable riak) \
+		$(use_enable roster-gw roster-gateway-workaround) \
+		$(use_enable sqlite) \
+		$(use_enable sip) \
+		$(use_enable stun) \
+		$(use_enable zlib)
+
+	# more options to support
+	# --enable-elixir requires https://github.com/elixir-lang/elixir
+}
+
+src_compile() {
+	emake REBAR='rebar -v' src
+}
+
+src_install() {
+	default
+
+	if use pam; then
+		local epam_path="$(get_ejabberd_path)/priv/bin/epam"
+
+		pamd_mimic_system xmpp auth account || die "cannot create pam.d file"
+		into "$(get_ejabberd_path)/priv"
+		newbin epam-wrapper epam
+	fi
+
+	newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+	newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+	systemd_dounit "${PN}.service"
+	systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf"
+
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}/${PN}.logrotate" "${PN}"
+}
+
+pkg_preinst() {
+	if use pam; then
+		einfo "Adding jabber user to epam group to allow ejabberd to use PAM" \
+			"authentication"
+		# See
+		# <https://docs.ejabberd.im/admin/configuration/#pam-authentication>.
+		# epam binary is installed by dev-erlang/epam package, therefore SUID
+		# is set by that package. Instead of jabber group it uses epam group,
+		# therefore we need to add jabber user to epam group.
+		usermod -a -G epam jabber || die
+	fi
+}
+
+pkg_postinst() {
+	if [[ ! ${REPLACING_VERSIONS} ]]; then
+		echo
+		elog "For configuration instructions, please see"
+		elog "  http://www.process-one.net/en/ejabberd/docs/"
+		echo
+		if [[ " ${REPLACING_VERSIONS} " =~ \ 2\. ]]; then
+			ewarn "If you have used pubsub in ejabberd-2.* you may encounter issues after"
+			ewarn "migration to ${PV}. pubsub data may not be migrated automatically and"
+			ewarn "you may need to run migration script manually, see:"
+			ewarn
+			ewarn "  https://github.com/processone/ejabberd/issues/479#issuecomment-124497456"
+			ewarn
+			ewarn "In case you don't care about all stored moods, activities, geoinfo and you"
+			ewarn "know you don't store in pubsub anything important, you can just remove"
+			ewarn "pubsub tables:"
+			ewarn
+			ewarn "  rm ${EROOT%/}${JABBER_SPOOL}/pubsub_*"
+			ewarn
+			ewarn "See also: https://bugs.gentoo.org/show_bug.cgi?id=588244"
+			echo
+		fi
+	elif [[ -f ${EROOT}etc/jabber/ejabberd.cfg ]]; then
+		elog "Ejabberd now defaults to using a YAML format for its config file."
+		elog "The old ejabberd.cfg file can be converted using the following instructions:"
+		echo
+		elog "1. Make sure all processes related to the previous version of ejabberd aren't"
+		elog "   running. Usually this just means the ejabberd and epmd daemons and possibly"
+		elog "   the pam-related process (epam) if pam support is enabled."
+		elog "2. Run \`ejabberdctl start\` with sufficient permissions. Note that this can"
+		elog "   fail to start ejabberd properly for various reasons. Check ejabberd's main"
+		elog "   log file at /var/log/jabber/ejabberd.log to confirm it started successfully."
+		elog "3. Run"
+		elog "     \`ejabberdctl convert_to_yaml /etc/jabber/ejabberd.cfg /etc/jabber/ejabberd.yml.new\`"
+		elog "   with sufficient permissions, edit and rename /etc/jabber/ejabberd.yml.new to"
+		elog "   /etc/jabber/ejabberd.yml, and finally restart ejabberd with the new config"
+		elog "   file."
+		echo
+	fi
+
+	if ! ejabberd_cert_exists; then
+		ejabberd_cert_install
+	fi
+
+	if ! use nls && is_mod_irc_enabled; then
+		ewarn "nls support (dev-erlang/iconv) is required by mod_irc. Either rebuild ejabberd"
+		ewarn "with nls enabled or disable mod_irc in ${EROOT%/}${JABBER_ETC}/ejabberd.yml."
+	fi
+}

+ 15 - 0
net-im/ejabberd/files/ejabberd-18.03-0002-Dont-overwrite-service-file.patch

@@ -0,0 +1,15 @@
+diff --git a/Makefile.in b/Makefile.in
+index a0b4553d..4675b88a 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -204,8 +204,8 @@ install: all copy-files
+ 	chmod 755 ejabberd.init
+ 	#
+ 	# Service script
+-	$(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" ejabberd.service.template \
+-		> ejabberd.service
++	[ -f ejabberd.service ] || $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
++		ejabberd.service.template > ejabberd.service
+ 	chmod 644 ejabberd.service
+ 	#
+ 	# Spool directory

+ 38 - 0
net-im/ejabberd/files/ejabberd-18.03-ejabberdctl.patch

@@ -0,0 +1,38 @@
+Subject: [PATCH] Adjust ejabberdctl for Gentoo jabberbase setup
+
+Set SHELL since the generic jabber user used on Gentoo for jabber
+servers doesn't have a valid shell set by default and fix EXEC_CMD
+otherwise it fails with This account is currently not available again
+due to jabber not having a valid shell.
+
+Also, workaround the assumption that jabber's /root is a directory when
+instead it defaults to /dev/null on Gentoo.
+---
+
+diff --git a/ejabberdctl.template b/ejabberdctl.template
+index 571b90b..71336c0 100755
+--- a/ejabberdctl.template
++++ b/ejabberdctl.template
+@@ -82,6 +82,7 @@ fi
+ ERL_LIBS={{libdir}}
+ ERL_CRASH_DUMP="$LOGS_DIR"/erl_crash_$(date "+%Y%m%d-%H%M%S").dump
+ ERL_INETRC="$ETC_DIR"/inetrc
++HOME=$SPOOL_DIR
+ 
+ # define ejabberd parameters
+ EJABBERD_OPTS="$EJABBERD_OPTS\
+@@ -105,12 +106,13 @@ export ERL_MAX_ETS_TABLES
+ export CONTRIB_MODULES_PATH
+ export CONTRIB_MODULES_CONF_DIR
+ export ERL_LIBS
++export HOME
+ 
+ # run command either directly or via su $INSTALLUSER
+ exec_cmd()
+ {
+     case $EXEC_CMD in
+-        as_install_user) su -s /bin/sh -c '"$0" "$@"' "$INSTALLUSER" -- "$@" ;;
++        as_install_user) su -p -s /bin/sh -c '"$0" "$@"' "$INSTALLUSER" -- "$@" ;;
+         as_current_user) "$@" ;;
+     esac
+ }

+ 5 - 0
net-im/ejabberd/files/ejabberd.confd

@@ -0,0 +1,5 @@
+# Please configure everything at /etc/jabber/ejabberdctl.cfg
+# Put here only command line arguments for ejabberdctl (if any are required)
+
+#EJABBERDCTL_OPTS=""
+

+ 54 - 0
net-im/ejabberd/files/ejabberd.initd

@@ -0,0 +1,54 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+depend() {
+	use dns
+	need epmd net
+	provide jabber-server
+}
+
+start() {
+	if ejabberdctl status >/dev/null 2>&1; then
+		ewarn "ejabberd is already started (manually?)."
+		return 0
+	fi
+	ebegin "Starting ejabberd"
+	/usr/sbin/ejabberdctl ${EJABBERDCTL_OPTS} start
+	eend $?
+}
+
+reload() {
+	ebegin "Reloading ejabberd configuration"
+	/usr/sbin/ejabberdctl ${EJABBERDCTL_OPTS} reload_config
+	eend $?
+}
+
+stop() {
+	ejabberdctl status >/dev/null 2>&1
+	if test $? = 3; then
+		ewarn "ejabberd is already stopped (manually?)."
+		return 0
+	fi
+	ebegin "Stopping ejabberd"
+	if /usr/sbin/ejabberdctl stop >/dev/null 2>&1; then
+		cnt=0
+		sleep 1
+		while ejabberdctl status >/dev/null 2>&1 || test $? = 1; do
+			echo -n .
+			cnt=`expr $cnt + 1`
+			if [ $cnt -ge 60 ] ; then
+				eend 1
+				break
+			fi
+			sleep 1
+		done
+		eend 0
+	else
+		eend 1
+		einfo "Please, run '/usr/sbin/ejabberdctl stop' to see what's going on."
+	fi
+	eend 0
+}

+ 13 - 0
net-im/ejabberd/files/ejabberd.logrotate

@@ -0,0 +1,13 @@
+/var/log/jabber/*.log {
+	su jabber jabber
+	weekly
+	rotate 4
+	missingok
+	nocreate
+	sharedscripts
+	notifempty
+	compress
+	postrotate
+		/usr/sbin/ejabberdctl reopen-log > /dev/null 2>&1 || true
+	endscript
+}

+ 2 - 0
net-im/ejabberd/files/ejabberd.tmpfiles.conf

@@ -0,0 +1,2 @@
+d /run/lock/ejabberdctl 0750 jabber jabber
+d /run/ejabberd 0750 jabber jabber

+ 21 - 0
net-im/ejabberd/files/epam-wrapper

@@ -0,0 +1,21 @@
+#!/bin/sh
+
+ERL_LIBS=/usr/lib/erlang/lib
+
+for bin in "$ERL_LIBS"/epam-*/priv/bin/epam; do
+	if [ -x "$bin" ]; then
+		if [ -z "$epam" ]; then
+			epam="$bin"
+		else
+			echo "Multiple epam libraries - don't know what to do" >&2
+			exit 1
+		fi
+	fi
+done
+
+if [ -z "$epam" ]; then
+	echo "Couldn't find epam package" >&2
+	exit 1
+fi
+
+exec "$epam"

+ 41 - 0
net-im/ejabberd/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>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+	<maintainer type="person">
+		<email>hanno@gentoo.org</email>
+		<name>Hanno Böck</name>
+	</maintainer>
+	<longdescription>
+		Free and Open Source distributed fault-tolerant Jabber server. It's
+		mostly written in Erlang, and works on many platforms.
+	</longdescription>
+	<use>
+		<flag name="captcha">Support for CAPTCHA Forms (XEP-158) on registration</flag>
+		<flag name="full-xml">Use XML features in XMPP stream (ex: CDATA),
+			requires XML compliant clients</flag>
+		<flag name="graphics">Enable graphics manipulation (avatars,captcha)</flag>
+		<flag name="hipe">Compile natively with HiPE, not recommended</flag>
+		<flag name="mssql">Enable Microsoft SQL Server support (via ODBC) for
+			data storage</flag>
+		<flag name="mysql">Enable MySQL support for data storage</flag>
+		<flag name="nls">Enable character set conversion for mod_irc</flag>
+		<flag name="odbc">Enable ODBC support to access data storage</flag>
+		<flag name="postgres">Enable PostgreSQL support for data storage</flag>
+		<flag name="redis">Enable Redis support for transient data</flag>
+		<flag name="riak">Enable support for Riak - distributed NoSQL key-value
+			data store</flag>
+		<flag name="roster-gw">Turn on workaround for processing gateway subscriptions</flag>
+		<flag name="sqlite">Enable SQLite database support</flag>
+		<flag name="sip">Enable SIP support</flag>
+		<flag name="stun">Enable STUN/TURN support</flag>
+		<flag name="zlib">Enable Stream Compression (XEP-0138) using zlib</flag>
+		<!-- TODO Add later: flag name="tools">Build development tools</flag -->
+	</use>
+	<upstream>
+		<remote-id type="github">processone/ejabberd</remote-id>
+	</upstream>
+</pkgmetadata>

+ 7 - 0
profiles/ChangeLog

@@ -0,0 +1,7 @@
+# ChangeLog for profiles directory
+# Copyright 1999-2018 Gentoo Foundation; Distributed under the GPL v2
+# ChangeLog: ejabberd overlay ;https://github.com/rion-overlay/ejabberd-overlay
+# $Header: $
+
+ 28 Sep 2018; Sergey Ilinykh <rion4ik@gmail.com>:
+ initial import

+ 74 - 0
profiles/desc/apache2_modules.desc

@@ -0,0 +1,74 @@
+# Copyright 2007-2010 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/desc/apache2_modules.desc,v 1.4 2010/12/02 06:43:07 robbat2 Exp $
+
+# This file contains descriptions of APACHE2_MODULES USE_EXPAND flags.
+
+# Keep it sorted.
+actions - Provides for executing CGI scripts based on media type or request method
+alias - Provides for mapping different parts of the host filesystem in the document tree and for URL redirection
+asis - Sends files that contain their own HTTP headers
+auth_basic - Basic authentication
+auth_digest - User authentication using MD5 Digest Authentication
+authn_alias - Provides the ability to create extended authentication providers based on actual providers
+authn_anon - Allows "anonymous" user access to authenticated areas
+authn_dbd - User authentication using an SQL database
+authn_dbm - User authentication using DBM files
+authn_default - Authentication fallback module
+authn_file - User authentication using text files
+authz_dbm - Group authorization using DBM files
+authz_default - Authorization fallback module
+authz_groupfile - Group authorization using plaintext files
+authz_host - Group authorizations based on host (name or IP address)
+authz_owner - Authorization based on file ownership
+authz_user - User Authorization
+autoindex - Generates directory indexes, automatically, similar to the Unix ls command
+cache - Content cache keyed to URIs
+cern_meta - CERN httpd metafile semantics
+charset_lite - Specify character set translation or recoding
+cgi - Enable CGI module (used by non-multithreaded MPMs, for eg. prefork)
+cgid - Enable CGI module (used by multithreaded MPMs, for eg. worker)
+dav - Distributed Authoring and Versioning (WebDAV) functionality
+dav_fs - filesystem provider for mod_dav
+dav_lock - generic locking module for mod_dav
+dbd - Manages SQL database connections
+deflate - Compress content before it is delivered to the client
+dir - Provides for "trailing slash" redirects and serving directory index files
+disk_cache - Content cache storage manager keyed to URIs
+dumpio - Dumps all I/O to error log as desired
+env - Modifies the environment which is passed to CGI scripts and SSI pages
+expires - Generation of Expires and Cache-Control HTTP headers according to user-specified criteria
+ext_filter - Pass the response body through an external program before delivery to the client
+file_cache - Caches a static list of files in memory
+filter - Context-sensitive smart filter configuration module
+headers - Customization of HTTP request and response headers
+ident - RFC 1413 ident lookups
+imagemap - Server-side imagemap processing
+include - Server-parsed html documents (Server Side Includes)
+info - Provides a comprehensive overview of the server configuration
+log_config - Logging of the requests made to the server
+log_forensic - Forensic Logging of the requests made to the server
+logio - Logging of input and output bytes per request
+lua - aaa
+mem_cache - Content cache keyed to URIs
+mime - Associates the requested filename's extensions with the file's behavior (handlers and filters) and content (mime-type, language, character set and encoding)
+mime_magic - Determines the MIME type of a file by looking at a few bytes of its contents
+negotiation - Provides for content negotiation
+proxy - HTTP/1.1 proxy/gateway server
+proxy_ajp - AJP support module for mod_proxy
+proxy_balancer - mod_proxy extension for load balancing
+proxy_connect - mod_proxy extension for CONNECT request handling
+proxy_ftp - FTP support module for mod_proxy
+proxy_http - HTTP support module for mod_proxy
+proxy_scgi - SCGI gateway module for mod_proxy
+rewrite - Provides a rule-based rewriting engine to rewrite requested URLs on the fly
+reqtimeout - Set timeout and minimum data rate for receiving requests
+setenvif - Allows the setting of environment variables based on characteristics of the request
+speling - Attempts to correct mistaken URLs that users might have entered by ignoring capitalization and by allowing up to one misspelling
+status - Provides information on server activity and performance
+substitute - Perform search and replace operations on response bodies
+unique_id - Provides an environment variable with a unique identifier for each request
+userdir - User-specific directories
+usertrack - Clickstream logging of user activity on a site
+version - Version dependent configuration
+vhost_alias - Provides for dynamically configured mass virtual hosting

+ 12 - 0
profiles/desc/apache2_mpms.desc

@@ -0,0 +1,12 @@
+# Copyright 2007 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/profiles/desc/apache2_mpms.desc,v 1.1 2007/11/28 07:50:44 hollow Exp $
+
+# This file contains descriptions of APACHE2_MPMS USE_EXPAND flags.
+
+# Keep it sorted.
+event - An experimental variant of the standard worker MPM
+itk - Allows to run each virtual host under a separate uid and gid
+peruser - Peruser is a working implementation of the perchild MPM allowing to run each apache child process as its own user and group, each handling its own set of virtual hosts
+prefork - Implements a non-threaded, pre-forking web server
+worker - Multi-Processing Module implementing a hybrid multi-threaded multi-process web server

+ 1 - 0
profiles/eapi

@@ -0,0 +1 @@
+4

+ 1 - 0
profiles/license_groups

@@ -0,0 +1 @@
+EULA  Cisco_EULA EULA JUNGLE_DISK SMLABS-EULA Samsung-EULA

+ 0 - 0
profiles/package.mask


+ 1 - 0
profiles/repo_name

@@ -0,0 +1 @@
+ejabberd

+ 111 - 0
profiles/use.local.desc

@@ -0,0 +1,111 @@
+# This file is deprecated as per GLEP 56 in favor of metadata.xml. Please add
+# your descriptions to your package's metadata.xml ONLY.
+# * generated automatically using egencache *
+
+app-admin/openwbem:association-traversal - 
+app-admin/openwbem:cmpi - 
+app-admin/openwbem:digest - 
+app-admin/openwbem:valgrind - 
+app-misc/a4tool:battery - Enable battery level notifications using x11-libs/libnotify
+app-text/myrulib:links - Include links to the online collections
+app-text/myrulib:reader - Enable internal Cool Reader engine
+app-text/qstardict:plugin_stardict - build stardict plugin
+app-text/qstardict:plugin_swac - 
+app-text/qstardict:plugin_web - build web plugin
+dev-db/spatialite:geos - Add the sci-libs/geos library for exact topological tests
+dev-db/spatialite:proj - Add the sci-libs/proj library for reprojection features
+dev-db/spatialite:xls - Add the dev-libs/freexl library for xls import support
+dev-python/rcore:sql - Install required dependencies to work database
+dev-vcs/mercurial:bugzilla - Support bugzilla integration.
+dev-vcs/mercurial:gpg - Support signing with GnuPG.
+dev-vcs/mercurial:tk - Install dev-lang/tk for hgk script.
+mail-filter/milter-greylist:bind - Use net-dns/bind-tools resolver instead glibc resolver
+mail-filter/milter-greylist:dnsrbl - Add dnsrbl blacklist support
+mail-filter/milter-greylist:ldap - Build witch openldap support
+mail-filter/milter-greylist:p0f - Add support for OS type detection's. Usenet-analyzer/p0f
+mail-filter/milter-greylist:postfix - Add support for mail-mta/postfix MTA
+mail-filter/milter-greylist:sendmail - Add support for mail-mta/sendmail MTA
+mail-filter/milter-greylist:spamassassin - Add spamassasin plugin
+mail-filter/milter-greylist:spf - Add Sender Policy Framework support
+mail-filter/policyd:webinterface - 
+media-libs/mediastreamer:amr - Use of AMR Narrow Band codec plugin
+media-libs/mediastreamer:filters - Enable compilation of filters
+media-libs/mediastreamer:g726 - Support g726 codec
+media-libs/mediastreamer:g729 - Use g726 codec plugin
+media-libs/mediastreamer:ilbc - Use of iLBC (RFC3951) codec plugin
+media-libs/mediastreamer:ntp-timestamp - Turn on NTP timestamping on received packet
+media-libs/mediastreamer:opus - Enable opus codec support
+media-libs/mediastreamer:ortp - Enable usage of net-libs/ortp
+media-libs/mediastreamer:pcap - Enable usage of net-libs/libpcap
+media-libs/mediastreamer:silk - Use silk (skype protocol) codec plugin
+media-libs/mediastreamer:video - Enable video support
+media-sound/qomp:lastfmplugin - Last.FM plugin
+media-sound/qomp:mprisplugin - MPRIS plugin
+media-sound/qomp:myzukaruplugin - myzuka.ru plugin
+media-sound/qomp:notificationsplugin - notifications plugin
+media-sound/qomp:prostopleerplugin - Prosto Pleer plugin
+media-sound/qomp:tunetofileplugin - Tune To File plugin
+media-sound/qomp:urlplugin - URL Plugin
+media-sound/qomp:yandexmusicplugin - Yandex.Music plugin
+net-dialup/xl2tpd:dnsretry - Patch for host lookup retries, activated by redial feature
+net-dialup/xl2tpd:kernel - Enable kernel interface for PPPoL2TP
+net-im/psi:enchant - Use enchant spell engine instead of aspell
+net-im/psi:extras - Enables extra non official patches
+net-im/psi:iconsets - Install additional iconsets, some of them has not clear licensing
+net-im/psi:plugins - Enable plugins support
+net-im/psi:sql - Enable psi-new-history extras patch
+net-im/psi:webkit - Enable chatlog rendering using webkit
+net-im/psi:whiteboarding - Enable experimental interactive SVG drawing
+net-im/psi-plugins-meta:attention - Enable plugin for making attention (XEP-0224)
+net-im/psi-plugins-meta:autoreply - Enable autoreply plugin.
+net-im/psi-plugins-meta:birthdayreminder - Enable plugin to remind contact's birthdays
+net-im/psi-plugins-meta:captchaforms - Enable plugin to show MUC's captcha
+net-im/psi-plugins-meta:chess - Enable plugin to play chess with your friends
+net-im/psi-plugins-meta:cleaner - Enable profile cleaner plugin.
+net-im/psi-plugins-meta:conferencelogger - Enable plugin which saves logs of conferences
+net-im/psi-plugins-meta:contentdownloader - Enable plugin for downloading extras
+net-im/psi-plugins-meta:extendedmenu - 
+net-im/psi-plugins-meta:extendedoptions - Enable plugin for UI for some hidden options
+net-im/psi-plugins-meta:gmailservice - Enable Gmail Service plugin for psi
+net-im/psi-plugins-meta:historykeeper - Enable plugin to keep certain contacts history clean
+net-im/psi-plugins-meta:icqdie - Enable "ICQDie!!" plugin.
+net-im/psi-plugins-meta:image - Enable plugin for sending in-band images
+net-im/psi-plugins-meta:juick - Enable plugin for juick.com service
+net-im/psi-plugins-meta:otr - 
+net-im/psi-plugins-meta:pepchangenotify - 
+net-im/psi-plugins-meta:psto - s
+net-im/psi-plugins-meta:qipxstatuses - Enable QIP xStatus reader plugin
+net-im/psi-plugins-meta:screenshot - Enable plugin to quickly make screenshots
+net-im/psi-plugins-meta:skins - Enable skins plugin.
+net-im/psi-plugins-meta:stopspam - Enable plugin for spam blocking
+net-im/psi-plugins-meta:storagenotes - Enable plugin for Jabber notes protocol extension
+net-im/psi-plugins-meta:translate - Enable Translate plugin
+net-im/psi-plugins-meta:videostatus - Enable plugin for settings some status during video watching
+net-im/psi-plugins-meta:watcher - Emanable plugin for sending in-band images
+net-im/psi-skins:themes - Pull in themes via net-im/psi-skins-themes
+net-im/psimedia:demo - Build simple test application for the PsiMedia system
+net-im/psimedia:extras - Enables extra non official patches
+net-im/spectrum:staticport - Install spectrum tools
+net-im/spectrum:symlinks - Make symlinks for configuration files of all protocols to one file
+net-im/spectrum:tools - Install spectrum tools
+net-libs/ortp:ntp-timestamp - Turn on NTP timestamping on received packet
+net-libs/ortp:srtp - Add support for Secure RTP
+net-libs/ortp:zrtp - Add support for ZRTP key negotiation
+sci-geosciences/qgis:grass - Add support for sci-geosciences/grass
+sci-geosciences/qgis:mapserver - Determines whether mapserver should be built
+sys-apps/hasp:demo - Install demo binaries
+sys-apps/hasp:lpt - Install kernel module for LPT-keys
+sys-apps/hasp:net_hasp - Install binaries for use HASP-keys on network
+sys-apps/hasp:wine - Install winehasp binary and init-script
+sys-apps/openwsman:cim - 
+sys-apps/openwsman:eventing - 
+sys-apps/openwsman:plugins - 
+sys-apps/openwsman:server - 
+sys-apps/sblim-gather:base - 
+sys-apps/sblim-gather:libvirt - 
+sys-apps/sblim-gather:provider - 
+www-apps/ctpp2:md5 - 
+x11-themes/elementary-icon-theme:monochrome - Monochrome addon for opaque light panels
+x11-themes/qtcurve:kde - Enable KDE4 support. This adds a QtCurve configuration module to KDE's SystemSettings
+x11-themes/qtcurve:kf5 - Enable KDE Frameworks 5 support
+x11-themes/qtcurve:windeco - Enable window decoration for KWin