1 |
flameeyes 10/12/01 03:25:12 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: opencryptoki-2.3.2.ebuild |
5 |
Removed: opencryptoki-2.2.8.ebuild |
6 |
opencryptoki-2.2.4.1.ebuild |
7 |
Log: |
8 |
Version bump, rewrite ebuild to actually make sense and work, with the help of the one to be found in chromiumos-overlay. Many thanks to Nathan Williams and Chris Masone for their fixes and the patches. Drop all the previous ebuilds and the previous init script as they are totally broken by design. |
9 |
|
10 |
(Portage version: 2.2.0_alpha6/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.8 dev-libs/opencryptoki/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/ChangeLog?rev=1.8&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/ChangeLog?rev=1.8&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/ChangeLog?r1=1.7&r2=1.8 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v |
22 |
retrieving revision 1.7 |
23 |
retrieving revision 1.8 |
24 |
diff -u -r1.7 -r1.8 |
25 |
--- ChangeLog 28 Jun 2009 10:48:58 -0000 1.7 |
26 |
+++ ChangeLog 1 Dec 2010 03:25:11 -0000 1.8 |
27 |
@@ -1,6 +1,20 @@ |
28 |
# ChangeLog for dev-libs/opencryptoki |
29 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v 1.7 2009/06/28 10:48:58 arfrever Exp $ |
31 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
32 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v 1.8 2010/12/01 03:25:11 flameeyes Exp $ |
33 |
+ |
34 |
+*opencryptoki-2.3.2 (01 Dec 2010) |
35 |
+ |
36 |
+ 01 Dec 2010; Diego E. Pettenò <flameeyes@g.o> |
37 |
+ -opencryptoki-2.2.4.1.ebuild, -opencryptoki-2.2.8.ebuild, |
38 |
+ +files/opencryptoki-2.2.8-remove_openlog.patch, |
39 |
+ +files/opencryptoki-2.2.8-remove_recursive_chmod.patch, |
40 |
+ +files/opencryptoki-2.2.8-steal_shmem.patch, +opencryptoki-2.3.2.ebuild, |
41 |
+ +files/opencryptoki-2.3.2-build.patch, +files/pkcsslotd.init.2, |
42 |
+ -files/pkcsslotd.init, metadata.xml: |
43 |
+ Version bump, rewrite ebuild to actually make sense and work, with the help |
44 |
+ of the one to be found in chromiumos-overlay. Many thanks to Nathan Williams |
45 |
+ and Chris Masone for their fixes and the patches. Drop all the previous |
46 |
+ ebuilds and the previous init script as they are totally broken by design. |
47 |
|
48 |
*opencryptoki-2.2.8 (28 Jun 2009) |
49 |
|
50 |
|
51 |
|
52 |
|
53 |
1.4 dev-libs/opencryptoki/metadata.xml |
54 |
|
55 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/metadata.xml?rev=1.4&view=markup |
56 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/metadata.xml?rev=1.4&content-type=text/plain |
57 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/metadata.xml?r1=1.3&r2=1.4 |
58 |
|
59 |
Index: metadata.xml |
60 |
=================================================================== |
61 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/metadata.xml,v |
62 |
retrieving revision 1.3 |
63 |
retrieving revision 1.4 |
64 |
diff -u -r1.3 -r1.4 |
65 |
--- metadata.xml 6 Aug 2008 10:50:58 -0000 1.3 |
66 |
+++ metadata.xml 1 Dec 2010 03:25:11 -0000 1.4 |
67 |
@@ -1,11 +1,10 @@ |
68 |
<?xml version="1.0" encoding="UTF-8"?> |
69 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
70 |
<pkgmetadata> |
71 |
-<herd>crypto</herd> |
72 |
-<longdescription> |
73 |
- PKCS#11 provider for IBM cryptographic hardware. |
74 |
-</longdescription> |
75 |
-<use> |
76 |
- <flag name='tpmtok'>Offer support for TPM token</flag> |
77 |
-</use> |
78 |
+ <herd>crypto</herd> |
79 |
+ <use> |
80 |
+ <flag name='tpm'> |
81 |
+ Enable support for Trusted Platform Module (TPM) using <pkg>app-crypt/trousers</pkg> |
82 |
+ </flag> |
83 |
+ </use> |
84 |
</pkgmetadata> |
85 |
|
86 |
|
87 |
|
88 |
1.1 dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild |
89 |
|
90 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild?rev=1.1&view=markup |
91 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild?rev=1.1&content-type=text/plain |
92 |
|
93 |
Index: opencryptoki-2.3.2.ebuild |
94 |
=================================================================== |
95 |
# Copyright 1999-2010 Gentoo Foundation |
96 |
# Distributed under the terms of the GNU General Public License v2 |
97 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild,v 1.1 2010/12/01 03:25:11 flameeyes Exp $ |
98 |
|
99 |
EAPI="2" |
100 |
|
101 |
inherit autotools eutils multilib |
102 |
|
103 |
DESCRIPTION="PKCS#11 provider for IBM cryptographic hardware" |
104 |
HOMEPAGE="http://sourceforge.net/projects/opencryptoki" |
105 |
SRC_URI="mirror://sourceforge/opencryptoki/${P}.tar.bz2 |
106 |
mirror://gentoo/opencryptoki-tpm_stdll-sw_fallback-June012006.patch.bz2" |
107 |
|
108 |
LICENSE="CPL-0.5" |
109 |
SLOT="0" |
110 |
KEYWORDS="~amd64 ~x86" |
111 |
|
112 |
RDEPEND="tpm? ( app-crypt/trousers ) |
113 |
dev-libs/openssl" |
114 |
DEPEND="${RDEPEND}" |
115 |
|
116 |
IUSE="+tpm debug" |
117 |
|
118 |
pkg_setup() { |
119 |
enewgroup pkcs11 |
120 |
} |
121 |
|
122 |
src_prepare() { |
123 |
# Enable fallback operation mode for imported keys. |
124 |
# Patch written by Kent Yoder. |
125 |
epatch "${WORKDIR}/opencryptoki-tpm_stdll-sw_fallback-June012006.patch" |
126 |
epatch "${FILESDIR}/opencryptoki-2.2.4.1-tpm_util.c.patch" |
127 |
epatch "${FILESDIR}/opencryptoki-2.2.8-steal_shmem.patch" |
128 |
epatch "${FILESDIR}/opencryptoki-2.2.8-remove_openlog.patch" |
129 |
epatch "${FILESDIR}/opencryptoki-2.2.8-remove_recursive_chmod.patch" |
130 |
epatch "${FILESDIR}/opencryptoki-2.3.2-build.patch" |
131 |
eautoreconf |
132 |
} |
133 |
|
134 |
src_configure() { |
135 |
econf \ |
136 |
--enable-fast-install \ |
137 |
--disable-dependency-tracking \ |
138 |
$(use_enable debug) \ |
139 |
--enable-daemon \ |
140 |
--enable-library \ |
141 |
--disable-icatok \ |
142 |
--enable-swtok \ |
143 |
$(use_enable tpm tpmtok) \ |
144 |
--disable-icctok \ |
145 |
--disable-aeptok \ |
146 |
--disable-bcomtok \ |
147 |
--disable-crtok \ |
148 |
--disable-pkcscca_migrate |
149 |
} |
150 |
|
151 |
src_install() { |
152 |
emake install DESTDIR="${D}" || die "emake install failed" |
153 |
|
154 |
# We replace their ld.so and init files (mostly designed for RedHat |
155 |
# as far as I can tell) with our own replacements. |
156 |
rm -rf "${D}"/etc/ld.so.conf.d "${D}"/etc/rc.d |
157 |
|
158 |
# make sure that we don't modify the init script if the USE flags |
159 |
# are enabled for the needed services. |
160 |
sed -n \ |
161 |
$(use tpm || echo '-e /need tcsd/d') \ |
162 |
-e 'p' \ |
163 |
"${FILESDIR}/pkcsslotd.init.2" \ |
164 |
> "${T}"/pkcsslotd.init || die |
165 |
|
166 |
newinitd "${T}/pkcsslotd.init" pkcsslotd |
167 |
|
168 |
dodir /etc/env.d |
169 |
cat - > "${D}"/etc/env.d/50${PN} <<EOF |
170 |
LDPATH=/usr/$(get_libdir)/opencryptoki:/usr/$(get_libdir)/opencryptoki/stdll |
171 |
EOF |
172 |
|
173 |
dodoc README AUTHORS FAQ TODO doc/openCryptoki-HOWTO.pdf || die |
174 |
} |