source: trunk/dports/net/blackbag/Portfile @ 126822

Last change on this file since 126822 was 126822, checked in by khindenburg@…, 5 years ago

blackbag: change homepage to wayback.org link; set livecheck to none

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 126822 2014-10-15 22:06:37Z khindenburg@macports.org $
2
3PortSystem       1.0
4
5name             blackbag
6version          0.9.1
7revision         1
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 port: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.