Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/trousers/
Date: Thu, 25 Jun 2020 08:08:34
Message-Id: 1593072463.dbec2c8cae99463c0fb913381df397251e9d620d.juippis@gentoo
1 commit: dbec2c8cae99463c0fb913381df397251e9d620d
2 Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 7 17:50:53 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 08:07:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbec2c8c
7
8 app-crypt/trousers: Remove old
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/16112
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-crypt/trousers/trousers-0.3.14-r1.ebuild | 104 ---------------------------
16 1 file changed, 104 deletions(-)
17
18 diff --git a/app-crypt/trousers/trousers-0.3.14-r1.ebuild b/app-crypt/trousers/trousers-0.3.14-r1.ebuild
19 deleted file mode 100644
20 index b9fbfed67e7..00000000000
21 --- a/app-crypt/trousers/trousers-0.3.14-r1.ebuild
22 +++ /dev/null
23 @@ -1,104 +0,0 @@
24 -# Copyright 1999-2020 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=7
28 -
29 -inherit autotools linux-info readme.gentoo-r1 systemd user udev
30 -
31 -DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation"
32 -HOMEPAGE="http://trousers.sf.net"
33 -SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz"
34 -
35 -LICENSE="CPL-1.0 GPL-2"
36 -SLOT="0"
37 -KEYWORDS="amd64 arm arm64 ~m68k ~ppc ppc64 ~s390 x86"
38 -IUSE="doc libressl selinux" # gtk
39 -
40 -# gtk support presently does NOT compile.
41 -# gtk? ( >=x11-libs/gtk+-2 )
42 -
43 -DEPEND=">=dev-libs/glib-2
44 - !libressl? ( >=dev-libs/openssl-0.9.7:0= )
45 - libressl? ( dev-libs/libressl:0= )"
46 -RDEPEND="${DEPEND}
47 - selinux? ( sec-policy/selinux-tcsd )"
48 -BDEPEND="virtual/pkgconfig"
49 -
50 -PATCHES=(
51 - "${FILESDIR}/${PN}-0.3.13-nouseradd.patch"
52 - "${FILESDIR}/${P}-libressl.patch"
53 -)
54 -
55 -DOCS="AUTHORS ChangeLog NICETOHAVES README TODO"
56 -
57 -DOC_CONTENTS="
58 - If you have problems starting tcsd, please check permissions and
59 - ownership on /dev/tpm* and ~tss/system.data
60 -"
61 -
62 -S="${WORKDIR}"
63 -
64 -pkg_setup() {
65 - # Check for driver (not sure it can be an rdep, because ot depends on the
66 - # version of virtual/linux-sources... Is that supported by portage?)
67 - linux-info_pkg_setup
68 - local tpm_kernel_version tpm_kernel_present tpm_module
69 - kernel_is ge 2 6 12 && tpm_kernel_version="yes"
70 - if linux_config_exists; then
71 - linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes"
72 - else
73 - ewarn "No kernel configuration could be found."
74 - fi
75 - has_version app-crypt/tpm-emulator && tpm_module="yes"
76 - if [[ -n "${tpm_kernel_present}" ]]; then
77 - einfo "Good, you seem to have in-kernel TPM support."
78 - elif [[ -n "${tpm_module}" ]]; then
79 - einfo "Good, you seem to have TPM support with the external module."
80 - if [[ -n "${tpm_kernel_version}" ]]; then
81 - elog
82 - elog "Note that since you have a >=2.6.12 kernel, you could use"
83 - elog "the in-kernel driver instead of (CONFIG_TCG_TPM)."
84 - fi
85 - elif [[ -n "${tpm_kernel_version}" ]]; then
86 - eerror
87 - eerror "To use this package, you will have to activate TPM support"
88 - eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM,"
89 - eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)."
90 - eerror
91 - else
92 - eerror
93 - eerror "To use this package, you should install a TPM driver."
94 - eerror "You can have the following options:"
95 - eerror " - install app-crypt/tpm-emulator"
96 - eerror " - switch to a >=2.6.12 kernel and compile the kernel module"
97 - eerror
98 - fi
99 -
100 - # New user/group for the daemon
101 - enewgroup tss
102 - enewuser tss -1 -1 /var/lib/tpm tss
103 -}
104 -
105 -src_prepare() {
106 - default
107 - eautoreconf
108 -}
109 -
110 -src_configure() {
111 - # econf --with-gui=$(usex gtk gtk openssl)
112 - econf --with-gui=openssl
113 -}
114 -
115 -src_install() {
116 - default
117 - find "${D}" -name '*.la' -delete || die
118 -
119 - keepdir /var/lib/tpm
120 - use doc && dodoc doc/*
121 - newinitd "${FILESDIR}"/tcsd.initd tcsd
122 - newconfd "${FILESDIR}"/tcsd.confd tcsd
123 - systemd_dounit "${FILESDIR}"/tcsd.service
124 - udev_dorules "${FILESDIR}"/61-trousers.rules
125 - fowners tss:tss /var/lib/tpm
126 - readme.gentoo_create_doc
127 -}