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
a637045a
Commit
a637045a
authored
Aug 10, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-repack: on deb convert to an intermediate rpm package if we have repack.d rules
parent
5c69adee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
11 deletions
+30
-11
epm-repack
bin/epm-repack
+30
-11
No files found.
bin/epm-repack
View file @
a637045a
...
...
@@ -270,17 +270,26 @@ __prepare_source_package()
__epm_repack_to_rpm
()
{
local
pkgs
=
"
$*
"
case
$DISTRNAME
in
ALTLinux|ALTServer
)
;;
*
)
assure_distr ALTLinux
"install --repack for rpm target"
;;
esac
# install epm-repack for static (package based) dependencies
#
case $DISTRNAME in
#
ALTLinux|ALTServer)
#
;;
#
*)
#
assure_distr ALTLinux "install --repack for rpm target"
#
;;
#
esac
#
Note:
install epm-repack for static (package based) dependencies
assure_exists alien
||
fatal
assure_exists /usr/bin/rpmbuild rpm-build
||
fatal
# TODO: check for all systems
case
$PKGFORMAT
in
rpm
)
assure_exists /usr/bin/rpmbuild rpm-build
||
fatal
;;
deb
)
assure_exists /usr/bin/rpmbuild rpm
||
fatal
;;
esac
# TODO: improve
if
echo
"
$pkgs
"
|
grep
-q
"
\.
deb"
;
then
...
...
@@ -390,7 +399,17 @@ __epm_repack()
__epm_repack_to_rpm
"
$@
"
||
return
;;
deb
)
__epm_repack_to_deb
"
$@
"
||
return
# FIXME: only one package in $@ is supported
#local pkgname="$(epm print name from "$@")"
__set_version_pkgname
"
$1
"
local
repackcode
=
"
$CONFIGDIR
/repack.d/
$PKGNAME
.sh"
if
[
-x
"
$repackcode
"
]
;
then
__epm_repack_to_rpm
"
$@
"
||
return
[
-n
"
$repacked_pkgs
"
]
||
return
__epm_repack_to_deb
$repacked_pkgs
else
__epm_repack_to_deb
"
$@
"
||
return
fi
;;
*
)
fatal
"
$PKGFORMAT
is not supported for repack yet"
...
...
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