sshuttle: fix permissions
All files in the tarball have bad permissions. While I'm here: - needs setuptools for the entry point - license is LGPL-2.1-or-later - no need to vlicense (L)GPL
This commit is contained in:
parent
e278a4eb60
commit
232a5527fe
@ -1,30 +1,29 @@
|
|||||||
# Template file for 'sshuttle'
|
# Template file for 'sshuttle'
|
||||||
pkgname=sshuttle
|
pkgname=sshuttle
|
||||||
version=0.78.4
|
version=0.78.4
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
pycompile_module="sshuttle"
|
pycompile_module="sshuttle"
|
||||||
hostmakedepends="python3-setuptools python3-Sphinx"
|
hostmakedepends="python3-setuptools python3-Sphinx"
|
||||||
depends="python3 iptables"
|
depends="python3-setuptools iptables"
|
||||||
short_desc="Transparent proxy server that forwards TCP packets over ssh"
|
short_desc="Transparent proxy server that forwards TCP packets over ssh"
|
||||||
maintainer="Daniel Santana <daniel@santana.tech>"
|
maintainer="Daniel Santana <daniel@santana.tech>"
|
||||||
license="LGPL-2"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="https://github.com/sshuttle/sshuttle"
|
homepage="https://github.com/sshuttle/sshuttle"
|
||||||
distfiles="${PYPI_SITE}/s/sshuttle/sshuttle-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/s/sshuttle/sshuttle-${version}.tar.gz"
|
||||||
checksum=30c1d8f62486b3eb7f565f00a75e0ffc7166af9a88da87cd8338b3d3e620135f
|
checksum=30c1d8f62486b3eb7f565f00a75e0ffc7166af9a88da87cd8338b3d3e620135f
|
||||||
|
|
||||||
post_extract() {
|
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)
|
# BUG: wrong permissions (https://github.com/sshuttle/sshuttle/issues/217)
|
||||||
rm -r sshuttle.egg-info
|
chmod -R go+rX .
|
||||||
}
|
}
|
||||||
|
|
||||||
post_build() {
|
|
||||||
cd docs
|
|
||||||
make man
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
make -C docs man
|
||||||
vman docs/_build/man/sshuttle.1
|
vman docs/_build/man/sshuttle.1
|
||||||
vlicense LICENSE
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user