aboutsummaryrefslogtreecommitdiff
path: root/system/shake
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2013-11-15 17:26:30 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-11-15 20:27:39 -0600
commit811878d4dfc2ee37f3d2b5c8f0c9833608c16ac9 (patch)
tree3b047032a3abff2c8e3cda028eb426e25bed91e4 /system/shake
parent767e5d72f919e2b1c29ba01d1f5bdeabe0589141 (diff)
system/shake: Patched to fix build
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/shake')
-rw-r--r--system/shake/shake-dev_t-include.patch10
-rw-r--r--system/shake/shake.SlackBuild29
-rw-r--r--system/shake/shake.info6
-rw-r--r--system/shake/slack-desc10
4 files changed, 33 insertions, 22 deletions
diff --git a/system/shake/shake-dev_t-include.patch b/system/shake/shake-dev_t-include.patch
new file mode 100644
index 0000000000000..19ca1c2ae92e2
--- /dev/null
+++ b/system/shake/shake-dev_t-include.patch
@@ -0,0 +1,10 @@
+--- judge.h_old 2013-11-15 22:00:35.085301859 +0100
++++ judge.h 2013-11-15 22:00:54.811967958 +0100
+@@ -22,6 +22,7 @@
+ #include <stdbool.h>
+ #include <fcntl.h>
+ #include <time.h>
++#include <sys/stat.h>
+ typedef unsigned int uint;
+ typedef long long int llint;
+
diff --git a/system/shake/shake.SlackBuild b/system/shake/shake.SlackBuild
index 2d6802cacd1a0..12d0d1081588c 100644
--- a/system/shake/shake.SlackBuild
+++ b/system/shake/shake.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=shake
-VERSION=${VERSION:-0.99}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.999}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -59,15 +59,18 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-fs-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+cd $PRGNAM-fs-$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 {} \;
+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 {} \;
+
+# patch for "error: unknown type name 'dev_t'"
+patch -p0 < $CWD/shake-dev_t-include.patch
cd build
CFLAGS="$SLKCFLAGS" \
@@ -80,7 +83,7 @@ make VERBOSE=1
make install DESTDIR=$PKG
cd -
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
#Move manpages manually
@@ -88,10 +91,8 @@ mkdir $PKG/usr/man
mv $PKG/usr/share/man/* $PKG/usr/man/
rm -R $PKG/usr/share
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
diff --git a/system/shake/shake.info b/system/shake/shake.info
index f7c52712aba84..31bbf27b23eb8 100644
--- a/system/shake/shake.info
+++ b/system/shake/shake.info
@@ -1,8 +1,8 @@
PRGNAM="shake"
-VERSION="0.99"
+VERSION="0.999"
HOMEPAGE="https://savannah.nongnu.org/projects/shake"
-DOWNLOAD="http://mirror.lihnidos.org/GNU/savannah/shake/shake-0.99.tar.gz"
-MD5SUM="6d471843839a6d7df9cea6b532e80da7"
+DOWNLOAD="http://mirror.lihnidos.org/GNU/savannah/shake/shake-0.999.tar.gz"
+MD5SUM="20b5086ec8920ad91528dec81a576c1d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/system/shake/slack-desc b/system/shake/slack-desc
index 1b064e9aec9e7..43ba20410c36b 100644
--- a/system/shake/slack-desc
+++ b/system/shake/slack-desc
@@ -1,9 +1,9 @@
# 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 ':'.
+# 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------------------------------------------------------|
shake: Shake (filesystem defragmenter that runs in userspace)