From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 482FA1387FD for ; Mon, 9 Jun 2014 20:06:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41F6DE092E; Mon, 9 Jun 2014 20:06:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C970EE092E for ; Mon, 9 Jun 2014 20:06:07 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 829DE33F82B for ; Mon, 9 Jun 2014 20:06:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 3C296181A9 for ; Mon, 9 Jun 2014 20:06:05 +0000 (UTC) From: "Davide Pesavento" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" Message-ID: <1402344390.3e8d6a5cbfe7b3a16c59fd90f90c75215d51714d.pesa@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: app-crypt/pinentry/ X-VCS-Repository: proj/qt X-VCS-Files: app-crypt/pinentry/metadata.xml app-crypt/pinentry/pinentry-9999.ebuild X-VCS-Directories: app-crypt/pinentry/ X-VCS-Committer: pesa X-VCS-Committer-Name: Davide Pesavento X-VCS-Revision: 3e8d6a5cbfe7b3a16c59fd90f90c75215d51714d X-VCS-Branch: master Date: Mon, 9 Jun 2014 20:06:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1566a8ee-a19a-440c-91a0-a65d16738b8d X-Archives-Hash: d3a535a135738d719b80286747e27a7d commit: 3e8d6a5cbfe7b3a16c59fd90f90c75215d51714d Author: Davide Pesavento gentoo org> AuthorDate: Mon Jun 9 20:06:30 2014 +0000 Commit: Davide Pesavento gentoo org> CommitDate: Mon Jun 9 20:06:30 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=3e8d6a5c [app-crypt/pinentry] Sync with portage. Package-Manager: portage-2.2.10 --- app-crypt/pinentry/metadata.xml | 6 +- app-crypt/pinentry/pinentry-9999.ebuild | 114 +++++++++++++++++--------------- 2 files changed, 63 insertions(+), 57 deletions(-) diff --git a/app-crypt/pinentry/metadata.xml b/app-crypt/pinentry/metadata.xml index 2cfa47f..d68fe97 100644 --- a/app-crypt/pinentry/metadata.xml +++ b/app-crypt/pinentry/metadata.xml @@ -1,9 +1,5 @@ - - - swegener@gentoo.org - Primary Maintainer - +crypto diff --git a/app-crypt/pinentry/pinentry-9999.ebuild b/app-crypt/pinentry/pinentry-9999.ebuild index 390de36..3399b9b 100644 --- a/app-crypt/pinentry/pinentry-9999.ebuild +++ b/app-crypt/pinentry/pinentry-9999.ebuild @@ -1,93 +1,103 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/pinentry-0.8.3.ebuild,v 1.5 2014/04/03 19:40:59 haubi Exp $ -EAPI="2" +EAPI=5 -inherit autotools multilib eutils flag-o-matic git-r3 +inherit autotools multilib eutils flag-o-matic git-r3 toolchain-funcs DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol" -HOMEPAGE="http://www.gnupg.org/aegypten/" +HOMEPAGE="http://gnupg.org/aegypten2/index.html" EGIT_REPO_URI="git://git.gnupg.org/pinentry.git" LICENSE="GPL-2" -KEYWORDS="" SLOT="0" -IUSE="caps gtk ncurses qt4 static" +KEYWORDS="" +IUSE="gtk ncurses qt4 caps static" -DEPEND=" +RDEPEND=" + app-admin/eselect-pinentry caps? ( sys-libs/libcap ) - static? ( sys-libs/ncurses ) - !static? ( - gtk? ( x11-libs/gtk+:2 ) - !gtk? ( - !qt4? ( sys-libs/ncurses ) - ) - ncurses? ( sys-libs/ncurses ) - qt4? ( dev-qt/qtgui:4 ) - ) + gtk? ( x11-libs/gtk+:2 ) + ncurses? ( sys-libs/ncurses ) + qt4? ( >=dev-qt/qtgui-4.4.1:4 ) + static? ( >=sys-libs/ncurses-5.7-r5[static-libs,-gpm] ) +" +DEPEND="${RDEPEND} + sys-devel/gettext + gtk? ( virtual/pkgconfig ) + qt4? ( virtual/pkgconfig ) + ppc-aix? ( dev-libs/gnulib ) +" +REQUIRED_USE=" + || ( ncurses gtk qt4 ) + gtk? ( !static ) + qt4? ( !static ) + static? ( ncurses ) " -RDEPEND="${DEPEND}" -pkg_setup() { - if use static; then - append-ldflags -static - if use gtk || use qt4; then - ewarn - ewarn "The static USE flag is only supported with the ncurses USE flags, disabling the gtk and qt4 USE flags." - ewarn - fi - fi -} +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) src_prepare() { + if use qt4; then + local f + for f in qt4/*.moc; do + "${EPREFIX}"/usr/bin/moc ${f/.moc/.h} > ${f} || die + done + fi + epatch "${FILESDIR}/${PN}-0.8.2-ncurses.patch" + epatch "${FILESDIR}/${PN}-0.8.2-texi.patch" + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die eautoreconf - elibtoolize } src_configure() { - local myconf="" + use static && append-ldflags -static - if use gtk || use ncurses || use qt4; then - myconf="--enable-pinentry-curses --enable-fallback-curses" - elif use static; then - myconf="--enable-pinentry-curses --enable-fallback-curses --disable-pinentry-gtk2 --disable-pinentry-qt --disable-pinentry-qt4" + if [[ ${CHOST} == *-aix* ]] ; then + append-flags -I"${EPREFIX}/usr/$(get_libdir)/gnulib/include" + append-ldflags -L"${EPREFIX}/usr/$(get_libdir)/gnulib/$(get_libdir)" + append-libs -lgnu fi + # Issues finding qt on multilib systems + export QTLIB="${QTDIR}/$(get_libdir)" + econf \ --disable-dependency-tracking \ --enable-maintainer-mode \ --disable-pinentry-gtk \ $(use_enable gtk pinentry-gtk2) \ - $(use_enable qt4 pinentry-qt4) \ + --disable-pinentry-qt \ $(use_enable ncurses pinentry-curses) \ $(use_enable ncurses fallback-curses) \ + $(use_enable qt4 pinentry-qt4) \ $(use_with caps libcap) \ - ${myconf} + --without-x } src_compile() { - # Generated meta-object files manually - if use qt4; then - moc qt4/pinentrydialog.h -o qt4/pinentrydialog.moc && \ - moc qt4/qsecurelineedit.h -o qt4/qsecurelineedit.moc \ - || die "failed to regenerate .moc files" - fi - - emake || die "emake failed" + emake AR="$(tc-getAR)" } src_install() { - emake DESTDIR="${D}" install || die "make install failed" - dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die "dodoc failed" + default + rm -f "${ED}"/usr/bin/pinentry || die } pkg_postinst() { - elog "We no longer install pinentry-curses and pinentry-qt SUID root by default." - elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes." - elog "The soft resource limit for memory locking specifies the limit an" - elog "unprivileged process may lock into memory. You can also use POSIX" - elog "capabilities to allow pinentry to lock memory. To do so activate the caps" - elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of" - elog "your users." + if ! has_version 'app-crypt/pinentry' || has_version '=2.6.9 support memory locking for unprivileged processes." + elog "The soft resource limit for memory locking specifies the limit an" + elog "unprivileged process may lock into memory. You can also use POSIX" + elog "capabilities to allow pinentry to lock memory. To do so activate the caps" + elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of" + elog "your users." + fi + eselect pinentry update ifunset +} + +pkg_postrm() { + eselect pinentry update ifunset }