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
Nurlan
eepm
Commits
2ccb246b
Commit
2ccb246b
authored
Jul 23, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch from ipkg to opkg for OpenWrt
parent
18be4a64
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
28 deletions
+31
-28
epm-info
bin/epm-info
+2
-2
epm-install
bin/epm-install
+6
-6
epm-packages
bin/epm-packages
+2
-2
epm-query_file
bin/epm-query_file
+2
-2
epm-remove
bin/epm-remove
+6
-6
epm-search_file
bin/epm-search_file
+2
-2
epm-sh-functions
bin/epm-sh-functions
+2
-2
epm-update
bin/epm-update
+2
-2
epm-upgrade
bin/epm-upgrade
+2
-2
epm-whatprovides
bin/epm-whatprovides
+5
-2
No files found.
bin/epm-info
View file @
2ccb246b
...
@@ -109,8 +109,8 @@ case $PMTYPE in
...
@@ -109,8 +109,8 @@ case $PMTYPE in
slackpkg
)
slackpkg
)
docmd /usr/sbin/slackpkg info
$pkg_names
docmd /usr/sbin/slackpkg info
$pkg_names
;;
;;
i
pkg
)
o
pkg
)
docmd
i
pkg info
$pkg_names
docmd
o
pkg info
$pkg_names
;;
;;
pkgng
)
pkgng
)
docmd pkg info
$pkg_names
docmd pkg info
$pkg_names
...
...
bin/epm-install
View file @
2ccb246b
...
@@ -173,9 +173,9 @@ epm_install_names()
...
@@ -173,9 +173,9 @@ epm_install_names()
# FIXME: sudo and quote
# FIXME: sudo and quote
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
"
$@
"
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
"
$@
"
return
;;
return
;;
i
pkg
)
o
pkg
)
[
-n
"
$force
"
]
&&
force
=
-force-depends
[
-n
"
$force
"
]
&&
force
=
-force-depends
sudocmd
i
pkg
$force
install
$@
sudocmd
o
pkg
$force
install
$@
return
;;
return
;;
nix
)
nix
)
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
"
$@
"
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
"
$@
"
...
@@ -252,8 +252,8 @@ epm_ni_install_names()
...
@@ -252,8 +252,8 @@ epm_ni_install_names()
chocolatey
)
chocolatey
)
docmd chocolatey
install
$@
docmd chocolatey
install
$@
return
;;
return
;;
i
pkg
)
o
pkg
)
sudocmd
i
pkg
-force-defaults
install
$@
sudocmd
o
pkg
-force-defaults
install
$@
return
;;
return
;;
nix
)
nix
)
sudocmd nix-env
--install
$@
sudocmd nix-env
--install
$@
...
@@ -468,8 +468,8 @@ epm_print_install_command()
...
@@ -468,8 +468,8 @@ epm_print_install_command()
npackd
)
npackd
)
echo
"npackdcl add --package=
$*
"
echo
"npackdcl add --package=
$*
"
;;
;;
i
pkg
)
o
pkg
)
echo
"
i
pkg install
$*
"
echo
"
o
pkg install
$*
"
;;
;;
android
)
android
)
echo
"pm install
$*
"
echo
"pm install
$*
"
...
...
bin/epm-packages
View file @
2ccb246b
...
@@ -138,8 +138,8 @@ case $PMTYPE in
...
@@ -138,8 +138,8 @@ case $PMTYPE in
homebrew
)
homebrew
)
docmd brew list | xargs
-n1
echo
docmd brew list | xargs
-n1
echo
;;
;;
i
pkg
)
o
pkg
)
CMD
=
"
i
pkg list"
CMD
=
"
o
pkg list"
;;
;;
apk
)
apk
)
CMD
=
"apk info"
CMD
=
"apk info"
...
...
bin/epm-query_file
View file @
2ccb246b
...
@@ -109,8 +109,8 @@ __do_query()
...
@@ -109,8 +109,8 @@ __do_query()
docmd
grep
-R
--
"
$(
echo
$@
|
sed
-e
's|^/\+||g'
)
"
/var/log/packages |
sed
-e
"s|/var/log/packages/||g"
docmd
grep
-R
--
"
$(
echo
$@
|
sed
-e
's|^/\+||g'
)
"
/var/log/packages |
sed
-e
"s|/var/log/packages/||g"
return
return
;;
;;
i
pkg
)
o
pkg
)
CMD
=
"
i
pkg files"
CMD
=
"
o
pkg files"
;;
;;
xbps
)
xbps
)
# FIXME: maybe it is search file?
# FIXME: maybe it is search file?
...
...
bin/epm-remove
View file @
2ccb246b
...
@@ -139,9 +139,9 @@ epm_remove_names()
...
@@ -139,9 +139,9 @@ epm_remove_names()
xbps
)
xbps
)
sudocmd xbps remove
-R
$@
sudocmd xbps remove
-R
$@
return
;;
return
;;
i
pkg
)
o
pkg
)
# shellcheck disable=SC2046
# shellcheck disable=SC2046
sudocmd
i
pkg
$(
subst_option force
-force-depends
)
remove
$@
sudocmd
o
pkg
$(
subst_option force
-force-depends
)
remove
$@
return
;;
return
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
...
@@ -185,8 +185,8 @@ epm_remove_nonint()
...
@@ -185,8 +185,8 @@ epm_remove_nonint()
pkgng
)
pkgng
)
sudocmd pkg delete
-y
-R
$@
sudocmd pkg delete
-y
-R
$@
return
;;
return
;;
i
pkg
)
o
pkg
)
sudocmd
i
pkg
-force-defaults
remove
$@
sudocmd
o
pkg
-force-defaults
remove
$@
return
;;
return
;;
xbps
)
xbps
)
sudocmd xbps remove
-y
$@
sudocmd xbps remove
-y
$@
...
@@ -219,8 +219,8 @@ epm_print_remove_command()
...
@@ -219,8 +219,8 @@ epm_print_remove_command()
slackpkg
)
slackpkg
)
echo
"/sbin/removepkg
$*
"
echo
"/sbin/removepkg
$*
"
;;
;;
i
pkg
)
o
pkg
)
echo
"
i
pkg remove
$*
"
echo
"
o
pkg remove
$*
"
;;
;;
aptcyg
)
aptcyg
)
echo
"apt-cyg remove
$*
"
echo
"apt-cyg remove
$*
"
...
...
bin/epm-search_file
View file @
2ccb246b
...
@@ -83,8 +83,8 @@ case $PMTYPE in
...
@@ -83,8 +83,8 @@ case $PMTYPE in
slackpkg
)
slackpkg
)
CMD
=
"/usr/sbin/slackpkg file-search"
CMD
=
"/usr/sbin/slackpkg file-search"
;;
;;
i
pkg
)
o
pkg
)
CMD
=
"
i
pkg search"
CMD
=
"
o
pkg search"
;;
;;
xbps
)
xbps
)
CMD
=
"xbps-query -Ro"
CMD
=
"xbps-query -Ro"
...
...
bin/epm-sh-functions
View file @
2ccb246b
...
@@ -521,8 +521,8 @@ case $DISTRNAME in
...
@@ -521,8 +521,8 @@ case $DISTRNAME in
MacOS
)
MacOS
)
CMD
=
"homebrew"
CMD
=
"homebrew"
;;
;;
OpenW
RT
)
OpenW
rt
)
CMD
=
"
i
pkg"
CMD
=
"
o
pkg"
;;
;;
GNU/Linux/Guix
)
GNU/Linux/Guix
)
CMD
=
"guix"
CMD
=
"guix"
...
...
bin/epm-update
View file @
2ccb246b
...
@@ -81,8 +81,8 @@ case $PMTYPE in
...
@@ -81,8 +81,8 @@ case $PMTYPE in
homebrew
)
homebrew
)
docmd brew update
docmd brew update
;;
;;
i
pkg
)
o
pkg
)
sudocmd
i
pkg update
sudocmd
o
pkg update
;;
;;
apk
)
apk
)
sudocmd apk update
sudocmd apk update
...
...
bin/epm-upgrade
View file @
2ccb246b
...
@@ -86,8 +86,8 @@ epm_upgrade()
...
@@ -86,8 +86,8 @@ epm_upgrade()
docmd
"brew upgrade
$(
brew outdated
)
"
docmd
"brew upgrade
$(
brew outdated
)
"
return
return
;;
;;
i
pkg
)
o
pkg
)
CMD
=
"
i
pkg upgrade"
CMD
=
"
o
pkg upgrade"
;;
;;
slackpkg
)
slackpkg
)
CMD
=
"/usr/sbin/slackpkg upgrade-all"
CMD
=
"/usr/sbin/slackpkg upgrade-all"
...
...
bin/epm-whatprovides
View file @
2ccb246b
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2013, 2016 Etersoft
# Copyright (C) 2013, 2016
, 2018
Etersoft
# Copyright (C) 2013, 2016 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013, 2016
, 2018
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -47,6 +47,9 @@ case $PMTYPE in
...
@@ -47,6 +47,9 @@ case $PMTYPE in
zypper-rpm
)
zypper-rpm
)
CMD
=
"zypper what-provides"
CMD
=
"zypper what-provides"
;;
;;
opkg
)
CMD
=
"opkg whatprovides"
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
;;
;;
...
...
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