The muninlite postinst fails to add munin to /etc/services.

This patch removes this broken postinst and add an entry for munin in
/etc/services. This should have been done when the rest of the
/etc/services postinsts were being removed (changesets 26142-26149).

Signed-off-by: Jonathan McCrohan <jmccro...@gmail.com>

diff --git a/package/base-files/files/etc/services 
b/package/base-files/files/etc/services
index 10161eb..a12853e 100644
--- a/package/base-files/files/etc/services
+++ b/package/base-files/files/etc/services
@@ -124,6 +124,7 @@ iax         4569/tcp
 iax            4569/udp
 mtn            4691/tcp
 mtn            4691/udp
+munin          4949/tcp
 sip            5060/tcp
 sip            5060/udp
 sip-tls                5061/tcp


diff --git a/admin/muninlite/Makefile b/admin/muninlite/Makefile
index a55d3de..d241707 100644
--- a/admin/muninlite/Makefile
+++ b/admin/muninlite/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=muninlite
 PKG_VERSION:=1.0.4
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
@@ -30,13 +30,6 @@ define Package/muninlite/Default/description
        Munin is a monitoring system for Unix networks.
 endef
 
-define Package/muninlite/postinst
-#!/bin/sh
-grep -q '^munin[[:space:]]*4949/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
-[ $$? -ne 0 ] && echo "munin       4949/tcp" >> $${IPKG_INSTROOT}/etc/services
-exit 0
-endef
-
 define Package/muninlite/install
        $(INSTALL_DIR) $(1)/usr/sbin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/munin-node $(1)/usr/sbin/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to