Gentoo Archives: gentoo-commits

From: "Mike Auty (ikelos)" <ikelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/trousers: ChangeLog trousers-0.3.2.1-r1.ebuild
Date: Sun, 06 Sep 2009 22:50:31
Message-Id: E1MkQZ3-00033r-LF@stork.gentoo.org
1 ikelos 09/09/06 22:50:29
2
3 Modified: ChangeLog
4 Added: trousers-0.3.2.1-r1.ebuild
5 Log:
6 Add in kernel config existence checks (bug 283320).
7 (Portage version: 2.2_rc40/cvs/Linux i686)
8
9 Revision Changes Path
10 1.24 app-crypt/trousers/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/trousers/ChangeLog?rev=1.24&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/trousers/ChangeLog?rev=1.24&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/trousers/ChangeLog?r1=1.23&r2=1.24
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v
19 retrieving revision 1.23
20 retrieving revision 1.24
21 diff -u -r1.23 -r1.24
22 --- ChangeLog 6 Sep 2009 00:12:01 -0000 1.23
23 +++ ChangeLog 6 Sep 2009 22:50:29 -0000 1.24
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-crypt/trousers
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v 1.23 2009/09/06 00:12:01 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v 1.24 2009/09/06 22:50:29 ikelos Exp $
29 +
30 +*trousers-0.3.2.1-r1 (06 Sep 2009)
31 +
32 + 06 Sep 2009; Mike Auty <ikelos@g.o> +trousers-0.3.2.1-r1.ebuild:
33 + Add in kernel config existence checks (bug 283320).
34
35 *trousers-0.3.2.1 (06 Sep 2009)
36
37
38
39
40 1.1 app-crypt/trousers/trousers-0.3.2.1-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/trousers/trousers-0.3.2.1-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/trousers/trousers-0.3.2.1-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: trousers-0.3.2.1-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/trousers-0.3.2.1-r1.ebuild,v 1.1 2009/09/06 22:50:29 ikelos Exp $
50
51 EAPI="2"
52
53 inherit autotools base eutils linux-info
54
55 MY_P="${PN}-${PV%.*}-${PV##*.}"
56
57 DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation"
58 HOMEPAGE="http://trousers.sf.net"
59 SRC_URI="mirror://sourceforge/trousers/${MY_P}.tar.gz"
60 LICENSE="CPL-1.0"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="doc"
64
65 RDEPEND=">=dev-libs/glib-2
66 >=x11-libs/gtk+-2
67 >=dev-libs/openssl-0.9.7"
68
69 DEPEND="${RDEPEND}
70 dev-util/pkgconfig"
71
72 S="${WORKDIR}/${MY_P}"
73
74 PATCHES=( "${FILESDIR}/${PN}-0.2.3-nouseradd.patch" )
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 base_src_prepare
119
120 sed -e "s/-Werror //" -i configure.in
121 eautoreconf
122 }
123
124 src_install() {
125 keepdir /var/lib/tpm
126 make DESTDIR="${D}" install || die
127 dodoc AUTHORS ChangeLog NICETOHAVES README TODO
128 use doc && dodoc doc/*
129 newinitd "${FILESDIR}/tcsd.initd" tcsd
130 newconfd "${FILESDIR}/tcsd.confd" tcsd
131 }
132
133 pkg_postinst() {
134 elog "If you have problems starting tcsd, please check permissions and"
135 elog "ownership on /dev/tpm* and ~tss/system.data"
136 }