testing/mbpfan: move modules-load.d into /usr/lib

This commit is contained in:
Sertonix 2024-09-13 15:48:06 +02:00 committed by Natanael Copa
parent e8e0b02098
commit a4b2ed6684
2 changed files with 21 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=mbpfan
pkgver=2.4.0
pkgrel=0
pkgrel=1
pkgdesc="simple daemon to control fan speed on MacBooks, other macs"
url="https://ineed.coffee/projects/mbpfan"
arch="x86_64 x86"
@ -11,10 +11,11 @@ options="!check"
subpackages="$pkgname-doc $pkgname-openrc"
source="mbpfan-$pkgver.tar.gz::https://github.com/linux-on-mac/mbpfan/archive/refs/tags/v$pkgver.tar.gz
01-remove-systemd.patch
usr-lib.patch
$pkgname.initd"
build() {
make
CFLAGS="$CFLAGS -D_GNU_SOURCE" make
}
package() {
@ -25,5 +26,6 @@ package() {
sha512sums="
fa906043552a895d274642dfe8e3a94fdece0bf9b430710d9ee4dc4f33b6762fbed3314e4a67ede11916514297d511031cc99b35b7a267b58aceefd73e4b1d22 mbpfan-2.4.0.tar.gz
bd9e2496049978f4dae322279573e784b7866bbdaa39de65b124f5206ab270ff71933b762a1caf3a792b33760bdd66852c46486b66429d825c623a32c8c7c52b 01-remove-systemd.patch
8600c6d7ee0c19081bfd06955b19320093e1847928ab88383ec14acba08e8803b231a607a69885f36f31479499242d868cec6e0856d5b05f77285acda7640adf usr-lib.patch
bc3905e85d89e71d56239549bede3dd826633da2152d2e548fdf0c5eb2fde7a94e776afcce4d1657d2198998538d9e19b2a9d464c95c2b14083d8f5782417467 mbpfan.initd
"

View file

@ -0,0 +1,17 @@
diff --git a/Makefile b/Makefile
index 41873fa..dab56e1 100644
--- a/Makefile
+++ b/Makefile
@@ -63,10 +63,10 @@ install: all
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 -d $(DESTDIR)/usr/lib/modules-load.d
install $(BIN) $(DESTDIR)/usr/sbin
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