Last active
December 5, 2022 04:56
-
-
Save ploxiln/73c08c584ed2af8569823532c7267b36 to your computer and use it in GitHub Desktop.
munin-c Entware package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# munin-c | entware package | |
# see https://github.com/Entware/Entware/wiki/Compile-packages-from-sources | |
# basically: | |
# * git clone https://github.com/Entware/Entware.git | |
# * cd Entware | |
# * make package/symlinks | |
# * mkdir -p feeds/packages/admin/munin-c | |
# * cp -v .../THIS-FILE feeds/packages/admin/munin-c/Makefile | |
# * cp -v configs/aarch64-3.10.config .config | |
# * make package/symlinks | |
# * make tools/install | |
# * make toolchain/install | |
# * make package/munin-c/compile | |
# resulting .ipk is in bin/targets/aarch64-3.10/generic-glibc/packages/ | |
include $(TOPDIR)/rules.mk | |
PKG_NAME := munin-c | |
# there's a better way to do this with PKG_SOURCE_PROTO=git ... but this is what I figured out first | |
PKG_VERSION := a09c17b1d0560bcf244c5fc1fe5b95eb98192309 | |
PKG_RELEASE := 1 | |
PKG_LICENSE := GPL-2.0-or-later | |
PKG_SOURCE := $(PKG_VERSION).tar.gz | |
PKG_SOURCE_URL := https://github.com/munin-monitoring/munin-c/archive/ | |
PKG_HASH := 60c92982ddb5ea1015b546473e715f8cdb58cb40c892c18d1ffde6dd5988d1f5 | |
PKG_MAINTAINER := Pierce Lopez <[email protected]> | |
PKG_INSTALL:=1 | |
PKG_FIXUP:=autoreconf -i -I m4 | |
include $(INCLUDE_DIR)/package.mk | |
# TARGET_CFLAGS += -std=c99 -D_GNU_SOURCE | |
CONFIGURE_ARGS+= \ | |
--with-optimize-size | |
define Package/munin-c | |
SECTION := utils | |
CATEGORY := Utilities | |
TITLE := Lightweight munin node and plugins. | |
URL := https://github.com/munin-monitoring/munin-c | |
endef | |
define Package/munin-c/description | |
Lightweight munin node and plugins. | |
endef | |
define Package/munin-c/install | |
$(INSTALL_DIR) $(1)/opt/sbin | |
$(INSTALL_DIR) $(1)/opt/libexec | |
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/sbin/munin-node-c $(1)/opt/sbin | |
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/sbin/munin-inetd-c $(1)/opt/sbin | |
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/lib/munin-c/munin-plugins-c $(1)/opt/libexec | |
endef | |
$(eval $(call BuildPackage,munin-c)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# copy to: /opt/etc/init.d/S99munin-node | |
# then run: /opt/etc/init.d/S99munin-node start | |
# CUSTOMIZE TO LAN IP | |
LISTEN_ADDR="192.168.0.1:4949" | |
ENABLED=yes | |
PROCS=munin-inetd-c | |
ARGS="$LISTEN_ADDR munin-node-c -d /opt/etc/munin/plugins -D /opt/etc/munin/plugin-conf.d" | |
PREARGS="" | |
DESC=munin-node | |
PATH=/opt/sbin:/opt/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
. /opt/etc/init.d/rc.func |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment