Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

7
package/ptpd/Config.in Normal file
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/

29
package/ptpd/S65ptpd Normal file
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 $?

3
package/ptpd/ptpd.hash Normal file
View File

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

30
package/ptpd/ptpd.mk Normal file
View File

@@ -0,0 +1,30 @@
################################################################################
#
# 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
endef
$(eval $(generic-package))

10
package/ptpd/ptpd.service Normal file
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