clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 66f17d5 was b15e4602, checked in by Jim Gifford <clfs@…>, 19 years ago |
r612@server (orig r610): ryan | 2005-08-05 23:39:57 -0700
use here doc instead of echo to output message
|
-
Property mode
set to
100755
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | ### lm_sensors ###
|
---|
4 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=lm_sensors-blfs.log
|
---|
7 |
|
---|
8 | SELF=`basename ${0}`
|
---|
9 | set_buildenv
|
---|
10 | set_libdirname
|
---|
11 | setup_multiarch
|
---|
12 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
13 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
14 | fi
|
---|
15 |
|
---|
16 | unpack_tarball lm_sensors-${LM_SENSORS_VER}
|
---|
17 | cd ${PKGDIR}
|
---|
18 |
|
---|
19 | max_log_init lm_sensors ${LM_SENSORS_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
|
---|
20 | make \
|
---|
21 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
22 | CFLAGS="${TGT_CFLAGS}" \
|
---|
23 | PREFIX=/usr \
|
---|
24 | LIBDIR=/usr/${libdirname} \
|
---|
25 | user \
|
---|
26 | >> ${LOGFILE} 2>&1 &&
|
---|
27 | echo " o Build OK" &&
|
---|
28 |
|
---|
29 | min_log_init ${INSTLOGS} &&
|
---|
30 | make \
|
---|
31 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
32 | CFLAGS="${TGT_CFLAGS}" \
|
---|
33 | PREFIX=/usr \
|
---|
34 | LIBDIR=/usr/${libdirname} \
|
---|
35 | user_install \
|
---|
36 | >> ${LOGFILE} 2>&1 &&
|
---|
37 | echo " o ALL OK" || barf
|
---|
38 |
|
---|
39 | cat <<EOF
|
---|
40 | ###############################################################
|
---|
41 | # TODO: This should be handled by udev, devices don't get
|
---|
42 | # automatically created...
|
---|
43 | # Also, sensors-detect needs to be run, startup scripts
|
---|
44 | # installed ...
|
---|
45 | ###############################################################
|
---|
46 | #prog/mkdev/mkdev.sh
|
---|
47 | #sensors-detect
|
---|
48 | #cp prog/init/lm_sensors.init /etc/rc.d/init.d/lm_sensors
|
---|
49 | #echo \"alias char-major-89 i2c-dev\" >> /etc/modules.conf
|
---|
50 | #mkdir -p /var/lock/subsys
|
---|
51 | EOF
|
---|
Note:
See
TracBrowser
for help on using the repository browser.