mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-17 11:33:08 +02:00
commit
2dc09cb86d
31 changed files with 973 additions and 21 deletions
|
|
@ -1 +1 @@
|
|||
DIST litecli-1.17.0.tar.gz 898900 BLAKE2B 1a6b05ddffc16e902faa5fb83334fb39198d54cf269e7d281d6fa7c9a09ec6a155872361bd0ffc4928af322afdd1a016de73c87001a74ab617069c83ea667284 SHA512 2b164ff0e7615f127ac349694bd99bfb0c3d9cac58c9360158124625ed32f06a7390169d378cd3e1ccdf4a661b99ed57380e79f9ae86665ccc6ffb9db23bc43d
|
||||
DIST litecli-1.17.1.tar.gz 900258 BLAKE2B c66da74e1b2fd2506bc603793751305be5b46b7e4023c4d65d450304a00f3197be2aa9f534726c291eb7a49e2f09c299a4c75ee16b67813bd033cbce08532cc5 SHA512 67945258564e650d395c5d86bde92cc1f92132763557d63937de7b53cd447018d80f606f9aa8f581a02f5f46da6fd3491f532c26418973acbe507ef8db6dd69f
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
|
@ -16,13 +16,14 @@ LICENSE="BSD"
|
|||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
#FIXME: add "ai" flag, dev-python/llm
|
||||
RDEPEND="
|
||||
>=dev-python/click-4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cli-helpers-2.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/configobj-5.0.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/prompt-toolkit-3.0.3[${PYTHON_USEDEP}]
|
||||
<dev-python/prompt-toolkit-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-1.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-1.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlparse-0.4.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
|
|
@ -2,3 +2,5 @@ DIST build-tools_r30.0.3-linux.zip 53134793 BLAKE2B e1456d5dec94c738f10021a372d5
|
|||
DIST build-tools_r31-linux.zip 54931191 BLAKE2B 6012b1e61931e6ea9e7f37ac46254400a8b224456731e39e3755f113f68522a3945169f0b0be7a40b06f9628de5b8df35be84fa204ebf3ae62084eee555a9059 SHA512 fa18b60cd0993826bdbf09ca216aa82e127aa711807c0aa500ddb447162eb1eecdd74c07ed01b8bc00ae2229dff134f56877bacc16c2467971b0302d70082253
|
||||
DIST build-tools_r33-linux.zip 56000182 BLAKE2B cc73608cc6d26945dcb39b3227232c80e40612bd2dc4dc96bbd840a1679085c54cc06902ad74caff3991ab3e9f1088bc9c174823c67707f1a3ea791ee66e6b93 SHA512 cc30ed55fdd17919b398d88e9e78b4326b17d5706ca464da3f4835010e7af2904afb51d3e18205c4154960e40a5a18e32489ab22afb8182c9e7d5c9bb999994d
|
||||
DIST build-tools_r34-linux.zip 61224257 BLAKE2B c1faeb14f3abe4f35cba51bf1d23471e62778532b8d8993d947919ba9a1bc0e06820c02fa74b6cd9c0ca4f5008ba0810b33784646e91339803fa4768fde7e74f SHA512 c28dd52f8eca82996726905617f3cb4b0f0aee1334417b450d296991d7112cab1288f5fd42c48a079ba6788218079f81caa3e3e9108e4a6f27163a1eb7f32bd7
|
||||
DIST build-tools_r35_linux.zip 61958799 BLAKE2B 1a63a5e000de6dc06c5549c0076c3d7c34a085e5c344678cd9b9d8c488fd70e72b7edcdeabb2bcbbe82e7bcf2851d13150fd1bae8f7c6a12c9013aed972ca241 SHA512 b45dc6b7298567f3b45428def0b85584b99b125a3719dfb74a82732bf2b86a0c66161682f3c3d7a50cefaf6e1a2d993975665272e16f00b231a15a9a4512cc1e
|
||||
DIST build-tools_r36_linux.zip 63737259 BLAKE2B da5596170acd125424c3054105a9006e4dae7dc05caef50cd7c5dcd3426ae874147302b9b2bfc26a57a8dfa0dffc40d3fab7f953cb5da21e68df562d011067e1 SHA512 277c08c2dcced3c1cc46ce0349e18adc6d6d4b8739868eab5d469f9fb4e9c6b79aa9d2a6592cfc5db0ccb8690fcc75a44db4b18b03dcf349efd0eb54025ef5ca
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ DESCRIPTION="Android SDK Build Tools"
|
|||
HOMEPAGE="https://developer.android.com/studio/releases/build-tools"
|
||||
#https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html
|
||||
SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}-linux.zip"
|
||||
S="${WORKDIR}/android-11"
|
||||
|
||||
LICENSE="android"
|
||||
SLOT="0"
|
||||
|
|
@ -20,8 +21,6 @@ DEPEND="${RDEPEND}"
|
|||
RESTRICT="strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
S="${WORKDIR}/android-11"
|
||||
|
||||
ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}"
|
||||
|
||||
src_install() {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ DESCRIPTION="Android SDK Build Tools"
|
|||
HOMEPAGE="https://developer.android.com/studio/releases/build-tools"
|
||||
#https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html
|
||||
SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}-linux.zip"
|
||||
S="${WORKDIR}/android-12"
|
||||
|
||||
LICENSE="android"
|
||||
SLOT="0"
|
||||
|
|
@ -20,8 +21,6 @@ DEPEND="${RDEPEND}"
|
|||
RESTRICT="strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
S="${WORKDIR}/android-12"
|
||||
|
||||
ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}"
|
||||
|
||||
#FIXME: may need:
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ DESCRIPTION="Android SDK Build Tools"
|
|||
HOMEPAGE="https://developer.android.com/studio/releases/build-tools"
|
||||
# https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html
|
||||
SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}-linux.zip"
|
||||
S="${WORKDIR}/android-13"
|
||||
|
||||
LICENSE="android"
|
||||
SLOT="0"
|
||||
|
|
@ -20,8 +21,6 @@ DEPEND="${RDEPEND}"
|
|||
RESTRICT="strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
S="${WORKDIR}/android-13"
|
||||
|
||||
ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}"
|
||||
|
||||
#FIXME: may need:
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ DESCRIPTION="Android SDK Build Tools"
|
|||
HOMEPAGE="https://developer.android.com/studio/releases/build-tools"
|
||||
# https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html
|
||||
SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}-linux.zip"
|
||||
S="${WORKDIR}/android-14"
|
||||
|
||||
LICENSE="android"
|
||||
SLOT="0"
|
||||
|
|
@ -20,8 +21,6 @@ DEPEND="${RDEPEND}"
|
|||
RESTRICT="strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
S="${WORKDIR}/android-14"
|
||||
|
||||
ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}"
|
||||
|
||||
#FIXME: may need:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Android SDK Build Tools"
|
||||
HOMEPAGE="https://developer.android.com/studio/releases/build-tools"
|
||||
# https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html
|
||||
SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}_linux.zip"
|
||||
S="${WORKDIR}/android-15"
|
||||
|
||||
LICENSE="android"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="ncurses"
|
||||
|
||||
RDEPEND="ncurses? ( sys-libs/ncurses-compat )
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
RESTRICT="strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}"
|
||||
|
||||
#FIXME: may need:
|
||||
#dodir /etc/revdep-rebuild
|
||||
#/opt/android-sdk-update-manager/build-tools/33/lib64/libLLVM_android.so
|
||||
#/opt/android-sdk-update-manager/build-tools/33/lib64/libclang_android.so
|
||||
|
||||
src_install() {
|
||||
dodir "${ANDROID_SDK_BUILD_TOOLS_DIR}/"
|
||||
cp -R "${S}"/* "${ED}/${ANDROID_SDK_BUILD_TOOLS_DIR}/" || die "Copy files failed"
|
||||
|
||||
for linkfile in aapt aapt2 apksigner dexdump zipalign
|
||||
do
|
||||
dosym "${EPREFIX}${ANDROID_SDK_BUILD_TOOLS_DIR}/$linkfile" /usr/bin/$linkfile
|
||||
done
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Android SDK Build Tools"
|
||||
HOMEPAGE="https://developer.android.com/studio/releases/build-tools"
|
||||
# https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html
|
||||
SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}_linux.zip"
|
||||
S="${WORKDIR}/android-16"
|
||||
|
||||
LICENSE="android"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="ncurses"
|
||||
|
||||
RDEPEND="ncurses? ( sys-libs/ncurses-compat )
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
RESTRICT="strip bindist mirror"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}"
|
||||
|
||||
#FIXME: may need:
|
||||
#dodir /etc/revdep-rebuild
|
||||
# /opt/android-sdk-update-manager/build-tools/36/lib64/libLLVM_android.so: libncurses.so.5 libtinfo.so.5
|
||||
# /opt/android-sdk-update-manager/build-tools/36/lib64/libclang_android.so: libncurses.so.5 libtinfo.so.5
|
||||
|
||||
src_install() {
|
||||
dodir "${ANDROID_SDK_BUILD_TOOLS_DIR}/"
|
||||
cp -R "${S}"/* "${ED}/${ANDROID_SDK_BUILD_TOOLS_DIR}/" || die "Copy files failed"
|
||||
|
||||
for linkfile in aapt aapt2 apksigner dexdump zipalign
|
||||
do
|
||||
dosym "${EPREFIX}${ANDROID_SDK_BUILD_TOOLS_DIR}/$linkfile" /usr/bin/$linkfile
|
||||
done
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
DIST objection-1.11.0.tar.gz 1702819 BLAKE2B 8abbb0af21e2fc4cbae73753f6b15353f93918f0d03abd5e0670772596db00890731489614e224e2bf9e389cda7fb92c9460314affb8074f66fc983c1c314797 SHA512 a69237c963bef05d87dd142b52a2d34f1839ba9e95d4e409d6ec954f0cc5c9fc808cdbaea87a2622128b1a9a068a7acad5ee8bb3e1175515572b0d3fdbe580d7
|
||||
DIST objection-1.12.2-node_modules.tar.gz 39677200 BLAKE2B 980fcb6e4212014efdc49b17ebc78f944b86c34cf7c103e06cafac9ecd7fe2f9e0ace995afe196fede7540d3b64bc62b39e838815f7e909e63ec3a3352e69f17 SHA512 88e3d0d8e46039ce40a76385024566a55f05dc70be768297e870759227aa762dc27991f1f32452839db741a6819f1a18788aba08c25b09c0d1b17d06208d1904
|
||||
DIST objection-1.12.2.tar.gz 1740302 BLAKE2B 8b9efe6a8bd346881b48d73432a5c0156495008f7484cfe5c33cee1921705f48d91166084b398f20a581043211e8325c6f4ea9abe05345a076a038f1d5b484f9 SHA512 f316df1823c3d3c504f62786a7dd4182fd72cf888a810ec3b547d820655d9ab6b7406c45e64c919275bc8787174218349c13613723a29f2dfae83b7d97c5474c
|
||||
DIST objection-1.12.3.tar.gz 1740380 BLAKE2B 8695b87941649312fe5f281693857aa4a8c738529a9098e424e52d766a24d65e69208563ff6ce025e24275a196860530de2d99a200495f1792cbf0146e2ec92b SHA512 7372c4108e6b3abe35056b14ea5472611585b3e8031a2b66b5d2d05d61d95db8c5988747455ecf097629e0336f8d033fa9205581eb6b17bbf66dd7788dec3482
|
||||
DIST objection-1.9.5-node_modules.tar.gz 17429880 BLAKE2B 33496aefdfb8583fb8310bb97fd19fcf454ba49a13b5c3abd09c367c777331ff3efa45e208c9c9320e800ef943c557f77f000bc302b15feceeef61b0e15fe3ec SHA512 1a220de76e158bd33a97c148735d92be4e60878e8fec0990656c3176c00a5097dbeb0782893bb8484e3372f58074b230324bd82494f8ce2a314dcc255e625348
|
||||
|
|
|
|||
57
dev-util/objection/objection-1.12.3.ebuild
Normal file
57
dev-util/objection/objection-1.12.3.ebuild
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Runtime mobile exploration"
|
||||
HOMEPAGE="https://github.com/sensepost/objection"
|
||||
#to re-generate node_modules run "npm build agent/" in WORKDIR
|
||||
SRC_URI="https://github.com/sensepost/objection/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.pentoo.ch/~blshkv/distfiles/objection-1.12.2-node_modules.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="patchapk"
|
||||
|
||||
RDEPEND=">=dev-util/frida-tools-7.0.0[${PYTHON_USEDEP}]
|
||||
virtual/frida[${PYTHON_USEDEP}]
|
||||
>=dev-python/prompt-toolkit-3.0.3[${PYTHON_USEDEP}] <dev-python/prompt-toolkit-4.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/tabulate[${PYTHON_USEDEP}]
|
||||
>=dev-python/semver-2[${PYTHON_USEDEP}]
|
||||
dev-python/delegator[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
>=dev-db/litecli-1.3.0[${PYTHON_USEDEP}]
|
||||
net-libs/nodejs[npm]
|
||||
patchapk? (
|
||||
dev-util/android-sdk-build-tools
|
||||
dev-util/android-tools
|
||||
virtual/jdk:*
|
||||
dev-util/apktool
|
||||
)"
|
||||
#patchapk
|
||||
#https://github.com/sensepost/objection/wiki/Patching-Android-Applications#patching---dependencies
|
||||
#patchipa
|
||||
#https://github.com/sensepost/objection/wiki/Patching-iOS-Applications#patching---dependencies
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
src_prepare() {
|
||||
rm -r tests
|
||||
# mv "${WORKDIR}/node_modules" "${S}/agent/" || die "unable to move node_modules"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
addpredict /etc/npm
|
||||
emake frida-agent
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
DIST wafw00f-2.3.2.tar.gz 42448 BLAKE2B 8054b3cd6cd80963a8fcc8d4312f43ef2d22f8b8e6e85e5315f66905ef872dd8a776aa7aad89be6b1de96cb092391ac31119542a6e76d4775f9d580826282838 SHA512 5c0a78e5d7dea13e832c8d639edd3ef5b4409e1314c7965b1915cb357ffa95eedbc522e035db3e4b5ec31cfd0d7aa9859811e6a474cdff996d17ba9be5772fb9
|
||||
DIST wafw00f-2.4.1.tar.gz 47287 BLAKE2B 3e42bc7f8db72320e9db5a9ca417806210b72c9627ecb9397adb3fccb2cd2fec4a083e5cb254abde7f89ab4acf1e8ef489a9db14b67dc9ab827db984d31cf93a SHA512 d4a5bb942fad74e67aafee5ce3bf74097227647b36546d5712af38a19bed61c40fdc8934cc2ffecc3e1c7a40836d5de8c57150187b8b3b431e8fc62d22961fd7
|
||||
DIST wafw00f-2.4.2.tar.gz 49948 BLAKE2B cbcb271b7389190c5fac1b91b740872dc2a7549fafab33505ade13addea357830de9b0080a7294aae4882092fa9b6946d9b84ffa145ca87a50db2a47d1375110 SHA512 cddf591761abbdb61002bb3543d31178863e19e2844779e80079ec9fbc45109d697e337d7829124354692aff147c7ba7525b7a789eef86ff7199f91f10ee97b7
|
||||
|
|
|
|||
|
|
@ -27,8 +27,3 @@ BDEPEND="test? (
|
|||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare(){
|
||||
rm setup.py
|
||||
eapply_user
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
DIST wfuzz-3.1.0.tar.gz 441721 BLAKE2B f31654a38a025b986c5669f5537d33c35ee155b10b162a97ec749877ff796764f1b4976e6ee48740f4fbca7c80e7dcb233a63483b99ac359b7a84629067ace4a SHA512 5b340679794775a04aa375f36f01765abbff5118cb51041cd367a1af1b7c06ef6506412bb411c06efa2f09cecc3c4cf3359e204ef41775e0a248135a35f83402
|
||||
DIST wfuzz-3.1.1.tar.gz 441720 BLAKE2B 20130f01e5bc0524a244fdc49c4accd8f9308bd6dc68a17cbb13fa4eae735a5e7242bf2f9347175b6bf2ef40aa3ef164ea414c4695fc9976110ee04f57a4bdf4 SHA512 a2ff40247e8f984f7e2e764d4a05f7a4ff23fdc12cba8235a820f36fd36e0fc22967a9dd67ab5979a58940903e206d035468bb7ab977251f97074fb7423ed5bd
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
EAPI=8
|
||||
|
||||
#No module named 'imp'
|
||||
PYTHON_COMPAT=( python3_11 )
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1
|
||||
2
net-misc/tigervnc/Manifest
Normal file
2
net-misc/tigervnc/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST tigervnc-1.15.0.tar.gz 2126369 BLAKE2B c8646860884ae8fec7f81d9e87967bb279e7bf7ebcc69973660ed827f5a1cf6d8700a70a364e9099e68779b6dfb168242db2afa428f5cfc11784020696261191 SHA512 0b550296b5bd06ac9d63ce10861ff54d24e79b6ac1551d80e9b81845fa873d85bfd684112c66d86188c9c61fdffb9421ea8696c1c7fd15a24fb1bf6bfe6a5e05
|
||||
DIST xorg-server-21.1.15.tar.xz 5009756 BLAKE2B a7d5df70a4af98b903a306850a169879cf083b2c811f6e75e1e916f85441214541f7c9fa0e0089c4bf08c67597166d97ea194c6a0a511948568120e579d1104f SHA512 677bbec81ecdd1d14e1d289a00c40249988985ec636e5473b30c4f63bad03a6cc5f9168cea94969e1550370eee8863595bc9c064c3d218a96123afc7567bf363
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
See bug for rationale, gist is that this is still useful.
|
||||
|
||||
Patch from Erik Wallin <erikw@sizeit.se>
|
||||
https://bugs.gentoo.org/769794
|
||||
--- a/java/CMakeLists.txt
|
||||
+++ b/java/CMakeLists.txt
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
find_package(Java)
|
||||
|
||||
+set(DATA_DIR "${CMAKE_INSTALL_PREFIX}/share")
|
||||
+
|
||||
set(DEFAULT_JAVACFLAGS "-source 8 -target 8 -encoding UTF-8 -Xlint:all,-serial,-cast,-unchecked,-fallthrough,-dep-ann,-deprecation,-rawtypes")
|
||||
set(JAVACFLAGS ${DEFAULT_JAVACFLAGS} CACHE STRING
|
||||
"Java compiler flags (Default: ${DEFAULT_JAVACFLAGS})")
|
||||
@@ -172,3 +174,10 @@
|
||||
-P ${SRCDIR}/cmake/SignJar.cmake)
|
||||
|
||||
add_custom_target(java ALL DEPENDS VncViewer.jar)
|
||||
+
|
||||
+if(NOT WIN32)
|
||||
+ install(FILES
|
||||
+ ${BINDIR}/VncViewer.jar
|
||||
+ ${SRCDIR}/${CLASSPATH}/README
|
||||
+ DESTINATION ${DATA_DIR}/vnc/classes)
|
||||
+endif()
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
See https://bugs.gentoo.org/852830
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -234,6 +234,7 @@
|
||||
add_subdirectory(java)
|
||||
endif()
|
||||
|
||||
+option(BUILD_SERVER "Build TigerVNC server" ON)
|
||||
option(BUILD_VIEWER "Build TigerVNC viewer" ON)
|
||||
if(BUILD_VIEWER)
|
||||
# Check for FLTK
|
||||
@@ -276,7 +277,7 @@
|
||||
endif()
|
||||
|
||||
# Check for PAM library
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
check_include_files(security/pam_appl.h HAVE_PAM_H)
|
||||
set(CMAKE_REQUIRED_LIBRARIES -lpam)
|
||||
check_function_exists(pam_start HAVE_PAM_START)
|
||||
@@ -315,9 +316,6 @@
|
||||
add_subdirectory(media)
|
||||
endif()
|
||||
|
||||
-add_subdirectory(tests)
|
||||
-
|
||||
-
|
||||
if(BUILD_VIEWER)
|
||||
add_subdirectory(release)
|
||||
endif()
|
||||
--- a/common/rfb/CMakeLists.txt
|
||||
+++ b/common/rfb/CMakeLists.txt
|
||||
@@ -88,7 +88,7 @@
|
||||
target_sources(rfb PRIVATE WinPasswdValidator.cxx)
|
||||
endif(WIN32)
|
||||
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
target_sources(rfb PRIVATE UnixPasswordValidator.cxx pam.c)
|
||||
target_link_libraries(rfb ${PAM_LIBS})
|
||||
endif()
|
||||
--- a/unix/CMakeLists.txt
|
||||
+++ b/unix/CMakeLists.txt
|
||||
@@ -1,6 +1,8 @@
|
||||
add_subdirectory(tx)
|
||||
add_subdirectory(common)
|
||||
-add_subdirectory(vncconfig)
|
||||
-add_subdirectory(vncpasswd)
|
||||
-add_subdirectory(vncserver)
|
||||
-add_subdirectory(x0vncserver)
|
||||
+if(BUILD_SERVER)
|
||||
+ add_subdirectory(vncconfig)
|
||||
+ add_subdirectory(vncpasswd)
|
||||
+ add_subdirectory(vncserver)
|
||||
+ add_subdirectory(x0vncserver)
|
||||
+endif()
|
||||
28
net-misc/tigervnc/files/tigervnc-1.14.0-xsession-path.patch
Normal file
28
net-misc/tigervnc/files/tigervnc-1.14.0-xsession-path.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
Add more possible paths for Xsession, depending on which display manager is
|
||||
installed. We need an Xsession that executes its command line parameters, so
|
||||
leave xinit last.
|
||||
|
||||
See also https://bugs.gentoo.org/746227 and https://bugs.gentoo.org/936475
|
||||
|
||||
--- a/unix/vncserver/vncserver.in
|
||||
+++ b/unix/vncserver/vncserver.in
|
||||
@@ -437,11 +437,14 @@
|
||||
die "$prog: couldn't find \"$cmd\" on your PATH.\n";
|
||||
}
|
||||
|
||||
- foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession") {
|
||||
- if (-x "$cmd") {
|
||||
- $Xsession = $cmd;
|
||||
- last;
|
||||
- }
|
||||
+ $Xsession=$ENV{TIGERVNC_XSESSION_FILE};
|
||||
+ if (not defined $Xsession) {
|
||||
+ foreach $cmd ("/usr/share/sddm/scripts/Xsession", "/etc/gdm/Xsession", "/etc/lightdm/Xsession", "/usr/share/slim/Xsession", "/etc/X11/Sessions/Xsession", "/etc/X11/xinit/Xsession", "/etc/X11/Xsession") {
|
||||
+ if (-r "$cmd") {
|
||||
+ $Xsession = $cmd;
|
||||
+ last;
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
if (not defined $Xsession) {
|
||||
die "$prog: Couldn't find suitable Xsession.\n";
|
||||
13
net-misc/tigervnc/files/tigervnc-1.14.0.confd
Normal file
13
net-misc/tigervnc/files/tigervnc-1.14.0.confd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Config file for /etc/init.d/tigervnc
|
||||
|
||||
# Add the user(s) Xvnc(1) should be run for to /etc/tigervnc/vncserver.users
|
||||
# DISPLAYS is no loger used.
|
||||
|
||||
# Optionally override the default Xsession file
|
||||
# TIGERVNC_XSESSION_FILE="/usr/share/sddm/scripts/Xsession"
|
||||
# TIGERVNC_XSESSION_FILE="/etc/gdm/Xsession"
|
||||
# TIGERVNC_XSESSION_FILE="/etc/lightdm/Xsession"
|
||||
# TIGERVNC_XSESSION_FILE="/usr/share/slim/Xsession"
|
||||
|
||||
# vncsession no longer supports VNC_OPTS
|
||||
# Use /etc/tigervnc/vncserver-config-defaults or $HOME/.config/tigervnc/config instead
|
||||
90
net-misc/tigervnc/files/tigervnc-1.14.0.initd
Normal file
90
net-misc/tigervnc/files/tigervnc-1.14.0.initd
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
# shellcheck shell=sh
|
||||
|
||||
# Create symlinks for all displays.
|
||||
# For example for display :1, run `ln -s tigervnc /etc/init.d/tigervnc.1`
|
||||
# Then `rc-update add tigervnc.1 default`
|
||||
# For compatibility, /etc/init.d/tigervnc will start all displays.
|
||||
|
||||
DISPLAYS=${SVCNAME#*.}
|
||||
if [ "$DISPLAYS" = "tigervnc" ]; then
|
||||
should_warn=1
|
||||
DISPLAYS=$(grep -v "^#" /etc/tigervnc/vncserver.users | sed -e 's/=.*//' -e 's/^://')
|
||||
fi
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ -n "${DISPLAYS}" ]; then
|
||||
if [ "$1" = "start" ]; then
|
||||
for display in $DISPLAYS; do
|
||||
user="$(grep "^:${display}" /etc/tigervnc/vncserver.users)"
|
||||
user=${user#*=}
|
||||
if [ -z "${user}" ]; then
|
||||
eerror "User is not defined for display :${display} in /etc/tigervnc/vncserver.users"
|
||||
return 1
|
||||
elif [ -e "/tmp/.X11-unix/X${display}" ]; then
|
||||
eerror "Display :${display} appears to be already in use because of /tmp/.X11-unix/X${display}"
|
||||
eerror "Remove this file if there is no X server for :${display}"
|
||||
return 1
|
||||
elif [ -e "/tmp/.X${display}-lock" ]; then
|
||||
eerror "Display :${display} appears to be already in use because of /tmp/.X${display}-lock"
|
||||
eerror "Remove this file if there is no X server for :${display}"
|
||||
return 1
|
||||
# bug #690046
|
||||
# The default config directory is now ~/.config/tigervnc, but still supports ~/.vnc if not found
|
||||
# Only warn if password is missing, do not error out. See bug #936442
|
||||
elif ! runuser -l "${user}" -s /bin/bash -c \
|
||||
"[[ ( -d ${XDG_CONFIG_HOME:-~/.config}/tigervnc && -f ${XDG_CONFIG_HOME:-~/.config}/tigervnc/passwd ) || ( ! -d ${XDG_CONFIG_HOME:-~/.config}/tigervnc && -f ~/.vnc/passwd ) ]]"; then
|
||||
ewarn "There are no passwords defined for user ${user}. The server may not start."
|
||||
fi
|
||||
FREEDISPLAYS="${FREEDISPLAYS} ${display}"
|
||||
done
|
||||
fi
|
||||
return 0
|
||||
else
|
||||
eerror 'There are no displays configured in /etc/tigervnc/vncserver.users'
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
checkwarn() {
|
||||
if [ "${should_warn}" = "1" ]; then
|
||||
ewarn 'Running /etc/init.d/tigervnc in compatibility mode'
|
||||
ewarn 'Please migrate to one service per display as detailed here:'
|
||||
ewarn 'https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:'
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
checkwarn
|
||||
FREEDISPLAYS=""
|
||||
checkconfig start || return 1
|
||||
for display in $FREEDISPLAYS; do
|
||||
[ -n "${TIGERVNC_XSESSION_FILE}" ] && export TIGERVNC_XSESSION_FILE
|
||||
ebegin "Starting TigerVNC server :${display}"
|
||||
start-stop-daemon --start --pidfile=/run/vncsession-":${display}".pid /usr/libexec/vncsession-start -- ":${display}"
|
||||
eend $?
|
||||
done
|
||||
}
|
||||
|
||||
stop() {
|
||||
checkconfig stop || return 2
|
||||
for display in $DISPLAYS; do
|
||||
ebegin "Stopping TigerVNC server :${display}"
|
||||
start-stop-daemon --stop --pidfile=/run/vncsession-":${display}".pid
|
||||
eend $?
|
||||
done
|
||||
# Do not fail if a server is missing
|
||||
/bin/true
|
||||
}
|
||||
|
||||
restart() {
|
||||
svc_stop
|
||||
svc_start
|
||||
}
|
||||
28
net-misc/tigervnc/files/tigervnc-1.14.1-pam.patch
Normal file
28
net-misc/tigervnc/files/tigervnc-1.14.1-pam.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
Comment out pam_selinux.so, the server does not start if missing.
|
||||
Add pam_elogind.so for non-systemd installs.
|
||||
|
||||
See also:
|
||||
Bug: https://bugs.gentoo.org/746227
|
||||
Bug: https://bugs.gentoo.org/937283
|
||||
|
||||
--- a/unix/vncserver/tigervnc.pam
|
||||
+++ b/unix/vncserver/tigervnc.pam
|
||||
@@ -1,15 +1,13 @@
|
||||
#%PAM-1.0
|
||||
|
||||
-# THIS IS AN EXAMPLE CONFIGURATION
|
||||
-# MODIFY AS NEEDED FOR YOUR DISTRIBUTION
|
||||
-
|
||||
# pam_selinux.so close should be the first session rule
|
||||
--session required pam_selinux.so close
|
||||
+#-session required pam_selinux.so close
|
||||
session required pam_loginuid.so
|
||||
--session required pam_selinux.so open
|
||||
+#-session required pam_selinux.so open
|
||||
session required pam_namespace.so
|
||||
session optional pam_keyinit.so force revoke
|
||||
session required pam_limits.so
|
||||
-session optional pam_systemd.so
|
||||
+-session optional pam_elogind.so
|
||||
session required pam_unix.so
|
||||
-session optional pam_reauthorize.so prepare
|
||||
50
net-misc/tigervnc/files/tigervnc-1.15.0-fix-inetd.patch
Normal file
50
net-misc/tigervnc/files/tigervnc-1.15.0-fix-inetd.patch
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
https://github.com/TigerVNC/tigervnc/commit/1f1aaca09a1f9919f5169caea9c396b14c2af765
|
||||
https://bugs.gentoo.org/952991
|
||||
|
||||
From 1f1aaca09a1f9919f5169caea9c396b14c2af765 Mon Sep 17 00:00:00 2001
|
||||
From: Pierre Ossman <ossman@cendio.se>
|
||||
Date: Tue, 8 Apr 2025 14:41:04 +0200
|
||||
Subject: [PATCH] Don't print Xvnc banner before parsing args
|
||||
|
||||
If we'll be running in inetd mode, then stdout and stderr will be a
|
||||
client socket and not an appropriate place for logging.
|
||||
|
||||
Mimic what Xorg does instead.
|
||||
---
|
||||
unix/xserver/hw/vnc/xvnc.c | 9 +++++----
|
||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c
|
||||
index ddb249937..a13168c47 100644
|
||||
--- a/unix/xserver/hw/vnc/xvnc.c
|
||||
+++ b/unix/xserver/hw/vnc/xvnc.c
|
||||
@@ -446,7 +446,7 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
||||
}
|
||||
|
||||
if (!strcmp(argv[i], "-showconfig") || !strcmp(argv[i], "-version")) {
|
||||
- /* Already shown at start */
|
||||
+ vncPrintBanner();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -1171,8 +1171,11 @@ InitOutput(ScreenInfo * scrInfo, int argc, char **argv)
|
||||
int i;
|
||||
int NumFormats = 0;
|
||||
|
||||
- if (serverGeneration == 1)
|
||||
+ if (serverGeneration == 1) {
|
||||
+ vncPrintBanner();
|
||||
+
|
||||
LoadExtensionList(vncExtensions, ARRAY_SIZE(vncExtensions), TRUE);
|
||||
+ }
|
||||
|
||||
#if XORG_AT_LEAST(1, 20, 0)
|
||||
xorgGlxCreateVendor();
|
||||
@@ -1266,7 +1269,5 @@ vncClientGone(int fd)
|
||||
int
|
||||
main(int argc, char *argv[], char *envp[])
|
||||
{
|
||||
- vncPrintBanner();
|
||||
-
|
||||
return dix_main(argc, argv, envp);
|
||||
}
|
||||
46
net-misc/tigervnc/files/tigervnc-1.15.0-fltk.patch
Normal file
46
net-misc/tigervnc/files/tigervnc-1.15.0-fltk.patch
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
From 62d47fc4aab4419dbc2937b4aebdc6ff52671f06 Mon Sep 17 00:00:00 2001
|
||||
From: Adrian Fedoreanu <phedoreanu@users.noreply.github.com>
|
||||
Date: Mon, 16 Dec 2024 20:42:14 +0100
|
||||
Subject: [PATCH] Avoid conflict with Fl_Window::maximize()
|
||||
|
||||
First step to enable compatibility with FLTK 1.4.
|
||||
---
|
||||
vncviewer/DesktopWindow.cxx | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
|
||||
index 45d22ef2cf..c11f9f85ec 100644
|
||||
--- a/vncviewer/DesktopWindow.cxx
|
||||
+++ b/vncviewer/DesktopWindow.cxx
|
||||
@@ -174,7 +174,7 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name,
|
||||
#ifdef __APPLE__
|
||||
// On OS X we can do the maximize thing properly before the
|
||||
// window is showned. Other platforms handled further down...
|
||||
- if (maximize) {
|
||||
+ if (::maximize) {
|
||||
int dummy;
|
||||
Fl::screen_work_area(dummy, dummy, w, h, geom_x, geom_y);
|
||||
}
|
||||
@@ -213,7 +213,7 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name,
|
||||
// maximized property on Windows and X11 before showing the window.
|
||||
// See STR #2083 and STR #2178
|
||||
#ifndef __APPLE__
|
||||
- if (maximize) {
|
||||
+ if (::maximize) {
|
||||
maximizeWindow();
|
||||
}
|
||||
#endif
|
||||
--- a/CMakeLists.txt.orig 2026-02-02 09:14:25.723507760 +0800
|
||||
+++ b/CMakeLists.txt 2026-02-02 09:14:49.660635476 +0800
|
||||
@@ -306,11 +306,6 @@
|
||||
set(CMAKE_REQUIRED_INCLUDES ${FLTK_INCLUDE_DIR})
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${FLTK_LIBRARIES})
|
||||
|
||||
- check_cxx_source_compiles("#include <FL/Fl.H>\n#if FL_MAJOR_VERSION != 1 || FL_MINOR_VERSION != 3\n#error Wrong FLTK version\n#endif\nint main(int, char**) { return 0; }" OK_FLTK_VERSION)
|
||||
- if(NOT OK_FLTK_VERSION)
|
||||
- message(FATAL_ERROR "Incompatible version of FLTK")
|
||||
- endif()
|
||||
-
|
||||
set(CMAKE_REQUIRED_FLAGS)
|
||||
set(CMAKE_REQUIRED_INCLUDES)
|
||||
set(CMAKE_REQUIRED_LIBRARIES)
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
Add BUILD_SERVER similar to BUILD_VIEWER
|
||||
|
||||
Add a BUILD_SERVER option similar to BUILD_VIEWER. When BUILD_SERVER is
|
||||
not active, we do not require pam, so also disable everything that needs
|
||||
pam. This allows building the viewer on a machine where pam is not
|
||||
installed.
|
||||
|
||||
See https://bugs.gentoo.org/852830
|
||||
|
||||
Set ENABLE_WAYLAND to 0 if BUILD_SERVER is not active.
|
||||
|
||||
Do not define _FORTIFY_SOURCE, it is already defined in Gentoo.
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -76,7 +76,6 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
|
||||
|
||||
# Tell the compiler to be stringent
|
||||
-add_compile_definitions(_FORTIFY_SOURCE=2)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Wvla")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wformat=2 -Wvla")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wzero-as-null-pointer-constant")
|
||||
@@ -260,6 +259,7 @@ if(BUILD_JAVA)
|
||||
add_subdirectory(java)
|
||||
endif()
|
||||
|
||||
+trioption(BUILD_SERVER "Build TigerVNC server")
|
||||
trioption(BUILD_VIEWER "Build TigerVNC viewer")
|
||||
if(BUILD_VIEWER)
|
||||
# Check for FLTK
|
||||
@@ -341,7 +341,7 @@ if (ENABLE_NETTLE)
|
||||
endif()
|
||||
|
||||
# Check for PAM library
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
find_package(PAM REQUIRED)
|
||||
endif()
|
||||
|
||||
@@ -391,21 +391,9 @@ if(UNIX AND NOT APPLE)
|
||||
endif()
|
||||
|
||||
# check for libraries needed for wayland support
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
trioption(ENABLE_WAYLAND "Enable wayland support")
|
||||
- if(ENABLE_WAYLAND STREQUAL "AUTO")
|
||||
- find_package(GLib)
|
||||
- find_package(Gio)
|
||||
- find_package(Gobject)
|
||||
-
|
||||
- # Portals specific
|
||||
- find_package(PipeWire)
|
||||
- find_package(Uuid)
|
||||
-
|
||||
- # wlroots specific
|
||||
- find_package(WaylandClient)
|
||||
- find_package(Xkbcommon)
|
||||
- else()
|
||||
+ if(ENABLE_WAYLAND)
|
||||
find_package(GLib REQUIRED)
|
||||
find_package(Gio REQUIRED)
|
||||
find_package(Gobject REQUIRED)
|
||||
@@ -418,11 +406,8 @@ if(UNIX AND NOT APPLE)
|
||||
find_package(WaylandClient REQUIRED)
|
||||
find_package(Xkbcommon REQUIRED)
|
||||
endif()
|
||||
- if(NOT GLIB_FOUND OR NOT GIO_FOUND OR NOT GOBJECT_FOUND OR NOT PIPEWIRE_FOUND
|
||||
- OR NOT UUID_FOUND OR NOT WAYLANDCLIENT_FOUND OR NOT XKBCOMMON_FOUND)
|
||||
- set(ENABLE_WAYLAND 0)
|
||||
- message(WARNING "GLib, Gio, Gobject, PipeWire, Uuid, WaylandClient or Xkbcommon NOT found. w0vncserver disabled.")
|
||||
- endif()
|
||||
+else()
|
||||
+ set(ENABLE_WAYLAND 0)
|
||||
endif()
|
||||
|
||||
find_package(GTest)
|
||||
--- a/common/rfb/CMakeLists.txt
|
||||
+++ b/common/rfb/CMakeLists.txt
|
||||
@@ -76,7 +76,7 @@ if(WIN32)
|
||||
target_sources(rfb PRIVATE WinPasswdValidator.cxx)
|
||||
endif(WIN32)
|
||||
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
target_sources(rfb PRIVATE UnixPasswordValidator.cxx)
|
||||
target_include_directories(rfb SYSTEM PRIVATE ${PAM_INCLUDE_DIRS})
|
||||
target_link_libraries(rfb ${PAM_LIBRARIES})
|
||||
--- a/tests/perf/CMakeLists.txt
|
||||
+++ b/tests/perf/CMakeLists.txt
|
||||
@@ -8,8 +8,10 @@ target_link_libraries(convperf test_util rfb)
|
||||
add_executable(decperf decperf.cxx)
|
||||
target_link_libraries(decperf test_util rdr rfb)
|
||||
|
||||
-add_executable(encperf encperf.cxx)
|
||||
-target_link_libraries(encperf test_util core rdr rfb)
|
||||
+if(BUILD_SERVER)
|
||||
+ add_executable(encperf encperf.cxx)
|
||||
+ target_link_libraries(encperf test_util core rdr rfb)
|
||||
+endif()
|
||||
|
||||
if (BUILD_VIEWER)
|
||||
add_executable(fbperf
|
||||
--- a/unix/CMakeLists.txt
|
||||
+++ b/unix/CMakeLists.txt
|
||||
@@ -4,10 +4,12 @@ endif()
|
||||
|
||||
add_subdirectory(tx)
|
||||
add_subdirectory(common)
|
||||
-add_subdirectory(vncconfig)
|
||||
-add_subdirectory(vncpasswd)
|
||||
-add_subdirectory(vncserver)
|
||||
-add_subdirectory(x0vncserver)
|
||||
+if(BUILD_SERVER)
|
||||
+ add_subdirectory(vncconfig)
|
||||
+ add_subdirectory(vncpasswd)
|
||||
+ add_subdirectory(vncserver)
|
||||
+ add_subdirectory(x0vncserver)
|
||||
+endif()
|
||||
|
||||
if (ENABLE_WAYLAND)
|
||||
add_subdirectory(w0vncserver)
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
Add BUILD_SERVER similar to BUILD_VIEWER
|
||||
|
||||
Add a BUILD_SERVER option similar to BUILD_VIEWER. When BUILD_SERVER is
|
||||
not active, we do not require pam, so also disable everything that needs
|
||||
pam. This allows building the viewer on a machine where pam is not
|
||||
installed.
|
||||
|
||||
See https://bugs.gentoo.org/852830
|
||||
|
||||
Set ENABLE_WAYLAND to 0 if BUILD_SERVER is not active.
|
||||
|
||||
Do not define _FORTIFY_SOURCE, it is already defined in Gentoo.
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -76,7 +76,6 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
|
||||
|
||||
# Tell the compiler to be stringent
|
||||
-add_compile_definitions(_FORTIFY_SOURCE=2)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Wvla")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wformat=2 -Wvla")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wzero-as-null-pointer-constant")
|
||||
@@ -260,6 +259,7 @@ if(BUILD_JAVA)
|
||||
add_subdirectory(java)
|
||||
endif()
|
||||
|
||||
+trioption(BUILD_SERVER "Build TigerVNC server")
|
||||
trioption(BUILD_VIEWER "Build TigerVNC viewer")
|
||||
if(BUILD_VIEWER)
|
||||
# Check for FLTK
|
||||
@@ -341,7 +341,7 @@ if (ENABLE_NETTLE)
|
||||
endif()
|
||||
|
||||
# Check for PAM library
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
find_package(PAM REQUIRED)
|
||||
endif()
|
||||
|
||||
@@ -391,7 +391,7 @@ if(UNIX AND NOT APPLE)
|
||||
endif()
|
||||
|
||||
# check for libraries needed for wayland support
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
trioption(ENABLE_WAYLAND "Enable wayland support")
|
||||
if(ENABLE_WAYLAND)
|
||||
if(ENABLE_WAYLAND STREQUAL "AUTO")
|
||||
--- a/common/rfb/CMakeLists.txt
|
||||
+++ b/common/rfb/CMakeLists.txt
|
||||
@@ -76,7 +76,7 @@ if(WIN32)
|
||||
target_sources(rfb PRIVATE WinPasswdValidator.cxx)
|
||||
endif(WIN32)
|
||||
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
|
||||
target_sources(rfb PRIVATE UnixPasswordValidator.cxx)
|
||||
target_include_directories(rfb SYSTEM PRIVATE ${PAM_INCLUDE_DIRS})
|
||||
target_link_libraries(rfb ${PAM_LIBRARIES})
|
||||
--- a/tests/perf/CMakeLists.txt
|
||||
+++ b/tests/perf/CMakeLists.txt
|
||||
@@ -8,8 +8,10 @@ target_link_libraries(convperf test_util rfb)
|
||||
add_executable(decperf decperf.cxx)
|
||||
target_link_libraries(decperf test_util rdr rfb)
|
||||
|
||||
-add_executable(encperf encperf.cxx)
|
||||
-target_link_libraries(encperf test_util core rdr rfb)
|
||||
+if(BUILD_SERVER)
|
||||
+ add_executable(encperf encperf.cxx)
|
||||
+ target_link_libraries(encperf test_util core rdr rfb)
|
||||
+endif()
|
||||
|
||||
if (BUILD_VIEWER)
|
||||
add_executable(fbperf
|
||||
--- a/unix/CMakeLists.txt
|
||||
+++ b/unix/CMakeLists.txt
|
||||
@@ -4,10 +4,12 @@ endif()
|
||||
|
||||
add_subdirectory(tx)
|
||||
add_subdirectory(common)
|
||||
-add_subdirectory(vncconfig)
|
||||
-add_subdirectory(vncpasswd)
|
||||
-add_subdirectory(vncserver)
|
||||
-add_subdirectory(x0vncserver)
|
||||
+if(BUILD_SERVER)
|
||||
+ add_subdirectory(vncconfig)
|
||||
+ add_subdirectory(vncpasswd)
|
||||
+ add_subdirectory(vncserver)
|
||||
+ add_subdirectory(x0vncserver)
|
||||
+endif()
|
||||
|
||||
if (ENABLE_WAYLAND)
|
||||
add_subdirectory(w0vncserver)
|
||||
19
net-misc/tigervnc/metadata.xml
Normal file
19
net-misc/tigervnc/metadata.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>ceamac@gentoo.org</email>
|
||||
<name>Viorel Munteanu</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="dri3">Build with DRI3 support</flag>
|
||||
<flag name="drm">Build with DRM support</flag>
|
||||
<flag name="java">Build TigerVNC Java viewer</flag>
|
||||
<flag name="pwquality">Use <pkg>dev-libs/libpwquality</pkg> for password quality checking in vncpasswd</flag>
|
||||
<flag name="server">Build TigerVNC server</flag>
|
||||
<flag name="viewer">Build TigerVNC viewer</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">TigerVNC/tigervnc</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
240
net-misc/tigervnc/tigervnc-1.15.0-r1.ebuild
Normal file
240
net-misc/tigervnc/tigervnc-1.15.0-r1.ebuild
Normal file
|
|
@ -0,0 +1,240 @@
|
|||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=1
|
||||
inherit autotools cmake eapi9-ver flag-o-matic java-pkg-opt-2 optfeature systemd xdg
|
||||
|
||||
XSERVER_VERSION="21.1.15"
|
||||
XSERVER_PATCH_VERSION="21"
|
||||
|
||||
DESCRIPTION="Remote desktop viewer display system"
|
||||
HOMEPAGE="https://tigervnc.org"
|
||||
SRC_URI="server? ( https://www.x.org/releases/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.xz )"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/TigerVNC/tigervnc/"
|
||||
else
|
||||
SRC_URI+=" https://github.com/TigerVNC/tigervnc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="dri3 +drm gnutls java nls +opengl +server +viewer xinerama"
|
||||
REQUIRED_USE="
|
||||
dri3? ( drm )
|
||||
java? ( viewer )
|
||||
opengl? ( server )
|
||||
|| ( server viewer )
|
||||
"
|
||||
|
||||
# TODO: sys-libs/libselinux
|
||||
# <fltk-1.4: https://github.com/TigerVNC/tigervnc/pull/1887#issuecomment-2545662546
|
||||
COMMON_DEPEND="
|
||||
dev-libs/gmp:=
|
||||
dev-libs/nettle:=
|
||||
media-libs/libjpeg-turbo:=
|
||||
virtual/zlib:=
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrandr
|
||||
x11-libs/pixman
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
nls? ( virtual/libiconv )
|
||||
server? (
|
||||
dev-libs/openssl:0=
|
||||
sys-libs/pam
|
||||
x11-libs/libXau
|
||||
x11-libs/libxcvt
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXfont2
|
||||
x11-libs/libXtst
|
||||
x11-libs/pixman
|
||||
x11-apps/xauth
|
||||
x11-apps/xinit
|
||||
x11-apps/xkbcomp
|
||||
x11-apps/xsetroot
|
||||
x11-misc/xkeyboard-config
|
||||
dri3? (
|
||||
media-libs/mesa[opengl]
|
||||
x11-libs/libxshmfence
|
||||
)
|
||||
opengl? ( media-libs/libglvnd[X] )
|
||||
!net-misc/turbovnc[server]
|
||||
)
|
||||
viewer? (
|
||||
media-video/ffmpeg:=
|
||||
x11-libs/fltk:=
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
!net-misc/turbovnc[viewer]
|
||||
)
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
java? ( >=virtual/jre-1.8:* )
|
||||
server? ( dev-lang/perl )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
java? ( >=virtual/jdk-1.8:* )
|
||||
drm? ( x11-libs/libdrm )
|
||||
server? (
|
||||
media-fonts/font-util
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXi
|
||||
x11-libs/libxkbfile
|
||||
x11-libs/libXrender
|
||||
x11-libs/xtrans
|
||||
x11-misc/util-macros
|
||||
opengl? ( media-libs/mesa )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Restore Java viewer
|
||||
"${FILESDIR}"/${PN}-1.11.0-install-java-viewer.patch
|
||||
"${FILESDIR}"/${PN}-1.14.0-xsession-path.patch
|
||||
"${FILESDIR}"/${PN}-1.12.80-disable-server-and-pam.patch
|
||||
"${FILESDIR}"/${PN}-1.14.1-pam.patch
|
||||
"${FILESDIR}"/${P}-fix-inetd.patch
|
||||
# https://github.com/TigerVNC/tigervnc/issues/1949
|
||||
"${FILESDIR}"/${PN}-1.15.0-fltk.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
use server && unpack xorg-server-${XSERVER_VERSION}.tar.xz
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use server; then
|
||||
cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/. unix/xserver || die
|
||||
fi
|
||||
|
||||
cmake_src_prepare
|
||||
|
||||
if use server; then
|
||||
cd unix/xserver || die
|
||||
eapply ../xserver${XSERVER_PATCH_VERSION}.patch
|
||||
eautoreconf
|
||||
sed -i '/strcmp.*-fakescreenfps/,/^ \}/d' os/utils.c || die
|
||||
|
||||
if use drm; then
|
||||
cd "${WORKDIR}" && \
|
||||
sed -i 's:\(drm_fourcc.h\):libdrm/\1:' $(grep drm_fourcc.h -rl .) || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use arm || use hppa; then
|
||||
append-flags "-fPIC"
|
||||
fi
|
||||
|
||||
local mycmakeargs=(
|
||||
-DENABLE_GNUTLS=$(usex gnutls)
|
||||
-DENABLE_NLS=$(usex nls)
|
||||
-DBUILD_JAVA=$(usex java)
|
||||
-DBUILD_SERVER=$(usex server)
|
||||
-DBUILD_VIEWER=$(usex viewer)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
|
||||
if use server; then
|
||||
cd unix/xserver || die
|
||||
econf \
|
||||
$(use_enable opengl glx) \
|
||||
$(use_enable drm libdrm) \
|
||||
--disable-config-hal \
|
||||
--disable-config-udev \
|
||||
--disable-devel-docs \
|
||||
--disable-dri \
|
||||
$(use_enable dri3) \
|
||||
--disable-glamor \
|
||||
--disable-kdrive \
|
||||
--disable-libunwind \
|
||||
--disable-linux-acpi \
|
||||
--disable-record \
|
||||
--disable-selective-werror \
|
||||
--disable-static \
|
||||
--disable-unit-tests \
|
||||
--disable-xephyr \
|
||||
$(use_enable xinerama) \
|
||||
--disable-xnest \
|
||||
--disable-xorg \
|
||||
--disable-xvfb \
|
||||
--disable-xwin \
|
||||
--enable-dri2 \
|
||||
--with-pic \
|
||||
--without-dtrace \
|
||||
--with-sha1=libcrypto
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
|
||||
if use server; then
|
||||
# deps of the vnc module and the module itself
|
||||
local d subdirs=(
|
||||
fb xfixes Xext dbe $(usex opengl glx "") $(usev dri3) randr render
|
||||
damageext miext Xi xkb composite dix mi os present hw/vnc
|
||||
)
|
||||
for d in "${subdirs[@]}"; do
|
||||
emake -C unix/xserver/"${d}"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
if use server; then
|
||||
emake -C unix/xserver/hw/vnc DESTDIR="${D}" install
|
||||
rm -v "${ED}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la || die
|
||||
|
||||
newconfd "${FILESDIR}"/${PN}-1.14.0.confd ${PN}
|
||||
newinitd "${FILESDIR}"/${PN}-1.14.0.initd ${PN}
|
||||
|
||||
systemd_douserunit unix/vncserver/vncserver@.service
|
||||
|
||||
# install vncserver to /usr/bin too, see bug #836620
|
||||
dosym -r /usr/libexec/vncserver /usr/bin/vncserver
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
use server && ver_replacing -lt 1.13.1-r3 && {
|
||||
elog 'OpenRC users: please migrate to one service per display as documented here:'
|
||||
elog 'https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:'
|
||||
elog
|
||||
}
|
||||
|
||||
use server && {
|
||||
elog 'PLEASE NOTE:'
|
||||
elog ' The default config directory is now ${XDG_CONFIG_HOME}/tigervnc or'
|
||||
elog ' ~/.config/tigervnc instead of ~/.vnc'
|
||||
elog
|
||||
}
|
||||
|
||||
local OPTIONAL_DM="gnome-base/gdm x11-misc/lightdm x11-misc/sddm x11-misc/slim"
|
||||
use server && \
|
||||
optfeature "keeping track of the xorg-server module" net-misc/tigervnc-xorg-module && \
|
||||
optfeature_header "Install any additional display manager package:" && \
|
||||
optfeature "proper session support" ${OPTIONAL_DM}
|
||||
}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
DIST insomnia-bin-12.0.0.tar.gz 479596302 BLAKE2B 8c042bb20fad41f96188ace2b11d8ea39edffb152cea57a7bb23a31417f6e9b2c7b2372c806c50c904d6197f97da0af8d3de4860db72fa5f7ac81d4bfe3440fb SHA512 c155f7aa9097258fb6a1a3c85559f500723e8d727a4b7ea51701618f740b9d80410857e954cf2a59e276abcf35f8621dc2ab5172e07d2366ec14b9ef3e1e087c
|
||||
DIST insomnia-bin-12.1.0.tar.gz 480098283 BLAKE2B 2e5bd8a8a033999090534436b893bbcb34afd6c44cead9474e68851abc65687e2e64d03be8e1a65ed87a40e2ea4cb00e0c4019dad8f4ad1b5be1ecef0807cdad SHA512 4023efcb89a19f06423b3ec28e17c39547f1731f82bff9f85f757381e05d069cebe297edd8898ed01265e1c5e07dcc9afc9923514fe6bc278d7ea36b0d08d88c
|
||||
DIST insomnia-bin-12.3.0.tar.gz 476202901 BLAKE2B 1fac082771a17ef0b98a279b2ddb31c6a6e897ab0deb604a9346de07ea9c5ee0b4bad7246a0c0821b2342286abb47744df4090e07254b703538845958bf974a9 SHA512 47acfafa65ca0f484a13804a5b0b20bf4c24309a90fc1ac57815d7c1d284a69724de7c17f41ba425d45dcaf2ec9cc270be1da642d34e96857bb62339808cbd18
|
||||
|
|
|
|||
|
|
@ -2,7 +2,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
This script extracts gradle chache files into a separate directory for futher
|
||||
FIXME: migrate to
|
||||
https://gitlab.com/ysb33rOrg/gradle/ivypot-gradle-plugin
|
||||
or
|
||||
https://github.com/mdietrichstein/gradle-offline-dependencies-plugin
|
||||
|
||||
This script extracts gradle cache files into a separate directory for futher
|
||||
offline installation
|
||||
|
||||
Add the following in build.gradle:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue