Changeset 11085


Ignore:
Timestamp:
Feb 20, 2005, 7:45:20 PM (15 years ago)
Author:
cjr
Message:

Changed to use xinstall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/dumpasn1/Portfile

    r7324 r11085  
    1 # $Id: Portfile,v 1.4 2004/05/31 18:46:16 olegb Exp $
     1# $Id: Portfile,v 1.5 2005/02/20 19:45:20 cjr Exp $
    22
    33PortSystem 1.0
     
    55version         20030222
    66categories      textproc security
    7 maintainers     chris.ridd@isode.com
     7maintainers     cjr@opendarwin.org
    88description     an ASN.1 decoder and pretty-printer
    99long_description        The dumpasn1 program decodes BER and DER-encoded \
     
    1717                dumpasn1.cfg md5 f1c0a5c1108b7aad85afe3c5111ff906
    1818platforms       darwin
    19 extract {       system "cp ${distpath}/dumpasn1.c ${worksrcpath}"
    20                 system "cp ${distpath}/dumpasn1.cfg ${worksrcpath}" }
     19extract {
     20        system "cp ${distpath}/dumpasn1.c ${worksrcpath}"
     21        system "cp ${distpath}/dumpasn1.cfg ${worksrcpath}"
     22}
    2123
    2224configure       {}
    2325
    24 post-configure {        reinplace "s|/etc/dumpasn1/|$prefix/etc/|g" \
    25                                 "${worksrcpath}/dumpasn1.c" }
     26post-configure {
     27        reinplace "s|/etc/dumpasn1/|$prefix/etc/|g" \
     28                "${worksrcpath}/dumpasn1.c"
     29}
    2630
    27 build {         system "cc -o ${worksrcpath}/dumpasn1 ${worksrcpath}/dumpasn1.c" }
     31build {
     32        system "cc -o ${worksrcpath}/dumpasn1 ${worksrcpath}/dumpasn1.c"
     33}
    2834
    29 destroot {      system "install -c -m 755 ${worksrcpath}/dumpasn1 ${destroot}${prefix}/bin/dumpasn1"
    30                 system "install -c -m 644 ${worksrcpath}/dumpasn1.cfg ${destroot}${prefix}/etc/dumpasn1.cfg" }
     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 TracChangeset for help on using the changeset viewer.