aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-08-03 08:53:25 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-08-03 08:54:41 +0200
commit40b86bef7c1cee1bf547712c1de1ec284733941f (patch)
tree4c46bb14ca0e1d524171bd3acef778ce0c79ea15 /testing
parenta229bf301e1b3534f77ecd602c369336b1aa2771 (diff)
downloadaports-40b86bef7c1cee1bf547712c1de1ec284733941f.tar.bz2
aports-40b86bef7c1cee1bf547712c1de1ec284733941f.tar.xz
testing/xrdp-git: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/xrdp-git/APKBUILD88
1 files changed, 88 insertions, 0 deletions
diff --git a/testing/xrdp-git/APKBUILD b/testing/xrdp-git/APKBUILD
new file mode 100644
index 0000000000..b5dbe74c62
--- /dev/null
+++ b/testing/xrdp-git/APKBUILD
@@ -0,0 +1,88 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=xrdp-git
+pkgver=20150719
+pkgrel=0
+pkgdesc="an open source RDP server"
+url="http://www.xrdp.org/"
+arch="all"
+license="GPLv2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev autoconf automake libtool openssl-dev libx11-dev
+ libxfixes-dev libxrandr-dev libjpeg-turbo-dev fuse-dev linux-headers
+ perl jq nasm xorg-server-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-xorgxrdp"
+source="http://dev.alpinelinux.org/archive/xrdp-git/xrdp-git-2015-01-08.tar.gz
+ cd077979ebeb81a6e85a9ba7f9c463beda1606ba.patch"
+
+_builddir="$srcdir"/xrdp
+
+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
+}
+
+build() {
+ cd "$_builddir"
+ ./bootstrap
+ ./configure \
+ --prefix=/usr \
+ --disable-static \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --sbindir=/usr/sbin \
+ --enable-nopam \
+ --enable-fuse \
+ --enable-jpeg \
+ || return 1
+ make || return 1
+
+ # xorgxrpd drivers
+ msg "Building xorgxrdp drivers"
+ cd "$_builddir"/xorgxrdp
+ ./bootstrap
+ ./configure \
+ --prefix=/usr \
+ --disable-static \
+ --sysconfdir=/etc \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+xorgxrdp() {
+ pkgdesc="$pkgdesc (xorg drivers)"
+ cd "$_builddir"/xorgxrdp
+ make DESTDIR="$subpkgdir" install || return 1
+}
+
+snapshot() {
+ abuild clean
+ abuild deps
+ mkdir "$srcdir" && cd "$srcdir"
+ git clone --recursive https://github.com/neutrinolabs/xrdp.git
+ local sha=$(curl -s https://api.github.com/repos/neutrinolabs/xrdp/git/refs/heads/master | jq -r '.object.sha')
+ local date=$(curl -s https://api.github.com/repos/neutrinolabs/xrdp/git/commits/$sha | jq -r '.committer.date')
+ date=${date%%T*}
+ tar zcvf xrdp-git-${date}.tar.gz xrdp
+
+ msg "Set \$pkgver to $date"
+}
+md5sums="fa1dd8c18a9da6dd3aebe0fc42fab681 xrdp-git-2015-01-08.tar.gz
+f4c995827a65bc0e267dc4938b1820eb cd077979ebeb81a6e85a9ba7f9c463beda1606ba.patch"
+sha256sums="a7eebc83132d3a5334c0edc7d488c0a2e34cf3294f372d112b68192a4ed7256b xrdp-git-2015-01-08.tar.gz
+1f01a14a1afe8d32177aceba043ccfe04ea2d7574edd662c2caaade306b9d880 cd077979ebeb81a6e85a9ba7f9c463beda1606ba.patch"
+sha512sums="cb9a314ea5b38489f4cacd94d23423c25d341f5fce596dc2cd4ecc3df816ab5453a02fc81ee89dc8c7a79561e7e73c61ac85e7425e5c7f84339c1b97d34abee2 xrdp-git-2015-01-08.tar.gz
+8f9ef1ab081d224cec3221c92856f16f8e743e21a5d762c4c89f671dcbb71bdd8ab2929718219e9f08f821a83b4f577f04b189305155b188b6d2cf6454df498f cd077979ebeb81a6e85a9ba7f9c463beda1606ba.patch"