1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name electric-fence |
---|
6 | version 2.1.13 |
---|
7 | revision 0.1 |
---|
8 | categories devel |
---|
9 | maintainers nomaintainer |
---|
10 | description a library to detect memory buffers over- and \ |
---|
11 | underruns |
---|
12 | |
---|
13 | long_description Electric Fence (efence) stops your program on \ |
---|
14 | the exact instruction that overruns (or \ |
---|
15 | underruns) a malloc() memory buffer. GDB will \ |
---|
16 | then display the source-code line that causes \ |
---|
17 | the bug. It works by using the virtual-memory \ |
---|
18 | hardware to create a red-zone at the border of \ |
---|
19 | each buffer - touch that, and your program \ |
---|
20 | stops. Catch all of those formerly \ |
---|
21 | impossible-to-catch overrun bugs that have \ |
---|
22 | been bothering you for years. |
---|
23 | homepage http://perens.com/FreeSoftware/ |
---|
24 | platforms darwin |
---|
25 | master_sites http://perens.com/FreeSoftware/ElectricFence/ |
---|
26 | distname ${name}_${version}-${revision} |
---|
27 | worksrcdir ${name}-${version} |
---|
28 | checksums md5 59e4e7817a30aff52d8971ce00e1ad35 \ |
---|
29 | sha1 e6765bcb1543272040b806eea706fc7ae9b60524 \ |
---|
30 | rmd160 75e41de7bef263007f24a1053528959f9f7fe1fa |
---|
31 | patchfiles patch-page.c.diff |
---|
32 | |
---|
33 | use_configure no |
---|
34 | |
---|
35 | build.target libefence.a |
---|
36 | build.args CFLAGS="-g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS" |
---|
37 | |
---|
38 | test.run yes |
---|
39 | test.target all |
---|
40 | test.args CFLAGS="-g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS" |
---|
41 | |
---|
42 | destroot.destdir LIB_INSTALL_DIR=${destroot}${prefix}/lib MAN_INSTALL_DIR=${destroot}${prefix}/share/man/man3 |
---|
43 | |
---|
44 | livecheck.version ${name}_${version} |
---|