From 0cf52b6a5e05bfc11eeca9ad1621c8cbbbc3eadf Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Tue, 22 Jun 2021 23:48:52 +0200 Subject: sys-auth/skey: Update dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested-by: Sam James Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Ulrich Müller --- sys-auth/skey/skey-1.1.5-r11.ebuild | 82 ----------------------------------- sys-auth/skey/skey-1.1.5-r12.ebuild | 86 +++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 82 deletions(-) delete mode 100644 sys-auth/skey/skey-1.1.5-r11.ebuild create mode 100644 sys-auth/skey/skey-1.1.5-r12.ebuild (limited to 'sys-auth') diff --git a/sys-auth/skey/skey-1.1.5-r11.ebuild b/sys-auth/skey/skey-1.1.5-r11.ebuild deleted file mode 100644 index 835cde8edc67..000000000000 --- a/sys-auth/skey/skey-1.1.5-r11.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs readme.gentoo-r1 usr-ldscript - -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 ~riscv ~s390 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=("${WORKDIR}/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 -} diff --git a/sys-auth/skey/skey-1.1.5-r12.ebuild b/sys-auth/skey/skey-1.1.5-r12.ebuild new file mode 100644 index 000000000000..1db9f6f4afd0 --- /dev/null +++ b/sys-auth/skey/skey-1.1.5-r12.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs readme.gentoo-r1 usr-ldscript + +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 ~riscv ~s390 sparc x86" +IUSE="static-libs" + +DEPEND="dev-lang/perl + sys-libs/cracklib + virtual/libcrypt:=" + +RDEPEND="${DEPEND} + virtual/perl-Time-Local" + +DEPEND="${DEPEND} + app-arch/xz-utils" + +PATCHES=("${WORKDIR}/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 +} -- cgit v1.2.3-65-gdbad