Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sagan/files/, app-admin/sagan/
Date: Thu, 11 Feb 2021 02:10:23
Message-Id: 1613009415.8fd1adf3979ea262690000ae1c3069c7ece0dbdd.sam@gentoo
1 commit: 8fd1adf3979ea262690000ae1c3069c7ece0dbdd
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 11 02:09:50 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 11 02:10:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fd1adf3
7
8 app-admin/sagan: port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/756871
11 Package-Manager: Portage-3.0.14, Repoman-3.0.2
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../files/sagan-1.0.0-liblognorm-json-c.patch | 10 +++---
15 app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild | 33 +++++++++++--------
16 app-admin/sagan/sagan-1.0.0_rc3.ebuild | 37 ++++++++++++----------
17 3 files changed, 44 insertions(+), 36 deletions(-)
18
19 diff --git a/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch b/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch
20 index f9540652717..a1b3fb290f5 100644
21 --- a/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch
22 +++ b/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch
23 @@ -1,6 +1,5 @@
24 -diff -rupN old/sagan-1.0.0RC3/configure.ac new/sagan-1.0.0RC3/configure.ac
25 ---- old/sagan-1.0.0RC3/configure.ac 2014-06-16 22:23:22.000000000 +0200
26 -+++ new/sagan-1.0.0RC3/configure.ac 2015-10-11 21:04:26.493632624 +0200
27 +--- a/configure.ac
28 ++++ b/configure.ac
29 @@ -192,29 +192,15 @@ If you're not interested in libesmtp sup
30 fi
31
32 @@ -40,9 +39,8 @@ diff -rupN old/sagan-1.0.0RC3/configure.ac new/sagan-1.0.0RC3/configure.ac
33
34 if test "$LIBPCAP" = "yes"; then
35 AC_MSG_RESULT([------- libpcap support is enabled -------])
36 -diff -rupN old/sagan-1.0.0RC3/src/Makefile.am new/sagan-1.0.0RC3/src/Makefile.am
37 ---- old/sagan-1.0.0RC3/src/Makefile.am 2014-06-16 22:23:22.000000000 +0200
38 -+++ new/sagan-1.0.0RC3/src/Makefile.am 2015-10-11 21:05:28.754492699 +0200
39 +--- a/src/Makefile.am
40 ++++ b/src/Makefile.am
41 @@ -2,6 +2,9 @@ AUTOMAKE_OPIONS=foreign no-dependencies
42
43 bin_PROGRAMS = sagan
44
45 diff --git a/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild b/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild
46 index c9406818811..c8aa88cac0d 100644
47 --- a/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild
48 +++ b/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild
49 @@ -1,22 +1,21 @@
50 # Copyright 1999-2021 Gentoo Authors
51 # Distributed under the terms of the GNU General Public License v2
52
53 -EAPI=5
54 +EAPI=7
55
56 -AUTOTOOLS_AUTORECONF=1
57 -AUTOTOOLS_IN_SOURCE_BUILD=1
58 -
59 -inherit eutils autotools-utils user flag-o-matic
60 +inherit autotools flag-o-matic user
61
62 DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system"
63 HOMEPAGE="http://sagan.quadrantsec.com/"
64 SRC_URI="http://sagan.quadrantsec.com/download/sagan-1.0.0RC3.tar.gz"
65 +S="${WORKDIR}/sagan-1.0.0RC3/"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="geoip +libdnet +lognorm mysql +pcap smtp snort"
71
72 +BDEPEND="virtual/pkgconfig"
73 RDEPEND="dev-libs/libpcre
74 app-admin/sagan-rules[lognorm?]
75 smtp? ( net-libs/libesmtp )
76 @@ -31,9 +30,7 @@ RDEPEND="dev-libs/libpcre
77 snort? ( >=net-analyzer/snortsam-2.50 )
78 geoip? ( dev-libs/geoip )
79 "
80 -
81 -DEPEND="virtual/pkgconfig
82 - ${RDEPEND}"
83 +DEPEND="${RDEPEND}"
84
85 # Package no longer logs directly to a database
86 # and relies on Unified2 format to accomplish it
87 @@ -42,14 +39,22 @@ RDEPEND="${RDEPEND} mysql? ( net-analyzer/barnyard2[mysql] )"
88 REQUIRED_USE="mysql? ( libdnet )"
89
90 DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO )
91 -PATCHES=( "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch )
92 -S="${WORKDIR}/sagan-1.0.0RC3/"
93 +
94 +PATCHES=(
95 + "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch
96 +)
97
98 pkg_setup() {
99 enewgroup sagan
100 enewuser sagan -1 -1 /dev/null sagan
101 }
102
103 +src_prepare() {
104 + default
105 +
106 + eautoreconf
107 +}
108 +
109 src_configure() {
110 append-flags -fcommon
111
112 @@ -62,11 +67,11 @@ src_configure() {
113 $(use_enable geoip)
114 )
115
116 - autotools-utils_src_configure
117 + econf "${myeconfargs[@]}"
118 }
119
120 src_install() {
121 - autotools-utils_src_install
122 + default
123
124 diropts -g sagan -o sagan -m 775
125
126 @@ -74,8 +79,8 @@ src_install() {
127
128 keepdir /var/log/sagan
129
130 - touch "${ED}"/var/log/sagan/sagan.log
131 - chown sagan.sagan "${ED}"/var/log/sagan/sagan.log
132 + touch "${ED}"/var/log/sagan/sagan.log || die
133 + chown sagan.sagan "${ED}"/var/log/sagan/sagan.log || die
134
135 newinitd "${FILESDIR}"/sagan.init-r1 sagan
136 newconfd "${FILESDIR}"/sagan.confd sagan
137
138 diff --git a/app-admin/sagan/sagan-1.0.0_rc3.ebuild b/app-admin/sagan/sagan-1.0.0_rc3.ebuild
139 index 2fe8dd00f3c..9b3b1068ece 100644
140 --- a/app-admin/sagan/sagan-1.0.0_rc3.ebuild
141 +++ b/app-admin/sagan/sagan-1.0.0_rc3.ebuild
142 @@ -1,22 +1,21 @@
143 # Copyright 1999-2021 Gentoo Authors
144 # Distributed under the terms of the GNU General Public License v2
145
146 -EAPI=5
147 +EAPI=7
148
149 -AUTOTOOLS_AUTORECONF=1
150 -AUTOTOOLS_IN_SOURCE_BUILD=1
151 -
152 -inherit eutils autotools-utils user flag-o-matic
153 +inherit autotools flag-o-matic user
154
155 DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system"
156 HOMEPAGE="http://sagan.quadrantsec.com/"
157 SRC_URI="http://sagan.quadrantsec.com/download/sagan-1.0.0RC3.tar.gz"
158 +S="${WORKDIR}/sagan-1.0.0RC3/"
159
160 LICENSE="GPL-2"
161 SLOT="0"
162 KEYWORDS="amd64 x86"
163 IUSE="geoip +libdnet +lognorm mysql +pcap smtp snort"
164
165 +BDEPEND="virtual/pkgconfig"
166 RDEPEND="dev-libs/libpcre
167 app-admin/sagan-rules[lognorm?]
168 smtp? ( net-libs/libesmtp )
169 @@ -27,24 +26,30 @@ RDEPEND="dev-libs/libpcre
170 dev-libs/json-c:=
171 dev-libs/libee
172 dev-libs/libestr
173 - )
174 + )
175 libdnet? ( dev-libs/libdnet )
176 snort? ( >=net-analyzer/snortsam-2.50 )
177 geoip? ( dev-libs/geoip )
178 - "
179 -
180 -DEPEND="virtual/pkgconfig
181 - ${RDEPEND}"
182 +"
183 +DEPEND="${RDEPEND}"
184
185 DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO )
186 -PATCHES=( "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch )
187 -S="${WORKDIR}/sagan-1.0.0RC3/"
188 +
189 +PATCHES=(
190 + "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch
191 +)
192
193 pkg_setup() {
194 enewgroup sagan
195 enewuser sagan -1 -1 /dev/null sagan
196 }
197
198 +src_prepare() {
199 + default
200 +
201 + eautoreconf
202 +}
203 +
204 src_configure() {
205 append-flags -fcommon
206
207 @@ -57,11 +62,11 @@ src_configure() {
208 $(use_enable geoip)
209 )
210
211 - autotools-utils_src_configure
212 + econf "${myeconfargs[@]}"
213 }
214
215 src_install() {
216 - autotools-utils_src_install
217 + default
218
219 diropts -g sagan -o sagan -m 775
220
221 @@ -69,8 +74,8 @@ src_install() {
222
223 keepdir /var/log/sagan
224
225 - touch "${ED}"/var/log/sagan/sagan.log
226 - chown sagan.sagan "${ED}"/var/log/sagan/sagan.log
227 + touch "${ED}"/var/log/sagan/sagan.log || die
228 + chown sagan.sagan "${ED}"/var/log/sagan/sagan.log || die
229
230 newinitd "${FILESDIR}"/sagan.init-r1 sagan
231 newconfd "${FILESDIR}"/sagan.confd sagan