49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Template file for 'prosody'
|
|
pkgname=prosody
|
|
version=0.10.3
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="
|
|
--ostype=linux
|
|
--prefix=/usr
|
|
--no-example-certs
|
|
--with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
|
|
--with-lua=${XBPS_CROSS_BASE}/usr
|
|
--lua-version=5.1
|
|
--lua-suffix=5.1
|
|
--runwith=lua5.1"
|
|
conf_files="
|
|
/etc/prosody/prosody.cfg.lua
|
|
/etc/prosody/certs/localhost.cnf
|
|
/etc/prosody/certs/openssl.cnf
|
|
/etc/prosody/certs/Makefile"
|
|
system_accounts="prosody"
|
|
prosody_homedir="/var/lib/prosody"
|
|
make_dirs="/var/lib/prosody 0755 prosody prosody"
|
|
makedepends="lua51-devel libressl-devel libidn-devel"
|
|
depends="luasocket luafilesystem luaexpat lua51-luasec lua51-BitOp"
|
|
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="MIT"
|
|
homepage="https://prosody.im/"
|
|
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
|
|
checksum=0c72e221aa0bb2e6cd990a3cff72ee28d3d519493915dadde0e8eebb0b3f1871
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) CFLAGS="-DWITHOUT_MALLINFO" ;;
|
|
esac
|
|
|
|
post_configure() {
|
|
sed -i -e "/^CFLAGS=/s|$| ${CFLAGS}|" \
|
|
-e "s|^CC=.*|CC=${CC}|" \
|
|
-e 's|^LD=.*|LD=${CC}|' \
|
|
config.unix
|
|
}
|
|
pre_build() {
|
|
cp -f ${FILESDIR}/prosody.cfg.lua prosody.cfg.lua.dist
|
|
}
|
|
post_install() {
|
|
vsv prosody
|
|
vlicense COPYING
|
|
}
|