diff options
author | Wojciech Dubowik <Wojciech.Dubowik@neratec.com> | 2016-01-19 11:04:02 +0100 |
---|---|---|
committer | Wojciech Dubowik <Wojciech.Dubowik@neratec.com> | 2016-01-19 11:04:02 +0100 |
commit | c29df288435b093066375ac93d34ac5d536ef149 (patch) | |
tree | 7cef6e7348918516fc153e9ded196148ebae7e0d /net/linuxptp/Makefile | |
parent | af81973a24345b5825c9893e3cbfbbfac3133d31 (diff) |
linuxptp: Add the package
Linuxptp is a user space software implementation of IEEE 1588
Precision Time Protocol standard.
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
Reviewed-by: John Crispin<blogic@openwrt.org>
Diffstat (limited to 'net/linuxptp/Makefile')
-rw-r--r-- | net/linuxptp/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/net/linuxptp/Makefile b/net/linuxptp/Makefile new file mode 100644 index 000000000..9bc881da9 --- /dev/null +++ b/net/linuxptp/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2015 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:=linuxptp +PKG_VERSION:=20151118 +PKG_RELEASE:=1 +PKG_REV:=999c86f4a9da4bf4508b3a69289f58166ed18a55 + +PKG_MAINTAINER:=Wojciech Dubowik <Wojciech.Dubowik@neratec.com> +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=git://git.code.sf.net/p/linuxptp/code +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=$(PKG_REV) +PKG_SOURCE_PROTO:=git +PKG_MD5SUM:= + +PKG_LICENSE:=GPL-2.0 +PKG_LICENSE_FILES:=COPYING + +include $(INCLUDE_DIR)/package.mk + +define Package/linuxptp + SECTION:=net + CATEGORY:=Network + SUBMENU:=Time Synchronization + TITLE:=Linux Precision Time Protocol (PTP) daemon + URL:=http://linuxptp.sourceforge.net/ + DEPENDS:=@!USE_UCLIBC +librt +endef + +define Package/linuxptp/description + The PTP daemon (PTPd) implements version 2 of the Precision Time Protocol (PTP) + as defined by the IEEE 1588-2008 standard. + PTP was developed to provide very precise time coordination of LAN connected + computers. +endef + +define Package/linuxptp/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/hwstamp_ctl $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc2sys $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc_ctl $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/pmc $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ptp4l $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/timemaster $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,linuxptp)) |