X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Fntpd%2FMakefile;h=62995d06a8377025f6c6f1b22aa88dd30a9b7bb4;hp=2acd6a72073e383ce6d01ee4b46aa0b806e09183;hb=0ae8e88b1285ad364ecfdfc79aa045d02a28ac25;hpb=71e771af94c634b51d8af9b4a8f3131a0daa9b51 diff --git a/net/ntpd/Makefile b/net/ntpd/Makefile index 2acd6a7207..62995d06a8 100644 --- a/net/ntpd/Makefile +++ b/net/ntpd/Makefile @@ -4,44 +4,55 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $ +# $Id$ include $(TOPDIR)/rules.mk PKG_NAME:=ntp -PKG_VERSION:=4.2.2p4 -PKG_RELEASE:=1 +PKG_VERSION:=4.2.4p4 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ -PKG_MD5SUM:=916fe57525f8327f340b203f129088fa -PKG_CAT:=zcat +PKG_MD5SUM:=fcb32a01e1ae3f9ed5bac86b12c7a1cc PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_BUILD_DEPENDS:=libelf include $(INCLUDE_DIR)/package.mk define Package/ntpd + SUBMENU:=Time Synchronization SECTION:=net CATEGORY:=Network TITLE:=full featured NTP server DEPENDS:=+libreadline - DESCRIPTION:=\ - The full featured original ntpd URL:=http://www.ntp.org/ endef +define Package/ntpd/description + The full featured original ntpd +endef + define Package/ntpd/conffiles /etc/ntp.conf endef +define Package/ntpd/postinst +#!/bin/sh +echo "ntp 123/udp # Network Time Protocol +ntp 123/tcp # Network Time Protocol" >> $${IPKG_INSTROOT}/etc/services +endef + +TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libelf + define Build/Configure $(call Build/Configure/Default, \ - --disable-all-clocks \ + --disable-all-clocks \ --disable-parse-clocks \ - --enable-NMEA \ + --enable-NMEA \ --enable-LOCAL-CLOCK \ - --enable-SHM \ + --enable-SHM \ --enable-linuxcaps \ ) endef @@ -60,9 +71,9 @@ define Package/ntpd/install $(INSTALL_DIR) $(1)/etc $(INSTALL_DATA) ./files/ntp.conf $(1)/etc/ $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_DATA) ./files/ntpd.init $(1)/etc/init.d/ntpd + $(INSTALL_BIN) ./files/ntpd.init $(1)/etc/init.d/ntpd $(INSTALL_DIR) $(1)/etc/hotplug.d/iface - $(INSTALL_DATA) ./files/ntpd.hotplug $(1)/etc/hotplug.d/iface/20-ntpd + $(INSTALL_BIN) ./files/ntpd.hotplug $(1)/etc/hotplug.d/iface/20-ntpd endef $(eval $(call BuildPackage,ntpd))