Package Details: macfand-git 1.1.r32.90b5789aa-1

Git Clone URL: https://aur.archlinux.org/macfand-git.git (read-only, click to copy)
Package Base: macfand-git
Description: Mac fan control daemon
Upstream URL: https://github.com/ablakely/macfand.git
Licenses: MIT
Conflicts: macfand
Provides: macfand
Submitter: ab3800
Maintainer: ab3800
Last Packager: ab3800
Votes: 2
Popularity: 0.000005
First Submitted: 2022-06-26 03:55 (UTC)
Last Updated: 2022-07-23 00:45 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

a821 commented on 2024-02-21 06:58 (UTC)

Please do no use sudo in the PKGBUILD, it's a security risk.

This line does not belong in the PKGBUILD but rather it's configuration, because it depends on the system the package is built, which could be different of the one it is installed. I suppose you could leave a note to the user to run that line, or it should go in post_install()

ttony commented on 2023-03-20 02:20 (UTC)

Getting the following error when installing:

==> Starting package()...
install: cannot stat 'macfand.service': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'macfand-git-1.1.r32.90b5789aa-1':
error: packages failed to build: macfand-git-1.1.r32.90b5789aa-1

Via paru on linux 6.2.7-arch1-1

krakenfury commented on 2022-07-23 05:02 (UTC)

@ab3800 awesome that does the trick. thanks!

ab3800 commented on 2022-07-22 22:31 (UTC) (edited on 2022-07-23 19:55 (UTC) by ab3800)

@krakenfury I didn't implement a way to change that, I'll add that tonight and comment back when it's ready.

Edit: Update pkgbuild, also added option to define an alternative profiles directory using this in your /etc/macfand.conf:
profileDir = "/opt/macfand-git/machines/";

krakenfury commented on 2022-07-22 20:27 (UTC) (edited on 2022-07-22 20:30 (UTC) by krakenfury)

Loading profiles is broken:

Jul 22 15:58:22 lorwyn systemd[1]: Started Mac Fan Control Daemon.
Jul 22 15:58:22 lorwyn macfand[4441]: Loading profile for model: macbookpro11,3
Jul 22 15:58:22 lorwyn macfand[4441]: dbug: opening profile /usr/local/macfand/machines/macbookpro11,3.conf
Jul 22 15:58:22 lorwyn macfand[4441]: [macfand.conf:0] Profile file error: file I/O error
Jul 22 15:58:22 lorwyn systemd[1]: macfand.service: Main process exited, code=exited, status=255/EXCEPTION
Jul 22 15:58:22 lorwyn systemd[1]: macfand.service: Failed with result 'exit-code'.
Jul 22 15:58:23 lorwyn systemd[1]: macfand.service: Scheduled restart job, restart counter is at 5.
Jul 22 15:58:23 lorwyn systemd[1]: Stopped Mac Fan Control Daemon.
Jul 22 15:58:23 lorwyn systemd[1]: macfand.service: Start request repeated too quickly.
Jul 22 15:58:23 lorwyn systemd[1]: macfand.service: Failed with result 'exit-code'.
Jul 22 15:58:23 lorwyn systemd[1]: Failed to start Mac Fan Control Daemon.

Modify PKGBUILD:

...
4 pkgname=macfand
...
39 package() {
40         cd macfand
41         mkdir -p ${pkgdir}/usr/local/${pkgname}
42         cp -rf * ${pkgdir}/usr/local/${pkgname}
...

This lets macfand find the profiles where it's looking for them. Didn't see a way to configure macfand to look in /opt/macfand-git instead.