This repository has been archived by the owner on Mar 17, 2018. It is now read-only.
/
Makefile
150 lines (126 loc) · 3.64 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#
# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ntp
PKG_VERSION:=4.2.8p10
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
PKG_HASH:=ddd2366e64219b9efa0f7438e06800d0db394ac5c88e13c17b70d0dcdf99b99f
PKG_LICENSE:=Unique
PKG_LICENSE_FILES:=COPYRIGHT html/copyright.html
PKG_FIXUP:=autoreconf
PKG_LIBTOOL_PATHS:=. sntp
PKG_CHECK_FORMAT_SECURITY:=0
include $(INCLUDE_DIR)/package.mk
define Package/ntpd/Default
SUBMENU:=Time Synchronization
SECTION:=net
CATEGORY:=Network
TITLE:=ISC ntp
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
URL:=http://www.ntp.org/
DEPENDS:=+libopenssl +libpthread +libcap
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/monitor local NTP
servers.
endef
define Package/ntpd
$(call Package/ntpd/Default)
DEPENDS+= +ntp-utils
TITLE+= server
USERID:=ntp=123:ntp=123
endef
define Package/ntpd/description
$(call Package/ntpd/Default/description)
.
This package contains the ntpd server.
endef
define Package/ntpdate
$(call Package/ntpd/Default)
TITLE+=date
endef
define Package/ntpdate/description
$(call Package/ntpd/Default/description)
.
This package contains ntpdate.
endef
define Package/ntp-utils
$(call Package/ntpd/Default)
TITLE+= utilities
endef
define Package/ntp-utils/description
$(call Package/ntpd/Default/description)
.
This package contains ntpdc, ntpq and ntptime.
endef
define Package/ntp-keygen
$(call Package/ntpd/Default)
TITLE+=keygen
DEPENDS+= +libevent2-core
endef
define Package/ntp-keygen/description
$(call Package/ntpd/Default/description)
.
This package contains the ntp-keygen.
endef
define Package/ntpd/conffiles
/opt/etc/ntp.conf
endef
CONFIGURE_VARS += \
ac_cv_header_md5_h=no \
ac_cv_lib_rt_sched_setscheduler=no \
ac_cv_header_dns_sd_h=no \
hw_cv_func_snprintf_c99=yes \
hw_cv_func_vsnprintf_c99=yes \
CONFIGURE_ARGS += \
--disable-all-clocks \
--disable-parse-clocks \
--without-ntpsnmpd \
--without-lineeditlibs \
--enable-NMEA \
--enable-LOCAL-CLOCK \
--enable-SHM \
--enable-ATOM \
--enable-linuxcaps \
--with-yielding-select=yes \
--with-crypto \
--with-openssl-incdir="$(STAGING_DIR)/opt/include" \
--with-openssl-libdir="$(STAGING_DIR)/opt/lib"
define Package/ntpd/install
$(INSTALL_DIR) $(1)/opt/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd/ntpd $(1)/opt/sbin/
$(INSTALL_DIR) $(1)/opt/etc
$(INSTALL_CONF) ./files/ntp.conf $(1)/opt/etc/
$(INSTALL_DIR) $(1)/opt/etc/init.d
$(INSTALL_BIN) ./files/S77ntpd $(1)/opt/etc/init.d/
$(INSTALL_DIR) $(1)/opt/etc/hotplug.d/iface
$(INSTALL_BIN) ./files/ntpd.hotplug $(1)/opt/etc/hotplug.d/iface/20-ntpd
$(INSTALL_DIR) $(1)/opt/var/spool/ntp
endef
define Package/ntpdate/install
$(INSTALL_DIR) $(1)/opt/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpdate/ntpdate $(1)/opt/sbin/
$(INSTALL_DIR) $(1)/opt/etc/init.d
$(INSTALL_BIN) ./files/S77ntpdate $(1)/opt/etc/init.d/
endef
define Package/ntp-utils/install
$(INSTALL_DIR) $(1)/opt/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpdc/ntpdc $(1)/opt/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpq/ntpq $(1)/opt/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/ntptime $(1)/opt/sbin/
endef
define Package/ntp-keygen/install
$(INSTALL_DIR) $(1)/opt/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/util/ntp-keygen $(1)/opt/sbin/
endef
$(eval $(call BuildPackage,ntpd))
$(eval $(call BuildPackage,ntpdate))
$(eval $(call BuildPackage,ntp-utils))
$(eval $(call BuildPackage,ntp-keygen))