8a6d7d1bc64bc10804f91b70c5f8baba3465e611
[feed/packages.git] / utils / irqbalance / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=irqbalance
8 PKG_VERSION:=1.9.4
9 PKG_RELEASE:=1
10
11 PKG_SOURCE_PROTO:=git
12 PKG_SOURCE_URL:=https://github.com/Irqbalance/irqbalance.git
13 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
14 PKG_MIRROR_HASH:=92af1d0e6775e1b66bc34da95443d9f2d953ec0c3c276dc55f9558029f9c42b8
15
16 PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
17 PKG_LICENSE:=GPL-2.0-or-later
18 PKG_LICENSE_FILES:=COPYING
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22 include $(INCLUDE_DIR)/meson.mk
23
24 PKG_BUILD_DEPENDS += glib2
25
26 define Package/irqbalance
27 SECTION:=utils
28 CATEGORY:=Utilities
29 DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS)
30 TITLE:=IRQ usage balancing for multi-core systems
31 URL:=https://github.com/Irqbalance/irqbalance
32 endef
33
34 define Package/irqbalance/description
35 The purpose of irqbalance is to distribute hardware interrupts across
36 processors/cores on a multiprocessor/multicore system in order to
37 increase performance.
38 endef
39
40 define Package/irqbalance/conffiles
41 /etc/config/irqbalance
42 endef
43
44 MESON_ARGS += \
45 -Dcapng=disabled \
46 -Dui=disabled
47
48 define Package/irqbalance/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/irqbalance $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/irqbalance.init $(1)/etc/init.d/irqbalance
53 $(INSTALL_DIR) $(1)/etc/config
54 $(INSTALL_DATA) ./files/irqbalance.config $(1)/etc/config/irqbalance
55 endef
56
57 $(eval $(call BuildPackage,irqbalance))