ntpd: remove the postinst script for updating /etc/services
authorFelix Fietkau <nbd@openwrt.org>
Sun, 13 Mar 2011 19:56:38 +0000 (19:56 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 13 Mar 2011 19:56:38 +0000 (19:56 +0000)
SVN-Revision: 26146

net/ntpd/Makefile

index 04059f207416a67776b434b184947bc5e4b1f474..e42c68c0b0f6d20092fb426336c17c09dded69cc 100644 (file)
@@ -92,26 +92,6 @@ define Package/ntpd/conffiles
 /etc/ntp.conf
 endef
 
-define Package/ntpd/Default/postinst
-#!/bin/sh
-grep -q '^ntp[[:space:]]*123/udp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
-[ $$? -ne 0 ] && echo "ntp            123/udp     # Network Time Protocol" >>$${IPKG_INSTROOT}/etc/services || exit 0
-grep -q '^ntp[[:space:]]*123/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
-[ $$? -ne 0 ] && echo "ntp            123/tcp     # Network Time Protocol" >>$${IPKG_INSTROOT}/etc/services || exit 0
-endef
-
-define Package/ntpdate/postinst
-$(call Package/ntpd/Default/postinst)
-endef
-
-define Package/ntpd/postinst
-$(call Package/ntpd/Default/postinst)
-endef
-
-define Package/ntp-utils/postinst
-$(call Package/ntpd/Default/postinst)
-endef
-
 TARGET_CPPFLAGS += \
        -I$(STAGING_DIR)/usr/include/libelf
 
@@ -149,7 +129,6 @@ endef
 
 Package/ntpd-ssl/conffiles = $(Package/ntpd/conffiles)
 Package/ntpd-ssl/install = $(Package/ntpd/install)
-Package/ntpd-ssl/postinst = $(Package/ntpd/postinst)
 
 define Package/ntpdate/install
        $(INSTALL_DIR) $(1)/usr/sbin