Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/prosody/files/, net-im/prosody/
Date: Fri, 23 Oct 2020 15:45:59
Message-Id: 1603467911.363d4260585fe701da73df093bec4dd8a2fc4d72.conikost@gentoo
1 commit: 363d4260585fe701da73df093bec4dd8a2fc4d72
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 23 15:45:11 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 23 15:45:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=363d4260
7
8 net-im/prosody: drop old version
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.2
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 net-im/prosody/files/prosody.service-r1 | 13 -----
14 net-im/prosody/prosody-0.11.7-r1.ebuild | 96 ---------------------------------
15 2 files changed, 109 deletions(-)
16
17 diff --git a/net-im/prosody/files/prosody.service-r1 b/net-im/prosody/files/prosody.service-r1
18 deleted file mode 100644
19 index 608423869fd..00000000000
20 --- a/net-im/prosody/files/prosody.service-r1
21 +++ /dev/null
22 @@ -1,13 +0,0 @@
23 -[Unit]
24 -Description=Prosody XMPP server
25 -After=network.target
26 -
27 -[Service]
28 -Group=jabber
29 -PIDFile=/run/jabber/prosody.pid
30 -ExecStart=/usr/bin/prosody
31 -ExecReload=/usr/bin/kill -HUP $MAINPID
32 -User=jabber
33 -
34 -[Install]
35 -WantedBy=multi-user.target
36
37 diff --git a/net-im/prosody/prosody-0.11.7-r1.ebuild b/net-im/prosody/prosody-0.11.7-r1.ebuild
38 deleted file mode 100644
39 index bdfb5f9d6c3..00000000000
40 --- a/net-im/prosody/prosody-0.11.7-r1.ebuild
41 +++ /dev/null
42 @@ -1,96 +0,0 @@
43 -# Copyright 1999-2020 Gentoo Authors
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI=7
47 -
48 -inherit systemd tmpfiles toolchain-funcs
49 -
50 -DESCRIPTION="Prosody is a modern XMPP communication server"
51 -HOMEPAGE="https://prosody.im/"
52 -SRC_URI="https://prosody.im/downloads/source/${P}.tar.gz"
53 -
54 -LICENSE="MIT"
55 -SLOT="0"
56 -KEYWORDS="~amd64 ~arm ~arm64 ~x86"
57 -IUSE="+libevent libressl luajit mysql postgres +sqlite +ssl test +zlib"
58 -RESTRICT="!test? ( test )"
59 -
60 -COMMON_DEPEND="
61 - || (
62 - >=dev-lang/lua-5.2:*
63 - dev-lua/lua-bit32
64 - )
65 - net-dns/libidn
66 - net-im/jabber-base
67 - libressl? ( dev-libs/libressl:= )
68 - !libressl? ( dev-libs/openssl:0= )
69 - luajit? ( dev-lang/luajit:2 )
70 - !luajit? ( dev-lang/lua:0 )
71 -"
72 -
73 -DEPEND="
74 - ${COMMON_DEPEND}
75 - test? ( dev-lua/busted )
76 -"
77 -
78 -RDEPEND="
79 - ${COMMON_DEPEND}
80 - dev-lua/luaexpat
81 - dev-lua/luafilesystem
82 - dev-lua/luasocket
83 - libevent? ( dev-lua/luaevent )
84 - mysql? ( dev-lua/luadbi[mysql] )
85 - postgres? ( dev-lua/luadbi[postgres] )
86 - sqlite? ( dev-lua/luadbi[sqlite] )
87 - ssl? ( dev-lua/luasec )
88 - zlib? ( dev-lua/lua-zlib )
89 -"
90 -
91 -PATCHES=(
92 - "${FILESDIR}/${PN}-0.11.7-bit32.patch"
93 - "${FILESDIR}/${PN}-0.11.7-gentoo.patch"
94 -)
95 -
96 -src_prepare() {
97 - default
98 -
99 - # Set correct plugin path for optional net-im/prosody-modules package
100 - sed -e "s/GENTOO_LIBDIR/$(get_libdir)/g" -i prosody.cfg.lua.dist || die
101 -}
102 -
103 -src_configure() {
104 - local myeconfargs=(
105 - --c-compiler="$(tc-getCC)"
106 - --datadir="${EPREFIX}/var/spool/jabber"
107 - --libdir="${EPREFIX}/usr/$(get_libdir)"
108 - --linker="$(tc-getCC)"
109 - --ostype="linux"
110 - --prefix="${EPREFIX}/usr"
111 - --runwith="$(usex luajit luajit lua)"
112 - --sysconfdir="${EPREFIX}/etc/jabber"
113 - --with-lua-include="${EPREFIX}/usr/include"
114 - --with-lua-lib="${EPREFIX}/usr/$(get_libdir)/lua"
115 - )
116 -
117 - # Since the configure script is handcrafted,
118 - # and yells at unknown options, do not use 'econf'.
119 - ./configure ${myeconfargs[@]} --cflags="${CFLAGS} -Wall -fPIC" --ldflags="${LDFLAGS} -shared" || die
120 -
121 - rm makefile || die
122 - mv GNUmakefile Makefile || die
123 -}
124 -
125 -src_install() {
126 - default
127 -
128 - newinitd "${FILESDIR}"/prosody.initd-r4 prosody
129 - systemd_newunit "${FILESDIR}"/prosody.service-r1 prosody.service
130 -
131 - newtmpfiles "${FILESDIR}"/prosody.tmpfilesd-r1 prosody.conf
132 -
133 - keepdir /var/spool/jabber
134 -}
135 -
136 -pkg_postinst() {
137 - tmpfiles_process prosody.conf
138 -}