monkey: add musl-compilation support.
This commit is contained in:
parent
bdd0b38aab
commit
1eb0830df2
|
@ -1,14 +1,14 @@
|
||||||
# Template file for 'monkey'
|
# Template file for 'monkey'
|
||||||
pkgname=monkey
|
pkgname=monkey
|
||||||
version=1.5.6
|
version=1.5.6
|
||||||
revision=3
|
revision=4
|
||||||
build_style=configure
|
build_style=configure
|
||||||
makedepends="mbedtls-devel"
|
makedepends="mbedtls-devel"
|
||||||
configure_args+="--prefix=/usr --plugdir=/usr/share/monkey/plugins "
|
configure_args+="--prefix=/usr --plugdir=/usr/share/monkey/plugins "
|
||||||
configure_args+="--sysconfdir=/etc/monkey/ --enable-plugins=mbedtls "
|
configure_args+="--sysconfdir=/etc/monkey/ --enable-plugins=mbedtls "
|
||||||
configure_args+="--datadir=/srv/httpd --mandir=/usr/share/man "
|
configure_args+="--datadir=/srv/httpd --mandir=/usr/share/man "
|
||||||
configure_args+="--pidfile=/var/run/monkey.pid --logdir=/var/log/monkey "
|
configure_args+="--pidfile=/var/run/monkey.pid --logdir=/var/log/monkey "
|
||||||
configure_args+="--malloc-libc"
|
configure_args+="--malloc-libc "
|
||||||
short_desc="Cross-arch embeddable lightweight HTTP server"
|
short_desc="Cross-arch embeddable lightweight HTTP server"
|
||||||
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
|
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
|
||||||
license="APL-2.0"
|
license="APL-2.0"
|
||||||
|
@ -37,6 +37,11 @@ system_accounts="httpd"
|
||||||
httpd_descr="Monkey HTTP server"
|
httpd_descr="Monkey HTTP server"
|
||||||
httpd_homedir="/srv/httpd"
|
httpd_homedir="/srv/httpd"
|
||||||
|
|
||||||
|
case $XBPS_TARGET_MACHINE in
|
||||||
|
*-musl)
|
||||||
|
configure_args+="--musl-mode --no-backtrace " ;;
|
||||||
|
esac
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vmkdir usr/share/monkey/htdocs
|
vmkdir usr/share/monkey/htdocs
|
||||||
mv ${DESTDIR}/srv/httpd/* ${DESTDIR}/usr/share/monkey/htdocs
|
mv ${DESTDIR}/srv/httpd/* ${DESTDIR}/usr/share/monkey/htdocs
|
||||||
|
|
Loading…
Reference in New Issue