File libgnomeprint-suseconfig.dif of Package libgnomeprint
--- libgnomeprint-2.4.0/SuSEconfig.libgnomeprint
+++ libgnomeprint-2.4.0/SuSEconfig.libgnomeprint
@@ -0,0 +1,30 @@
+#! /bin/sh
+# Copyright (c) 2002 SuSE Gmbh Nuernberg, Germany. All rights reserved.
+#
+# Author: Holger Hetterich <hhetter@suse.de>, 2002
+#
+# check if we are started as root
+# only one of UID and USER must be set correctly
+
+if test "$UID" != 0 -a "$USER" != root; then
+ echo "You must be root to start $0."
+ exit 1
+fi
+
+
+test -n "$ROOT" && exit 0
+
+test ! -f /var/adm/SuSEconfig/run-libgnomeprint && exit 0
+
+if [ -x $r/opt/gnome2/bin/libgnomeprint-2.0-font-install ] ; then
+ TMPDIR=`mktemp -d /tmp/gnome-home.XXXXXX`
+ HOME=$TMPDIR \
+ /opt/gnome2/bin/libgnomeprint-2.0-font-install \
+ --smart 2> /dev/null || true
+
+ rm -fr $TMPDIR
+ rm -f /var/adm/SuSEconfig/run-libgnomeprint
+fi
+
+exit 0
+