aboutsummaryrefslogtreecommitdiff
path: root/x11/kde4-runtime/files/genkdmconf.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kde4-runtime/files/genkdmconf.sh.in')
-rw-r--r--x11/kde4-runtime/files/genkdmconf.sh.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/kde4-runtime/files/genkdmconf.sh.in b/x11/kde4-runtime/files/genkdmconf.sh.in
new file mode 100644
index 000000000000..3a730a071407
--- /dev/null
+++ b/x11/kde4-runtime/files/genkdmconf.sh.in
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+# some defs
+GENKDMCONF=%%PREFIX%%/bin/genkdmconf
+KDMCONFDIR=%%PREFIX%%/share/config/kdm
+
+#first, set a path for an X app
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
+export PATH
+
+#Configure kdm if needed
+if [ ! -r ${KDMCONFDIR}/kdmrc ]; then
+ echo "Generating KDM configuration";
+ ${GENKDMCONF} --no-old --in ${KDMCONFDIR};
+else
+ echo "Updating KDM configuration";
+ ${GENKDMCONF} --in ${KDMCONFDIR};
+
+fi