Commit 8c8b4336 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rewrite anydesk install to use RHEL8 build

parent 771d3237
......@@ -28,16 +28,21 @@ case $arch in
fatal "Unsupported arch $arch for $($DISTRVENDOR -d)"
esac
#if [ "$($DISTRVENDOR -d)" = "ALTLinux" ] ; then
# epm install https://zoom.us/client/latest/zoom_$arch.rpm
# exit
#fi
# https://download.anydesk.com/linux/anydesk_6.0.1-1_x86_64.rpm?
PKG="https://download.anydesk.com/linux/$(epm print constructname $PKGNAME "6.0.1-1" $arch "" "_")"
VERSION=6.0.1
# el8 build contains libpangx inside
REL=1.el8
# we have workaround for their postinstall script, so always repack rpm package
repack=''
[ "$($DISTRVENDOR -p)" = "deb" ] || repack='--repack'
[ "$($DISTRVENDOR -p)" = "deb" ] && REL=1 || repack='--repack'
# https://download.anydesk.com/linux/anydesk-6.0.1-1.el8.x86_64.rpm
# https://download.anydesk.com/linux/anydesk_6.0.1-1_i386.deb
PKG="https://download.anydesk.com/linux/$(epm print constructname $PKGNAME "$VERSION-$REL" $arch)"
epm $repack install "$PKG"
echo
echo "Note: run
# serv anydesk on
to enable needed anydesk system service
"
......@@ -6,17 +6,22 @@ SPEC="$2"
PRODUCT=anydesk
mkdir -p $BUILDROOT/etc/systemd/system/
mv -fv $BUILDROOT/usr/share/anydesk/files/systemd/anydesk.service $BUILDROOT/etc/systemd/system/anydesk.service
subst "s|/usr/share/anydesk/files/systemd/anydesk.service|/etc/systemd/system/anydesk.service|g" $SPEC
#mkdir -p $BUILDROOT/etc/systemd/system/
#mv -fv $BUILDROOT/usr/share/anydesk/files/systemd/anydesk.service $BUILDROOT/etc/systemd/system/anydesk.service
#subst "s|/usr/share/anydesk/files/systemd/anydesk.service|/etc/systemd/system/anydesk.service|g" $SPEC
mkdir -p $BUILDROOT/etc/rc.d/init.d/
mv -fv $BUILDROOT/usr/share/anydesk/files/init/anydesk $BUILDROOT/etc/rc.d/init.d/anydesk
subst "s|.*/etc/default/NetworkManager.*||" $BUILDROOT/etc/rc.d/init.d/anydesk
subst "s|/usr/share/anydesk/files/init/anydesk|/etc/rc.d/init.d/anydesk|" $SPEC
#mkdir -p $BUILDROOT/etc/rc.d/init.d/
#mv -fv $BUILDROOT/usr/share/anydesk/files/init/anydesk $BUILDROOT/etc/rc.d/init.d/anydesk
#subst "s|.*/etc/default/NetworkManager.*||" $BUILDROOT/etc/rc.d/init.d/anydesk
#subst "s|/usr/share/anydesk/files/init/anydesk|/etc/rc.d/init.d/anydesk|" $SPEC
# install all requires packages before packing (the list have got with rpmreqs anydesk)
epm install --skip-installed fontconfig glib2 libatk libcairo libfreetype libgdk-pixbuf libgio libGL libGLU libgtk+2 libgtkglext libICE libpango libpangox-compat libpolkit \
epm install --skip-installed fontconfig glib2 libatk libcairo libfreetype libgdk-pixbuf libgio libGL libGLU libgtk+2 libICE libpango libpolkit \
libSM libX11 libxcb libXdamage libXext libXfixes libXi libxkbfile libXmu libXrandr libXrender libXt libXtst polkit
#subst '1iAutoProv:no' $SPEC
# preloaded from /usr/lib64/anydesk/, drop external requires
subst '1i%filter_from_requires /^libpangox-1.0.so.0.*/d' $SPEC
subst '1i%filter_from_requires /^libgdkglext-x11-1.0.so.0.*/d' $SPEC
subst '1i%filter_from_requires /^libgtkglext-x11-1.0.so.0.*/d' $SPEC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment