# ebuild de prueba :E # $Header: $ inherit eutils DESCRIPTION="Access a working SSH implementation by means of a library" HOMEPAGE="http://0xbadc0de.be/?part=libssh" SRC_URI="http://www.0xbadc0de.be/libssh/${P}.tgz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="ssh1 crypt examples" DEPEND="sys-libs/zlib !crypt? ( dev-libs/openssl ) crypt? ( dev-libs/libgcrypt )" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/makefile_no-examples.diff" || die "epatch failed" } src_compile() { econf \ $(use_with crypt) \ $(use_enable ssh1) \ || die "econf failed" emake || die "emake failed" } src_install() { #chmod a-x ${D}/usr/include/libssh/* emake DESTDIR="${D}" install || die "install failed" dodoc README CHANGELOG if use examples ; then insinto /usr/share/doc/${P} doins sample.c samplesshd.c fi } pkg_postinst() { if use ssh1 ; then einfo "This package was compiled with SSH v1 support which is" einfo "strongly discouraged and superceeded with the v2 of the" einfo "SSH protocol because it is insecure" fi }