1 |
commit: f412e7145e219a0565c44f3ef7b330598572908c |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 18 21:53:35 2017 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 20 18:14:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f412e714 |
7 |
|
8 |
app-crypt/gnupg: Install systemd user services/sockets |
9 |
|
10 |
Bug: https://bugs.gentoo.org/622248 |
11 |
|
12 |
app-crypt/gnupg/gnupg-2.1.21-r1.ebuild | 122 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 122 insertions(+) |
14 |
|
15 |
diff --git a/app-crypt/gnupg/gnupg-2.1.21-r1.ebuild b/app-crypt/gnupg/gnupg-2.1.21-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..39ab6caaf11 |
18 |
--- /dev/null |
19 |
+++ b/app-crypt/gnupg/gnupg-2.1.21-r1.ebuild |
20 |
@@ -0,0 +1,122 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI="6" |
25 |
+ |
26 |
+inherit systemd toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
29 |
+HOMEPAGE="http://www.gnupg.org/" |
30 |
+LICENSE="GPL-3" |
31 |
+ |
32 |
+MY_P="${P/_/-}" |
33 |
+SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
34 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
35 |
+ |
36 |
+SLOT="0" |
37 |
+IUSE="bzip2 doc +gnutls ldap nls readline selinux +smartcard tofu tools usb wks-server" |
38 |
+ |
39 |
+COMMON_DEPEND_LIBS=" |
40 |
+ >=dev-libs/npth-1.2 |
41 |
+ >=dev-libs/libassuan-2.4.3 |
42 |
+ >=dev-libs/libgcrypt-1.7.3 |
43 |
+ >=dev-libs/libgpg-error-1.24 |
44 |
+ >=dev-libs/libksba-1.3.4 |
45 |
+ >=net-misc/curl-7.10 |
46 |
+ gnutls? ( >=net-libs/gnutls-3.0:0= ) |
47 |
+ sys-libs/zlib |
48 |
+ ldap? ( net-nds/openldap ) |
49 |
+ bzip2? ( app-arch/bzip2 ) |
50 |
+ readline? ( sys-libs/readline:0= ) |
51 |
+ smartcard? ( usb? ( virtual/libusb:0 ) ) |
52 |
+ tofu? ( >=dev-db/sqlite-3.7 ) |
53 |
+ " |
54 |
+COMMON_DEPEND_BINS="app-crypt/pinentry |
55 |
+ !app-crypt/dirmngr" |
56 |
+ |
57 |
+# Existence of executables is checked during configuration. |
58 |
+DEPEND="${COMMON_DEPEND_LIBS} |
59 |
+ ${COMMON_DEPEND_BINS} |
60 |
+ nls? ( sys-devel/gettext ) |
61 |
+ doc? ( sys-apps/texinfo )" |
62 |
+ |
63 |
+RDEPEND="${COMMON_DEPEND_LIBS} |
64 |
+ ${COMMON_DEPEND_BINS} |
65 |
+ selinux? ( sec-policy/selinux-gpg ) |
66 |
+ nls? ( virtual/libintl )" |
67 |
+ |
68 |
+S="${WORKDIR}/${MY_P}" |
69 |
+ |
70 |
+DOCS=( |
71 |
+ ChangeLog NEWS README THANKS TODO VERSION |
72 |
+ doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
73 |
+) |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
77 |
+) |
78 |
+ |
79 |
+src_configure() { |
80 |
+ local myconf=() |
81 |
+ |
82 |
+ if use smartcard; then |
83 |
+ myconf+=( |
84 |
+ --enable-scdaemon |
85 |
+ $(use_enable usb ccid-driver) |
86 |
+ ) |
87 |
+ else |
88 |
+ myconf+=( --disable-scdaemon ) |
89 |
+ fi |
90 |
+ |
91 |
+ if use elibc_SunOS || use elibc_AIX; then |
92 |
+ myconf+=( --disable-symcryptrun ) |
93 |
+ else |
94 |
+ myconf+=( --enable-symcryptrun ) |
95 |
+ fi |
96 |
+ |
97 |
+ # glib fails and picks up clang's internal stdint.h causing weird errors |
98 |
+ [[ ${CC} == *clang ]] && \ |
99 |
+ export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
100 |
+ |
101 |
+ econf \ |
102 |
+ "${myconf[@]}" \ |
103 |
+ $(use_enable bzip2) \ |
104 |
+ $(use_enable gnutls) \ |
105 |
+ $(use_enable nls) \ |
106 |
+ $(use_enable tofu) \ |
107 |
+ $(use_enable wks-server wks-tools) \ |
108 |
+ $(use_with ldap) \ |
109 |
+ $(use_with readline) \ |
110 |
+ --enable-gpg \ |
111 |
+ --enable-gpgsm \ |
112 |
+ --enable-large-secmem \ |
113 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" |
114 |
+} |
115 |
+ |
116 |
+src_compile() { |
117 |
+ default |
118 |
+ |
119 |
+ use doc && emake -C doc html |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ default |
124 |
+ |
125 |
+ use tools && |
126 |
+ dobin \ |
127 |
+ tools/{convert-from-106,gpg-check-pattern} \ |
128 |
+ tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
129 |
+ tools/make-dns-cert |
130 |
+ |
131 |
+ dosym gpg2 /usr/bin/gpg |
132 |
+ dosym gpgv2 /usr/bin/gpgv |
133 |
+ echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1 |
134 |
+ echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1 |
135 |
+ |
136 |
+ dodir /etc/env.d |
137 |
+ echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg |
138 |
+ |
139 |
+ use doc && dodoc doc/gnupg.html/* doc/*.png |
140 |
+ |
141 |
+ systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
142 |
+} |