2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.eecis.udel.edu
/~ntp
/ntp_spool
/ntp4
/ntp-4.2
/
16 PKG_HASH
:=288772cecfcd9a53694ffab108d1825a31ba77f3a8466b0401baeca3bc232a38
19 PKG_LICENSE_FILES
:=COPYRIGHT html
/copyright.html
20 PKG_CPE_ID
:=cpe
:/a
:ntp
:ntp
23 PKG_LIBTOOL_PATHS
:=. sntp
24 PKG_CHECK_FORMAT_SECURITY
:=0
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/ntpd
/Default
30 SUBMENU
:=Time Synchronization
34 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
35 URL
:=http
://www.ntp.org
/
36 DEPENDS
:=+libopenssl
+libpthread
+libcap
+libevent2-pthreads
39 define Package
/ntpd
/Default
/description
40 The ISC ntp suite is a collection of tools used to synchronize the
41 system clock with remote NTP time servers and run
/monitor local NTP
46 $(call Package
/ntpd
/Default
)
49 USERID
:=ntp
=123:ntp
=123
52 define Package
/ntpd
/description
53 $(call Package
/ntpd
/Default
/description
)
55 This package contains the ntpd server.
58 define Package
/ntpdate
59 $(call Package
/ntpd
/Default
)
63 define Package
/ntpdate
/description
64 $(call Package
/ntpd
/Default
/description
)
66 This package contains ntpdate.
69 define Package
/ntp-utils
70 $(call Package
/ntpd
/Default
)
74 define Package
/ntp-utils
/description
75 $(call Package
/ntpd
/Default
/description
)
77 This package contains ntpdc
, ntpq and ntptime.
80 define Package
/ntp-keygen
81 $(call Package
/ntpd
/Default
)
85 define Package
/ntp-keygen
/description
86 $(call Package
/ntpd
/Default
/description
)
88 This package contains the ntp-keygen.
92 ac_cv_header_md5_h
=no \
93 ac_cv_lib_rt_sched_setscheduler
=no \
94 ac_cv_header_dns_sd_h
=no \
95 hw_cv_func_snprintf_c99
=yes \
96 hw_cv_func_vsnprintf_c99
=yes \
99 --disable-all-clocks \
100 --disable-parse-clocks \
102 --without-lineeditlibs \
104 --enable-LOCAL-CLOCK \
108 --with-yielding-select
=yes \
110 --with-openssl-incdir
="$(STAGING_DIR)/usr/include" \
111 --with-openssl-libdir
="$(STAGING_DIR)/usr/lib"
113 define Package
/ntpd
/install
114 $(INSTALL_DIR
) $(1)/sbin
115 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpd
/ntpd
$(1)/sbin
/
116 $(INSTALL_DIR
) $(1)/usr
/sbin
117 $(INSTALL_BIN
) .
/files
/ntpd.hotplug-helper
$(1)/usr
/sbin
/
118 $(INSTALL_DIR
) $(1)/etc
/init.d
119 $(INSTALL_BIN
) .
/files
/ntpd.init
$(1)/etc
/init.d
/ntpd
120 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
121 $(INSTALL_BIN
) .
/files
/ntpd.hotplug
$(1)/etc
/hotplug.d
/iface
/20-ntpd
124 define Package
/ntpd
/postinst
126 [ -L
"$${IPKG_INSTROOT}/usr/sbin/ntpd" ] && rm -f
"$${IPKG_INSTROOT}/usr/sbin/ntpd"
130 define Package
/ntpd
/postrm
132 /bin
/busybox ntpd
-h
2>&1 | grep
-q BusyBox
&& ln
-sf ..
/..
/bin
/busybox
/usr
/sbin
/ntpd
136 define Package
/ntpdate
/install
137 $(INSTALL_DIR
) $(1)/usr
/sbin
138 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpdate
/ntpdate
$(1)/usr
/sbin
/
139 $(INSTALL_DIR
) $(1)/etc
/init.d
140 $(INSTALL_BIN
) .
/files
/ntpdate.init
$(1)/etc
/init.d
/ntpdate
143 define Package
/ntp-utils
/install
144 $(INSTALL_DIR
) $(1)/usr
/sbin
145 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpdc
/ntpdc
$(1)/usr
/sbin
/
146 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpq
/ntpq
$(1)/usr
/sbin
/
147 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/util
/ntptime
$(1)/usr
/sbin
/
150 define Package
/ntp-keygen
/install
151 $(INSTALL_DIR
) $(1)/usr
/sbin
152 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/util
/ntp-keygen
$(1)/usr
/sbin
/
155 $(eval
$(call BuildPackage
,ntpd
))
156 $(eval
$(call BuildPackage
,ntpdate
))
157 $(eval
$(call BuildPackage
,ntp-utils
))
158 $(eval
$(call BuildPackage
,ntp-keygen
))