Bob Hepple - 2004-05-16

If anyone wants to install ccrypt on gentoo, here is an ebuild and the procededure. I am submitting this to bugs.gentoo.org and hopefully it will be adopted as an official ebuild but in the meantime, here is a unofficial version.

Make sure /etc/make.conf has a line:

PORTDIR_OVERLAY=/usr/local/portage

mkdir -p /usr/local/portage/app-crypt/ccrypt
save the ccrypt-1.7.ebuild file to /usr/local/portage/app-crypt/ccrypt/ccrypt-1.7.ebuild

Now, run:
emerge /usr/local/portage/app-crypt/ccrypt/ccrypt-1.7.ebuild digest

Here's the ebuild file - save it as noted above:

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header$

DESCRIPTION="Encryption and decryption"
HOMEPAGE="http://ccrypt.sourceforge.net"
SRC_URI="http://ccrypt.sourceforge.net/download/${P}.tar.gz"
LICENSE="as-is GPL-2"
SLOT="0"
KEYWORDS="x86"

S=${WORKDIR}/${P}

src_unpack() {
        unpack ${A}
}

src_compile() {
   ./configure --prefix=/usr || die
        emake || die
}

src_install () {
        make \                 prefix=${D}/usr \                 install || die
        dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
}