summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdt <gdt>2015-02-27 12:11:20 +0000
committergdt <gdt>2015-02-27 12:11:20 +0000
commitf3d3374318091ccc9b71c1638ced182e2198b3fb (patch)
tree997d6a9f41a5031c2f776b12c226221fd66f7b2b
parent720a2f9b8ecf92af91e628f666b340f432f7453c (diff)
downloadpkgsrc-f3d3374318091ccc9b71c1638ced182e2198b3fb.tar.gz
Import radare2-0.9.8 as devel/radare2.
radare2 is an advanced commandline hexadecimal editor with a set of tools for working with binary files. Most of tools that come with radare2 have been designed for reverse engineering file formats, firmwares, programs, libraries, etc. Radare2 project started as a forensics tool, a scriptable commandline hexadecimal editor able to open disk files, but later support for analyzing binaries, disassembling code, debugging programs, attaching to remote gdb servers.. Packaged in wip by Kamil Rytarowski.
-rw-r--r--devel/radare2/DESCR11
-rw-r--r--devel/radare2/Makefile26
-rw-r--r--devel/radare2/PLIST419
-rw-r--r--devel/radare2/distinfo9
-rw-r--r--devel/radare2/options.mk17
-rw-r--r--devel/radare2/patches/patch-configure18
-rw-r--r--devel/radare2/patches/patch-libr-Makefile25
-rw-r--r--devel/radare2/patches/patch-libr-core-p-Makefile21
-rw-r--r--devel/radare2/patches/patch-shlr-zip-deps.mk16
9 files changed, 562 insertions, 0 deletions
diff --git a/devel/radare2/DESCR b/devel/radare2/DESCR
new file mode 100644
index 00000000000..01b28ee7d7c
--- /dev/null
+++ b/devel/radare2/DESCR
@@ -0,0 +1,11 @@
+radare2 is an advanced commandline hexadecimal editor
+with a set of tools for working with binary files.
+
+Most of tools that come with radare2 have been designed
+for reverse engineering file formats, firmwares, programs,
+libraries, etc.
+
+Radare2 project started as a forensics tool, a scriptable
+commandline hexadecimal editor able to open disk files,
+but later support for analyzing binaries, disassembling
+code, debugging programs, attaching to remote gdb servers..
diff --git a/devel/radare2/Makefile b/devel/radare2/Makefile
new file mode 100644
index 00000000000..168703ddd80
--- /dev/null
+++ b/devel/radare2/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2015/02/27 12:11:20 gdt Exp $
+
+DISTNAME= radare2-0.9.8
+CATEGORIES= devel
+MASTER_SITES= http://www.radare.org/get/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.radare.org/
+COMMENT= Reverse engineering framework
+LICENSE= gnu-gpl-v3
+
+HAS_CONFIGURE= YES
+CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
+CONFIGURE_ARGS+= --with-sysmagic
+CONFIGURE_ARGS+= --with-syscapstone
+CONFIGURE_ARGS+= --with-syszip
+PKGCONFIG_OVERRIDE+= pkgcfg/*.pc*
+USE_TOOLS+= gmake
+
+.include "options.mk"
+
+.include "../../devel/capstone/buildlink3.mk"
+.include "../../sysutils/file/buildlink3.mk"
+.include "../../archivers/libzip/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/radare2/PLIST b/devel/radare2/PLIST
new file mode 100644
index 00000000000..1d7baf7af53
--- /dev/null
+++ b/devel/radare2/PLIST
@@ -0,0 +1,419 @@
+@comment $NetBSD: PLIST,v 1.1 2015/02/27 12:11:20 gdt Exp $
+bin/r2
+bin/r2agent
+bin/rabin2
+bin/radare2
+bin/radiff2
+bin/rafind2
+bin/ragg2
+bin/ragg2-cc
+bin/rahash2
+bin/rarun2
+bin/rasm2
+bin/rax2
+include/libr/btree.h
+include/libr/ht.h
+include/libr/list.h
+include/libr/r.h
+include/libr/r_anal.h
+include/libr/r_anal_ex.h
+include/libr/r_asm.h
+include/libr/r_bin.h
+include/libr/r_bin_dwarf.h
+include/libr/r_bind.h
+include/libr/r_bp.h
+include/libr/r_cmd.h
+include/libr/r_config.h
+include/libr/r_cons.h
+include/libr/r_core.h
+include/libr/r_crypto.h
+include/libr/r_db.h
+include/libr/r_debug.h
+include/libr/r_diff.h
+include/libr/r_egg.h
+include/libr/r_flags.h
+include/libr/r_flist.h
+include/libr/r_fs.h
+include/libr/r_hash.h
+include/libr/r_io.h
+include/libr/r_lang.h
+include/libr/r_lib.h
+include/libr/r_list.h
+include/libr/r_magic.h
+include/libr/r_parse.h
+include/libr/r_pdb.h
+include/libr/r_print.h
+include/libr/r_reg.h
+include/libr/r_regex.h
+include/libr/r_search.h
+include/libr/r_sign.h
+include/libr/r_slist.h
+include/libr/r_socket.h
+include/libr/r_syscall.h
+include/libr/r_th.h
+include/libr/r_types.h
+include/libr/r_types_base.h
+include/libr/r_userconf.h
+include/libr/r_util.h
+include/libr/sdb.h
+include/libr/sdb/buffer.h
+include/libr/sdb/cdb.h
+include/libr/sdb/cdb_make.h
+include/libr/sdb/config.h
+include/libr/sdb/ht.h
+include/libr/sdb/ls.h
+include/libr/sdb/sdb-version.h
+include/libr/sdb/sdb.h
+include/libr/sdb/types.h
+include/libr/sflib/common/sfsocketcall.h
+include/libr/sflib/common/sftypes.h
+include/libr/sflib/darwin-x86-32/sflib.h
+include/libr/sflib/darwin-x86-32/sfsyscall.h
+include/libr/sflib/darwin-x86-32/sfsysnr.h
+include/libr/sflib/darwin-x86-64/sflib.h
+include/libr/sflib/darwin-x86-64/sfsyscall.h
+include/libr/sflib/darwin-x86-64/sfsysnr.h
+include/libr/sflib/linux-x86-32/sflib.h
+include/libr/sflib/linux-x86-32/sfsyscall.h
+include/libr/sflib/linux-x86-32/sfsysnr.h
+include/libr/sflib/linux-x86-64/sflib.h
+include/libr/sflib/linux-x86-64/sfsyscall.h
+include/libr/sflib/linux-x86-64/sfsysnr.h
+lib/libr2.so
+lib/libr_anal.so
+lib/libr_anal.so.${PKGVERSION}
+lib/libr_asm.so
+lib/libr_asm.so.${PKGVERSION}
+lib/libr_bin.so
+lib/libr_bin.so.${PKGVERSION}
+lib/libr_bp.so
+lib/libr_bp.so.${PKGVERSION}
+lib/libr_config.so
+lib/libr_config.so.${PKGVERSION}
+lib/libr_cons.so
+lib/libr_cons.so.${PKGVERSION}
+lib/libr_core.so
+lib/libr_core.so.${PKGVERSION}
+lib/libr_crypto.so
+lib/libr_crypto.so.${PKGVERSION}
+lib/libr_db.so
+lib/libr_db.so.${PKGVERSION}
+lib/libr_debug.so
+lib/libr_debug.so.${PKGVERSION}
+lib/libr_diff.so
+lib/libr_diff.so.${PKGVERSION}
+lib/libr_egg.so
+lib/libr_egg.so.${PKGVERSION}
+lib/libr_flags.so
+lib/libr_flags.so.${PKGVERSION}
+lib/libr_fs.so
+lib/libr_fs.so.${PKGVERSION}
+lib/libr_hash.so
+lib/libr_hash.so.${PKGVERSION}
+lib/libr_io.so
+lib/libr_io.so.${PKGVERSION}
+lib/libr_lang.so
+lib/libr_lang.so.${PKGVERSION}
+lib/libr_magic.so
+lib/libr_magic.so.${PKGVERSION}
+lib/libr_parse.so
+lib/libr_parse.so.${PKGVERSION}
+lib/libr_reg.so
+lib/libr_reg.so.${PKGVERSION}
+lib/libr_search.so
+lib/libr_search.so.${PKGVERSION}
+lib/libr_socket.so
+lib/libr_socket.so.${PKGVERSION}
+lib/libr_syscall.so
+lib/libr_syscall.so.${PKGVERSION}
+lib/libr_util.so
+lib/libr_util.so.${PKGVERSION}
+lib/pkgconfig/r_anal.pc
+lib/pkgconfig/r_asm.pc
+lib/pkgconfig/r_bin.pc
+lib/pkgconfig/r_bp.pc
+lib/pkgconfig/r_config.pc
+lib/pkgconfig/r_cons.pc
+lib/pkgconfig/r_core.pc
+lib/pkgconfig/r_db.pc
+lib/pkgconfig/r_debug.pc
+lib/pkgconfig/r_diff.pc
+lib/pkgconfig/r_flags.pc
+lib/pkgconfig/r_fs.pc
+lib/pkgconfig/r_hash.pc
+lib/pkgconfig/r_io.pc
+lib/pkgconfig/r_lang.pc
+lib/pkgconfig/r_magic.pc
+lib/pkgconfig/r_parse.pc
+lib/pkgconfig/r_reg.pc
+lib/pkgconfig/r_search.pc
+lib/pkgconfig/r_socket.pc
+lib/pkgconfig/r_syscall.pc
+lib/pkgconfig/r_util.pc
+lib/radare2/${PKGVERSION}/asm_6502.so
+lib/radare2/${PKGVERSION}/asm_arm_gnu.so
+lib/radare2/${PKGVERSION}/asm_arm_winedbg.so
+lib/radare2/${PKGVERSION}/asm_avr.so
+lib/radare2/${PKGVERSION}/asm_bf.so
+lib/radare2/${PKGVERSION}/asm_cr16.so
+lib/radare2/${PKGVERSION}/asm_csr.so
+lib/radare2/${PKGVERSION}/asm_dalvik.so
+lib/radare2/${PKGVERSION}/asm_ebc.so
+lib/radare2/${PKGVERSION}/asm_gb.so
+lib/radare2/${PKGVERSION}/asm_h8300.so
+lib/radare2/${PKGVERSION}/asm_java.so
+lib/radare2/${PKGVERSION}/asm_malbolge.so
+lib/radare2/${PKGVERSION}/asm_mips_gnu.so
+lib/radare2/${PKGVERSION}/asm_msil.so
+lib/radare2/${PKGVERSION}/asm_msp430.so
+lib/radare2/${PKGVERSION}/asm_ppc_cs.so
+lib/radare2/${PKGVERSION}/asm_ppc_gnu.so
+lib/radare2/${PKGVERSION}/asm_propeller.so
+lib/radare2/${PKGVERSION}/asm_psosvm.so
+lib/radare2/${PKGVERSION}/asm_sh.so
+lib/radare2/${PKGVERSION}/asm_snes.so
+lib/radare2/${PKGVERSION}/asm_sparc_cs.so
+lib/radare2/${PKGVERSION}/asm_sparc_gnu.so
+lib/radare2/${PKGVERSION}/asm_spc700.so
+lib/radare2/${PKGVERSION}/asm_tms320.so
+lib/radare2/${PKGVERSION}/asm_v850.so
+lib/radare2/${PKGVERSION}/asm_ws.so
+lib/radare2/${PKGVERSION}/asm_x86_as.so
+lib/radare2/${PKGVERSION}/asm_x86_cs.so
+lib/radare2/${PKGVERSION}/asm_x86_nasm.so
+lib/radare2/${PKGVERSION}/asm_x86_nz.so
+lib/radare2/${PKGVERSION}/asm_x86_olly.so
+lib/radare2/${PKGVERSION}/asm_x86_udis.so
+lib/radare2/${PKGVERSION}/bin_any.so
+lib/radare2/${PKGVERSION}/bin_bios.so
+lib/radare2/${PKGVERSION}/bin_coff.so
+lib/radare2/${PKGVERSION}/bin_dex.so
+lib/radare2/${PKGVERSION}/bin_elf.so
+lib/radare2/${PKGVERSION}/bin_elf64.so
+lib/radare2/${PKGVERSION}/bin_fs.so
+lib/radare2/${PKGVERSION}/bin_java.so
+lib/radare2/${PKGVERSION}/bin_mach0.so
+lib/radare2/${PKGVERSION}/bin_mach064.so
+lib/radare2/${PKGVERSION}/bin_ningb.so
+lib/radare2/${PKGVERSION}/bin_ningba.so
+lib/radare2/${PKGVERSION}/bin_pe.so
+lib/radare2/${PKGVERSION}/bin_pe64.so
+lib/radare2/${PKGVERSION}/bin_te.so
+lib/radare2/${PKGVERSION}/bin_xbe.so
+lib/radare2/${PKGVERSION}/bin_xtr_dyldcache.so
+lib/radare2/${PKGVERSION}/bin_xtr_fatmach0.so
+lib/radare2/${PKGVERSION}/bp_arm.so
+lib/radare2/${PKGVERSION}/bp_x86.so
+lib/radare2/${PKGVERSION}/core_java.so
+lib/radare2/${PKGVERSION}/crypto_aes.so
+lib/radare2/${PKGVERSION}/debug_gdb.so
+lib/radare2/${PKGVERSION}/debug_native.so
+lib/radare2/${PKGVERSION}/hud/main
+lib/radare2/${PKGVERSION}/io_debug.so
+lib/radare2/${PKGVERSION}/io_gdb.so
+lib/radare2/${PKGVERSION}/io_haret.so
+lib/radare2/${PKGVERSION}/io_mach.so
+lib/radare2/${PKGVERSION}/io_malloc.so
+lib/radare2/${PKGVERSION}/io_procpid.so
+lib/radare2/${PKGVERSION}/io_ptrace.so
+lib/radare2/${PKGVERSION}/io_shm.so
+lib/radare2/${PKGVERSION}/io_w32dbg.so
+lib/radare2/${PKGVERSION}/magic/OpenBSD
+lib/radare2/${PKGVERSION}/magic/archive
+lib/radare2/${PKGVERSION}/magic/cafebabe
+lib/radare2/${PKGVERSION}/magic/code
+lib/radare2/${PKGVERSION}/magic/compressed
+lib/radare2/${PKGVERSION}/magic/database
+lib/radare2/${PKGVERSION}/magic/elf
+lib/radare2/${PKGVERSION}/magic/filesystems
+lib/radare2/${PKGVERSION}/magic/firmware
+lib/radare2/${PKGVERSION}/magic/flash
+lib/radare2/${PKGVERSION}/magic/freebsd
+lib/radare2/${PKGVERSION}/magic/gimp
+lib/radare2/${PKGVERSION}/magic/html
+lib/radare2/${PKGVERSION}/magic/images
+lib/radare2/${PKGVERSION}/magic/java
+lib/radare2/${PKGVERSION}/magic/jpeg
+lib/radare2/${PKGVERSION}/magic/linux
+lib/radare2/${PKGVERSION}/magic/mach
+lib/radare2/${PKGVERSION}/magic/macintosh
+lib/radare2/${PKGVERSION}/magic/mail.news
+lib/radare2/${PKGVERSION}/magic/microsoft
+lib/radare2/${PKGVERSION}/magic/mime
+lib/radare2/${PKGVERSION}/magic/netbsd
+lib/radare2/${PKGVERSION}/magic/network
+lib/radare2/${PKGVERSION}/magic/pdf
+lib/radare2/${PKGVERSION}/magic/perl
+lib/radare2/${PKGVERSION}/magic/python
+lib/radare2/${PKGVERSION}/magic/riff
+lib/radare2/${PKGVERSION}/magic/sniffer
+lib/radare2/${PKGVERSION}/magic/sql
+lib/radare2/${PKGVERSION}/magic/ssh
+lib/radare2/${PKGVERSION}/magic/uuencode
+lib/radare2/${PKGVERSION}/magic/video
+lib/radare2/${PKGVERSION}/magic/vim
+lib/radare2/${PKGVERSION}/magic/vorbis
+lib/radare2/${PKGVERSION}/magic/zfs
+lib/radare2/${PKGVERSION}/opcodes/arm.sdb
+lib/radare2/${PKGVERSION}/opcodes/ppc.sdb
+lib/radare2/${PKGVERSION}/opcodes/x86.sdb
+lib/radare2/${PKGVERSION}/opcodes/z80.sdb
+lib/radare2/${PKGVERSION}/parse_att2intel.so
+lib/radare2/${PKGVERSION}/parse_mreplace.so
+lib/radare2/${PKGVERSION}/parse_x86_pseudo.so
+lib/radare2/${PKGVERSION}/syscall/darwin-x86-32.sdb
+lib/radare2/${PKGVERSION}/syscall/darwin-x86-64.sdb
+lib/radare2/${PKGVERSION}/syscall/dos-x86-16.sdb
+lib/radare2/${PKGVERSION}/syscall/freebsd-x86-32.sdb
+lib/radare2/${PKGVERSION}/syscall/linux-arm-32.sdb
+lib/radare2/${PKGVERSION}/syscall/linux-mips-32.sdb
+lib/radare2/${PKGVERSION}/syscall/linux-sparc-32.sdb
+lib/radare2/${PKGVERSION}/syscall/linux-x86-32.sdb
+lib/radare2/${PKGVERSION}/syscall/linux-x86-64.sdb
+lib/radare2/${PKGVERSION}/syscall/netbsd-x86-32.sdb
+lib/radare2/${PKGVERSION}/syscall/openbsd-x86-32.sdb
+lib/radare2/${PKGVERSION}/syscall/openbsd-x86-64.sdb
+lib/radare2/${PKGVERSION}/syscall/windows-x86-32.sdb
+lib/radare2/${PKGVERSION}/syscall/windows-x86-64.sdb
+lib/radare2/last
+man/man1/r2.1
+man/man1/rabin2.1
+man/man1/radare2.1
+man/man1/radiff2.1
+man/man1/rafind2.1
+man/man1/ragg2-cc.1
+man/man1/ragg2.1
+man/man1/rahash2.1
+man/man1/rarun2.1
+man/man1/rasm2.1
+man/man1/rax2.1
+share/doc/radare2/all68k.r2
+share/doc/radare2/analvars
+share/doc/radare2/android
+share/doc/radare2/bindiff
+share/doc/radare2/brainfuck
+share/doc/radare2/changes-from-1.x
+share/doc/radare2/dospart
+share/doc/radare2/dwarf-line.rsc
+share/doc/radare2/emscripten
+share/doc/radare2/flirt
+share/doc/radare2/fortunes
+share/doc/radare2/gdb
+share/doc/radare2/haiku
+share/doc/radare2/hud
+share/doc/radare2/idc2r.py
+share/doc/radare2/idc2rdb.idc
+share/doc/radare2/idc2rdb.pl
+share/doc/radare2/io
+share/doc/radare2/io-fixing
+share/doc/radare2/iocache
+share/doc/radare2/iphone.md
+share/doc/radare2/kvast
+share/doc/radare2/lang-plugins
+share/doc/radare2/macros
+share/doc/radare2/maemo
+share/doc/radare2/objc.pl
+share/doc/radare2/oo
+share/doc/radare2/osx
+share/doc/radare2/plugins
+share/doc/radare2/portscan.r2
+share/doc/radare2/qnx
+share/doc/radare2/rapatch
+share/doc/radare2/releases
+share/doc/radare2/repo
+share/doc/radare2/rgraph
+share/doc/radare2/solaris
+share/doc/radare2/static
+share/doc/radare2/static-plugins
+share/doc/radare2/strings
+share/doc/radare2/syntax
+share/doc/radare2/vim
+share/doc/radare2/windows
+share/doc/radare2/yara.md
+share/radare2/${PKGVERSION}/cons/Makefile
+share/radare2/${PKGVERSION}/cons/consonance
+share/radare2/${PKGVERSION}/cons/dark
+share/radare2/${PKGVERSION}/cons/focus
+share/radare2/${PKGVERSION}/cons/lima
+share/radare2/${PKGVERSION}/cons/ogray
+share/radare2/${PKGVERSION}/cons/pink
+share/radare2/${PKGVERSION}/cons/rasta
+share/radare2/${PKGVERSION}/cons/smyck
+share/radare2/${PKGVERSION}/cons/solarized
+share/radare2/${PKGVERSION}/cons/tango
+share/radare2/${PKGVERSION}/cons/twilight
+share/radare2/${PKGVERSION}/cons/white
+share/radare2/${PKGVERSION}/cons/zenburn
+share/radare2/${PKGVERSION}/format/Makefile
+share/radare2/${PKGVERSION}/format/elf32
+share/radare2/${PKGVERSION}/format/elf64
+share/radare2/${PKGVERSION}/format/elf_enums
+share/radare2/${PKGVERSION}/format/pe32
+share/radare2/${PKGVERSION}/format/trx
+share/radare2/${PKGVERSION}/www/d3/d3.js
+share/radare2/${PKGVERSION}/www/d3/d3.layout.js
+share/radare2/${PKGVERSION}/www/d3/index.html
+share/radare2/${PKGVERSION}/www/d3/packages.js
+share/radare2/${PKGVERSION}/www/d3/style.css
+share/radare2/${PKGVERSION}/www/enyo/Makefile
+share/radare2/${PKGVERSION}/www/enyo/build/app.css
+share/radare2/${PKGVERSION}/www/enyo/build/app.js
+share/radare2/${PKGVERSION}/www/enyo/build/enyo.css
+share/radare2/${PKGVERSION}/www/enyo/build/enyo.js
+share/radare2/${PKGVERSION}/www/enyo/colors/index.html
+share/radare2/${PKGVERSION}/www/enyo/favicon.ico
+share/radare2/${PKGVERSION}/www/enyo/icon.png
+share/radare2/${PKGVERSION}/www/enyo/index.css
+share/radare2/${PKGVERSION}/www/enyo/index.html
+share/radare2/${PKGVERSION}/www/enyo/index.js
+share/radare2/${PKGVERSION}/www/enyo/js/about.js
+share/radare2/${PKGVERSION}/www/enyo/js/assembler.js
+share/radare2/${PKGVERSION}/www/enyo/js/config.js
+share/radare2/${PKGVERSION}/www/enyo/js/console.js
+share/radare2/${PKGVERSION}/www/enyo/js/debugger.js
+share/radare2/${PKGVERSION}/www/enyo/js/disassembler.js
+share/radare2/${PKGVERSION}/www/enyo/js/graph.js
+share/radare2/${PKGVERSION}/www/enyo/js/hexdump.js
+share/radare2/${PKGVERSION}/www/enyo/js/leftpanel.js
+share/radare2/${PKGVERSION}/www/enyo/js/logs.js
+share/radare2/${PKGVERSION}/www/enyo/js/main.js
+share/radare2/${PKGVERSION}/www/enyo/js/mainpanel.js
+share/radare2/${PKGVERSION}/www/enyo/js/r2.js
+share/radare2/${PKGVERSION}/www/enyo/js/r2ui.js
+share/radare2/${PKGVERSION}/www/enyo/js/rightpanel.js
+share/radare2/${PKGVERSION}/www/enyo/js/script.js
+share/radare2/${PKGVERSION}/www/enyo/js/search.js
+share/radare2/${PKGVERSION}/www/enyo/js/settings.js
+share/radare2/${PKGVERSION}/www/enyo/lib/onyx/images/gradient-invert.png
+share/radare2/${PKGVERSION}/www/enyo/lib/onyx/images/gradient.png
+share/radare2/${PKGVERSION}/www/enyo/r2ui.js
+share/radare2/${PKGVERSION}/www/enyo/two
+share/radare2/${PKGVERSION}/www/favicon.ico
+share/radare2/${PKGVERSION}/www/graph/img/arrow.gif
+share/radare2/${PKGVERSION}/www/graph/img/arrow_d.gif
+share/radare2/${PKGVERSION}/www/graph/img/arrow_l.gif
+share/radare2/${PKGVERSION}/www/graph/img/arrow_r.gif
+share/radare2/${PKGVERSION}/www/graph/img/arrow_u.gif
+share/radare2/${PKGVERSION}/www/graph/index.html
+share/radare2/${PKGVERSION}/www/graph/index.js
+share/radare2/${PKGVERSION}/www/graph/js-graph-it.css
+share/radare2/${PKGVERSION}/www/graph/js-graph-it.js
+share/radare2/${PKGVERSION}/www/graph/make.sh
+share/radare2/${PKGVERSION}/www/graph/sf-homepage.css
+share/radare2/${PKGVERSION}/www/index.html
+share/radare2/${PKGVERSION}/www/log.html
+share/radare2/${PKGVERSION}/www/old/index.html
+share/radare2/${PKGVERSION}/www/old/rlogo2.png
+share/radare2/${PKGVERSION}/www/old/script.js
+share/radare2/${PKGVERSION}/www/old/style.css
+share/radare2/${PKGVERSION}/www/rlogo.png
+share/radare2/${PKGVERSION}/www/t/Makefile
+share/radare2/${PKGVERSION}/www/t/README.md
+share/radare2/${PKGVERSION}/www/t/index.html
+share/radare2/${PKGVERSION}/www/t/main.js
+share/radare2/${PKGVERSION}/www/t/r2.js
+share/radare2/${PKGVERSION}/www/t/style.css
+share/radare2/${PKGVERSION}/www/t/tiled.js
+share/radare2/${PKGVERSION}/www/upload.html
+share/radare2/${PKGVERSION}/yara/crypto.yara.gz
+share/radare2/${PKGVERSION}/yara/packers.yara.gz
diff --git a/devel/radare2/distinfo b/devel/radare2/distinfo
new file mode 100644
index 00000000000..4d1f59310e7
--- /dev/null
+++ b/devel/radare2/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2015/02/27 12:11:20 gdt Exp $
+
+SHA1 (radare2-0.9.8.tar.xz) = 7fce08c3d08749e91a0ce3bee177ba389ae145f4
+RMD160 (radare2-0.9.8.tar.xz) = 8a8ab14d14e61117f48b59c8c8aadb81baf2da5e
+Size (radare2-0.9.8.tar.xz) = 4614588 bytes
+SHA1 (patch-configure) = ca5cebd09cf2695e350e0b59812ce2a30374aea8
+SHA1 (patch-libr-Makefile) = 1f80e2ae90fed2f6125272dced96a72e11cce946
+SHA1 (patch-libr-core-p-Makefile) = 8489aca717bdaa9155b50d2956290e84a35d0ff8
+SHA1 (patch-shlr-zip-deps.mk) = a0f4886093cba9fccec83a844447fa44a5054d44
diff --git a/devel/radare2/options.mk b/devel/radare2/options.mk
new file mode 100644
index 00000000000..033cb43b587
--- /dev/null
+++ b/devel/radare2/options.mk
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2015/02/27 12:11:20 gdt Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.radare2
+PKG_SUPPORTED_OPTIONS= ssl debug
+PKG_SUGGESTED_OPTIONS= debug
+
+.include "../../mk/bsd.options.mk"
+
+# SSL support
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-openssl
+.endif
+
+.if empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --disable-debugger
+.endif
diff --git a/devel/radare2/patches/patch-configure b/devel/radare2/patches/patch-configure
new file mode 100644
index 00000000000..aa66ec89aea
--- /dev/null
+++ b/devel/radare2/patches/patch-configure
@@ -0,0 +1,18 @@
+$NetBSD: patch-configure,v 1.1 2015/02/27 12:11:20 gdt Exp $
+
+Install libs with +x perms
+Patch cherry-picked from upstream
+
+https://github.com/radare/radare2/commit/046f0a447e2bc4a7907ed1d6911af4ba2a9ca920
+
+--- configure.orig 2014-11-11 02:23:45.000000000 +0000
++++ configure
+@@ -115,7 +115,7 @@ done
+ : ${INSTALL_PROGRAM:=${INSTALL} -m 755}
+ : ${INSTALL_PROGRAM_STRIP:=${INSTALL} -m 755 -s}
+ : ${INSTALL_MAN:=${INSTALL} -m 444}
+-: ${INSTALL_LIB:=${INSTALL} -c}
++: ${INSTALL_LIB:=${INSTALL} -m 755 -c}
+ PKGNAME='radare2' ; VERSION='0.9.8' ; CONTACT_MAIL="pancake@nopcode.org" ; CONTACT_NAME="pancake" ; CONTACT="pancake <pancake@nopcode.org>" ;
+ }
+
diff --git a/devel/radare2/patches/patch-libr-Makefile b/devel/radare2/patches/patch-libr-Makefile
new file mode 100644
index 00000000000..e2e1d2b8c0b
--- /dev/null
+++ b/devel/radare2/patches/patch-libr-Makefile
@@ -0,0 +1,25 @@
+$NetBSD: patch-libr-Makefile,v 1.1 2015/02/27 12:11:20 gdt Exp $
+
+Install libs with +x perms
+Patch cherry-picked from upstream
+https://github.com/radare/radare2/commit/046f0a447e2bc4a7907ed1d6911af4ba2a9ca920
+https://github.com/radare/radare2/commit/2f551b485052f0c9207a63f05ce26406766391b0
+
+--- libr/Makefile.orig 2014-10-13 14:54:13.000000000 +0000
++++ libr/Makefile
+@@ -1,5 +1,6 @@
+ include ../global.mk
+ include config.mk
++include ../config-user.mk
+ include ../mk/${COMPILER}.mk
+
+ DESTDIR:=$(call rmbdlslash,$(DESTDIR))
+@@ -124,7 +125,7 @@ install: install-includes install-pkgcon
+ @${INSTALL_DIR} "${LFX}/radare2/${VERSION}"
+ @for a in `find */p -perm -u+x -type f | grep -v exe | grep -v dll | grep ${EXT_SO}`; \
+ do echo " ${LFX}/radare2/${VERSION}/$$a"; \
+- ${INSTALL_DATA} "$$a" "${LFX}/radare2/${VERSION}" ; done
++ ${INSTALL_LIB} "$$a" "${LFX}/radare2/${VERSION}" ; done
+ cd "${LFX}/radare2" ; ln -fs "${VERSION}" last
+
+ #@echo "lang/p/radare.* ${DESTDIR}/${PFX}/${LIBDIR}/radare2/${VERSION}"
diff --git a/devel/radare2/patches/patch-libr-core-p-Makefile b/devel/radare2/patches/patch-libr-core-p-Makefile
new file mode 100644
index 00000000000..7877c5ff0d4
--- /dev/null
+++ b/devel/radare2/patches/patch-libr-core-p-Makefile
@@ -0,0 +1,21 @@
+$NetBSD: patch-libr-core-p-Makefile,v 1.1 2015/02/27 12:11:20 gdt Exp $
+
+Cherry-picked from upstream a738fd259cb18bc03689c5377d37f7599078fdb1
+"Enable support for --syszip in libr/core/p/Makefile"
+
+--- libr/core/p/Makefile.orig 2014-07-02 16:26:02.000000000 +0000
++++ libr/core/p/Makefile
+@@ -1,4 +1,5 @@
+ include ../../config.mk
++include ../../../shlr/zip/deps.mk
+
+ CFLAGS=-I../../include -Wall -shared -fPIC ${LDFLAGS_LIB} ${LDFLAGS_LINKPATH}..
+ # XXX
+@@ -12,7 +13,6 @@ CFLAGS+=-L../../syscall -lr_syscall -L..
+ CFLAGS+=-L../../diff -lr_diff -L../../lang -lr_lang -L../../debug -lr_debug
+ CFLAGS+=-L../../bp -lr_bp -L../../reg -lr_reg -L../../asm -lr_asm
+ CFLAGS+=../../../shlr/sdb/src/libsdb.a
+-CFLAGS+=../../../shlr/zip/librz.a
+ CFLAGS+=../../../shlr/gdb/lib/libgdbr.a
+ #CFLAGS+=-L../../anal -lr_anal -L../../core -lr_core
+ LDFLAGS+=${LINK}
diff --git a/devel/radare2/patches/patch-shlr-zip-deps.mk b/devel/radare2/patches/patch-shlr-zip-deps.mk
new file mode 100644
index 00000000000..3a0ec67b082
--- /dev/null
+++ b/devel/radare2/patches/patch-shlr-zip-deps.mk
@@ -0,0 +1,16 @@
+$NetBSD: patch-shlr-zip-deps.mk,v 1.1 2015/02/27 12:11:20 gdt Exp $
+
+Cherry-picked change from upstream revision c2770de2b8fdaa4ff815dfe30f568aa618f3ac61
+"Fix #1667 - Fix --with-syszip"
+
+--- shlr/zip/deps.mk.orig 2014-06-01 15:52:59.000000000 +0000
++++ shlr/zip/deps.mk
+@@ -2,7 +2,7 @@
+ #LINK+=${STOP}/zip/zip/*.o
+ #LINK+=${STOP}/zip/zlib/*.o
+ ifeq ($(USE_LIB_ZIP),1)
+-LINK=$(LIBZIP)
++LINK+=$(LIBZIP)
+ else
+ LINK+=../../shlr/zip/librz.a
+ endif