[packages] ptpd: fix initscript file name, fix description, add copyright header...
[openwrt/svn-archive/archive.git] / net / ptpd / Makefile
1 #
2 # Copyright (C) 2010 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:=1.0.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ptpd
16 PKG_MD5SUM:=b112b2bedc7f6e6e11a838608b9e0357
17
18 include $(INCLUDE_DIR)/package.mk
19
20 MAKE_PATH:=src
21
22 define Package/ptpd
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Precision Time protocol (PTP) daemon
26 URL:=http://ptpd.sourceforge.net/
27 endef
28
29 define Package/ptpd/daemon
30 The PTP daemon (PTPd) implements the Precision Time protocol (PTP) as defined by the IEEE 1588 standard.
31 PTP was developed to provide very precise time coordination of LAN connected computers.
32 endef
33
34 define Package/ptpd/install
35 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ptpd $(1)/usr/sbin/
37 $(INSTALL_BIN) ./files/ptpd.init $(1)/etc/init.d/ptpd
38 endef
39
40 $(eval $(call BuildPackage,ptpd))