xinit improvements
This commit is contained in:
1 parent
349ab6003c
commit
35063aab6e
7 files changed
+33
-4
No files matched your search
File renamed without changes.
@@ -0,0 +1,4 @@
|
|||||||
|
# Configuration for /etc/init.d/xinit
|
||||||
|
## X11 autologin service
|
||||||
|
## Target user name (default=root)
|
||||||
|
#USER=root
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
|
name="xinit"
|
||||||
|
description="X11 autologin service"
|
||||||
|
|
||||||
|
start(){
|
||||||
|
exec /bin/busybox su - $USER -c "exec /usr/bin/startx"
|
||||||
|
}
|
||||||
|
|
||||||
|
depend()
|
||||||
|
{
|
||||||
|
need dbus
|
||||||
|
provide gui display-manager getty
|
||||||
|
}
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+15
-4
@@ -8,14 +8,18 @@ email='bayramk@gmail.com'
|
|||||||
maintainer='bk'
|
maintainer='bk'
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
source=("https://gitlab.freedesktop.org/xorg/app/xinit/-/archive/xinit-$version/xinit-xinit-1.4.2.tar.gz"
|
source=("https://gitlab.freedesktop.org/xorg/app/xinit/-/archive/xinit-$version/xinit-xinit-1.4.2.tar.gz"
|
||||||
"xinitrc"
|
"files/xinitrc"
|
||||||
"xserverrc"
|
"files/xserverrc"
|
||||||
"Xsession"
|
"files/Xsession"
|
||||||
"xinit.sysconf"
|
"files/xinit.sysconf"
|
||||||
|
"files/xinit.confd"
|
||||||
|
"files/xinit.initd"
|
||||||
)
|
)
|
||||||
depends=(xorg-macros xorgproto libX11)
|
depends=(xorg-macros xorgproto libX11)
|
||||||
makedepends=()
|
makedepends=()
|
||||||
md5sums=('0855364c1c869679300d55e9dd57e2aa'
|
md5sums=('0855364c1c869679300d55e9dd57e2aa'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
@@ -43,5 +47,12 @@ package(){
|
|||||||
install -m755 -D ../Xsession "$DESTDIR"/etc/X11/xinit/Xsession
|
install -m755 -D ../Xsession "$DESTDIR"/etc/X11/xinit/Xsession
|
||||||
install -m755 ../xserverrc "$DESTDIR"/etc/X11/xinit/xserverrc
|
install -m755 ../xserverrc "$DESTDIR"/etc/X11/xinit/xserverrc
|
||||||
install -m755 -D ../xinit.sysconf "$DESTDIR"/etc/sysconf.d/xinit
|
install -m755 -D ../xinit.sysconf "$DESTDIR"/etc/sysconf.d/xinit
|
||||||
|
install -m755 -D ../xinit.initd "$DESTDIR"/etc/init.d/xinit
|
||||||
|
install -m755 -D ../xinit.confd "$DESTDIR"/etc/conf.d/xinit
|
||||||
|
# allow local connections config
|
||||||
|
mkdir -p "$DESTDIR"/etc/X11/xinit/xinitrc.d
|
||||||
|
echo "#!/bin/sh" > "$DESTDIR"/etc/X11/xinit/xinitrc.d/10-local.sh
|
||||||
|
echo "xhost +local:" >> "$DESTDIR"/etc/X11/xinit/xinitrc.d/10-local.sh
|
||||||
|
chmod 754 "$DESTDIR"/etc/X11/xinit/xinitrc.d/10-local.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user