1 |
arfrever 11/02/23 14:50:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pam_pkcs11-0.6.6.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.19 sys-auth/pam_pkcs11/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pam_pkcs11/ChangeLog?rev=1.19&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pam_pkcs11/ChangeLog?rev=1.19&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pam_pkcs11/ChangeLog?r1=1.18&r2=1.19 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-auth/pam_pkcs11/ChangeLog,v |
20 |
retrieving revision 1.18 |
21 |
retrieving revision 1.19 |
22 |
diff -u -r1.18 -r1.19 |
23 |
--- ChangeLog 30 Oct 2010 16:22:53 -0000 1.18 |
24 |
+++ ChangeLog 23 Feb 2011 14:50:44 -0000 1.19 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-auth/pam_pkcs11 |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_pkcs11/ChangeLog,v 1.18 2010/10/30 16:22:53 flameeyes Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_pkcs11/ChangeLog,v 1.19 2011/02/23 14:50:44 arfrever Exp $ |
31 |
+ |
32 |
+*pam_pkcs11-0.6.6 (23 Feb 2011) |
33 |
+ |
34 |
+ 23 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
35 |
+ +pam_pkcs11-0.6.6.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
*pam_pkcs11-0.6.5-r1 (30 Oct 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-auth/pam_pkcs11/pam_pkcs11-0.6.6.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pam_pkcs11/pam_pkcs11-0.6.6.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pam_pkcs11/pam_pkcs11-0.6.6.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: pam_pkcs11-0.6.6.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_pkcs11/pam_pkcs11-0.6.6.ebuild,v 1.1 2011/02/23 14:50:44 arfrever Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
inherit multilib pam |
57 |
|
58 |
DESCRIPTION="PKCS#11 PAM library" |
59 |
HOMEPAGE="http://www.opensc-project.org/pam_pkcs11" |
60 |
SRC_URI="http://www.opensc-project.org/files/pam_pkcs11/${P}.tar.gz" |
61 |
|
62 |
LICENSE="LGPL-2.1" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
65 |
IUSE="curl ldap nss +pcsc-lite" |
66 |
|
67 |
RDEPEND="dev-libs/opensc |
68 |
sys-libs/pam |
69 |
curl? ( net-misc/curl ) |
70 |
ldap? ( net-nds/openldap ) |
71 |
nss? ( |
72 |
dev-libs/nss |
73 |
curl? ( || ( net-misc/curl[-ssl] net-misc/curl[ssl,nss,-gnutls] ) ) |
74 |
) |
75 |
!nss? ( |
76 |
dev-libs/openssl |
77 |
curl? ( || ( net-misc/curl[-ssl] net-misc/curl[ssl,-nss,-gnutls] ) ) |
78 |
) |
79 |
pcsc-lite? ( sys-apps/pcsc-lite )" |
80 |
DEPEND="${RDEPEND} |
81 |
dev-util/pkgconfig" |
82 |
|
83 |
src_prepare() { |
84 |
# Fix the example files to be somewhat decent, and usable as |
85 |
# default configuration |
86 |
sed -i \ |
87 |
-e '/try_first_pass/s:false:true:' \ |
88 |
-e '/debug =/s:true:false:' \ |
89 |
-e 's:\(/usr\|\${exec_prefix}\)/lib/:/usr/'$(get_libdir)/':g' \ |
90 |
etc/pam_pkcs11.conf.example.in \ |
91 |
etc/pkcs11_eventmgr.conf.example || die "sed failed" |
92 |
} |
93 |
|
94 |
src_configure() { |
95 |
econf \ |
96 |
$(use_with curl) \ |
97 |
$(use_with pcsc-lite pcsclite) \ |
98 |
$(use_with ldap) \ |
99 |
$(use_with nss) \ |
100 |
--docdir=/usr/share/doc/${PF} |
101 |
} |
102 |
|
103 |
src_install() { |
104 |
emake DESTDIR="${D}" pamdir="$(getpam_mod_dir)" install || die "emake install failed" |
105 |
|
106 |
# These are all dlopened plugins, so .la files are useless. |
107 |
find "${D}" -name '*.la' -delete || die |
108 |
|
109 |
dodoc AUTHORS ChangeLog ChangeLog.svn NEWS README TODO || die |
110 |
|
111 |
# Provide some basic configuration |
112 |
keepdir /etc/pam_pkcs11{,/{cacerts,crl}} |
113 |
|
114 |
insinto /etc/pam_pkcs11 |
115 |
newins etc/pam_pkcs11.conf.example pam_pkcs11.conf || die |
116 |
newins etc/pkcs11_eventmgr.conf.example pkcs11_eventmgr.conf || die |
117 |
} |
118 |
|
119 |
pkg_config() { |
120 |
local dir |
121 |
for dir in "${EROOT}"etc/${PN}/{cacerts,crl}; do |
122 |
pushd "${dir}" > /dev/null |
123 |
ebegin "Creating hash links in '${dir}'" |
124 |
"${EROOT}usr/bin/pkcs11_make_hash_link" || die |
125 |
eend $? |
126 |
popd > /dev/null |
127 |
done |
128 |
} |
129 |
|
130 |
pkg_postinst() { |
131 |
elog "You probably want to configure the '${EROOT}etc/${PN}/${PN}.conf' file with" |
132 |
elog "the settings for your pkcs11 provider." |
133 |
elog |
134 |
elog "You might also want to set up '${EROOT}etc/${PN}/pkcs11_eventmgr.conf' with" |
135 |
elog "the settings for the event manager, and start it up at user login." |
136 |
} |
137 |
|
138 |
# TODO list! |
139 |
# |
140 |
# - we need to find a way allow the user to choose whether to start the |
141 |
# event manager at _all_ the logins, and if that's the case, lock all |
142 |
# kind of sessions (terminal _and_ X); |
143 |
# - upstream should probably migrate the configuration of the event |
144 |
# manager on a per-user basis, since it makes little sense to be _all_ |
145 |
# system-level configuration; |
146 |
# - we should probably provide some better config support that ensures |
147 |
# the configuration to be valid, as well as creating the symlinks; |
148 |
# - we should probably add support for nss; |
149 |
# - we should move the configuration in /etc/security as for the rest |
150 |
# of PAM-related configuration. |