void-packages/srcpkgs/dante/template
Érico Rolim 54aec287ec dante: fix runtime on musl.
musl implements the sched_{set,get}scheduler functions as stubs.
Unfortunately, dante fails if the functions are available but return an
error, which is always the case for musl. Force it to think setscheduler
isn't available (var appropriated from Alpine).

Fixes #28180
2021-01-25 16:15:30 -03:00

26 lines
641 B
Bash

# Template file for 'dante'
pkgname=dante
version=1.4.2
revision=4
build_style=gnu-configure
hostmakedepends="tar automake libtool"
short_desc="SOCKS server and client"
maintainer="shtayerc <david.murko@mailbox.org>"
license="MIT-CMU"
homepage="http://www.inet.no/dante/index.html"
distfiles="http://www.inet.no/dante/files/dante-${version}.tar.gz"
checksum=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
configure_args="--with-libc=libc.so.6"
else
configure_args="ac_cv_func_sched_setscheduler=no"
fi
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense LICENSE
}