1 # Maintainer: Guten <ywzhaifei@gmail.com>
2 # Contributor: Liu Chang <goduck777@gmail.com>
7 pkgdesc="A http proxy based on GAppProxy."
9 url="http://code.google.com/p/wallproxy/"
11 depends=('python2' 'python2-pyopenssl')
12 conflicts=('wallproxy')
13 provides=('wallproxy')
17 md5sums=('b06d28e58fc2791c990638a943a82099'
18 '6f5192812ee5f5969964b5b6dae819f2'
19 'dd3287bc1f4b9f9feab55060d223ee65')
20 backup=('etc/wallproxy.conf')
22 _svntrunk="http://wallproxy.googlecode.com/svn/trunk/"
28 msg "Connecting to SVN server...."
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31 msg "SVN checkout done or server timeout"
32 msg "Starting make..."
33 svn export $_svnmod $_svnmod-build
40 sed -i -re "s|^(#!.*python)|\12|" local/*.py
41 chmod +x local/startup.py
43 mkdir -p $pkgdir/etc/rc.d
44 cp $startdir/daemon.wallproxy $pkgdir/etc/rc.d/wallproxy
46 mkdir -p $pkgdir/opt/wallproxy/
47 cp -R ./* $pkgdir/opt/wallproxy/
50 mv $pkgdir/opt/wallproxy/local/proxy.conf $pkgdir/etc/wallproxy.conf
51 ln -s $pkg/etc/wallproxy.conf $pkgdir/opt/wallproxy/local/proxy.conf
53 # make desktop shortcut
54 mkdir -p $pkgdir/usr/share/pixmaps/
55 mkdir -p $pkgdir/usr/share/applications/
56 cp $startdir/wallproxy.png $pkgdir/usr/share/pixmaps/
57 cp $startdir/wallproxy.desktop $pkgdir/usr/share/applications/
61 # vim:set ts=2 sw=2 et: