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
04411607
Commit
04411607
authored
Jun 25, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Tiny Core Linux support (tcl, tce)
parent
3be9c684
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
2 deletions
+29
-2
distr_info
bin/distr_info
+7
-0
epm-download
bin/epm-download
+2
-0
epm-install
bin/epm-install
+11
-2
epm-packages
bin/epm-packages
+3
-0
epm-search
bin/epm-search
+3
-0
epm-sh-functions
bin/epm-sh-functions
+3
-0
No files found.
bin/distr_info
View file @
04411607
...
...
@@ -30,6 +30,7 @@ rpmvendor()
{
[
"
$DISTRIB_ID
"
=
"ALTLinux"
]
&&
echo
"alt"
&&
return
[
"
$DISTRIB_ID
"
=
"LinuxXP"
]
&&
echo
"lxp"
&&
return
[
"
$DISTRIB_ID
"
=
"TinyCoreLinux"
]
&&
echo
"tcl"
&&
return
echo
"
$DISTRIB_ID
"
|
tr
"[A-Z]"
"[a-z]"
}
...
...
@@ -52,6 +53,7 @@ pkgtype()
windows
)
echo
"exe"
;;
android
)
echo
"apk"
;;
alpine
)
echo
"apk"
;;
tinycorelinux
)
echo
"tcz"
;;
cygwin
)
echo
"tar.xz"
;;
debian|ubuntu|mint|runtu|mcst
)
echo
"deb"
;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles
)
...
...
@@ -137,6 +139,11 @@ elif distro os-release && which apk 2>/dev/null >/dev/null ; then
DISTRIB_ID
=
"
$ID
"
DISTRIB_RELEASE
=
"
$VERSION_ID
"
elif
distro os-release
&&
which tce-ab 2>/dev/null
>
/dev/null
;
then
.
$ROOTDIR
/etc/os-release
DISTRIB_ID
=
"TinyCoreLinux"
DISTRIB_RELEASE
=
"
$VERSION_ID
"
elif
distro arch-release
;
then
DISTRIB_ID
=
"ArchLinux"
DISTRIB_RELEASE
=
"2010"
...
...
bin/epm-download
View file @
04411607
...
...
@@ -32,6 +32,8 @@ epm_download()
# TODO: check yum install --downloadonly --downloaddir=/tmp <package-name>
assure_exists yumdownloader yum-utils
sudo
yumdownloader
$pkg_filenames
tce
)
sudocmd tce-load
-w
$pkg_filenames
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
...
...
bin/epm-install
View file @
04411607
#!/bin/sh
#
# Copyright (C) 2012-201
3
Etersoft
# Copyright (C) 2012-201
3
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-201
6
Etersoft
# Copyright (C) 2012-201
6
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
...
...
@@ -166,6 +166,9 @@ epm_install_names()
apk
)
sudocmd apk add
$@
return
;;
tce
)
sudocmd tce-load
-wi
$@
return
;;
guix
)
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
return
;;
...
...
@@ -237,6 +240,9 @@ epm_ni_install_names()
apk
)
sudocmd apk add
$@
return
;;
tce
)
sudocmd tce-load
-wi
$@
return
;;
#android)
# sudocmd pm install $@
# return ;;
...
...
@@ -471,6 +477,9 @@ epm_print_install_command()
aptcyg
)
echo
"apt-cyg install
$@
"
;;
tce
)
echo
"tce-load -wi
$@
"
;;
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
;;
...
...
bin/epm-packages
View file @
04411607
...
...
@@ -125,6 +125,9 @@ case $PMTYPE in
apk
)
CMD
=
"apk info"
;;
tce
)
CMD
=
"ls -1 /usr/local/tce.installed"
;;
guix
)
CMD
=
"guix package -I"
;;
...
...
bin/epm-search
View file @
04411607
...
...
@@ -67,6 +67,9 @@ case $PMTYPE in
apk
)
CMD
=
"apk search"
;;
tce
)
CMD
=
"tce-ab"
;;
conary
)
CMD
=
"conary repquery"
;;
...
...
bin/epm-sh-functions
View file @
04411607
...
...
@@ -483,6 +483,9 @@ case $DISTRNAME in
alpine
)
CMD
=
"apk"
;;
TinyCoreLinux
)
CMD
=
"tce"
;;
*
)
fatal
"Have no suitable DISTRNAME
$DISTRNAME
"
;;
...
...
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