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
Vladislav
eepm
Commits
28b68c58
Commit
28b68c58
authored
Dec 24, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed files
parent
9a3c6d78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
epm.sh
packed/epm.sh
+18
-2
serv.sh
packed/serv.sh
+6
-2
No files found.
packed/epm.sh
View file @
28b68c58
...
...
@@ -377,6 +377,7 @@ case $DISTRNAME in
Ubuntu|Debian|Mint
)
CMD
=
"apt-dpkg"
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
which snappy 2>/dev/null
>
/dev/null
&&
CMD
=
snappy
;;
Mandriva|ROSA
)
CMD
=
"urpm-rpm"
...
...
@@ -784,7 +785,7 @@ check_pkg_integrity()
# TODO: add to patool via cabextract
assure_exists cabextract
#file $PKG | grep -q "Microsoft Office Document"
cabextract
-t
$PKG
docmd
cabextract
-t
$PKG
;;
ebuild
)
true
...
...
@@ -1407,6 +1408,9 @@ epm_install_names()
dnf-rpm
)
sudocmd dnf
install
$@
return
;;
snappy
)
sudocmd snappy
install
$@
return
;;
zypper-rpm
)
sudocmd zypper
install
$ZYPPEROPTIONS
$@
return
;;
...
...
@@ -1846,6 +1850,9 @@ case $PMTYPE in
CMD
=
"dpkg-query -W --showformat=
\$
{Package}-
\$
{Version}
\n
$pkg_filenames
"
[
-n
"
$short
"
]
&&
CMD
=
"dpkg-query -W --showformat=
\$
{Package}
\n
$pkg_filenames
"
;;
snappy
)
CMD
=
"snappy info"
;;
yum-rpm|urpm-rpm|zypper-rpm|dnf-rpm
)
CMD
=
"rpm -qa
$pkg_filenames
"
[
-n
"
$short
"
]
&&
CMD
=
"rpm -qa --queryformat %{name}
\n
$pkg_filenames
"
...
...
@@ -2546,6 +2553,9 @@ epm_remove_names()
dnf-rpm
)
sudocmd dnf remove
$@
return
;;
snappy
)
sudocmd snappy uninstall
$@
return
;;
zypper-rpm
)
sudocmd zypper remove
$@
return
;;
...
...
@@ -3235,6 +3245,9 @@ case $PMTYPE in
#sudocmd apt-get -f install || exit
#sudocmd apt-get autoremove
;;
#snappy)
# sudocmd snappy
# ;;
aptitude-dpkg
)
sudocmd aptitude update
||
exit
;;
...
...
@@ -3310,6 +3323,9 @@ epm_upgrade()
dnf-rpm
)
CMD
=
"dnf update"
;;
snappy
)
CMD
=
"snappy update"
;;
urpm-rpm
)
# or --auto-select --replace-files
CMD
=
"urpmi --auto-update"
...
...
@@ -3776,7 +3792,7 @@ $(get_help HELPOPT)
print_version
()
{
echo
"EPM package manager version 1.5.
7
"
echo
"EPM package manager version 1.5.
8
"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-2014"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
packed/serv.sh
View file @
28b68c58
...
...
@@ -375,6 +375,7 @@ case $DISTRNAME in
Ubuntu|Debian|Mint
)
CMD
=
"apt-dpkg"
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
which snappy 2>/dev/null
>
/dev/null
&&
CMD
=
snappy
;;
Mandriva|ROSA
)
CMD
=
"urpm-rpm"
...
...
@@ -1067,9 +1068,12 @@ set_service_type()
is_active_systemd
()
{
local
a
SYSTEMCTL
=
/bin/systemctl
SYSTEMD_CGROUP_DIR
=
/sys/fs/cgroup/systemd
[
-x
"
$SYSTEMCTL
"
]
&&
[
-d
"
$SYSTEMD_CGROUP_DIR
"
]
&&
mountpoint
-q
"
$SYSTEMD_CGROUP_DIR
"
[
-x
"
$SYSTEMCTL
"
]
||
return
[
-d
"
$SYSTEMD_CGROUP_DIR
"
]
||
return
a
=
mountpoint
-q
"
$SYSTEMD_CGROUP_DIR
"
}
case
$DISTRNAME
in
...
...
@@ -1134,7 +1138,7 @@ $(get_help HELPOPT)
print_version
()
{
echo
"Service manager version 1.5.
7
"
echo
"Service manager version 1.5.
8
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
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