diff options
| author | jackie huang <jackie.huang@windriver.com> | 2012-09-29 07:52:11 +0000 |
|---|---|---|
| committer | Joe MacDonald <joe.macdonald@windriver.com> | 2012-10-01 13:33:20 -0400 |
| commit | 17119081f93dd0ffd09892bf5d0b3ed69378ab39 (patch) | |
| tree | 06ace5a0e188136508bd94e29a424e1ab8c1cf43 | |
| parent | b8654266721fa1a06803929e025c2b85b33972ca (diff) | |
| download | meta-openembedded-17119081f93dd0ffd09892bf5d0b3ed69378ab39.tar.gz | |
ptpd: update to 2.2.0
ptpd: update to 2.2.0
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
3 files changed, 125 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/adjust-daemon-name.patch b/meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/adjust-daemon-name.patch new file mode 100644 index 0000000000..f6934b69ba --- /dev/null +++ b/meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/adjust-daemon-name.patch | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | Patch from http://patch-tracker.debian.org/package/ptpd | ||
| 2 | |||
| 3 | Description: Executable name ptpd | ||
| 4 | This patch adjusts the binary executable to be called ptpd instead of ptpd2. | ||
| 5 | Similarly, the man page name is adjusted. | ||
| 6 | Author: Roland Stigge <stigge@antcom.de> | ||
| 7 | |||
| 8 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
| 9 | --- | ||
| 10 | src/Makefile | 4 ++-- | ||
| 11 | src/ptpd2.8 | 8 ++++---- | ||
| 12 | 2 files changed, 6 insertions(+), 6 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/src/Makefile b/src/Makefile | ||
| 15 | index dbbe525..a672625 100644 | ||
| 16 | --- a/src/Makefile | ||
| 17 | +++ b/src/Makefile | ||
| 18 | @@ -1,4 +1,4 @@ | ||
| 19 | -# Makefile for ptpd2 | ||
| 20 | +# Makefile for ptpd | ||
| 21 | |||
| 22 | # | ||
| 23 | # Compile time defines: | ||
| 24 | @@ -42,7 +42,7 @@ CFLAGS += -DPTP_EXPERIMENTAL | ||
| 25 | |||
| 26 | LDFLAGS+= -lm -lrt | ||
| 27 | |||
| 28 | -PROG = ptpd2 | ||
| 29 | +PROG = ptpd | ||
| 30 | SRCS = ptpd.c arith.c bmc.c protocol.c display.c\ | ||
| 31 | dep/msg.c dep/net.c dep/servo.c dep/startup.c dep/sys.c dep/timer.c | ||
| 32 | |||
| 33 | diff --git a/src/ptpd2.8 b/src/ptpd2.8 | ||
| 34 | index c6100f4..21f1906 100644 | ||
| 35 | --- a/src/ptpd2.8 | ||
| 36 | +++ b/src/ptpd2.8 | ||
| 37 | @@ -1,9 +1,9 @@ | ||
| 38 | .\" -*- nroff -*" | ||
| 39 | -.TH ptpd2 8 "January, 2012" "version 2.2.0" "Precision Time Protocol daemon" | ||
| 40 | +.TH ptpd 8 "January, 2012" "version 2.2.0" "Precision Time Protocol daemon" | ||
| 41 | .SH NAME | ||
| 42 | -ptpd2 \- Precision Time Protocol daemon (1588-2008) | ||
| 43 | +ptpd \- Precision Time Protocol daemon (1588-2008) | ||
| 44 | .SH SYNOPSIS | ||
| 45 | -.B ptpd2 | ||
| 46 | +.B ptpd | ||
| 47 | [?] | ||
| 48 | [-B] | ||
| 49 | [-c] | ||
| 50 | @@ -182,7 +182,7 @@ run as master without NTP | ||
| 51 | set an initial delay request value | ||
| 52 | .TP | ||
| 53 | .B \-L | ||
| 54 | -enable running multiple ptpd2 daemons | ||
| 55 | +enable running multiple ptpd daemons | ||
| 56 | .TP | ||
| 57 | .B \-j | ||
| 58 | turn off IGMP refresh messages | ||
| 59 | -- | ||
| 60 | 1.7.4 | ||
| 61 | |||
diff --git a/meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/ld-as-needed.patch b/meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/ld-as-needed.patch new file mode 100644 index 0000000000..7d5251be3d --- /dev/null +++ b/meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/ld-as-needed.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Patch from http://patch-tracker.debian.org/package/ptpd | ||
| 2 | |||
| 3 | Description: Fix ld --as-needed | ||
| 4 | This patch fixes the order of gcc arguments to fix ld --as-needed | ||
| 5 | Author: Roland Stigge <stigge@antcom.de> | ||
| 6 | Bug-Debian: http://bugs.debian.org/607583 | ||
| 7 | |||
| 8 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
| 9 | --- | ||
| 10 | src/Makefile | 4 ++-- | ||
| 11 | 1 files changed, 2 insertions(+), 2 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/src/Makefile b/src/Makefile | ||
| 14 | index a672625..88a2fc8 100644 | ||
| 15 | --- a/src/Makefile | ||
| 16 | +++ b/src/Makefile | ||
| 17 | @@ -40,7 +40,7 @@ CFLAGS += -DDBG_SIGUSR2_CHANGE_DEBUG | ||
| 18 | |||
| 19 | CFLAGS += -DPTP_EXPERIMENTAL | ||
| 20 | |||
| 21 | -LDFLAGS+= -lm -lrt | ||
| 22 | +LIBS += -lm -lrt | ||
| 23 | |||
| 24 | PROG = ptpd | ||
| 25 | SRCS = ptpd.c arith.c bmc.c protocol.c display.c\ | ||
| 26 | @@ -63,7 +63,7 @@ TAGFILES = GPATH GRTAGS GSYMS GTAGS cscope.in.out cscope.out cscope.po.out | ||
| 27 | all: $(PROG) | ||
| 28 | |||
| 29 | $(PROG): $(OBJS) | ||
| 30 | - $(CC) -o $@ $(OBJS) $(LDFLAGS) | ||
| 31 | + $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) | ||
| 32 | |||
| 33 | $(OBJS): $(HDRS) | ||
| 34 | |||
| 35 | -- | ||
| 36 | 1.7.4 | ||
| 37 | |||
diff --git a/meta-networking/recipes-daemons/ptpd/ptpd_2.2.0.bb b/meta-networking/recipes-daemons/ptpd/ptpd_2.2.0.bb new file mode 100644 index 0000000000..3449ee8491 --- /dev/null +++ b/meta-networking/recipes-daemons/ptpd/ptpd_2.2.0.bb | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | SUMMARY = "The PTP daemon (PTPd)" | ||
| 2 | DESCRIPTION = "The PTP daemon (PTPd) implements the Precision Time protocol (PTP) as \ | ||
| 3 | defined by the relevant IEEE 1588 standard. PTP Version 1 implements IEEE-1588-2002, \ | ||
| 4 | and PTP Version 2 implements IEEE-1588-2008. PTP was developed to provide very precise \ | ||
| 5 | time coordination of LAN connected computers." | ||
| 6 | HOMEPAGE = "http://sourceforge.net/projects/ptpd" | ||
| 7 | SECTION = "network" | ||
| 8 | LICENSE = "BSD" | ||
| 9 | LIC_FILES_CHKSUM = "file://../COPYRIGHT;md5=3d8ac2c46c116bce2d2ad838b6cf3491" | ||
| 10 | |||
| 11 | SRC_URI = "http://downloads.sourceforge.net/project/ptpd/ptpd/${PV}/ptpd-${PV}.tar.gz \ | ||
| 12 | file://adjust-daemon-name.patch;striplevel=2 \ | ||
| 13 | file://ld-as-needed.patch;striplevel=2 \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI[md5sum] = "c63a3a149d30c710773ccb02df5782a3" | ||
| 17 | SRC_URI[sha256sum] = "f2266a22db84318d8b9ce266ea83772c03438c31f4993fa9643fa675a07c26b4" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/ptpd-${PV}/src" | ||
| 20 | |||
| 21 | EXTRA_OEMAKE = "" | ||
| 22 | |||
| 23 | do_install() { | ||
| 24 | install -d ${D}${bindir} ${D}${mandir}/man8 | ||
| 25 | install -m 0755 ptpd ${D}${bindir} | ||
| 26 | install -m 0644 ptpd2.8 ${D}${mandir}/man8 | ||
| 27 | } | ||
