ptpd: new package
Add the new ptpd package, loosely based on the one from bug #2305. This one handles the IEEE 1588-2002 spec. [Peter: mark init script as executable] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
92651931e7
commit
7d6449bb16
@ -751,6 +751,7 @@ source "package/pppd/Config.in"
|
||||
source "package/pptp-linux/Config.in"
|
||||
source "package/proftpd/Config.in"
|
||||
source "package/proxychains-ng/Config.in"
|
||||
source "package/ptpd/Config.in"
|
||||
source "package/quagga/Config.in"
|
||||
source "package/radvd/Config.in"
|
||||
source "package/rp-pppoe/Config.in"
|
||||
|
7
package/ptpd/Config.in
Normal file
7
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
package/ptpd/S65ptpd
Executable file
29
package/ptpd/S65ptpd
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Start ptpd
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting ptpd: "
|
||||
start-stop-daemon -S -q -x /usr/sbin/ptpd -- -S
|
||||
if [ $? != 0 ]; then
|
||||
echo "FAILED"
|
||||
exit 1
|
||||
else
|
||||
echo "OK"
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
echo -n "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 $?
|
25
package/ptpd/ptpd.mk
Normal file
25
package/ptpd/ptpd.mk
Normal file
@ -0,0 +1,25 @@
|
||||
#############################################################
|
||||
#
|
||||
# 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
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue
Block a user