void-packages/srcpkgs/monkey/template
2016-03-28 02:18:09 -04:00

52 lines
1.5 KiB
Bash

# Template file for 'monkey'
pkgname=monkey
version=1.6.8
revision=1
build_style=configure
hostmakedepends="cmake"
makedepends="mbedtls-devel"
configure_args+="--prefix=/usr --sbindir=/usr/bin --libdir=/usr/lib "
configure_args+="--sysconfdir=/etc/monkey/ --enable-plugins=mbedtls "
configure_args+="--webroot=/srv/httpd --mandir=/usr/share/man "
configure_args+="--pidfile=/var/run/monkey.pid --logdir=/var/log/monkey "
configure_args+="--malloc-libc --default-user=httpd "
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=936aa276d11dea77cda2703eb5d1b89ede1cf8d44440e1ec029cafb10effb3cf
make_dirs="
/var/log/monkey 0755 root httpd
/srv/httpd/htdocs 0755 root httpd"
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="httpd"
httpd_descr="Monkey HTTP server"
httpd_homedir="/srv/httpd"
case $XBPS_TARGET_MACHINE in
*-musl) configure_args+="--musl-mode --no-backtrace ";;
esac
post_install() {
vmkdir usr/share/monkey/htdocs
mv ${DESTDIR}/srv/httpd/* ${DESTDIR}/usr/share/monkey/htdocs
vsv monkey
}
monkey-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}