You are not logged in.
Anyone interested in packaging this? Looks very cool.
Offline
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
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
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
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
Brilliant! Works like a charm. You should add this to AUR. If you do I'll write up a wiki on it
Offline
Awesome. Glad it works. I've added them all to the AUR.
Offline
Brilliant! Works like a charm. You should add this to AUR. If you do I'll write up a wiki on it
Dude - where's the wiki?
Offline