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
92048319
Commit
92048319
authored
May 08, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play virtualbox-extpack: rewrite to use package install
parent
4ffe1104
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
18 deletions
+41
-18
virtualbox-extpack.sh
pack.d/virtualbox-extpack.sh
+23
-0
virtualbox-extpack.sh
play.d/virtualbox-extpack.sh
+7
-18
virtualbox-extpack.sh
repack.d/virtualbox-extpack.sh
+11
-0
No files found.
pack.d/virtualbox-extpack.sh
0 → 100755
View file @
92048319
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
# Oracle_VM_VirtualBox_Extension_Pack-$VERSION.vbox-extpack
BASENAME
=
$(
basename
$TAR
.vbox-extpack
)
VERSION
=
$(
echo
$BASENAME
|
sed
-e
's|.*-||'
)
BASENAME
=
"Oracle_VM_VirtualBox_Extension_Pack"
ln
-s
$TAR
$BASENAME
.tgz
erc unpack
$BASENAME
.tgz
||
fatal
rm
-rv
$BASENAME
/
{
darwin.amd64,solaris.amd64,win.amd64
}
mkdir
-p
usr/lib64/virtualbox/ExtensionPacks/
mv
$BASENAME
usr/lib64/virtualbox/ExtensionPacks/
PKGNAME
=
$PRODUCT
-
$VERSION
erc pack
$PKGNAME
.tar usr/lib64/virtualbox/ExtensionPacks/
$BASENAME
||
fatal
return_tar
$PKGNAME
.tar
play.d/virtualbox-extpack.sh
View file @
92048319
#!/bin/sh
PKGNAME
=
SUPPORTEDARCHES
=
"x86_64
x86
"
PKGNAME
=
virtualbox-extpack
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
'Oracle VM VirtualBox Extension pack from the official site (personal use only)'
case
"
$1
"
in
"--remove"
)
esu VBoxManage extpack uninstall
"Oracle VM VirtualBox Extension Pack"
exit
;;
esac
URL
=
"https://www.virtualbox.org/wiki/Downloads"
.
$(
dirname
$0
)
/common.sh
...
...
@@ -18,18 +12,13 @@ esac
# VERSION=$(basename $(eget --list --latest https://download.virtualbox.org/virtualbox/ "^[0-9]*"))
#fi
epm installed virtualbox
||
fatal
"virtualbox package is not installed"
# for current virtualbox package
if
[
"
$VERSION
"
=
"*"
]
;
then
VERSION
=
"
$(
epm print version
for
package virtualbox
)
"
fi
PACKURL
=
"https://download.virtualbox.org/virtualbox/
$VERSION
/Oracle_VM_VirtualBox_Extension_Pack-
$VERSION
.vbox-extpack"
# cd to tmp dir
PKGDIR
=
$(
mktemp
-d
)
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
eget
$PACKURL
||
exit
PKGURL
=
"https://download.virtualbox.org/virtualbox/
$VERSION
/Oracle_VM_VirtualBox_Extension_Pack-
$VERSION
.vbox-extpack"
e
su VBoxManage extpack
install
$(
pwd
)
/
*
.vbox-extpack
e
pm pack
--install
$PKGNAME
$PKGURL
repack.d/virtualbox-extpack.sh
0 → 100755
View file @
92048319
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
subst
'1iAutoReq:no'
$SPEC
subst
'1iAutoProv:no'
$SPEC
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