pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

elfhash-git: Import elfhash-master as wip/elfhash-git



Module Name:	pkgsrc-wip
Committed By:	Dean Matzkov <bapabooiee%gmail.com@localhost>
Pushed By:	bapa
Date:		Tue Oct 10 21:27:20 2017 -0600
Changeset:	714b6a2d003cd32dadc2aa5892c9498a1e3b4564

Added Files:
	elfhash-git/DESCR
	elfhash-git/Makefile
	elfhash-git/PLIST
	elfhash-git/TODO
	elfhash-git/distinfo
	elfhash-git/patches/patch-elf.h

Log Message:
elfhash-git: Import elfhash-master as wip/elfhash-git

elfhash is a utility to manipulate hash tables in ELF files.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=714b6a2d003cd32dadc2aa5892c9498a1e3b4564

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 elfhash-git/DESCR               |  1 +
 elfhash-git/Makefile            | 25 +++++++++++++++++++++++++
 elfhash-git/PLIST               |  3 +++
 elfhash-git/TODO                | 14 ++++++++++++++
 elfhash-git/distinfo            |  3 +++
 elfhash-git/patches/patch-elf.h | 16 ++++++++++++++++
 6 files changed, 62 insertions(+)

diffs:
diff --git a/elfhash-git/DESCR b/elfhash-git/DESCR
new file mode 100644
index 0000000000..528e3c2495
--- /dev/null
+++ b/elfhash-git/DESCR
@@ -0,0 +1 @@
+elfhash is a utility to manipulate hash tables in ELF files.
diff --git a/elfhash-git/Makefile b/elfhash-git/Makefile
new file mode 100644
index 0000000000..1f8dda5f12
--- /dev/null
+++ b/elfhash-git/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+PKGNAME=		elfhash-0.1
+CATEGORIES=		devel
+
+GIT_REPOSITORIES=		elfhash
+GIT_REPO.elfhash=		git://github.com/cjacker/elfhash
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/cjacker/elfhash
+COMMENT=	Manipulate Hash tables in ELF files
+LICENSE=	gnu-gpl-v3
+
+WRKSRC=		${WRKDIR}/elfhash
+
+USE_LANGUAGES=	c
+
+INSTALLATION_DIRS+=		bin
+INSTALLATION_DIRS+=		share/doc/${PKGBASE}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/elfhash ${DESTDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/elfhash-git/PLIST b/elfhash-git/PLIST
new file mode 100644
index 0000000000..e9159e0e64
--- /dev/null
+++ b/elfhash-git/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/elfhash
+share/doc/elfhash/README.md
diff --git a/elfhash-git/TODO b/elfhash-git/TODO
new file mode 100644
index 0000000000..80faaeda74
--- /dev/null
+++ b/elfhash-git/TODO
@@ -0,0 +1,14 @@
+- Fails to build on macOS, due to not finding features.h header.
+  For now, it's commented-out via a patch until there's a better
+  solution.
+
+- We should probably use the system's elf.h, if possible.
+
+- The author doesn't seem to use any licenses. However, he does
+  have some GPL'd stuff in his repo, like elf.h for example.
+
+  So for now we'll add GPL3 to LICENSE, and perhaps can nuke this
+  TODO item at a later when we're certain we have it right.
+
+- elfhash's Makefile hard-codes gcc and CFLAGS, and as such, doesn't
+  honor the $(CC) and $(CFLAGS) variables passed by pkgsrc.
diff --git a/elfhash-git/distinfo b/elfhash-git/distinfo
new file mode 100644
index 0000000000..dc2397a6cd
--- /dev/null
+++ b/elfhash-git/distinfo
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-elf.h) = d274ace60a671b3bc2734de9114137b54e44f16e
diff --git a/elfhash-git/patches/patch-elf.h b/elfhash-git/patches/patch-elf.h
new file mode 100644
index 0000000000..d58d1caea2
--- /dev/null
+++ b/elfhash-git/patches/patch-elf.h
@@ -0,0 +1,16 @@
+$NetBSD$
+
+On some systems (macOS, for example), features.h is not available. This is a
+quick hack to get elfhash to build on those platforms.
+
+--- elf.h.orig	2017-10-06 18:52:37.000000000 +0000
++++ elf.h
+@@ -19,7 +19,7 @@
+ #ifndef _ELF_H
+ #define	_ELF_H 1
+ 
+-#include <features.h>
++//#include <features.h>
+ 
+ __BEGIN_DECLS
+ 


Home | Main Index | Thread Index | Old Index