[package] update muninlite to 1.0.2, fix xined dependency (#5291)
[openwrt.org/packages.git] / admin / muninlite / Makefile
blob:a/admin/muninlite/Makefile -> blob:b/admin/muninlite/Makefile
# #
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
# #
   
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
   
PKG_NAME:=muninlite PKG_NAME:=muninlite
PKG_VERSION:=1.0.0 PKG_VERSION:=1.0.2
PKG_RELEASE:=2 PKG_RELEASE:=1
   
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME) PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=d8824bd98300fa6b1bf4aa6af08b7e39 PKG_MD5SUM:=67fe45999fbd29f7d91fe342889e3dcb
   
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
   
define Package/muninlite define Package/muninlite
SECTION:=admin SECTION:=admin
CATEGORY:=Administration CATEGORY:=Administration
DEPENDS:=xinetd DEPENDS:=+xinetd
TITLE:=Munin node implemented in shell TITLE:=Munin node implemented in shell
URL:=http://sourceforge.net/projects/muninlite/ URL:=http://sourceforge.net/projects/muninlite/
endef endef
   
define Package/muninlite/Default/description define Package/muninlite/Default/description
Munin node implemented in shell. Munin node implemented in shell.
Munin is a monitoring system for Unix networks. Munin is a monitoring system for Unix networks.
endef endef
   
define Package/muninlite/postinst define Package/muninlite/postinst
#!/bin/sh #!/bin/sh
grep -q '^munin[[:space:]]*4949/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null grep -q '^munin[[:space:]]*4949/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
[ $$? -ne 0 ] && echo "munin 4949/tcp" >> $${IPKG_INSTROOT}/etc/services [ $$? -ne 0 ] && echo "munin 4949/tcp" >> $${IPKG_INSTROOT}/etc/services
exit 0 exit 0
endef endef
   
define Package/muninlite/install define Package/muninlite/install
$(INSTALL_DIR) $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/munin-node $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/munin-node $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/xinetd.d $(INSTALL_DIR) $(1)/etc/xinetd.d
$(INSTALL_DATA) ./files/etc/xinetd.d/munin $(1)/etc/xinetd.d/ $(INSTALL_DATA) ./files/etc/xinetd.d/munin $(1)/etc/xinetd.d/
endef endef
   
define Build/Configure define Build/Configure
endef endef
   
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE) -C $(PKG_BUILD_DIR)
endef endef
   
$(eval $(call BuildPackage,muninlite)) $(eval $(call BuildPackage,muninlite))
   
comments