summaryrefslogtreecommitdiffstats
path: root/kde/post-install
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-12-22 15:03:24 +0100
committer Eric Hameleers <alien@slackware.com>2014-12-22 15:03:24 +0100
commit270c1ba7053478dbd1c632eea18d6e54d51e4ecc (patch)
tree4e25b7466faf321a1a1fe7e90ce182afdd5ef9dd /kde/post-install
parent290362d91d840ad6feed5b59191a058f5e998d3c (diff)
downloadktown-4.7.4.tar.gz
ktown-4.7.4.tar.xz
KDE 4.7.4 for Slackware 13.37 (06dec2011)4.7.4
Diffstat (limited to '')
-rw-r--r--kde/post-install/k3b.post-install2
-rw-r--r--kde/post-install/kde-runtime.post-install5
-rw-r--r--kde/post-install/kde-workspace.post-install35
-rw-r--r--kde/post-install/kde-workspace/config/Xsession (renamed from kde/kdebase-workspace/config/Xsession)0
-rw-r--r--kde/post-install/kde-workspace/config/Xsession.orig (renamed from kde/kdebase-workspace/config/Xsession.orig)0
-rwxr-xr-xkde/post-install/kde-workspace/xinit/xinitrc.kde (renamed from kde/kdebase-workspace/xinit/xinitrc.kde)0
-rw-r--r--kde/post-install/kdebase.post-install9
-rwxr-xr-xkde/post-install/kdebase/profile.d/kde.csh (renamed from kde/kdebase/profile.d/kde.csh)0
-rwxr-xr-xkde/post-install/kdebase/profile.d/kde.sh (renamed from kde/kdebase/profile.d/kde.sh)0
-rw-r--r--kde/post-install/kdelibs.post-install2
-rw-r--r--kde/post-install/konsole.post-install12
11 files changed, 65 insertions, 0 deletions
diff --git a/kde/post-install/k3b.post-install b/kde/post-install/k3b.post-install
new file mode 100644
index 0000000..8810114
--- /dev/null
+++ b/kde/post-install/k3b.post-install
@@ -0,0 +1,2 @@
+# Move the dbus configuration files to the proper place:
+mv $PKG/etc/kde/dbus-1 $PKG/etc/
diff --git a/kde/post-install/kde-runtime.post-install b/kde/post-install/kde-runtime.post-install
new file mode 100644
index 0000000..914cfe8
--- /dev/null
+++ b/kde/post-install/kde-runtime.post-install
@@ -0,0 +1,5 @@
+# Create a symlink in /usr/bin to the kdesu binary
+( cd $PKG/usr/bin ; ln -s /usr/lib${LIBDIRSUFFIX}/kde4/libexec/kdesu . )
+
+# Remove the hicolor icon theme index.theme so it doesn't clobber the real one
+rm -f $PKG/usr/share/icons/hicolor/index.theme
diff --git a/kde/post-install/kde-workspace.post-install b/kde/post-install/kde-workspace.post-install
new file mode 100644
index 0000000..68dd052
--- /dev/null
+++ b/kde/post-install/kde-workspace.post-install
@@ -0,0 +1,35 @@
+
+# Use ck-launch-session in runlevel 3,
+# to start and attach a ConsoleKit session to the X session:
+mkdir -p $PKG/etc/X11/xinit
+cat $CWD/post-install/kde-workspace/xinit/xinitrc.kde > $PKG/etc/X11/xinit/xinitrc.kde
+chmod 0755 $PKG/etc/X11/xinit/xinitrc.kde
+
+# Setup config files for KDM:
+$PKG/usr/bin/genkdmconf --no-old --no-old-scripts --no-backup --in $PKG/usr/share/config/kdm
+
+# Not allowing root to login at the console is just plain silly. If they
+# have physical access to the machine, what's the point of trying to stop
+# this? Even the kdmrc file says this is supposed to be the default.
+sed -i 's/AllowRootLogin=false/AllowRootLogin=true/' \
+ $PKG/usr/share/config/kdm/kdmrc
+# We are also not ready to create a separate 'kdm' non-root user:
+sed -i 's/GreeterUID=kdm/#&/' \
+ $PKG/usr/share/config/kdm/kdmrc
+mv $PKG/usr/share/config/kdm/kdmrc $PKG/usr/share/config/kdm/kdmrc.new
+
+cp -a $PKG/usr/share/config/kdm/Xsession $PKG/usr/share/config/kdm/Xsession.orig
+cat $CWD/post-install/kde-workspace/config/Xsession | sed -e "s#/lib#/lib${LIBDIRSUFFIX}#" \
+ > $PKG/usr/share/config/kdm/Xsession
+mv $PKG/usr/share/config/kdm/backgroundrc $PKG/usr/share/config/kdm/backgroundrc.new
+
+# Move the KDM files someplace FHS compliant:
+mkdir -p $PKG/etc/kde
+mv $PKG/usr/share/config/kdm $PKG/etc/kde
+( cd $PKG/usr/share/config ; ln -sf ../../../etc/kde/kdm . )
+
+# Move the polkit dbus configuration files to the proper place:
+mv $PKG/etc/kde/dbus-1 $PKG/etc/
+
+# This is fubar:
+rm -f $PKG/usr/share/icons/hicolor/index.theme
diff --git a/kde/kdebase-workspace/config/Xsession b/kde/post-install/kde-workspace/config/Xsession
index 736f5d5..736f5d5 100644
--- a/kde/kdebase-workspace/config/Xsession
+++ b/kde/post-install/kde-workspace/config/Xsession
diff --git a/kde/kdebase-workspace/config/Xsession.orig b/kde/post-install/kde-workspace/config/Xsession.orig
index 43d78b8..43d78b8 100644
--- a/kde/kdebase-workspace/config/Xsession.orig
+++ b/kde/post-install/kde-workspace/config/Xsession.orig
diff --git a/kde/kdebase-workspace/xinit/xinitrc.kde b/kde/post-install/kde-workspace/xinit/xinitrc.kde
index a33eb06..a33eb06 100755
--- a/kde/kdebase-workspace/xinit/xinitrc.kde
+++ b/kde/post-install/kde-workspace/xinit/xinitrc.kde
diff --git a/kde/post-install/kdebase.post-install b/kde/post-install/kdebase.post-install
new file mode 100644
index 0000000..e18f8fe
--- /dev/null
+++ b/kde/post-install/kdebase.post-install
@@ -0,0 +1,9 @@
+# Add profile scripts
+mkdir -p $PKG/etc/profile.d
+cat $CWD/post-install/kdebase/profile.d/kde.sh \
+ | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#" \
+ > $PKG/etc/profile.d/kde.sh
+cat $CWD/post-install/kdebase/profile.d/kde.csh \
+ | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#" \
+ > $PKG/etc/profile.d/kde.csh
+chmod 0755 $PKG/etc/profile.d/*
diff --git a/kde/kdebase/profile.d/kde.csh b/kde/post-install/kdebase/profile.d/kde.csh
index a09579b..a09579b 100755
--- a/kde/kdebase/profile.d/kde.csh
+++ b/kde/post-install/kdebase/profile.d/kde.csh
diff --git a/kde/kdebase/profile.d/kde.sh b/kde/post-install/kdebase/profile.d/kde.sh
index 6f0199e..6f0199e 100755
--- a/kde/kdebase/profile.d/kde.sh
+++ b/kde/post-install/kdebase/profile.d/kde.sh
diff --git a/kde/post-install/kdelibs.post-install b/kde/post-install/kdelibs.post-install
new file mode 100644
index 0000000..9239a3e
--- /dev/null
+++ b/kde/post-install/kdelibs.post-install
@@ -0,0 +1,2 @@
+# Move the polkit dbus configuration files to the proper place:
+mv $PKG/etc/kde/dbus-1 $PKG/etc/
diff --git a/kde/post-install/konsole.post-install b/kde/post-install/konsole.post-install
new file mode 100644
index 0000000..b0ef9a6
--- /dev/null
+++ b/kde/post-install/konsole.post-install
@@ -0,0 +1,12 @@
+# "konsole -ls" is no longer valid syntax for konsole, even though it's
+# still documented in the help manual. Here's a way to get the same
+# thing, and it works here, but I honestly don't know how it will act
+# everywhere with every shell. I just know it works with bash and ksh
+sed -i -e 's/Exec=konsole/Exec=konsole -e $SHELL -l/' \
+ $PKG/usr/share/applications/kde4/konsole.desktop
+
+## I find this a little bit too bright... <change by pjv>
+## Change the konsole defaults to look like the real Linux console:
+#sed -i 's/ColorScheme=Linux/ColorScheme=WhiteOnBlack/' \
+# $PKG/usr/share/apps/konsole/Shell.profile
+