1 |
commit: 3430047a48a955ed4d9eae3f90b6fe40c5d36717 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon May 9 05:50:55 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 05:52:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3430047a |
7 |
|
8 |
net-misc/linuxptp: new package, add 3.1.1 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
net-misc/linuxptp/Manifest | 1 + |
13 |
.../linuxptp/files/linuxptp-3.1.1-makefile.patch | 34 ++++++++++++++++++++++ |
14 |
net-misc/linuxptp/linuxptp-3.1.1.ebuild | 29 ++++++++++++++++++ |
15 |
net-misc/linuxptp/metadata.xml | 12 ++++++++ |
16 |
4 files changed, 76 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/linuxptp/Manifest b/net-misc/linuxptp/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..bd6d2da1c |
21 |
--- /dev/null |
22 |
+++ b/net-misc/linuxptp/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST linuxptp-3.1.1.tgz 218784 BLAKE2B 5b46580a0e1b6e003f5f03e512c4f9b348c086f356fd47d3480da5e8223ba291fdb213798c696c37759896a99bccf21cd7e7daddce5aa5ed5701afb0e622a755 SHA512 c3c40987fe68480a8473097ebc3c506fb4f8f3b6456bbe637b2b3cb0b3e0182f1513b511fdc04b3607d5f7d8bd1bd22502bb86eb13f9fa4fa63a3331846b33ec |
25 |
|
26 |
diff --git a/net-misc/linuxptp/files/linuxptp-3.1.1-makefile.patch b/net-misc/linuxptp/files/linuxptp-3.1.1-makefile.patch |
27 |
new file mode 100644 |
28 |
index 000000000..f2ffe8f44 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/linuxptp/files/linuxptp-3.1.1-makefile.patch |
31 |
@@ -0,0 +1,34 @@ |
32 |
+--- /var/tmp/portage/net-misc/linuxptp-3.1.1/work/linuxptp-3.1.1/makefile |
33 |
++++ linuxptp-3.1.1/makefile |
34 |
+@@ -18,9 +18,8 @@ |
35 |
+ KBUILD_OUTPUT = |
36 |
+ |
37 |
+ DEBUG = |
38 |
+-CC = $(CROSS_COMPILE)gcc |
39 |
+ VER = -DVER=$(version) |
40 |
+-CFLAGS = -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS) |
41 |
++CFLAGS += -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS) |
42 |
+ LDLIBS = -lm -lrt -pthread $(EXTRA_LDFLAGS) |
43 |
+ PRG = ptp4l hwstamp_ctl nsm phc2sys phc_ctl pmc timemaster ts2phc |
44 |
+ FILTERS = filter.o mave.o mmedian.o |
45 |
+@@ -43,9 +42,9 @@ |
46 |
+ version := $(shell $(srcdir)/version.sh $(srcdir)) |
47 |
+ VPATH = $(srcdir) |
48 |
+ |
49 |
+-prefix = /usr/local |
50 |
++prefix = /usr |
51 |
+ sbindir = $(prefix)/sbin |
52 |
+-mandir = $(prefix)/man |
53 |
++mandir = $(prefix)/share/man |
54 |
+ man8dir = $(mandir)/man8 |
55 |
+ |
56 |
+ all: $(PRG) |
57 |
+@@ -97,7 +96,7 @@ |
58 |
+ %.d: %.c |
59 |
+ @echo DEPEND $<; \ |
60 |
+ rm -f $@; \ |
61 |
+- $(CC) -MM $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \ |
62 |
++ $(CC) -MM $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIE $< > $@.$$$$; \ |
63 |
+ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ |
64 |
+ rm -f $@.$$$$ |
65 |
+ |
66 |
|
67 |
diff --git a/net-misc/linuxptp/linuxptp-3.1.1.ebuild b/net-misc/linuxptp/linuxptp-3.1.1.ebuild |
68 |
new file mode 100644 |
69 |
index 000000000..d6e0a5f58 |
70 |
--- /dev/null |
71 |
+++ b/net-misc/linuxptp/linuxptp-3.1.1.ebuild |
72 |
@@ -0,0 +1,29 @@ |
73 |
+# Copyright 1999-2022 Gentoo Authors |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+ |
76 |
+EAPI=8 |
77 |
+ |
78 |
+inherit toolchain-funcs |
79 |
+ |
80 |
+DESCRIPTION="PTP IEEE 1588 stack for Linux" |
81 |
+HOMEPAGE="https://sourceforge.net/projects/linuxptp" |
82 |
+SRC_URI="mirror://sourceforge/project/${PN}/v$(ver_cut 1-2)/${P}.tgz" |
83 |
+ |
84 |
+LICENSE="GPL-2" |
85 |
+SLOT="0" |
86 |
+KEYWORDS="~amd64" |
87 |
+ |
88 |
+BDEPEND="sys-kernel/linux-headers" |
89 |
+ |
90 |
+RESTRICT="test" #no tests |
91 |
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) |
92 |
+ |
93 |
+src_compile() { |
94 |
+ tc-export CC |
95 |
+ default |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ default |
100 |
+ dodoc README.org |
101 |
+} |
102 |
|
103 |
diff --git a/net-misc/linuxptp/metadata.xml b/net-misc/linuxptp/metadata.xml |
104 |
new file mode 100644 |
105 |
index 000000000..152ed05a8 |
106 |
--- /dev/null |
107 |
+++ b/net-misc/linuxptp/metadata.xml |
108 |
@@ -0,0 +1,12 @@ |
109 |
+<?xml version="1.0" encoding="UTF-8"?> |
110 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
111 |
+<pkgmetadata> |
112 |
+ <maintainer type="person"> |
113 |
+ <email>lssndrbarbieri@×××××.com</email> |
114 |
+ <name>Alessandro Barbieri</name> |
115 |
+ </maintainer> |
116 |
+ <upstream> |
117 |
+ <bugs-to>https://lists.sourceforge.net/lists/listinfo/linuxptp-users</bugs-to> |
118 |
+ <remote-id type="sourceforge">linuxptp</remote-id> |
119 |
+ </upstream> |
120 |
+</pkgmetadata> |