Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/
Date: Tue, 22 Dec 2020 11:43:50
Message-Id: 1608637421.c7c333d85a3fe271170374adccf36ed1451f5ab2.polynomial-c@gentoo
1 commit: c7c333d85a3fe271170374adccf36ed1451f5ab2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 11:36:06 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 11:43:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c333d8
7
8 app-crypt/gnupg: Removed old
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-crypt/gnupg/Manifest | 1 -
14 app-crypt/gnupg/gnupg-2.2.24.ebuild | 166 ------------------------------------
15 2 files changed, 167 deletions(-)
16
17 diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
18 index 0329d505b3b..982caed63b3 100644
19 --- a/app-crypt/gnupg/Manifest
20 +++ b/app-crypt/gnupg/Manifest
21 @@ -1,5 +1,4 @@
22 DIST gnupg-2.2.16-scdaemon_shared-access.patch 2586 BLAKE2B 42fd5482c4e86751ce62836125997c2295c44bc5db0671a06460fd306b2ed93f290fb898fc1b1e463a863eddf9ab5f99ea3c90a55499ef45ca1ed6edf2854663 SHA512 38abaa4200114ae6b6f220fabc0a84a056761949c97bd0564557f4411a299b9a1939893555c27e26da2d8e8da4bc97a298fa7e68f1e80fe99c3f88cc329eaa84
23 DIST gnupg-2.2.20.tar.bz2 6786913 BLAKE2B 43cf9402a26e67d6c7c2444eb2faaee3f06ea0bf6c07708a50834c5d7424db2f9c38e1f0046dd3a35082abc08d401b2951655e7e068f0873db297560b87d2667 SHA512 3e69f102366ec3415f439ab81aae2458182fa1a18dfb86565b1d9dc638f3fc4c179a5947f0042b7c5a813345676285a662793664a1803ea9ad8328f0548e0edc
24 -DIST gnupg-2.2.24.tar.bz2 7196489 BLAKE2B 0e6fd3df2a12910d43e290f86839f2ea56dddc2598e3687c356522727b082e3b266c00b7e5184aecac3103c9638e776463adc7b807b6b294180f227877861b1d SHA512 b72fb12da95c1c62f013e1ffdbf2983b4185f0de59edba6061209904e5f63525e23a406529fafcd1b0b50ccbad45980c1db293601e8db84d5cbf65a7228834fb
25 DIST gnupg-2.2.25.tar.bz2 7195857 BLAKE2B c930edf9259a0e1c508af8d76a86f979860adfe2c525020b37d3741679200f96483f0ad8bc1f72e2dbf7fe77696cd04d4272a2ee23e4c4abe1ed6ba88b95f365 SHA512 ab1d7cc9d8be3e7189bc4bea431b9d5db313cbd1739823950f32fbb611b2f4374889f444efbf43ce1fbf498b9865d7e6e953cd4c86d58fd688f63923c434ea2c
26 DIST gnupg-2.2.26.tar.bz2 7189254 BLAKE2B f51dd18f6fe327573769d1581ab49bfbca6a56973f6115a68d11e79f52f4b9bdd717ff027800cd1d52fca56abcffa80ee025b49a6af3914f60decdad1e1585ba SHA512 5e9482e126c32c836064b125a18b109f0d3c96892474d3fb47dd791350cccefc56f9a5dfbd54504716487a93d9f71de2493bdfef92e29964b5bfe28b0053c265
27
28 diff --git a/app-crypt/gnupg/gnupg-2.2.24.ebuild b/app-crypt/gnupg/gnupg-2.2.24.ebuild
29 deleted file mode 100644
30 index 91956547520..00000000000
31 --- a/app-crypt/gnupg/gnupg-2.2.24.ebuild
32 +++ /dev/null
33 @@ -1,166 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -inherit flag-o-matic systemd toolchain-funcs
40 -
41 -MY_P="${P/_/-}"
42 -
43 -DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
44 -HOMEPAGE="https://gnupg.org/"
45 -SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2
46 - scd-shared-access? ( https://raw.githubusercontent.com/GPGTools/MacGPG2/5ca182f54b7b6cd635d1c0a4713953834489fdd9/patches/gnupg/scdaemon_shared-access.patch -> ${PN}-2.2.16-scdaemon_shared-access.patch )"
47 -
48 -LICENSE="GPL-3"
49 -SLOT="0"
50 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 -IUSE="bzip2 doc ldap nls readline scd-shared-access selinux +smartcard ssl tofu tools usb user-socket wks-server"
52 -
53 -# Existence of executables is checked during configuration.
54 -DEPEND=">=dev-libs/libassuan-2.5.0
55 - >=dev-libs/libgcrypt-1.8.0
56 - >=dev-libs/libgpg-error-1.29
57 - >=dev-libs/libksba-1.3.4
58 - >=dev-libs/npth-1.2
59 - >=net-misc/curl-7.10
60 - bzip2? ( app-arch/bzip2 )
61 - ldap? ( net-nds/openldap )
62 - readline? ( sys-libs/readline:0= )
63 - smartcard? ( usb? ( virtual/libusb:1 ) )
64 - ssl? ( >=net-libs/gnutls-3.0:0= )
65 - sys-libs/zlib
66 - tofu? ( >=dev-db/sqlite-3.7 )"
67 -
68 -RDEPEND="${DEPEND}
69 - app-crypt/pinentry
70 - nls? ( virtual/libintl )
71 - selinux? ( sec-policy/selinux-gpg )
72 - wks-server? ( virtual/mta )"
73 -
74 -BDEPEND="virtual/pkgconfig
75 - doc? ( sys-apps/texinfo )
76 - nls? ( sys-devel/gettext )"
77 -
78 -S="${WORKDIR}/${MY_P}"
79 -
80 -DOCS=(
81 - ChangeLog NEWS README THANKS TODO VERSION
82 - doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
83 -)
84 -
85 -PATCHES=(
86 - "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
87 -)
88 -
89 -src_prepare() {
90 - default
91 -
92 - # Made optional because it's a non-official patch
93 - if use scd-shared-access ; then
94 - # Patch taken from
95 - # https://github.com/GPGTools/MacGPG2/tree/dev/patches/gnupg
96 - eapply "${DISTDIR}/${PN}-2.2.16-scdaemon_shared-access.patch"
97 - fi
98 -
99 - # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode,
100 - # idea borrowed from libdbus, see
101 - # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6
102 - #
103 - # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl',
104 - # which in turn requires discovery in Autoconf, something that upstream deeply resents.
105 - sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \
106 - -i doc/examples/systemd-user/gpg-agent-ssh.socket || die
107 -}
108 -
109 -src_configure() {
110 - local myconf=(
111 - $(use_enable bzip2)
112 - $(use_enable nls)
113 - $(use_enable smartcard scdaemon)
114 - $(use_enable ssl gnutls)
115 - $(use_enable tofu)
116 - $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver')
117 - $(use_enable wks-server wks-tools)
118 - $(use_with ldap)
119 - $(use_with readline)
120 - --with-mailprog=/usr/libexec/sendmail
121 - --disable-ntbtls
122 - --enable-all-tests
123 - --enable-gpg
124 - --enable-gpgsm
125 - --enable-large-secmem
126 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
127 - GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
128 - KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config"
129 - LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config"
130 - LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config"
131 - NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config"
132 - $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
133 - )
134 -
135 - if use prefix && use usb; then
136 - # bug #649598
137 - append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
138 - fi
139 -
140 - if use elibc_SunOS || use elibc_AIX; then
141 - myconf+=( --disable-symcryptrun )
142 - else
143 - myconf+=( --enable-symcryptrun )
144 - fi
145 -
146 - #bug 663142
147 - if use user-socket; then
148 - myconf+=( --enable-run-gnupg-user-socket )
149 - fi
150 -
151 - # glib fails and picks up clang's internal stdint.h causing weird errors
152 - [[ ${CC} == *clang ]] && \
153 - export gl_cv_absolute_stdint_h=/usr/include/stdint.h
154 -
155 - # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist.
156 - # As of GnuPG 2.3, the mailprog substitution is used for the binary called
157 - # by wks-client & wks-server; and if it's autodetected but not not exist at
158 - # build time, then then 'gpg-wks-client --send' functionality will not
159 - # work. This has an unwanted side-effect in stage3 builds: there was a
160 - # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating
161 - # the build where the install guide previously make the user chose the
162 - # logger & mta early in the install.
163 -
164 - econf "${myconf[@]}"
165 -}
166 -
167 -src_compile() {
168 - default
169 -
170 - use doc && emake -C doc html
171 -}
172 -
173 -src_test() {
174 - #Bug: 638574
175 - use tofu && export TESTFLAGS=--parallel
176 - default
177 -}
178 -
179 -src_install() {
180 - default
181 -
182 - use tools &&
183 - dobin \
184 - tools/{convert-from-106,gpg-check-pattern} \
185 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
186 - tools/make-dns-cert
187 -
188 - dosym gpg /usr/bin/gpg2
189 - dosym gpgv /usr/bin/gpgv2
190 - echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
191 - echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
192 -
193 - dodir /etc/env.d
194 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
195 -
196 - use doc && dodoc doc/gnupg.html/* doc/*.png
197 -
198 - systemd_douserunit doc/examples/systemd-user/*.{service,socket}
199 -}