mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/teamviewer: script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
081378a99d
commit
df27dd71d0
1 changed files with 19 additions and 14 deletions
|
@ -23,6 +23,8 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Modified by Mario Preksavec <mario@slackware.hr>
|
||||
|
||||
PRGNAM=teamviewer
|
||||
VERSION=${VERSION:-11.0.53191}
|
||||
BUILD=${BUILD:-2}
|
||||
|
@ -41,13 +43,23 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
DEBARCH="i386"
|
||||
LIBDIRSUFFIX=""
|
||||
else
|
||||
echo "Package for $(uname -m) architecture is not available."
|
||||
exit 1
|
||||
fi
|
||||
# Sanity check, we make sure resulting package will work on users system.
|
||||
case "$ARCH" in
|
||||
x86_64)
|
||||
echo "$ARCH is not supported, you will need 32bit compatibility libs..."
|
||||
ARCH=i486
|
||||
;;
|
||||
i486)
|
||||
echo "System check passed..."
|
||||
;;
|
||||
*)
|
||||
echo "$ARCH is not supported."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
DEBARCH="i386"
|
||||
LIBDIRSUFFIX=""
|
||||
|
||||
set -eu
|
||||
|
||||
|
@ -99,13 +111,6 @@ rm -rf $PKG/opt/teamviewer/doc/
|
|||
mkdir -p $PKG/etc/rc.d/
|
||||
install -m 0644 $CWD/rc.teamviewerd $PKG/etc/rc.d/rc.teamviewerd.new
|
||||
|
||||
# Let's flip-flop the actual locations vs. symlinks of a couple of things:
|
||||
# First remove the dangling symlink made by Debian packages:
|
||||
rm -rf $PKG/var/log/teamviewer* $PKG/etc/teamviewer
|
||||
mkdir -p $PKG/var/log/teamviewer11 $PKG/etc/teamviewer
|
||||
rm -rf $PKG/opt/teamviewer/logfiles/ $PKG/opt/teamviewer/config/
|
||||
ln -s /etc/teamviewer $PKG/opt/teamviewer/config
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
|
Loading…
Reference in a new issue