2022-09-21 20:00:34 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=mhz
|
2023-09-02 23:46:46 +08:00
|
|
|
PKG_RELEASE:=2
|
2022-09-21 20:00:34 +08:00
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
|
PKG_SOURCE_URL=https://github.com/wtarreau/mhz.git
|
2023-06-17 18:30:52 +08:00
|
|
|
PKG_SOURCE_DATE:=2023-06-17
|
|
|
|
|
PKG_SOURCE_VERSION:=11aac2399780a1f7ea9f007b14af0464797d5cf1
|
|
|
|
|
PKG_MIRROR_HASH:=b3ea0c9e6f111755c4207addef0ea210ace86bc6910c959c6fc489026897676f
|
2022-09-21 20:00:34 +08:00
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Robert Marko <robimarko@gmail.com>
|
2023-06-17 18:30:52 +08:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2022-09-21 20:00:34 +08:00
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
|
|
define Package/mhz
|
|
|
|
|
SECTION:=utils
|
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
|
TITLE:=CPU frequency measurement utility
|
|
|
|
|
URL:=https://github.com/wtarreau/mhz
|
|
|
|
|
endef
|
|
|
|
|
|
2023-06-17 18:30:52 +08:00
|
|
|
define Package/mhz/description
|
|
|
|
|
Tool to mathematically calculate the current CPU frequency.
|
|
|
|
|
endef
|
|
|
|
|
|
2022-09-21 20:00:34 +08:00
|
|
|
define Package/mhz/install
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2023-06-17 18:30:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mhz $(1)/usr/sbin/mhz
|
2022-09-21 20:00:34 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mhz))
|