mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
29
package/mbpfan/mbpfan.mk
Normal file
29
package/mbpfan/mbpfan.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# mbpfan
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MBPFAN_VERSION = 2.2.1
|
||||
MBPFAN_SITE = $(call github,linux-on-mac,mbpfan,v$(MBPFAN_VERSION))
|
||||
MBPFAN_LICENSE = GPL-3.0+
|
||||
MBPFAN_LICENSE_FILES = COPYING
|
||||
|
||||
define MBPFAN_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
$(MAKE) CC="$(TARGET_CC)" -C $(@D)
|
||||
endef
|
||||
|
||||
define MBPFAN_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0644 $(@D)/mbpfan.conf \
|
||||
$(TARGET_DIR)/etc/mbpfan.conf
|
||||
$(INSTALL) -m 0755 $(@D)/bin/mbpfan $(TARGET_DIR)/usr/sbin/mbpfan
|
||||
endef
|
||||
|
||||
define MBPFAN_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 $(@D)/mbpfan.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/mbpfan.service
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user