2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.eecis.udel.edu
/~ntp
/ntp_spool
/ntp4
/
17 PKG_MD5SUM
:=eb9147d26cbe18bd8fbec07f1df55aef
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
25 SUBMENU
:=Time Synchronization
28 TITLE
:=full featured NTP server
30 URL
:=http
://www.ntp.org
/
33 define Package
/ntpd
/description
34 The full featured original ntpd
37 define Package
/ntpd
/conffiles
41 define Package
/ntpd
/postinst
43 echo
"ntp 123/udp # Network Time Protocol
44 ntp 123/tcp # Network Time Protocol" >> $${IPKG_INSTROOT}/etc
/services
47 define Build
/Configure
48 $(call Build
/Configure
/Default
, \
49 --disable-all-clocks \
50 --disable-parse-clocks \
52 --enable-LOCAL-CLOCK \
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 CFLAGS
="$(TARGET_CFLAGS)"
63 define Package
/ntpd
/install
64 $(INSTALL_DIR
) $(1)/usr
/sbin
/
65 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpd
/ntpd
$(1)/usr
/sbin
/
66 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpdate
/ntpdate
$(1)/usr
/sbin
/
67 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpdc
/ntpdc
$(1)/usr
/sbin
/
68 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpq
/ntpq
$(1)/usr
/sbin
/
69 $(INSTALL_DIR
) $(1)/etc
70 $(INSTALL_DATA
) .
/files
/ntp.conf
$(1)/etc
/
71 $(INSTALL_DIR
) $(1)/etc
/init.d
72 $(INSTALL_BIN
) .
/files
/ntpd.init
$(1)/etc
/init.d
/ntpd
73 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
74 $(INSTALL_BIN
) .
/files
/ntpd.hotplug
$(1)/etc
/hotplug.d
/iface
/20-ntpd
77 $(eval
$(call BuildPackage
,ntpd
))