Portfile

# $Id: Portfile 20461 2006-11-03 15:14:39Z blair@macports.org $

PortSystem 1.0
name apg
version 2.2.3
categories security
maintainers css@macports.org

description tool set for random password generation

long_description APG generates random passwords. Its pronounceable \
password generation algorithm conforms to NIST FIPS 181, and its \
random character algorithm has 35 configurable modes. APG \
supports ANSI X9.17 random number generation (CAST/SHA1) with a \
built-in password quality checking system.

platforms darwin
homepage http://www.adel.nursat.kz/apg/
master_sites ${homepage}/download/
checksums md5 3b3fc4f11e90635519fe627c1137c9ac

depends_lib lib:crypto:openssl

patchfiles patch-Makefile.diff

post-patch {
reinplace "s|__DESTROOT__|${destroot}|" ${worksrcpath}/Makefile
}

use_configure no

destroot {
xinstall -m 755 -s ${worksrcpath}/apg ${destroot}${prefix}/bin
xinstall -m 644 ${worksrcpath}/doc/man/apg.1 \
${destroot}${prefix}/share/man/man1
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath}/doc APG_TIPS pronun.txt rfc0972.txt \
rfc1750.txt ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} README COPYING THANKS \
${destroot}${prefix}/share/doc/${name}
}

files