Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/usbguard/
Date: Sat, 31 Jul 2021 00:18:42
Message-Id: 1627690675.877fff290ead348add7606f6baf8d472c14072e1.sam@gentoo
1 commit: 877fff290ead348add7606f6baf8d472c14072e1
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 25 03:09:14 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 31 00:17:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=877fff29
7
8 sys-apps/usbguard: drop 0.7.6-r1, 0.7.8, 1.0.0
9
10 Remove versions without *-completion patch.
11
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 sys-apps/usbguard/Manifest | 2 -
15 sys-apps/usbguard/usbguard-0.7.6-r1.ebuild | 80 ------------------------
16 sys-apps/usbguard/usbguard-0.7.8.ebuild | 91 ----------------------------
17 sys-apps/usbguard/usbguard-1.0.0.ebuild | 97 ------------------------------
18 4 files changed, 270 deletions(-)
19
20 diff --git a/sys-apps/usbguard/Manifest b/sys-apps/usbguard/Manifest
21 index fa0f56ff5cd..225f9dec596 100644
22 --- a/sys-apps/usbguard/Manifest
23 +++ b/sys-apps/usbguard/Manifest
24 @@ -1,3 +1 @@
25 -DIST usbguard-0.7.6.tar.gz 1189194 BLAKE2B 4fefd9ccf13b094f64942559f481144f08986dc71154b87c1623459d2429c07e2738a17877d3f6c275e83ce904067b1284c588c9a95023c7205cc5e21ca118f0 SHA512 0b0d42276e48baac2dc1f9031eec25e3f622a8d6178cb0400b97c7d32005bfa158b60fd286fdc66206a8684658fefaf6389ef93511e942f025e75671d7455628
26 -DIST usbguard-0.7.8.tar.gz 1220764 BLAKE2B 8127acc0ef5dd89cc540097a71f10d56f3cb0a166453e27161e444d37dbf51cc4861bc9c71dcca16e9fec7187b3dcabb2bf08af522b2aaa4693fa4f4913a9ae0 SHA512 315c25ed7eb61cc0920047836dcca035cb07aecb6dfece9e4f6dc2ad61aaf6fdbf86898e43493958f3d12a146eb4c8f88b90bb246da0df83bb2097ce5b853e88
27 DIST usbguard-1.0.0.tar.gz 1260374 BLAKE2B ea9b48f14a4091f4ce61b6c171947cf2412c47e9aa3edb816e933f7aad6247b32e89bee90675ca5a0136b460fef8f2d423c0c81ad49d52453d0d3803b881503a SHA512 068a9be8bd5ea05efcdad79e2c4beb5e8b646b4703fbe1f8bb262e37ae9a6284a6eeb811a6bd441250a38bce1e45b7f44ad15726aa5963da2e1b56e85f5e16fd
28
29 diff --git a/sys-apps/usbguard/usbguard-0.7.6-r1.ebuild b/sys-apps/usbguard/usbguard-0.7.6-r1.ebuild
30 deleted file mode 100644
31 index 3f76442a7df..00000000000
32 --- a/sys-apps/usbguard/usbguard-0.7.6-r1.ebuild
33 +++ /dev/null
34 @@ -1,80 +0,0 @@
35 -# Copyright 1999-2021 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -DESCRIPTION="Daemon protecting your computer against BadUSB"
41 -HOMEPAGE="https://github.com/USBGuard/usbguard"
42 -SRC_URI="https://github.com/USBGuard/usbguard/releases/download/${P}/${P}.tar.gz"
43 -
44 -LICENSE="GPL-2+"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~x86"
47 -IUSE="bash-completion dbus ldap policykit systemd"
48 -
49 -REQUIRED_USE="policykit? ( dbus )"
50 -
51 -CDEPEND="
52 - <dev-libs/pegtl-3
53 - >=dev-libs/libsodium-0.4.5:=
54 - >=dev-libs/protobuf-2.5.0:=
55 - >=sys-cluster/libqb-0.16.0:=
56 - sys-devel/gcc:*[cxx]
57 - >=sys-libs/libcap-ng-0.7.0
58 - >=sys-libs/libseccomp-2.0.0
59 - >=sys-process/audit-2.7.7
60 - bash-completion? ( >=app-shells/bash-completion-2.0 )
61 - dbus? (
62 - >=dev-libs/dbus-glib-0.100
63 - dev-libs/glib:2
64 - sys-apps/dbus
65 - policykit? ( sys-auth/polkit[introspection] )
66 - )
67 - ldap? ( net-nds/openldap )
68 - systemd? ( sys-apps/systemd )
69 - "
70 -RDEPEND="${CDEPEND}
71 - virtual/udev
72 - "
73 -DEPEND="${CDEPEND}
74 - app-text/asciidoc
75 - dev-cpp/catch:1
76 - dbus? (
77 - dev-libs/libxml2
78 - dev-libs/libxslt
79 - dev-util/gdbus-codegen
80 - )
81 - "
82 -
83 -src_configure() {
84 - local myargs=(
85 - $(use_with dbus)
86 - $(use_with ldap)
87 - $(use_with policykit polkit)
88 - $(use_enable systemd)
89 - )
90 -
91 - econf "${myargs[@]}"
92 -}
93 -
94 -src_install() {
95 - default
96 -
97 - keepdir /var/lib/log/usbguard
98 -
99 - newinitd "${FILESDIR}"/${P}-usbguard.openrc usbguard
100 - use dbus && newinitd "${FILESDIR}"/${P}-usbguard-dbus.openrc usbguard-dbus
101 -}
102 -
103 -pkg_postinst() {
104 - ewarn
105 - ewarn 'BEFORE STARTING USBGUARD please be sure to create/generate'
106 - ewarn ' a rules file at /etc/usbguard/rules.conf'
107 - ewarn ' so that you do not'
108 - ewarn ' GET LOCKED OUT'
109 - ewarn " of this system (\"$(hostname)\")."
110 - ewarn
111 - ewarn 'This command may be of help:'
112 - ewarn ' sudo sh -c "usbguard generate-policy > /etc/usbguard/rules.conf"'
113 - ewarn
114 -}
115
116 diff --git a/sys-apps/usbguard/usbguard-0.7.8.ebuild b/sys-apps/usbguard/usbguard-0.7.8.ebuild
117 deleted file mode 100644
118 index cc4ab8ff6f3..00000000000
119 --- a/sys-apps/usbguard/usbguard-0.7.8.ebuild
120 +++ /dev/null
121 @@ -1,91 +0,0 @@
122 -# Copyright 1999-2021 Gentoo Authors
123 -# Distributed under the terms of the GNU General Public License v2
124 -
125 -EAPI=7
126 -
127 -inherit autotools
128 -
129 -DESCRIPTION="Daemon protecting your computer against BadUSB"
130 -HOMEPAGE="https://github.com/USBGuard/usbguard"
131 -SRC_URI="https://github.com/USBGuard/usbguard/releases/download/${P}/${P}.tar.gz"
132 -
133 -LICENSE="GPL-2+"
134 -SLOT="0"
135 -KEYWORDS="~amd64 ~x86"
136 -IUSE="bash-completion dbus ldap policykit static-libs systemd"
137 -
138 -REQUIRED_USE="policykit? ( dbus )"
139 -
140 -CDEPEND="
141 - <dev-libs/pegtl-3
142 - >=dev-libs/libsodium-0.4.5:=
143 - >=dev-libs/protobuf-2.5.0:=
144 - >=sys-cluster/libqb-0.16.0:=
145 - sys-devel/gcc:*[cxx]
146 - >=sys-libs/libcap-ng-0.7.0
147 - >=sys-libs/libseccomp-2.0.0
148 - >=sys-process/audit-2.7.7
149 - bash-completion? ( >=app-shells/bash-completion-2.0 )
150 - dbus? (
151 - dev-libs/glib:2
152 - sys-apps/dbus
153 - policykit? ( sys-auth/polkit[introspection] )
154 - )
155 - ldap? ( net-nds/openldap )
156 - systemd? ( sys-apps/systemd )
157 - "
158 -RDEPEND="${CDEPEND}
159 - virtual/udev
160 - "
161 -DEPEND="${CDEPEND}
162 - app-text/asciidoc
163 - dev-cpp/catch:1
164 - dbus? (
165 - dev-libs/libxml2
166 - dev-libs/libxslt
167 - dev-util/gdbus-codegen
168 - )
169 - "
170 -
171 -PATCHES=(
172 - "${FILESDIR}"/${PN}-1.0.0-pthreads-link.patch
173 -)
174 -
175 -src_prepare() {
176 - default
177 - eautoreconf
178 -}
179 -
180 -src_configure() {
181 - local myargs=(
182 - $(use_with dbus)
183 - $(use_with ldap)
184 - $(use_with policykit polkit)
185 - $(use_enable static-libs static)
186 - $(use_enable systemd)
187 - )
188 -
189 - econf "${myargs[@]}"
190 -}
191 -
192 -src_install() {
193 - default
194 -
195 - keepdir /var/lib/log/usbguard
196 -
197 - newinitd "${FILESDIR}"/${PN}-0.7.6-usbguard.openrc usbguard
198 - use dbus && newinitd "${FILESDIR}"/${PN}-0.7.6-usbguard-dbus.openrc usbguard-dbus
199 -}
200 -
201 -pkg_postinst() {
202 - ewarn
203 - ewarn 'BEFORE STARTING USBGUARD please be sure to create/generate'
204 - ewarn ' a rules file at /etc/usbguard/rules.conf'
205 - ewarn ' so that you do not'
206 - ewarn ' GET LOCKED OUT'
207 - ewarn " of this system (\"$(hostname)\")."
208 - ewarn
209 - ewarn 'This command may be of help:'
210 - ewarn ' sudo sh -c "usbguard generate-policy > /etc/usbguard/rules.conf"'
211 - ewarn
212 -}
213
214 diff --git a/sys-apps/usbguard/usbguard-1.0.0.ebuild b/sys-apps/usbguard/usbguard-1.0.0.ebuild
215 deleted file mode 100644
216 index f93887630a2..00000000000
217 --- a/sys-apps/usbguard/usbguard-1.0.0.ebuild
218 +++ /dev/null
219 @@ -1,97 +0,0 @@
220 -# Copyright 1999-2021 Gentoo Authors
221 -# Distributed under the terms of the GNU General Public License v2
222 -
223 -EAPI=7
224 -
225 -inherit autotools
226 -
227 -DESCRIPTION="Daemon protecting your computer against BadUSB"
228 -HOMEPAGE="https://github.com/USBGuard/usbguard"
229 -SRC_URI="https://github.com/USBGuard/usbguard/releases/download/${P}/${P}.tar.gz"
230 -
231 -LICENSE="GPL-2+"
232 -SLOT="0/1" # due to libusbguard.so.<1>.0.0
233 -KEYWORDS="~amd64 ~x86"
234 -IUSE="bash-completion dbus ldap policykit static-libs systemd test"
235 -
236 -REQUIRED_USE="policykit? ( dbus )"
237 -
238 -# https://github.com/USBGuard/usbguard/issues/449
239 -# https://bugs.gentoo.org/769692
240 -REQUIRED_USE+=" test? ( static-libs )"
241 -
242 -CDEPEND="
243 - <dev-libs/pegtl-3
244 - >=dev-libs/libsodium-0.4.5:=
245 - >=dev-libs/protobuf-2.5.0:=
246 - >=sys-cluster/libqb-0.16.0:=
247 - sys-devel/gcc:*[cxx]
248 - >=sys-libs/libcap-ng-0.7.0
249 - >=sys-libs/libseccomp-2.0.0
250 - >=sys-process/audit-2.7.7
251 - bash-completion? ( >=app-shells/bash-completion-2.0 )
252 - dbus? (
253 - dev-libs/glib:2
254 - sys-apps/dbus
255 - policykit? ( sys-auth/polkit[introspection] )
256 - )
257 - ldap? ( net-nds/openldap )
258 - systemd? ( sys-apps/systemd )
259 - "
260 -RDEPEND="${CDEPEND}
261 - virtual/udev
262 - "
263 -DEPEND="${CDEPEND}
264 - app-text/asciidoc
265 - dev-cpp/catch:1
266 - dbus? (
267 - dev-libs/libxml2
268 - dev-libs/libxslt
269 - dev-util/gdbus-codegen
270 - )
271 - "
272 -
273 -RESTRICT="!test? ( test )"
274 -
275 -PATCHES=(
276 - "${FILESDIR}"/${PN}-1.0.0-pthreads-link.patch
277 -)
278 -
279 -src_prepare() {
280 - default
281 - eautoreconf
282 -}
283 -
284 -src_configure() {
285 - local myargs=(
286 - $(use_with dbus)
287 - $(use_with ldap)
288 - $(use_with policykit polkit)
289 - $(use_enable static-libs static)
290 - $(use_enable systemd)
291 - )
292 -
293 - econf "${myargs[@]}"
294 -}
295 -
296 -src_install() {
297 - default
298 -
299 - keepdir /var/lib/log/usbguard
300 -
301 - newinitd "${FILESDIR}"/${PN}-0.7.6-usbguard.openrc usbguard
302 - use dbus && newinitd "${FILESDIR}"/${PN}-0.7.6-usbguard-dbus.openrc usbguard-dbus
303 -}
304 -
305 -pkg_postinst() {
306 - ewarn
307 - ewarn 'BEFORE STARTING USBGUARD please be sure to create/generate'
308 - ewarn ' a rules file at /etc/usbguard/rules.conf'
309 - ewarn ' so that you do not'
310 - ewarn ' GET LOCKED OUT'
311 - ewarn " of this system (\"$(hostname)\")."
312 - ewarn
313 - ewarn 'This command may be of help:'
314 - ewarn ' sudo sh -c "usbguard generate-policy > /etc/usbguard/rules.conf"'
315 - ewarn
316 -}