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
Show 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()
gentoo
)
echo
"tbz2"
;;
windows
)
echo
"exe"
;;
android
)
echo
"apk"
;;
alpine
)
echo
"apk"
;;
cygwin
)
echo
"tar.xz"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
...
...
@@ -130,6 +131,11 @@ elif distro slackware-version ; then
DISTRIB_ID
=
"Slackware"
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
DISTRIB_ID
=
"ArchLinux"
DISTRIB_RELEASE
=
"2010"
...
...
bin/epm-install
View file @
15616615
...
...
@@ -163,6 +163,9 @@ epm_install_names()
nix
)
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
$@
return
;;
apk
)
sudocmd apk add
$@
return
;;
guix
)
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
return
;;
...
...
@@ -231,6 +234,9 @@ epm_ni_install_names()
nix
)
sudocmd nix-env
--install
$@
return
;;
apk
)
sudocmd apk add
$@
return
;;
#android)
# sudocmd pm install $@
# return ;;
...
...
bin/epm-packages
View file @
15616615
...
...
@@ -122,6 +122,9 @@ case $PMTYPE in
ipkg
)
CMD
=
"ipkg list"
;;
apk
)
CMD
=
"apk info"
;;
guix
)
CMD
=
"guix package -I"
;;
...
...
bin/epm-remove
View file @
15616615
...
...
@@ -107,6 +107,9 @@ epm_remove_names()
nix
)
sudocmd nix-env
--uninstall
$@
return
;;
apk
)
sudocmd apk del
$@
return
;;
guix
)
sudocmd guix package
-r
$@
return
;;
...
...
bin/epm-search
View file @
15616615
...
...
@@ -64,6 +64,9 @@ case $PMTYPE in
mpkg
)
CMD
=
"mpkg search"
;;
apk
)
CMD
=
"apk search"
;;
conary
)
CMD
=
"conary repquery"
;;
...
...
bin/epm-sh-functions
View file @
15616615
...
...
@@ -469,6 +469,9 @@ case $DISTRNAME in
Cygwin
)
CMD
=
"aptcyg"
;;
alpine
)
CMD
=
"apk"
;;
*
)
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
;;
...
...
bin/epm-update
View file @
15616615
...
...
@@ -80,6 +80,9 @@ case $PMTYPE in
ipkg
)
sudocmd ipkg update
;;
apk
)
sudocmd apk update
;;
pkgsrc
)
# portsnap extract for the first time?
sudocmd portsnap fetch update
...
...
packed/epm.sh
View file @
15616615
...
...
@@ -459,6 +459,9 @@ case $DISTRNAME in
Cygwin
)
CMD
=
"aptcyg"
;;
alpine
)
CMD
=
"apk"
;;
*
)
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
;;
...
...
@@ -1706,6 +1709,9 @@ epm_install_names()
nix
)
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
$@
return
;;
apk
)
sudocmd apk add
$@
return
;;
guix
)
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
return
;;
...
...
@@ -1773,6 +1779,9 @@ epm_ni_install_names()
nix
)
sudocmd nix-env
--install
$@
return
;;
apk
)
sudocmd apk add
$@
return
;;
#android)
# sudocmd pm install $@
# return ;;
...
...
@@ -2236,6 +2245,9 @@ case $PMTYPE in
ipkg
)
CMD
=
"ipkg list"
;;
apk
)
CMD
=
"apk info"
;;
guix
)
CMD
=
"guix package -I"
;;
...
...
@@ -3262,6 +3274,9 @@ epm_remove_names()
nix
)
sudocmd nix-env
--uninstall
$@
return
;;
apk
)
sudocmd apk del
$@
return
;;
guix
)
sudocmd guix package
-r
$@
return
;;
...
...
@@ -3693,6 +3708,9 @@ case $PMTYPE in
mpkg
)
CMD
=
"mpkg search"
;;
apk
)
CMD
=
"apk search"
;;
conary
)
CMD
=
"conary repquery"
;;
...
...
@@ -4194,6 +4212,9 @@ case $PMTYPE in
ipkg
)
sudocmd ipkg update
;;
apk
)
sudocmd apk update
;;
pkgsrc
)
# portsnap extract for the first time?
sudocmd portsnap fetch update
...
...
@@ -4446,6 +4467,7 @@ pkgtype()
gentoo
)
echo
"tbz2"
;;
windows
)
echo
"exe"
;;
android
)
echo
"apk"
;;
alpine
)
echo
"apk"
;;
cygwin
)
echo
"tar.xz"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
...
...
@@ -4525,6 +4547,11 @@ elif distro slackware-version ; then
DISTRIB_ID
=
"Slackware"
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
DISTRIB_ID
=
"ArchLinux"
DISTRIB_RELEASE
=
"2010"
...
...
packed/serv.sh
View file @
15616615
...
...
@@ -457,6 +457,9 @@ case $DISTRNAME in
Cygwin
)
CMD
=
"aptcyg"
;;
alpine
)
CMD
=
"apk"
;;
*
)
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
;;
...
...
@@ -871,6 +874,7 @@ pkgtype()
gentoo
)
echo
"tbz2"
;;
windows
)
echo
"exe"
;;
android
)
echo
"apk"
;;
alpine
)
echo
"apk"
;;
cygwin
)
echo
"tar.xz"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
...
...
@@ -950,6 +954,11 @@ elif distro slackware-version ; then
DISTRIB_ID
=
"Slackware"
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
DISTRIB_ID
=
"ArchLinux"
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