avoid installing asterisk 1.6.x header files in staging dirs since they conflict...
[openwrt/svn-archive/archive.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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=muninlite
12 PKG_VERSION:=1.0.0
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=d8824bd98300fa6b1bf4aa6af08b7e39
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/muninlite
22 SECTION:=admin
23 CATEGORY:=Administration
24 DEPENDS:=xinetd
25 TITLE:=Munin node implemented in shell
26 URL:=http://sourceforge.net/projects/muninlite/
27 endef
28
29 define Package/muninlite/Default/description
30 Munin node implemented in shell.
31 Munin is a monitoring system for Unix networks.
32 endef
33
34 define Package/muninlite/postinst
35 #!/bin/sh
36 grep -q '^munin[[:space:]]*4949/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
37 [ $$? -ne 0 ] && echo "munin 4949/tcp" >> $${IPKG_INSTROOT}/etc/services
38 exit 0
39 endef
40
41 define Package/muninlite/install
42 $(INSTALL_DIR) $(1)/usr/sbin/
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/munin-node $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/etc/xinetd.d
45 $(INSTALL_DATA) ./files/etc/xinetd.d/munin $(1)/etc/xinetd.d/
46 endef
47
48 define Build/Configure
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR)
53 endef
54
55 $(eval $(call BuildPackage,muninlite))