Changeset 13589


Ignore:
Timestamp:
2008-12-11T03:13:23+01:00 (9 years ago)
Author:
rwhitby
Message:

muninlite: Added service file for and dependency on xinetd.

Location:
packages/admin/muninlite
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/admin/muninlite/Makefile

    r11236 r13589  
    1111PKG_NAME:=muninlite 
    1212PKG_VERSION:=1.0.0 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    2222  SECTION:=admin 
    2323  CATEGORY:=Administration 
    24   DEPENDS:= 
     24  DEPENDS:=xinetd 
    2525  TITLE:=Munin node implemented in shell 
    2626  URL:=http://sourceforge.net/projects/muninlite/ 
     
    3434define Package/muninlite/postinst 
    3535#!/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 
    3836grep -q '^munin[[:space:]]*4949/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null 
    39 [ $$? -ne 0 ] && echo "munin     4949/tcp" >> $${IPKG_INSTROOT}/etc/services 
     37[ $$? -ne 0 ] && echo "munin       4949/tcp" >> $${IPKG_INSTROOT}/etc/services 
    4038exit 0 
    4139endef 
     
    4442        $(INSTALL_DIR) $(1)/usr/sbin/ 
    4543        $(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/ 
    4646endef 
    4747 
Note: See TracChangeset for help on using the changeset viewer.