From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD12D1396D9 for ; Wed, 8 Nov 2017 06:36:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA21DE0E5E; Wed, 8 Nov 2017 06:36:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B093FE0E5E for ; Wed, 8 Nov 2017 06:36:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7ACA333BF51 for ; Wed, 8 Nov 2017 06:36:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E59F97A4 for ; Wed, 8 Nov 2017 06:36:15 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1510122917.8c44d2c6b308668ff14c079831b3f1bfcb609866.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/gss-proxy/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nds/gss-proxy/gss-proxy-0.7.0-r1.ebuild X-VCS-Directories: net-nds/gss-proxy/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 8c44d2c6b308668ff14c079831b3f1bfcb609866 X-VCS-Branch: master Date: Wed, 8 Nov 2017 06:36:15 +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: 6be03516-739d-4136-be37-e942dae43896 X-Archives-Hash: cba9fb3cf6628738a54df7569933f158 commit: 8c44d2c6b308668ff14c079831b3f1bfcb609866 Author: Jason Zaman gentoo org> AuthorDate: Wed Nov 8 06:35:17 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Nov 8 06:35:17 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c44d2c6 net-nds/gss-proxy: Add dep for selinux policy Package-Manager: Portage-2.3.8, Repoman-2.3.3 net-nds/gss-proxy/gss-proxy-0.7.0-r1.ebuild | 89 +++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/net-nds/gss-proxy/gss-proxy-0.7.0-r1.ebuild b/net-nds/gss-proxy/gss-proxy-0.7.0-r1.ebuild new file mode 100644 index 00000000000..6a690d58a4b --- /dev/null +++ b/net-nds/gss-proxy/gss-proxy-0.7.0-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_P="${PN/-}-${PV}" + +DESCRIPTION="daemon to proxy GSSAPI context establishment and channel handling" +HOMEPAGE="https://pagure.io/gssproxy" +SRC_URI="http://releases.pagure.org/gssproxy/${MY_P}.tar.gz" + +LICENSE="BSD-1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="debug selinux systemd hardened" + +COMMON_DEPEND=">=dev-libs/libverto-0.2.2 + >=dev-libs/ding-libs-0.5.0 + virtual/krb5 + selinux? ( sys-libs/libselinux )" +RDEPEND="${COMMON_DEPEND} + selinux? ( sec-policy/selinux-gssproxy )" +# We need xml stuff to build the man pages, and people really want/need +# the man pages for this package :). #585200 +DEPEND="${COMMON_DEPEND} + app-text/docbook-xml-dtd:4.4 + dev-libs/libxslt + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +# Many requirements to run tests, including running slapd as root, hence +# unfeasible. +RESTRICT="test" + +# pkg_setup() { +# # Here instead of flag-logic in DEPEND, since virtual/krb5 does not +# # allow to specify the openldap use flag, which heimdal doesn't +# # support. +# # Using mit-krb5 explicitly because heimdal doesn't install kerberos +# # schemata required for the tests of gss-proxy. +# if use test && ! has_version "app-crypt/mit-krb5[openldap]"; then +# eerror "Tests of this package require the kerberos schemata installed from app-crypt/mit-krb5[openldap]." +# die "Tests enabled but no app-crypt/mit-krb5[openldap] being installed." +# fi +# } + +# Was required in 0.7.0 to fix the schema- and slapd-path. Reason for +# comment: see RESTRICT comment +# src_prepare() { +# default +# # The tests look for kerberos schemata in the documentation +# # directory of krb5, however these are installed in /etc/openldap +# # and only if the openldap useflag is supplied +# sed -i \ +# -e 's#/usr/share/doc/krb5-server-ldap*#/etc/openldap/schema#' \ +# -e "s#\(subprocess.Popen..\"\)slapd#\1/usr/$(get_libdir)/openldap/slapd#" \ +# "${S}/tests/testlib.py" || die +# } + +src_configure() { + local myeconfargs=( + # The build assumes localstatedir is /var and takes care of + # using all the right subdirs itself. + "--localstatedir=${EPREFIX}/var" + "--with-os=gentoo" + "--with-initscript=$(usex systemd systemd none)" + "$(use_with selinux)" + "$(use_with debug gssidebug)" + "$(use_with hardened hardening)" + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + # This is a plugin module, so no need for la file. + find "${ED%/}"/usr -name proxymech.la -delete + + doinitd "${FILESDIR}"/gssproxy + insinto /etc/gssproxy + doins examples/*.conf + insinto /etc/gss/mech.d + newins examples/mech gssproxy.conf + + # The build installs a bunch of empty dirs, so prune them. + find "${ED}" -depth -type d -exec rmdir {} + 2>/dev/null +}