net-libs/libvncserver: Version bump, security bug #659560 and #673508
authorSven Wegener <swegener@gentoo.org>
Tue, 15 Jan 2019 21:40:20 +0000 (21:40 +0000)
committerSven Wegener <swegener@gentoo.org>
Thu, 17 Jan 2019 21:21:30 +0000 (21:21 +0000)
Bug: https://bugs.gentoo.org/659560
Bug: https://bugs.gentoo.org/673508
Closes: https://bugs.gentoo.org/435326
Closes: https://bugs.gentoo.org/675046
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

net-libs/libvncserver/Manifest
net-libs/libvncserver/files/libvncserver-0.9.12-cmake-libdir.patch [new file with mode: 0644]
net-libs/libvncserver/libvncserver-0.9.12.ebuild [new file with mode: 0644]

index 85c0fe603f21f460be35c33923e8e1ae75e195bf..0cb75239ec8b3d4081cc8b98ceeebb0f23b66848 100644 (file)
@@ -1 +1,2 @@
 DIST LibVNCServer-0.9.11.tar.gz 1413739 BLAKE2B e295d3aef7181cd767676c4e55130fa65ecf8ea92a659b6de82d2cc465f1c9e1a587839942fd89882126dc8ec54f9de20a78e799ea194f9ae227a82ae705721b SHA512 e473c081b68dd3cdd96a1756b4f4945ece79d3c8e4cef62140be1699671555fc16d3080e81d764197a14ea83203ffcd0e18c3cc182e012d036e3faae943003fb
+DIST LibVNCServer-0.9.12.tar.gz 2237447 BLAKE2B 583500c0bcfb6e9e3a02a33fb2701113b164851f0906fcc4845de7c7d82d4f7f65f5edd6c9a672348ee1deeefc65c1b0a257da024254598ba86d121d424f027e SHA512 60ff1cc93a937d6f8f97449bc58b763095846207112f7b1b3c43eb2d74448b595d6da949903a764bd484ee54e38ff6277e882adbe965dd6d26ba15ef6ff6fcb8
diff --git a/net-libs/libvncserver/files/libvncserver-0.9.12-cmake-libdir.patch b/net-libs/libvncserver/files/libvncserver-0.9.12-cmake-libdir.patch
new file mode 100644 (file)
index 0000000..35ee26d
--- /dev/null
@@ -0,0 +1,22 @@
+--- libvncserver-LibVNCServer-0.9.12/CMakeLists.txt
++++ libvncserver-LibVNCServer-0.9.12/CMakeLists.txt
+@@ -666,8 +666,8 @@
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libvncclient.pc.cmakein ${CMAKE_CURRENT_BINARY_DIR}/libvncclient.pc @ONLY)
+-install_targets(/lib vncserver)
+-install_targets(/lib vncclient)
++install_targets(/${CMAKE_INSTALL_LIBDIR} vncserver)
++install_targets(/${CMAKE_INSTALL_LIBDIR} vncclient)
+ install_files(/include/rfb FILES
+     rfb/keysym.h
+     rfb/rfb.h
+@@ -677,7 +677,7 @@
+     rfb/rfbregion.h
+ )
+-install_files(/lib/pkgconfig FILES
++install_files(/${CMAKE_INSTALL_LIBDIR}/pkgconfig FILES
+     libvncserver.pc
+     libvncclient.pc
+ )
diff --git a/net-libs/libvncserver/libvncserver-0.9.12.ebuild b/net-libs/libvncserver/libvncserver-0.9.12.ebuild
new file mode 100644 (file)
index 0000000..1a25cd7
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit cmake-multilib
+
+MY_PN="LibVNCServer"
+
+DESCRIPTION="library for creating vnc servers"
+HOMEPAGE="https://libvnc.github.io/"
+SRC_URI="https://github.com/LibVNC/${PN}/archive/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+# No sub slot wanted (yet), see #578958
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="+24bpp gcrypt gnutls ipv6 +jpeg libressl lzo +png sasl sdl ssl static-libs systemd test +threads +zlib"
+REQUIRED_USE="!gnutls? ( ssl? ( threads ) ) png? ( zlib )"
+
+DEPEND="
+       gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0=[${MULTILIB_USEDEP}] )
+       gnutls? (
+               >=net-libs/gnutls-2.12.23-r6:0=[${MULTILIB_USEDEP}]
+               >=dev-libs/libgcrypt-1.5.3:0=[${MULTILIB_USEDEP}]
+       )
+       !gnutls? (
+               ssl? (
+                       !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
+                       libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
+               )
+       )
+       jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
+       lzo? ( dev-libs/lzo )
+       png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
+       sasl? ( dev-libs/cyrus-sasl )
+       sdl? ( media-libs/libsdl2 )
+       systemd? ( sys-apps/systemd:= )
+       zlib? ( >=sys-libs/zlib-1.2.8-r1:0=[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PN}-${PV}"
+
+DOCS=( AUTHORS ChangeLog NEWS README.md TODO )
+
+PATCHES=(
+       "${FILESDIR}"/${P}-cmake-libdir.patch
+)
+
+multilib_src_configure() {
+       local mycmakeargs=(
+               -DWITH_ZLIB=$(usex zlib ON OFF)
+               -DWITH_LZO=$(usex lzo ON OFF)
+               -DWITH_JPEG=$(usex jpeg ON OFF)
+               -DWITH_PNG=$(usex png ON OFF)
+               -DWITH_SDL=$(usex sdl ON OFF)
+               -DWITH_THREADS=$(usex threads ON OFF)
+               -DWITH_GNUTLS=$(usex gnutls ON OFF)
+               -DWITH_OPENSSL=$(usex gnutls OFF $(usex ssl ON OFF))
+               -DWITH_GCRYPT=$(usex gnutls ON $(usex gcrypt ON OFF))
+               -DWITH_SYSTEMD=$(usex systemd ON OFF)
+               -DWITH_FFMPEG=OFF
+               -DWITH_24BPP=$(usex 24bpp ON OFF)
+               -DWITH_IPv6=$(usex ipv6 ON OFF)
+               -DWITH_SASL=$(usex sasl ON OFF)
+       )
+       cmake-utils_src_configure
+}
+
+multilib_src_install_all() {
+       einstalldocs
+}