diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/x2goserver/APKBUILD | 42 | ||||
-rwxr-xr-x | testing/x2goserver/x2goserver.pre-install | 4 |
2 files changed, 46 insertions, 0 deletions
diff --git a/testing/x2goserver/APKBUILD b/testing/x2goserver/APKBUILD new file mode 100644 index 000000000..9c883d381 --- /dev/null +++ b/testing/x2goserver/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Jeff Bilyk <jbilyk@gmail.com> +# Maintainer: +pkgname=x2goserver +pkgver=3.1.0.1 +pkgrel=0 +pkgdesc="Terminal server" +url="http://x2go.org" +arch="all" +license="GPL" +depends="" +makedepends="libssh2-dev perl-dbd-sqlite python-dev xauth" +install="$pkgname.pre-install" +subpackages="$pkgname-doc" +source="http://code.x2go.org/releases/source/x2goserver/${pkgname}_${pkgver}.tar.gz" +pkgusers="x2gouser" +pkggroups="x2gouser" + +_builddir="$srcdir"/${pkgname}_${pkgver} +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + #Every Makefile has /usr/local as PREFIX, so replace that + find ./ -name Makefile | xargs sed -e 's#/usr/local#/usr#g' -i +} + +build() { + cd "$_builddir" + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install +} + +md5sums="ae484646e5bd16363a5d49204f5bdf0c x2goserver_3.1.0.1.tar.gz" diff --git a/testing/x2goserver/x2goserver.pre-install b/testing/x2goserver/x2goserver.pre-install new file mode 100755 index 000000000..e21413fc8 --- /dev/null +++ b/testing/x2goserver/x2goserver.pre-install @@ -0,0 +1,4 @@ +#!/bin/sh + +addgroup -S x2gouser +adduser -S -G x2gouser -H -h /var/lib/x2go -s /bin/false x2gouser |