Commit graph

285 commits

Author SHA1 Message Date
Daniel Graziotin
5f2da79651 [Fix #117] eliminate redundant exec() in check_requirements 2017-06-21 11:39:16 +02:00
Daniel Graziotin
f20a2274e1 [#117] call closedir(dir) when checking requirements 2017-06-21 11:32:55 +02:00
Daniel Graziotin
4730988419 [fix #118] protect macro definitions 2017-06-21 11:26:32 +02:00
Daniel Graziotin
3e88f702b1 [Fixes #110] Merge branch 'gktrk-makefile_install_fix' 2017-06-21 11:23:17 +02:00
Daniel Graziotin
2eea94f885 Merge branch 'makefile_install_fix' of git://github.com/gktrk/mbpfan into gktrk-makefile_install_fix 2017-06-21 09:21:19 +00:00
Daniel Graziotin
ba97ea50b2 Merge pull request #109 from gktrk/readme-fix
Update the install instructions for Gentoo Linux
2017-04-03 09:08:49 +02:00
Göktürk Yüksek
d965ec7b1b
Makefile: do not call make recursively inside the install target
Instead of calling make inside the install target to make sure that
mbpfan is compiled prior to installing, declare $(BIN) as a
prerequisite for the target. This also enables parallel compilation
from the install target in addition to avoiding unnecessary
re-linking.
2017-04-02 16:43:59 -04:00
Göktürk Yüksek
7384b3ad9f
Update the install instructions for Gentoo Linux 2017-04-02 16:16:32 -04:00
Daniel Graziotin
d282619ea8 Merge pull request #108 from osleg/patch-1
Update README.md
2017-04-02 22:05:26 +02:00
Alex Kir
7590a5ae3f Update README.md 2017-04-03 03:45:36 +08:00
Daniel Graziotin
1ee0e1f1fa [fix #92] support for CentOS w/ Linux 3.10.0 but new sensors path 2017-04-02 16:59:50 +00:00
Daniel Graziotin
592895dc61 [Fix #105] fixed memory leak in retrieve_sensors() 2017-04-02 16:50:20 +00:00
Daniel Graziotin
565c5454c3 [Fix #104] support for clang, makefile cleaned from 'rmusial-master' 2017-04-02 16:32:09 +00:00
Daniel Graziotin
c3e1c9c2b7 Reverted to old legacy kernel detection [#92 needs investigation] 2017-04-02 16:31:39 +00:00
Daniel Graziotin
906e40caa3 [Fix #97] Flush standard out before sleeping in verbose mode. 2017-04-02 16:18:35 +00:00
Daniel Graziotin
9f646ae259 Merge branch 'master' of git://github.com/aaronriekenberg/mbpfan into aaronriekenberg-master 2017-04-02 16:11:28 +00:00
Robert Musial
32256bc3a2 Updated README to reflect new testing with LLVM toolchain 2017-03-27 13:03:02 -04:00
Robert Musial
a7ca28f686 Removed unneeded line from Makefile 2017-03-27 12:59:09 -04:00
Robert Musial
e7dd42e125 changes to legacy kernel detection 2017-03-27 11:44:34 -04:00
Robert Musial
591b37a0e3 Update daemon.c 2017-03-26 01:53:12 -04:00
Robert Musial
b454fcef60 Update main.c 2017-03-26 01:52:45 -04:00
Robert Musial
28ca34edb2 Update mbpfan.c 2017-03-26 01:52:09 -04:00
Robert Musial
1cf14e00c4 Update AUTHORS 2017-03-26 01:51:27 -04:00
Robert Musial
2f5c736b69 Update mbpfan.c 2017-03-24 18:03:03 -04:00
Robert Musial
b149238c29 Update main.c 2017-03-24 18:02:43 -04:00
Robert Musial
e2a62a9d21 Update daemon.c 2017-03-24 18:01:41 -04:00
Robert Musial
34cf49932d Update AUTHORS 2017-03-24 18:01:01 -04:00
Robert Musial
eda7485de9 Update AUTHORS 2017-03-22 00:35:46 -04:00
Robert Musial
75002c0702 Update mbpfan.c 2017-03-22 00:33:58 -04:00
Robert Musial
13543b3b55 Update main.c 2017-03-22 00:32:04 -04:00
Robert Musial
8ed45aa5c2 Update daemon.c 2017-03-22 00:31:11 -04:00
Robert Musial
a7d3eb265d Update mbpfan.c 2017-03-20 14:16:50 -04:00
Robert Musial
b71375f6af Update main.c 2017-03-20 14:16:21 -04:00
Robert Musial
c52a624bac Update daemon.c 2017-03-20 14:15:58 -04:00
Robert Musial
c72090d2bb Update AUTHORS 2017-03-20 14:15:11 -04:00
Robert Musial
e339f811fc Changes to be committed:
modified:   README.md
Changed instructions for how to use Clang. It is much easier
since the Makefile now just uses the system's compiler, and
correctly uses C instead of C++
2017-03-19 13:54:29 -04:00
Robert Musial
a99aaad680 Changes to be committed:
modified:   AUTHORS
Updated personal info.

	modified:   Makefile
Beginning work to clean up Makefile. The original makefile appeared
to be checking if the system was Windows NT. Since this is for GNU/
Linux, that was removed. Also all of the code is C, but the
Makefile was calling the C++ compiler to hide bool issues and
missing typedefs (which C++ is ok with but C is not).

	modified:   src/daemon.c
Added structs, added stdbool.h

	modified:   src/main.c
Added stdbool.h

	modified:   src/mbpfan.c
Added stdbool.h

	modified:   src/minunit.c
Added stdbool.h
2017-03-19 13:43:55 -04:00
Daniel Graziotin
f9f39cf53c Merge pull request #100 from wezm/add-macmini53
Add Macmini5,3 to supported list
2017-01-16 11:06:56 +01:00
Wesley Moore
17708813dd Add Macmini5,3 to supported list
sudo dmidecode -s system-product-name
Macmini5,3

uname -a
Linux elementaty-mini 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

sudo make tests
make install
make[1]: Entering directory '/home/wmoore/Source/mbpfan'
make
make[2]: Entering directory '/home/wmoore/Source/mbpfan'
Linking...
g++  -g -lm  src/settings.o src/daemon.o src/mbpfan.o src/main.o src/minunit.o src/strmap.o -lm -o bin/mbpfan
make[2]: Leaving directory '/home/wmoore/Source/mbpfan'
install -d /usr/sbin
install -d /etc
install -d /lib/systemd/system
install -d /usr/share/doc/mbpfan
install bin/mbpfan /usr/sbin
install -m644 mbpfan.conf /etc
install -m644 README.md /usr/share/doc/mbpfan
install -d /usr/share/man/man8
install -m644 mbpfan.8.gz /usr/share/man/man8

******************
INSTALL COMPLETED
******************

A configuration file has been copied (might overwrite existing file) to /etc/mbpfan.conf.
See README.md file to have mbpfan automatically started at system boot.

Please run the tests now with the command
sudo make tests

make[1]: Leaving directory '/home/wmoore/Source/mbpfan'
/usr/sbin/mbpfan -f -v -t
Starting the tests..
It is normal for them to take a bit to finish.
Detected kernel version: 4
Detected kernel minor revision: 4
Detected kernel version: 4
Detected kernel minor revision: 4
Using new sensor path for kernel >= 3.0.15
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 5 sensors
Found 1 fans
Detected kernel version: 4
Detected kernel minor revision: 4
Using new sensor path for kernel >= 3.0.15
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 5 sensors
Testing the _supplied_ mbpfan.conf (not the one you are using)..
ALL TESTS PASSED
Tests run: 8
2017-01-16 11:46:47 +11:00
Daniel Graziotin
a8e5a4cc30 [Fix #98] runscript-> openrc-run gentoo init 2016-12-29 19:03:10 +01:00
Aaron Riekenberg
11ec211b89 Flush standard out before sleeping in verbose mode. 2016-12-28 16:00:32 -06:00
Daniel Graziotin
edf722c33c Merge branch 'rmusial-master' 2016-12-28 16:40:50 +00:00
Daniel Graziotin
754caf6e56 [Fix #96] Clang initial support, thanks @rmusial 2016-12-28 16:40:21 +00:00
Daniel Graziotin
16d2ae0c6d Merge branch 'master' of git://github.com/rmusial/mbpfan into rmusial-master 2016-12-28 16:31:35 +00:00
Robert Musial
38eb9e0f91 Update AUTHORS 2016-12-28 11:13:02 -05:00
Robert Musial
cbafd1cb3b Update README.md
Added simple instructions on how to compile with Clang
2016-12-28 11:12:25 -05:00
Robert Musial
b897f515f4 Update README.md 2016-12-28 11:11:19 -05:00
Daniel Graziotin
8ef4013c62 Merge branch 'rmusial-master' 2016-12-28 15:24:56 +00:00
Daniel Graziotin
00ac565f37 Merge branch 'master' of git://github.com/rmusial/mbpfan into rmusial-master 2016-12-28 15:22:17 +00:00
Daniel Graziotin
e5088efe28 Merge pull request #94 from tarkant/master
Tested on MacBook Air 1,1
2016-12-28 14:24:35 +01:00