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
ffeedebb
Commit
ffeedebb
authored
Jul 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.58.0
parent
27425fff
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
19 deletions
+31
-19
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+31
-19
No files found.
packed/epm.sh
View file @
ffeedebb
This diff is collapsed.
Click to expand it.
packed/serv.sh
View file @
ffeedebb
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.5
7.14
"
EPMVERSION
=
"3.5
8.0
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -1783,20 +1783,25 @@ pkgvendor()
...
@@ -1783,20 +1783,25 @@ pkgvendor()
# TODO: in more appropriate way
# TODO: in more appropriate way
#which pkcon 2>/dev/null >/dev/null && info "You can run $ PMTYPE=packagekit epm to use packagekit backend"
#which pkcon 2>/dev/null >/dev/null && info "You can run $ PMTYPE=packagekit epm to use packagekit backend"
# Print package manager (need DISTRIB_ID
var
)
# Print package manager (need DISTRIB_ID
, DISTRIB_RELEASE vars
)
pkgmanager
()
pkgmanager
()
{
{
local
CMD
local
CMD
# FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu)
case
$DISTRIB_ID
in
case
$VENDOR_ID
in
ALTLinux|ALTServer
)
alt
)
#which ds-install 2>/dev/null >/dev/null && CMD=deepsolver-rpm
echo
"apt-rpm"
&&
return
#which pkcon 2>/dev/null >/dev/null && CMD=packagekit-rpm
CMD
=
"apt-rpm"
;;
;;
ALTServer
)
arch
|
manjaro
)
CMD
=
"apt-rpm"
echo
"pacman"
&&
return
;;
;;
debian
)
echo
"apt-dpkg"
&&
return
;;
esac
# FIXME: some problems with multibased distros (Server Edition on CentOS and Desktop Edition on Ubuntu)
case
$DISTRIB_ID
in
PCLinux
)
PCLinux
)
CMD
=
"apt-rpm"
CMD
=
"apt-rpm"
;;
;;
...
@@ -1877,11 +1882,6 @@ case $DISTRIB_ID in
...
@@ -1877,11 +1882,6 @@ case $DISTRIB_ID in
CMD
=
"xbps"
CMD
=
"xbps"
;;
;;
*
)
*
)
# try detect firstly
if
grep
-q
"ID_LIKE=debian"
/etc/os-release 2>/dev/null
;
then
echo
"apt-dpkg"
&&
return
fi
if
is_command
"rpm"
&&
[
-s
/var/lib/rpm/Name
]
||
[
-s
/var/lib/rpm/rpmdb.sqlite
]
;
then
if
is_command
"rpm"
&&
[
-s
/var/lib/rpm/Name
]
||
[
-s
/var/lib/rpm/rpmdb.sqlite
]
;
then
is_command
"zypper"
&&
echo
"zypper-rpm"
&&
return
is_command
"zypper"
&&
echo
"zypper-rpm"
&&
return
is_command
"dnf"
&&
echo
"dnf-rpm"
&&
return
is_command
"dnf"
&&
echo
"dnf-rpm"
&&
return
...
@@ -1895,7 +1895,7 @@ case $DISTRIB_ID in
...
@@ -1895,7 +1895,7 @@ case $DISTRIB_ID in
is_command
"apt-get"
&&
echo
"apt-dpkg"
&&
return
is_command
"apt-get"
&&
echo
"apt-dpkg"
&&
return
fi
fi
echo
"pkgmanager(): We don't support yet DISTRIB_ID
$DISTRIB_ID
"
>
&2
echo
"pkgmanager(): We don't support yet DISTRIB_ID
$DISTRIB_ID
(VENDOR_ID
$VENDOR_ID
)
"
>
&2
;;
;;
esac
esac
echo
"
$CMD
"
echo
"
$CMD
"
...
@@ -1904,6 +1904,13 @@ echo "$CMD"
...
@@ -1904,6 +1904,13 @@ echo "$CMD"
# Print pkgtype (need DISTRIB_ID var)
# Print pkgtype (need DISTRIB_ID var)
pkgtype
()
pkgtype
()
{
{
case
$VENDOR_ID
in
arch
|
manjaro
)
echo
"pkg.tar.xz"
&&
return
;;
esac
# TODO: try use generic names
# TODO: try use generic names
case
$(
pkgvendor
)
in
case
$(
pkgvendor
)
in
freebsd
)
echo
"tbz"
;;
freebsd
)
echo
"tbz"
;;
...
@@ -1962,6 +1969,9 @@ normalize_name()
...
@@ -1962,6 +1969,9 @@ normalize_name()
"Debian GNU/Linux"
)
"Debian GNU/Linux"
)
echo
"Debian"
echo
"Debian"
;;
;;
"Liya GNU/Linux"
)
echo
"LiyaLinux"
;;
"CentOS Linux"
)
"CentOS Linux"
)
echo
"CentOS"
echo
"CentOS"
;;
;;
...
@@ -2035,11 +2045,13 @@ if distro os-release ; then
...
@@ -2035,11 +2045,13 @@ if distro os-release ; then
DISTRIB_RELEASE_ORIG
=
"
$VERSION_ID
"
DISTRIB_RELEASE_ORIG
=
"
$VERSION_ID
"
DISTRIB_RELEASE
=
"
$VERSION_ID
"
DISTRIB_RELEASE
=
"
$VERSION_ID
"
[
-n
"
$DISTRIB_RELEASE
"
]
||
DISTRIB_RELEASE
=
"CUR"
[
-n
"
$DISTRIB_RELEASE
"
]
||
DISTRIB_RELEASE
=
"CUR"
[
"
$BUILD_ID
"
=
"rolling"
]
&&
DISTRIB_RELEASE
=
"rolling"
[
-n
"
$BUG_REPORT_URL
"
]
||
BUG_REPORT_URL
=
"
$HOME_URL
"
# set by os-release:
# set by os-release:
#PRETTY_NAME
#PRETTY_NAME
VENDOR_ID
=
"
$ID
"
VENDOR_ID
=
"
$ID
"
case
"
$VENDOR_ID
"
in
case
"
$VENDOR_ID
"
in
ubuntu|reld|rhel|astra
)
ubuntu|reld|rhel|astra
|manjaro
)
;;
;;
*
)
*
)
[
-n
"
$ID_LIKE
"
]
&&
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
|
cut
-d
" "
-f1
)
"
[
-n
"
$ID_LIKE
"
]
&&
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
|
cut
-d
" "
-f1
)
"
...
@@ -2141,7 +2153,7 @@ case "$DISTRIB_ID" in
...
@@ -2141,7 +2153,7 @@ case "$DISTRIB_ID" in
esac
esac
[
-n
"
$DISTRIB_ID
"
]
&&
return
[
-n
"
$DISTRIB_ID
"
]
&&
[
-n
"
$DISTRIB_RELEASE
"
]
&&
return
# check via obsoleted ways
# check via obsoleted ways
...
@@ -2527,7 +2539,7 @@ get_service_manager()
...
@@ -2527,7 +2539,7 @@ get_service_manager()
[
-d
/run/systemd/system
]
&&
echo
"systemd"
&&
return
[
-d
/run/systemd/system
]
&&
echo
"systemd"
&&
return
# TODO
# TODO
#[ -d /usr/share/upstart ] && echo "upstart" && return
#[ -d /usr/share/upstart ] && echo "upstart" && return
is_command systemctl
&&
echo
"systemd"
&&
return
is_command systemctl
&&
cat
/proc/1/comm |
grep
-q
'systemd$'
&&
echo
"systemd"
&&
return
[
-d
/etc/init.d
]
&&
echo
"sysvinit"
&&
return
[
-d
/etc/init.d
]
&&
echo
"sysvinit"
&&
return
echo
"(unknown)"
echo
"(unknown)"
}
}
...
...
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