milis/talimatname/genel/s/sshuttle/talimat

30 lines
724 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: tcp paketleri ssh üzerinde yönlendiren şeffaf vekil sunucu
# URL: https://github.com/sshuttle/sshuttle
# Paketçi: milisarge
# Gerekler: python3 python3-setuptools iptables net-tools libffi
# Grup: ağ
isim=sshuttle
hesap=sshuttle
surum=0.78.2
devir=1.0
kaynak=(prefixes.conf
tunnel.conf)
derle() {
if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
git clone https://github.com/$hesap/$isim $DERLEME_KAYNAKDIZIN/$isim
else
cd $DERLEME_KAYNAKDIZIN/$isim
git pull
cd -
fi
cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/
cd $SRC/$isim
python3 setup.py build
python3 setup.py install --root="$PKG" -O1
install -d "$PKG/etc/sshuttle"
install -m644 "$SRC"/{tunnel.conf,prefixes.conf} "$PKG/etc/sshuttle"
}