From: Felix Fietkau Date: Sun, 13 Mar 2011 19:56:38 +0000 (+0000) Subject: ntpd: remove the postinst script for updating /etc/services X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=637414bf0e9290870161e5db97ddf066cf7107f0;p=openwrt%2Fsvn-archive%2Fpackages.git ntpd: remove the postinst script for updating /etc/services SVN-Revision: 26146 --- diff --git a/net/ntpd/Makefile b/net/ntpd/Makefile index 04059f207..e42c68c0b 100644 --- a/net/ntpd/Makefile +++ b/net/ntpd/Makefile @@ -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