Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/pinentry/
Date: Tue, 15 Dec 2015 19:51:40
Message-Id: 1450208811.1bb32c78038453a25d9c4ec819437d237864465f.k_f@gentoo
1 commit: 1bb32c78038453a25d9c4ec819437d237864465f
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 15 19:46:09 2015 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 15 19:46:51 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bb32c78
7
8 app-crypt/pinentry: Cleanup some older versions
9
10 app-crypt/pinentry/pinentry-0.9.6-r4.ebuild | 101 -----------------------
11 app-crypt/pinentry/pinentry-0.9.6-r5.ebuild | 123 ----------------------------
12 2 files changed, 224 deletions(-)
13
14 diff --git a/app-crypt/pinentry/pinentry-0.9.6-r4.ebuild b/app-crypt/pinentry/pinentry-0.9.6-r4.ebuild
15 deleted file mode 100644
16 index 20fc85f..0000000
17 --- a/app-crypt/pinentry/pinentry-0.9.6-r4.ebuild
18 +++ /dev/null
19 @@ -1,101 +0,0 @@
20 -# Copyright 1999-2015 Gentoo Foundation
21 -# Distributed under the terms of the GNU General Public License v2
22 -# $Id$
23 -
24 -EAPI=5
25 -
26 -inherit autotools qmake-utils multilib eutils flag-o-matic toolchain-funcs
27 -
28 -DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
29 -HOMEPAGE="http://gnupg.org/aegypten2/index.html"
30 -SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
31 -
32 -LICENSE="GPL-2"
33 -SLOT="0"
34 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
35 -IUSE="emacs gtk ncurses qt4 caps gnome-keyring static"
36 -
37 -CDEPEND="
38 - >=dev-libs/libgpg-error-1.17
39 - >=dev-libs/libassuan-2
40 - >=dev-libs/libgcrypt-1.6.3
41 - ncurses? ( sys-libs/ncurses:0= )
42 - gtk? ( x11-libs/gtk+:2 )
43 - qt4? ( >=dev-qt/qtgui-4.4.1:4 )
44 - caps? ( sys-libs/libcap )
45 - static? ( >=sys-libs/ncurses-5.7-r5:0=[static-libs,-gpm] )
46 - app-eselect/eselect-pinentry
47 - gnome-keyring? ( app-crypt/libsecret )
48 -"
49 -
50 -DEPEND="${CDEPEND}
51 - sys-devel/gettext
52 - virtual/pkgconfig
53 -"
54 -
55 -RDEPEND="
56 - ${CDEPEND}
57 - gnome-keyring? ( app-crypt/gcr )
58 -"
59 -
60 -REQUIRED_USE="
61 - || ( ncurses gtk qt4 )
62 - gtk? ( !static )
63 - qt4? ( !static )
64 - static? ( ncurses )
65 -"
66 -
67 -DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
68 -
69 -src_prepare() {
70 - epatch "${FILESDIR}/${PN}-0.8.2-ncurses.patch"
71 - epatch "${FILESDIR}/${P}-Remove-detection-of-Qt5.patch"
72 - eautoreconf
73 -}
74 -
75 -src_configure() {
76 - use static && append-ldflags -static
77 - [[ "$(gcc-major-version)" -ge 5 ]] && append-cxxflags -std=gnu++11
78 -
79 - # Issues finding qt on multilib systems
80 - export QTLIB="${QTDIR}/$(get_libdir)"
81 -
82 - econf \
83 - --enable-pinentry-tty \
84 - $(use_enable emacs pinentry-emacs) \
85 - $(use_enable gtk pinentry-gtk2) \
86 - $(use_enable ncurses pinentry-curses) \
87 - $(use_enable ncurses fallback-curses) \
88 - $(use_enable qt4 pinentry-qt) \
89 - $(use_with caps libcap) \
90 - $(use_enable gnome-keyring libsecret) \
91 - $(use_enable gnome-keyring pinentry-gnome3) \
92 - MOC="$(qt4_get_bindir)"/moc
93 -}
94 -
95 -src_install() {
96 - default
97 - rm -f "${ED}"/usr/bin/pinentry || die
98 -
99 - if use_enable qt4; then
100 - dosym pinentry-qt /usr/bin/pinentry-qt4
101 - fi
102 -}
103 -
104 -pkg_postinst() {
105 - if ! has_version 'app-crypt/pinentry' || has_version '<app-crypt/pinentry-0.7.3'; then
106 - elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
107 - elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
108 - elog "The soft resource limit for memory locking specifies the limit an"
109 - elog "unprivileged process may lock into memory. You can also use POSIX"
110 - elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
111 - elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
112 - elog "your users."
113 - fi
114 -
115 - eselect pinentry update ifunset
116 -}
117 -
118 -pkg_postrm() {
119 - eselect pinentry update ifunset
120 -}
121
122 diff --git a/app-crypt/pinentry/pinentry-0.9.6-r5.ebuild b/app-crypt/pinentry/pinentry-0.9.6-r5.ebuild
123 deleted file mode 100644
124 index 6e10cf8..0000000
125 --- a/app-crypt/pinentry/pinentry-0.9.6-r5.ebuild
126 +++ /dev/null
127 @@ -1,123 +0,0 @@
128 -# Copyright 1999-2015 Gentoo Foundation
129 -# Distributed under the terms of the GNU General Public License v2
130 -# $Id$
131 -
132 -EAPI=5
133 -
134 -inherit autotools qmake-utils multilib eutils flag-o-matic toolchain-funcs
135 -
136 -DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
137 -HOMEPAGE="http://gnupg.org/aegypten2/index.html"
138 -SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
139 -
140 -LICENSE="GPL-2"
141 -SLOT="0"
142 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
143 -IUSE="emacs gtk ncurses qt4 qt5 caps gnome-keyring static"
144 -
145 -CDEPEND="
146 - >=dev-libs/libgpg-error-1.17
147 - >=dev-libs/libassuan-2
148 - >=dev-libs/libgcrypt-1.6.3
149 - ncurses? ( sys-libs/ncurses:0= )
150 - gtk? ( x11-libs/gtk+:2 )
151 - qt4? (
152 - >=dev-qt/qtgui-4.4.1:4
153 - )
154 - qt5? (
155 - dev-qt/qtgui:5
156 - dev-qt/qtwidgets:5
157 - )
158 - caps? ( sys-libs/libcap )
159 - static? ( >=sys-libs/ncurses-5.7-r5:0=[static-libs,-gpm] )
160 - app-eselect/eselect-pinentry
161 - gnome-keyring? ( app-crypt/libsecret )
162 -"
163 -
164 -DEPEND="${CDEPEND}
165 - sys-devel/gettext
166 - virtual/pkgconfig
167 -"
168 -
169 -RDEPEND="
170 - ${CDEPEND}
171 - gnome-keyring? ( app-crypt/gcr )
172 -"
173 -
174 -REQUIRED_USE="
175 - || ( ncurses gtk qt4 )
176 - gtk? ( !static )
177 - qt4? ( !static )
178 - qt5? ( !static )
179 - static? ( ncurses )
180 - ?? ( qt4 qt5 )
181 -"
182 -
183 -DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
184 -
185 -src_prepare() {
186 - epatch "${FILESDIR}/${PN}-0.8.2-ncurses.patch"
187 - epatch "${FILESDIR}/${P}-add-disable-pinentry-qt5-option.patch"
188 - eautoreconf
189 -}
190 -
191 -src_configure() {
192 - local myconf=()
193 - use static && append-ldflags -static
194 - [[ "$(gcc-major-version)" -ge 5 ]] && append-cxxflags -std=gnu++11
195 -
196 - QT_MOC=""
197 - if use qt4; then
198 - myconf+=( --enable-pinentry-qt
199 - --disable-pinentry-qt5
200 - )
201 - QT_MOC="$(qt4_get_bindir)"/moc
202 - # Issues finding qt on multilib systems
203 - export QTLIB="$(qt4_get_libdir)"
204 - elif use qt5; then
205 - myconf+=( --enable-pinentry-qt )
206 - QT_MOC="$(qt5_get_bindir)"/moc
207 - export QTLIB="$(qt5_get_libdir)"
208 - else
209 - myconf+=( --disable-pinentry-qt )
210 - fi
211 -
212 - econf \
213 - --enable-pinentry-tty \
214 - $(use_enable emacs pinentry-emacs) \
215 - $(use_enable gtk pinentry-gtk2) \
216 - $(use_enable ncurses pinentry-curses) \
217 - $(use_enable ncurses fallback-curses) \
218 - $(use_with caps libcap) \
219 - $(use_enable gnome-keyring libsecret) \
220 - $(use_enable gnome-keyring pinentry-gnome3) \
221 - "${myconf[@]}" \
222 - MOC="${QT_MOC}"
223 -}
224 -
225 -src_install() {
226 - default
227 - rm -f "${ED}"/usr/bin/pinentry || die
228 -
229 - if use_enable qt4 || use_enable qt5; then
230 - dosym pinentry-qt /usr/bin/pinentry-qt4
231 - fi
232 -}
233 -
234 -pkg_postinst() {
235 - if ! has_version 'app-crypt/pinentry' || has_version '<app-crypt/pinentry-0.7.3'; then
236 - elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
237 - elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
238 - elog "The soft resource limit for memory locking specifies the limit an"
239 - elog "unprivileged process may lock into memory. You can also use POSIX"
240 - elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
241 - elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
242 - elog "your users."
243 - fi
244 -
245 - eselect pinentry update ifunset
246 -}
247 -
248 -pkg_postrm() {
249 - eselect pinentry update ifunset
250 -}