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