source "package/proftpd/Config.in"
source "package/proxychains-ng/Config.in"
source "package/ptpd/Config.in"
+source "package/ptpd2/Config.in"
source "package/quagga/Config.in"
source "package/radvd/Config.in"
source "package/rp-pppoe/Config.in"
--- /dev/null
+config BR2_PACKAGE_PTPD2
+ bool "ptpd2"
+ help
+ The PTP daemon (PTPd) implements the Precision Time protocol
+ (PTP) as defined by the IEEE-1588-2008.
+
+ http://ptpd.sourceforge.net/
--- /dev/null
+#!/bin/sh
+#
+# Start ptpd2
+#
+
+case "$1" in
+ start)
+ echo -n "Starting ptpd2: "
+ start-stop-daemon -S -q -x /usr/sbin/ptpd2 -- -g
+ if [ $? != 0 ]; then
+ echo "FAILED"
+ exit 1
+ else
+ echo "OK"
+ fi
+ ;;
+ stop)
+ echo -n "Stopping ptpd2: "
+ start-stop-daemon -K -q -x /usr/sbin/ptpd2
+ echo "OK"
+ ;;
+ restart|reload)
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $?
--- /dev/null
+#############################################################
+#
+# ptpd2
+#
+#############################################################
+
+PTPD2_VERSION = 2.2.2
+PTPD2_SITE = http://downloads.sourceforge.net/project/ptpd/ptpd/$(PTPD2_VERSION)
+PTPD2_SOURCE = ptpd-$(PTPD2_VERSION).tar.gz
+PTPD2_LICENSE = BSD-2c
+PTPD2_LICENSE_FILES = COPYRIGHT
+
+define PTPD2_BUILD_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/src
+endef
+
+define PTPD2_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 755 -D $(@D)/src/ptpd2 $(TARGET_DIR)/usr/sbin/ptpd2
+endef
+
+define PTPD2_INSTALL_INIT_SYSV
+ $(INSTALL) -m 755 -D package/ptpd2/S65ptpd2 \
+ $(TARGET_DIR)/etc/init.d/S65ptpd2
+endef
+
+$(eval $(generic-package))