void-packages/srcpkgs/monkey/template
2019-01-27 09:42:27 +01:00

50 lines
1.4 KiB
Bash

# Template file for 'monkey'
pkgname=monkey
version=1.6.9
revision=2
build_style=configure
configure_args="--prefix=/usr --sbindir=/usr/bin --libdir=/usr/lib
--sysconfdir=/etc/monkey/ --enable-plugins=mbedtls --malloc-libc
--webroot=/srv/www/$pkgname --mandir=/usr/share/man --default-user=_monkey
--pidfile=/var/run/monkey.pid --logdir=/var/log/monkey"
hostmakedepends="cmake"
makedepends="mbedtls-devel"
short_desc="Cross-arch embeddable lightweight HTTP server"
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
license="Apache-2.0"
homepage="http://monkey-project.com"
distfiles="${homepage}/releases/${version%.*}/${pkgname}-${version}.tar.gz"
checksum=f1122e89cda627123286542b0a18fcaa131cbe9d4f5dd897d9455157289148fb
conf_files="
/etc/monkey/plugins/*/*.conf
/etc/monkey/plugins/dirlisting/themes/*/*.theme
/etc/monkey/sites/default
/etc/monkey/monkey.conf
/etc/monkey/plugins.load
/etc/monkey/monkey.mime"
system_accounts="_monkey"
_monkey_homedir="/srv/www/_monkey"
make_dirs="
/srv/www/monkey 0755 _monkey _monkey
/var/log/monkey/htdocs 0755 _monkey _monkey"
case $XBPS_TARGET_MACHINE in
*-musl) configure_args+="--musl-mode --no-backtrace ";;
esac
post_install() {
vmkdir usr/share/monkey/webroot
mv ${DESTDIR}/srv/www/$pkgname/* ${DESTDIR}/usr/share/monkey/webroot
vsv monkey
}
monkey-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}