aboutsummaryrefslogtreecommitdiff
path: root/x11/kdebase3/files/genkdmconf.sh
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-08-30 19:55:42 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-08-30 19:55:42 +0000
commitb4c31bafd8aec4f42f23f6c461f48ccbe33d3bc3 (patch)
treed80952c00b17a9ff93ed05d9a2a267b16fe30b8b /x11/kdebase3/files/genkdmconf.sh
parent852f5b2516d438cff64d11ee56c369232b605ab3 (diff)
downloadports-b4c31bafd8aec4f42f23f6c461f48ccbe33d3bc3.tar.gz
ports-b4c31bafd8aec4f42f23f6c461f48ccbe33d3bc3.zip
Notes
Diffstat (limited to 'x11/kdebase3/files/genkdmconf.sh')
-rw-r--r--x11/kdebase3/files/genkdmconf.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/kdebase3/files/genkdmconf.sh b/x11/kdebase3/files/genkdmconf.sh
new file mode 100644
index 000000000000..479317482140
--- /dev/null
+++ b/x11/kdebase3/files/genkdmconf.sh
@@ -0,0 +1,17 @@
+#!/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};
+fi