void-packages/srcpkgs/sslh/template

30 lines
829 B
Bash
Raw Normal View History

2015-07-20 09:12:23 +02:00
# Template file for 'sslh'
pkgname=sslh
version=1.17
2015-08-13 20:44:00 +02:00
revision=2
build_pie=yes
hostmakedepends="perl"
2015-08-13 20:44:00 +02:00
makedepends="pcre-devel libconfig-devel libcap-devel"
2015-07-20 09:12:23 +02:00
short_desc="Applicative Protocol Multiplexer"
maintainer="Markus Berger <pulux@pf4sh.de>"
license="GPL-2"
homepage="http://www.rutschle.net/tech/sslh"
distfiles="https://github.com/yrutschle/sslh/archive/v${version}.tar.gz"
checksum=b557c3bf75289d203353c25d92e34549a22f64510c48f7748c1c027748d51ad1
do_build() {
2015-07-20 09:12:23 +02:00
sed -i 's|^MAN=sslh.8.gz|MAN=sslh.8|g' Makefile
sed -i 's|sbin|bin|g' Makefile
sed -i 's|sslh.pod \| gzip -9 - > $(MAN)|sslh.pod > $(MAN)|g' Makefile
2015-08-13 20:44:00 +02:00
make CC=$CC ENABLE_REGEX=1 USELIBPCRE=1 USELIBCONFIG=1 USELIBCAP=1
2015-07-20 09:12:23 +02:00
}
do_install() {
make DESTDIR=${DESTDIR} PREFIX=/usr install
2015-07-20 09:12:23 +02:00
vman sslh.8
vsv sslh
for f in *.cfg; do
vdoc ${f}
done
vdoc README.md
}