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
3888b2ad
Commit
3888b2ad
authored
7 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-install: add /etc/eepm/repack.d/PKGNAME.sh support during repacking
parent
57c84a00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
0 deletions
+35
-0
epm-install
bin/epm-install
+10
-0
eepm.spec
eepm.spec
+5
-0
example.sh
repack.d/example.sh
+7
-0
skypeforlinux.sh
repack.d/skypeforlinux.sh
+13
-0
No files found.
bin/epm-install
View file @
3888b2ad
...
...
@@ -369,6 +369,14 @@ __fix_spec()
#" hack for highlight
}
__apply_fix_code
()
{
local
repackcode
=
"/etc/eepm/repack.d/
$1
.sh"
[
-x
"
$repackcode
"
]
||
return
shift
docmd
$repackcode
"
$1
"
"
$2
"
||
warning
"There was errors with
$repackcode
script"
}
# will fill repacked_rpms var
__epm_repack_rpm
()
{
...
...
@@ -399,6 +407,8 @@ __epm_repack_rpm()
mv
$spec
$tmpbuilddir
||
fatal
spec
=
"
$tmpbuilddir
/
$(
basename
"
$spec
"
)
"
__fix_spec
$tmpbuilddir
/
$subdir
$spec
local
pkgname
=
"
$(
grep
"^Name: "
$spec
|
sed
-e
"s|Name: ||g"
|
head
-n1
)
"
__apply_fix_code
$pkgname
$tmpbuilddir
/
$subdir
$spec
showcmd fakeroot rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
--define
=
'_allow_root_build 1'
-bb
$spec
if
[
-n
"
$verbose
"
]
;
then
fakeroot rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
--define
=
'_allow_root_build 1'
-bb
$spec
||
fatal
...
...
This diff is collapsed.
Click to expand it.
eepm.spec
View file @
3888b2ad
...
...
@@ -54,6 +54,9 @@ cat <<EOF >%buildroot%_sysconfdir/eepm/eepm.conf
EOF
mkdir -p %buildroot%_sysconfdir/eepm/repack.d/
cp repack.d/*.sh %buildroot%_sysconfdir/eepm/repack.d/
chmod 0755 %buildroot%_sysconfdir/eepm/repack.d/*.sh
mkdir -p %buildroot%_sysconfdir/bash_completion.d/
install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/serv
ln -s serv %buildroot%_sysconfdir/bash_completion.d/cerv
...
...
@@ -70,7 +73,9 @@ rm -f %buildroot%_datadir/%name/tools_eget
%files
%doc README TODO LICENSE
%dir %_sysconfdir/eepm/
%dir %_sysconfdir/eepm/repack.d/
%(config, noreplace) %_sysconfdir/eepm/eepm.conf
%(config, noreplace) %_sysconfdir/eepm/repack.d/*.sh
%_bindir/epm*
%_bindir/eepm
%_bindir/upm
...
...
This diff is collapsed.
Click to expand it.
repack.d/example.sh
0 → 100644
View file @
3888b2ad
#!/bin/sh
# Place shell code here
# It will run with two args: buildroot spec
# Name this script like package name
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
This diff is collapsed.
Click to expand it.
repack.d/skypeforlinux.sh
0 → 100755
View file @
3888b2ad
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
# move binaries from /usr/share/PKGNAME to _libdir/PKGNAME
LIBDIR
=
$(
rpmbuild
--eval
%_libdir 2>/dev/null
)
mkdir
-p
$BUILDROOT$LIBDIR
/
mv
$BUILDROOT
/usr/share/skypeforlinux/
$BUILDROOT$LIBDIR
/
subst
"s|/usr/share/skypeforlinux|
$LIBDIR
/skypeforlinux|g"
$SPEC
subst
"s|^SKYPE_PATH=.*|SKYPE_PATH=
$LIBDIR
/skypeforlinux/skypeforlinux|"
$BUILDROOT
/usr/bin/skypeforlinux
This diff is collapsed.
Click to expand it.
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