summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/ptpd
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/ptpd')
-rw-r--r--meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/ld-as-needed.patch37
-rw-r--r--meta-networking/recipes-daemons/ptpd/ptpd_2.2.0.bb28
2 files changed, 65 insertions, 0 deletions
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 @@
1Patch from http://patch-tracker.debian.org/package/ptpd
2
3Description: Fix ld --as-needed
4 This patch fixes the order of gcc arguments to fix ld --as-needed
5Author: Roland Stigge <stigge@antcom.de>
6Bug-Debian: http://bugs.debian.org/607583
7
8Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
9---
10 src/Makefile | 4 ++--
11 1 files changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/src/Makefile b/src/Makefile
14index 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--
361.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..f2e895d1ca
--- /dev/null
+++ b/meta-networking/recipes-daemons/ptpd/ptpd_2.2.0.bb
@@ -0,0 +1,28 @@
1SUMMARY = "The PTP daemon (PTPd)"
2DESCRIPTION = "The PTP daemon (PTPd) implements the Precision Time protocol (PTP) as \
3defined by the relevant IEEE 1588 standard. PTP Version 1 implements IEEE-1588-2002, \
4and PTP Version 2 implements IEEE-1588-2008. PTP was developed to provide very precise \
5time coordination of LAN connected computers."
6HOMEPAGE = "http://sourceforge.net/projects/ptpd"
7SECTION = "network"
8LICENSE = "BSD"
9LIC_FILES_CHKSUM = "file://../COPYRIGHT;md5=3d8ac2c46c116bce2d2ad838b6cf3491"
10
11PR = "r1"
12
13SRC_URI = "http://downloads.sourceforge.net/project/ptpd/ptpd/${PV}/ptpd-${PV}.tar.gz \
14 file://ld-as-needed.patch;striplevel=2 \
15"
16
17SRC_URI[md5sum] = "c63a3a149d30c710773ccb02df5782a3"
18SRC_URI[sha256sum] = "f2266a22db84318d8b9ce266ea83772c03438c31f4993fa9643fa675a07c26b4"
19
20S = "${WORKDIR}/ptpd-${PV}/src"
21
22EXTRA_OEMAKE = ""
23
24do_install() {
25 install -d ${D}${bindir} ${D}${mandir}/man8
26 install -m 0755 ptpd2 ${D}${bindir}
27 install -m 0644 ptpd2.8 ${D}${mandir}/man8
28}