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
Lisa Casino
slapos
Commits
7c9334e6
Commit
7c9334e6
authored
Feb 24, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build junixsocket's native library
parent
50fe9f89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
2 deletions
+55
-2
software/zimbra/buildout.cfg
software/zimbra/buildout.cfg
+29
-2
software/zimbra/junixsocket-hooks.py
software/zimbra/junixsocket-hooks.py
+26
-0
No files found.
software/zimbra/buildout.cfg
View file @
7c9334e6
...
...
@@ -38,6 +38,8 @@ parts =
jdk-sources
jdk-sources-policy
junit
junixsocket
junixsocket-sources
ant
autoconf
automake
...
...
@@ -113,12 +115,38 @@ strip-top-level-dir = True
[junit]
recipe = hexagonit.recipe.download
url = http://zimbra.imladris.sk/download/jars/junit-4.8.2.jar
filename = junit-4.8.2.jar
url = http://zimbra.imladris.sk/download/jars/${:filename}
md5sum = 8a498c3d820db50cc7255d8c46c1ebd1
download-only = True
destination = ${zimbra-sources:location}/ZimbraCommon/jars
[junixsocket]
# build the native junixsocket library. the .jar parts are already inside the jars/ folder
recipe = hexagonit.recipe.cmmi
url = http://junixsocket.googlecode.com/files/junixsocket-1.3-src.tar.bz2
md5sum = fe249aba3bf568d71a5174506cf4ae80
configure-command = /bin/true
make-binary = ${ant:location}/bin/ant
make-targets =
environment-dependency = ${environment:recipe}
junit-path = ${junit:destination}/${junit:filename}
pre-make-hook = ${:_profile_base_location_}/junixsocket-hooks.py:fix_build_xml
post-make-hook = ${:_profile_base_location_}/junixsocket-hooks.py:install_library
[junixsocket-sources]
# copy the junixsocket library inside the build tree
recipe = plone.recipe.command
zimbra-target = ${zimbra-sources:location}/ThirdPartyBuilds/x86_64/java
update-command = ${:command}
command =
mkdir -p ${:zimbra-target}/junixsocket
cd ${:zimbra-target}/junixsocket
tar --extract --bzip2 --file ${junixsocket:location}/junixsocket-1.3-bin.tar.bz2 --wildcards '*.so' --strip-components=2
[ant]
recipe = hexagonit.recipe.download
url = http://mirrors.linsrv.net/apache//ant/binaries/${:filename}
...
...
@@ -127,7 +155,6 @@ md5sum = f5975145d90efbbafdcabece600f716b
strip-top-level-dir = True
[zimbra-sources]
recipe = slapos.recipe.build:gitclone
#repository = https://marco.mariani@bitbucket.org/marco.mariani/zimbra.git
...
...
software/zimbra/junixsocket-hooks.py
0 → 100644
View file @
7c9334e6
# -*- coding: utf-8 -*-
import
shutil
import
os
import
lxml
def
fix_build_xml
(
options
,
sections
):
compile_directory
=
options
[
'compile-directory'
]
build_xml
=
os
.
path
.
join
(
compile_directory
,
'junixsocket-1.3'
,
'build.xml'
)
root
=
lxml
.
etree
.
parse
(
build_xml
)
junit
=
root
.
xpath
(
'//property[@name="junit4.jar"]'
)[
0
]
junit
.
set
(
'value'
,
options
[
'junit-path'
])
with
open
(
build_xml
,
'wb'
)
as
fout
:
fout
.
write
(
lxml
.
etree
.
tostring
(
root
))
def
install_library
(
options
,
sections
):
compile_directory
=
options
[
'compile-directory'
]
filename
=
'junixsocket-1.3-bin.tar.bz2'
built_package
=
os
.
path
.
join
(
compile_directory
,
'junixsocket-1.3'
,
'dist'
,
filename
)
dst
=
os
.
path
.
join
(
options
[
'location'
],
filename
)
shutil
.
copyfile
(
built_package
,
dst
)
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