milis/talimatname/genel/s/sshuttle/talimat

29 lines
712 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: tcp paketleri ssh üzerinde yönlendiren şeffaf vekil sunucu
2017-06-18 00:51:26 +02:00
# URL: https://github.com/sshuttle/sshuttle
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: python3 python3-setuptools iptables net-tools libffi
2017-06-18 00:51:26 +02:00
2017-10-28 14:10:23 +02:00
isim=sshuttle
2017-06-18 00:51:26 +02:00
hesap=sshuttle
2017-10-28 14:10:23 +02:00
surum=0.78.2
devir=1.0
kaynak=(prefixes.conf
2017-06-18 00:51:26 +02:00
tunnel.conf)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
git clone https://github.com/$hesap/$isim $DERLEME_KAYNAKDIZIN/$isim
2017-06-18 00:51:26 +02:00
else
2017-10-28 14:10:23 +02:00
cd $DERLEME_KAYNAKDIZIN/$isim
2017-06-18 00:51:26 +02:00
git pull
cd -
fi
2017-10-28 14:10:23 +02:00
cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/
cd $SRC/$isim
2017-06-18 00:51:26 +02:00
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"
}