1 |
commit: 8a68a7e7be6ca12929f51796bd8c9576fa0bf1c0 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 5 18:18:57 2016 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 5 18:45:42 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a68a7e7 |
7 |
|
8 |
app-crypt/trousers: version bump |
9 |
|
10 |
Bug: 601542 |
11 |
Thanks: Conrad Kostecki |
12 |
|
13 |
Package-Manager: portage-2.3.0 |
14 |
|
15 |
app-crypt/trousers/Manifest | 1 + |
16 |
app-crypt/trousers/trousers-0.3.14.ebuild | 105 ++++++++++++++++++++++++++++++ |
17 |
2 files changed, 106 insertions(+) |
18 |
|
19 |
diff --git a/app-crypt/trousers/Manifest b/app-crypt/trousers/Manifest |
20 |
index 7bb78b9..56a9e0e 100644 |
21 |
--- a/app-crypt/trousers/Manifest |
22 |
+++ b/app-crypt/trousers/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST trousers-0.3.10.tar.gz 1658652 SHA256 eb9569de5c66d9698f6c3303de03777b95ec72827f68b7744454bfa9227bc530 SHA512 1835246f846d20bc1b2731d68440a9ca45865fcd52ad847d95485e4b126fae8bec09feaad559c27d83e243d92b8adc3a67934bff2034b318df075842fe9df4f0 WHIRLPOOL 7a27ef57b0038178cbf384c9fdec2d2e3e58dbeb5e5bc1503d2a7058a8312df54fa72b87968554631e4b5e483ae5e8c5e0a2367346bf3ae001b523a507ceff40 |
25 |
DIST trousers-0.3.13.tar.gz 1371901 SHA256 bb908e4a3c88a17b247a4fc8e0fff3419d8a13170fe7bdfbe0e2c5c082a276d3 SHA512 c54407e538712f738b593707ffc6d617348d73de91dfddd9057273c2fcec26e5738e89db005d36d52596630a9d583f7fcb8cc388f597da6212891e2d79dce699 WHIRLPOOL 8099d2f01b1c64b2e92c78130c9f66766f9054a1ab557f0d6da149ca4869c9fed7ee3a26454ab50bd67069d30c758ccabb450dead1d9100ffacac9f596f6d46b |
26 |
+DIST trousers-0.3.14.tar.gz 1378438 SHA256 ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47 SHA512 bf87f00329cf1d76a12cf6b6181fa22f90e76af3c5786e6e2db98438d2d3f0c0e05364374664173f45e3a2f6c0e2364948d0b958a7845cb23fcb340150cd9b21 WHIRLPOOL 1e1c51774fa796c706858d008651182673f7a88532cac35d010f4bd713fe50c1151e0a5a7ffb6975e8a050a1aab6edeb09d1672407025a776625c9b4f2912c88 |
27 |
|
28 |
diff --git a/app-crypt/trousers/trousers-0.3.14.ebuild b/app-crypt/trousers/trousers-0.3.14.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000..1e8be96 |
31 |
--- /dev/null |
32 |
+++ b/app-crypt/trousers/trousers-0.3.14.ebuild |
33 |
@@ -0,0 +1,105 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit autotools eutils linux-info readme.gentoo-r1 systemd user udev |
41 |
+ |
42 |
+DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation" |
43 |
+HOMEPAGE="http://trousers.sf.net" |
44 |
+SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="CPL-1.0 GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86" |
49 |
+IUSE="doc libressl selinux" # gtk |
50 |
+ |
51 |
+# gtk support presently does NOT compile. |
52 |
+# gtk? ( >=x11-libs/gtk+-2 ) |
53 |
+ |
54 |
+CDEPEND=">=dev-libs/glib-2 |
55 |
+ !libressl? ( >=dev-libs/openssl-0.9.7:0 ) |
56 |
+ libressl? ( dev-libs/libressl ) |
57 |
+" |
58 |
+DEPEND="${CDEPEND} |
59 |
+ virtual/pkgconfig" |
60 |
+RDEPEND="${CDEPEND} |
61 |
+ selinux? ( sec-policy/selinux-tcsd )" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}/${PN}-0.3.13-nouseradd.patch" |
65 |
+) |
66 |
+ |
67 |
+DOCS="AUTHORS ChangeLog NICETOHAVES README TODO" |
68 |
+ |
69 |
+DOC_CONTENTS=" |
70 |
+ If you have problems starting tcsd, please check permissions and |
71 |
+ ownership on /dev/tpm* and ~tss/system.data |
72 |
+" |
73 |
+ |
74 |
+S="${WORKDIR}" |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ # Check for driver (not sure it can be an rdep, because ot depends on the |
78 |
+ # version of virtual/linux-sources... Is that supported by portage?) |
79 |
+ linux-info_pkg_setup |
80 |
+ local tpm_kernel_version tpm_kernel_present tpm_module |
81 |
+ kernel_is ge 2 6 12 && tpm_kernel_version="yes" |
82 |
+ if linux_config_exists; then |
83 |
+ linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes" |
84 |
+ else |
85 |
+ ewarn "No kernel configuration could be found." |
86 |
+ fi |
87 |
+ has_version app-crypt/tpm-emulator && tpm_module="yes" |
88 |
+ if [[ -n "${tpm_kernel_present}" ]]; then |
89 |
+ einfo "Good, you seem to have in-kernel TPM support." |
90 |
+ elif [[ -n "${tpm_module}" ]]; then |
91 |
+ einfo "Good, you seem to have TPM support with the external module." |
92 |
+ if [[ -n "${tpm_kernel_version}" ]]; then |
93 |
+ elog |
94 |
+ elog "Note that since you have a >=2.6.12 kernel, you could use" |
95 |
+ elog "the in-kernel driver instead of (CONFIG_TCG_TPM)." |
96 |
+ fi |
97 |
+ elif [[ -n "${tpm_kernel_version}" ]]; then |
98 |
+ eerror |
99 |
+ eerror "To use this package, you will have to activate TPM support" |
100 |
+ eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM," |
101 |
+ eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)." |
102 |
+ eerror |
103 |
+ else |
104 |
+ eerror |
105 |
+ eerror "To use this package, you should install a TPM driver." |
106 |
+ eerror "You can have the following options:" |
107 |
+ eerror " - install app-crypt/tpm-emulator" |
108 |
+ eerror " - switch to a >=2.6.12 kernel and compile the kernel module" |
109 |
+ eerror |
110 |
+ fi |
111 |
+ |
112 |
+ # New user/group for the daemon |
113 |
+ enewgroup tss |
114 |
+ enewuser tss -1 -1 /var/lib/tpm tss |
115 |
+} |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ default |
119 |
+ eautoreconf |
120 |
+} |
121 |
+ |
122 |
+src_configure() { |
123 |
+ # econf --with-gui=$(usex gtk gtk openssl) |
124 |
+ econf --with-gui=openssl |
125 |
+} |
126 |
+ |
127 |
+src_install() { |
128 |
+ default |
129 |
+ keepdir /var/lib/tpm |
130 |
+ use doc && dodoc doc/* |
131 |
+ newinitd "${FILESDIR}"/tcsd.initd tcsd |
132 |
+ newconfd "${FILESDIR}"/tcsd.confd tcsd |
133 |
+ systemd_dounit "${FILESDIR}"/tcsd.service |
134 |
+ udev_dorules "${FILESDIR}"/61-trousers.rules |
135 |
+ fowners tss:tss /var/lib/tpm |
136 |
+ prune_libtool_files |
137 |
+ readme.gentoo_create_doc |
138 |
+} |