aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/prosody/template
blob: 261ca776c1f36bc2d3a5be6d1be5bfbc4e322485 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Template file for 'prosody'
pkgname=prosody
version=0.12.4
revision=1
build_style=configure
configure_args="
 --ostype=linux
 --prefix=/usr
 --no-example-certs
 --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
 --with-lua=${XBPS_CROSS_BASE}/usr
 --lua-version=5.4
 --lua-suffix=5.4
 --runwith=lua5.4"
conf_files="
 /etc/prosody/prosody.cfg.lua
 /etc/prosody/certs/localhost.cnf
 /etc/prosody/certs/openssl.cnf
 /etc/prosody/certs/makefile
 /etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856

system_accounts="prosody"
prosody_homedir="/var/lib/prosody"

case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS="-DWITHOUT_MALLINFO" ;;
esac

post_configure() {
	vsed -e "/^CFLAGS=/s|$| ${CFLAGS}|" \
		-e "s|^CC=.*|CC=${CC}|" \
		-e 's|^LD=.*|LD=${CC}|' \
		-i config.unix
}
pre_build() {
	cp -f ${FILESDIR}/prosody.cfg.lua prosody.cfg.lua.dist
}
post_install() {
	vsv prosody
	vlicense COPYING
}