source: scripts/untested/blfs-scripts/blfs-lm_sensors.sh@ 1a625f6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1a625f6 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: 1.2 KB
Line 
1#!/bin/bash
2
3### lm_sensors ###
4
5cd ${SRC}
6LOG=lm_sensors-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball lm_sensors-${LM_SENSORS_VER}
17cd ${PKGDIR}
18
19max_log_init lm_sensors ${LM_SENSORS_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
20make \
21 CC="${CC-gcc} ${ARCH_CFLAGS}" \
22 CFLAGS="${TGT_CFLAGS}" \
23 PREFIX=/usr \
24 LIBDIR=/usr/${libdirname} \
25 user \
26 >> ${LOGFILE} 2>&1 &&
27echo " o Build OK" &&
28
29min_log_init ${INSTLOGS} &&
30make \
31 CC="${CC-gcc} ${ARCH_CFLAGS}" \
32 CFLAGS="${TGT_CFLAGS}" \
33 PREFIX=/usr \
34 LIBDIR=/usr/${libdirname} \
35 user_install \
36 >> ${LOGFILE} 2>&1 &&
37echo " o ALL OK" || barf
38
39echo"
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"
Note: See TracBrowser for help on using the repository browser.