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

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

Changed to use xinstall

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1# $Id: Portfile,v 1.5 2005/02/20 19:45:20 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 720c630b4f4f17d4bf85b240eceeb8da \
17                dumpasn1.cfg md5 f1c0a5c1108b7aad85afe3c5111ff906
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.