mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
mbpfan: update to 2.4.0, adopt
Tested on MacBookPro 11,5 with linux6.12
Homepage and distfiles now redirect to https://github.com/linux-on-mac/mbpfan
README.voidlinux removed as mbpfan no longer has a -t flag
52d897374d
This commit is contained in:
parent
41282df924
commit
068b934428
3 changed files with 36 additions and 11 deletions
|
@ -1 +0,0 @@
|
|||
It's recommended that you run tests with 'sudo mbpfan -t' after installation.
|
31
srcpkgs/mbpfan/patches/fix_paths_and_remove_systemd.patch
Normal file
31
srcpkgs/mbpfan/patches/fix_paths_and_remove_systemd.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
--- a/Makefile 2023-04-02 10:04:13.000000000 +0200
|
||||
+++ b/Makefile 2025-06-19 19:30:45.487560838 +0200
|
||||
@@ -51,22 +51,20 @@
|
||||
./bin/mbpfan-tests
|
||||
|
||||
uninstall:
|
||||
- rm /usr/sbin/mbpfan
|
||||
+ rm /usr/bin/mbpfan
|
||||
rm /etc/mbpfan.conf
|
||||
- rm /lib/modules-load.d/mbpfan.depend.conf
|
||||
- rm /lib/systemd/system/mbpfan.service
|
||||
+ rm /usr/lib/modules-load.d/mbpfan.depend.conf
|
||||
rm /usr/share/man/man8/mbpfan.8.gz
|
||||
rm -rf /usr/share/doc/mbpfan
|
||||
|
||||
install: all
|
||||
- install -d $(DESTDIR)/usr/sbin
|
||||
+ install -d $(DESTDIR)/usr/bin
|
||||
install -d $(DESTDIR)/etc
|
||||
- install -d $(DESTDIR)/lib/systemd/system
|
||||
install -d $(DESTDIR)/usr/share/doc/mbpfan
|
||||
- install -d $(DESTDIR)/lib/modules-load.d
|
||||
- install $(BIN) $(DESTDIR)/usr/sbin
|
||||
+ install -d $(DESTDIR)/usr/lib/modules-load.d
|
||||
+ install $(BIN) $(DESTDIR)/usr/bin
|
||||
install -m644 $(CONF) $(DESTDIR)/etc
|
||||
- install -m644 $(DEPEND_MODULE) $(DESTDIR)/lib/modules-load.d
|
||||
+ install -m644 $(DEPEND_MODULE) $(DESTDIR)/usr/lib/modules-load.d
|
||||
install -m644 $(DOC) $(DESTDIR)/usr/share/doc/mbpfan
|
||||
install -d $(DESTDIR)/usr/share/man/man8
|
||||
install -m644 $(MAN) $(DESTDIR)/usr/share/man/man8
|
|
@ -1,22 +1,17 @@
|
|||
# Template file for 'mbpfan'
|
||||
pkgname=mbpfan
|
||||
version=2.2.1
|
||||
version=2.4.0
|
||||
revision=1
|
||||
archs="x86_64* i686*" # it's MacBook-specific and MacBooks only have these arches.
|
||||
build_style=gnu-makefile
|
||||
conf_files="/etc/mbpfan.conf"
|
||||
short_desc="MacBook Pro fan control daemon"
|
||||
maintainer="noah <nsawyer1993@gmail.com>"
|
||||
maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://github.com/dgraziotin/mbpfan"
|
||||
distfiles="https://github.com/dgraziotin/mbpfan/archive/v${version}.tar.gz"
|
||||
checksum=52a3a79d99f775fe90917a0958e527ea14ff5b83d010164bd91f7cc3ce046b6a
|
||||
|
||||
pre_build() {
|
||||
sed -i 's|/usr/sbin|/usr/bin|' Makefile
|
||||
}
|
||||
homepage="https://github.com/linux-on-mac/mbpfan"
|
||||
distfiles="https://github.com/linux-on-mac/mbpfan/archive/v${version}.tar.gz"
|
||||
checksum=e1cdcffaba52be215ae40a8568949190866d500d6ae2a1e96b71ab5372f3580b
|
||||
|
||||
post_install() {
|
||||
vsv mbpfan
|
||||
vdoc "${FILESDIR}/README.voidlinux"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue