muninlite: Added service file for and dependency on xinetd.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13589 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d01b379857
commit
ec83659301
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=muninlite
|
PKG_NAME:=muninlite
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
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)
|
||||||
@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/muninlite
|
define Package/muninlite
|
||||||
SECTION:=admin
|
SECTION:=admin
|
||||||
CATEGORY:=Administration
|
CATEGORY:=Administration
|
||||||
DEPENDS:=
|
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
|
||||||
@ -33,16 +33,16 @@ endef
|
|||||||
|
|
||||||
define Package/muninlite/postinst
|
define Package/muninlite/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep -q '^munin[[:space:]]*stream' $${IPKG_INSTROOT}/etc/inetd.conf 2>/dev/null
|
|
||||||
[ $$? -ne 0 ] && echo "munin stream tcp nowait root /usr/sbin/munin-node" >> $${IPKG_INSTROOT}/etc/inetd.conf
|
|
||||||
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_DATA) ./files/etc/xinetd.d/munin $(1)/etc/xinetd.d/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
|
10
admin/muninlite/files/etc/xinetd.d/munin
Normal file
10
admin/muninlite/files/etc/xinetd.d/munin
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
service munin
|
||||||
|
{
|
||||||
|
socket_type = stream
|
||||||
|
protocol = tcp
|
||||||
|
wait = no
|
||||||
|
user = root
|
||||||
|
group = root
|
||||||
|
server = /usr/sbin/munin-node
|
||||||
|
disable = no
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user