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
2d6d9db6
Commit
2d6d9db6
authored
Aug 27, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add trueconf client support
parent
39e63cf4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
15 deletions
+63
-15
trueconf.sh
play.d/trueconf.sh
+50
-0
trueconf.sh
repack.d/trueconf.sh
+13
-15
No files found.
play.d/trueconf.sh
0 → 100755
View file @
2d6d9db6
#!/bin/sh
PKGNAME
=
trueconf
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"TrueConf client for Linux from the official site"
.
$(
dirname
$0
)
/common.sh
epmopt
=
''
case
"
$(
$DISTRVENDOR
-e
)
"
in
ALTLinux/p10|ALTServer/10|ALTLinux/Sisyphus
)
URL
=
"https://mirror.trueconf.ru/altlinux/p10/x86_64/RPMS.non-free/trueconf-[0-9]*.x86_64.rpm"
epmopt
=
'--direct --repack'
;;
ALTLinux/p9
)
URL
=
"https://mirror.trueconf.ru/altlinux/p9/x86_64/RPMS.non-free/trueconf-[0-9]*.x86_64.rpm"
epmopt
=
'--direct --repack'
;;
AstraLinuxCE/2.12
*
)
URL
=
"https://mirror.trueconf.ru/astra212/pool/non-free/t/trueconf/trueconf_[0-9]_amd64.deb"
;;
AstraLinuxSE/1.7
*
)
URL
=
"https://mirror.trueconf.ru/astra17/pool/non-free/t/trueconf/trueconf_[0-9]_amd64.deb"
;;
RedOS/7.2
)
URL
=
"https://mirror.trueconf.ru/redos/7.2/x86_64/release/trueconf-[0-9]*.x86_64.rpm"
;;
RedOS/7.3
*
)
URL
=
"https://mirror.trueconf.ru/redos/7.3.1/x86_64/release/trueconf-[0-9]*.x86_64.rpm"
;;
ROSA/2021
)
URL
=
"https://mirror.trueconf.ru/rosa/R12/x86_64/testing/trueconf-[0-9].x86_64.rpm"
;;
*
)
fatal
"
$(
$DISTRVENDOR
-e
)
is not supported"
esac
# workaround for --noscripts for apt-get
if
[
-n
"
$epmopt
"
]
;
then
tmpdir
=
$(
mktemp
-d
)
cd
$tmpdir
||
fatal
epm tool eget
$URL
||
fatal
PKG
=
$(
echo
*)
epm
install
$(
epm req
$PKG
)
||
fatal
"Can't install requirements of the trueconf package"
epm
install
$epmopt
"
$PKG
"
||
exit
rm
-rf
$tmpdir
exit
0
fi
epm
install
$epmopt
"
$URL
"
||
exit
repack.d/trueconf.sh
View file @
2d6d9db6
...
...
@@ -2,23 +2,21 @@
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
trueconf
PRODUCTDIR
=
/opt/trueconf
subst
's|%dir "/usr/share/icons/hicolor/.*||'
$SPEC
.
$(
dirname
$0
)
/common.sh
# Make relative symlink
# TODO: alien does not support ghost files?
mkdir
-p
$BUILDROOT
/usr/bin/
rm
-f
$BUILDROOT
/usr/bin/trueconf
ln
-s
../../opt/trueconf/trueconf-client
$BUILDROOT
/usr/bin/trueconf
chmod
a+x
$BUILDROOT
/opt/trueconf/trueconf-client
add_bin_link_command
rm
-rvf
$BUILDROOT
/usr/local/
chmod
a+x
$BUILDROOT
/opt/trueconf/trueconf
chmod
a+x
$BUILDROOT
/opt/trueconf/trueconf-autostart
[
"
$(
$DISTRVENDOR
-b
)
"
=
64
]
&&
LIBUDEV
=
/lib64/libudev.so.0
||
LIBUDEV
=
/lib/libudev.so.0
ln
-s
$LIBUDEV
$BUILDROOT
/opt/trueconf/lib/libudev.so.0
REQUIRES
=
"libudev1 pulseaudio alsa-utils libv4l sqlite gtk2 libpng openssl udev libxslt xdg-utils"
subst
"s|^
\(
Name: .*
\)
$|
# FIXME: due libcrypto.so.10(libcrypto.so.10)(64bit) autoreqs
\n
AutoReq:yes,nolib
\n
# Converted from original package requires
\n
Requires:
$REQUIRES
\n\1
|g"
$SPEC
subst
's|.*/usr/local.*||'
$SPEC
epm assure patchelf
||
exit
for
i
in
lib/libboost
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$BUILDROOT$PRODUCTDIR
/
$i
done
for
i
in
TrueConf
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/lib'
$BUILDROOT$PRODUCTDIR
/
$i
done
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