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
8aa6e725
Commit
8aa6e725
authored
Dec 24, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
backported to p7 as 1.5.8-alt0.M70P.1 (with rpmbph script)
parents
dd584ea6
28b68c58
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
8 deletions
+35
-8
epm-checkpkg
bin/epm-checkpkg
+1
-1
serv
bin/serv
+4
-1
eepm.spec
eepm.spec
+6
-2
epm.sh
packed/epm.sh
+18
-2
serv.sh
packed/serv.sh
+6
-2
No files found.
bin/epm-checkpkg
View file @
8aa6e725
...
...
@@ -39,7 +39,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
...
...
bin/serv
View file @
8aa6e725
...
...
@@ -56,9 +56,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
...
...
eepm.spec
View file @
8aa6e725
# This spec is backported to ALTLinux p7 automatically by rpmbph script. Do not edit it.
#
Name: eepm
Version: 1.5.
7
Version: 1.5.
8
Release: alt0.M70P.1
Summary: Etersoft EPM package manager
...
...
@@ -67,9 +67,13 @@ chmod a+x %buildroot%_datadir/%name/{serv-,epm-}*
%_sysconfdir/bash_completion.d/cerv
%changelog
* Wed Dec
17 2014 Vitaly Lipatov <lav@altlinux.ru> 1.5.7
-alt0.M70P.1
* Wed Dec
24 2014 Vitaly Lipatov <lav@altlinux.ru> 1.5.8
-alt0.M70P.1
- backport to ALTLinux p7 (by rpmbph script)
* Wed Dec 24 2014 Vitaly Lipatov <lav@altlinux.ru> 1.5.8-alt1
- add initial snappy support
- remove extra deps
* Fri Dec 05 2014 Vitaly Lipatov <lav@altlinux.ru> 1.5.7-alt1
- checkpkg: add msi checking
- epm-packages: fix --sort
...
...
packed/epm.sh
View file @
8aa6e725
...
...
@@ -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 @
8aa6e725
...
...
@@ -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