From 6c0c17ae29d647e1076a552160c11c5962c71ec4 Mon Sep 17 00:00:00 2001 From: Kyle Guinn Date: Tue, 11 May 2010 22:53:41 +0200 Subject: development/udis86: Added to 12.1 repository --- development/udis86/README | 4 +++ development/udis86/slack-desc | 19 +++++++++++ development/udis86/udis86.SlackBuild | 66 ++++++++++++++++++++++++++++++++++++ development/udis86/udis86.info | 8 +++++ 4 files changed, 97 insertions(+) create mode 100644 development/udis86/README create mode 100644 development/udis86/slack-desc create mode 100644 development/udis86/udis86.SlackBuild create mode 100644 development/udis86/udis86.info (limited to 'development') diff --git a/development/udis86/README b/development/udis86/README new file mode 100644 index 0000000000..559555aefa --- /dev/null +++ b/development/udis86/README @@ -0,0 +1,4 @@ +Udis86 is an easy-to-use minimalistic disassembler library (libudis86) +for the x86 and AMD64 (x86-64) range of instruction set architectures. +Also included is udcli, a small command-line tool for your quick +disassembly needs. diff --git a/development/udis86/slack-desc b/development/udis86/slack-desc new file mode 100644 index 0000000000..ea7cb36940 --- /dev/null +++ b/development/udis86/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +udis86: Udis86 (x86 disassembler) +udis86: +udis86: Udis86 is an easy-to-use minimalistic disassembler library +udis86: (libudis86) for the x86 and AMD64 (x86-64) range of instruction +udis86: set architectures. Also included is udcli, a small command-line +udis86: tool for your quick disassembly needs. +udis86: +udis86: +udis86: +udis86: +udis86: diff --git a/development/udis86/udis86.SlackBuild b/development/udis86/udis86.SlackBuild new file mode 100644 index 0000000000..341eac32ab --- /dev/null +++ b/development/udis86/udis86.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for udis86 +# Written by Kyle Guinn + +PRGNAM=udis86 +VERSION=${VERSION:-1.7} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM-$VERSION +OUTPUT=${OUTPUT:-/tmp} + +DOCS="INSTALL README" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --infodir=/usr/info \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-shared \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/development/udis86/udis86.info b/development/udis86/udis86.info new file mode 100644 index 0000000000..3eedb0b5c3 --- /dev/null +++ b/development/udis86/udis86.info @@ -0,0 +1,8 @@ +PRGNAM="udis86" +VERSION="1.7" +HOMEPAGE="http://udis86.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/udis86/udis86-1.7.tar.gz" +MD5SUM="e279108e10f774e6c3af83caa18f5dc3" +MAINTAINER="Kyle Guinn" +EMAIL="elyk03@gmail.com" +APPROVED="David Somero" \ No newline at end of file -- cgit v1.2.3