Move all to deprecated folder.
This commit is contained in:
7
deprecated/firmware/buildroot/package/ptpd/Config.in
Normal file
7
deprecated/firmware/buildroot/package/ptpd/Config.in
Normal 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/
|
||||
29
deprecated/firmware/buildroot/package/ptpd/S65ptpd
Executable file
29
deprecated/firmware/buildroot/package/ptpd/S65ptpd
Executable 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 $?
|
||||
2
deprecated/firmware/buildroot/package/ptpd/ptpd.hash
Normal file
2
deprecated/firmware/buildroot/package/ptpd/ptpd.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 a7c6ea83bd53da75ae04a7b7a25fe7c597b4e9ff1f93d46f4502e3fa8a2cb950 ptpd-1.1.0.tar.gz
|
||||
33
deprecated/firmware/buildroot/package/ptpd/ptpd.mk
Normal file
33
deprecated/firmware/buildroot/package/ptpd/ptpd.mk
Normal 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))
|
||||
10
deprecated/firmware/buildroot/package/ptpd/ptpd.service
Normal file
10
deprecated/firmware/buildroot/package/ptpd/ptpd.service
Normal 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
|
||||
Reference in New Issue
Block a user