1 # Maintainer: H.Gökhan Sarı <th0th@returnfalse.net>
2 # Contributor: Victor Noel
3 pkgname=tunnelmanager-bzr
6 pkgdesc="Tunnel Manager allows users to easily manage a configurable list of SSH tunnels and their required keys."
8 url="https://launchpad.net/tunnelmanager"
10 depends=('python2' 'pygtk' 'iproute2')
12 provides=('tunnelmanager')
14 _bzrtrunk="https://launchpad.net/tunnelmanager/trunk"
15 _bzrmod="tunnelmanager"
19 msg "Connecting to Bazaar server...."
21 if [ -d $_bzrmod ] ; then
22 cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver}
23 msg "The local files are updated."
25 bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver}
28 msg "Bazaar checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_bzrmod-build"
32 cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
33 cd "$srcdir/$_bzrmod-build"
35 # fix default ip command
36 sed -i 's|/bin/ip|/usr/sbin/ip|' source/TunnelManager/Controller.py
40 cd "$srcdir/$_bzrmod-build/source/"
41 python2 setup.py install --root="$pkgdir/" --optimize=1