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
6a88579a
Commit
6a88579a
authored
Mar 19, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack: add 1c83-client support
parent
470377e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
0 deletions
+89
-0
1c83-client.sh
pack.d/1c83-client.sh
+41
-0
1c83-client.sh
repack.d/1c83-client.sh
+48
-0
No files found.
pack.d/1c83-client.sh
0 → 100755
View file @
6a88579a
#!/bin/sh
FILENAME
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
echo
"
$(
basename
"
$FILENAME
"
)
"
|
grep
-q
"^setup-full-8
\.
3.*-.*.run$"
||
fatal
"run with file looks like setup-full-8.3.22.1851-x86_64.run"
INSTDIR
=
"/opt/1cv8"
VERSION
=
"
$(
echo
$FILENAME
|
sed
's|.*-8|8|'
|
sed
's|-.*||'
)
"
TARNAME
=
"1c83-client-
$VERSION
.tar"
chmod
-v
u+x
$FILENAME
# По умолчанию устанавливается только "client_full,langs,en,ru,advanced". Все остальные компоненты по умолчанию отключены.
# Задана тихая установка.
$SUDO
$FILENAME
--mode
unattended
||
fatal
"Can't install"
if
echo
"
$FILENAME
"
|
grep
-q
"x86_64.run$"
;
then
arch
=
"x86_64"
elif
echo
"
$FILENAME
"
|
grep
-q
"i586.run$"
;
then
arch
=
"i586"
else
fatal
"Unsupported arch"
fi
# FIXME
UNINSTFILE
=
$INSTDIR
/
$arch
/
$VERSION
/uninstaller-full
[
-s
"
$UNINSTFILE
"
]
||
fatal
"Can't detect
$UNINSTFILE
"
# 8.3.22.1851 -> 8*3*22*1851 (they use - in 1cv8-8.3.22-1851.desktop)
ADDFILES
=
"/usr/share/applications/1cv8*
$(
echo
$VERSION
|
sed
-e
's|\.|*|g'
)
.desktop"
# FIXME: erc?
epm
install
--skip-installed
tar
||
fatal
a
=
tar
cf
$TARNAME
$INSTDIR
$ADDFILES
# Задана тихая деинсталяция.
$SUDO
$UNINSTFILE
--mode
unattended
return_tar
$TARNAME
repack.d/1c83-client.sh
0 → 100755
View file @
6a88579a
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
# source file: 1c83-client-8.3.22.1851.tar
PRODUCT
=
1c83-client.sh
PRODUCTDIR
=
/opt/1cv8
.
$(
dirname
$0
)
/common.sh
# installing from tar, so we need fill some fields here
subst
"s|^Group:.*|Group: Office|"
$SPEC
subst
"s|^License: unknown
$|
License: Proprietary|"
$SPEC
subst
"s|^URL:.*|URL: https://1c.ru|"
$SPEC
subst
"s|^Summary:.*|Summary: 1C 8.3 Client|"
$SPEC
subst
'1iAutoProv:no'
$SPEC
#remove_file /usr/local/bin/$PRODUCT
#add_bin_link_command
if
[
-d
"
$BUILDROOT
/opt/1cv8/x86_64"
]
;
then
arch
=
"x86_64"
elif
[
-d
"
$BUILDROOT
/opt/1cv8/i586"
]
;
then
arch
=
"i586"
else
fatal
"Unsupported arch"
fi
VERSION
=
"
$(
basename
$(
echo
$BUILDROOT
/opt/1cv8/
$arch
/8.3.
*))
"
remove_dir /opt/1cv8/
$arch
/
$VERSION
/ExtDst
epm assure patchelf
||
exit
for
i
in
$BUILDROOT$PRODUCTDIR
/
*
/
*
/lib
*
;
do
a
=
patchelf
--set-rpath
"
\$
ORIGIN:
$PRODUCTDIR
/common"
$i
done
for
i
in
$BUILDROOT$PRODUCTDIR
/common/lib
*
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
done
#epm install --skip-installed libmfx || epm install 316139 || fatal "Can't install libmfx"
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