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
5f0e4fd0
Commit
5f0e4fd0
authored
4 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add anydesk support
parent
6b19e506
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
anydesk.sh
prescription.d/anydesk.sh
+43
-0
anydesk.sh
repack.d/anydesk.sh
+13
-0
No files found.
prescription.d/anydesk.sh
0 → 100755
View file @
5f0e4fd0
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
anydesk
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install AnyDesk from the official site"
&&
exit
arch
=
$(
$DISTRVENDOR
--distro-arch
)
case
$arch
in
x86_64|amd64
)
arch
=
$arch
;;
i686|i386
)
arch
=
$arch
;;
i586
)
arch
=
i686
;;
*
)
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
""
"_"
)
"
# we have workaround for their postinstall script, so always repack rpm package
repack
=
''
[
"
$(
$DISTRVENDOR
-p
)
"
=
"deb"
]
||
repack
=
'--repack'
epm
$repack
install
"
$PKG
"
This diff is collapsed.
Click to expand it.
repack.d/anydesk.sh
0 → 100755
View file @
5f0e4fd0
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
anydesk
mkdir
-p
$BUILDROOT
/etc/systemd/system
ln
-sf
/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
#subst '1iAutoProv:no' $SPEC
This diff is collapsed.
Click to expand it.
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