add package PTPd
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19907 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
eaa91997e0
commit
1ebe73b5f8
33
net/ptpd/Makefile
Normal file
33
net/ptpd/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ptpd
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/ptpd
|
||||
PKG_MD5SUM:=b112b2bedc7f6e6e11a838608b9e0357
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
MAKE_PATH:=src
|
||||
|
||||
define Package/ptpd
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=PTPD
|
||||
URL:=http://ptpd.sourceforge.net/
|
||||
endef
|
||||
|
||||
define Package/ptpd/daemon
|
||||
The PTP daemon (PTPd) implements the Precision Time protocol (PTP) as defined by the IEEE 1588 standard.
|
||||
PTP was developed to provide very precise time coordination of LAN connected computers.
|
||||
endef
|
||||
|
||||
define Package/ptpd/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ptpd $(1)/usr/sbin/
|
||||
$(INSTALL_BIN) ./files/ptpd.init $(1)/etc/init.d/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,ptpd))
|
11
net/ptpd/files/ptpd.init
Normal file
11
net/ptpd/files/ptpd.init
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=50
|
||||
|
||||
start() {
|
||||
ptpd
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall ptpd
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user