Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_PTPD
bool "ptpd"
help
The PTP daemon (PTPd) implements the Precision Time protocol
(PTP) as defined by the IEEE-1588-2002.
http://ptpd.sourceforge.net/

View File

@@ -0,0 +1,29 @@
#!/bin/sh
#
# Start ptpd
#
case "$1" in
start)
printf "Starting ptpd: "
start-stop-daemon -S -q -x /usr/sbin/ptpd -- -S
if [ $? != 0 ]; then
echo "FAILED"
exit 1
else
echo "OK"
fi
;;
stop)
printf "Stopping ptpd: "
start-stop-daemon -K -q -x /usr/sbin/ptpd
echo "OK"
;;
restart|reload)
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

View File

@@ -0,0 +1,2 @@
# Locally computed:
sha256 a7c6ea83bd53da75ae04a7b7a25fe7c597b4e9ff1f93d46f4502e3fa8a2cb950 ptpd-1.1.0.tar.gz

View File

@@ -0,0 +1,33 @@
################################################################################
#
# ptpd
#
################################################################################
PTPD_VERSION = 1.1.0
PTPD_SITE = http://downloads.sourceforge.net/project/ptpd/ptpd/$(PTPD_VERSION)
PTPD_LICENSE = BSD
PTPD_LICENSE_FILES = COPYRIGHT
define PTPD_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/src
endef
define PTPD_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -D $(@D)/src/ptpd $(TARGET_DIR)/usr/sbin/ptpd
endef
define PTPD_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/ptpd/S65ptpd \
$(TARGET_DIR)/etc/init.d/S65ptpd
endef
define PTPD_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/ptpd/ptpd.service \
$(TARGET_DIR)/usr/lib/systemd/system/ptpd.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -sf ../../../../usr/lib/systemd/system/ptpd.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ptpd.service
endef
$(eval $(generic-package))

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Precision Time Protocol daemon
After=syslog.target network.target
[Service]
ExecStart=/usr/sbin/ptpd -c
Restart=always
[Install]
WantedBy=multi-user.target