# $Id: Portfile 56227 2009-08-25 11:05:29Z ryandesign@macports.org $

PortSystem              1.0

name                    ccrypt
version                 1.7
categories              security
platforms               darwin
maintainers             nomaintainer
homepage                http://ccrypt.sourceforge.net

description             Encrypt and decrypt files and streams

long_description        Utility for encrypting and decrypting files and streams. \
                        It was designed to replace the standard unix crypt \
                        utility, which is notorious for using a very weak \
                        encryption algorithm. ccrypt is based on the Rijndael \
                        cipher, which is the U.S. government's chosen candidate \
                        for the Advanced Encryption Standard (AES, see \
                        http://www.nist.gov/aes/). This cipher is believed to \
                        provide very strong security. Unlike unix crypt, the \
                        algorithm provided by ccrypt is not symmetric, i.e., \
                        one must specify whether to encrypt or decrypt. The most \
                        common way to invoke ccrypt is via the commands \
                        ccencrypt and ccdecrypt. There is also a ccat command \
                        for decrypting a file directly to the terminal, thus \
                        reducing the likelihood of leaving temporary plaintext \
                        files around. In addition, there is a compatibility mode \
                        for decrypting legacy unix crypt files.

master_sites            sourceforge

checksums               md5 19526e31a7d234e29d54dbcc876605d5

build.cmd               make check

pre-configure {
    reinplace "s|htmldir = \$(prefix)/doc/ccrypt|htmldir = \$(datadir)/doc/ccrypt|" \
        ${worksrcpath}/doc/Makefile.in
}

configure.args          --mandir=${prefix}/share/man \
                        --infodir=${prefix}/share/info
