diff options
author | Ned Ludd <solar@gentoo.org> | 2003-07-25 20:37:32 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2003-07-25 20:37:32 +0000 |
commit | 8b0143453bd4323715fd900000be8d55a5f545d0 (patch) | |
tree | cbdd1ae0fb849923d5fc642af8aee435588e1450 /dev-util/elfkickers | |
parent | Initial import of ELFkickers into portage, adds tools such as sstrip, rebind,... (diff) | |
download | historical-8b0143453bd4323715fd900000be8d55a5f545d0.tar.gz historical-8b0143453bd4323715fd900000be8d55a5f545d0.tar.bz2 historical-8b0143453bd4323715fd900000be8d55a5f545d0.zip |
Initial import of ELFkickers into portage, adds tools such as sstrip, rebind, elfls, elftoc, ebfc
Diffstat (limited to 'dev-util/elfkickers')
-rw-r--r-- | dev-util/elfkickers/Manifest | 3 | ||||
-rw-r--r-- | dev-util/elfkickers/elfkickers-2.0a.ebuild | 50 | ||||
-rw-r--r-- | dev-util/elfkickers/files/digest-elfkickers-2.0a | 1 | ||||
-rw-r--r-- | dev-util/elfkickers/files/elfkickers-2.0a.diff | 105 | ||||
-rw-r--r-- | dev-util/elfkickers/metadata.xml | 10 |
5 files changed, 168 insertions, 1 deletions
diff --git a/dev-util/elfkickers/Manifest b/dev-util/elfkickers/Manifest index 38fe2566a456..67a863e6e6d6 100644 --- a/dev-util/elfkickers/Manifest +++ b/dev-util/elfkickers/Manifest @@ -1,4 +1,5 @@ -MD5 72c143478e3f54b0ef3f3c81cb639ed6 elfkickers-2.0a.ebuild 1214 +MD5 77a76bbd7e41465c3bd38557f54d1b93 ChangeLog 456 +MD5 e5525312ea98df5b80fe28a326c24d45 elfkickers-2.0a.ebuild 1318 MD5 cab7f0e6a2b67731af8abbadf0ee9ff2 metadata.xml 566 MD5 b77d338ef8265dec78deb87c866b2a43 files/digest-elfkickers-2.0a 67 MD5 65a7291d3386a2c43915f548ad4ed187 files/elfkickers-2.0a.diff 3264 diff --git a/dev-util/elfkickers/elfkickers-2.0a.ebuild b/dev-util/elfkickers/elfkickers-2.0a.ebuild new file mode 100644 index 000000000000..b3116f443a0b --- /dev/null +++ b/dev-util/elfkickers/elfkickers-2.0a.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/elfkickers/elfkickers-2.0a.ebuild,v 1.1 2003/07/25 20:37:26 solar Exp $ + +IUSE="" + +MY_PN=${PN/elf/ELF} +S=${WORKDIR}/${MY_PN} + +DESCRIPTION="ELFkickers is a collection of programs to manipulate ELF files: sstrip, rebind, elfls, elftoc, ebfc" +HOMEPAGE="http://www.muppetlabs.com/~breadbox/software/elfkickers.html" +SRC_URI="http://www.muppetlabs.com/~breadbox/pub/software/${MY_PN}-${PV}.tar.gz" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="virtual/glibc + dev-lang/nasm" + +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + # custom made patch to keep the compiler warnings down + epatch ${FILESDIR}/${P}.diff +} + +src_compile() { + cd ${S} + emake -C ebfc + emake -C elfls + emake -C elftoc + emake -C rebind + emake -C sstrip + # emake -C tiny +} + +src_install() { + cd ${S} + mv -f ebfc/README README.ebfc + mv -f elfls/README README.elfls + mv -f elftoc/README README.elftoc + mv -f rebind/README README.rebind + mv -f sstrip/README README.sstrip + insinto /usr + dobin ebfc/ebfc sstrip/sstrip elfls/elfls elftoc/elftoc rebind/rebind + doman */*.1 + dodoc COPYING Changelog README + dodoc README.ebfc README.elfls README.elftoc README.rebind README.sstrip ebfc/elfparts.txt +} diff --git a/dev-util/elfkickers/files/digest-elfkickers-2.0a b/dev-util/elfkickers/files/digest-elfkickers-2.0a new file mode 100644 index 000000000000..67f608b7e0c7 --- /dev/null +++ b/dev-util/elfkickers/files/digest-elfkickers-2.0a @@ -0,0 +1 @@ +MD5 3bf4d8d285591a5b7f31170f9b87aba0 ELFkickers-2.0a.tar.gz 119659 diff --git a/dev-util/elfkickers/files/elfkickers-2.0a.diff b/dev-util/elfkickers/files/elfkickers-2.0a.diff new file mode 100644 index 000000000000..7c43d0ec4203 --- /dev/null +++ b/dev-util/elfkickers/files/elfkickers-2.0a.diff @@ -0,0 +1,105 @@ +diff -Nru ELFkickers.orig/Makefile ELFkickers/Makefile +--- ELFkickers.orig/Makefile 1969-12-31 19:00:00.000000000 -0500 ++++ ELFkickers/Makefile 2003-07-25 15:25:04.000000000 -0400 +@@ -0,0 +1,7 @@ ++SUBDIRS = ebfc elfls elftoc rebind sstrip tiny ++ ++all: ++ for d in $(SUBDIRS); do cd $$d ; CFLAGS="$(CFLAGS)" CC=$(CC) make ; cd - ; done ++clean: ++ ++ for d in $(SUBDIRS); do cd $$d ; make clean; cd - ; done +diff -Nru ELFkickers.orig/ebfc/Makefile ELFkickers/ebfc/Makefile +--- ELFkickers.orig/ebfc/Makefile 2001-01-17 08:23:56.000000000 -0500 ++++ ELFkickers/ebfc/Makefile 2003-07-25 15:18:55.000000000 -0400 +@@ -1,8 +1,5 @@ + # Makefile for ebfc + +-CC = gcc +-CFLAGS = -ggdb -Wall +- + ebfc: ebfc.o brainfuck.o libelfparts.a + + ebfc.o: ebfc.c elfparts.h ebfc.h +diff -Nru ELFkickers.orig/ebfc/rel.c ELFkickers/ebfc/rel.c +--- ELFkickers.orig/ebfc/rel.c 2001-03-19 10:50:18.000000000 -0500 ++++ ELFkickers/ebfc/rel.c 2003-07-25 15:16:08.000000000 -0400 +@@ -5,6 +5,7 @@ + */ + + #include <stdlib.h> ++#include <string.h> + #include <linux/elf.h> + #include "elfparts.h" + #include "gen.h" +diff -Nru ELFkickers.orig/elfls/Makefile ELFkickers/elfls/Makefile +--- ELFkickers.orig/elfls/Makefile 1999-07-07 23:57:55.000000000 -0400 ++++ ELFkickers/elfls/Makefile 2003-07-25 15:20:11.000000000 -0400 +@@ -1,7 +1,7 @@ + # Makefile for elfls + + elfls: elfls.c +- gcc -ggdb -Wall -W -o elfls elfls.c ++ $(CC) $(CFLAGS) -W -o elfls elfls.c + + clean: + rm -f elfls +diff -Nru ELFkickers.orig/elfls/elfls.c ELFkickers/elfls/elfls.c +--- ELFkickers.orig/elfls/elfls.c 2001-03-28 08:23:57.000000000 -0500 ++++ ELFkickers/elfls/elfls.c 2003-07-25 15:16:08.000000000 -0400 +@@ -4,6 +4,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #include <errno.h> + #include <stdarg.h> + #include <unistd.h> +diff -Nru ELFkickers.orig/elftoc/Makefile ELFkickers/elftoc/Makefile +--- ELFkickers.orig/elftoc/Makefile 2001-03-26 05:48:59.000000000 -0500 ++++ ELFkickers/elftoc/Makefile 2003-07-25 15:21:00.000000000 -0400 +@@ -1,9 +1,5 @@ + # Makefile for elftoc + +-CC = gcc +-CFLAGS = -ggdb -Wall +-LDFLAGS = $(CFLAGS) +- + OBJS = pieces.o addr.o shdrtab.o dynamic.o outbasic.o outtools.o out.o elftoc.o + + elftoc: $(OBJS) +diff -Nru ELFkickers.orig/elftoc/shdrtab.c ELFkickers/elftoc/shdrtab.c +--- ELFkickers.orig/elftoc/shdrtab.c 2001-03-25 08:09:09.000000000 -0500 ++++ ELFkickers/elftoc/shdrtab.c 2003-07-25 15:16:08.000000000 -0400 +@@ -5,6 +5,7 @@ + */ + + #include <stdlib.h> ++#include <string.h> + #include <ctype.h> + #include "gen.h" + #include "elf.h" +diff -Nru ELFkickers.orig/rebind/Makefile ELFkickers/rebind/Makefile +--- ELFkickers.orig/rebind/Makefile 2001-03-19 10:08:56.000000000 -0500 ++++ ELFkickers/rebind/Makefile 2003-07-25 15:21:26.000000000 -0400 +@@ -1,7 +1,7 @@ + # Makefile for rebind + + rebind: rebind.c +- gcc -ggdb -Wall -W -o rebind rebind.c ++ $(CC) $(CFLAGS) -W -o rebind rebind.c + + clean: + rm -f rebind +diff -Nru ELFkickers.orig/sstrip/Makefile ELFkickers/sstrip/Makefile +--- ELFkickers.orig/sstrip/Makefile 2001-03-24 06:58:27.000000000 -0500 ++++ ELFkickers/sstrip/Makefile 2003-07-25 15:21:47.000000000 -0400 +@@ -1,7 +1,7 @@ + # Makefile for sstrip + + sstrip: sstrip.c +- gcc -ggdb -Wall -W -o sstrip sstrip.c ++ $(CC) $(CFLAGS) -W -o sstrip sstrip.c + + clean: + rm -f sstrip diff --git a/dev-util/elfkickers/metadata.xml b/dev-util/elfkickers/metadata.xml new file mode 100644 index 000000000000..2f76d1ab72f6 --- /dev/null +++ b/dev-util/elfkickers/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>hardened</herd> + <maintainer> + <email>solar@gentoo.org</email> + <description>Primary Maintainer</description> + </maintainer> + <longdescription>ELF kickers is a collection of programs that manipulate ELF files. The main purpose of these programs is to be illustrative and educational -- to help fellow programmers understand the ELF file format and something of how it works under the Linux platform.</longdescription> +</pkgmetadata> |