void-packages/srcpkgs/tinyssh/template

33 lines
951 B
Bash
Raw Normal View History

2016-10-29 00:30:15 +02:00
# Template file for 'tinyssh'
pkgname=tinyssh
2017-01-10 16:55:05 +01:00
_datever=20161101
2016-10-29 00:30:15 +02:00
version="0.0.${_datever}"
revision=1
wrksrc=${pkgname}-${_datever}
build_style=gnu-makefile
make_dirs="/etc/tinyssh 0755 root root"
short_desc="A minimalistic SSH server"
maintainer="Christopher Brannon <chris@the-brannons.com>"
license="Public Domain"
depends="ucspi-tcp"
homepage="https://tinyssh.org"
distfiles="https://github.com/janmojzis/${pkgname}/archive/${_datever}.tar.gz"
2017-01-10 16:55:05 +01:00
checksum=4f0ef52631a057199d44855233e6491ec70f76c6d3183e6909558afbf77cb24e
2016-10-29 00:30:15 +02:00
nocross=yes
pre_build() {
echo '/usr/bin' > conf-bin
# Some of the tinyssh tests really shouldn't be run under xbps-src
# or on builders, so comment them all out.
# Build system needs a way to disable tests. Here's a dirty hack.
echo 'int main(void) { return 0; }' > cmbbogustest.c
for i in tinyssh-tests/*test.c crypto-tests/*test.c; do
cp cmbbogustest.c "$i"
done
}
post_install() {
vlicense LICENCE
vsv tinysshd
}