initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

58
xenocara-xinit/PKGBUILD Normal file
View File

@@ -0,0 +1,58 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
# Based on xorg-xinit package
pkgname=xenocara-xinit
_openbsdver=6.9
pkgver=1.4.1
pkgrel=1
pkgdesc="Xenocara initialisation program"
arch=(i686 x86_64)
url="https://www.xenocara.org"
license=('X11')
depends=('libx11' 'xenocara-xauth' 'xenocara-xrdb' 'xenocara-xmodmap' 'inetutils')
makedepends=('xenocara-util-macros')
optdepends=('xenocara-twm' 'xenocara-xconsole' 'xterm')
backup=('etc/X11/xinit/xserverrc'
'etc/X11/xinit/xinitrc')
provides=('xorg-xinit')
conflicts=('xorg-xinit')
replaces=('xorg-xinit')
source=(https://repo.hyperbola.info:50000/sources/xenocara-libre/$_openbsdver/app/xinit-$pkgver.tar.lz{,.sig}
move-serverauthfile-into-tmp.patch
fix-startx-to-xauth-treat-ipv6-properly.patch
fix-hostname.patch
xserverrc)
options=(!emptydirs)
sha512sums=('1c60de8403efa366e7c047f012abbc87aa61acf41adbba11b601c750279d408b26464b672a7299c9f2862de914831501630fe3809566d541568cf9fe55632727'
'SKIP'
'2785de4871ec28de147943ed2264dce8ca223b75e8a658cbd98acd2d7d9134a9d294de2555ea5089f82de2835685ddb989e5f445d72fa6117912acbbc3ea91b3'
'0661ab1bc767143c7eaef4414bec69b8f294730d6f73743a1009e97ec17105049bd2bd5d1ba402ffb64e47c5373a0e2a572b177fb1448ace3242eaf464009f80'
'9a0b858c9960ad0260cd302d9e9c43d22c5e3a75ec92ebf34c5c2a5fc2f04967ecddd1e87382ce3ff16083418c0194d28e0ac7a3048666f2075baeaaca72fae2'
'f86d96d76bcb340021e7904925f0029f8662e4dfc32489198b3a8695dca069da496539e2287249c763fe9c4d8d5d591fd18fe49a0bee822cbbd0eb712efbb89b')
validpgpkeys=('C92BAA713B8D53D3CAE63FC9E6974752F9704456') # André Silva
prepare() {
cd "xenocara-$_openbsdver/app/xinit"
patch -p1 -i "$srcdir/move-serverauthfile-into-tmp.patch"
patch -p1 -i "$srcdir/fix-startx-to-xauth-treat-ipv6-properly.patch"
patch -p1 -i "$srcdir/fix-hostname.patch"
autoreconf -fi
}
build() {
cd "xenocara-$_openbsdver/app/xinit"
./configure --prefix=/usr \
--with-xinitdir=/etc/X11/xinit \
--with-wm=twm \
--with-xconsole=xconsole
make
}
package() {
cd "xenocara-$_openbsdver/app/xinit"
make DESTDIR="$pkgdir" install
install -m644 "$srcdir/xserverrc" "$pkgdir/etc/X11/xinit/xserverrc"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

View File

@@ -0,0 +1,13 @@
diff --git a/app/xinit/startx.cpp b/app/xinit/startx.cpp
index 3ab9a26a..d26ab927 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -255,6 +255,8 @@ if [ x"$enable_xauth" = x1 ] ; then
Linux*)
if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
hostname=`hostname -f`
+ elif [ -z "`hostname --version 2>&1 | grep net-tools`" ]; then
+ hostname=`hostname -f`
else
hostname=`hostname`
fi

View File

@@ -0,0 +1,16 @@
diff --git a/startx.cpp b/startx.cpp
index fe21fb3..764f69f 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -296,9 +296,9 @@ EOF
XCOMM now add the same credentials to the client authority file
XCOMM if '$displayname' already exists do not overwrite it as another
XCOMM server may need it. Add them to the '$xserverauthfile' instead.
- for displayname in $authdisplay $hostname$authdisplay; do
+ for displayname in $authdisplay $hostname/unix$authdisplay; do
authcookie=`XAUTH list "$displayname" @@
- | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
+ | sed -n "s/.*$hostname\/unix$authdisplay[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
if [ "z${authcookie}" = "z" ] ; then
XAUTH -q << EOF
add $displayname . $mcookie

View File

@@ -0,0 +1,13 @@
diff --git a/startx.cpp b/startx.cpp
index 3ab9a26..fe21fb3 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -281,7 +281,7 @@ if [ x"$enable_xauth" = x1 ] ; then
dummy=0
XCOMM create a file with auth information for the server. ':0' is a dummy.
- xserverauthfile=`mktemp ${HOME}/.serverauth.XXXXXXXXXX`
+ xserverauthfile=`mktemp -p /tmp serverauth.XXXXXXXXXX`
trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie

2
xenocara-xinit/xserverrc Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/X -nolisten tcp "$@"