source: packages/net/openntpd/Makefile @ 26717

Last change on this file since 26717 was 26717, checked in by jow, 6 years ago

[packages] openntpd:

  • don't check directory permissions, we can't make /var 0700 (#9258)
  • fix init script after r26148, use service_kill instead of killall -9 (#9258)
  • bump pkg revision
  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=openntpd
11PKG_VERSION:=3.9p1
12PKG_RELEASE:=4
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
16        ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/ \
17        ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenNTPD/ \
18        ftp://ftp.sunet.se/pub/OpenBSD/OpenNTPD/
19PKG_MD5SUM:=afc34175f38d08867c1403d9008600b3
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/openntpd
24  SUBMENU:=Time Synchronization
25  SECTION:=net
26  CATEGORY:=Network
27  TITLE:=NTP server
28  URL:=http://www.openntpd.org/
29endef
30
31define Package/openntpd/description
32        A free and easy to use NTP (Network Time Protocol) implementation.
33endef
34
35define Package/openntpd/conffiles
36/etc/ntpd.conf
37endef
38
39define Build/Configure
40        $(call Build/Configure/Default, \
41                --with-builtin-arc4random \
42                --with-privsep-user=network \
43                --with-adjtimex \
44        )
45endef
46
47define Build/Compile
48        $(MAKE) -C $(PKG_BUILD_DIR) \
49                CFLAGS="$(TARGET_CFLAGS) -DUSE_ADJTIMEX"
50endef
51
52define Package/openntpd/install
53        $(INSTALL_DIR) $(1)/usr/sbin/
54        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd $(1)/usr/sbin/
55        $(INSTALL_DIR) $(1)/etc
56        $(INSTALL_DATA) ./files/ntpd.conf $(1)/etc/
57        $(INSTALL_DIR) $(1)/etc/init.d
58        $(INSTALL_BIN) ./files/ntpd.init $(1)/etc/init.d/ntpd
59        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
60        $(INSTALL_BIN) ./files/ntpd.hotplug $(1)/etc/hotplug.d/iface/20-ntpd
61endef
62
63$(eval $(call BuildPackage,openntpd))
Note: See TracBrowser for help on using the repository browser.