Ticket #31915: dumpasn1-20110202.diff
File dumpasn1-20110202.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 4 5 name dumpasn1 5 version 20 0606226 version 20110202 6 7 categories textproc security 8 platforms darwin 7 9 maintainers cjr 8 10 description an ASN.1 decoder and pretty-printer 9 11 long_description The dumpasn1 program decodes BER and DER-encoded \ … … 11 13 many security-related objects. 12 14 homepage http://www.cs.auckland.ac.nz/~pgut001/ 13 15 master_sites ${homepage} 14 dist name16 dist_subdir ${name}/${version} 15 17 distfiles dumpasn1.c dumpasn1.cfg 16 checksums dumpasn1.c md5 0855c6f21a9e2c7f984b1e48ce9c1f58 \ 17 dumpasn1.cfg md5 ffb5d3c3f7b5216149dcc7bbf462408c 18 platforms darwin 19 extract { 20 system "cp ${distpath}/dumpasn1.c ${worksrcpath}" 21 system "cp ${distpath}/dumpasn1.cfg ${worksrcpath}" 18 19 checksums dumpasn1.c \ 20 rmd160 65fbc959dcf36729f29d2c81d148002e934d192a \ 21 sha256 514e3b49adb0b2e49f8bcfc47c20c5f4202bc7e9f7b1e90bcd4d4cf592d469f4 \ 22 dumpasn1.cfg \ 23 rmd160 27c96f45ae762b202fe7ee5a3973d7e7447415ca \ 24 sha256 b7c0ad5a4186fcef9b37d5a95419886e8ed16f0c69603f9725c4007026958241 25 26 extract.only 27 extract.mkdir yes 28 post-extract { 29 xinstall -m 644 -W ${distpath} dumpasn1.c dumpasn1.cfg ${worksrcpath} 22 30 } 23 31 24 configure {} 25 26 post-configure { 32 post-patch { 27 33 reinplace "s|/etc/dumpasn1/|$prefix/etc/|g" \ 28 34 "${worksrcpath}/dumpasn1.c" 29 35 } 30 36 37 use_configure no 38 39 variant universal {} 40 31 41 build { 32 system "cc -o ${worksrcpath}/dumpasn1 ${worksrcpath}/dumpasn1.c"42 system -W ${worksrcpath} "${configure.cc} [get_canonical_archflags] -o dumpasn1 dumpasn1.c" 33 43 } 34 44 35 45 destroot { … … 38 48 xinstall -c -m 0644 ${worksrcpath}/dumpasn1.cfg \ 39 49 ${destroot}${prefix}/etc/dumpasn1.cfg 40 50 } 51 52 livecheck.type moddate 53 livecheck.url [lindex ${master_sites} 0][lindex ${distfiles} 0]