1 |
commit: 28a5ba525fbef8709e1972830b31ade6744e0208 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 18 00:52:36 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 18 01:17:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28a5ba52 |
7 |
|
8 |
net-misc/olsrd: bump to v0.9.6.2 |
9 |
|
10 |
- EAPI bumped to EAPI=7 |
11 |
|
12 |
- New run script [Bug 642108] |
13 |
|
14 |
Closes: https://bugs.gentoo.org/642108 |
15 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
16 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
17 |
|
18 |
net-misc/olsrd/Manifest | 1 + |
19 |
net-misc/olsrd/files/olsrd-r1.initd | 4 ++ |
20 |
net-misc/olsrd/olsrd-0.9.6.2.ebuild | 108 ++++++++++++++++++++++++++++++++++++ |
21 |
3 files changed, 113 insertions(+) |
22 |
|
23 |
diff --git a/net-misc/olsrd/Manifest b/net-misc/olsrd/Manifest |
24 |
index 7df3615b807..7d58d99adbe 100644 |
25 |
--- a/net-misc/olsrd/Manifest |
26 |
+++ b/net-misc/olsrd/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST olsrd-0.9.6.1.tar.bz2 908871 BLAKE2B 180a30039607fd5c16676c62d0d1045bc5ce2a13675b34ca192f1f19127facb12428f6ba631e45fc42b191693a6ef987271745d769a74062ce682e1796b83dc9 SHA512 06e97c3fef6e2f24885fc96f9e68582523926188e4bbe9283c3add997c20f8cec1e691063d5cf6392e4e56dfa250c2cd8ac00035b47f56dbd2069b12b430255a |
29 |
+DIST olsrd-0.9.6.2.tar.gz 20466227 BLAKE2B 45d90393814ac7cbd6b86fc532d560a415e80ed50be78ad9e55abe44d17a456546820897edcfb6cc8a05fbb6d8919dec9c413d0af7194cbf810bb8e621d66edd SHA512 fb0ff8553f33339f38338ec3f0d15aa7ad17ee30d38437a6e23c96f5a310ee7e1c907c8d8deea58e90181d4ed89f190e042fea6cb03d47adbf4851b6a630b810 |
30 |
|
31 |
diff --git a/net-misc/olsrd/files/olsrd-r1.initd b/net-misc/olsrd/files/olsrd-r1.initd |
32 |
new file mode 100644 |
33 |
index 00000000000..9bca9b37074 |
34 |
--- /dev/null |
35 |
+++ b/net-misc/olsrd/files/olsrd-r1.initd |
36 |
@@ -0,0 +1,4 @@ |
37 |
+#!/sbin/openrc-run |
38 |
+command="/usr/sbin/olsrd" |
39 |
+command_background="yes" |
40 |
+pidfile="/run/olsrd.pid" |
41 |
|
42 |
diff --git a/net-misc/olsrd/olsrd-0.9.6.2.ebuild b/net-misc/olsrd/olsrd-0.9.6.2.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..f52b1c40cc9 |
45 |
--- /dev/null |
46 |
+++ b/net-misc/olsrd/olsrd-0.9.6.2.ebuild |
47 |
@@ -0,0 +1,108 @@ |
48 |
+# Copyright 1999-2018 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI="7" |
52 |
+inherit multilib toolchain-funcs |
53 |
+ |
54 |
+DESCRIPTION="An implementation of the Optimized Link State Routing protocol" |
55 |
+HOMEPAGE="http://www.olsr.org/" |
56 |
+SRC_URI="https://github.com/OLSR/olsrd/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
57 |
+ |
58 |
+SLOT="0" |
59 |
+LICENSE="BSD LGPL-2.1" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+IUSE="gtk pud" |
62 |
+DEPEND=" |
63 |
+ gtk? ( |
64 |
+ dev-libs/glib:2 |
65 |
+ x11-libs/gdk-pixbuf:2 |
66 |
+ x11-libs/gtk+:2 |
67 |
+ ) |
68 |
+ pud? ( sci-geosciences/gpsd ) |
69 |
+" |
70 |
+RDEPEND=" |
71 |
+ ${DEPEND} |
72 |
+" |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}"/${PN}-0.9.0.2-gtk.patch |
75 |
+ "${FILESDIR}"/${PN}-0.9.6-gpsd.patch |
76 |
+) |
77 |
+src_prepare() { |
78 |
+ default |
79 |
+ |
80 |
+ # fix parallel make |
81 |
+ # respect AR |
82 |
+ # verbose build |
83 |
+ # fix default prefix, bug #453440 |
84 |
+ sed -i \ |
85 |
+ -e '/@echo "\[/d' \ |
86 |
+ -e 's|$(MAKECMD)|$(MAKE)|g' \ |
87 |
+ -e 's|@$(CC)|$(CC)|g' \ |
88 |
+ -e 's|@ar |$(AR) |g' \ |
89 |
+ -e '/^prefix/s:/usr/local:/usr:' \ |
90 |
+ $( find . -name 'Makefile*' ) || die |
91 |
+ |
92 |
+ # respect LDFLAGS |
93 |
+ sed -i \ |
94 |
+ -e 's|$(CC)|& $(OLSRD_LDFLAGS)|g' \ |
95 |
+ lib/pud/nmealib/Makefile lib/pud/wireformat/Makefile || die |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ if ! use pud; then |
100 |
+ sed -i -e '/^SUBDIRS/ s|pud||g' Makefile || die |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ tc-export PKG_CONFIG |
106 |
+ emake \ |
107 |
+ CC="$(tc-getCC)" \ |
108 |
+ VERBOSE=1 \ |
109 |
+ LIBDIR="/usr/$(get_libdir)/${PN}" \ |
110 |
+ OLSRD_LDFLAGS="${LDFLAGS}" \ |
111 |
+ OS=linux \ |
112 |
+ build_all |
113 |
+ if use gtk; then |
114 |
+ emake -C gui/linux-gtk LIBDIR="/usr/$(get_libdir)/${PN}" CC="$(tc-getCC)" |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+src_install() { |
119 |
+ emake OS=linux LIBDIR="${D}/usr/$(get_libdir)/${PN}" \ |
120 |
+ DESTDIR="${D}" STRIP=true install_all |
121 |
+ if use gtk; then |
122 |
+ emake -C gui/linux-gtk \ |
123 |
+ LIBDIR="${D}/usr/$(get_libdir)/${PN}" DESTDIR="${D}" install |
124 |
+ fi |
125 |
+ |
126 |
+ # decompress default compressed man pages to honor user wishes |
127 |
+ local compressed_man_pages=( |
128 |
+ "${ED%/}"/usr/share/man/man5/olsrd.conf.5.gz |
129 |
+ "${ED%/}"/usr/share/man/man8/olsrd.8.gz |
130 |
+ ) |
131 |
+ |
132 |
+ local compressed_man_page= |
133 |
+ for compressed_man_page in ${compressed_man_pages[@]}; do |
134 |
+ gzip -d "${compressed_man_page}" || die |
135 |
+ done |
136 |
+ |
137 |
+ newinitd "${FILESDIR}"/${PN}-r1.initd ${PN} |
138 |
+ |
139 |
+ dodoc CHANGELOG \ |
140 |
+ valgrind-howto.txt files/olsrd.conf.default.rfc \ |
141 |
+ files/olsrd.conf.default.lq \ |
142 |
+ lib/arprefresh/README_ARPREFRESH \ |
143 |
+ lib/bmf/README_BMF \ |
144 |
+ lib/dot_draw/README_DOT_DRAW \ |
145 |
+ lib/dyn_gw/README_DYN_GW \ |
146 |
+ lib/dyn_gw_plain/README_DYN_GW_PLAIN \ |
147 |
+ lib/httpinfo/README_HTTPINFO \ |
148 |
+ lib/mini/README_MINI \ |
149 |
+ lib/nameservice/README_NAMESERVICE \ |
150 |
+ lib/pgraph/README_PGRAPH \ |
151 |
+ lib/quagga/README_QUAGGA \ |
152 |
+ lib/secure/README_SECURE \ |
153 |
+ lib/txtinfo/README_TXTINFO \ |
154 |
+ lib/watchdog/README_WATCHDOG |
155 |
+} |