Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/apinger/files/, net-analyzer/apinger/
Date: Sat, 01 Feb 2020 00:15:58
Message-Id: 1580516149.045fce9aa45279bdbbfa9ce0e4b844f32ef7d337.jer@gentoo
1 commit: 045fce9aa45279bdbbfa9ce0e4b844f32ef7d337
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 1 00:15:26 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 1 00:15:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=045fce9a
7
8 net-analyzer/apinger: Fix CFLAGS=-fno-common
9
10 Package-Manager: Portage-2.3.86, Repoman-2.3.20
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=707596
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 net-analyzer/apinger/apinger-0.4.1-r1.ebuild | 40 ++++++++++++++++++++++
15 .../apinger/files/apinger-0.4.1-fno-common.patch | 11 ++++++
16 .../files/apinger-0.4.1-stray-backslash.patch | 13 +++++++
17 3 files changed, 64 insertions(+)
18
19 diff --git a/net-analyzer/apinger/apinger-0.4.1-r1.ebuild b/net-analyzer/apinger/apinger-0.4.1-r1.ebuild
20 new file mode 100644
21 index 00000000000..9126a208502
22 --- /dev/null
23 +++ b/net-analyzer/apinger/apinger-0.4.1-r1.ebuild
24 @@ -0,0 +1,40 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +inherit autotools
30 +
31 +DESCRIPTION="Alarm Pinger"
32 +HOMEPAGE="https://github.com/Jajcus/apinger/"
33 +SRC_URI="https://github.com/Jajcus/apinger/archive/${PN^^}_${PV//./_}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64"
38 +
39 +DEPEND="
40 + sys-devel/flex
41 + virtual/yacc
42 +"
43 +DOCS=( AUTHORS ChangeLog NEWS README TODO )
44 +PATCHES=(
45 + "${FILESDIR}"/${PN}-0.4.1-fno-common.patch
46 + "${FILESDIR}"/${PN}-0.4.1-stray-backslash.patch
47 +)
48 +S="${WORKDIR}/${PN}-${PN^^}_${PV//./_}"
49 +
50 +src_prepare() {
51 + default
52 + eautoreconf
53 +}
54 +
55 +src_compile() {
56 + emake -C src/ cfgparser1.h
57 + default
58 +}
59 +
60 +src_install() {
61 + default
62 + insinto /etc
63 + doins src/${PN}.conf
64 +}
65
66 diff --git a/net-analyzer/apinger/files/apinger-0.4.1-fno-common.patch b/net-analyzer/apinger/files/apinger-0.4.1-fno-common.patch
67 new file mode 100644
68 index 00000000000..d74dc1c66f2
69 --- /dev/null
70 +++ b/net-analyzer/apinger/files/apinger-0.4.1-fno-common.patch
71 @@ -0,0 +1,11 @@
72 +--- a/src/apinger.h
73 ++++ b/src/apinger.h
74 +@@ -99,7 +99,7 @@
75 + void *target_id;
76 + };
77 +
78 +-struct target *targets;
79 ++extern struct target *targets;
80 +
81 + extern int foreground;
82 + extern char *config_file;
83
84 diff --git a/net-analyzer/apinger/files/apinger-0.4.1-stray-backslash.patch b/net-analyzer/apinger/files/apinger-0.4.1-stray-backslash.patch
85 new file mode 100644
86 index 00000000000..61db76fb923
87 --- /dev/null
88 +++ b/net-analyzer/apinger/files/apinger-0.4.1-stray-backslash.patch
89 @@ -0,0 +1,13 @@
90 +--- acinclude.m4
91 ++++ b/acinclude.m4
92 +@@ -39,8 +39,8 @@
93 + [$jk_inet_includes
94 + $jk_icmp_includes])
95 +
96 +-AC_CHECK_MEMBERS([struct icmp.icmp_type, struct icmp.icmp_code,\
97 +-struct icmp.icmp_cksum, struct icmp.icmp_seq,\
98 ++AC_CHECK_MEMBERS([struct icmp.icmp_type, struct icmp.icmp_code,
99 ++struct icmp.icmp_cksum, struct icmp.icmp_seq,
100 + struct icmp.icmp_id],[],
101 + AC_MSG_ERROR(struct icmp not defined or not compatible),
102 + [$jk_inet_includes