adds patch package
[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:=1
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:=
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:]]*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
40 exit 0
41 endef
42
43 define Package/muninlite/install
44 $(INSTALL_DIR) $(1)/usr/sbin/
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/munin-node $(1)/usr/sbin/
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))