# $Id: Portfile 41811 2008-11-10 23:52:02Z mcalhoun@macports.org $

PortSystem  1.0

name        signing-party
version     1.0
categories  mail security
maintainers milosh openmaintainer
platforms   darwin
description Various OpenPGP related tools
long_description    \
    signing-party is a collection for all kinds of PGP/GnuPG related things, \
    including signing scripts, party preparation scripts, etc.

homepage        http://pgp-tools.alioth.debian.org/
master_sites    http://ftp.de.debian.org/debian/pool/main/s/signing-party/
distname        ${name}_${version}
worksrcdir      ${name}-${version}
extract.suffix  .orig.tar.gz
checksums       md5 fcfb3fd403e4e6ce0e95adf7b7d69717 \
                sha1 caffdd9f48cf0b2d3c5651ed1f6845e5cac56c67
use_configure   no

depends_lib path:bin/perl:perl5 \
        port:p5-gnupg-interface \
        port:p5-text-iconv \
        port:p5-text-template \
        port:p5-mime-tools
depends_run bin:gpg:gnupg port:dialog

pre-build   {
        reinplace "s|/usr/bin/perl|${prefix}/bin/perl|" \
        ${worksrcpath}/caff/caff ${worksrcpath}/caff/pgp-clean \
        ${worksrcpath}/caff/pgp-fixkey ${worksrcpath}/gpg-key2ps/gpg-key2ps \
        ${worksrcpath}/gpglist/gpglist ${worksrcpath}/gpgsigs/gpgsigs \
        ${worksrcpath}/keylookup/keylookup ${worksrcpath}/sig2dot/sig2dot \
        ${worksrcpath}/springgraph/springgraph
}

destroot    {
        xinstall -m 0755 ${worksrcpath}/caff/caff ${worksrcpath}/caff/pgp-clean ${worksrcpath}/caff/pgp-fixkey ${destroot}${prefix}/bin
        xinstall -m 0755  ${worksrcpath}/gpg-key2ps/gpg-key2ps ${worksrcpath}/gpg-mailkeys/gpg-mailkeys ${worksrcpath}/gpglist/gpglist ${worksrcpath}/gpgparticipants/gpgparticipants ${worksrcpath}/gpgsigs/gpgsigs ${worksrcpath}/keylookup/keylookup ${worksrcpath}/sig2dot/sig2dot ${worksrcpath}/springgraph/springgraph ${destroot}${prefix}/bin
        xinstall -m 0644 ${worksrcpath}/caff/caff.1 ${worksrcpath}/caff/pgp-clean.1 ${worksrcpath}/caff/pgp-fixkey.1 ${destroot}${prefix}/share/man/man1
        xinstall -m 0644 ${worksrcpath}/gpg-key2ps/gpg-key2ps.1 ${worksrcpath}/gpg-mailkeys/gpg-mailkeys.1 ${worksrcpath}/gpglist/gpglist.1 ${worksrcpath}/gpgparticipants/gpgparticipants.1 ${worksrcpath}/sig2dot/sig2dot.1 ${worksrcpath}/springgraph/springgraph.1 ${worksrcpath}/gpgsigs/gpgsigs.1 ${worksrcpath}/keylookup/keylookup.1 ${destroot}${prefix}/share/man/man1
        xinstall -d ${destroot}${prefix}/share/doc/signing-party
        xinstall -m 0644 ${worksrcpath}/caff/caffrc.sample ${worksrcpath}/gpg-mailkeys/example.gpg-mailkeysrc ${destroot}${prefix}/share/doc/signing-party
}

livecheck.check regex
livecheck.url   http://packages.debian.org/unstable/misc/${name}
livecheck.regex ${name} .(\[0-9.\]+)

