Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/trousers: trousers-0.3.10-r1.ebuild ChangeLog
Date: Sat, 24 May 2014 09:55:25
Message-Id: 20140524095521.8E69C2004E@flycatcher.gentoo.org
1 pacho 14/05/24 09:55:21
2
3 Modified: ChangeLog
4 Added: trousers-0.3.10-r1.ebuild
5 Log:
6 Add unit file (#510822 by Salah Coronya), fix license (#425894 by Ian Stakenvicius), use readme.gentoo.eclass.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.45 app-crypt/trousers/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/trousers/ChangeLog?rev=1.45&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/trousers/ChangeLog?rev=1.45&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/trousers/ChangeLog?r1=1.44&r2=1.45
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v
20 retrieving revision 1.44
21 retrieving revision 1.45
22 diff -u -r1.44 -r1.45
23 --- ChangeLog 9 Jun 2013 22:55:23 -0000 1.44
24 +++ ChangeLog 24 May 2014 09:55:21 -0000 1.45
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-crypt/trousers
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v 1.44 2013/06/09 22:55:23 vapier Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v 1.45 2014/05/24 09:55:21 pacho Exp $
31 +
32 +*trousers-0.3.10-r1 (24 May 2014)
33 +
34 + 24 May 2014; Pacho Ramos <pacho@g.o> +files/tcsd.service,
35 + +trousers-0.3.10-r1.ebuild:
36 + Add unit file (#510822 by Salah Coronya), fix license (#425894 by Ian
37 + Stakenvicius), use readme.gentoo.eclass.
38
39 09 Jun 2013; Mike Frysinger <vapier@g.o> metadata.xml:
40 Add upstream CPE tag (security info) from ChromiumOS.
41
42
43
44 1.1 app-crypt/trousers/trousers-0.3.10-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/trousers/trousers-0.3.10-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/trousers/trousers-0.3.10-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: trousers-0.3.10-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/trousers-0.3.10-r1.ebuild,v 1.1 2014/05/24 09:55:21 pacho Exp $
54
55 EAPI=5
56
57 inherit autotools eutils linux-info readme.gentoo systemd user udev
58
59 #MY_P="${PN}-${PV%.*}-${PV##*.}"
60
61 DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation"
62 HOMEPAGE="http://trousers.sf.net"
63 SRC_URI="mirror://sourceforge/trousers/${P}.tar.gz"
64 LICENSE="CPL-1.0 GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~x86"
67 IUSE="doc" # gtk
68
69 # gtk support presently does NOT compile.
70 # gtk? ( >=x11-libs/gtk+-2 )
71
72 RDEPEND=">=dev-libs/glib-2
73 >=dev-libs/openssl-0.9.7:0"
74 DEPEND="${RDEPEND}
75 virtual/pkgconfig"
76
77 # S="${WORKDIR}/${P}git"
78
79 DOCS="AUTHORS ChangeLog NICETOHAVES README TODO"
80
81 DOC_CONTENTS="
82 If you have problems starting tcsd, please check permissions and
83 ownership on /dev/tpm* and ~tss/system.data
84 "
85
86 pkg_setup() {
87 # Check for driver (not sure it can be an rdep, because ot depends on the
88 # version of virtual/linux-sources... Is that supported by portage?)
89 linux-info_pkg_setup
90 local tpm_kernel_version tpm_kernel_present tpm_module
91 kernel_is ge 2 6 12 && tpm_kernel_version="yes"
92 if linux_config_exists; then
93 linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes"
94 else
95 ewarn "No kernel configuration could be found."
96 fi
97 has_version app-crypt/tpm-emulator && tpm_module="yes"
98 if [[ -n "${tpm_kernel_present}" ]]; then
99 einfo "Good, you seem to have in-kernel TPM support."
100 elif [[ -n "${tpm_module}" ]]; then
101 einfo "Good, you seem to have TPM support with the external module."
102 if [[ -n "${tpm_kernel_version}" ]]; then
103 elog
104 elog "Note that since you have a >=2.6.12 kernel, you could use"
105 elog "the in-kernel driver instead of (CONFIG_TCG_TPM)."
106 fi
107 elif [[ -n "${tpm_kernel_version}" ]]; then
108 eerror
109 eerror "To use this package, you will have to activate TPM support"
110 eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM,"
111 eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)."
112 eerror
113 else
114 eerror
115 eerror "To use this package, you should install a TPM driver."
116 eerror "You can have the following options:"
117 eerror " - install app-crypt/tpm-emulator"
118 eerror " - switch to a >=2.6.12 kernel and compile the kernel module"
119 eerror
120 fi
121
122 # New user/group for the daemon
123 enewgroup tss
124 enewuser tss -1 -1 /var/lib/tpm tss
125 }
126
127 src_prepare() {
128 epatch "${FILESDIR}"/${PN}-0.3.5-nouseradd.patch
129
130 sed -i -r \
131 -e '/CFLAGS/s/ -(Werror|m64)//' \
132 configure.in || die
133 eautoreconf
134 }
135
136 src_configure() {
137 # econf --with-gui=$(usex gtk gtk openssl)
138 econf --with-gui=openssl
139 }
140
141 src_install() {
142 keepdir /var/lib/tpm
143 default
144 use doc && dodoc doc/*
145 newinitd "${FILESDIR}"/tcsd.initd tcsd
146 newconfd "${FILESDIR}"/tcsd.confd tcsd
147 systemd_dounit "${FILESDIR}"/tcsd.service
148 udev_dorules "${FILESDIR}"/61-trousers.rules
149 fowners tss:tss /var/lib/tpm
150 prune_libtool_files
151 readme.gentoo_create_doc
152 }