public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/skey/
Date: Sat, 29 Oct 2016 14:56:41 +0000 (UTC)	[thread overview]
Message-ID: <1477752975.f1462b3a2246f5c69a96578f8fdcafa5b1c96b97.ulm@gentoo> (raw)

commit:     f1462b3a2246f5c69a96578f8fdcafa5b1c96b97
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 29 14:56:15 2016 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Oct 29 14:56:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1462b3a

sys-auth/skey: Fix build with musl libc.

Bug: 597646

Package-Manager: portage-2.3.2

 sys-auth/skey/Manifest              |  1 +
 sys-auth/skey/skey-1.1.5-r11.ebuild | 83 +++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

diff --git a/sys-auth/skey/Manifest b/sys-auth/skey/Manifest
index 7e0a61c..3e27c3e 100644
--- a/sys-auth/skey/Manifest
+++ b/sys-auth/skey/Manifest
@@ -1,2 +1,3 @@
 DIST skey-1.1.5-patches-5.tar.xz 33972 SHA256 845c9c71b8d69bf20854412536e736a7e6a6d07ea6abbc02ed10229207e4582e SHA512 5be8cb520311799f4ee105d4e6ec6bf2a9e76a1e49df632cf85b7e9e1126ff876551231b06d26911ca36b834b48ebdd1a9e3f1f889df3d1cee4989ed24c0a7fd WHIRLPOOL f78f30c7882d4c18a0d44139ca107413eb1d6db9f82fb1b570c535c28225dc4b5ed7450be17e9b23a4efa851ccc1d3f5bc19f7d5288eb75bb11ba2db2f0ec1ae
+DIST skey-1.1.5-patches-6.tar.xz 34108 SHA256 b63423380c3c60b95f213187aa2522b49da1b8227cde2decc405caa126fef05e SHA512 2c807675cdd6b800f03427d79d616f59ac9d4d438221913328ec92e5dd13af185f74a24e17d36af8d49a51c4ecc5b24ef198489acce416d829e8aacf5d3c208a WHIRLPOOL 8841611ff50aa8509b1d94665f87d9f0888d39958a5385e8fb5b044228bcc251565449629588d92531771d910e48b7a0ce6998f86a131a145ed5c288fc828133
 DIST skey-1.1.5.tar.bz2 61911 SHA256 e21bcb7c618c0bc87a72d8f0f097d7517fffa4e881a0f295ee1ce2a7dccf4aef SHA512 4cbddc7e31134d5e23801a9b07de0d05c8357aaa8dddfb8426fceead3f54e539f77204f78a08b2a93890ef2f4f807a2208080f58f80818afa1b8cd4884b1fb37 WHIRLPOOL abf141fd679deeaee3f3883cd3076620c84e8775ecacc8f87d561c1812beae55299989f37ec331633bac29e25b4b8d145dc590ef119c73a137d8790815bb13f2

diff --git a/sys-auth/skey/skey-1.1.5-r11.ebuild b/sys-auth/skey/skey-1.1.5-r11.ebuild
new file mode 100644
index 00000000..9dfc00e
--- /dev/null
+++ b/sys-auth/skey/skey-1.1.5-r11.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs readme.gentoo-r1
+
+DESCRIPTION="Linux Port of OpenBSD Single-key Password System"
+HOMEPAGE="http://www.openbsd.org/faq/faq8.html#SKey"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+	https://dev.gentoo.org/~ulm/distfiles/${P}-patches-6.tar.xz"
+
+LICENSE="BSD MIT RSA BEER-WARE"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="static-libs"
+
+DEPEND="dev-lang/perl
+	app-arch/xz-utils"
+RDEPEND="dev-lang/perl
+	virtual/perl-Time-Local
+	sys-libs/cracklib"
+
+PATCHES="../patch"
+
+src_configure() {
+	tc-export CC
+	econf --sysconfdir=/etc/skey
+}
+
+src_install() {
+	into /
+	dolib.so libskey.so{.${PV},.${PV%.*},.${PV%%.*},}
+
+	into /usr
+	dobin skey skeyinit skeyinfo
+	newbin skeyaudit.sh skeyaudit
+	newsbin skeyprune.pl skeyprune
+
+	dosym skey /usr/bin/otp-md4
+	dosym skey /usr/bin/otp-md5
+	dosym skey /usr/bin/otp-sha1
+
+	if use static-libs; then
+		dolib.a libskey.a
+		gen_usr_ldscript libskey.so
+	fi
+
+	doman skey.1 skeyaudit.1 skeyinfo.1 skeyinit.1 skey.3 skeyprune.8
+
+	insinto /usr/include
+	doins skey.h
+
+	keepdir /etc/skey
+
+	# only root needs to have access to these files.
+	fperms go-rx /etc/skey
+
+	# skeyinit and skeyinfo must be suid root so users
+	# can generate their passwords.
+	fperms u+s,go-r /usr/bin/skeyinit /usr/bin/skeyinfo
+
+	dodoc README CHANGES
+
+	DOC_CONTENTS="For an introduction into using s/key authentication,
+		take a look at the EXAMPLES section from the skey(1) manpage."
+	readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+	# do not include /etc/skey/skeykeys in the package, as quickpkg
+	# may package sensitive information.
+	# This also fixes the etc-update issue with #64974.
+
+	# skeyinit will not function if this file is not present.
+	touch /etc/skey/skeykeys
+
+	# these permissions are applied by the skey system if missing.
+	chmod 0600 /etc/skey/skeykeys
+
+	readme.gentoo_print_elog
+}


             reply	other threads:[~2016-10-29 14:56 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-29 14:56 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-04 19:00 [gentoo-commits] repo/gentoo:master commit in: sys-auth/skey/ Ulrich Müller
2023-04-19  7:44 Ulrich Müller
2023-04-19  5:57 Sam James
2023-04-19  5:57 Sam James
2023-04-19  5:57 Sam James
2023-04-19  5:57 Sam James
2023-04-19  5:28 Sam James
2023-04-19  5:28 Sam James
2023-04-19  5:28 Sam James
2023-03-16 21:32 Ulrich Müller
2022-10-20 12:52 Ulrich Müller
2022-10-20 10:56 Jakov Smolić
2022-10-20 10:52 Jakov Smolić
2022-10-20  6:54 Agostino Sarubbo
2022-10-19 17:35 Arthur Zamarin
2022-10-19 17:35 Arthur Zamarin
2022-10-19 17:35 Arthur Zamarin
2022-10-19 17:35 Arthur Zamarin
2022-09-18 23:00 Ulrich Müller
2022-05-07 11:14 WANG Xuerui
2021-06-25 18:31 Ulrich Müller
2021-06-22 21:50 Ulrich Müller
2021-05-25 10:31 Ulrich Müller
2019-05-04 22:04 Mikle Kolyada
2018-06-03 17:45 Mikle Kolyada
2017-02-26 18:26 Ulrich Müller
2017-02-26 17:59 Markus Meier
2017-02-18 14:44 Agostino Sarubbo
2017-02-15 13:49 Tobias Klausmann
2017-02-12 17:01 Agostino Sarubbo
2017-02-12 15:44 Agostino Sarubbo
2017-02-11 13:48 Jeroen Roovers
2017-02-06 14:55 Agostino Sarubbo
2016-05-26 22:21 Ulrich Müller
2016-05-26 13:25 Tobias Klausmann
2016-04-10  9:13 Jeroen Roovers
2016-03-25  9:47 Markus Meier
2016-03-19 11:35 Agostino Sarubbo
2016-03-06 12:58 Agostino Sarubbo
2015-12-21 16:43 Ulrich Müller
2015-12-21 14:47 Patrick Lauer
2015-12-13 22:24 Pacho Ramos
2015-12-12 10:19 Ulrich Müller
2015-12-12  9:18 Ulrich Müller
2015-09-24  8:05 Ulrich Müller
2015-09-20  9:30 Agostino Sarubbo
2015-09-06  6:18 Jeroen Roovers
2015-09-02 19:50 Markus Meier
2015-08-30 15:13 Tobias Klausmann
2015-08-26 10:43 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1477752975.f1462b3a2246f5c69a96578f8fdcafa5b1c96b97.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox