summaryrefslogtreecommitdiff
path: root/x11-apps/xinit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-01-07 06:41:06 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-01-07 06:41:06 +0000
commitd69399c7befdd98cda62d6a1788ae2aa7f104c5e (patch)
treeeac7184f4cfe7d67580c1d0a0d9942a91e6cb4ee /x11-apps/xinit
parente4d9d6796d5018e338f0b27a3bc97716195bf0b8 (diff)
gentoo auto-resync : 07:01:2025 - 06:41:06
Diffstat (limited to 'x11-apps/xinit')
-rw-r--r--x11-apps/xinit/Manifest4
-rw-r--r--x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch60
-rw-r--r--x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch34
-rw-r--r--x11-apps/xinit/xinit-1.4.3.ebuild75
4 files changed, 173 insertions, 0 deletions
diff --git a/x11-apps/xinit/Manifest b/x11-apps/xinit/Manifest
index 8a2e42de3f34..1f7b7c1c2e11 100644
--- a/x11-apps/xinit/Manifest
+++ b/x11-apps/xinit/Manifest
@@ -5,7 +5,11 @@ AUX chooser.sh 1192 BLAKE2B d0afaaed792dae06c4716ea33924568aca5da3251b15067fc5ba
AUX xinit-1.3.3-gentoo-customizations.patch 1494 BLAKE2B 1a67f486324e07aee07078648101a3f82b10d5953084c6afe6564530132fb92d299c44559e4d6d3ab74554139be02c285b2076b959413ec248b57cc2aafbc733 SHA512 810066a3af51fd31c177f1aa33d3020e63d1656bacc297fa2bb44e0f3745bfd27d466745ebb07343f7b95339a9f6c8821c6f117e0b2f99724e21a0869427228b
AUX xinit-1.4.2-move-serverauthfile-into-tmp.patch 738 BLAKE2B 5639a4e5ff3b1d695871acb69d98a001bb3289efff7b0b95e3f1844bf54c48211ccbd14150a3d598832a322661304403ffda3b4b408975898a7b91e9601eba5c SHA512 16be1614af549252c4e82e956b3216b5d63005874bde31e8aabd4f0fd23a0294c903289bbc70e3cb07bacffdc5a07a6e9ea0396f3f9d01841a3db680cef4aac0
AUX xinit-1.4.2-startx-current-vt.patch 799 BLAKE2B d87a479c3a30daec7606cacabdc4724dad4a5bd4051faee22a620333d2e1adc0f4590ace50914cc3edbd958c037beb4356acfd2863ca976627370843d566b339 SHA512 de219bad36a6200531599750601572df4812c6007baa48ab28f7a9210edbb148f270c13c891afaf6ae53f6798b99e055f3b5fd5ca797241b037c83be6b83e4fb
+AUX xinit-1.4.3-gentoo-customizations.patch 1418 BLAKE2B 4f07b017e2a40be04ec49c9b48d1778a6ce9cefb335adc97e333afc2bf83e80d3982da64aff9d27de3c7c4b39c4a2108209630fd7a96f004184e026cf494abf2 SHA512 1cebb1f54270af23b82043a8a82aede5b9a29a0d735a9a4845ed7f8ca2bd227b1a97394eb8812bd1934584cb04e54b68dc88afb60950b401e76339fe16eb2b24
+AUX xinit-1.4.3-startx-current-vt.patch 1094 BLAKE2B aab3771d592f66aca9504da66b251ec8b700e2cbe9ddd7970a8b363a57454690288d1888a64efdb3ee13a1029f77121a9b7eedf635518d1f01a51dc1d3c5cd6c SHA512 f88f1572fa85c03d47e1257d5d8375f9d1f5fa526424fedd557391b4c004ffe4100bd241f4a6c270055bfb038d88111b9bbdb9e5f86e2ce17eab39ecb38332cc
AUX xserverrc.2 143 BLAKE2B b33fac4b5ba731c79167d21a07840c46abfbb33e8fbb80aa1c3f23a8717f836819da3a947b72bd99c7a14516534e9771033bcd1e26d167f2f7083be20eae3b2f SHA512 61afea54f66b9f397860e467cf87a41e1d9f97d7194930bccc254e44dd4178bca7b402bff7aa2a1d6f44a91680f3f1ee10a5b57e527aaff80438623edc1b07c5
DIST xinit-1.4.2.tar.xz 156728 BLAKE2B 8f5c16d5ec9cc16c734b1661def4f7e68321259f24e7aac2b039b8e142fb4a324d2471a0f04d3b4448ae713082ad9ec7018083b00ed1a93aac90fa7db172247d SHA512 4b62c2edd97b40133577cbba88b3f31b36c5634b4eb667ef0c302e8358dc1c55a255abe42aaadc910d8aa9ea0e3add157a12a301382f1cdbe091df4e1215fae0
+DIST xinit-1.4.3.tar.xz 158348 BLAKE2B 321400aa6572a7309ece961c1f053382825de5c12a235eb7f4345d5da4f95a199a9e1987e21baa5c3a472d2638e8c18a1610e4f0d617f3205f58cd66415efb6a SHA512 ff754567d2224d1ff5023b302cae3a435950a6f24a773e214ea108b96d18b722d4cc86d0e25a7d92edea1307e3037248b4da004c1b392f73ba7bc1e04a94b77b
EBUILD xinit-1.4.2.ebuild 2229 BLAKE2B e4a75c2c6afb45f43f4eb987c1b42dcf37ec24d61ff83ae09b92903faf9912f4fb5511e4a53006d09db98277a86223fbab2e12b01a7e5eefb6af53f64b447c1f SHA512 86f54780baf5cbb5157e5d4a394a8af2ebc613e8aab5def17def7537305075f9f22469df11eb6306a51a5346028b27b1dc795fc6dcc1717859388b16240e947d
+EBUILD xinit-1.4.3.ebuild 2237 BLAKE2B 4d4bd857923449d5313cb36e2ba65d5ce8a4cbef16adbc528052267fd0d2ae7c390d3e4085d41760ad5170fcbbb2e0c1896599667ca60f9fdc1e8fdc0ff274cd SHA512 946465e816e31533dc1fc2e9712680a3a1e1f468cc6408360c476eb202a50737c9f4a066b33bba2c705c1ba62c4037160571885ddcea2d6e67d94172d1ce3417
MISC metadata.xml 550 BLAKE2B 3c7e6936cc7db503b1f4e654e6cc42edfa82524403d8de329e058cb4a8e084075f1c7047e494952847ef137c0d411b4ab20e1f54e4264448040e4d62af0f1ee2 SHA512 d903eb4c148009926f925d6f20ee29316d98adf4ee3431fd47f098d907fc9e777bfa33d34d90163fdc69e6ac7c895f67852269cc938deb2c22102ccb1ca5393b
diff --git a/x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch b/x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch
new file mode 100644
index 000000000000..bdbde8614105
--- /dev/null
+++ b/x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch
@@ -0,0 +1,60 @@
+From 51b59e76c26da000de8a3d3f32d440d4213c2964 Mon Sep 17 00:00:00 2001
+From: Tomas Chvatal <scarabeus@gentoo.org>
+Date: Mon, 1 Nov 2010 16:46:36 +0100
+Subject: [PATCH] Gentoo customizations.
+
+Signed-off-by: Tomas Chvatal <scarabeus@gentoo.org>
+---
+ xinitrc.cpp | 26 ++++++++++++++++++--------
+ 1 file changed, 18 insertions(+), 8 deletions(-)
+
+diff --git ./xinitrc.cpp ./xinitrc.cpp
+index fa1675c..7cff166 100644
+--- ./xinitrc.cpp
++++ ./xinitrc.cpp
+@@ -9,8 +9,8 @@ xmodmap=XMODMAP
+
+ userresources=$HOME/.Xresources
+ usermodmap=$HOME/.Xmodmap
+-sysresources=$xinitdir/.Xresources
+-sysmodmap=$xinitdir/.Xmodmap
++sysresources=$xinitdir/Xresources
++sysmodmap=$xinitdir/Xmodmap
+
+ XCOMM merge in defaults and keymaps
+
+@@ -40,15 +40,25 @@ fi
+
+ XCOMM start some nice programs
+
++if [ -n "`/etc/X11/chooser.sh`" ]; then
++ command="`/etc/X11/chooser.sh`"
++else
++ failsafe="yes"
++fi
++
+ if [ -d $xinitdir/xinitrc.d ] ; then
+- for f in "$xinitdir/xinitrc.d"/?*.sh ; do
++ for f in "$xinitdir/xinitrc.d"/?* ; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
+ fi
+
+-$twm &
+-$xclock -geometry 50x50-1+1 &
+-$xterm -geometry 80x50+494+51 &
+-$xterm -geometry 80x20+494-0 &
+-exec $xterm -geometry 80x66+0+0 -name login
++if [ -n "$failsafe" ]; then
++ $twm &
++ $xclock -geometry 50x50-1+1 &
++ $xterm -geometry 80x50+494+51 &
++ $xterm -geometry 80x20+494-0 &
++ exec $xterm -geometry 80x66+0+0 -name login
++else
++ exec $command
++fi
+--
+2.45.2
+
diff --git a/x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch b/x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch
new file mode 100644
index 000000000000..2feaedca6c2f
--- /dev/null
+++ b/x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch
@@ -0,0 +1,34 @@
+From 14903751c4d53bb69c3ee241524888cf746784c6 Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Sat, 3 Dec 2022 18:21:50 -0500
+Subject: [PATCH] files/xinit-1.4.0-startx-current-vt.patch
+
+---
+ startx.cpp | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git ./startx.cpp ./startx.cpp
+index 645566f..aa1dd7a 100644
+--- ./startx.cpp
++++ ./startx.cpp
+@@ -211,17 +211,6 @@ XCOMM process server arguments
+ if [ "$server" = "" ]; then
+ server=$defaultserver
+
+-if [ "$(uname -s)" = "Linux" ] ; then
+- XCOMM When starting the defaultserver start X on the current tty to avoid
+- XCOMM the startx session being seen as inactive:
+- XCOMM "https://bugzilla.redhat.com/show_bug.cgi?id=806491"
+- tty=$(tty)
+- if expr "$tty" : '/dev/tty[0-9][0-9]*$' > /dev/null; then
+- tty_num=${tty#/dev/tty}
+- vtarg="vt$tty_num -keeptty"
+- fi
+-fi
+-
+ XCOMM For compatibility reasons, only use xserverrc if there were no server command line arguments
+ if [ "$serverargs" = "" ] && [ "$display" = "" ]; then
+ if [ -f "$userserverrc" ]; then
+--
+2.45.2
+
diff --git a/x11-apps/xinit/xinit-1.4.3.ebuild b/x11-apps/xinit/xinit-1.4.3.ebuild
new file mode 100644
index 000000000000..204a32fcc6aa
--- /dev/null
+++ b/x11-apps/xinit/xinit-1.4.3.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xorg-3
+
+DESCRIPTION="X Window System initializer"
+
+LICENSE="${LICENSE} GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm-linux ~x86-linux"
+IUSE="twm"
+
+RDEPEND="
+ x11-apps/xauth
+ x11-libs/libX11
+"
+DEPEND="${RDEPEND}"
+PDEPEND="x11-apps/xrdb
+ twm? (
+ x11-apps/xclock
+ x11-apps/xsm
+ x11-terms/xterm
+ x11-wm/twm
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.3-gentoo-customizations.patch"
+ "${FILESDIR}/${PN}-1.4.3-startx-current-vt.patch"
+ "${FILESDIR}/${PN}-1.4.2-move-serverauthfile-into-tmp.patch"
+)
+
+XORG_CONFIGURE_OPTIONS=(
+ --with-xinitdir="${EPREFIX}"/etc/X11/xinit
+)
+
+src_install() {
+ xorg-3_src_install
+
+ exeinto /etc/X11
+ doexe "${FILESDIR}"/chooser.sh
+ exeinto /etc/X11/Sessions
+ doexe "${FILESDIR}"/Xsession
+ exeinto /etc/X11/xinit
+ newexe "${FILESDIR}"/xserverrc.2 xserverrc
+ exeinto /etc/X11/xinit/xinitrc.d/
+ doexe "${FILESDIR}"/00-xhost
+
+ insinto /usr/share/xsessions
+ doins "${FILESDIR}"/Xsession.desktop
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
+ ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
+ ewarn "any executable. When you run startx, it will run this as the login session."
+ ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
+ ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
+ ewarn "Here's an example of setting it for the whole system:"
+ ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
+ ewarn " env-update && source /etc/profile"
+ fi
+
+ for v in ${REPLACING_VERSIONS}; do
+ if ver_test "$v" "-lt" "1.4.1"; then
+ ewarn "Starting with ${CATEGORY}/${PN}-1.4.1 serverauth files are no longer kept in the"
+ ewarn "home directory but rather are created in \$TMPDIR (typically /tmp). The change"
+ ewarn "is transparent for most of users, however those that use runtime temporary"
+ ewarn "directories cleaning tools, like app-admin/tmpreaper, may need to adjust them"
+ ewarn "not to remove the 'serverauth.*' files."
+ fi
+ done
+}