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
15616615
Commit
15616615
authored
Apr 19, 2016
by
Danil Mikhailov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: added alpine apk package manager install, update, remove, qa, search commands
parent
3caa1ace
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
63 additions
and
0 deletions
+63
-0
distr_info
bin/distr_info
+6
-0
epm-install
bin/epm-install
+6
-0
epm-packages
bin/epm-packages
+3
-0
epm-remove
bin/epm-remove
+3
-0
epm-search
bin/epm-search
+3
-0
epm-sh-functions
bin/epm-sh-functions
+3
-0
epm-update
bin/epm-update
+3
-0
epm.sh
packed/epm.sh
+27
-0
serv.sh
packed/serv.sh
+9
-0
No files found.
bin/distr_info
View file @
15616615
...
@@ -51,6 +51,7 @@ pkgtype()
...
@@ -51,6 +51,7 @@ pkgtype()
gentoo
)
echo
"tbz2"
;;
gentoo
)
echo
"tbz2"
;;
windows
)
echo
"exe"
;;
windows
)
echo
"exe"
;;
android
)
echo
"apk"
;;
android
)
echo
"apk"
;;
alpine
)
echo
"apk"
;;
cygwin
)
echo
"tar.xz"
;;
cygwin
)
echo
"tar.xz"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
...
@@ -130,6 +131,11 @@ elif distro slackware-version ; then
...
@@ -130,6 +131,11 @@ elif distro slackware-version ; then
DISTRIB_ID
=
"Slackware"
DISTRIB_ID
=
"Slackware"
DISTRIB_RELEASE
=
"
$(
grep
-Eo
[
0-9]+
\.
[
0-9]+
$DISTROFILE
)
"
DISTRIB_RELEASE
=
"
$(
grep
-Eo
[
0-9]+
\.
[
0-9]+
$DISTROFILE
)
"
elif
distro os-release
;
then
.
/etc/os-release
DISTRIB_ID
=
"
$ID
"
DISTRIB_RELEASE
=
"
$VERSION_ID
"
elif
distro arch-release
;
then
elif
distro arch-release
;
then
DISTRIB_ID
=
"ArchLinux"
DISTRIB_ID
=
"ArchLinux"
DISTRIB_RELEASE
=
"2010"
DISTRIB_RELEASE
=
"2010"
...
...
bin/epm-install
View file @
15616615
...
@@ -163,6 +163,9 @@ epm_install_names()
...
@@ -163,6 +163,9 @@ epm_install_names()
nix
)
nix
)
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
$@
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
$@
return
;;
return
;;
apk
)
sudocmd apk add
$@
return
;;
guix
)
guix
)
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
return
;;
return
;;
...
@@ -231,6 +234,9 @@ epm_ni_install_names()
...
@@ -231,6 +234,9 @@ epm_ni_install_names()
nix
)
nix
)
sudocmd nix-env
--install
$@
sudocmd nix-env
--install
$@
return
;;
return
;;
apk
)
sudocmd apk add
$@
return
;;
#android)
#android)
# sudocmd pm install $@
# sudocmd pm install $@
# return ;;
# return ;;
...
...
bin/epm-packages
View file @
15616615
...
@@ -122,6 +122,9 @@ case $PMTYPE in
...
@@ -122,6 +122,9 @@ case $PMTYPE in
ipkg
)
ipkg
)
CMD
=
"ipkg list"
CMD
=
"ipkg list"
;;
;;
apk
)
CMD
=
"apk info"
;;
guix
)
guix
)
CMD
=
"guix package -I"
CMD
=
"guix package -I"
;;
;;
...
...
bin/epm-remove
View file @
15616615
...
@@ -107,6 +107,9 @@ epm_remove_names()
...
@@ -107,6 +107,9 @@ epm_remove_names()
nix
)
nix
)
sudocmd nix-env
--uninstall
$@
sudocmd nix-env
--uninstall
$@
return
;;
return
;;
apk
)
sudocmd apk del
$@
return
;;
guix
)
guix
)
sudocmd guix package
-r
$@
sudocmd guix package
-r
$@
return
;;
return
;;
...
...
bin/epm-search
View file @
15616615
...
@@ -64,6 +64,9 @@ case $PMTYPE in
...
@@ -64,6 +64,9 @@ case $PMTYPE in
mpkg
)
mpkg
)
CMD
=
"mpkg search"
CMD
=
"mpkg search"
;;
;;
apk
)
CMD
=
"apk search"
;;
conary
)
conary
)
CMD
=
"conary repquery"
CMD
=
"conary repquery"
;;
;;
...
...
bin/epm-sh-functions
View file @
15616615
...
@@ -469,6 +469,9 @@ case $DISTRNAME in
...
@@ -469,6 +469,9 @@ case $DISTRNAME in
Cygwin
)
Cygwin
)
CMD
=
"aptcyg"
CMD
=
"aptcyg"
;;
;;
alpine
)
CMD
=
"apk"
;;
*
)
*
)
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
;;
;;
...
...
bin/epm-update
View file @
15616615
...
@@ -80,6 +80,9 @@ case $PMTYPE in
...
@@ -80,6 +80,9 @@ case $PMTYPE in
ipkg
)
ipkg
)
sudocmd ipkg update
sudocmd ipkg update
;;
;;
apk
)
sudocmd apk update
;;
pkgsrc
)
pkgsrc
)
# portsnap extract for the first time?
# portsnap extract for the first time?
sudocmd portsnap fetch update
sudocmd portsnap fetch update
...
...
packed/epm.sh
View file @
15616615
...
@@ -459,6 +459,9 @@ case $DISTRNAME in
...
@@ -459,6 +459,9 @@ case $DISTRNAME in
Cygwin
)
Cygwin
)
CMD
=
"aptcyg"
CMD
=
"aptcyg"
;;
;;
alpine
)
CMD
=
"apk"
;;
*
)
*
)
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
;;
;;
...
@@ -1706,6 +1709,9 @@ epm_install_names()
...
@@ -1706,6 +1709,9 @@ epm_install_names()
nix
)
nix
)
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
$@
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
$@
return
;;
return
;;
apk
)
sudocmd apk add
$@
return
;;
guix
)
guix
)
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
return
;;
return
;;
...
@@ -1773,6 +1779,9 @@ epm_ni_install_names()
...
@@ -1773,6 +1779,9 @@ epm_ni_install_names()
nix
)
nix
)
sudocmd nix-env
--install
$@
sudocmd nix-env
--install
$@
return
;;
return
;;
apk
)
sudocmd apk add
$@
return
;;
#android)
#android)
# sudocmd pm install $@
# sudocmd pm install $@
# return ;;
# return ;;
...
@@ -2236,6 +2245,9 @@ case $PMTYPE in
...
@@ -2236,6 +2245,9 @@ case $PMTYPE in
ipkg
)
ipkg
)
CMD
=
"ipkg list"
CMD
=
"ipkg list"
;;
;;
apk
)
CMD
=
"apk info"
;;
guix
)
guix
)
CMD
=
"guix package -I"
CMD
=
"guix package -I"
;;
;;
...
@@ -3262,6 +3274,9 @@ epm_remove_names()
...
@@ -3262,6 +3274,9 @@ epm_remove_names()
nix
)
nix
)
sudocmd nix-env
--uninstall
$@
sudocmd nix-env
--uninstall
$@
return
;;
return
;;
apk
)
sudocmd apk del
$@
return
;;
guix
)
guix
)
sudocmd guix package
-r
$@
sudocmd guix package
-r
$@
return
;;
return
;;
...
@@ -3693,6 +3708,9 @@ case $PMTYPE in
...
@@ -3693,6 +3708,9 @@ case $PMTYPE in
mpkg
)
mpkg
)
CMD
=
"mpkg search"
CMD
=
"mpkg search"
;;
;;
apk
)
CMD
=
"apk search"
;;
conary
)
conary
)
CMD
=
"conary repquery"
CMD
=
"conary repquery"
;;
;;
...
@@ -4194,6 +4212,9 @@ case $PMTYPE in
...
@@ -4194,6 +4212,9 @@ case $PMTYPE in
ipkg
)
ipkg
)
sudocmd ipkg update
sudocmd ipkg update
;;
;;
apk
)
sudocmd apk update
;;
pkgsrc
)
pkgsrc
)
# portsnap extract for the first time?
# portsnap extract for the first time?
sudocmd portsnap fetch update
sudocmd portsnap fetch update
...
@@ -4446,6 +4467,7 @@ pkgtype()
...
@@ -4446,6 +4467,7 @@ pkgtype()
gentoo
)
echo
"tbz2"
;;
gentoo
)
echo
"tbz2"
;;
windows
)
echo
"exe"
;;
windows
)
echo
"exe"
;;
android
)
echo
"apk"
;;
android
)
echo
"apk"
;;
alpine
)
echo
"apk"
;;
cygwin
)
echo
"tar.xz"
;;
cygwin
)
echo
"tar.xz"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
...
@@ -4525,6 +4547,11 @@ elif distro slackware-version ; then
...
@@ -4525,6 +4547,11 @@ elif distro slackware-version ; then
DISTRIB_ID
=
"Slackware"
DISTRIB_ID
=
"Slackware"
DISTRIB_RELEASE
=
"
$(
grep
-Eo
[
0-9]+
\.
[
0-9]+
$DISTROFILE
)
"
DISTRIB_RELEASE
=
"
$(
grep
-Eo
[
0-9]+
\.
[
0-9]+
$DISTROFILE
)
"
elif
distro os-release
;
then
.
/etc/os-release
DISTRIB_ID
=
"
$ID
"
DISTRIB_RELEASE
=
"
$VERSION_ID
"
elif
distro arch-release
;
then
elif
distro arch-release
;
then
DISTRIB_ID
=
"ArchLinux"
DISTRIB_ID
=
"ArchLinux"
DISTRIB_RELEASE
=
"2010"
DISTRIB_RELEASE
=
"2010"
...
...
packed/serv.sh
View file @
15616615
...
@@ -457,6 +457,9 @@ case $DISTRNAME in
...
@@ -457,6 +457,9 @@ case $DISTRNAME in
Cygwin
)
Cygwin
)
CMD
=
"aptcyg"
CMD
=
"aptcyg"
;;
;;
alpine
)
CMD
=
"apk"
;;
*
)
*
)
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
;;
;;
...
@@ -871,6 +874,7 @@ pkgtype()
...
@@ -871,6 +874,7 @@ pkgtype()
gentoo
)
echo
"tbz2"
;;
gentoo
)
echo
"tbz2"
;;
windows
)
echo
"exe"
;;
windows
)
echo
"exe"
;;
android
)
echo
"apk"
;;
android
)
echo
"apk"
;;
alpine
)
echo
"apk"
;;
cygwin
)
echo
"tar.xz"
;;
cygwin
)
echo
"tar.xz"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
...
@@ -950,6 +954,11 @@ elif distro slackware-version ; then
...
@@ -950,6 +954,11 @@ elif distro slackware-version ; then
DISTRIB_ID
=
"Slackware"
DISTRIB_ID
=
"Slackware"
DISTRIB_RELEASE
=
"
$(
grep
-Eo
[
0-9]+
\.
[
0-9]+
$DISTROFILE
)
"
DISTRIB_RELEASE
=
"
$(
grep
-Eo
[
0-9]+
\.
[
0-9]+
$DISTROFILE
)
"
elif
distro os-release
;
then
.
/etc/os-release
DISTRIB_ID
=
"
$ID
"
DISTRIB_RELEASE
=
"
$VERSION_ID
"
elif
distro arch-release
;
then
elif
distro arch-release
;
then
DISTRIB_ID
=
"ArchLinux"
DISTRIB_ID
=
"ArchLinux"
DISTRIB_RELEASE
=
"2010"
DISTRIB_RELEASE
=
"2010"
...
...
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