Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/oidc-agent/
Date: Mon, 03 Jan 2022 23:14:53
Message-Id: 1641251679.81ee61d1f858dceeae35044cf560255ad51270b6.marecki@gentoo
1 commit: 81ee61d1f858dceeae35044cf560255ad51270b6
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 3 23:03:01 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 3 23:14:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81ee61d1
7
8 net-misc/oidc-agent: add 4.2.5
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 net-misc/oidc-agent/Manifest | 1 +
13 net-misc/oidc-agent/oidc-agent-4.2.5.ebuild | 78 +++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/net-misc/oidc-agent/Manifest b/net-misc/oidc-agent/Manifest
17 index 897a3e39eefd..ea2e0728a55b 100644
18 --- a/net-misc/oidc-agent/Manifest
19 +++ b/net-misc/oidc-agent/Manifest
20 @@ -1,2 +1,3 @@
21 DIST oidc-agent-4.1.1.tar.gz 801103 BLAKE2B dcb82a537787ae6ced577843c67acdd4e3fa315d017222067b2914837dfffccae27ddbdeeeaf4e8ca70c7e2744e03df5964d3ba318efd4460c73252bfd3f8e95 SHA512 e383e054623dc3b8fe73ec02df44faa05d4b69aaed47c7925f6f92d25cbc5301173fbc607b6198bc70f99e634e582fbae7c5570812086a8e5694d40ce6d2c2d1
22 DIST oidc-agent-4.2.4.tar.gz 823459 BLAKE2B 71c2fd983031641c5ed39ba3f1771bf283ab56eae6bba426da5308a7c9fcf2ce48103220375b9881e255eeddf05d50d58e2dee047b0b4436451c8d39b0cd55e6 SHA512 6f4f79823869197a0b74cd757b72e1d060ed9f1d9be477f815989b723a86285b200bd72b95f07a4698e754b9ad7aae48cee72603e1a6eaab71590cc63c2bae3d
23 +DIST oidc-agent-4.2.5.tar.gz 823881 BLAKE2B 533917fdb739ef529c1ca4e06b30a64361710c958b2b6e7a23a6d9c1f1195263ec98f1211cda5dbe9d77f6df7ca0509d29c4e0d595825a908d605ea5ececa8be SHA512 983e59dc3b97b1800733c98fc7ba5e33405a84cb66be7006932c88cb3ccdbfbc9f12d274c1f61294b0fb7ec93fecd2165196f7cc9e056bda0c23a974479f6aa2
24
25 diff --git a/net-misc/oidc-agent/oidc-agent-4.2.5.ebuild b/net-misc/oidc-agent/oidc-agent-4.2.5.ebuild
26 new file mode 100644
27 index 000000000000..eb58ba92f64c
28 --- /dev/null
29 +++ b/net-misc/oidc-agent/oidc-agent-4.2.5.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit xdg-utils
37 +
38 +DESCRIPTION="Agent and tools for managing OpenID Connect tokens on the command line"
39 +HOMEPAGE="https://github.com/indigo-dc/oidc-agent"
40 +SRC_URI="https://github.com/indigo-dc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~riscv"
45 +IUSE="test"
46 +
47 +DEPEND="app-crypt/libsecret
48 + dev-libs/libsodium:=
49 + media-gfx/qrencode
50 + net-libs/libmicrohttpd:=
51 + sys-libs/libseccomp"
52 +RDEPEND="${DEPEND}"
53 +BDEPEND="test? ( dev-libs/check )"
54 +
55 +RESTRICT="!test? ( test )"
56 +
57 +PATCHES=(
58 + "${FILESDIR}"/${PN}-4.0.2_makefile-liblist-automagic.patch
59 + "${FILESDIR}"/${PN}-4.1.0_install-perms.patch
60 + "${FILESDIR}"/${PN}-4.2.4_makefile-toolchain-vars.patch
61 +)
62 +
63 +src_prepare() {
64 + default
65 + sed -i -e 's|^\(\s\+\)@|\1|' Makefile || die "Failed to increase verbosity in Makefile"
66 +}
67 +
68 +src_install() {
69 + emake \
70 + PREFIX="${ED}" \
71 + BIN_AFTER_INST_PATH="/usr" \
72 + INCLUDE_PATH="${ED}"/usr/include \
73 + LIB_PATH="${ED}"/usr/$(get_libdir) \
74 + install
75 +
76 + # This file is not compatible with Gentoo and in any case, we generally
77 + # let the users load such agents themselves.
78 + rm -f "${ED}"/etc/X11/Xsession.d/91${PN}
79 +}
80 +
81 +pkg_postinst() {
82 + xdg_desktop_database_update
83 +
84 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
85 + elog
86 + elog "You should use oidc-gen to initially generate your account configuration"
87 + elog "before it can be loaded into oidc-agent using oidc-add. For details, please"
88 + elog "consult the man page of oidc-gen, or full documentation at"
89 + elog " https://indigo-dc.gitbooks.io/oidc-agent/"
90 + elog
91 + else
92 + local new_major_ver old_ver
93 + new_major_ver=$(ver_cut 1)
94 + for old_ver in ${REPLACING_VERSIONS}; do
95 + if [[ $(ver_cut 1 ${old_ver}) != ${new_major_ver} ]]; then
96 + ewarn
97 + ewarn "You are upgrading from a different major version. Please restart any running instances of ${PN}"
98 + ewarn "to make sure they are compatible with the updated clients."
99 + ewarn
100 + break
101 + fi
102 + done
103 + fi
104 +}
105 +
106 +pkg_postrm() {
107 + xdg_desktop_database_update
108 +}