# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="single-key password system for untested networks (utils and libraries)" #HOMEPAGE="http://looking for it" #Down ATM #SRC_USI="http://www.sparc.spb.su/solaris/skey/${P}.tar.gz" SRC_URI="http://ftp.ntua.gr/pub/linux/openpkg/sources/DST/skey/${P}.tar.gz" #MD5 c4bc3be60fe1aa8961537fb4b3708568 skey-1.1.5.tar.gz 69333 LICENSE="BSD" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="" S=${WORKDIR}/${P} src_compile() { # nice perl script to print out your keys on a credit card size sheet from logdaemon-5.9 for files in skeyprint winkey; do if [ -f ${FILESDIR}/$files ]; then cp ${FILESDIR}/$files . fi done # google logdaemon-5.9 for info ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --sysconfdir=/etc make || die } src_install() { #bin dobin skey dobin skeyinit dobin skeyinfo dobin skeyaudit dobin skeyprune.pl # check for files in skeyprint winkey; do if [ -f $files ]; then dobin $files fi done #libs dolib.a libskey.a # include mkdir -p ${D}/usr/include cp skey.h ${D}/usr/include/ fperms 644 ${D}/usr/include/skey.h fowners root.root ${D}/usr/include/skey.h # docs doman *.1 doman *.8 } pkg_postinst() { einfo einfo "Quickstart: (from http://rr.sans.org/authentic/skey.php )" einfo "# touch /etc/skeykeys" einfo "# skeyinit -sha1 some-user (then enter & remember that user's passphrase)" einfo "# skey -n 5 `skeyinfo some-user` (shows the next 5 s/key passwords)" einfo "Or if you downloaded skeyprint (and you should have)" einfo "# skeyprint some-user > someuser.postscript (or to print direct)" einfo "# skeyprint some-user | lpr (both with the passphrase)" einfo "" einfo "To use this with openssh, you have to edit the ebuild to include" einfo "--with-skey \ in the ./configure part and REBUILD openssh" einfo "Then uncomment" einfo "ChallengeResponseAuthentication Yes " einfo "in /etc/ssh/sshd_config" einfo }