summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeigh Wedding <leigh.wedding@telstra.com>2013-03-16 15:37:55 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-03-22 07:16:51 -0400
commit39cb2880f81ced3573ef6307c1cbec7c26d12832 (patch)
treee93b8bd251d9439d1cc0ba35aad72c5dac213b6b
parent1a98e8a774064d572ddb2218460381f86d4558be (diff)
downloadslackbuilds-39cb2880f81ced3573ef6307c1cbec7c26d12832.tar.gz
system/udftools: Added (udf userspace utilites)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--system/udftools/README3
-rw-r--r--system/udftools/fix-compiler-errors.patch143
-rw-r--r--system/udftools/slack-desc19
-rw-r--r--system/udftools/udftools.SlackBuild97
-rw-r--r--system/udftools/udftools.exclude6
-rw-r--r--system/udftools/udftools.info10
6 files changed, 278 insertions, 0 deletions
diff --git a/system/udftools/README b/system/udftools/README
new file mode 100644
index 0000000000..9b8fa944d9
--- /dev/null
+++ b/system/udftools/README
@@ -0,0 +1,3 @@
+udftools
+
+Linux Universal Disk Format (UDF) userspace utilites.
diff --git a/system/udftools/fix-compiler-errors.patch b/system/udftools/fix-compiler-errors.patch
new file mode 100644
index 0000000000..e6db4e808d
--- /dev/null
+++ b/system/udftools/fix-compiler-errors.patch
@@ -0,0 +1,143 @@
+--- udftools-1.0.0b3.orig/cdrwtool/cdrwtool.c 2002-12-28 15:48:51.000000000 +1100
++++ udftools-1.0.0b3/cdrwtool/cdrwtool.c 2013-03-09 16:28:32.685490490 +1100
+@@ -27,6 +27,7 @@
+ #include <unistd.h>
+ #include <getopt.h>
+ #include <signal.h>
++#include <limits.h>
+
+ #include <sys/ioctl.h>
+ #include <asm/param.h>
+--- udftools-1.0.0b3.orig/cdrwtool/main.c 2004-02-23 14:33:11.000000000 +1100
++++ udftools-1.0.0b3/cdrwtool/main.c 2013-03-09 16:27:35.630406411 +1100
+@@ -30,6 +30,7 @@
+ #include <time.h>
+ #include <sys/time.h>
+ #include <errno.h>
++#include <string.h>
+
+ #include "cdrwtool.h"
+ #include "defaults.h"
+--- udftools-1.0.0b3.orig/cdrwtool/options.c 2003-10-24 11:16:04.000000000 +1000
++++ udftools-1.0.0b3/cdrwtool/options.c 2013-03-09 16:27:49.846422176 +1100
+@@ -23,6 +23,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <malloc.h>
++#include <string.h>
+
+ #include "cdrwtool.h"
+ #include "libudffs.h"
+--- udftools-1.0.0b3.orig/include/udf_endian.h 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/include/udf_endian.h 2013-03-09 16:24:42.000920607 +1100
+@@ -23,6 +23,7 @@
+ #ifndef __UDF_ENDIAN_H
+ #define __UDF_ENDIAN_H
+
++#include <string.h>
+ #include "bswap.h"
+
+ static inline lb_addr lelb_to_cpu(lb_addr in)
+--- udftools-1.0.0b3.orig/libudffs/file.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/libudffs/file.c 2013-03-09 16:25:21.175013609 +1100
+@@ -21,6 +21,7 @@
+ */
+
+ #include <malloc.h>
++#include <string.h>
+
+ #include "libudffs.h"
+ #include "defaults.h"
+--- udftools-1.0.0b3.orig/libudffs/unicode.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/libudffs/unicode.c 2013-03-09 16:25:59.433223040 +1100
+@@ -20,6 +20,8 @@
+ *
+ */
+
++#include <string.h>
++
+ #include "libudffs.h"
+ #include "defaults.h"
+ #include "config.h"
+--- udftools-1.0.0b3.orig/mkudffs/main.c 2004-02-23 14:33:11.000000000 +1100
++++ udftools-1.0.0b3/mkudffs/main.c 2013-03-09 16:26:27.967171881 +1100
+@@ -31,6 +31,7 @@
+ #include <sys/time.h>
+ #include <errno.h>
+ #include <limits.h>
++#include <string.h>
+
+ #include "mkudffs.h"
+ #include "defaults.h"
+--- udftools-1.0.0b3.orig/mkudffs/mkudffs.c 2004-02-23 14:35:33.000000000 +1100
++++ udftools-1.0.0b3/mkudffs/mkudffs.c 2013-03-09 16:26:55.098244722 +1100
+@@ -30,6 +30,7 @@
+ #include <time.h>
+ #include <sys/time.h>
+ #include <errno.h>
++#include <string.h>
+
+ #include "mkudffs.h"
+ #include "defaults.h"
+--- udftools-1.0.0b3.orig/mkudffs/options.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/mkudffs/options.c 2013-03-09 16:27:17.188691854 +1100
+@@ -24,6 +24,7 @@
+ #include <stdlib.h>
+ #include <getopt.h>
+ #include <malloc.h>
++#include <string.h>
+
+ #include "mkudffs.h"
+ #include "defaults.h"
+--- udftools-1.0.0b3.orig/pktsetup/pktsetup.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/pktsetup/pktsetup.c 2013-03-09 16:30:53.851742260 +1100
+@@ -23,6 +23,7 @@
+ #include <getopt.h>
+ #include <bits/types.h>
+ #include <sys/types.h>
++#include <limits.h>
+
+ #include <linux/cdrom.h>
+
+--- udftools-1.0.0b3.orig/wrudf/ide-pc.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/wrudf/ide-pc.c 2013-03-09 16:29:57.634001857 +1100
+@@ -31,6 +31,7 @@
+ #include <sys/types.h> /* for u_char etc. */
+ #include <linux/cdrom.h>
+ #include <unistd.h> /* sleep() */
++#include <stdlib.h>
+
+ #include "bswap.h"
+ #include "ide-pc.h"
+--- udftools-1.0.0b3.orig/wrudf/wrudf-cdr.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/wrudf/wrudf-cdr.c 2013-03-09 16:31:43.156091936 +1100
+@@ -6,6 +6,8 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#include <string.h>
++
+ #include "wrudf.h"
+ #include "ide-pc.h"
+ #include "bswap.h"
+--- udftools-1.0.0b3.orig/wrudf/wrudf-cdrw.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/wrudf/wrudf-cdrw.c 2013-03-09 16:29:05.652037738 +1100
+@@ -31,6 +31,7 @@
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+ #include <linux/cdrom.h> /* for CDROM_DRIVE_STATUS */
++#include <string.h>
+
+ #include "wrudf.h"
+ #include "ide-pc.h"
+--- udftools-1.0.0b3.orig/wrudf/wrudf.c 2002-11-26 18:18:51.000000000 +1100
++++ udftools-1.0.0b3/wrudf/wrudf.c 2013-03-09 16:31:10.001538000 +1100
+@@ -245,7 +245,7 @@
+ } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 )
+ virtualPartitionNum = i;
+ }
+- (char*)spm += spm->partitionMapLength;
++ spm += spm->partitionMapLength;
+ }
+
+ if( medium == CDR ) {
diff --git a/system/udftools/slack-desc b/system/udftools/slack-desc
new file mode 100644
index 0000000000..82da5c0da5
--- /dev/null
+++ b/system/udftools/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------------------------------------------------------|
+udftools: udftools (udf userspace utilites)
+udftools:
+udftools: Linux Universal Disk Format (UDF) userspace utilites.
+udftools:
+udftools: It has a homepage at http://sourceforge.net/projects/linux-udf/
+udftools:
+udftools:
+udftools:
+udftools:
+udftools:
+udftools:
diff --git a/system/udftools/udftools.SlackBuild b/system/udftools/udftools.SlackBuild
new file mode 100644
index 0000000000..f1131e53ad
--- /dev/null
+++ b/system/udftools/udftools.SlackBuild
@@ -0,0 +1,97 @@
+#!/bin/sh
+
+# Slackware build script for udftools
+
+# Copyright (c) 2012, Christophe Trussardi, Paris, France
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# 1.- Redistributions of source code 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=udftools
+VERSION=${VERSION:-1.0.0b3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -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
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $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 {} \;
+
+patch -p1 < $CWD/fix-compiler-errors.patch
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+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 \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $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.${PKGTYPE:-tgz}
diff --git a/system/udftools/udftools.exclude b/system/udftools/udftools.exclude
new file mode 100644
index 0000000000..26e04de8f3
--- /dev/null
+++ b/system/udftools/udftools.exclude
@@ -0,0 +1,6 @@
+udftools/udftools-1.0.0b3
+udftools/udftools-1.0.0b3.orig
+udftools/udftools-1.0.0b3.tar.gz
+udftools/*.log
+udftools/*~
+udftools/zzz-config.help
diff --git a/system/udftools/udftools.info b/system/udftools/udftools.info
new file mode 100644
index 0000000000..a86b585c7b
--- /dev/null
+++ b/system/udftools/udftools.info
@@ -0,0 +1,10 @@
+PRGNAM="udftools"
+VERSION="1.0.0b3"
+HOMEPAGE="http://sourceforge.net/projects/linux-udf/"
+DOWNLOAD="http://downloads.sourceforge.net/project/linux-udf/udftools/1.0.0b3/udftools-1.0.0b3.tar.gz"
+MD5SUM="2f491ddd63f31040797236fe18db9e60"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Leigh Wedding"
+EMAIL="leigh.wedding@telstra.com"