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 (-21 / +5 lines)
Lines 8-17 Link Here
8
# (c) 2000-2002 ZEDOnet
8
# (c) 2000-2002 ZEDOnet
9
# mail@turboprint.de
9
# mail@turboprint.de
10
10
11
# get TurboPrint configuration
12
13
eval $(cat /etc/turboprint/system.cfg)
14
15
# override help browser if set by command line
11
# override help browser if set by command line
16
12
17
TP_RPM=0
13
TP_RPM=0
Lines 39-46 Link Here
39
35
40
# link documentation
36
# link documentation
41
37
42
if [ ! -e $TPPATH_DOC/html_fr ] ; then
38
if [ ! -e "$TPPATH_DOC/html_fr" ] ; then
43
	ln -s $TPPATH_DOC/html $TPPATH_DOC/html_fr
39
	ln -s html "$TPPATH_DOC/html_fr"
44
fi
40
fi
45
41
46
# write system.cfg
42
# write system.cfg
Lines 78-85 Link Here
78
74
79
# generate PPD files; add to CUPS if present
75
# generate PPD files; add to CUPS if present
80
76
81
mkdir -p "$RBR$TPPATH_SHARE/ppd"
77
mkdir -p "$TPPATH_SHARE/ppd"
82
tpsetup --writeppdfiles "$TPPATH_SHARE/ppd/"
78
"$TPPATH_BIN/tpsetup" --writeppdfiles "$TPPATH_SHARE/ppd/"
83
79
84
if [ $TP_CUPS -eq 1 ] ; then
80
if [ $TP_CUPS -eq 1 ] ; then
85
	if [ -e "$TPPATH_CUPSFILTER" ] ; then
81
	if [ -e "$TPPATH_CUPSFILTER" ] ; then
Lines 95-119 Link Here
95
	install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint"
91
	install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint"
96
fi
92
fi
97
93
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
94
# remove dump files
111
95
112
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then
96
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then
113
	rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn"
97
	rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn"
114
fi
98
fi
115
99
116
# exit 0
100
exit 0
117
101
118
# add entry to KDE menu
102
# add entry to KDE menu
119
# KDE1 no longer supported
103
# KDE1 no longer supported
(-)turboprint-1.92-orig/lib/install-static (-2 lines)
Lines 8-15 Link Here
8
# (c) 2000-2002 ZEDOnet
8
# (c) 2000-2002 ZEDOnet
9
# mail@turboprint.de
9
# mail@turboprint.de
10
10
11
eval $(cat system.cfg)
12
13
if [ "$1" == "--rpm" ] ; then
11
if [ "$1" == "--rpm" ] ; then
14
	# additional setup if called for rpm creation
12
	# additional setup if called for rpm creation
15
	RBR="$RPM_BUILD_ROOT"
13
	RBR="$RPM_BUILD_ROOT"
(-)turboprint-1.92-orig/setup (-9 / +2 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 147-153 Link Here
147
 fi
146
 fi
148
fi
147
fi
149
148
150
eval $(cat system.cfg)
149
eval $(cat system.cfg | sed -r 's|^TP|export &|')
151
150
152
# override help browser if set by command line
151
# override help browser if set by command line
153
152
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