source: packages/net/ntpd/Makefile @ 9784

Last change on this file since 9784 was 9784, checked in by florian, 8 years ago

Upgrade ntpd to 4.2.4p4

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=ntp
12PKG_VERSION:=4.2.4p4
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/
17PKG_MD5SUM:=fcb32a01e1ae3f9ed5bac86b12c7a1cc
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/ntpd
24  SUBMENU:=Time Synchronization
25  SECTION:=net
26  CATEGORY:=Network
27  TITLE:=full featured NTP server
28  DEPENDS:=+libreadline
29  URL:=http://www.ntp.org/
30endef
31
32define Package/ntpd/description
33        The full featured original ntpd
34endef
35
36define Package/ntpd/conffiles
37/etc/ntp.conf
38endef
39
40define Package/ntpd/postinst
41#!/bin/sh
42echo "ntp             123/udp     # Network Time Protocol
43ntp             123/tcp     # Network Time Protocol" >> $${IPKG_INSTROOT}/etc/services
44endef
45
46define Build/Configure
47        $(call Build/Configure/Default, \
48                --disable-all-clocks \
49                --disable-parse-clocks \
50                --enable-NMEA \
51                --enable-LOCAL-CLOCK \
52                --enable-SHM \
53                --enable-linuxcaps \
54        )
55endef
56
57define Build/Compile
58        $(MAKE) -C $(PKG_BUILD_DIR) \
59                CFLAGS="$(TARGET_CFLAGS)"
60endef
61
62define Package/ntpd/install     
63        $(INSTALL_DIR) $(1)/usr/sbin/
64        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd/ntpd $(1)/usr/sbin/
65        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpdate/ntpdate $(1)/usr/sbin/
66        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpdc/ntpdc $(1)/usr/sbin/
67        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpq/ntpq $(1)/usr/sbin/
68        $(INSTALL_DIR) $(1)/etc
69        $(INSTALL_DATA) ./files/ntp.conf $(1)/etc/
70        $(INSTALL_DIR) $(1)/etc/init.d
71        $(INSTALL_BIN) ./files/ntpd.init $(1)/etc/init.d/ntpd
72        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
73        $(INSTALL_BIN) ./files/ntpd.hotplug $(1)/etc/hotplug.d/iface/20-ntpd
74endef
75
76$(eval $(call BuildPackage,ntpd))
Note: See TracBrowser for help on using the repository browser.