Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos
Commits
faa906a9
Commit
faa906a9
authored
Mar 13, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'erp5'
parents
90c309fe
f0153580
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
3 deletions
+59
-3
component/mariadb/buildout.cfg
component/mariadb/buildout.cfg
+2
-2
component/rpm2cpio/buildout.cfg
component/rpm2cpio/buildout.cfg
+2
-1
component/rpm2cpio/rpm2cpio
component/rpm2cpio/rpm2cpio
+55
-0
No files found.
component/mariadb/buildout.cfg
View file @
faa906a9
...
@@ -25,10 +25,10 @@ download-only = true
...
@@ -25,10 +25,10 @@ download-only = true
[mariadb]
[mariadb]
recipe = hexagonit.recipe.cmmi
recipe = hexagonit.recipe.cmmi
version = 5.5.
29
version = 5.5.
30
revision = 1
revision = 1
url = http://downloads.askmonty.org/f/mariadb-${:version}/kvm-tarbake-jaunty-x86/mariadb-${:version}.tar.gz/from/http://ftp.osuosl.org/pub/mariadb
url = http://downloads.askmonty.org/f/mariadb-${:version}/kvm-tarbake-jaunty-x86/mariadb-${:version}.tar.gz/from/http://ftp.osuosl.org/pub/mariadb
md5sum =
643cca7f07f7b00ca3ae1515e6f245d6
md5sum =
39d4da4dabc8bda012517b3587dee6f8
# compile directory is required to build mysql plugins.
# compile directory is required to build mysql plugins.
keep-compile-dir = true
keep-compile-dir = true
patch-options = -p0
patch-options = -p0
...
...
component/rpm2cpio/buildout.cfg
View file @
faa906a9
...
@@ -3,6 +3,7 @@ parts =
...
@@ -3,6 +3,7 @@ parts =
rpm2cpio
rpm2cpio
[rpm2cpio]
[rpm2cpio]
# https://github.com/ruda/rpm2cpio
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url =
https://raw.github.com/ruda/rpm2cpio/e196173f1f6b746463b7398e381b94a42edfa345/rpm2cpio.py
url =
${:_profile_base_location_}/${:_buildout_section_name_}
md5sum = c5bb6227d99e1ff5df880f997cbed2e3
md5sum = c5bb6227d99e1ff5df880f997cbed2e3
component/rpm2cpio/rpm2cpio
0 → 100644
View file @
faa906a9
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Standalone RPM to CPIO converter
# Copyright (c) 2012 Rudá Moura
#
'''Extract cpio archive from RPM package.
rpm2cpio converts the RPM on standard input or first parameter to a CPIO archive on standard output.
Usage:
rpm2cpio < adjtimex-1.20-2.1.i386.rpm | cpio -it
./sbin/adjtimex
./usr/share/doc/adjtimex-1.20
./usr/share/doc/adjtimex-1.20/COPYING
./usr/share/doc/adjtimex-1.20/COPYRIGHT
./usr/share/doc/adjtimex-1.20/README
./usr/share/man/man8/adjtimex.8.gz
133 blocks
'''
import
sys
import
StringIO
import
gzip
RPM_MAGIC
=
'
\
xed
\
xab
\
xee
\
xdb
'
GZIP_MAGIC
=
'
\
x1f
\
x8b
'
def
rpm2cpio
(
stream_in
=
sys
.
stdin
,
stream_out
=
sys
.
stdout
):
lead
=
stream_in
.
read
(
96
)
if
lead
[
0
:
4
]
!=
RPM_MAGIC
:
raise
IOError
,
'the input is not a RPM package'
data
=
stream_in
.
read
()
idx
=
data
.
find
(
GZIP_MAGIC
)
if
idx
==
-
1
:
raise
IOError
,
'could not find compressed cpio archive'
gzstream
=
StringIO
.
StringIO
(
data
[
idx
:])
gzipper
=
gzip
.
GzipFile
(
fileobj
=
gzstream
)
data
=
gzipper
.
read
()
stream_out
.
write
(
data
)
if
__name__
==
'__main__'
:
if
sys
.
argv
[
1
:]:
try
:
fin
=
open
(
sys
.
argv
[
1
])
rpm2cpio
(
fin
)
fin
.
close
()
except
IOError
,
e
:
print
'Error:'
,
sys
.
argv
[
1
],
e
else
:
try
:
rpm2cpio
()
except
IOError
,
e
:
print
'Error:'
,
e
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