53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'prosody'
|
|
pkgname=prosody
|
|
version=0.12.1
|
|
revision=2
|
|
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
|
|
/etc/prosody/certs/GNUmakefile"
|
|
make_dirs="/var/lib/prosody 0755 prosody prosody"
|
|
makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
|
|
depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
|
|
lua51-BitOp"
|
|
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=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
|
|
|
|
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
|
|
}
|