Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2007 01:04:40 GMT
From:      Lutz Boehne<lboehne@damogran.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/108067: New port: devel/libdisasm The Bastard Disassembly Environment x86 disassembler library
Message-ID:  <200701180104.l0I14ePw011851@www.freebsd.org>
Resent-Message-ID: <200701180110.l0I1ASrI062468@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108067
>Category:       ports
>Synopsis:       New port: devel/libdisasm The Bastard Disassembly Environment x86 disassembler library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 18 01:10:27 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Lutz Boehne
>Release:        RELENG_6
>Organization:
>Environment:
>Description:
The libdisasm library provides basic disassembly of Intel x86
instructions from a binary stream. The intent is to provide an easy to
use disassembler which can be called from any application; the
disassembly can be produced in AT&T syntax and Intel syntax, as well as
in an intermediate format which includes detailed instruction and
operand type information.

WWW: http://bastard.sourceforge.net/libdisasm.html

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libdisasm
#	libdisasm/Makefile
#	libdisasm/pkg-descr
#	libdisasm/pkg-plist
#	libdisasm/files
#	libdisasm/files/patch-Makefile
#	libdisasm/distinfo
#
echo c - libdisasm
mkdir -p libdisasm > /dev/null 2>&1
echo x - libdisasm/Makefile
sed 's/^X//' >libdisasm/Makefile << 'END-of-libdisasm/Makefile'
X# New ports collection makefile for:   libdisasm
X# Date created:        18 January 2006
X# Whom:                Lutz Boehne <lboehne@damogran.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      libdisasm
XPORTVERSION=   0.21
XCATEGORIES=    devel
XMASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	bastard
XDISTNAME=	libdisasm-0.21-pre3
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	lboehne@damogran.de
XCOMMENT=	The Bastard Disassembly Environment x86 disassembler library
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
XUSE_GMAKE=     yes
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's, make, gmake,' ${WRKSRC}/Makefile
X
X.if !defined(NOPORTDOCS)
XDOCSDIR=        ${PREFIX}/share/${PORTNAME}/doc
XDOCS=           libdisasm.txt
X.endif
X
XMAN3=	x86_disasm.3 x86_format_insn.3 x86_init.3
XMAN7=	libdisasm.7
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/libdisasm/libdisasm.so ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libdisasm/libdisasm.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libdisasm/libdis.h ${PREFIX}/include
X	${MKDIR} ${PREFIX}/share/${PORTNAME}/data
X	${INSTALL_DATA} ${WRKSRC}/libdisasm/ia32_opcode.dat ${PREFIX}/share/${PORTNAME}/data
X.if !defined(NOPORTDOCS)
X.for i in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/${PORTNAME}/doc
X.endfor
X.endif
X.for i in ${MAN3}
X	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man3
X.endfor
X.for i in ${MAN7}
X	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man7
X.endfor
X
X.include <bsd.port.mk>
END-of-libdisasm/Makefile
echo x - libdisasm/pkg-descr
sed 's/^X//' >libdisasm/pkg-descr << 'END-of-libdisasm/pkg-descr'
XThe libdisasm library provides basic disassembly of Intel x86
Xinstructions from a binary stream. The intent is to provide an easy to
Xuse disassembler which can be called from any application; the
Xdisassembly can be produced in AT&T syntax and Intel syntax, as well as
Xin an intermediate format which includes detailed instruction and
Xoperand type information.
X
XWWW: http://bastard.sourceforge.net/libdisasm.html
END-of-libdisasm/pkg-descr
echo x - libdisasm/pkg-plist
sed 's/^X//' >libdisasm/pkg-plist << 'END-of-libdisasm/pkg-plist'
Xlib/libdisasm.a
Xlib/libdisasm.so
Xinclude/libdis.h
Xshare/libdisasm/data/ia32_opcode.dat
X%%PORTDOCS%%%%DOCSDIR%%
X@dirrm share/libdisasm
END-of-libdisasm/pkg-plist
echo c - libdisasm/files
mkdir -p libdisasm/files > /dev/null 2>&1
echo x - libdisasm/files/patch-Makefile
sed 's/^X//' >libdisasm/files/patch-Makefile << 'END-of-libdisasm/files/patch-Makefile'
X--- Makefile.old	Sat Apr 29 02:16:24 2006
X+++ Makefile	Thu Jan 18 01:01:08 2007
X@@ -48,7 +48,7 @@
X # ============================================================================
X # TARGETS
X 
X-all: $(LIBDIS) $(X86DIS) $(TESTDIS) swig-modules
X+all: $(LIBDIS)
X dummy: x86dis libdisasm test dist swig-modules install clean
X 
X # ------------------------------------------------------- LIBDIS
X@@ -86,15 +86,15 @@
X 	cd swig && make clean
X 
X # ------------------------------------------------------- INSTALL
X-install: $(LIBDIS) $(X86DIS) 
X+install: $(LIBDIS)
X #swig-install
X 	# install bindistrib files to INSTALL_LOC
X 	cd libdisasm && make install
X-	cd x86dis && make install
X-	cd man && make install
X-	cd doc && make install
X-	cd perl && make install
X-	cd swig && make install
X+	#cd x86dis && make install
X+	#cd man && make install
X+	#cd doc && make install
X+	#cd perl && make install
X+	#cd swig && make install
X 
X uninstall:
X 	cd libdisasm && make uninstall
END-of-libdisasm/files/patch-Makefile
echo x - libdisasm/distinfo
sed 's/^X//' >libdisasm/distinfo << 'END-of-libdisasm/distinfo'
XMD5 (libdisasm-0.21-pre3.tgz) = c3313485ec8cebb7646518a10c3101dc
XSHA256 (libdisasm-0.21-pre3.tgz) = f56a4a07ee8107815e87af3bd7da6348dea91f16ab40a0d90d5a028ef556be90
XSIZE (libdisasm-0.21-pre3.tgz) = 198158
END-of-libdisasm/distinfo
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701180104.l0I14ePw011851>