1 |
commit: 8152eb0f238d49407a6c567f76a67f19f3a5b173 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 13 17:07:24 2022 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 13 17:07:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8152eb0f |
7 |
|
8 |
net-im/prosody: add 0.11.12 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/831140 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
net-im/prosody/Manifest | 1 + |
14 |
net-im/prosody/prosody-0.11.12.ebuild | 102 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 103 insertions(+) |
16 |
|
17 |
diff --git a/net-im/prosody/Manifest b/net-im/prosody/Manifest |
18 |
index 3a2882c40b55..d04f6a5349f4 100644 |
19 |
--- a/net-im/prosody/Manifest |
20 |
+++ b/net-im/prosody/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST prosody-0.11.10.tar.gz 438888 BLAKE2B 590f97f4eb8a333701eca516de3c3bcee9cf093267d2000af03b48d32396a1be21a0cf2f8ff542e7fbcb8419138bab5cf411f71b17666593559004a8a9674367 SHA512 419d8f8465f1807015f0a52d8f35ee89892b0869084dae38b60fc833d63c3d70892d8e59ae00039cd15e0e25f46d042954896f51f8c0520650a877f5296707cb |
23 |
DIST prosody-0.11.11.tar.gz 439395 BLAKE2B d9662ff9e5a767aaee86c2b0762249c702e755191359ee276f37019ac98fab52d75a23590f0c3a14f3bfde356cc2bd9802e842e1f1a7ea5da8ec3d034fa028a0 SHA512 eb9851e1b279bef894d556ca6bc6210d1cd55e0c02a9d475f74e6e6b4a2dfef704fd3de77b71cff97909925c48c60940c34cfb541e6f3801e23e90ea21d119a9 |
24 |
+DIST prosody-0.11.12.tar.gz 439656 BLAKE2B 593bb24d7e84ed337e8d8a11b387ac50abd27ea62be0fd18e8c8441472c09565a6603ccb070250b620b3f50f4d1e33fad579f988e68250c083b8a9aa25a8e03b SHA512 cd03ee8b02ffaa478b5329d9942d833cfed2d8bf720bf580a2082d681e7d333bc34f45041cea7234bee75f1a0e7c07983a685fe2ac9b31d51a0dbb36e87ba5d2 |
25 |
|
26 |
diff --git a/net-im/prosody/prosody-0.11.12.ebuild b/net-im/prosody/prosody-0.11.12.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..9a4dc0782f50 |
29 |
--- /dev/null |
30 |
+++ b/net-im/prosody/prosody-0.11.12.ebuild |
31 |
@@ -0,0 +1,102 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+LUA_COMPAT=( lua5-{1..3} luajit ) |
38 |
+LUA_REQ_USE="deprecated(+)" |
39 |
+ |
40 |
+inherit lua-single systemd tmpfiles toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="Prosody is a modern XMPP communication server" |
43 |
+HOMEPAGE="https://prosody.im/" |
44 |
+SRC_URI="https://prosody.im/downloads/source/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
49 |
+IUSE="icu +idn +libevent mysql postgres selinux +sqlite +ssl test +zlib" |
50 |
+REQUIRED_USE=" |
51 |
+ ^^ ( icu idn ) |
52 |
+ ${LUA_REQUIRED_USE} |
53 |
+" |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+DEPEND=" |
57 |
+ $(lua_gen_cond_dep 'dev-lua/luaexpat[${LUA_USEDEP}]') |
58 |
+ $(lua_gen_cond_dep 'dev-lua/luafilesystem[${LUA_USEDEP}]') |
59 |
+ $(lua_gen_cond_dep 'dev-lua/luasocket[${LUA_USEDEP}]') |
60 |
+ net-im/jabber-base |
61 |
+ icu? ( dev-libs/icu:= ) |
62 |
+ idn? ( net-dns/libidn:= ) |
63 |
+ libevent? ( $(lua_gen_cond_dep 'dev-lua/luaevent[${LUA_USEDEP}]') ) |
64 |
+ dev-libs/openssl:0= |
65 |
+ lua_single_target_lua5-1? ( $(lua_gen_cond_dep 'dev-lua/lua-bit32[lua_targets_lua5-1(-)]') ) |
66 |
+ mysql? ( $(lua_gen_cond_dep 'dev-lua/luadbi[mysql,${LUA_USEDEP}]') ) |
67 |
+ postgres? ( $(lua_gen_cond_dep 'dev-lua/luadbi[postgres,${LUA_USEDEP}]') ) |
68 |
+ sqlite? ( $(lua_gen_cond_dep 'dev-lua/luadbi[sqlite,${LUA_USEDEP}]') ) |
69 |
+ ssl? ( $(lua_gen_cond_dep 'dev-lua/luasec[${LUA_USEDEP}]') ) |
70 |
+ zlib? ( $(lua_gen_cond_dep 'dev-lua/lua-zlib[${LUA_USEDEP}]') ) |
71 |
+ ${LUA_DEPS} |
72 |
+" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ ${DEPEND} |
76 |
+ selinux? ( sec-policy/selinux-jabber ) |
77 |
+" |
78 |
+ |
79 |
+BDEPEND=" |
80 |
+ virtual/pkgconfig |
81 |
+ test? ( $(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]') ) |
82 |
+" |
83 |
+ |
84 |
+PATCHES=( "${FILESDIR}/${PN}-0.11.7-gentoo.patch" ) |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ |
89 |
+ # Set correct plugin path for optional net-im/prosody-modules package |
90 |
+ sed -e "s/GENTOO_LIBDIR/$(get_libdir)/g" -i prosody.cfg.lua.dist || die |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ local myeconfargs=( |
95 |
+ --add-cflags="${CFLAGS}" |
96 |
+ --add-ldflags="${LDFLAGS}" |
97 |
+ --c-compiler="$(tc-getCC)" |
98 |
+ --datadir="${EPREFIX}/var/spool/jabber" |
99 |
+ --idn-library="$(usex idn 'idn' 'icu')" |
100 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)" |
101 |
+ --linker="$(tc-getCC)" |
102 |
+ --lua-version="$(usex lua_single_target_luajit '5.1' $(ver_cut 1-2 $(lua_get_version)))" |
103 |
+ --no-example-certs |
104 |
+ --ostype="linux" |
105 |
+ --prefix="${EPREFIX}/usr" |
106 |
+ --runwith="${ELUA}" |
107 |
+ --sysconfdir="${EPREFIX}/etc/jabber" |
108 |
+ --with-lua-include="${EPREFIX}/$(lua_get_include_dir)" |
109 |
+ --with-lua-lib="${EPREFIX}/$(lua_get_cmod_dir)" |
110 |
+ ) |
111 |
+ |
112 |
+ # Since the configure script is handcrafted, |
113 |
+ # and yells at unknown options, do not use 'econf'. |
114 |
+ ./configure "${myeconfargs[@]}" || die |
115 |
+ |
116 |
+ rm makefile || die |
117 |
+ mv GNUmakefile Makefile || die |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ default |
122 |
+ |
123 |
+ keepdir /var/spool/jabber |
124 |
+ |
125 |
+ newinitd "${FILESDIR}"/prosody.initd-r5 prosody |
126 |
+ systemd_newunit "${FILESDIR}"/prosody.service-r2 prosody.service |
127 |
+ |
128 |
+ newtmpfiles "${FILESDIR}"/prosody.tmpfilesd-r1 prosody.conf |
129 |
+} |
130 |
+ |
131 |
+pkg_postinst() { |
132 |
+ tmpfiles_process prosody.conf |
133 |
+} |