summaryrefslogtreecommitdiff
path: root/net-misc
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-23 03:05:11 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-23 03:05:11 -0500
commit3ac897312b1982e0855eb4251695765d57976b18 (patch)
treede724eaf058f93ccde102686c5cfa892db689bcc /net-misc
parentc114e634dd0a3dc03826f3462610f6304ae294a8 (diff)
downloadbaldeagleos-repo-3ac897312b1982e0855eb4251695765d57976b18.tar.gz
baldeagleos-repo-3ac897312b1982e0855eb4251695765d57976b18.tar.xz
baldeagleos-repo-3ac897312b1982e0855eb4251695765d57976b18.zip
Adding metadata
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/turbovnc/Manifest2
-rw-r--r--net-misc/turbovnc/turbovnc-3.3.1.ebuild158
2 files changed, 160 insertions, 0 deletions
diff --git a/net-misc/turbovnc/Manifest b/net-misc/turbovnc/Manifest
index f74a5254d556..253f8c3a213a 100644
--- a/net-misc/turbovnc/Manifest
+++ b/net-misc/turbovnc/Manifest
@@ -1,2 +1,4 @@
+DIST turbovnc-3.3.1.tar.gz 5521073 BLAKE2B c274ac0bd5ee872bec1dd5307b318114c9237d22f6c038c4f51bfaf3a66b4edce0bfe90ddc796d0002a7bd30e942b4d0c1cd833eb6c82d452bdf91a7ce4a507c SHA512 687af2da9da6da37bca48e1663f9e686d21af9bcebcd6c7063c914e7c391d3d8fd4bf267b20d0290b38dbf9719cac73cb53c8c2b32d5b940480b303f463abe7f
+DIST turbovnc-3.3.1.tar.gz.sig 543 BLAKE2B 4efdb0b31cd53fe331b24f6e69594c49ca22372b6240c2cdcbc29be74b01f1156f84897b277356a6c5a3883870064b79050bafa92c0c3d8c0aa5adf13ce89d2c SHA512 26584ab12c7ef6412ed557fbc5a439df9e353635153661d7295a532afee0a7be9059d03c7b7965563683ca86bdbf3c6f62a0daf681b695d23076619a2534ea72
DIST turbovnc-3.3.tar.gz 5506577 BLAKE2B 142f29f8f2ab0100b1ad64228f4b4d947d72c29b842a1ef512d3d415a863c6f93ed8925ced682f940899257eb7bb2f6c4d054e269cd3efa8ec9bf8e7538ba69e SHA512 88d5eceb21944d219105cdff9eeabd3f2f308b16b2f1104fdc8e10be5ea07762a943db02a34808a10457c293ebbedd3cd4e14592fb9d7832a2e0fe628a67bdef
DIST turbovnc-3.3.tar.gz.sig 543 BLAKE2B 2d43637885a0a90f22ee6a77e8c87b354484740d996deda16a1e531df80bf609bfe7954ce8bae61d23eb5e16c55562b8d2428a5c98ec1801c324c0a0f566685b SHA512 13b50f520fb4aa885a8fbd73fef32a3f2d08b4be660314f7902460af7b26eb4d5d3842cbf388ef28d928e09013180b379aaddb61495476ff25f4a2fc21073c0b
diff --git a/net-misc/turbovnc/turbovnc-3.3.1.ebuild b/net-misc/turbovnc/turbovnc-3.3.1.ebuild
new file mode 100644
index 000000000000..92e7b827c237
--- /dev/null
+++ b/net-misc/turbovnc/turbovnc-3.3.1.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_OPT_USE=viewer
+inherit cmake desktop java-pkg-opt-2 optfeature verify-sig xdg
+
+DESCRIPTION="A fast replacement for TigerVNC"
+HOMEPAGE="https://www.turbovnc.org/"
+SRC_URI="
+ https://github.com/TurboVNC/turbovnc/releases/download/${PV}/turbovnc-${PV}.tar.gz
+ verify-sig? ( https://github.com/TurboVNC/turbovnc/releases/download/${PV}/turbovnc-${PV}.tar.gz.sig )
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dri3 +server +ssl +viewer"
+REQUIRED_USE="|| ( server viewer )"
+
+COMMON_DEPEND="
+ x11-apps/xauth
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-misc/xkeyboard-config
+ server? (
+ media-libs/libjpeg-turbo:=
+ sys-libs/pam
+ virtual/opengl
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXfont2
+ x11-libs/pixman
+ dri3? (
+ media-libs/mesa[opengl]
+ x11-libs/libxshmfence
+ )
+ ssl? ( dev-libs/openssl:= )
+ !net-misc/tigervnc[server]
+ )
+ viewer? (
+ media-libs/libjpeg-turbo:=[java]
+ x11-libs/libXi
+ !net-misc/tigervnc[viewer(+)]
+ )
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ x11-apps/xkbcomp
+ viewer? ( >=virtual/jre-17:* )
+"
+
+# libbz2.so.1, libfontenc.so.1 and libfreetype.so.6 are used by libXfont2.so.2
+# but cmake will look for them, so add them here
+DEPEND="
+ ${COMMON_DEPEND}
+ media-libs/mesa
+ x11-libs/xtrans
+ viewer? ( >=virtual/jdk-17:* )
+ server? (
+ app-arch/bzip2
+ media-libs/freetype
+ x11-libs/libfontenc
+ )
+"
+
+BDEPEND="
+ verify-sig? ( sec-keys/openpgp-keys-vgl-turbovnc )
+"
+
+PATCHES=(
+ "${FILESDIR}"/"${PN}"-3.0.90-fix-musl-compilation.patch
+)
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/vgl-turbovnc.asc
+
+#879797 - BSD functions
+QA_CONFIG_IMPL_DECL_SKIP=( strlcat strlcpy )
+
+pkg_pretend() {
+ if use ssl && ! use server; then
+ einfo "USE=\"ssl\" selected but USE=\"server\" is not. The SSL support is unused"
+ fi
+}
+
+src_prepare() {
+ use viewer && java-pkg-opt-2_src_prepare
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DTVNC_BUILDVIEWER=$(usex viewer)
+ -DTVNC_BUILDSERVER=$(usex server)
+ -DTVNC_BUILDWEBSERVER=$(usex server)
+ )
+
+ if use server ; then
+ mycmakeargs+=(
+ -DTVNC_ZLIBNG=ON
+ -DTVNC_DRI3=$(usex dri3)
+ -DXKB_BIN_DIRECTORY=/usr/bin
+ -DXKB_DFLT_RULES=base
+ )
+ if use ssl ; then
+ # Link properly against OpenSSL to ensure
+ # we catch e.g. ABI change
+ # (i.e. don't dlopen it)
+ mycmakeargs+=(
+ -DTVNC_USETLS=OpenSSL
+ -DTVNC_DLOPENSSL=OFF
+ )
+ else
+ mycmakeargs+=( -DTVNC_USETLS=OFF )
+ fi
+ fi
+
+ if use viewer ; then
+ export JAVACFLAGS="$(java-pkg_javac-args)"
+ export JNI_CFLAGS="$(java-pkg_get-jni-cflags)"
+ fi
+
+ cmake_src_configure
+}
+
+src_compile() {
+ # would need sys-libs/zlib-ng[compat] to unbundle this
+ use server && cmake_build unix/Xvnc/lib/zlib-ng
+
+ cmake_src_compile
+}
+
+src_install() {
+ cmake_src_install
+
+ if use viewer; then
+ java-pkg_dojar "${BUILD_DIR}"/java/VncViewer.jar
+
+ # replace upstream bash wrapper with the Gentoo one to choose the right javavm
+ rm "${ED}"/usr/bin/vncviewer
+ java-pkg_dolauncher vncviewer --jar VncViewer.jar \
+ --java_args "-server -Djava.library.path=\"${EPREFIX}\"/usr/share/turbovnc/classes"
+
+ make_desktop_entry vncviewer "TurboVNC Viewer" /usr/share/icons/hicolor/48x48/apps/${PN}.png
+ fi
+
+ # Conflicts with x11-base/xorg-server
+ find "${ED}"/usr/share/man/man1/ -name Xserver.1\* -delete || die
+
+ einstalldocs
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ use server && optfeature "dbus support" sys-apps/dbus
+}