You are not logged in.

#1 2011-08-09 03:04:55

alexmat
Member
Registered: 2004-12-31
Posts: 100

[REQUEST] Gucamole

Anyone interested in packaging this? Looks very cool.

http://guacamole.sourceforge.net/#stable

Offline

#2 2011-08-09 07:45:40

unikum
Member
From: Russia
Registered: 2010-09-04
Posts: 151
Website

Re: [REQUEST] Gucamole

Source code is here: http://sourceforge.net/projects/guacamo … nt/source/
You need build 3 packages: libguac, guacd, guacamole. Build instructions is source tarballs. Dependences you can see in a deb packages (extract it and see contro;).

Offline

#3 2011-08-09 11:20:39

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: [REQUEST] Gucamole

I've thrown some PKGBUILDs together. I'm not entirely sure that they work, but they build and install. I'm able to access the login page via Tomcat. Other than that, I don't know since I have no way of actually testing the use of this. Just wanted to try to package it. Also, I'm pretty much a novice at this, so there are probably some mistakes.

guacamole

# Maintainer: Your Name <youremail@domain.com>
pkgname=guacamole
pkgver=0.4.0
pkgrel=1
pkgdesc=""
arch=('any')
url="http://guacamole.sourceforge.net/"
license=('GPL')
depends=('guacd' 'java-environment' 'tomcat6')
makedepends=('maven')
optdepends=()
provides=()
install=$pkgname.install
source=(http://sourceforge.net/projects/guacamole/files/current/source/guacamole/$pkgname-$pkgver.tar.gz
        $pkgname.install)
md5sums=('25cd1f077783ab33dddf7014648e4a18'
         'a1c133de8f6e85e0735ca532beb0812c')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  /opt/maven/bin/mvn compile war:war
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm600 $srcdir/$pkgname-$pkgver/target/guacamole-default-webapp-0.4.0.war $pkgdir/var/lib/guacamole/guacamole.war
  install -Dm755 $srcdir/$pkgname-$pkgver/doc/example/guacamole.properties $pkgdir/etc/guacamole/guacamole.properties
  install -Dm755 $srcdir/$pkgname-$pkgver/doc/example/user-mapping.xml $pkgdir/etc/guacamole/user-mapping.xml
}

guacamole.install

post_install() {
  ln -sf /var/lib/guacamole/guacamole.war /usr/share/tomcat6/webapps
  ln -sf /etc/guacamole/guacamole.properties /usr/share/tomcat6/lib
}

post_remove() {
  rm /usr/share/tomcat6/webapps/guacamole.war
  rm /usr/share/tomcat6/lib/guacamole.properties
}

libguac

# Maintainer: Your Name <youremail@domain.com>
pkgname=libguac
pkgver=0.4.0
pkgrel=1
pkgdesc=""
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/guacamole/"
license=('GPL')
depends=()
makedepends=('cairo')
optdepends=()
provides=()
conflicts=()
source=(http://sourceforge.net/projects/guacamole/files/current/source/libguac/$pkgname-$pkgver.tar.gz)
md5sums=('241dce0b5422ed564d30ebf491d1834c')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}

libguac-client-vnc

# Maintainer: Your Name <youremail@domain.com>
pkgname=libguac-client-vnc
pkgver=0.4.0
pkgrel=1
pkgdesc=""
arch=('i686' 'x86_64')
url="http://guacamole.sourceforge.net"
license=('GPL')
depends=('libguac' 'libvncserver')
makedepends=()
optdepends=()
provides=()
conflicts=()
source=(http://sourceforge.net/projects/guacamole/files/current/source/libguac-client-vnc/$pkgname-$pkgver.tar.gz)
md5sums=('5b492baefcedb5675e46dcf7b8ad08fa')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}

guacd

# Maintainer: Your Name <youremail@domain.com>
pkgname=guacd
pkgver=0.4.0
pkgrel=1
pkgdesc=""
arch=('i686' 'x86_64')
url="http://guacamole.sourceforge.net"
license=('GPL')
depends=('libguac')
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
source=(http://sourceforge.net/projects/guacamole/files/current/source/guacd/$pkgname-$pkgver.tar.gz)
md5sums=('019b5d128288e5c2bedf9fddcaee8664')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install

  install -Dm755 $srcdir/$pkgname-$pkgver/init.d/guacd $pkgdir/etc/rc.d/guacd
}

Last edited by jomasti (2011-08-10 18:10:38)

Offline

#4 2011-08-10 13:12:05

alexmat
Member
Registered: 2004-12-31
Posts: 100

Re: [REQUEST] Gucamole

Great work! Seems to work well, except the symlinks in the guacamole package still point to the location they were packaged in and not the directory they are installed to.


After the install I am having this problem though:

java.io.IOException: Resource /guacamole.properties not found.
        at net.sourceforge.guacamole.properties.GuacamoleProperties.<clinit>(GuacamoleProperties.java:69)

I tried putting that file everywhere I could think of and it still doesn't find it. Any ideas?

Offline

#5 2011-08-10 18:15:33

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: [REQUEST] Gucamole

I noticed I was getting that error, too. I kept trying different locations with no success. Then I just used the /usr/share/tomcat6 locations, and it seems to work. I should have done that from the beginning instead of using the Debian install instructions. Anyway, I don't get that error now. Also, I fixed the bad symlink mistake by using an install file. Wasn't thinking there. So, it is best to just remove the package and manually remove the symlinks, then try again. I've edited my post to include the updated guacamole PKGBUILD and install file.

Offline

#6 2011-08-11 13:09:50

alexmat
Member
Registered: 2004-12-31
Posts: 100

Re: [REQUEST] Gucamole

Brilliant! Works like a charm. You should add this to AUR. If you do I'll write up a wiki on it big_smile

Offline

#7 2011-08-11 21:42:43

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: [REQUEST] Gucamole

Awesome. Glad it works. I've added them all to the AUR.

Offline

#8 2012-09-27 23:48:03

Alister.Hood
Member
From: Auckland, New Zealand
Registered: 2011-12-09
Posts: 18

Re: [REQUEST] Gucamole

alexmat wrote:

Brilliant! Works like a charm. You should add this to AUR. If you do I'll write up a wiki on it big_smile

Dude - where's the wiki? wink

Offline

Board footer

Powered by FluxBB