From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 322EF158094 for ; Sun, 18 Sep 2022 23:00:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4930E08C3; Sun, 18 Sep 2022 23:00:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C44AEE08C3 for ; Sun, 18 Sep 2022 23:00:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F3E4340E03 for ; Sun, 18 Sep 2022 23:00:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E49ED5D5 for ; Sun, 18 Sep 2022 23:00:19 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1663541999.11bb8753c0cf6cd8283efb36ab2fad93c1c6deb4.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/skey/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/skey/skey-1.1.5-r13.ebuild X-VCS-Directories: sys-auth/skey/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 11bb8753c0cf6cd8283efb36ab2fad93c1c6deb4 X-VCS-Branch: master Date: Sun, 18 Sep 2022 23:00:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0c6f7881-3de8-4803-a869-85fb7d50c09b X-Archives-Hash: 6e64743b49e45338d8e04913dfd3e00f commit: 11bb8753c0cf6cd8283efb36ab2fad93c1c6deb4 Author: Ulrich Müller gentoo org> AuthorDate: Sun Sep 18 22:57:00 2022 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Sep 18 22:59:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11bb8753 sys-auth/skey: Call eautoreconf This fixes a failure with the existing configure code for AC_PROG_CC. EAPI 8, update HOMEPAGE. Closes: https://bugs.gentoo.org/871600 Signed-off-by: Ulrich Müller gentoo.org> sys-auth/skey/skey-1.1.5-r13.ebuild | 90 +++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/sys-auth/skey/skey-1.1.5-r13.ebuild b/sys-auth/skey/skey-1.1.5-r13.ebuild new file mode 100644 index 000000000000..7f8b35c03234 --- /dev/null +++ b/sys-auth/skey/skey-1.1.5-r13.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools readme.gentoo-r1 toolchain-funcs usr-ldscript + +DESCRIPTION="Linux Port of OpenBSD Single-key Password System" +HOMEPAGE="https://web.archive.org/web/20160710152027/http://www.openbsd.org:80/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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="static-libs" + +DEPEND="dev-lang/perl + sys-libs/cracklib + virtual/libcrypt:=" + +RDEPEND="${DEPEND} + virtual/perl-Time-Local" + +BDEPEND="app-arch/xz-utils" + +PATCHES=("${WORKDIR}/patch") + +src_prepare() { + default + eautoreconf +} + +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 + + local 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 +}