# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/lib/cvs/cpm/gentoo/cpm.ebuild,v 1.6 2005/09/05 06:57:21 harry Exp $ inherit eutils myP=${P//_/} myPV=${PV//_/} DESCRIPTION="Console-based tool to manage passwords and store them public key encrypted in a file" HOMEPAGE="http://www.harry-b.de/dokuwiki/doku.php?id=harry:cpm" SRC_URI="mirror://sourceforge/project/passwordms/cpm/${myPV}/${myP}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=" >=app-crypt/gpgme-1.0.2 dev-libs/cdk dev-libs/dotconf dev-libs/libxml2 sys-devel/gettext sys-libs/cracklib sys-libs/ncurses " S=${WORKDIR}/${myP} src_compile() { epatch "${FILESDIR}/${P}-ocreat.patch" local myconf="--with-crack-dict=/usr/lib/cracklib_dict --with-cdk-v5" econf \ ${myconf} || die "econf failed" emake || die "compile problem" } src_install() { make DESTDIR="${D}" install || die "install failed" dodoc docs/* insopts -m0644 einfo "test: ${PF}" insinto /etc newins conf/cpmrc-default cpmrc } pkg_postinst() { einfo "If running cpm from non-root user gives you some error like:" einfo "" einfo "out of memory error - tried to allocate 16 byte." einfo "" einfo "You must raise the limit of the ulimit for 'max memory size':" einfo " ulimit -l 5120" einfo "before running cpm." einfo "" }