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