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
slackpkg
)
docmd /usr/sbin/slackpkg info
$pkg_names
;;
i
pkg
)
docmd
i
pkg info
$pkg_names
o
pkg
)
docmd
o
pkg info
$pkg_names
;;
pkgng
)
docmd pkg info
$pkg_names
...
...
bin/epm-install
View file @
2ccb246b
...
...
@@ -173,9 +173,9 @@ epm_install_names()
# FIXME: sudo and quote
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
"
$@
"
return
;;
i
pkg
)
o
pkg
)
[
-n
"
$force
"
]
&&
force
=
-force-depends
sudocmd
i
pkg
$force
install
$@
sudocmd
o
pkg
$force
install
$@
return
;;
nix
)
__separate_sudocmd
"nix-env --install"
"nix-env --upgrade"
"
$@
"
...
...
@@ -252,8 +252,8 @@ epm_ni_install_names()
chocolatey
)
docmd chocolatey
install
$@
return
;;
i
pkg
)
sudocmd
i
pkg
-force-defaults
install
$@
o
pkg
)
sudocmd
o
pkg
-force-defaults
install
$@
return
;;
nix
)
sudocmd nix-env
--install
$@
...
...
@@ -468,8 +468,8 @@ epm_print_install_command()
npackd
)
echo
"npackdcl add --package=
$*
"
;;
i
pkg
)
echo
"
i
pkg install
$*
"
o
pkg
)
echo
"
o
pkg install
$*
"
;;
android
)
echo
"pm install
$*
"
...
...
bin/epm-packages
View file @
2ccb246b
...
...
@@ -138,8 +138,8 @@ case $PMTYPE in
homebrew
)
docmd brew list | xargs
-n1
echo
;;
i
pkg
)
CMD
=
"
i
pkg list"
o
pkg
)
CMD
=
"
o
pkg list"
;;
apk
)
CMD
=
"apk info"
...
...
bin/epm-query_file
View file @
2ccb246b
...
...
@@ -109,8 +109,8 @@ __do_query()
docmd
grep
-R
--
"
$(
echo
$@
|
sed
-e
's|^/\+||g'
)
"
/var/log/packages |
sed
-e
"s|/var/log/packages/||g"
return
;;
i
pkg
)
CMD
=
"
i
pkg files"
o
pkg
)
CMD
=
"
o
pkg files"
;;
xbps
)
# FIXME: maybe it is search file?
...
...
bin/epm-remove
View file @
2ccb246b
...
...
@@ -139,9 +139,9 @@ epm_remove_names()
xbps
)
sudocmd xbps remove
-R
$@
return
;;
i
pkg
)
o
pkg
)
# shellcheck disable=SC2046
sudocmd
i
pkg
$(
subst_option force
-force-depends
)
remove
$@
sudocmd
o
pkg
$(
subst_option force
-force-depends
)
remove
$@
return
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
...
...
@@ -185,8 +185,8 @@ epm_remove_nonint()
pkgng
)
sudocmd pkg delete
-y
-R
$@
return
;;
i
pkg
)
sudocmd
i
pkg
-force-defaults
remove
$@
o
pkg
)
sudocmd
o
pkg
-force-defaults
remove
$@
return
;;
xbps
)
sudocmd xbps remove
-y
$@
...
...
@@ -219,8 +219,8 @@ epm_print_remove_command()
slackpkg
)
echo
"/sbin/removepkg
$*
"
;;
i
pkg
)
echo
"
i
pkg remove
$*
"
o
pkg
)
echo
"
o
pkg remove
$*
"
;;
aptcyg
)
echo
"apt-cyg remove
$*
"
...
...
bin/epm-search_file
View file @
2ccb246b
...
...
@@ -83,8 +83,8 @@ case $PMTYPE in
slackpkg
)
CMD
=
"/usr/sbin/slackpkg file-search"
;;
i
pkg
)
CMD
=
"
i
pkg search"
o
pkg
)
CMD
=
"
o
pkg search"
;;
xbps
)
CMD
=
"xbps-query -Ro"
...
...
bin/epm-sh-functions
View file @
2ccb246b
...
...
@@ -521,8 +521,8 @@ case $DISTRNAME in
MacOS
)
CMD
=
"homebrew"
;;
OpenW
RT
)
CMD
=
"
i
pkg"
OpenW
rt
)
CMD
=
"
o
pkg"
;;
GNU/Linux/Guix
)
CMD
=
"guix"
...
...
bin/epm-update
View file @
2ccb246b
...
...
@@ -81,8 +81,8 @@ case $PMTYPE in
homebrew
)
docmd brew update
;;
i
pkg
)
sudocmd
i
pkg update
o
pkg
)
sudocmd
o
pkg update
;;
apk
)
sudocmd apk update
...
...
bin/epm-upgrade
View file @
2ccb246b
...
...
@@ -86,8 +86,8 @@ epm_upgrade()
docmd
"brew upgrade
$(
brew outdated
)
"
return
;;
i
pkg
)
CMD
=
"
i
pkg upgrade"
o
pkg
)
CMD
=
"
o
pkg upgrade"
;;
slackpkg
)
CMD
=
"/usr/sbin/slackpkg upgrade-all"
...
...
bin/epm-whatprovides
View file @
2ccb246b
#!/bin/sh
#
# Copyright (C) 2013, 2016 Etersoft
# Copyright (C) 2013, 2016 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013, 2016
, 2018
Etersoft
# Copyright (C) 2013, 2016
, 2018
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -47,6 +47,9 @@ case $PMTYPE in
zypper-rpm
)
CMD
=
"zypper what-provides"
;;
opkg
)
CMD
=
"opkg whatprovides"
;;
*
)
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