xinit: add support for systemd's logind (via Arch).
This commit is contained in:
parent
8e77bf0dd7
commit
de33d5fecf
6 changed files with 86 additions and 6 deletions
17
srcpkgs/xinit/files/xinitrc
Normal file
17
srcpkgs/xinit/files/xinitrc
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# ~/.xinitrc
|
||||||
|
#
|
||||||
|
# Executed by startx (run your window manager from here)
|
||||||
|
|
||||||
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||||
|
for f in /etc/X11/xinit/xinitrc.d/*; do
|
||||||
|
[ -x "$f" ] && . "$f"
|
||||||
|
done
|
||||||
|
unset f
|
||||||
|
fi
|
||||||
|
|
||||||
|
# exec gnome-session
|
||||||
|
# exec startkde
|
||||||
|
# exec startxfce4
|
||||||
|
# ...or the Window Manager of your choice
|
6
srcpkgs/xinit/files/xserverrc
Normal file
6
srcpkgs/xinit/files/xserverrc
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if [ -z "$XDG_VTNR" ]; then
|
||||||
|
exec /usr/bin/X -nolisten tcp "$@"
|
||||||
|
else
|
||||||
|
exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR
|
||||||
|
fi
|
10
srcpkgs/xinit/files/xsession
Normal file
10
srcpkgs/xinit/files/xsession
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# ~/.xsession
|
||||||
|
#
|
||||||
|
# Executed by xdm/gdm/kdm at login
|
||||||
|
#
|
||||||
|
|
||||||
|
/bin/bash --login -i ~/.xinitrc
|
||||||
|
|
18
srcpkgs/xinit/patches/06_move_serverauthfile_into_tmp.patch
Normal file
18
srcpkgs/xinit/patches/06_move_serverauthfile_into_tmp.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
Move startx auth files in /tmp so they are removed on reboot.
|
||||||
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357736
|
||||||
|
The trap patch didn't seem to work on reboot.
|
||||||
|
---
|
||||||
|
startx.cpp | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- startx.cpp
|
||||||
|
+++ startx.cpp
|
||||||
|
@@ -273,7 +273,7 @@
|
||||||
|
dummy=0
|
||||||
|
|
||||||
|
XCOMM create a file with auth information for the server. ':0' is a dummy.
|
||||||
|
- xserverauthfile=$HOME/.serverauth.$$
|
||||||
|
+ 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
|
14
srcpkgs/xinit/patches/fs25361.patch
Normal file
14
srcpkgs/xinit/patches/fs25361.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
--- startx.cpp 2011-08-02 18:26:57.161711018 +0400
|
||||||
|
+++ startx.cpp 2011-08-02 19:06:39.348816866 +0400
|
||||||
|
@@ -290,9 +290,9 @@
|
||||||
|
XCOMM now add the same credentials to the client authority file
|
||||||
|
XCOMM if '$displayname' already exists do not overwrite it as another
|
||||||
|
XCOMM server man 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
|
|
@ -1,18 +1,33 @@
|
||||||
# Template build file for 'xinit'.
|
# Template build file for 'xinit'.
|
||||||
pkgname=xinit
|
pkgname=xinit
|
||||||
version=1.3.2
|
version=1.3.2
|
||||||
distfiles="${XORG_SITE}/app/$pkgname-$version.tar.bz2"
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
make_build_args="XINITDIR=/etc/X11/xinit"
|
configure_args="--with-xinitdir=/etc/X11/xinit"
|
||||||
make_install_args="XINITDIR=/etc/X11/xinit"
|
|
||||||
makedepends="pkg-config libX11-devel"
|
makedepends="pkg-config libX11-devel"
|
||||||
revision=1
|
|
||||||
short_desc="X init program"
|
short_desc="X init program"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
homepage="http://xorg.freedesktop.org/"
|
||||||
|
license="MIT"
|
||||||
|
distfiles="${XORG_SITE}/app/$pkgname-$version.tar.bz2"
|
||||||
checksum=a1867fdaa83f68750b12ba4305c3c62f5992d0f52cfeb98e96c27a8e690e0235
|
checksum=a1867fdaa83f68750b12ba4305c3c62f5992d0f52cfeb98e96c27a8e690e0235
|
||||||
long_desc="
|
long_desc="
|
||||||
This package provides xinit and startx, utilities for starting the
|
This package provides xinit and startx, utilities for starting the
|
||||||
X Window System server. This is from the modular X.org."
|
X Window System server."
|
||||||
|
|
||||||
conf_files="/etc/X11/xinit/xinitrc"
|
conf_files="
|
||||||
|
/etc/X11/xinit/xinitrc
|
||||||
|
/etc/X11/xinit/xserverrc
|
||||||
|
/etc/skel/.xinitrc
|
||||||
|
/etc/skel/.xsession"
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
sed -i -e 's/XSLASHGLOB.sh/XSLASHGLOB/' xinitrc.cpp
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vinstall ${FILESDIR}/xinitrc 644 etc/skel .xinitrc
|
||||||
|
vinstall ${FILESDIR}/xsession 644 etc/skel .xsession
|
||||||
|
vinstall ${FILESDIR}/xserverrc 644 etc/X11/xinit
|
||||||
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue