source: trunk/dports/textproc/dumpasn1/Portfile @ 12370

Last change on this file since 12370 was 12370, checked in by cjr, 15 years ago

Downstream checksums changed

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1# $Id: Portfile,v 1.6 2005/05/24 12:54:27 cjr Exp $
2
3PortSystem 1.0
4name            dumpasn1
5version         20030222
6categories      textproc security
7maintainers     cjr@opendarwin.org
8description     an ASN.1 decoder and pretty-printer
9long_description        The dumpasn1 program decodes BER and DER-encoded \
10                        ASN.1 data, and is configured with knowledge of \
11                        many security-related objects.
12homepage        http://www.cs.auckland.ac.nz/~pgut001/
13master_sites    ${homepage}
14distname       
15distfiles       dumpasn1.c dumpasn1.cfg
16checksums       dumpasn1.c md5 faba9cbad80fcc97ae566f97c2c85272 \
17                dumpasn1.cfg md5 fffe09ac2fad6161b62a69b98f51e7d1
18platforms       darwin
19extract {
20        system "cp ${distpath}/dumpasn1.c ${worksrcpath}"
21        system "cp ${distpath}/dumpasn1.cfg ${worksrcpath}"
22}
23
24configure       {}
25
26post-configure {
27        reinplace "s|/etc/dumpasn1/|$prefix/etc/|g" \
28                "${worksrcpath}/dumpasn1.c"
29}
30
31build {
32        system "cc -o ${worksrcpath}/dumpasn1 ${worksrcpath}/dumpasn1.c"
33}
34
35destroot {
36        xinstall -c -m 0755 ${worksrcpath}/dumpasn1 \
37                ${destroot}${prefix}/bin/dumpasn1
38        xinstall -c -m 0644 ${worksrcpath}/dumpasn1.cfg \
39                ${destroot}${prefix}/etc/dumpasn1.cfg
40}
Note: See TracBrowser for help on using the repository browser.