summaryrefslogtreecommitdiffstats
path: root/system/lxdm/lxdm.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini2015-12-09 15:07:13 +0100
committer Willy Sudiarto Raharjo2015-12-12 01:18:58 +0100
commita750e15c85a50a68d7dfd7efe7036551c526de28 (patch)
treee78cb4fb1c8b957db860f09bd1494cb9b651a582 /system/lxdm/lxdm.SlackBuild
parentc6b4e9d94c6df98325104fa02b60372d47523b0f (diff)
downloadslackbuilds-a750e15c85a50a68d7dfd7efe7036551c526de28.tar.gz
system/lxdm: Fix localization detection.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/lxdm/lxdm.SlackBuild')
-rw-r--r--system/lxdm/lxdm.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/lxdm/lxdm.SlackBuild b/system/lxdm/lxdm.SlackBuild
index b872fdbab6..6400585572 100644
--- a/system/lxdm/lxdm.SlackBuild
+++ b/system/lxdm/lxdm.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=lxdm
VERSION=${VERSION:-0.5.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -120,6 +120,14 @@ for file in LoginReady PostLogin PostLogout PreLogin PreReboot PreShutdown lxdm.
mv $PKG/etc/lxdm/$file $PKG/etc/lxdm/$file.new ;
done
+# Look for language defaults were we usually store 'em
+cat << "EOF" > $PKG/usr/sbin/lxdm
+#!/bin/sh
+. /etc/profile.d/lang.sh
+export LANG
+exec /usr/sbin/lxdm-binary $*
+EOF
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true