X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=net%2Fntpd%2FMakefile;h=6a2b70c8a0dbc9419042cb5db6460052b6e28bef;hb=84913d6cfd85a3b5a7896dacdeae98873c73b162;hp=c0963a795198c596400eb410475f8f7c0a1658e3;hpb=039b0b9b4ba15c46842b43bc3ff48c9c75feb4ac;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/net/ntpd/Makefile b/net/ntpd/Makefile index c0963a7951..6a2b70c8a0 100644 --- a/net/ntpd/Makefile +++ b/net/ntpd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,14 +8,18 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ntp -PKG_VERSION:=4.2.4p8 +PKG_VERSION:=4.2.6p3 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ -PKG_MD5SUM:=fe137056e7e611798a46971a783567ce +PKG_MD5SUM:=59876a9009b098ff59767ee45a88ebd2 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DEPENDS:=libelf +PKG_FIXUP:=libtool +PKG_LIBTOOL_PATHS:=. sntp include $(INCLUDE_DIR)/package.mk @@ -24,95 +28,96 @@ define Package/ntpd/Default SECTION:=net CATEGORY:=Network TITLE:=ISC ntp + MAINTAINER:=Peter Wagner URL:=http://www.ntp.org/ endef define Package/ntpd/Default/description - The ISC ntp suite is a collection of tools used to synchronize - the system clock with remote NTP time servers and run/montior - local NTP servers. + The ISC ntp suite is a collection of tools used to synchronize the + system clock with remote NTP time servers and run/montior local NTP + servers. endef define Package/ntpd - $(call Package/ntpd/Default) +$(call Package/ntpd/Default) TITLE+= server + VARIANT:=nossl endef define Package/ntpd/description - $(call Package/ntpd/Default/description) - This package contains the ntpd server. +$(call Package/ntpd/Default/description) + . + This package contains the ntpd server. +endef + +define Package/ntpd-ssl +$(call Package/ntpd/Default) + TITLE+= server (with OpenSSL support) + VARIANT:=ssl + DEPENDS:=+libopenssl +endef + +define Package/ntpd-ssl/description +$(call Package/ntpd/Default/description) + . + This package contains the ntpd server with OpenSSL support. endef define Package/ntpdate - $(call Package/ntpd/Default) +$(call Package/ntpd/Default) TITLE+=date + VARIANT:=nossl endef define Package/ntpdate/description - $(call Package/ntpd/Default/description) - This package contains ntpdate. +$(call Package/ntpd/Default/description) + . + This package contains ntpdate. endef define Package/ntp-utils - $(call Package/ntpd/Default) - DEPENDS:=+libncurses +$(call Package/ntpd/Default) TITLE+= utilities + VARIANT:=nossl + DEPENDS:=+libncurses endef define Package/ntp-utils/description - $(call Package/ntpd/Default/description) - This package contains ntpdc and ntpq. +$(call Package/ntpd/Default/description) + . + This package contains ntpdc and ntpq. endef 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 +TARGET_CPPFLAGS += \ + -I$(STAGING_DIR)/usr/include/libelf CONFIGURE_VARS += \ - ac_cv_header_md5_h=no - -define Build/Configure - $(call Build/Configure/Default, \ - --disable-all-clocks \ - --disable-parse-clocks \ - --enable-NMEA \ - --enable-LOCAL-CLOCK \ - --enable-SHM \ - --disable-linuxcaps, \ - ac_cv_lib_rt_sched_setscheduler=no \ - ac_cv_header_dns_sd_h=no \ - ) -endef - -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - CFLAGS="$(TARGET_CFLAGS)" -endef + ac_cv_header_md5_h=no \ + ac_cv_lib_rt_sched_setscheduler=no \ + ac_cv_header_dns_sd_h=no + +CONFIGURE_ARGS += \ + --disable-all-clocks \ + --disable-parse-clocks \ + --enable-NMEA \ + --enable-LOCAL-CLOCK \ + --enable-SHM \ + --disable-linuxcaps \ + --without-ntpsnmpd \ + +ifeq ($(BUILD_VARIANT),ssl) + CONFIGURE_ARGS += \ + --with-crypto \ + --with-openssl-incdir="$(STAGING_DIR)/usr/include" \ + --with-openssl-libdir="$(STAGING_DIR)/usr/lib" +endif define Package/ntpd/install - $(INSTALL_DIR) $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd/ntpd $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc $(INSTALL_CONF) ./files/ntp.conf $(1)/etc/ @@ -122,19 +127,23 @@ define Package/ntpd/install $(INSTALL_BIN) ./files/ntpd.hotplug $(1)/etc/hotplug.d/iface/20-ntpd endef +Package/ntpd-ssl/conffiles = $(Package/ntpd/conffiles) +Package/ntpd-ssl/install = $(Package/ntpd/install) + define Package/ntpdate/install - $(INSTALL_DIR) $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpdate/ntpdate $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/ntpdate.init $(1)/etc/init.d/ntpdate endef define Package/ntp-utils/install - $(INSTALL_DIR) $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpdc/ntpdc $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpq/ntpq $(1)/usr/sbin/ endef $(eval $(call BuildPackage,ntpd)) +$(eval $(call BuildPackage,ntpd-ssl)) $(eval $(call BuildPackage,ntpdate)) $(eval $(call BuildPackage,ntp-utils))