void-packages/srcpkgs/sshuttle/template
2020-10-10 10:21:32 -04:00

29 lines
903 B
Bash

# Template file for 'sshuttle'
pkgname=sshuttle
version=1.0.4
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools python3-Sphinx"
depends="python3-setuptools iptables"
short_desc="Transparent proxy server that forwards TCP packets over ssh"
maintainer="Daniel Santana <daniel@santana.tech>"
license="LGPL-2.1-or-later"
homepage="https://github.com/sshuttle/sshuttle"
changelog="https://github.com/sshuttle/sshuttle/raw/master/CHANGES.rst"
distfiles="${PYPI_SITE}/s/sshuttle/sshuttle-${version}.tar.gz"
checksum=21a11f3f0f710de92241d8ffca58bebb969f689f650d59e97ba366d7407e16e5
post_extract() {
sed -i setup.py \
-e '/setup_requires=/d' \
-e '/use_scm_version/,+3d' \
-e "/name=/ a\
version='${version}',"
# BUG: wrong permissions (https://github.com/sshuttle/sshuttle/issues/217)
chmod -R go+rX .
}
post_install() {
make -C docs man
vman docs/_build/man/sshuttle.1
}