1 |
commit: 21ff64337604ae54bea422b0b55659a832948c37 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 24 20:26:57 2017 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 24 20:29:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21ff6433 |
7 |
|
8 |
sys-auth/pam_pkcs11: version bump |
9 |
|
10 |
Bug: 605128 |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
sys-auth/pam_pkcs11/Manifest | 1 + |
15 |
sys-auth/pam_pkcs11/pam_pkcs11-0.6.9.ebuild | 110 ++++++++++++++++++++++++++++ |
16 |
2 files changed, 111 insertions(+) |
17 |
|
18 |
diff --git a/sys-auth/pam_pkcs11/Manifest b/sys-auth/pam_pkcs11/Manifest |
19 |
index 092c4bc..cc3d9cc 100644 |
20 |
--- a/sys-auth/pam_pkcs11/Manifest |
21 |
+++ b/sys-auth/pam_pkcs11/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST pam_pkcs11-0.6.8.tar.gz 1147059 SHA256 9d942e542ef35d0e1f990d9ff5bf9df0af84c828ed081add2eb1b4d84f0efbda SHA512 6759ddb27eecb9e4dfbaf5423fcbeeb03b1ae2200b772e32b105d12845c202e461088f70c71712f13e7150ff03f7714d1225a1e62ced005ca1a36872622d72ac WHIRLPOOL 175ef94f6d80abc1ef374d39835dab0ce6e10f062650540880d9a98b7899c87cdd1066f1abed6c9310ec9b6dba19cae9267674274b2a3ebe4a003ccc2f6a1b5d |
24 |
+DIST pam_pkcs11-0.6.9.tar.gz 1358280 SHA256 b27e8ba40ffc5b847abf95d2e636ed58640f068398a233f27e211363c20eba91 SHA512 954c37b9aa93d007ca3c0c49790bf6840d3b902b5dacda485c9020f4362db4a5a41670ad95f672757f3a7e60fe430765023f1a57e9a79260c052c45854d5ba51 WHIRLPOOL fcca466565978701e128396f69de6ce1e9b8a3c0771865a71e22f0e23c1641c1ffe7d6e36435bbf93b11fb4e34ecab71e580685e1d481f7df0bfd5b5b52c37b6 |
25 |
|
26 |
diff --git a/sys-auth/pam_pkcs11/pam_pkcs11-0.6.9.ebuild b/sys-auth/pam_pkcs11/pam_pkcs11-0.6.9.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..11645b7 |
29 |
--- /dev/null |
30 |
+++ b/sys-auth/pam_pkcs11/pam_pkcs11-0.6.9.ebuild |
31 |
@@ -0,0 +1,110 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit pam eutils |
39 |
+ |
40 |
+DESCRIPTION="PKCS#11 PAM library" |
41 |
+HOMEPAGE="https://github.com/opensc/pam_pkcs11/wiki" |
42 |
+SRC_URI="mirror://sourceforge/opensc/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
47 |
+IUSE="curl doc ldap nss +pcsc-lite" |
48 |
+ |
49 |
+RDEPEND="sys-libs/pam |
50 |
+ curl? ( net-misc/curl ) |
51 |
+ ldap? ( net-nds/openldap ) |
52 |
+ nss? ( |
53 |
+ dev-libs/nss |
54 |
+ curl? ( || ( net-misc/curl[-ssl] net-misc/curl[ssl,curl_ssl_nss] ) ) |
55 |
+ ) |
56 |
+ !nss? ( |
57 |
+ dev-libs/openssl:= |
58 |
+ curl? ( || ( net-misc/curl[-ssl] net-misc/curl[ssl,-curl_ssl_nss] ) ) |
59 |
+ ) |
60 |
+ pcsc-lite? ( sys-apps/pcsc-lite )" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ virtual/pkgconfig |
63 |
+ doc? ( dev-libs/libxslt )" |
64 |
+ |
65 |
+DOCS=( |
66 |
+ AUTHORS ChangeLog NEWS README TODO |
67 |
+) |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ # Fix the example files to be somewhat decent, and usable as |
72 |
+ # default configuration |
73 |
+ sed -i \ |
74 |
+ -e '/try_first_pass/s:false:true:' \ |
75 |
+ -e '/debug =/s:true:false:' \ |
76 |
+ -e 's:\(/usr\|\${exec_prefix}\)/lib/:/usr/'$(get_libdir)/':g' \ |
77 |
+ etc/pam_pkcs11.conf.example.in \ |
78 |
+ etc/pkcs11_eventmgr.conf.example || die "sed failed" |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf \ |
83 |
+ $(use_with curl) \ |
84 |
+ $(use_with doc docbook) \ |
85 |
+ $(use_with pcsc-lite pcsclite) \ |
86 |
+ $(use_with ldap) \ |
87 |
+ $(use_with nss) |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ emake DESTDIR="${ED}" pamdir="$(getpam_mod_dir)" install |
92 |
+ einstalldocs |
93 |
+ prune_libtool_files --modules |
94 |
+ |
95 |
+ dodoc doc/README.* |
96 |
+ use doc && dodoc doc/api/* |
97 |
+ |
98 |
+ # Provide some basic configuration |
99 |
+ keepdir /etc/pam_pkcs11{,/{cacerts,crl}} |
100 |
+ |
101 |
+ insinto /etc/pam_pkcs11 |
102 |
+ newins etc/pam_pkcs11.conf.example pam_pkcs11.conf |
103 |
+ newins etc/pkcs11_eventmgr.conf.example pkcs11_eventmgr.conf |
104 |
+} |
105 |
+ |
106 |
+pkg_config() { |
107 |
+ local dir |
108 |
+ for dir in "${EROOT}"etc/${PN}/{cacerts,crl}; do |
109 |
+ pushd "${dir}" > /dev/null |
110 |
+ ebegin "Creating hash links in '${dir}'" |
111 |
+ "${EROOT}usr/bin/pkcs11_make_hash_link" || die |
112 |
+ eend $? |
113 |
+ popd > /dev/null |
114 |
+ done |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ elog "For ${PN} to work you need a PKCS#11 provider, such as one of:" |
119 |
+ elog " - dev-libs/opensc" |
120 |
+ elog " - dev-libs/opencryptoki" |
121 |
+ elog "" |
122 |
+ elog "You probably want to configure the '${EROOT}etc/${PN}/${PN}.conf' file with" |
123 |
+ elog "the settings for your pkcs11 provider." |
124 |
+ elog "" |
125 |
+ elog "You might also want to set up '${EROOT}etc/${PN}/pkcs11_eventmgr.conf' with" |
126 |
+ elog "the settings for the event manager, and start it up at user login." |
127 |
+} |
128 |
+ |
129 |
+# TODO list! |
130 |
+# |
131 |
+# - we need to find a way allow the user to choose whether to start the |
132 |
+# event manager at _all_ the logins, and if that's the case, lock all |
133 |
+# kind of sessions (terminal _and_ X); |
134 |
+# - upstream should probably migrate the configuration of the event |
135 |
+# manager on a per-user basis, since it makes little sense to be _all_ |
136 |
+# system-level configuration; |
137 |
+# - we should probably provide some better config support that ensures |
138 |
+# the configuration to be valid, as well as creating the symlinks; |
139 |
+# - we should probably add support for nss; |
140 |
+# - we should move the configuration in /etc/security as for the rest |
141 |
+# of PAM-related configuration. |