-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add man page and update the Makefile #80
Conversation
…rvice file, and README will also be installed. This change will allow the building of .deb packages.
Thank you very much for this. It will take a while before I can review this PR. Please have some patience. |
No worries this app has been a great for my MacBook Pro running Debian. Sent from my iPhone
|
Any update on this request? |
I'll likely look at it during the last days of August. Sorry, big deadlines at work! Daniel Graziotin
|
@JR1994 I have finally started looking at your PR. I am not a Makefile expert (at all), and was wondering what would be the consequences of a Makefile that incorporates systemd for systems that do not use systemd. Do you have any clue? |
It will only install the systemd.service file and attempt to launch it. One On Mon, Aug 29, 2016 at 1:19 AM, Daniel Graziotin notifications@github.com
|
That's right. What about those distros that do not use systemd? Daniel Graziotin
|
There are fewer and fewer that are non-systemd. Gentoo still uses OpenRC, but you can also use systemd. Anything Debian based after Jessie is on systemd. Linux Mint 18 is now on sustemd. Ubuntu has been on systemd since 15.04. More and more systemd is becoming the standard. Sent from my iPhone
|
Sure, but there are still distros not using it, e.g., Slackware (on which I developed mbpfan initially) and older versions of Ubuntu, Debian, Fedora, etc.. Mbpfan aims to be distro independent. Now, I am wondering what would happen when one does a Shall we instead go for a |
On 08/30, Daniel Graziotin wrote:
Thanks |
That would definitely solve the doubts. I was also wondering if it was a job for packages to install distro-dependent files. If that sounds OK to you, I will merge your parts without the systemd related code. |
I am not 100% sure but think so. Sent from my iPhone
|
Ok, I created a branch with your edits and some small modifications (one of which is deleting the -Wall option from the Makefile, as this is a separate issue to be addressed). Does it look OK to you? Feel free to add yourself to the AUTHORS file! |
Looks good. Thanks for the offer! Herminio On Wed, Aug 31, 2016 at 12:47 AM, Daniel Graziotin <notifications@github.com
|
@JR1994 thanks again for this! |
You are welcome Sent from my iPhone
|
sudo dmidecode -s system-product-name Macmini5,3 uname -a Linux elementaty-mini 4.4.0-59-generic linux-on-mac#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
sudo dmidecode -s system-product-name Macmini5,3 uname -a Linux elementaty-mini 4.4.0-59-generic linux-on-mac#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
I am pretty new to git. I made some changes and placed pull requests to the upstream repo. Since I am cloning yours I thought you would want to take a look at them as well. I have made a man page for mbpfan and updated the Makefile. The Makefile will use the install command instad of cp. It will also install the systemd .service file, the man page, and the README file. These changes will also make packaging easier.