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
Nurlan
eepm
Commits
8851247d
Commit
8851247d
authored
Feb 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add synology-drive support
parent
b4e612db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
synology-drive.sh
play.d/synology-drive.sh
+13
-0
synology-drive.sh
repack.d/synology-drive.sh
+41
-0
No files found.
play.d/synology-drive.sh
0 → 100755
View file @
8851247d
#!/bin/sh
PKGNAME
=
synology-drive
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
'Synology Drive Client from the official site'
.
$(
dirname
$0
)
/common.sh
urldir
=
"
$(
epm tool eget
--list
https://archive.synology.com/download/Utility/SynologyDriveClient
'/[0-9]*'
|
head
-n1
)
"
[
-n
"
$urldir
"
]
||
exit
epm
install
"
$urldir
/
$PKGNAME
*.x86_64.deb"
repack.d/synology-drive.sh
0 → 100755
View file @
8851247d
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
synology-drive
PRODUCTDIR
=
/opt/Synology/SynologyDrive
.
$(
dirname
$0
)
/common.sh
cd
$BUILDROOT
/
$PRODUCTDIR
||
exit
# disable autoupdate
remove_file
$PRODUCTDIR
/package/cloudstation/bin/cloud-drive-auto-updater
epm assure patchelf
||
exit
for
i
in
lib/lib
*
.so.
*
package/cloudstation/lib/lib
*
.so.
*
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
done
# TODO
#for i in package/cloudstation/lib/plugins/lib*.so ; do
# a= patchelf --set-rpath '$ORIGIN' $i
#done
for
i
in
bin/launcher package/cloudstation/bin/cloud-drive-
*
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/../lib'
$i
done
# TODO: some dependency leak?
# ignore embedded libs
filter_from_requires libQt5
epm
install
--skip-installed
coreutils glib2 libdbus libfontconfig1 libfreetype libgtk+3 libICE libpango libSM libX11 libxcb libxkbcommon libXrender
# Suggests
# epm install --skip-installed libnautilus libnautilus-extension-compat
filter_from_requires libnautilus
# TODO: parse
# https://www.synology.com/api/support/findDownloadInfo?lang=ru-ru&product=DS2411%2B&major=6&minor=2
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