-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (51 loc) · 1.5 KB
/
Copy pathMakefile
File metadata and controls
64 lines (51 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Filename: Makefile
# Author: Olivier Sirol <czo@free.fr>
# License: GPL-2.0 (http://www.gnu.org/copyleft)
# File Created: 03 May 2024
# Last Modified: Thursday 30 April 2026, 13:35
# Edit Time: 3:35:55
# Description:
#
# OpenWRT Makefile for muninwrt
#
# Copyright: (C) 2024-2026 Olivier Sirol <czo@free.fr>
include $(TOPDIR)/rules.mk
PKG_NAME:=muninwrt
PKG_VERSION:=1.1.3
PKG_RELEASE:=1
PKG_MAINTAINER:=Olivier Sirol <czo@free.fr>
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
Build/Compile=
define Package/muninwrt
SECTION:=utils
CATEGORY:=Utilities
PKGARCH:=all
DEPENDS:=+perl +perlbase-getopt +perlbase-file
TITLE:=Munin node for OpenWRT implemented in perl like pmmn
URL:=https://github.com/czodroid/muninwrt
endef
define Package/muninwrt/Default/description
Munin is a monitoring system for Unix networks.
Munin node for OpenWRT implemented in perl like pmmn, with all plugins in /etc/munin/plugins.
endef
define Package/muninwrt/install
$(INSTALL_DIR) $(1)/etc/munin
$(CP) ./files/etc/munin/* $(1)/etc/munin/
endef
define Package/muninwrt/preinst
#!/bin/sh
echo "-> rm -fr ${IPKG_INSTROOT}/etc/munin"
rm -fr ${IPKG_INSTROOT}/etc/munin
endef
define Package/muninwrt/postinst
#!/bin/sh
echo "-> running ${IPKG_INSTROOT}/etc/munin/share/munin-node-configure"
${IPKG_INSTROOT}/etc/munin/share/munin-node-configure
endef
define Package/muninwrt/postrm
#!/bin/sh
echo "-> rm -fr ${IPKG_INSTROOT}/etc/munin"
rm -fr ${IPKG_INSTROOT}/etc/munin
endef
$(eval $(call BuildPackage,muninwrt))