source: scripts_home/scripts/untested/blfs-scripts/blfs-foomatic.sh@ 1c9c5c3

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

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100755
File size: 1.9 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}-current
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 ${BUILDLOGS}
38make \
39 >> ${LOGFILE} 2>&1 &&
40echo " o Build OK" || barf
41
42min_log_init ${INSTLOGS}
43make install \
44 >> ${LOGFILE} 2>&1 &&
45echo " o Install OK" || barf
46
47cd ${SRC}
48LOG=foomatic-filters-blfs.log
49
50unpack_tarball foomatic-filters-${FOOMATIC_FILTERS_VER}
51cd ${PKGDIR}
52
53max_log_init foomatic-filters ${FOOMATIC_FILTERS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
54CC="${CC-gcc} ${ARCH_CFLAGS}" \
55./configure --prefix=/usr \
56 >> ${LOGFILE} 2>&1 &&
57echo " o Configure OK" &&
58
59min_log_init ${BUILDLOGS}
60make \
61 >> ${LOGFILE} 2>&1 &&
62echo " o Build OK" || barf
63
64min_log_init ${INSTLOGS}
65make install \
66 >> ${LOGFILE} 2>&1 &&
67echo " o Install OK" || barf
68
69if [ ! "${libdirname}" = "lib" ]; then
70 # additional symlinks for lib64 cups, ppr to get the foomatic filters
71 # TODO: this needs to be done better
72
73 mkdir -p /usr/${libdirname}/cups/filter
74 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/cups/filter
75 mkdir -p /usr/${libdirname}/ppr/interfaces
76 mkdir -p /usr/${libdirname}/ppr/lib
77 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/interfaces
78 ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/lib
79fi
80
Note: See TracBrowser for help on using the repository browser.