Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/gssproxy/
Date: Wed, 01 Jun 2022 01:25:33
Message-Id: 1654046710.ee8507b06c0785bfcfed62fd32668f1b1750ab2e.sam@gentoo
1 commit: ee8507b06c0785bfcfed62fd32668f1b1750ab2e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 00:46:34 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 01:25:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee8507b0
7
8 net-nds/gssproxy: add 0.9.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-nds/gssproxy/Manifest | 1 +
13 net-nds/gssproxy/gssproxy-0.9.0.ebuild | 92 ++++++++++++++++++++++++++++++++++
14 2 files changed, 93 insertions(+)
15
16 diff --git a/net-nds/gssproxy/Manifest b/net-nds/gssproxy/Manifest
17 index f7fc05e974f0..b46832b383af 100644
18 --- a/net-nds/gssproxy/Manifest
19 +++ b/net-nds/gssproxy/Manifest
20 @@ -1 +1,2 @@
21 DIST gssproxy-0.8.4.tar.gz 567579 BLAKE2B 55519d2d439e168df0346cfa2655e01bc90191e17ea7d8c72c5f29c22ed6adca39e5adb4fd900f6dc756147b2fbee23212bfc097c38ab927e6c9679b0186fa2c SHA512 ab81c40d6c7b1908751feb107d8da66603b7681fb67aa7a1f30194a81d542ca89e6c2f34425e9356b9c55eb3691bfa240ba41441c01498af45e862a133cd088a
22 +DIST gssproxy-0.9.0.tar.gz 578823 BLAKE2B e018f24ff5a4aba071e1566f55ab65c160a69eae623d596b41e7889289b4d12d04ce4bfd244536d6e4610430d5dc98071a5a9fc2085d63de99ca1eef9120abe8 SHA512 0c597951bd9c26db93a8aeb0c1f7328d8ae03ec72838b376eef458b0021b6b5f6d814d6b2438472cc121c0938883d30125f0e10bda01a1d0896d7933856976c9
23
24 diff --git a/net-nds/gssproxy/gssproxy-0.9.0.ebuild b/net-nds/gssproxy/gssproxy-0.9.0.ebuild
25 new file mode 100644
26 index 000000000000..ac3daab25f48
27 --- /dev/null
28 +++ b/net-nds/gssproxy/gssproxy-0.9.0.ebuild
29 @@ -0,0 +1,92 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +DESCRIPTION="Daemon to proxy GSSAPI context establishment and channel handling"
36 +HOMEPAGE="https://github.com/gssapi/gssproxy"
37 +SRC_URI="https://github.com/gssapi/${PN}/releases/download/v${PV}/${P}.tar.gz"
38 +
39 +LICENSE="BSD-1"
40 +SLOT="0"
41 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
42 +IUSE="debug selinux systemd hardened"
43 +
44 +COMMON_DEPEND=">=dev-libs/libverto-0.2.2
45 + >=dev-libs/ding-libs-0.6.1
46 + virtual/krb5
47 + selinux? ( sys-libs/libselinux )"
48 +RDEPEND="${COMMON_DEPEND}
49 + selinux? ( sec-policy/selinux-gssproxy )"
50 +# We need xml stuff to build the man pages, and people really want/need
51 +# the man pages for this package :). #585200
52 +BDEPEND="
53 + app-text/docbook-xml-dtd:4.4
54 + dev-libs/libxslt
55 + virtual/pkgconfig
56 +"
57 +
58 +# Many requirements to run tests, including running slapd as root, hence
59 +# unfeasible.
60 +RESTRICT="test"
61 +
62 +# pkg_setup() {
63 +# # Here instead of flag-logic in DEPEND, since virtual/krb5 does not
64 +# # allow to specify the openldap use flag, which heimdal doesn't
65 +# # support.
66 +# # Using mit-krb5 explicitly because heimdal doesn't install kerberos
67 +# # schemata required for the tests of gss-proxy.
68 +# if use test && ! has_version "app-crypt/mit-krb5[openldap]"; then
69 +# eerror "Tests of this package require the kerberos schemata installed from app-crypt/mit-krb5[openldap]."
70 +# die "Tests enabled but no app-crypt/mit-krb5[openldap] being installed."
71 +# fi
72 +# }
73 +
74 +# Was required in 0.7.0 to fix the schema- and slapd-path. Reason for
75 +# comment: see RESTRICT comment
76 +# src_prepare() {
77 +# default
78 +# # The tests look for kerberos schemata in the documentation
79 +# # directory of krb5, however these are installed in /etc/openldap
80 +# # and only if the openldap useflag is supplied
81 +# sed -i \
82 +# -e 's#/usr/share/doc/krb5-server-ldap*#/etc/openldap/schema#' \
83 +# -e "s#\(subprocess.Popen..\"\)slapd#\1/usr/$(get_libdir)/openldap/slapd#" \
84 +# "${S}/tests/testlib.py" || die
85 +# }
86 +
87 +src_configure() {
88 + local myeconfargs=(
89 + # The build assumes localstatedir is /var and takes care of
90 + # using all the right subdirs itself.
91 + --localstatedir="${EPREFIX}"/var
92 +
93 + --with-os=gentoo
94 + --with-initscript=$(usex systemd systemd none)
95 + $(use_with selinux)
96 + $(use_with debug gssidebug)
97 + $(use_with hardened hardening)
98 + )
99 +
100 + econf "${myeconfargs[@]}"
101 +}
102 +
103 +src_install() {
104 + default
105 +
106 + # This is a plugin module, so no need for la file.
107 + find "${ED}"/usr -name proxymech.la -delete || die
108 +
109 + doinitd "${FILESDIR}"/gssproxy
110 + insinto /etc/gssproxy
111 + doins examples/*.conf
112 +
113 + keepdir /var/lib/gssproxy
114 + keepdir /var/lib/gssproxy/clients
115 + keepdir /var/lib/gssproxy/rcache
116 + fperms 0700 /var/lib/gssproxy/clients
117 + fperms 0700 /var/lib/gssproxy/rcache
118 +
119 + # The build installs a bunch of empty dirs, so prune them.
120 + find "${ED}" -depth -type d -empty -delete || die
121 +}