1 |
flameeyes 11/01/31 00:12:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opencryptoki-2.3.3-r3.ebuild |
5 |
Removed: opencryptoki-2.3.3-r2.ebuild |
6 |
Log: |
7 |
Remove compatibility symlink (we don't have software needing them in Portage), and move libopencryptoki to the linkers' search path instead of changing those paths. |
8 |
|
9 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.18 dev-libs/opencryptoki/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/ChangeLog?rev=1.18&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/ChangeLog?rev=1.18&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/ChangeLog?r1=1.17&r2=1.18 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v |
21 |
retrieving revision 1.17 |
22 |
retrieving revision 1.18 |
23 |
diff -u -r1.17 -r1.18 |
24 |
--- ChangeLog 21 Jan 2011 03:26:42 -0000 1.17 |
25 |
+++ ChangeLog 31 Jan 2011 00:12:52 -0000 1.18 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for dev-libs/opencryptoki |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v 1.17 2011/01/21 03:26:42 flameeyes Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v 1.18 2011/01/31 00:12:52 flameeyes Exp $ |
31 |
+ |
32 |
+*opencryptoki-2.3.3-r3 (31 Jan 2011) |
33 |
+ |
34 |
+ 31 Jan 2011; Diego E. Pettenò <flameeyes@g.o> |
35 |
+ -opencryptoki-2.3.3-r2.ebuild, +opencryptoki-2.3.3-r3.ebuild: |
36 |
+ Remove compatibility symlink (we don't have software needing them in |
37 |
+ Portage), and move libopencryptoki to the linkers' search path instead of |
38 |
+ changing those paths. |
39 |
|
40 |
21 Jan 2011; Diego E. Pettenò <flameeyes@g.o> |
41 |
-opencryptoki-2.3.2.ebuild, opencryptoki-2.3.3-r2.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 dev-libs/opencryptoki/opencryptoki-2.3.3-r3.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.3-r3.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.3-r3.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: opencryptoki-2.3.3-r3.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.3-r3.ebuild,v 1.1 2011/01/31 00:12:52 flameeyes Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
# backports are maintained as tags on Diego's repository on gitorious: |
59 |
# http://gitorious.org/~flameeyes/opencryptoki/flameeyess-opencryptoki |
60 |
BACKPORTS=3 |
61 |
|
62 |
inherit autotools eutils multilib flag-o-matic |
63 |
|
64 |
DESCRIPTION="PKCS#11 provider cryptographic hardware" |
65 |
HOMEPAGE="http://sourceforge.net/projects/opencryptoki" |
66 |
SRC_URI="mirror://sourceforge/opencryptoki/${P}.tar.bz2 |
67 |
${BACKPORTS:+ |
68 |
http://dev.gentoo.org/~flameeyes/${PN}/${P}-backports-${BACKPORTS}.tar.bz2}" |
69 |
|
70 |
# Upstream is looking into relicensing it into CPL-1.0 entirely; the CCA |
71 |
# token sources are under CPL-1.0 already. |
72 |
LICENSE="CPL-0.5" |
73 |
SLOT="0" |
74 |
KEYWORDS="~amd64 ~x86" |
75 |
|
76 |
RDEPEND="tpm? ( app-crypt/trousers ) |
77 |
dev-libs/openssl" |
78 |
DEPEND="${RDEPEND}" |
79 |
|
80 |
IUSE="+tpm debug" |
81 |
|
82 |
# tests right now basically don't exist; the only available thing would |
83 |
# test against an installed copy and would kill a running pcscd, all |
84 |
# things that we're not interested to. |
85 |
RESTRICT=test |
86 |
|
87 |
pkg_setup() { |
88 |
enewgroup pkcs11 |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
[[ -n ${BACKPORTS} ]] && \ |
93 |
EPATCH_MULTI_MSG="Applying backports patches #${BACKPORTS} ..." \ |
94 |
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ |
95 |
epatch |
96 |
|
97 |
eautoreconf |
98 |
} |
99 |
|
100 |
src_configure() { |
101 |
# package uses ${localstatedir}/lib as the default path, so if we |
102 |
# leave it to econf, it'll create /var/lib/lib. |
103 |
|
104 |
# Since upstream by default seem to enable any possible token, even |
105 |
# when they don't seem to be used, we limit ourselves to the |
106 |
# software emulation token (swtok) and if the user enabled the tpm |
107 |
# USE flag, tpmtok. The rest of the tokens seem to be hardware- or |
108 |
# software-dependent even when they build fine without their |
109 |
# requirements, but until somebody asks for those, I'd rather not |
110 |
# enable them. |
111 |
|
112 |
# We don't use --enable-debug because that tinkers with the CFLAGS |
113 |
# and we don't want that. Instead we append -DDEBUG which enables |
114 |
# debug information. |
115 |
use debug && append-flags -DDEBUG |
116 |
|
117 |
econf \ |
118 |
--localstatedir=/var \ |
119 |
--enable-fast-install \ |
120 |
--disable-dependency-tracking \ |
121 |
--disable-debug \ |
122 |
--enable-daemon \ |
123 |
--enable-library \ |
124 |
--disable-icatok \ |
125 |
--enable-swtok \ |
126 |
$(use_enable tpm tpmtok) \ |
127 |
--disable-aeptok \ |
128 |
--disable-bcomtok \ |
129 |
--disable-ccatok \ |
130 |
--disable-crtok \ |
131 |
--disable-icctok \ |
132 |
--disable-pkcscca_migrate |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
emake install DESTDIR="${D}" || die "emake install failed" |
137 |
|
138 |
# Install libopencryptoki in the standard directory for libraries. |
139 |
mv "${D}"/usr/$(get_libdir)/opencryptoki/libopencryptoki.so* "${D}"/usr/$(get_libdir) || die |
140 |
|
141 |
# Remove compatibility symlinks as we _never_ required those and |
142 |
# they seem unused even upstream. |
143 |
find "${D}" -name 'PKCS11_*' -delete |
144 |
|
145 |
# doesn't use libltdl; only dlopen()-based interfaces |
146 |
find "${D}" -name '*.la' -delete |
147 |
|
148 |
# We replace their ld.so and init files (mostly designed for RedHat |
149 |
# as far as I can tell) with our own replacements. |
150 |
rm -rf "${D}"/etc/ld.so.conf.d "${D}"/etc/rc.d |
151 |
|
152 |
# make sure that we don't modify the init script if the USE flags |
153 |
# are enabled for the needed services. |
154 |
sed \ |
155 |
-e "$(use tpm && echo 'p' || echo '/use tcsd/d')" \ |
156 |
"${FILESDIR}/pkcsslotd.init.2" \ |
157 |
> "${T}"/pkcsslotd.init || die |
158 |
|
159 |
newinitd "${T}/pkcsslotd.init" pkcsslotd |
160 |
|
161 |
dodoc README AUTHORS FAQ TODO doc/openCryptoki-HOWTO.pdf || die |
162 |
} |