diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2016-12-16 10:27:51 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-17 01:18:27 +0700 |
commit | 303cbe0c1e7513d328a6936273ca8c7f5d7c45bb (patch) | |
tree | dc794233e39ae026c02784c4246b3487455a5ddf | |
parent | a6ba7563955d170505d322674d9cd8db463f6930 (diff) |
system/mdf2iso: Added (mdf to iso/cue/toc images converter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/mdf2iso/README | 2 | ||||
-rw-r--r-- | system/mdf2iso/mdf2iso.1 | 25 | ||||
-rw-r--r-- | system/mdf2iso/mdf2iso.SlackBuild | 96 | ||||
-rw-r--r-- | system/mdf2iso/mdf2iso.info | 10 | ||||
-rw-r--r-- | system/mdf2iso/slack-desc | 19 |
5 files changed, 152 insertions, 0 deletions
diff --git a/system/mdf2iso/README b/system/mdf2iso/README new file mode 100644 index 0000000000000..fbf02c48794ff --- /dev/null +++ b/system/mdf2iso/README @@ -0,0 +1,2 @@ +mdf2iso is a very simple utility to convert an Alcohol 120% mdf image +to an iso, toc / dat or cue / bin image.
\ No newline at end of file diff --git a/system/mdf2iso/mdf2iso.1 b/system/mdf2iso/mdf2iso.1 new file mode 100644 index 0000000000000..9b68291432dd8 --- /dev/null +++ b/system/mdf2iso/mdf2iso.1 @@ -0,0 +1,25 @@ +.TH "MDF2ISO" 1 "10 December 2005" "mdf2iso 0.3.0" "User Commands" +.SH NAME +mdf2iso \- mdf to iso / cue / toc image converter +.SH SYNOPSIS +.HP 8 +.B mdf2iso [OPTION] [BASENAME.MDF] [DESTINATION] +.SH DESCRIPTION +\fBmdf2iso\fR converts an Alcohol 120% .mdf image to other CD image formats. +It is able to write out plain .iso, .cue & .bin and .toc & .dat. If you do not +specifiy \-\-cue or \-\-toc, an .iso file gets generated. If you do not specifiy a +destination image name, BASENAME.ext is automatically used. +.SH MDF2ISO OPTIONS +.TP +\fB\-\-toc\fR file +creates a .dat image & .toc file from the .mdf image. +.TP +\fB\-\-cue\fR file +creates a .bin image & .cue sheet from the .mdf image. +.TP +\fB\-\-help\fR +shows the help text +.SH AUTHOR +This manual page was written by Lukas Fittl <lfittl@ixios-software.com>, +for the Ubuntu GNU/Linux system (but may be used by others), +because the original program does not have a manual page. diff --git a/system/mdf2iso/mdf2iso.SlackBuild b/system/mdf2iso/mdf2iso.SlackBuild new file mode 100644 index 0000000000000..7500e7e05deec --- /dev/null +++ b/system/mdf2iso/mdf2iso.SlackBuild @@ -0,0 +1,96 @@ +#!/bin/sh + +# Slackware build script for mdf2iso + +# Copyright 2016 Hunter Sezen California, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=mdf2iso +VERSION=${VERSION:-0.3.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +install -Dm0644 $CWD/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ChangeLog gpl.txt $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -perm 755 -exec chmod 644 {} \; +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.${PKGTYPE:-tgz} diff --git a/system/mdf2iso/mdf2iso.info b/system/mdf2iso/mdf2iso.info new file mode 100644 index 0000000000000..cd87e4693fa37 --- /dev/null +++ b/system/mdf2iso/mdf2iso.info @@ -0,0 +1,10 @@ +PRGNAM="mdf2iso" +VERSION="0.3.1" +HOMEPAGE="https://anonscm.debian.org/cgit/collab-maint/mdf2iso.git/" +DOWNLOAD="http://http.debian.net/debian/pool/main/m/mdf2iso/mdf2iso_0.3.1.orig.tar.gz" +MD5SUM="71520530311fd62c14a44e5a55f485a8" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Hunter Sezen" +EMAIL="ovariegata@yahoo.com" diff --git a/system/mdf2iso/slack-desc b/system/mdf2iso/slack-desc new file mode 100644 index 0000000000000..abe69eb12306f --- /dev/null +++ b/system/mdf2iso/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +mdf2iso: mdf2iso (mdf to iso/cue/toc images converter) +mdf2iso: +mdf2iso: A simple utility to convert mdf to iso / cue / toc images. +mdf2iso: +mdf2iso: Homepage: https://anonscm.debian.org/cgit/collab-maint/mdf2iso.git/ +mdf2iso: +mdf2iso: +mdf2iso: +mdf2iso: +mdf2iso: +mdf2iso: |