summaryrefslogtreecommitdiff
path: root/desktop/synergy-plus/synergy-plus.SlackBuild
diff options
context:
space:
mode:
authorPierre Cazenave <pwcazenave at gmail {dot} com>2010-12-16 20:05:15 -0200
committerErik Hanson <erik@slackbuilds.org>2010-12-17 07:56:48 -0600
commit4f983c2e511d1ed2832dc7a01254ff6d3dbce7f6 (patch)
tree79025c40de329f440e7067b5a6c0fb9cf5a1b719 /desktop/synergy-plus/synergy-plus.SlackBuild
parent63b68a1eaedeadab514b3109a574332d9db09d03 (diff)
downloadslackbuilds-4f983c2e511d1ed2832dc7a01254ff6d3dbce7f6.tar.gz
desktop/synergy-plus: New init-script, man-pages & config
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'desktop/synergy-plus/synergy-plus.SlackBuild')
-rw-r--r--desktop/synergy-plus/synergy-plus.SlackBuild27
1 files changed, 21 insertions, 6 deletions
diff --git a/desktop/synergy-plus/synergy-plus.SlackBuild b/desktop/synergy-plus/synergy-plus.SlackBuild
index 6754bcc6da..acaa195000 100644
--- a/desktop/synergy-plus/synergy-plus.SlackBuild
+++ b/desktop/synergy-plus/synergy-plus.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for synergy-plus.
#
-# Copyright 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
+# Copyright 2009,2010 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,18 +21,19 @@
# 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.
+#
+# Thanks to Steven King for the rc.synergys script.
+#
PRGNAM=synergy-plus
VERSION=${VERSION:-1.3.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -73,7 +74,7 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-if [ $SYNERGYOLD == "yes" ]; then
+if [ $SYNERGYOLD = "yes" ]; then
BINSUFFIX="--program-suffix=-plus"
fi
@@ -92,6 +93,19 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Move the rc.synergys file to the package etc directory
+mkdir -p $PKG/etc/rc.d/
+cat $CWD/rc.synergys > $PKG/etc/rc.d/rc.synergys.new
+
+# Copy the sample configuration file to the package etc directory
+cat examples/synergy.conf > $PKG/etc/synergy.conf.new
+
+# Add man pages from upstream
+mkdir -p $PKG/usr/man/man1
+cp $CWD/synergy{s,c}.man $PKG/usr/man/man1
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING ChangeLog INSTALL NEWS README examples/synergy.conf \
@@ -101,6 +115,7 @@ cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}