From 39cb2880f81ced3573ef6307c1cbec7c26d12832 Mon Sep 17 00:00:00 2001 From: Leigh Wedding Date: Sat, 16 Mar 2013 15:37:55 -0400 Subject: system/udftools: Added (udf userspace utilites) Signed-off-by: dsomero --- system/udftools/README | 3 + system/udftools/fix-compiler-errors.patch | 143 ++++++++++++++++++++++++++++++ system/udftools/slack-desc | 19 ++++ system/udftools/udftools.SlackBuild | 97 ++++++++++++++++++++ system/udftools/udftools.exclude | 6 ++ system/udftools/udftools.info | 10 +++ 6 files changed, 278 insertions(+) create mode 100644 system/udftools/README create mode 100644 system/udftools/fix-compiler-errors.patch create mode 100644 system/udftools/slack-desc create mode 100644 system/udftools/udftools.SlackBuild create mode 100644 system/udftools/udftools.exclude create mode 100644 system/udftools/udftools.info (limited to 'system') 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 + #include + #include ++#include + + #include + #include +--- 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 + #include + #include ++#include + + #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 + #include + #include ++#include + + #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 + #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 ++#include + + #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 ++ + #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 + #include + #include ++#include + + #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 + #include + #include ++#include + + #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 + #include + #include ++#include + + #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 + #include + #include ++#include + + #include + +--- 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 /* for u_char etc. */ + #include + #include /* sleep() */ ++#include + + #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 + #include + #include ++#include ++ + #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 + #include + #include /* for CDROM_DRIVE_STATUS */ ++#include + + #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" -- cgit v1.2.3