source: scripts/untested/blfs-scripts/blfs-foomatic.sh@ 8c8c5ab

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8c8c5ab was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 2.6 KB
Line 
1#!/bin/bash
2
3### foomatic ###
4
5cd ${SRC}
6LOG=foomatic-db-blfs.log
7
8set_libdirname
9setup_multiarch
10
11unpack_tarball foomatic-db-${FOOMATIC_DB_VER}
12cd ${PKGDIR}
13
14max_log_init foomatic-db ${FOOMATIC_DB_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
15CC="${CC-gcc} ${ARCH_CFLAGS}" \
16./configure --prefix=/usr \
17 >> ${LOGFILE} 2>&1 &&
18echo " o Configure OK" &&
19
20min_log_init ${INSTLOGS}
21make install
22 >> ${LOGFILE} 2>&1 &&
23echo " o Install OK" || barf
24
25cd ${SRC}
26LOG=foomatic-db-hpijs-blfs.log
27
28unpack_tarball foomatic-db-hpijs-${FOOMATIC_DB_HPIJS_VER}
29cd ${PKGDIR}
30
31max_log_init foomatic-db ${FOOMATIC_DB_HPIJS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
32CC="${CC-gcc} ${ARCH_CFLAGS}" \
33./configure --prefix=/usr \
34 >> ${LOGFILE} 2>&1 &&
35echo " o Configure OK" &&
36
37min_log_init ${INSTLOGS}
38make install
39 >> ${LOGFILE} 2>&1 &&
40echo " o Install OK" || barf
41
42cd ${SRC}
43LOG=foomatic-filters-blfs.log
44
45unpack_tarball foomatic-filters-${FOOMATIC_FILTERS_VER}
46cd ${PKGDIR}
47
48max_log_init foomatic-filters ${FOOMATIC_FILTERS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
49CC="${CC-gcc} ${ARCH_CFLAGS}" \
50./configure --prefix=/usr \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Configure OK" &&
53
54min_log_init ${INSTLOGS}
55make install
56 >> ${LOGFILE} 2>&1 &&
57echo " o Install OK" || barf
58
59if [ ! "${libdirname}" = "lib" ]; then
60 # additional symlinks for lib64 cups, ppr to get the foomatic filters
61 # TODO: this needs to be done better
62
63 mkdir -p /usr/${libdirname}/cups/filter
64 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/cups/filter
65 mkdir -p /usr/${libdirname}/ppr/interfaces
66 mkdir -p /usr/${libdirname}/ppr/lib
67 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/interfaces
68 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/lib
69fi
70
71#### we probably want libxml2
72cd ${SRC}
73LOG=foomatic-db-engine-blfs.log
74
75unpack_tarball foomatic-db-engine-${FOOMATIC_DB_ENG_VER}
76cd ${PKGDIR}
77
78max_log_init foomatic-db-engine ${FOOMATIC_DB_ENG_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
79CC="${CC-gcc} ${ARCH_CFLAGS}" \
80./configure --prefix=/usr \
81 >> ${LOGFILE} 2>&1 &&
82echo " o Configure OK" &&
83
84min_log_init ${INSTLOGS}
85make install
86 >> ${LOGFILE} 2>&1 &&
87echo " o Install OK" || barf
88
89if [ ! "${libdirname}" = "lib" ]; then
90 # additional symlinks for lib64 cups, ppr to get the foomatic filters
91 # TODO: this needs to be done better
92
93 mkdir -p /usr/${libdirname}/cups/filter
94 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/cups/filter
95 mkdir -p /usr/${libdirname}/ppr/interfaces
96 mkdir -p /usr/${libdirname}/ppr/lib
97 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/interfaces
98 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/lib
99fi
100
Note: See TracBrowser for help on using the repository browser.