sslh: unbreak build and cross compilation (close #2052).

This commit is contained in:
Juan RP 2015-07-26 10:49:03 +02:00
parent 240ba787a1
commit e2e67362bb
1 changed files with 7 additions and 6 deletions

View File

@ -2,8 +2,9 @@
pkgname=sslh
version=1.17
revision=1
build_style=gnu-makefile
makedepends="libconfig-devel libcap-devel perl"
build_pie=yes
hostmakedepends="perl"
makedepends="libconfig-devel libcap-devel"
short_desc="Applicative Protocol Multiplexer"
maintainer="Markus Berger <pulux@pf4sh.de>"
license="GPL-2"
@ -11,14 +12,14 @@ homepage="http://www.rutschle.net/tech/sslh"
distfiles="https://github.com/yrutschle/sslh/archive/v${version}.tar.gz"
checksum=b557c3bf75289d203353c25d92e34549a22f64510c48f7748c1c027748d51ad1
pre_build() {
do_build() {
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
make CC=$CC USELIBCONFIG=1 USELIBCAP=1
}
post_install() {
do_install() {
make DESTDIR=${DESTDIR} PREFIX=/usr install
vman sslh.8
vsv sslh
for f in *.cfg; do