# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/skey/skey-1.1.5-r1.ebuild,v 1.16 2004/06/25 23:00:20 vapier Exp $ inherit flag-o-matic ccc eutils DESCRIPTION="Linux Port of OpenBSD Single-key Password System" HOMEPAGE="http://www.sparc.spb.su/solaris/skey/" SRC_URI="mirror://gentoo/${P}.tar.bz2 doc? ( http://www.ietf.org/rfc/rfc2289.txt )" LICENSE="BSD X11" SLOT="0" KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 s390" IUSE="doc" DEPEND="virtual/libc sys-apps/shadow sys-libs/cracklib >=dev-lang/perl-5.8.0" # XXX: skeyaudit requires mailx. src_unpack() { unpack ${A} ; cd ${S} # porting some updates to this skey implementation from the # NetBSD project, some other updates and fixes, and the addition # of some new features like shadow password and cracklib support. # (05 Nov 2003) -taviso@gentoo.org epatch ${FILESDIR}/skey-1.1.5-gentoo.diff.gz # glibc 2.2.x does not define LOGIN_NAME_MAX #33315 # (12 Nov 2003) -taviso@gentoo.org epatch ${FILESDIR}/skey-login_name_max.diff epatch ${FILESDIR}/${P}-fPIC.patch } src_compile() { # skeyprune wont honour @sysconfdir@ sed -i 's#/etc/skeykeys#/etc/skey/skeyskeys#g' skeyprune.pl skeyprune.8 econf --sysconfdir=/etc/skey || die emake || die } src_install() { doman skey.1 skeyaudit.1 skeyinfo.1 skeyinit.1 skeyprune.8 dobin skey skeyinit skeyinfo || die newbin skeyprune.pl skeyprune newbin skeyaudit.sh skeyaudit dolib.a libskey.a dolib.so libskey.so.1.1.5 libskey.so.1.1 libskey.so.1 libskey.so insinto /usr/include doins skey.h insinto /etc/skey newins /dev/null skeykeys # only root needs to have access to these files. fperms g-rx,o-rx /etc/skey/skeykeys /etc/skey # skeyinit and skeyinfo must be suid root so users # can generate their passwords. # # probably a good idea to remove read permission to # suid binaries. fperms u+s,o-r,g-r /usr/bin/skeyinit /usr/bin/skeyinfo dodoc README CHANGES md4.copyright md5.copyright use doc && dodoc ${DISTDIR}/rfc2289.txt prepallman } pkg_postinst() { einfo "For an instroduction into using s/key authentication, take" einfo "a look at the EXAMPLES section from the skey(1) manpage." einfo einfo "This version of skey contains numerous updates, and is not totally" einfo "syntax or source compatible with the previous version." einfo "Please report any issues with skey using http://bugs.gentoo.org/" }