Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
8c8b4336
Commit
8c8b4336
authored
Apr 13, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrite anydesk install to use RHEL8 build
parent
771d3237
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
17 deletions
+27
-17
anydesk.sh
prescription.d/anydesk.sh
+14
-9
anydesk.sh
repack.d/anydesk.sh
+13
-8
No files found.
prescription.d/anydesk.sh
View file @
8c8b4336
...
...
@@ -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
"
repack.d/anydesk.sh
View file @
8c8b4336
...
...
@@ -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 lib
gtkglext libICE libpango libpangox-compat
libpolkit
\
epm
install
--skip-installed
fontconfig glib2 libatk libcairo libfreetype libgdk-pixbuf libgio libGL libGLU libgtk+2 lib
ICE 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment