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

Last change on this file since 6057 was 3173, checked in by jkh, 17 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

  • Property svn:eol-style set to native
File size: 1.1 KB
[3173]1# $Id: Portfile,v 1.3 2003/08/05 09:29:36 jkh Exp $
3PortSystem 1.0
4name            dumpasn1
5version         20030222
[3144]6categories      textproc security
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.
13master_sites    ${homepage}
15distfiles       dumpasn1.c dumpasn1.cfg
16checksums       dumpasn1.c md5 720c630b4f4f17d4bf85b240eceeb8da \
17                dumpasn1.cfg md5 f1c0a5c1108b7aad85afe3c5111ff906
18platforms       darwin
19extract {       system "cp ${distpath}/dumpasn1.c ${worksrcpath}"
20                system "cp ${distpath}/dumpasn1.cfg ${worksrcpath}" }
22configure       {}
24post-configure {        reinplace "s|/etc/dumpasn1/|$prefix/etc|g" \
25                                "${worksrcpath}/dumpasn1.c" }
27build {         system "cc -o ${worksrcpath}/dumpasn1 ${worksrcpath}/dumpasn1.c" }
[3173]29destroot {      system "install -c -m 755 ${worksrcpath}/dumpasn1 ${destroot}${prefix}/bin/dumpasn1"
[3053]30                system "install -c -m 644 ${worksrcpath}/dumpasn1.cfg ${destroot}${prefix}/etc/dumpasn1.cfg" }
Note: See TracBrowser for help on using the repository browser.