From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-auth/skey/Manifest | 6 +++ sys-auth/skey/metadata.xml | 29 +++++++++++++ sys-auth/skey/skey-1.1.5-r11.ebuild | 82 +++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 sys-auth/skey/Manifest create mode 100644 sys-auth/skey/metadata.xml create mode 100644 sys-auth/skey/skey-1.1.5-r11.ebuild (limited to 'sys-auth/skey') diff --git a/sys-auth/skey/Manifest b/sys-auth/skey/Manifest new file mode 100644 index 000000000000..55e63eecc49b --- /dev/null +++ b/sys-auth/skey/Manifest @@ -0,0 +1,6 @@ +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 +EBUILD skey-1.1.5-r11.ebuild 1977 SHA256 bb6fdfd84e171193090dd8ba44b2fdc8714098cae3c4233ddf852e1fefdb2a5d SHA512 b6268dfc3b22b3dd97781605b246b5a99a0d9abe716667dab1771c87991a87fc5d2c4dd47d51300af248fac42b87532c89799a7d769f9d021f6a5ea882e85860 WHIRLPOOL 2f2e0e826217ea45f7efb46f23bc4d207d83752dea77e9a233d850a5d9fe53855c6c04f5ea0556bd1ef884c4065fc1d70b5ab9866543bab27f550147678418a5 +MISC ChangeLog 6685 SHA256 1adce0d7d93abac651a04e2a4b9eee2d1a46078bef7af462bcc31c0622e1898e SHA512 1e9725938c1b7b4102a72e2b33c6259e4374793b46e328663403f5c064c34e668e3fc4d195aa157eb4cb275c85cb224284504d0bdd793449cfbf625cf6be1091 WHIRLPOOL a47fdc2e2e8d3d625f819394f96d25cee65c6f17e96e001b2c51c8d08681bc8378c28550c980ce72682e05c328c558bb3c5e845e1188f26d2bccf191c6eea2eb +MISC ChangeLog-2015 10855 SHA256 e6e157d46b2f3ba0c7fd78bb931b083d5f2c99afeb5476fdb6cedec19f7d8696 SHA512 1b6e4051b136a7754988fa6cc25cf13d25d7712f05503143210810b50df4ecf3ffb1961c3a0f09c5619a80dd371cdc7147feccc3ff84eff3a3aae053399716b9 WHIRLPOOL 4618e40662ff38361cdadeb702fda1cca876cce4da87411d4883b6fa6cc23ba77a9a1fda1a216cfd64aed10ddfb56a07bf137fe625e71aed1f178a04da6e0fba +MISC metadata.xml 1432 SHA256 a291b68f13eda0fce9f8ae67619877c1e66b750fd61f38dbb8fbc1e4abe2176d SHA512 8fe776255ff049ae9c16ee0ff157761114ca4fcc777d103e707557ef5f18fba9d65e63a77f24219e27d267cd76839abf128210969dc4330d66920a2ee574aabf WHIRLPOOL 174360e0598007cb5399e8135f646f547b7df603d2548d897e386d732e1a742288a80dd2717e27bf1f608ec1e3d56428b5db15ddc2ae78e3afcb282b34d886fd diff --git a/sys-auth/skey/metadata.xml b/sys-auth/skey/metadata.xml new file mode 100644 index 000000000000..93a242052187 --- /dev/null +++ b/sys-auth/skey/metadata.xml @@ -0,0 +1,29 @@ + + + + + ulm@gentoo.org + + + From RFC2289: + One form of attack on networked computing systems is eavesdropping on + network connections to obtain authentication information such as the + login IDs and passwords of legitimate users. Once this information is + captured, it can be used at a later time to gain access to the system. + One-time password systems are designed to counter this type of attack, + called a "replay attack." + + The authentication system described in this document uses a secret + pass-phrase to generate a sequence of one-time (single use) passwords. + With this system, the user's secret pass-phrase never needs to cross the + network at any time such as during authentication or during pass-phrase + changes. Thus, it is not vulnerable to replay attacks. Added security + is provided by the property that no secret information need be stored on + any system, including the server being protected. + + The OTP system protects against external passive attacks against the + authentication subsystem. It does not prevent a network eavesdropper from + gaining access to private information and does not provide protection + against either "social engineering" or active attacks. + + 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 000000000000..c8c448a15df3 --- /dev/null +++ b/sys-auth/skey/skey-1.1.5-r11.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} -- cgit v1.2.3