updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / x2goserver-one / PKGBUILD
blobd019d2979b167c09686b3dda929d56a3103a54bc
1 # Contributor: Gerhard Brauer <gerbra@archlinux.de>
2 # Contributor: Richard Murri <admin@richardmurri.com>
3 pkgname=x2goserver-one
4 pkgver=3.0.1_5
5 _dashes=${pkgver//_/-}
6 pkgrel=2
7 pkgdesc="x2go server (single node edition)"
8 arch=(i686 x86_64)
9 license=('GPL')
10 url="http://x2go.berlios.de"
11 depends=(x2goagent sqlite3 sshfs sudo)
12 install=x2goserver.install
13 conflicts=x2goserver
14 source=(http://x2go.obviously-nice.de/deb/pool-lenny/x2goserver/x2goserver_${_dashes}.tar.gz
15         x2gostartagent.patch
16         x2goserver.rc)
17 groups=('x2go' 'alts')
18 md5sums=('08f6f00b7043e998113443a57fbd091b'
19          '3f4304e2e85941480a7b8eb5496b61bd'
20          '4b7ffae496f4727c58237303af9edff1')
22 build() {
23   cd "$srcdir/x2goserver-${_dashes%-*}"
24   patch -Np0 < $srcdir/x2gostartagent.patch
26   install -Dm755 $srcdir/x2goserver.rc ${pkgdir}/etc/rc.d/x2goserver
28   install -Dm755 x2gocleansessions ${pkgdir}/usr/sbin/x2gocleansessions
29   install -Dm755 x2gocmdexitmessage ${pkgdir}/usr/bin/x2gocmdexitmessage
30   install -Dm755 x2gogetservers ${pkgdir}/usr/bin/x2gogetservers
31   install -Dm755 x2golistsessions ${pkgdir}/usr/bin/x2golistsessions
32   install -Dm755 x2golistsessions_root ${pkgdir}/usr/bin/x2golistsessions_root
33   install -Dm755 x2golistsessions_sql ${pkgdir}/usr/bin/x2golistsessions_sql
34   install -Dm755 x2gomountdirs ${pkgdir}/usr/bin/x2gomountdirs
35   install -Dm755 x2gopgwrapper ${pkgdir}/usr/bin/x2gopgwrapper
36   install -Dm755 x2gopgwrapper_sqlite ${pkgdir}/usr/bin/x2gopgwrapper_sqlite
37   install -Dm755 x2goresume-session ${pkgdir}/usr/bin/x2goresume-session
38   install -Dm755 x2goruncommand ${pkgdir}/usr/bin/x2goruncommand
39   install -Dm755 x2gosessionlimit ${pkgdir}/usr/bin/x2gosessionlimit
40   install -Dm755 x2goshowblocks ${pkgdir}/usr/bin/x2goshowblocks
41   install -Dm755 x2gostartagent ${pkgdir}/usr/bin/x2gostartagent
42   install -Dm755 x2gosuspend-agent ${pkgdir}/usr/bin/x2gosuspend-agent
43   install -Dm755 x2gosuspend-session ${pkgdir}/usr/bin/x2gosuspend-session
44   install -Dm755 x2goterminate ${pkgdir}/usr/bin/x2goterminate
45   install -Dm755 x2goterminate-session ${pkgdir}/usr/bin/x2goterminate-session
46   install -Dm755 x2goumount ${pkgdir}/usr/bin/x2goumount
47   install -Dm755 x2goumount_session ${pkgdir}/usr/bin/x2goumount_session
49   # setup sqlite files
50   echo -n sqlite > sql
51   install -Dm755 sql ${pkgdir}/etc/x2go/sql
52   install -Dm755 x2gosqlite.sh ${pkgdir}/usr/lib/x2go/x2gosqlite.sh
53   sed -i 's/sqlite/sqlite3/g' ${pkgdir}/usr/lib/x2go/x2gosqlite.sh
54   sed -i 's/sqlite/sqlite3/g' ${pkgdir}/usr/bin/x2gopgwrapper_sqlite