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
661e4f09
Commit
661e4f09
authored
3 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add epm play sferum
parent
ee18f2cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
sferum.sh
prescription.d/sferum.sh
+41
-0
sferum.sh
repack.d/sferum.sh
+18
-0
No files found.
prescription.d/sferum.sh
0 → 100755
View file @
661e4f09
#!/bin/sh -x
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
sferum
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
exit
#echo "Install Sferium for Linux 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
repack
=
''
[
"
$(
$DISTRVENDOR
-d
)
"
=
"ALTLinux"
]
&&
repack
=
'--repack'
#https://st.mycdn.me/static/sferum/latest/sferum-i386.deb
#https://st.mycdn.me/static/sferum/latest/sferum-amd64.deb
#https://st.mycdn.me/static/sferum/latest/sferum-i686.rpm
#https://st.mycdn.me/static/sferum/latest/sferum-x86_64.rpm
# don't use constructname due - before arch
#epm install "https://st.mycdn.me/static/sferum/latest/$(epm print constructname $PKGNAME '' $arch '' '-')"
epm
$repack
install
"https://st.mycdn.me/static/sferum/latest/
$PKGNAME
-
$arch
.
$(
$DISTRVENDOR
-p
)
"
This diff is collapsed.
Click to expand it.
repack.d/sferum.sh
0 → 100755
View file @
661e4f09
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
mkdir
-p
$BUILDROOT
/usr/bin/
# Link to the binary
ln
-s
/opt/Sferum/sferum
$BUILDROOT
/usr/bin/sferum
# Set SUID for chrome-sandbox if userns_clone is not supported
userns_path
=
'/proc/sys/kernel/unprivileged_userns_clone'
userns_val
=
"
$(
cat
$userns_path
2>/dev/null
)
"
[
"
$userns_val
"
=
'1'
]
||
chmod
4755
$BUILDROOT
/opt/Sferum/chrome-sandbox
subst
's|%files|%files\n/usr/bin/sferum|'
$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