packages/net-im/prosody/prosody-0.8.2.exheres-0 (1822B) - raw
1 # Copyright 2011 Dan Callaghan <djc@djc.id.au>
2 # Distributed under the terms of the GNU General Public License v2
3
4 require systemd-service
5
6 SUMMARY="Flexible, lightweight XMPP server written in Lua"
7 DESCRIPTION="
8 Prosody is a modern flexible communications server for Jabber/XMPP written in Lua. It aims to be
9 easy to set up and configure, and light on resources. For developers it aims to be easy to extend
10 and give a flexible system on which to rapidly develop added functionality, or prototype new
11 protocols.
12 "
13 HOMEPAGE="http://prosody.im/"
14 DOWNLOADS="http://prosody.im/downloads/source/${PNV}.tar.gz"
15
16 LICENCES="MIT"
17 SLOT="0"
18 PLATFORMS="~amd64 ~x86"
19
20 DEPENDENCIES="
21 build+run:
22 dev-lang/lua[>=5.1]
23 dev-libs/openssl
24 net-dns/libidn
25 user/prosody
26 group/prosody
27 run:
28 dev-lua/luafilesystem[=1*]
29 dev-lua/luasocket[=2.0*]
30 dev-lua/luaexpat[=1.2*]
31 recommendation:
32 dev-lua/luasec[>=0.3.3] [[ description = [ This module is needed for SSL/TLS support. ] ]]
33 suggestion:
34 dev-lua/lua-zlib [[ description = [ This module is used for compressing XMPP streams when mod_compression is enabled. ] ]]
35 dev-lua/luadbi[>=0.5] [[ description = [ This module is used by mod_storage_sql for connecting to SQL databases. ] ]]
36 "
37
38 BUGS_TO="djc@djc.id.au"
39
40 DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/${PNV}-enable-posix.patch" )
41
42 src_configure() {
43 # not real autoconf, so can't use econf
44 edo ./configure --prefix=/usr \
45 --sysconfdir=/etc/prosody \
46 --datadir=/var/lib/prosody \
47 --with-lua-include=/usr/include/lua5.1 \
48 --require-config
49 }
50
51 src_install() {
52 default
53 install_systemd_files
54 edo chown prosody:prosody "${IMAGE}/var/lib/prosody"
55 keepdir /var/lib/prosody
56 }
57