[packages] freeswitch: add C++ support for switch_cpp, enable mod_lua, add downloads...
[packages.git] / admin / muninlite / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=muninlite
11 PKG_VERSION:=1.0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=67fe45999fbd29f7d91fe342889e3dcb
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/muninlite
21   SECTION:=admin
22   CATEGORY:=Administration
23   DEPENDS:=+xinetd
24   TITLE:=Munin node implemented in shell
25   URL:=http://sourceforge.net/projects/muninlite/
26 endef
27
28 define Package/muninlite/Default/description
29         Munin node implemented in shell.
30         Munin is a monitoring system for Unix networks.
31 endef
32
33 define Package/muninlite/postinst
34 #!/bin/sh
35 grep -q '^munin[[:space:]]*4949/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
36 [ $$? -ne 0 ] && echo "munin       4949/tcp" >> $${IPKG_INSTROOT}/etc/services
37 exit 0
38 endef
39
40 define Package/muninlite/install
41         $(INSTALL_DIR) $(1)/usr/sbin/
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/munin-node $(1)/usr/sbin/
43         $(INSTALL_DIR) $(1)/etc/xinetd.d
44         $(INSTALL_DATA) ./files/etc/xinetd.d/munin $(1)/etc/xinetd.d/
45 endef
46
47 define Build/Configure
48 endef
49
50 define Build/Compile
51         $(MAKE) -C $(PKG_BUILD_DIR)
52 endef
53
54 $(eval $(call BuildPackage,muninlite))