summaryrefslogtreecommitdiff
path: root/network/csync/csync.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/csync/csync.SlackBuild')
-rw-r--r--network/csync/csync.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/network/csync/csync.SlackBuild b/network/csync/csync.SlackBuild
index 48a4257b6f..d65948b387 100644
--- a/network/csync/csync.SlackBuild
+++ b/network/csync/csync.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=csync
-VERSION=0.44.0
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.50.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -58,12 +58,16 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+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 {} \;
# Make our build directory
mkdir build
@@ -82,9 +86,8 @@ cd ..
# Don't clobber config files
mv $PKG/etc/csync/csync_exclude.conf $PKG/etc/csync/csync_exclude.conf.new
mv $PKG/etc/csync/csync.conf $PKG/etc/csync/csync.conf.new
-mv $PKG/etc/csync/csync_log.conf $PKG/etc/csync/csync_log.conf.new
-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
find $PKG/usr/man -type f -exec gzip -9 {} \;
@@ -93,7 +96,7 @@ mkdir $PKG/usr/doc
mv $PKG/usr/share/doc/csync $PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share/doc ; rmdir $PKG/usr/share 2>/dev/null || true
cp -a \
- AUTHORS COPYING ChangeLog INSTALL README TODO \
+ AUTHORS COPYING ChangeLog INSTALL README \
$PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild