Ticket #11097: Portfile-patch

File Portfile-patch, 1.8 KB (added by ecronin (Eric Cronin), 18 years ago)
Line 
1Index: Portfile
2===================================================================
3--- Portfile    (revision 420)
4+++ Portfile    (working copy)
5@@ -3,7 +3,7 @@
6 PortSystem 1.0
7 
8 name                   blackbag
9-version                        0.6
10+version                        0.9
11 categories             net security
12 platforms              darwin
13 maintainers            ecronin@gizmolabs.org
14@@ -16,9 +16,10 @@
15                     find compressed images inside of files and more!
16 
17 homepage                       http://www.matasano.com/tools/blackbag/
18-master_sites        http://www.matasano.com/tools/blackbag/
19-checksums                      md5  06978738b3ab96087410c4a5198f1ca2 \
20-                                       sha1 32807aa0f5a8ef49688afbb19e898c3734ba2ef8
21+master_sites        http://www.sockpuppet.org/tqbf/
22+extract.suffix      .tgz
23+checksums                      md5  9603a1c387b1cb0fc7e1a200002b578f \
24+                                       sha1 7931f258f06853188c052eb2d72a2d4c6fb8f8b1
25 
26 depends_lib         port:libevent port:libpcap port:openssl port:zlib
27 
28@@ -29,5 +30,20 @@
29 
30 post-patch {
31        reinplace "s|/usr/local|\$\(DESTDIR\)/${prefix}|g" ${worksrcpath}/Makefile
32+       reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/bkb
33+       reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/sub.c
34+       reinplace "s|/usr/local|\$\(DESTDIR\)/${prefix}|g" ${worksrcpath}/asn/Makefile
35+       reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/asn/asn
36+       reinplace "s|-I../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
37+       reinplace "s|-L../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
38+       reinplace "s|-I\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/common.mk
39+       reinplace "s|-L\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/common.mk
40+       reinplace "s|-L\$\(TOP\)/../third-party/libevent-1.0b||g" ${worksrcpath}/asn/Makefile
41+    system "touch ${worksrcpath}/sub.macros"
42 }
43 
44+post-destroot {
45+    xinstall -m 755 -d  ${destroot}${prefix}/share/doc/${name}
46+    xinstall -m 0644 ${worksrcpath}/README \
47+        ${destroot}${prefix}/share/doc/${name}/README
48+}