2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=d8824bd98300fa6b1bf4aa6af08b7e39
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/muninlite
23 CATEGORY
:=Administration
25 TITLE
:=Munin node implemented in
shell
26 URL
:=http
://sourceforge.net
/projects
/muninlite
/
29 define Package
/muninlite
/Default
/description
30 Munin node implemented in
shell.
31 Munin is a monitoring system for Unix networks.
34 define Package
/muninlite
/postinst
36 grep
-q
'^munin[[:space:]]*stream' $${IPKG_INSTROOT}/etc
/inetd.conf
2>/dev
/null
37 [ $$?
-ne
0 ] && echo
"munin stream tcp nowait root /usr/sbin/munin-node" >> $${IPKG_INSTROOT}/etc
/inetd.conf
38 grep
-q
'^munin[[:space:]]*4949/tcp' $${IPKG_INSTROOT}/etc
/services
2>/dev
/null
39 [ $$?
-ne
0 ] && echo
"munin 4949/tcp" >> $${IPKG_INSTROOT}/etc
/services
43 define Package
/muninlite
/install
44 $(INSTALL_DIR
) $(1)/usr
/sbin
/
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/munin-node
$(1)/usr
/sbin
/
48 define Build
/Configure
52 $(MAKE
) -C
$(PKG_BUILD_DIR
)
55 $(eval
$(call BuildPackage
,muninlite
))