summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-02-27 17:13:37 +0000
committerkamil <kamil@pkgsrc.org>2016-02-27 17:13:37 +0000
commita11a464a21daee567e70f0fc462246eac22a52a2 (patch)
tree43b01234d4b569dd0b705e1af8356e7e9be0996b /devel
parent7a497c40dd08a7346abf4ecd56ba5fcc7ba8b36a (diff)
downloadpkgsrc-a11a464a21daee567e70f0fc462246eac22a52a2.tar.gz
Import elfcat-1.0.0 as devel/elfcat
elfcat dumps requested parts (sections and segments) of an ELF file (executable, shared object, .o file) to stdout. Dumping sections can be achieved with "objcopy --dump-section" but this tools relies on BFD which abstracts all executable files and is not able to see some ELF sections. Morever it cannot handle program header table entries. Originally packaged as wip/elfacat by Kamil Rytarowski
Diffstat (limited to 'devel')
-rw-r--r--devel/elfcat/DESCR7
-rw-r--r--devel/elfcat/Makefile21
-rw-r--r--devel/elfcat/PLIST3
-rw-r--r--devel/elfcat/distinfo6
4 files changed, 37 insertions, 0 deletions
diff --git a/devel/elfcat/DESCR b/devel/elfcat/DESCR
new file mode 100644
index 00000000000..eb78fa3e582
--- /dev/null
+++ b/devel/elfcat/DESCR
@@ -0,0 +1,7 @@
+elfcat dumps requested parts (sections and segments) of an ELF file
+(executable, shared object, .o file) to stdout.
+
+Dumping sections can be achieved with "objcopy --dump-section" but this
+tools relies on BFD which abstracts all executable files and is not able
+to see some ELF sections. Morever it cannot handle program header table
+entries.
diff --git a/devel/elfcat/Makefile b/devel/elfcat/Makefile
new file mode 100644
index 00000000000..6708b88382e
--- /dev/null
+++ b/devel/elfcat/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2016/02/27 17:13:37 kamil Exp $
+
+DISTNAME= elfcat-1.0.0
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=randomstuff/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.rog
+HOMEPAGE= ${MASTER_SITE_GITHUB:=randomstuff/elfcat/}
+COMMENT= Dump sections or program entries from a ELF file
+LICENSE= mit
+
+USE_TOOLS+= automake autoconf autoreconf
+
+GNU_CONFIGURE= yes
+
+pre-configure:
+ ${RUN} cd ${WRKSRC} && autoreconf -fiv
+
+.include "../../devel/libelf/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/elfcat/PLIST b/devel/elfcat/PLIST
new file mode 100644
index 00000000000..00bef5e0559
--- /dev/null
+++ b/devel/elfcat/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/02/27 17:13:37 kamil Exp $
+bin/elfcat
+man/man1/elfcat.1
diff --git a/devel/elfcat/distinfo b/devel/elfcat/distinfo
new file mode 100644
index 00000000000..d45a6eacc38
--- /dev/null
+++ b/devel/elfcat/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/02/27 17:13:37 kamil Exp $
+
+SHA1 (elfcat-1.0.0.tar.gz) = e4102ffcfa7cccc7f7c31c160d4f2508060d505a
+RMD160 (elfcat-1.0.0.tar.gz) = 29c0ef8359187a6be5eb4f8a461ead73c83b48cc
+SHA512 (elfcat-1.0.0.tar.gz) = e06bc8f1639ae491b7fc0fa6f86d76d36aae96ca47a7aaa100512087cb9b5125f86c0dc82fc8b60a90b5a81f0f36c66c967be245b97d93d4b36ad77642c77164
+Size (elfcat-1.0.0.tar.gz) = 4615 bytes