source: trunk/dports/net/blackbag/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem       1.0
4
5name             blackbag
6version          0.9.1
7revision         2
8categories       net security
9platforms        darwin
10# Copyright 2005 Matasano Security, LLC <tqbf@matasano.com> - All Rights Reserved
11license          Unknown
12installs_libs    no
13maintainers      ecronin openmaintainer
14description      A miscelleny of network testing tools.
15long_description Blackbag is Matasano's suite of penetration testing and \
16                 reverse engineering tools. What started as a binary \
17                 interactive netcat, has evolved into our "blackbag" of \
18                 tools to help us understand and attack proprietary \
19                 protocols, find compressed images inside of files and more!
20
21homepage         http://wayback.archive.org/web/20101121045242/http://chargen.matasano.com/chargen/2008/5/1/blackbag-091-new-link-and-minor-fixes.html
22master_sites     https://github.com/emonti/rbkb/raw/master/reference
23extract.suffix   .tgz
24checksums        md5  5478497661f4c90ca8ac62da7b1572c7 \
25                 sha1 6ecf6b2d012993181c25801292cdb9168accfabc
26
27depends_lib      port:libevent port:libpcap path:lib/libssl.dylib:openssl port:zlib
28
29use_configure    no
30
31use_parallel_build  no
32
33build.env        LFLAGS="-L${prefix}/lib" \
34                 IFLAGS="-I${prefix}/include"
35
36patchfiles       patch-bkb.diff
37
38post-patch {
39    reinplace "s|/usr/local|\$\(DESTDIR\)${prefix}|g" ${worksrcpath}/Makefile
40    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/bkb
41    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/sub.c
42    reinplace "s|/usr/local|\$\(DESTDIR\)${prefix}|g" ${worksrcpath}/asn/Makefile
43    reinplace "s|/usr/local/bin|${prefix}/bin/blackbag|g" ${worksrcpath}/asn/asn
44    reinplace "s|shift|#shift|g" ${worksrcpath}/asn/asn
45    reinplace "s|-I../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
46    reinplace "s|-L../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
47    reinplace "s|-g||g" ${worksrcpath}/common.mk
48    reinplace "s|-I\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/common.mk
49    reinplace "s|-L\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/common.mk
50    reinplace "s|-L\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/asn/Makefile
51    system "touch ${worksrcpath}/sub.macros"
52}
53
54post-build {
55    system "cd ${worksrcpath}/asn && ${build.cmd}"
56}
57
58post-destroot {
59    xinstall -m 755 -d  ${destroot}${prefix}/share/doc/${name}
60    xinstall -m 0644 ${worksrcpath}/README \
61        ${destroot}${prefix}/share/doc/${name}/README
62
63    file rename ${worksrcpath}/asn/asn ${worksrcpath}/asn/asn1
64    system "cd ${worksrcpath}/asn && \
65        ${build.cmd} install ${build.target} DESTDIR=${destroot}"
66}
67
68platform darwin 9 {
69    post-patch {
70        reinplace "s|setpgrp|setpgid|g" ${worksrcpath}/tsec.c
71    }
72}
73
74livecheck.type   none
Note: See TracBrowser for help on using the repository browser.