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
6a217f2e
Commit
6a217f2e
authored
Jun 03, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add initial support for FreeBSD's pkgng
parent
1fdebf61
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
95 additions
and
0 deletions
+95
-0
epm-autoremove
bin/epm-autoremove
+3
-0
epm-check
bin/epm-check
+3
-0
epm-clean
bin/epm-clean
+3
-0
epm-filelist
bin/epm-filelist
+3
-0
epm-info
bin/epm-info
+3
-0
epm-install
bin/epm-install
+20
-0
epm-packages
bin/epm-packages
+11
-0
epm-provides
bin/epm-provides
+3
-0
epm-query
bin/epm-query
+5
-0
epm-query_file
bin/epm-query_file
+3
-0
epm-remove
bin/epm-remove
+12
-0
epm-requires
bin/epm-requires
+4
-0
epm-search
bin/epm-search
+3
-0
epm-sh-functions
bin/epm-sh-functions
+9
-0
epm-update
bin/epm-update
+4
-0
epm-upgrade
bin/epm-upgrade
+3
-0
epm-whatdepends
bin/epm-whatdepends
+3
-0
No files found.
bin/epm-autoremove
View file @
6a217f2e
...
...
@@ -79,6 +79,9 @@ case $PMTYPE in
guix
)
sudocmd guix gc
;;
pkgng
)
sudocmd pkg autoremove
;;
#zypper-rpm)
# sudocmd zypper clean
# ;;
...
...
bin/epm-check
View file @
6a217f2e
...
...
@@ -56,6 +56,9 @@ case $PMTYPE in
conary
)
sudocmd conary verify
;;
pkgng
)
sudocmd pkg check
-d
-a
;;
homebrew
)
sudocmd brew doctor
;;
...
...
bin/epm-clean
View file @
6a217f2e
...
...
@@ -47,6 +47,9 @@ case $PMTYPE in
;;
slackpkg
)
;;
pkgng
)
sudo
pkg clean
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-filelist
View file @
6a217f2e
...
...
@@ -113,6 +113,9 @@ __epm_filelist_name()
assure_exists equery
CMD
=
"equery files"
;;
pkgng
)
CMD
=
"pkg info -l"
;;
slackpkg
)
is_installed
$pkg_names
||
fatal
"Query filelist for non installed packages does not realized"
docmd
awk
'BEGIN{desk=1}{if(/^FILE LIST:$/){desk=0} else if (desk==0) {print}}'
/var/log/packages/
${
pkg_filenames
}*
| less
...
...
bin/epm-info
View file @
6a217f2e
...
...
@@ -96,6 +96,9 @@ case $PMTYPE in
ipkg
)
docmd ipkg info
$pkg_names
;;
pkgng
)
docmd pkg info
$pkg_names
;;
homebrew
)
docmd brew info
$pkg_names
;;
...
...
bin/epm-install
View file @
6a217f2e
...
...
@@ -106,6 +106,9 @@ epm_install_names()
pkgsrc
)
sudocmd pkg_add
-r
$@
return
;;
pkgng
)
sudocmd pkg
install
$@
return
;;
emerge
)
sudocmd emerge
-uD
$@
return
;;
...
...
@@ -185,6 +188,9 @@ epm_ni_install_names()
pkgsrc
)
sudocmd pkg_add
-r
$@
return
;;
pkgng
)
sudocmd pkg
install
-y
$@
return
;;
emerge
)
sudocmd emerge
-uD
$@
return
;;
...
...
@@ -299,6 +305,17 @@ epm_install_files()
pkgsrc
)
sudocmd pkg_add
$@
return
;;
pkgng
)
local
PKGTYPE
=
"
$(
get_package_type
$@
)
"
case
"
$PKGTYPE
"
in
tbz
)
sudocmd pkg_add
$@
;;
*
)
sudocmd pkg add
$@
;;
esac
return
;;
android
)
sudocmd pm
install
$@
return
;;
...
...
@@ -336,6 +353,9 @@ epm_print_install_command()
pkgsrc
)
echo
"pkg_add
$@
"
;;
pkgng
)
echo
"pkg add
$@
"
;;
emerge
)
# need be placed in /usr/portage/packages/somewhere
echo
"emerge --usepkg
$@
"
...
...
bin/epm-packages
View file @
6a217f2e
...
...
@@ -59,6 +59,17 @@ case $PMTYPE in
;;
pkgsrc
)
CMD
=
"pkg_info"
docmd
$CMD
|
sed
-e
"s| .*||g"
return
;;
pkgng
)
CMD
=
"pkg info -E
$pkg_filenames
"
if
[
-n
"
$short
"
]
;
then
docmd
$CMD
|
sed
-e
"s| .*||g"
|
sed
-e
"s|-[0-9].*||g"
else
docmd
$CMD
|
sed
-e
"s| .*||g"
fi
return
;;
pacman
)
CMD
=
"pacman -Qs
$pkg_filenames
"
...
...
bin/epm-provides
View file @
6a217f2e
...
...
@@ -72,6 +72,9 @@ case $PMTYPE in
# yum-rpm)
# CMD="yum deplist"
# ;;
pkgng
)
CMD
=
"pkg info -b"
;;
apt-dpkg
)
# FIXME: need fix for a few names case
if
is_installed
$pkg_names
;
then
...
...
bin/epm-query
View file @
6a217f2e
...
...
@@ -146,8 +146,13 @@ __epm_query_name()
warning
"fix query"
return
1
;;
# TODO: need to print name if exists
#pkgng)
# CMD="pkg info -e"
# ;;
# Note: slackpkg info pkgname
*
)
# default slow workaround
_query_via_packages_list
$@
return
;;
...
...
bin/epm-query_file
View file @
6a217f2e
...
...
@@ -86,6 +86,9 @@ __do_query()
pacman
)
CMD
=
"pacman -Qo"
;;
pkgng
)
CMD
=
"pkg which"
;;
conary
)
CMD
=
"conary query --path"
;;
...
...
bin/epm-remove
View file @
6a217f2e
...
...
@@ -33,6 +33,9 @@ epm_remove_low()
pkgsrc
)
sudocmd pkg_delete
-r
$@
return
;;
pkgng
)
sudocmd pkg delete
-R
$@
return
;;
emerge
)
sudocmd emerge
--unmerge
$@
return
;;
...
...
@@ -69,6 +72,9 @@ epm_remove_names()
pkgsrc
)
# without dependencies
sudocmd pkg_delete
$@
return
;;
pkgng
)
sudocmd pkg delete
-R
$@
return
;;
emerge
)
#sudocmd emerge --unmerge $@
sudocmd emerge
-aC
$@
...
...
@@ -149,6 +155,9 @@ epm_remove_nonint()
slackpkg
)
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes
remove
$@
return
;;
pkgng
)
sudocmd pkg delete
-y
-R
$@
return
;;
ipkg
)
sudocmd ipkg
-force-defaults
remove
$@
return
;;
...
...
@@ -168,6 +177,9 @@ epm_print_remove_command()
pkgsrc
)
echo
"pkg_delete -r
$@
"
;;
pkgng
)
echo
"pkg delete -R
$@
"
;;
pacman
)
echo
"pacman -R
$@
"
;;
...
...
bin/epm-requires
View file @
6a217f2e
...
...
@@ -82,6 +82,10 @@ case $PMTYPE in
assure_exists equery
CMD
=
"equery depgraph"
;;
pkgng
)
#CMD="pkg rquery '%dn-%dv'"
CMD
=
"pkg info -d"
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-search
View file @
6a217f2e
...
...
@@ -40,6 +40,9 @@ case $PMTYPE in
pkgsrc
)
CMD
=
"pkg_info -x --"
;;
pkgng
)
CMD
=
"pkg search -i --"
;;
emerge
)
CMD
=
"emerge --search --"
;;
...
...
bin/epm-sh-functions
View file @
6a217f2e
...
...
@@ -306,6 +306,14 @@ get_package_type()
echo
"rpm"
return
;;
*
.txz
)
echo
"txz"
return
;;
*
.tbz
)
echo
"tbz"
return
;;
*
)
#fatal "Don't know type of $1"
# return package name for info
...
...
@@ -361,6 +369,7 @@ case $DISTRNAME in
;;
FreeBSD|NetBSD|OpenBSD|Solaris
)
CMD
=
"pkgsrc"
which pkg 2>/dev/null
>
/dev/null
&&
CMD
=
pkgng
;;
Gentoo
)
CMD
=
"emerge"
...
...
bin/epm-update
View file @
6a217f2e
...
...
@@ -69,6 +69,10 @@ case $PMTYPE in
ipkg
)
sudocmd ipkg update
;;
pkgsrc
)
# portsnap extract for the first time?
sudocmd portsnap fetch update
;;
*
)
fatal
"Have no suitable update command for
$PMTYPE
"
;;
...
...
bin/epm-upgrade
View file @
6a217f2e
...
...
@@ -66,6 +66,9 @@ epm_upgrade()
pkgsrc
)
CMD
=
"freebsd-update fetch install"
;;
pkgng
)
CMD
=
"pkg upgrade"
;;
chocolatey
)
CMD
=
"chocolatey update all"
;;
...
...
bin/epm-whatdepends
View file @
6a217f2e
...
...
@@ -40,6 +40,9 @@ case $PMTYPE in
assure_exists equery
CMD
=
"equery depends -a"
;;
pkgng
)
CMD
=
"pkg info -r"
;;
*
)
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