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
ddfb6243
Commit
ddfb6243
authored
Feb 18, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support ipkg on OpenWRT
parent
db8e70f8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
0 deletions
+21
-0
epm-info
bin/epm-info
+3
-0
epm-install
bin/epm-install
+6
-0
epm-query_file
bin/epm-query_file
+3
-0
epm-remove
bin/epm-remove
+6
-0
epm-search_file
bin/epm-search_file
+3
-0
No files found.
bin/epm-info
View file @
ddfb6243
...
...
@@ -66,6 +66,9 @@ case $PMTYPE in
slackpkg
)
docmd /usr/sbin/slackpkg info
$pkg_names
;;
ipkg
)
docmd ipkg info
$pkg_names
;;
*
)
fatal
"Do not known command for
$PMTYPE
"
;;
...
...
bin/epm-install
View file @
ddfb6243
...
...
@@ -134,6 +134,9 @@ epm_ni_install_names()
chocolatey
)
docmd chocolatey
install
$@
return
;;
ipkg
)
sudocmd ipkg
-force-defaults
install
$@
return
;;
slackpkg
)
# TODO: use upgrade if package is already installed
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes install
$@
...
...
@@ -233,6 +236,9 @@ epm_print_install_command()
npackd
)
echo
"npackdcl add --package=
$@
"
;;
ipkg
)
echo
"ipkg install
$@
"
;;
*
)
fatal
"Do not known appropriate install command for
$PMTYPE
"
;;
...
...
bin/epm-query_file
View file @
ddfb6243
...
...
@@ -89,6 +89,9 @@ __do_query()
docmd
grep
-R
--
"
$(
echo
$@
|
sed
-e
's|^/\+||g'
)
"
/var/log/packages |
sed
-e
"s|/var/log/packages/||g"
return
;;
ipkg
)
CMD
=
"ipkg files"
;;
*
)
fatal
"Do not known query command for
$PMTYPE
"
;;
...
...
bin/epm-remove
View file @
ddfb6243
...
...
@@ -125,6 +125,9 @@ epm_remove_nonint()
slackpkg
)
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes
remove
$@
return
;;
ipkg
)
sudocmd ipkg
-force-defaults
remove
$@
return
;;
esac
return
5
}
...
...
@@ -150,6 +153,9 @@ epm_print_remove_command()
slackpkg
)
echo
"/sbin/removepkg
$@
"
;;
ipkg
)
echo
"ipkg remove
$@
"
;;
*
)
fatal
"Do not known appropriate remove command for
$PMTYPE
"
;;
...
...
bin/epm-search_file
View file @
ddfb6243
...
...
@@ -71,6 +71,9 @@ case $PMTYPE in
slackpkg
)
CMD
=
"/usr/sbin/slackpkg file-search"
;;
ipkg
)
CMD
=
"ipkg search"
;;
*
)
fatal
"Do not known search file 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