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/, net-im/prosody/files/
Date: Sat, 10 Oct 2020 15:57:39
Message-Id: 1602345444.b157445544afceac7905ee55300b3b02735523e1.conikost@gentoo
1 commit: b157445544afceac7905ee55300b3b02735523e1
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 15:57:13 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 15:57:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1574455
7
8 net-im/prosody: drop old version
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 net-im/prosody/files/prosody.initd-r3 | 46 --------------------
14 net-im/prosody/prosody-0.11.7.ebuild | 79 -----------------------------------
15 2 files changed, 125 deletions(-)
16
17 diff --git a/net-im/prosody/files/prosody.initd-r3 b/net-im/prosody/files/prosody.initd-r3
18 deleted file mode 100644
19 index 3126cc8e1e2..00000000000
20 --- a/net-im/prosody/files/prosody.initd-r3
21 +++ /dev/null
22 @@ -1,46 +0,0 @@
23 -#!/sbin/openrc-run
24 -# Copyright 1999-2020 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -description="Prosody is a server for Jabber/XMPP written in Lua."
28 -description_reload="Reload configuration and reopen log files."
29 -extra_started_commands="reload"
30 -pidfile="/var/run/jabber/prosody.pid"
31 -
32 -depend() {
33 - need net
34 - provide jabber-server
35 - use dns postgresql
36 -}
37 -
38 -checkconfig() {
39 - if [ ! -e /etc/jabber/prosody.cfg.lua ] ; then
40 - eerror "You need a /etc/jabber/prosody.cfg.lua file to run prosody"
41 - return 1
42 - fi
43 - luac -p /etc/jabber/prosody.cfg.lua
44 - return $?
45 -}
46 -
47 -start() {
48 - checkconfig || return 1
49 - checkpath -q -d -m 0770 -o jabber:jabber "$(dirname ${pidfile})"
50 - checkpath -q -f -m 0770 -o jabber:jabber "${pidfile}"
51 - checkpath -q -d -m 0750 -o jabber:jabber /var/log/jabber
52 - ebegin "Starting Prosody XMPP Server"
53 - prosodyctl start
54 - eend $?
55 -}
56 -
57 -stop() {
58 - ebegin "Stopping Prosody XMPP Server"
59 - prosodyctl stop
60 - eend $?
61 -}
62 -
63 -reload() {
64 - checkconfig || return 1
65 - ebegin "Reloading configuration of Prosody XMPP Server"
66 - prosodyctl reload
67 - eend $?
68 -}
69
70 diff --git a/net-im/prosody/prosody-0.11.7.ebuild b/net-im/prosody/prosody-0.11.7.ebuild
71 deleted file mode 100644
72 index 041e5c27e52..00000000000
73 --- a/net-im/prosody/prosody-0.11.7.ebuild
74 +++ /dev/null
75 @@ -1,79 +0,0 @@
76 -# Copyright 1999-2020 Gentoo Authors
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -EAPI=7
80 -
81 -inherit systemd toolchain-funcs
82 -
83 -DESCRIPTION="Prosody is a flexible communications server for Jabber/XMPP written in Lua"
84 -HOMEPAGE="https://prosody.im/"
85 -SRC_URI="https://prosody.im/downloads/source/${P}.tar.gz"
86 -
87 -LICENSE="MIT"
88 -SLOT="0"
89 -KEYWORDS="~amd64 ~arm ~x86"
90 -IUSE="libevent libressl luajit mysql postgres sqlite ssl test zlib"
91 -RESTRICT="!test? ( test )"
92 -
93 -COMMON_DEPEND="
94 - dev-lua/LuaBitOp
95 - net-dns/libidn
96 - net-im/jabber-base
97 - libressl? ( dev-libs/libressl:= )
98 - !libressl? ( dev-libs/openssl:0= )
99 - luajit? ( dev-lang/luajit:2 )
100 - !luajit? ( dev-lang/lua:0 )
101 -"
102 -
103 -DEPEND="
104 - ${COMMON_DEPEND}
105 - test? ( dev-lua/busted )
106 -"
107 -
108 -RDEPEND="
109 - ${COMMON_DEPEND}
110 - ~dev-lua/luaexpat-1.3.0
111 - dev-lua/luafilesystem
112 - dev-lua/luasocket
113 - libevent? ( dev-lua/luaevent )
114 - mysql? ( dev-lua/luadbi[mysql] )
115 - postgres? ( dev-lua/luadbi[postgres] )
116 - sqlite? ( dev-lua/luadbi[sqlite] )
117 - ssl? ( dev-lua/luasec )
118 - zlib? ( dev-lua/lua-zlib )
119 -"
120 -
121 -PATCHES=( "${FILESDIR}/${PN}-0.11.2-r1-gentoo.patch" )
122 -
123 -src_configure() {
124 - local myeconfargs=(
125 - --c-compiler="$(tc-getCC)"
126 - --datadir="${EPREFIX}/var/spool/jabber"
127 - --libdir="${EPREFIX}/usr/$(get_libdir)"
128 - --linker="$(tc-getCC)"
129 - --ostype="linux"
130 - --prefix="${EPREFIX}/usr"
131 - --runwith="$(usex luajit luajit lua)"
132 - --sysconfdir="${EPREFIX}/etc/jabber"
133 - --with-lua-include="${EPREFIX}/usr/include"
134 - --with-lua-lib="${EPREFIX}/usr/$(get_libdir)/lua"
135 - )
136 -
137 - # Since the configure script is handcrafted,
138 - # and yells at unknown options, do not use 'econf'.
139 - ./configure ${myeconfargs[@]} --cflags="${CFLAGS} -Wall -fPIC" --ldflags="${LDFLAGS} -shared" || die
140 -
141 - rm makefile || die
142 - mv GNUmakefile Makefile || die
143 -}
144 -
145 -src_install() {
146 - emake DESTDIR="${D}" install
147 -
148 - keepdir /var/spool/jabber
149 -
150 - newinitd "${FILESDIR}"/prosody.initd-r3 prosody
151 -
152 - systemd_dounit "${FILESDIR}"/prosody.service
153 - systemd_newtmpfilesd "${FILESDIR}"/prosody.tmpfilesd prosody.conf
154 -}