add old ebuilds from svn ub0rlay
[ub0rlay.git] / net-print / turboprint / files / install-post-0.patch
1 --- lib/install-post.orig       2008-05-08 12:30:58.000000000 +0200
2 +++ lib/install-post    2008-05-08 12:31:18.000000000 +0200
3 @@ -37,12 +37,6 @@
4         #fi
5  fi
6  
7 -# link documentation
8 -
9 -if [ ! -e $TPPATH_DOC/html_fr ] ; then
10 -       ln -s $TPPATH_DOC/html $TPPATH_DOC/html_fr
11 -fi
12 -
13  # write system.cfg
14  
15  echo > "$TPPATH_CONFIG/system.cfg" "TP_LANGUAGE=$TP_LANGUAGE"
16 @@ -116,16 +110,16 @@
17  echo >> "$TPPATH_CONFIG/system.cfg" "TPPATH_CUPSFILTER=$TPPATH_CUPSFILTER"
18  
19  # call setup to update LPD config files / CUPS PPD files
20 -tpsetup --update
21 +#tpsetup --update
22  
23  # restart CUPS scheduler
24  
25 -if [ $TP_CUPS -eq 1 ] ; then
26 -       echo "Restarting CUPS printing system..."
27 -       /etc/init.d/cups restart &> /dev/null
28 -       /etc/init.d/cupsys restart &> /dev/null
29 -       echo ""
30 -fi
31 +#if [ $TP_CUPS -eq 1 ] ; then
32 +#      echo "Restarting CUPS printing system..."
33 +#      /etc/init.d/cups restart &> /dev/null
34 +#      /etc/init.d/cupsys restart &> /dev/null
35 +#      echo ""
36 +#fi
37  
38  # remove dump files
39  
40 @@ -192,46 +186,14 @@
41  fi
42  
43  if [ $KDEPATH -a -e $KDEPATH ] ; then
44 -       cp $TP_ENTRY "$KDEPATH/xtpconfig.desktop"
45 -       cp $TP_ENTRYSETUP "$KDEPATH/xtpsetup.desktop"
46 +       cp $TP_ENTRY "$RBR$KDEPATH/xtpconfig.desktop"
47 +       cp $TP_ENTRYSETUP "$RBR$KDEPATH/xtpsetup.desktop"
48  fi
49  
50 -# add to current user's desktop
51 -if [ -e ~/KDesktop ] ; then
52 -       cp $TP_ENTRY ~/KDesktop/xtpconfig.desktop
53 -       cp $TP_ENTRYSETUP ~/KDesktop/xtpsetup.desktop
54 -fi
55 -if [ -e ~/Desktop ] ; then
56 -       cp $TP_ENTRY ~/Desktop/xtpconfig.desktop
57 -       cp $TP_ENTRYSETUP ~/Desktop/xtpsetup.desktop
58 -fi
59 -
60 -# add to all users' desktops
61 -for i in /home/*; do
62 -       USER=${i##*/}
63 -        if [ -e $i/KDesktop ] ; then
64 -                cp $TP_ENTRY $i/KDesktop/xtpconfig.desktop
65 -               chown $USER $i/KDesktop/xtpconfig.desktop
66 -                cp $TP_ENTRYSETUP $i/KDesktop/xtpsetup.desktop
67 -               chown $USER $i/KDesktop/xtpsetup.desktop
68 -        fi
69 -        if [ -e $i/Desktop ] ; then
70 -                cp $TP_ENTRY $i/Desktop/xtpconfig.desktop
71 -               chown $USER $i/Desktop/xtpconfig.desktop
72 -                cp $TP_ENTRYSETUP $i/Desktop/xtpsetup.desktop
73 -               chown $USER $i/Desktop/xtpsetup.desktop
74 -        fi
75 -       # add theme for gtk-1.2 if not present
76 -       if [ ! -e $i/.gtkrc.mine ] ; then
77 -               cp $RBR$TPPATH_SHARE/dump/gtkrc.mine $i/.gtkrc.mine
78 -               chown $USER $i/.gtkrc.mine
79 -       fi
80 -done
81 -
82  # add to KDE/Gnome menu
83  if [ -e /usr/share/applications ] ; then
84 -       cp $TP_ENTRY /usr/share/applications/xtpconfig.desktop
85 -       cp $TP_ENTRYSETUP /usr/share/applications/xtpsetup.desktop
86 +       cp $TP_ENTRY $RBR/usr/share/applications/xtpconfig.desktop
87 +       cp $TP_ENTRYSETUP $RBR/usr/share/applications/xtpsetup.desktop
88  fi
89  
90  rm $TP_ENTRY