[packages] ptpd: update to 2.1.0
[openwrt/svn-archive/archive.git] / net / ptpd / Makefile
1 #
2 # Copyright (C) 2010-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ptpd
11 PKG_VERSION:=2.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ptpd
16 PKG_MD5SUM:=9748f031ed9ebb5c600de354dae53046
17
18 include $(INCLUDE_DIR)/package.mk
19
20 MAKE_PATH:=src
21
22 define Package/ptpd
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Time Synchronization
26 TITLE:=Precision Time Protocol (PTP) daemon
27 URL:=http://ptpd.sourceforge.net/
28 DEPENDS:=+libpthread +librt
29 endef
30
31 define Package/ptpd/description
32 The PTP daemon (PTPd) implements version 2 of the Precision Time Protocol (PTP)
33 as defined by the IEEE 1588-2008 standard.
34 PTP was developed to provide very precise time coordination of LAN connected
35 computers.
36 endef
37
38 define Package/ptpd/install
39 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ptpd2 $(1)/usr/sbin/ptpd
41 $(INSTALL_BIN) ./files/ptpd.init $(1)/etc/init.d/ptpd
42 endef
43
44 $(eval $(call BuildPackage,ptpd))