1 |
commit: f1462b3a2246f5c69a96578f8fdcafa5b1c96b97 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 14:56:15 2016 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 14:56:15 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1462b3a |
7 |
|
8 |
sys-auth/skey: Fix build with musl libc. |
9 |
|
10 |
Bug: 597646 |
11 |
|
12 |
Package-Manager: portage-2.3.2 |
13 |
|
14 |
sys-auth/skey/Manifest | 1 + |
15 |
sys-auth/skey/skey-1.1.5-r11.ebuild | 83 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 84 insertions(+) |
17 |
|
18 |
diff --git a/sys-auth/skey/Manifest b/sys-auth/skey/Manifest |
19 |
index 7e0a61c..3e27c3e 100644 |
20 |
--- a/sys-auth/skey/Manifest |
21 |
+++ b/sys-auth/skey/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST skey-1.1.5-patches-5.tar.xz 33972 SHA256 845c9c71b8d69bf20854412536e736a7e6a6d07ea6abbc02ed10229207e4582e SHA512 5be8cb520311799f4ee105d4e6ec6bf2a9e76a1e49df632cf85b7e9e1126ff876551231b06d26911ca36b834b48ebdd1a9e3f1f889df3d1cee4989ed24c0a7fd WHIRLPOOL f78f30c7882d4c18a0d44139ca107413eb1d6db9f82fb1b570c535c28225dc4b5ed7450be17e9b23a4efa851ccc1d3f5bc19f7d5288eb75bb11ba2db2f0ec1ae |
24 |
+DIST skey-1.1.5-patches-6.tar.xz 34108 SHA256 b63423380c3c60b95f213187aa2522b49da1b8227cde2decc405caa126fef05e SHA512 2c807675cdd6b800f03427d79d616f59ac9d4d438221913328ec92e5dd13af185f74a24e17d36af8d49a51c4ecc5b24ef198489acce416d829e8aacf5d3c208a WHIRLPOOL 8841611ff50aa8509b1d94665f87d9f0888d39958a5385e8fb5b044228bcc251565449629588d92531771d910e48b7a0ce6998f86a131a145ed5c288fc828133 |
25 |
DIST skey-1.1.5.tar.bz2 61911 SHA256 e21bcb7c618c0bc87a72d8f0f097d7517fffa4e881a0f295ee1ce2a7dccf4aef SHA512 4cbddc7e31134d5e23801a9b07de0d05c8357aaa8dddfb8426fceead3f54e539f77204f78a08b2a93890ef2f4f807a2208080f58f80818afa1b8cd4884b1fb37 WHIRLPOOL abf141fd679deeaee3f3883cd3076620c84e8775ecacc8f87d561c1812beae55299989f37ec331633bac29e25b4b8d145dc590ef119c73a137d8790815bb13f2 |
26 |
|
27 |
diff --git a/sys-auth/skey/skey-1.1.5-r11.ebuild b/sys-auth/skey/skey-1.1.5-r11.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..9dfc00e |
30 |
--- /dev/null |
31 |
+++ b/sys-auth/skey/skey-1.1.5-r11.ebuild |
32 |
@@ -0,0 +1,83 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+inherit toolchain-funcs readme.gentoo-r1 |
40 |
+ |
41 |
+DESCRIPTION="Linux Port of OpenBSD Single-key Password System" |
42 |
+HOMEPAGE="http://www.openbsd.org/faq/faq8.html#SKey" |
43 |
+SRC_URI="mirror://gentoo/${P}.tar.bz2 |
44 |
+ https://dev.gentoo.org/~ulm/distfiles/${P}-patches-6.tar.xz" |
45 |
+ |
46 |
+LICENSE="BSD MIT RSA BEER-WARE" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
49 |
+IUSE="static-libs" |
50 |
+ |
51 |
+DEPEND="dev-lang/perl |
52 |
+ app-arch/xz-utils" |
53 |
+RDEPEND="dev-lang/perl |
54 |
+ virtual/perl-Time-Local |
55 |
+ sys-libs/cracklib" |
56 |
+ |
57 |
+PATCHES="../patch" |
58 |
+ |
59 |
+src_configure() { |
60 |
+ tc-export CC |
61 |
+ econf --sysconfdir=/etc/skey |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ into / |
66 |
+ dolib.so libskey.so{.${PV},.${PV%.*},.${PV%%.*},} |
67 |
+ |
68 |
+ into /usr |
69 |
+ dobin skey skeyinit skeyinfo |
70 |
+ newbin skeyaudit.sh skeyaudit |
71 |
+ newsbin skeyprune.pl skeyprune |
72 |
+ |
73 |
+ dosym skey /usr/bin/otp-md4 |
74 |
+ dosym skey /usr/bin/otp-md5 |
75 |
+ dosym skey /usr/bin/otp-sha1 |
76 |
+ |
77 |
+ if use static-libs; then |
78 |
+ dolib.a libskey.a |
79 |
+ gen_usr_ldscript libskey.so |
80 |
+ fi |
81 |
+ |
82 |
+ doman skey.1 skeyaudit.1 skeyinfo.1 skeyinit.1 skey.3 skeyprune.8 |
83 |
+ |
84 |
+ insinto /usr/include |
85 |
+ doins skey.h |
86 |
+ |
87 |
+ keepdir /etc/skey |
88 |
+ |
89 |
+ # only root needs to have access to these files. |
90 |
+ fperms go-rx /etc/skey |
91 |
+ |
92 |
+ # skeyinit and skeyinfo must be suid root so users |
93 |
+ # can generate their passwords. |
94 |
+ fperms u+s,go-r /usr/bin/skeyinit /usr/bin/skeyinfo |
95 |
+ |
96 |
+ dodoc README CHANGES |
97 |
+ |
98 |
+ DOC_CONTENTS="For an introduction into using s/key authentication, |
99 |
+ take a look at the EXAMPLES section from the skey(1) manpage." |
100 |
+ readme.gentoo_create_doc |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ # do not include /etc/skey/skeykeys in the package, as quickpkg |
105 |
+ # may package sensitive information. |
106 |
+ # This also fixes the etc-update issue with #64974. |
107 |
+ |
108 |
+ # skeyinit will not function if this file is not present. |
109 |
+ touch /etc/skey/skeykeys |
110 |
+ |
111 |
+ # these permissions are applied by the skey system if missing. |
112 |
+ chmod 0600 /etc/skey/skeykeys |
113 |
+ |
114 |
+ readme.gentoo_print_elog |
115 |
+} |