diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2013-06-02 16:33:05 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-06-02 16:33:05 +0200 |
commit | 1ba51d2fbddd5650f8caea0a327b9031238ad843 (patch) | |
tree | 05d5df7b487e76597b34cb0b1fc9543525169a62 /package/ptpd | |
parent | 0c94aa549cc8cf483bc8c3443a2b1f772d5d180b (diff) | |
parent | fb2f3d58bde6aaac12b62eeb16492c93329b8713 (diff) | |
download | buildroot-novena-1ba51d2fbddd5650f8caea0a327b9031238ad843.tar.gz buildroot-novena-1ba51d2fbddd5650f8caea0a327b9031238ad843.zip |
Merge branch 'next'
Diffstat (limited to 'package/ptpd')
-rw-r--r-- | package/ptpd/Config.in | 7 | ||||
-rwxr-xr-x | package/ptpd/S65ptpd | 29 | ||||
-rw-r--r-- | package/ptpd/ptpd.mk | 25 |
3 files changed, 61 insertions, 0 deletions
diff --git a/package/ptpd/Config.in b/package/ptpd/Config.in new file mode 100644 index 000000000..2d87ca31b --- /dev/null +++ b/package/ptpd/Config.in @@ -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/ diff --git a/package/ptpd/S65ptpd b/package/ptpd/S65ptpd new file mode 100755 index 000000000..4206c5e0c --- /dev/null +++ b/package/ptpd/S65ptpd @@ -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 $? diff --git a/package/ptpd/ptpd.mk b/package/ptpd/ptpd.mk new file mode 100644 index 000000000..481a64eef --- /dev/null +++ b/package/ptpd/ptpd.mk @@ -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)) |