30 lines
870 B
Bash
30 lines
870 B
Bash
# Template file for 'sshuttle'
|
|
pkgname=sshuttle
|
|
version=0.78.5
|
|
revision=1
|
|
noarch=yes
|
|
build_style=python3-module
|
|
pycompile_module="sshuttle"
|
|
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"
|
|
distfiles="${PYPI_SITE}/s/sshuttle/sshuttle-${version}.tar.gz"
|
|
checksum=a88b59bd9a25510a6643451ec2d5fc35e149098a6a7fafdf37957498791fe16e
|
|
|
|
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
|
|
}
|