Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 61311 | Differences between
and this patch

Collapse All | Expand All

(-)turboprint-1.92-orig/lib/install-post (-16 / +4 lines)
Lines 10-16 Link Here
10
10
11
# get TurboPrint configuration
11
# get TurboPrint configuration
12
12
13
eval $(cat /etc/turboprint/system.cfg)
13
eval $(cat system.cfg)
14
14
15
# override help browser if set by command line
15
# override help browser if set by command line
16
16
Lines 40-46 Link Here
40
# link documentation
40
# link documentation
41
41
42
if [ ! -e $TPPATH_DOC/html_fr ] ; then
42
if [ ! -e $TPPATH_DOC/html_fr ] ; then
43
	ln -s $TPPATH_DOC/html $TPPATH_DOC/html_fr
43
	ln -s html $TPPATH_DOC/html_fr
44
fi
44
fi
45
45
46
# write system.cfg
46
# write system.cfg
Lines 78-84 Link Here
78
78
79
# generate PPD files; add to CUPS if present
79
# generate PPD files; add to CUPS if present
80
80
81
mkdir -p "$RBR$TPPATH_SHARE/ppd"
81
mkdir -p "$TPPATH_SHARE/ppd"
82
tpsetup --writeppdfiles "$TPPATH_SHARE/ppd/"
82
tpsetup --writeppdfiles "$TPPATH_SHARE/ppd/"
83
83
84
if [ $TP_CUPS -eq 1 ] ; then
84
if [ $TP_CUPS -eq 1 ] ; then
Lines 95-119 Link Here
95
	install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint"
95
	install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint"
96
fi
96
fi
97
97
98
# call setup to update LPD config files / CUPS PPD files
99
100
tpsetup --update
101
102
# restart CUPS scheduler
103
104
if [ $TP_CUPS -eq 1 ] ; then
105
	echo "Restarting CUPS printing system..."
106
	rccups restart &> /dev/null
107
	echo ""
108
fi
109
110
# remove dump files
98
# remove dump files
111
99
112
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then
100
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then
113
	rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn"
101
	rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn"
114
fi
102
fi
115
103
116
# exit 0
104
exit 0
117
105
118
# add entry to KDE menu
106
# add entry to KDE menu
119
# KDE1 no longer supported
107
# KDE1 no longer supported
(-)turboprint-1.92-orig/setup (-8 / +1 lines)
Lines 38-45 Link Here
38
echo "TurboPrint Installation"
38
echo "TurboPrint Installation"
39
echo "======================="
39
echo "======================="
40
40
41
bin/tpsetup --printkey *.key
41
result=99
42
result=$?
43
42
44
if [ $TP_BATCH -eq 0 ] ; then
43
if [ $TP_BATCH -eq 0 ] ; then
45
	echo
44
	echo
Lines 205-216 Link Here
205
204
206
lib/install-info --tgz --cups=$TP_CUPS --language=$TP_LANGUAGE
205
lib/install-info --tgz --cups=$TP_CUPS --language=$TP_LANGUAGE
207
206
208
# install keyfile if present
209
210
if [ $result -eq 0 ] ; then
211
	tpsetup --install *.key
212
fi
213
214
echo
207
echo
215
echo "$TP_DOCU $TPPATH_DOC/html"
208
echo "$TP_DOCU $TPPATH_DOC/html"
216
209

Return to bug 61311