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
b1b652d5
You need to sign in or sign up before continuing.
Commit
b1b652d5
authored
Mar 26, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: add fix_chrome_sandbox and use it
parent
cba62f35
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
30 deletions
+43
-30
teams.sh
play.d/teams.sh
+0
-1
common-chromium-browser.sh
repack.d/common-chromium-browser.sh
+11
-0
sferum.sh
repack.d/sferum.sh
+7
-10
skypeforlinux.sh
repack.d/skypeforlinux.sh
+8
-11
tamtam-app.sh
repack.d/tamtam-app.sh
+5
-7
teams.sh
repack.d/teams.sh
+5
-0
zoom.sh
repack.d/zoom.sh
+7
-1
No files found.
play.d/teams.sh
View file @
b1b652d5
...
@@ -13,4 +13,3 @@ DESCRIPTION="Microsoft Teams for Linux from the official site"
...
@@ -13,4 +13,3 @@ DESCRIPTION="Microsoft Teams for Linux from the official site"
# epm uses eget to download * names
# epm uses eget to download * names
epm
install
"https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/
$(
epm print constructname teams
"*"
amd64 deb
)
"
epm
install
"https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/
$(
epm print constructname teams
"*"
amd64 deb
)
"
chmod
4755 /opt/teams/chrome-sandbox
repack.d/common-chromium-browser.sh
View file @
b1b652d5
...
@@ -112,3 +112,14 @@ add_bin_commands()
...
@@ -112,3 +112,14 @@ add_bin_commands()
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
fi
fi
}
}
fix_chrome_sandbox
()
{
local
sandbox
=
"
$1
"
# 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'
]
&&
return
[
-n
"
$sandbox
"
]
||
sandbox
=
$PRODUCTDIR
/chrome-sandbox
chmod
4755
$BUILDROOT
/
$sandbox
}
repack.d/sferum.sh
View file @
b1b652d5
...
@@ -3,16 +3,13 @@
...
@@ -3,16 +3,13 @@
BUILDROOT
=
"
$1
"
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
mkdir
-p
$BUILDROOT
/usr/bin/
PRODUCT
=
Sferum
PRODUCTDIR
=
/opt/
$PRODUCT
# Link to the binary
ln
-s
/opt/Sferum/sferum
$BUILDROOT
/usr/bin/sferum
.
$(
dirname
$0
)
/common-chromium-browser.sh
# Set SUID for chrome-sandbox if userns_clone is not supported
mkdir
-p
$BUILDROOT
/usr/bin/
userns_path
=
'/proc/sys/kernel/unprivileged_userns_clone'
ln
-s
$PRODUCTDIR
/sferum
$BUILDROOT
/usr/bin/sferum
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
subst
's|%files|%files\n/usr/bin/sferum|'
$SPEC
fix_chrome_sandbox
repack.d/skypeforlinux.sh
View file @
b1b652d5
...
@@ -5,19 +5,19 @@ BUILDROOT="$1"
...
@@ -5,19 +5,19 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
skype
PRODUCT
=
skype
# move binaries from /usr/share/PKGNAME to _libdir/PKGNAME
PRODUCTDIR
=
/opt/skype
#LIBDIR=$(rpmbuild --eval %_libdir 2>/dev/null)
LIBDIR
=
/opt
.
$(
dirname
$0
)
/common-chromium-browser.sh
# remove key install script
# remove key install script
rm
-rvf
$BUILDROOT
/opt/skypeforlinux/
rm
-rvf
$BUILDROOT
/opt/skypeforlinux/
subst
"s|.*/opt/skypeforlinux/.*||"
$SPEC
subst
"s|.*/opt/skypeforlinux/.*||"
$SPEC
mkdir
-p
$BUILDROOT$
LIB
DIR
/
mkdir
-p
$BUILDROOT$
PRODUCT
DIR
/
mv
$BUILDROOT
/usr/share/skypeforlinux/
$BUILDROOT$LIBDIR
/
$PRODUCT
/
mv
$BUILDROOT
/usr/share/skypeforlinux/
*
$BUILDROOT$PRODUCTDIR
/
subst
"s|/usr/share/skypeforlinux|
$
LIBDIR
/
$PRODUCT
|g"
$SPEC
subst
"s|/usr/share/skypeforlinux|
$
PRODUCTDIR
|g"
$SPEC
subst
"s|^SKYPE_PATH=.*|SKYPE_PATH=
$
LIBDIR
/
$PRODUCT
/skypeforlinux|"
$BUILDROOT
/usr/bin/skypeforlinux
subst
"s|^SKYPE_PATH=.*|SKYPE_PATH=
$
PRODUCTDIR
/skypeforlinux|"
$BUILDROOT
/usr/bin/skypeforlinux
subst
'1iAutoProv:no'
$SPEC
subst
'1iAutoProv:no'
$SPEC
...
@@ -31,7 +31,4 @@ mkdir -p $BUILDROOT/usr/bin/
...
@@ -31,7 +31,4 @@ mkdir -p $BUILDROOT/usr/bin/
ln
-s
/usr/bin/skypeforlinux
$BUILDROOT
/usr/bin/skype
ln
-s
/usr/bin/skypeforlinux
$BUILDROOT
/usr/bin/skype
subst
's|%files|%files\n/usr/bin/skype|'
$SPEC
subst
's|%files|%files\n/usr/bin/skype|'
$SPEC
# Set SUID for chrome-sandbox if userns_clone is not supported
fix_chrome_sandbox
userns_path
=
'/proc/sys/kernel/unprivileged_userns_clone'
userns_val
=
"
$(
cat
$userns_path
2>/dev/null
)
"
[
"
$userns_val
"
=
'1'
]
||
chmod
4755
$BUILDROOT
/
$LIBDIR
/
$PRODUCT
/chrome-sandbox
repack.d/tamtam-app.sh
View file @
b1b652d5
...
@@ -5,17 +5,15 @@ BUILDROOT="$1"
...
@@ -5,17 +5,15 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
TamTam
PRODUCT
=
TamTam
LIBDIR
=
/opt
PRODUCTDIR
=
/opt/
$PRODUCT
.
$(
dirname
$0
)
/common-chromium-browser.sh
subst
'1iAutoProv:no'
$SPEC
subst
'1iAutoProv:no'
$SPEC
mkdir
-p
$BUILDROOT
/usr/bin/
mkdir
-p
$BUILDROOT
/usr/bin/
ln
-sf
$
LIBDIR
/
$PRODUC
T
/tamtam
$BUILDROOT
/usr/bin/tamtam
ln
-sf
$
PRODUCTDIR
T
/tamtam
$BUILDROOT
/usr/bin/tamtam
subst
"s|%files|%files
\n
%_bindir/tamtam|"
$SPEC
subst
"s|%files|%files
\n
%_bindir/tamtam|"
$SPEC
fix_chrome_sandbox
# 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
/
$LIBDIR
/
$PRODUCT
/chrome-sandbox
repack.d/teams.sh
View file @
b1b652d5
...
@@ -6,6 +6,9 @@ SPEC="$2"
...
@@ -6,6 +6,9 @@ SPEC="$2"
PRODUCT
=
teams
PRODUCT
=
teams
LIBDIR
=
/opt
LIBDIR
=
/opt
PRODUCTDIR
=
/opt/teams
.
$(
dirname
$0
)
/common-chromium-browser.sh
if
[
"
$(
$DISTRVENDOR
-e
)
"
=
"ALTLinux/p8"
]
;
then
if
[
"
$(
$DISTRVENDOR
-e
)
"
=
"ALTLinux/p8"
]
;
then
# drop unsupported binary
# drop unsupported binary
...
@@ -26,3 +29,5 @@ subst '1iAutoProv:no' $SPEC
...
@@ -26,3 +29,5 @@ subst '1iAutoProv:no' $SPEC
subst
'1i%filter_from_requires /^libGLESv2.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libGLESv2.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libEGL.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libEGL.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libffmpeg.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libffmpeg.so().*/d'
$SPEC
fix_chrome_sandbox
repack.d/zoom.sh
View file @
b1b652d5
#!/bin/sh -x
#!/bin/sh -x
# It will run with two args: buildroot spec
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
zoom
PRODUCTDIR
=
/opt/zoom
.
$(
dirname
$0
)
/common-chromium-browser.sh
# TODO: s/freetype/libfreetype/
# TODO: s/freetype/libfreetype/
# see https://bugzilla.altlinux.org/show_bug.cgi?id=38892
# see https://bugzilla.altlinux.org/show_bug.cgi?id=38892
...
@@ -36,3 +40,5 @@ done
...
@@ -36,3 +40,5 @@ done
rm
-v
$BUILDROOT
/opt/zoom/QtQuick/Scene2D/libqtquickscene2dplugin.so
$BUILDROOT
/opt/zoom/QtQuick/Scene3D/libqtquickscene3dplugin.so
rm
-v
$BUILDROOT
/opt/zoom/QtQuick/Scene2D/libqtquickscene2dplugin.so
$BUILDROOT
/opt/zoom/QtQuick/Scene3D/libqtquickscene3dplugin.so
subst
's|.*/opt/zoom/QtQuick/Scene2D/libqtquickscene2dplugin.so.*||'
$SPEC
subst
's|.*/opt/zoom/QtQuick/Scene2D/libqtquickscene2dplugin.so.*||'
$SPEC
subst
's|.*/opt/zoom/QtQuick/Scene3D/libqtquickscene3dplugin.so.*||'
$SPEC
subst
's|.*/opt/zoom/QtQuick/Scene3D/libqtquickscene3dplugin.so.*||'
$SPEC
fix_chrome_sandbox
$PRODUCTDIR
/cef
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