aboutsummaryrefslogtreecommitdiffstats
path: root/community/x11vnc
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-03-01 03:12:41 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-03-01 03:12:41 +0000
commit881fc65b96a20beed1f2b331e5303bb3aac40fb6 (patch)
tree3fb5d9b65c3b8c91c65b94acb23674523b15c17a /community/x11vnc
parent79676113772c5e49ba2d2986369f4e41191d7926 (diff)
downloadaports-881fc65b96a20beed1f2b331e5303bb3aac40fb6.tar.bz2
aports-881fc65b96a20beed1f2b331e5303bb3aac40fb6.tar.xz
community/x11vnc: move from testing
Diffstat (limited to 'community/x11vnc')
-rw-r--r--community/x11vnc/APKBUILD48
-rw-r--r--community/x11vnc/libressl.patch15
2 files changed, 63 insertions, 0 deletions
diff --git a/community/x11vnc/APKBUILD b/community/x11vnc/APKBUILD
new file mode 100644
index 0000000000..4fb2fbfdab
--- /dev/null
+++ b/community/x11vnc/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Tuan M. Hoang <tmhoang@flatglobe.org>
+pkgname=x11vnc
+pkgver=0.9.14
+pkgrel=3
+pkgdesc="VNC server for real X displays"
+url="http://www.karlrunge.com/x11vnc/"
+arch="all"
+license="GPL-2.0"
+makedepends="libressl-dev libjpeg-turbo-dev avahi-dev libvncserver-dev
+ automake autoconf"
+subpackages="$pkgname-doc"
+source="x11vnc-$pkgver.tar.gz::https://github.com/LibVNC/x11vnc/archive/$pkgver.tar.gz
+ libressl.patch
+ "
+builddir="$srcdir"/x11vnc-$pkgver
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ autoreconf -v --install
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+sha512sums="5d18e5ff493fbc4f6f1efe952812c1acd3087e855a2a9f2c99f3b2606cfa40a20b83e2d0c736e12b453b47f7ff7746069a1b6718d842d1a8f73b00d5c4c4a93f x11vnc-0.9.14.tar.gz
+5e797f86717f312bb3d227df6b1493723bde4fae8c16591334237701ab0e43a550391aba4b82435d301e95b7cc2050315537549ca717eed3156475c27b8c5ad6 libressl.patch"
diff --git a/community/x11vnc/libressl.patch b/community/x11vnc/libressl.patch
new file mode 100644
index 0000000000..e650c92d7b
--- /dev/null
+++ b/community/x11vnc/libressl.patch
@@ -0,0 +1,15 @@
+diff --git a/src/enc.h b/src/enc.h
+index 55d49bb..edf8f6b 100644
+--- a/src/enc.h
++++ b/src/enc.h
+@@ -454,8 +454,10 @@ extern void enc_do(char *ciph, char *keyfile, char *lport, char *rhp) {
+ p++;
+ if (strstr(p, "md5+") == p) {
+ Digest = EVP_md5(); p += strlen("md5+");
++#ifndef OPENSSL_NO_SHA0
+ } else if (strstr(p, "sha+") == p) {
+ Digest = EVP_sha(); p += strlen("sha+");
++#endif
+ } else if (strstr(p, "sha1+") == p) {
+ Digest = EVP_sha1(); p += strlen("sha1+");
+ } else if (strstr(p, "ripe+") == p) {