1 # Contributor: thoughtcrime
3 # NOTE: if you use wine inside a arch32 chroot,
4 # install this package inside arch32 and run
5 # the following in arch64:
6 # ln -s /opt/arch32/usr/share/ghostship/ghostship_chroot /etc/rc.d/ghostship
12 pkgdesc="A bash daemon that executes the Windows proxy 'Ultrasurf' like a unix daemon"
14 url="http://ghostship.sourceforge.net/"
17 depends=('tightvnc' 'wget')
18 makedepends=('subversion')
19 optdepends=('wine' 'bin32-wine')
20 provides=('ghostship')
21 conflicts=('ghostship' 'ghostship-test')
23 backup=('/etc/ghostship/ghostship.conf')
29 _svntrunk="https://ghostship.svn.sourceforge.net/svnroot/ghostship "
35 if [ -d $_svnmod/.svn ]; then
36 (cd $_svnmod && svn up -r $pkgver)
38 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
41 msg "SVN checkout done or server timeout"
42 msg "Starting make..."
44 rm -rf "$srcdir/$_svnmod-build"
45 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
46 cd "$srcdir/$_svnmod-build"
52 svndir="$srcdir/ghostship-build"
54 install -d $pkgdir/etc/rc.d
55 install -d $pkgdir/etc/ghostship
56 install -d $pkgdir/usr/bin
57 install -d $pkgdir/usr/share/man/man1
58 install -d $pkgdir/var/lib/ghostship/status
60 cp $svndir/initscripts/archlinux/ghostship $pkgdir/etc/rc.d/ghostship
61 cp $svndir/source/etc/ghostship/ghostship.conf $pkgdir/etc/ghostship/
62 cp $svndir/source/etc/ghostship/password.conf $pkgdir/etc/ghostship/
63 cp $svndir/source/usr/bin/ghostship $pkgdir/usr/bin/
64 cp $svndir/source/usr/share/man/man1/ghostship.1 $pkgdir/usr/share/man/man1/
65 cp $svndir/source/var/lib/ghostship/status/*.png $pkgdir/var/lib/ghostship/status/
66 cp $svndir/source/var/lib/ghostship/status/start.html $pkgdir/var/lib/ghostship/status/
68 # Copy the init script for chroot users
69 if [ "$CARCH" = "i686" ]; then
70 install -d $pkgdir/usr/share/ghostship/
71 cp $svndir/initscripts/archlinux/ghostship_chroot $pkgdir/usr/share/ghostship/
75 # vim:set ts=2 sw=2 et: