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
04253faa
Commit
04253faa
authored
May 25, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: repack dangerous assisant package (disable scripts and provides)
parent
23e33709
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
13 deletions
+35
-13
pkgallowscripts.list
etc/pkgallowscripts.list
+0
-2
assistant.sh
play.d/assistant.sh
+14
-11
assistant.sh
repack.d/assistant.sh
+21
-0
No files found.
etc/pkgallowscripts.list
View file @
04253faa
...
...
@@ -9,7 +9,5 @@ r7-office-organizer_pro
r7organizer
lsb-cprocsp-*
cprocsp-*
# vendor: SAFIB
assistant
eepm-*
nomachine-*
play.d/assistant.sh
View file @
04253faa
...
...
@@ -5,6 +5,7 @@ SKIPREPACK=1
SUPPORTEDARCHES
=
"x86_64 aarch64"
VERSION
=
"
$2
"
DESCRIPTION
=
"Assistant (Ассистент) from the official site"
URL
=
"https://мойассистент.рф"
.
$(
dirname
$0
)
/common.sh
...
...
@@ -14,13 +15,13 @@ arch="$(epm print info -a)"
pkg
=
"
$(
epm print info
-p
)
"
# some locale depend troubles (ALT with bash 4 needs LANG=ru_RU.UTF-8, Ubuntu with bash 5 needs LANG=C.UTF-8)
#URL="https://мойассистент.рф/скачать"
URL
=
"https://xn--80akicokc0aablc.xn--p1ai/%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C"
#
DL
URL="https://мойассистент.рф/скачать"
DL
URL
=
"https://xn--80akicokc0aablc.xn--p1ai/%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C"
# parse vendor site
tmpfile
=
$(
mktemp
)
trap
"rm -f
$tmpfile
"
EXIT
eget
-q
-O-
"
$URL
"
|
grep
-A200
"Ассистент для LINUX"
>
$tmpfile
eget
-q
-O-
"
$
DL
URL
"
|
grep
-A200
"Ассистент для LINUX"
>
$tmpfile
url_by_text
()
{
...
...
@@ -33,16 +34,16 @@ url_by_text()
case
$arch
-
$pkg
in
x86_64-rpm
)
URL
=
"
$(
url_by_text
"Скачать RPM пакет"
)
"
PKG
URL
=
"
$(
url_by_text
"Скачать RPM пакет"
)
"
;;
x86_64-deb
)
URL
=
"
$(
url_by_text
"Скачать DEB пакет"
)
"
PKG
URL
=
"
$(
url_by_text
"Скачать DEB пакет"
)
"
;;
aarch64-rpm
)
URL
=
"
$(
url_by_text
"Скачать RPM пакет для ARM устройств"
)
"
PKG
URL
=
"
$(
url_by_text
"Скачать RPM пакет для ARM устройств"
)
"
;;
aarch64-deb
)
URL
=
"
$(
url_by_text
"Скачать DEB пакет для ARM устройств"
)
"
PKG
URL
=
"
$(
url_by_text
"Скачать DEB пакет для ARM устройств"
)
"
;;
*
)
fatal
"
$(
epm print info
-e
)
is not supported (arch
$arch
, package type is
$pkg
)"
...
...
@@ -55,8 +56,10 @@ esac
[
"
$(
epm print info
-s
)
"
=
"alt"
]
&&
epmi
--skip-installed
fontconfig-disable-type1-font-for-assistant
# TODO: disable scripts (see /etc/eepm/pkgallowscripts.list)
LANG
=
ru_RU.UTF8 epm
install
"
$URL
"
||
exit
LANG
=
ru_RU.UTF8 install_pkgurl
||
exit
echo
"Note: original package runs /opt/assistant/scripts/setup.sh --install during install.."
echo
"It is dangerous. Use this package at your own risk."
echo
"Note:
Vendor suggest run /opt/assistant/scripts/setup.sh --install after install.
Vendor suggest run /opt/assistant/scripts/setup.sh --uninstall before removing the package.
Warning! This script will setup daemon. It is dangerous. Use this script and this package at your own risk.
"
repack.d/assistant.sh
0 → 100755
View file @
04253faa
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
assistant
.
$(
dirname
$0
)
/common.sh
# fix broken link
ln
-sf
/usr/lib64/libudev.so.1
$BUILDROOT$PRODUCTDIR
/lib/libudev.so
install_file
$PRODUCTDIR
/share/icons/assistant.png /usr/share/pixmaps/
$PRODUCT
.png
install_file
$PRODUCTDIR
/scripts/assistant.desktop /usr/share/applications/
$PRODUCT
.desktop
fix_desktop_file /opt/assistant/scripts/assistant.sh
$PRODUCT
fix_desktop_file /opt/assistant/share/icons/assistant.png
$PRODUCT
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/scripts/assistant.sh
add_libs_requires
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