Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
130
Merge Requests
130
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0526e075
Commit
0526e075
authored
May 27, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SlapOS related code moved out.
SlapOS code has been moved to:
http://git.erp5.org/gitweb/slapos.git
parent
0eba9830
Changes
213
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
213 changed files
with
3 additions
and
49589 deletions
+3
-49589
README.txt
slapos/hook/README.txt
+0
-12
bzip2-hooks.py
slapos/hook/bzip2-hooks.py
+0
-19
ghostscript-hooks.py
slapos/hook/ghostscript-hooks.py
+0
-7
jbigkit-hooks.py
slapos/hook/jbigkit-hooks.py
+0
-15
kumo-hooks.py
slapos/hook/kumo-hooks.py
+0
-76
libdb-hooks.py
slapos/hook/libdb-hooks.py
+0
-3
pdftk-hooks.py
slapos/hook/pdftk-hooks.py
+0
-4
stunnel-4-hooks.py
slapos/hook/stunnel-4-hooks.py
+0
-9
tcl-hooks.py
slapos/hook/tcl-hooks.py
+0
-11
instance.cfg
slapos/instance.cfg
+0
-66
HandlerSocket-Plugin-for-MySQL-1.0.6-mariadb.patch
.../patch/HandlerSocket-Plugin-for-MySQL-1.0.6-mariadb.patch
+0
-37
cyrus-sasl-2.1.22-gcc44.patch
slapos/patch/cyrus-sasl-2.1.22-gcc44.patch
+0
-24
cyrus-sasl-prototype-declaration.patch
slapos/patch/cyrus-sasl-prototype-declaration.patch
+0
-11
dcron-4.4.noroot.no.globals.patch
slapos/patch/dcron-4.4.noroot.no.globals.patch
+0
-157
gdbm-Makefile.in-nochange.patch
slapos/patch/gdbm-Makefile.in-nochange.patch
+0
-40
groonga-storage-engine-0.4.mariadb.patch
slapos/patch/groonga-storage-engine-0.4.mariadb.patch
+0
-14
imagemagick-6.6.6-1-no-gsx-gsc-probe.patch
slapos/patch/imagemagick-6.6.6-1-no-gsx-gsc-probe.patch
+0
-22
imagemagick-6.6.7-4-without-lzma.patch
slapos/patch/imagemagick-6.6.7-4-without-lzma.patch
+0
-22
jbigkit-2.0-build.patch
slapos/patch/jbigkit-2.0-build.patch
+0
-254
kumofs-0.4.13_ipv6support_multiiplistenfix.patch
...os/patch/kumofs-0.4.13_ipv6support_multiiplistenfix.patch
+0
-183
memcached-1.4-fix-array-subscript-is-above-array-bounds.patch
...ached-1.4-fix-array-subscript-is-above-array-bounds.patch
+0
-25
memcached-fix-strict-aliasing.patch
slapos/patch/memcached-fix-strict-aliasing.patch
+0
-40
memcached-gcc4.6.patch
slapos/patch/memcached-gcc4.6.patch
+0
-36
mysql-5.0.87-sphinx-1.10.diff
slapos/patch/mysql-5.0.87-sphinx-1.10.diff
+0
-6242
mysql-5.1.49-sphinx-1.10.diff
slapos/patch/mysql-5.1.49-sphinx-1.10.diff
+0
-5854
pdftk-1.44-Makefile.Base.patch
slapos/patch/pdftk-1.44-Makefile.Base.patch
+0
-35
perl-keep-linker-flags-in-ldflags.patch
slapos/patch/perl-keep-linker-flags-in-ldflags.patch
+0
-20
python-2.6.6-no_system_inc_dirs.patch
slapos/patch/python-2.6.6-no_system_inc_dirs.patch
+0
-27
python2.4-backport-CPPFLAGS-setup-from-python2.6.patch
...ch/python2.4-backport-CPPFLAGS-setup-from-python2.6.patch
+0
-91
python2.4-no_system_inc_dirs.patch
slapos/patch/python2.4-no_system_inc_dirs.patch
+0
-50
sphinx-1.10-beta-snowball.patch
slapos/patch/sphinx-1.10-beta-snowball.patch
+0
-29091
sphinx-1.10-fix_nosigpipe.patch
slapos/patch/sphinx-1.10-fix_nosigpipe.patch
+0
-19
subversion-1.6.0-disable_linking_against_unneeded_libraries.patch
...on-1.6.0-disable_linking_against_unneeded_libraries.patch
+0
-56
xtrabackup_build.patch
slapos/patch/xtrabackup_build.patch
+0
-151
apache.cfg
slapos/profile/apache.cfg
+0
-81
autoconf.cfg
slapos/profile/autoconf.cfg
+0
-14
automake.cfg
slapos/profile/automake.cfg
+0
-13
bison.cfg
slapos/profile/bison.cfg
+0
-12
boost-lib.cfg
slapos/profile/boost-lib.cfg
+0
-22
bzip2.cfg
slapos/profile/bzip2.cfg
+0
-20
ccache.cfg
slapos/profile/ccache.cfg
+0
-13
cloudooo-development.cfg
slapos/profile/cloudooo-development.cfg
+0
-15
cloudooo.cfg
slapos/profile/cloudooo.cfg
+0
-64
cmake.cfg
slapos/profile/cmake.cfg
+0
-8
coreutils.cfg
slapos/profile/coreutils.cfg
+0
-12
cpio.cfg
slapos/profile/cpio.cfg
+0
-8
cuneiform.cfg
slapos/profile/cuneiform.cfg
+0
-24
curl.cfg
slapos/profile/curl.cfg
+0
-40
cyrus-sasl.cfg
slapos/profile/cyrus-sasl.cfg
+0
-41
dcron.cfg
slapos/profile/dcron.cfg
+0
-20
erp5.cfg
slapos/profile/erp5.cfg
+0
-155
fastjar.cfg
slapos/profile/fastjar.cfg
+0
-12
ffmpeg.cfg
slapos/profile/ffmpeg.cfg
+0
-102
file.cfg
slapos/profile/file.cfg
+0
-15
flare.cfg
slapos/profile/flare.cfg
+0
-18
flex.cfg
slapos/profile/flex.cfg
+0
-12
fontconfig.cfg
slapos/profile/fontconfig.cfg
+0
-26
fonts.cfg
slapos/profile/fonts.cfg
+0
-26
freetype.cfg
slapos/profile/freetype.cfg
+0
-19
garbage-collector.cfg
slapos/profile/garbage-collector.cfg
+0
-9
gcc.cfg
slapos/profile/gcc.cfg
+0
-96
gdbm.cfg
slapos/profile/gdbm.cfg
+0
-26
gettext.cfg
slapos/profile/gettext.cfg
+0
-26
ghostscript.cfg
slapos/profile/ghostscript.cfg
+0
-48
git.cfg
slapos/profile/git.cfg
+0
-30
glib.cfg
slapos/profile/glib.cfg
+0
-19
graphviz.cfg
slapos/profile/graphviz.cfg
+0
-56
grep.cfg
slapos/profile/grep.cfg
+0
-13
handlersocket.cfg
slapos/profile/handlersocket.cfg
+0
-36
haproxy.cfg
slapos/profile/haproxy.cfg
+0
-15
hookbox.cfg
slapos/profile/hookbox.cfg
+0
-18
imagemagick.cfg
slapos/profile/imagemagick.cfg
+0
-74
jasper.cfg
slapos/profile/jasper.cfg
+0
-16
jbigkit.cfg
slapos/profile/jbigkit.cfg
+0
-31
kumo.cfg
slapos/profile/kumo.cfg
+0
-38
libdb.cfg
slapos/profile/libdb.cfg
+0
-19
libevent.cfg
slapos/profile/libevent.cfg
+0
-9
libexpat.cfg
slapos/profile/libexpat.cfg
+0
-10
libjpeg.cfg
slapos/profile/libjpeg.cfg
+0
-10
libpng.cfg
slapos/profile/libpng.cfg
+0
-25
libreoffice-bin.cfg
slapos/profile/libreoffice-bin.cfg
+0
-24
librsync.cfg
slapos/profile/librsync.cfg
+0
-18
libtiff.cfg
slapos/profile/libtiff.cfg
+0
-19
libtool.cfg
slapos/profile/libtool.cfg
+0
-9
libuuid.cfg
slapos/profile/libuuid.cfg
+0
-40
libxml2.cfg
slapos/profile/libxml2.cfg
+0
-18
libxslt.cfg
slapos/profile/libxslt.cfg
+0
-23
logrotate.cfg
slapos/profile/logrotate.cfg
+0
-13
lxml-python.cfg
slapos/profile/lxml-python.cfg
+0
-20
lynx.cfg
slapos/profile/lynx.cfg
+0
-7
m2crypto.cfg
slapos/profile/m2crypto.cfg
+0
-23
m4.cfg
slapos/profile/m4.cfg
+0
-8
mariadb.cfg
slapos/profile/mariadb.cfg
+0
-38
memcached.cfg
slapos/profile/memcached.cfg
+0
-53
messagepack.cfg
slapos/profile/messagepack.cfg
+0
-10
mroonga.cfg
slapos/profile/mroonga.cfg
+0
-40
mysql-5.1.cfg
slapos/profile/mysql-5.1.cfg
+0
-63
mysql-python.cfg
slapos/profile/mysql-python.cfg
+0
-20
mysql-tritonn-5.0.cfg
slapos/profile/mysql-tritonn-5.0.cfg
+0
-93
ncurses.cfg
slapos/profile/ncurses.cfg
+0
-21
neon.cfg
slapos/profile/neon.cfg
+0
-28
nullmailer.cfg
slapos/profile/nullmailer.cfg
+0
-7
ocropus.cfg
slapos/profile/ocropus.cfg
+0
-47
oood.cfg
slapos/profile/oood.cfg
+0
-11
openldap.cfg
slapos/profile/openldap.cfg
+0
-26
openoffice-bin.cfg
slapos/profile/openoffice-bin.cfg
+0
-17
openoffice.cfg
slapos/profile/openoffice.cfg
+0
-2
opensp.cfg
slapos/profile/opensp.cfg
+0
-8
openssl.cfg
slapos/profile/openssl.cfg
+0
-31
patch.cfg
slapos/profile/patch.cfg
+0
-8
pcre.cfg
slapos/profile/pcre.cfg
+0
-12
pdftk.cfg
slapos/profile/pdftk.cfg
+0
-44
perl-Class-Accessor.cfg
slapos/profile/perl-Class-Accessor.cfg
+0
-14
perl-Config-General.cfg
slapos/profile/perl-Config-General.cfg
+0
-14
perl-Encode-HanExtra.cfg
slapos/profile/perl-Encode-HanExtra.cfg
+0
-14
perl-HTML-Encoding.cfg
slapos/profile/perl-HTML-Encoding.cfg
+0
-14
perl-HTML-Parser.cfg
slapos/profile/perl-HTML-Parser.cfg
+0
-16
perl-HTML-Tagset.cfg
slapos/profile/perl-HTML-Tagset.cfg
+0
-14
perl-HTML-Template.cfg
slapos/profile/perl-HTML-Template.cfg
+0
-14
perl-JSON.cfg
slapos/profile/perl-JSON.cfg
+0
-14
perl-Net-IP.cfg
slapos/profile/perl-Net-IP.cfg
+0
-14
perl-SGML-Parser-OpenSP.cfg
slapos/profile/perl-SGML-Parser-OpenSP.cfg
+0
-20
perl-URI.cfg
slapos/profile/perl-URI.cfg
+0
-14
perl-XML-LibXML.cfg
slapos/profile/perl-XML-LibXML.cfg
+0
-29
perl-XML-NamespaceSupport.cfg
slapos/profile/perl-XML-NamespaceSupport.cfg
+0
-14
perl-XML-SAX.cfg
slapos/profile/perl-XML-SAX.cfg
+0
-18
perl-libwww-perl.cfg
slapos/profile/perl-libwww-perl.cfg
+0
-16
perl.cfg
slapos/profile/perl.cfg
+0
-32
pkgconfig.cfg
slapos/profile/pkgconfig.cfg
+0
-29
popt.cfg
slapos/profile/popt.cfg
+0
-10
postfix.cfg
slapos/profile/postfix.cfg
+0
-19
pysvn-python.cfg
slapos/profile/pysvn-python.cfg
+0
-18
python-2.4.cfg
slapos/profile/python-2.4.cfg
+0
-84
python-2.6.cfg
slapos/profile/python-2.6.cfg
+0
-54
python-2.7.cfg
slapos/profile/python-2.7.cfg
+0
-55
python-ldap-python.cfg
slapos/profile/python-ldap-python.cfg
+0
-23
rdiff-backup.cfg
slapos/profile/rdiff-backup.cfg
+0
-26
readline.cfg
slapos/profile/readline.cfg
+0
-15
sed.cfg
slapos/profile/sed.cfg
+0
-12
serf.cfg
slapos/profile/serf.cfg
+0
-20
sphinx.cfg
slapos/profile/sphinx.cfg
+0
-41
sqlite3.cfg
slapos/profile/sqlite3.cfg
+0
-15
stunnel.cfg
slapos/profile/stunnel.cfg
+0
-29
subversion.cfg
slapos/profile/subversion.cfg
+0
-61
swig.cfg
slapos/profile/swig.cfg
+0
-36
tesseract.cfg
slapos/profile/tesseract.cfg
+0
-44
tokyocabinet.cfg
slapos/profile/tokyocabinet.cfg
+0
-17
varnish.cfg
slapos/profile/varnish.cfg
+0
-37
w3-validator.cfg
slapos/profile/w3-validator.cfg
+0
-43
w3m.cfg
slapos/profile/w3m.cfg
+0
-34
xorg.cfg
slapos/profile/xorg.cfg
+0
-157
xpdf.cfg
slapos/profile/xpdf.cfg
+0
-49
xtrabackup.cfg
slapos/profile/xtrabackup.cfg
+0
-39
zabbix.cfg
slapos/profile/zabbix.cfg
+0
-11
zip.cfg
slapos/profile/zip.cfg
+0
-10
zlib.cfg
slapos/profile/zlib.cfg
+0
-8
zope-2.12.cfg
slapos/profile/zope-2.12.cfg
+0
-2
zope-2.8.cfg
slapos/profile/zope-2.8.cfg
+0
-14
.gitignore
slapos/recipe/.gitignore
+0
-3
CHANGES.txt
slapos/recipe/erp5.recipe.testnode/CHANGES.txt
+0
-6
MANIFEST.in
slapos/recipe/erp5.recipe.testnode/MANIFEST.in
+0
-2
README.txt
slapos/recipe/erp5.recipe.testnode/README.txt
+0
-1
setup.py
slapos/recipe/erp5.recipe.testnode/setup.py
+0
-40
__init__.py
slapos/recipe/erp5.recipe.testnode/src/erp5/__init__.py
+0
-6
__init__.py
...s/recipe/erp5.recipe.testnode/src/erp5/recipe/__init__.py
+0
-6
SlapOSControler.py
...cipe.testnode/src/erp5/recipe/testnode/SlapOSControler.py
+0
-90
Updater.py
.../erp5.recipe.testnode/src/erp5/recipe/testnode/Updater.py
+0
-189
__init__.py
...erp5.recipe.testnode/src/erp5/recipe/testnode/__init__.py
+0
-170
slapos.cfg.in
....testnode/src/erp5/recipe/testnode/template/slapos.cfg.in
+0
-10
testnode.py
...erp5.recipe.testnode/src/erp5/recipe/testnode/testnode.py
+0
-236
CHANGES.txt
slapos/recipe/erp5/CHANGES.txt
+0
-7
MANIFEST.in
slapos/recipe/erp5/MANIFEST.in
+0
-2
README.txt
slapos/recipe/erp5/README.txt
+0
-2
setup.py
slapos/recipe/erp5/setup.py
+0
-41
__init__.py
slapos/recipe/erp5/src/slapos/__init__.py
+0
-6
__init__.py
slapos/recipe/erp5/src/slapos/recipe/__init__.py
+0
-6
__init__.py
slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py
+0
-912
apache.py
slapos/recipe/erp5/src/slapos/recipe/erp5/apache.py
+0
-22
catdatefile.py
slapos/recipe/erp5/src/slapos/recipe/erp5/catdatefile.py
+0
-14
certificate_authority.py
...cipe/erp5/src/slapos/recipe/erp5/certificate_authority.py
+0
-112
erp5.py
slapos/recipe/erp5/src/slapos/recipe/erp5/erp5.py
+0
-107
execute.py
slapos/recipe/erp5/src/slapos/recipe/erp5/execute.py
+0
-48
innobackupex.py
slapos/recipe/erp5/src/slapos/recipe/erp5/innobackupex.py
+0
-25
killpidfromfile.py
slapos/recipe/erp5/src/slapos/recipe/erp5/killpidfromfile.py
+0
-12
mysql.py
slapos/recipe/erp5/src/slapos/recipe/erp5/mysql.py
+0
-71
apache.location-snippet.conf.in
...apos/recipe/erp5/template/apache.location-snippet.conf.in
+0
-5
apache.ssl-snippet.conf.in
...rc/slapos/recipe/erp5/template/apache.ssl-snippet.conf.in
+0
-6
apache.zope.conf.in
.../erp5/src/slapos/recipe/erp5/template/apache.zope.conf.in
+0
-55
apache.zope.conf.path-protected.in
...s/recipe/erp5/template/apache.zope.conf.path-protected.in
+0
-7
apache.zope.conf.path.in
.../src/slapos/recipe/erp5/template/apache.zope.conf.path.in
+0
-5
cloudooo.cfg.in
...cipe/erp5/src/slapos/recipe/erp5/template/cloudooo.cfg.in
+0
-54
haproxy.cfg.in
...ecipe/erp5/src/slapos/recipe/erp5/template/haproxy.cfg.in
+0
-26
initmysql.sql.in
...ipe/erp5/src/slapos/recipe/erp5/template/initmysql.sql.in
+0
-2
kumo_gateway.in
...cipe/erp5/src/slapos/recipe/erp5/template/kumo_gateway.in
+0
-2
kumo_manager.in
...cipe/erp5/src/slapos/recipe/erp5/template/kumo_manager.in
+0
-2
kumo_server.in
...ecipe/erp5/src/slapos/recipe/erp5/template/kumo_server.in
+0
-2
logrotate_entry.in
...e/erp5/src/slapos/recipe/erp5/template/logrotate_entry.in
+0
-13
memcached.in
.../recipe/erp5/src/slapos/recipe/erp5/template/memcached.in
+0
-2
my.cnf.in
slapos/recipe/erp5/src/slapos/recipe/erp5/template/my.cnf.in
+0
-52
openssl.cnf.ca.in
...pe/erp5/src/slapos/recipe/erp5/template/openssl.cnf.ca.in
+0
-350
tidstorage.py.in
...ipe/erp5/src/slapos/recipe/erp5/template/tidstorage.py.in
+0
-15
zeo.conf.in
...s/recipe/erp5/src/slapos/recipe/erp5/template/zeo.conf.in
+0
-15
zope-deadlockdebugger-snippet.conf.in
...ecipe/erp5/template/zope-deadlockdebugger-snippet.conf.in
+0
-7
zope-tidstorage-snippet.conf.in
...apos/recipe/erp5/template/zope-tidstorage-snippet.conf.in
+0
-6
zope-zeo-snippet.conf.in
.../src/slapos/recipe/erp5/template/zope-zeo-snippet.conf.in
+0
-8
zope-zodb-snippet.conf.in
...src/slapos/recipe/erp5/template/zope-zodb-snippet.conf.in
+0
-6
zope.conf.in
.../recipe/erp5/src/slapos/recipe/erp5/template/zope.conf.in
+0
-58
zope.conf.timerservice.in
...src/slapos/recipe/erp5/template/zope.conf.timerservice.in
+0
-6
test_suite_runner.py
...s/recipe/erp5/src/slapos/recipe/erp5/test_suite_runner.py
+0
-23
testrunner.py
slapos/recipe/erp5/src/slapos/recipe/erp5/testrunner.py
+0
-23
software.cfg
slapos/software.cfg
+3
-394
testnode-instance.cfg
slapos/testnode-instance.cfg
+0
-18
testnode-software.cfg
slapos/testnode-software.cfg
+0
-58
No files found.
slapos/hook/README.txt
deleted
100644 → 0
View file @
0eba9830
It is disallowed to:
* use hooks directory directly in buildout (eg. assuming that it will exists
while running buildout)
Rationale: It disallows using buildout in networked environment and extending
over network.
* accesing hooks by SVN URI
Rationale: It forces to use SVN structure and makes mirroring and HA hard to
obtain.
slapos/hook/bzip2-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
import
shutil
def
post_make_hook
(
options
,
buildout
):
make_options_list
=
[
q
for
q
in
options
.
get
(
'make-options'
,
''
)
.
split
(
'
\n
'
)
if
q
]
if
os
.
system
(
'make
%
s -f Makefile-libbz2_so'
%
' '
.
join
(
make_options_list
))
!=
0
:
raise
ValueError
(
'Generation of dynamic library failed'
)
original
=
'libbz2.so.1.0.6'
link_list
=
[
'libbz2.so.1.0'
,
'libbz2.so.1'
,
'libbz2.so'
]
destination
=
os
.
path
.
join
(
options
[
'location'
],
'lib'
)
for
filename
in
[
original
]
+
link_list
:
f
=
os
.
path
.
join
(
destination
,
filename
)
if
os
.
path
.
exists
(
f
)
or
os
.
path
.
islink
(
f
):
os
.
unlink
(
f
)
shutil
.
copyfile
(
os
.
path
.
join
(
os
.
curdir
,
original
),
os
.
path
.
join
(
destination
,
original
))
for
link
in
link_list
:
os
.
symlink
(
original
,
os
.
path
.
join
(
destination
,
link
))
slapos/hook/ghostscript-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
def
pre_configure_hook
(
oprtions
,
buildout
):
# fixes python bug related to not creating symlink contained in tarfiles
for
missing
in
'configure.ac'
,
'Makefile.in'
:
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
os
.
path
.
curdir
,
missing
)):
os
.
symlink
(
os
.
path
.
join
(
os
.
path
.
curdir
,
'base'
,
missing
),
os
.
path
.
join
(
os
.
path
.
curdir
,
missing
))
slapos/hook/jbigkit-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
import
shutil
def
post_make_hook
(
options
,
buildout
):
destination
=
options
[
'location'
]
directory_list
=
[
'include'
,
'lib'
]
for
d
in
directory_list
:
dd
=
os
.
path
.
join
(
destination
,
d
)
if
not
os
.
path
.
isdir
(
dd
):
os
.
mkdir
(
dd
)
for
include
in
[
'jbig.h'
,
'jbig85.h'
,
'jbig_ar.h'
]:
shutil
.
copyfile
(
os
.
path
.
join
(
os
.
curdir
,
'libjbig'
,
include
),
os
.
path
.
join
(
destination
,
'include'
,
include
))
for
so
in
[
'libjbig85.so'
,
'libjbig.so'
]:
shutil
.
copyfile
(
os
.
path
.
join
(
os
.
curdir
,
'libjbig'
,
so
),
os
.
path
.
join
(
destination
,
'lib'
,
so
))
slapos/hook/kumo-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
import
sys
import
traceback
from
shutil
import
copy
from
subprocess
import
Popen
,
PIPE
CONFIGURE_PATH
=
os
.
path
.
join
(
'configure'
)
CONFIGURE_BACKUP_PATH
=
CONFIGURE_PATH
+
'_disabled'
# Fake configure, generating a fake Makefile which will create a marker file
# instead of actually installing anything.
# This is needed (?) to fetch --prefix from configure parameters, so we know
# where to tell Makefile to put the dummy file.
FAKE_CONFIGURE
=
'''#!
%(python)
s -S
import os
import sys
print 'Configuration is disabled on this host because
%%
s'
print 'Original configure file available at
%(backup)
s'
prefix = None
next = False
for arg in sys.argv:
if next:
prefix = arg
break
if arg.startswith('--prefix'):
if arg.startswith('--prefix='):
_, prefix = arg.split('=', 1)
break
next = True
if prefix is None:
raise '--prefix parameter not found'
# Generate Makefile with proper prefix
open('Makefile', 'w').write("""all:
\t
echo 'make disabled, see configure'
install:
\t
touch
%%%%
s"""
%%%%
(
os.path.join(prefix, 'BUILD_DISABLED_BY_BUILDOUT'),
))
sys.exit(0)
'''
%
{
'backup'
:
CONFIGURE_BACKUP_PATH
,
'python'
:
sys
.
executable
,
}
def
pre_configure_hook
(
options
,
buildout
):
gcc_executable
=
os
.
getenv
(
'CC'
,
'gcc'
)
try
:
gcc
=
Popen
([
gcc_executable
,
'-v'
],
stdout
=
PIPE
,
stderr
=
PIPE
,
close_fds
=
True
)
except
OSError
,
(
errno
,
_
):
if
errno
==
2
:
# No gcc installed, nothing to check
pass
else
:
print
'Unexpected failure trying to detect gcc version'
traceback
.
print_exc
()
else
:
gcc
.
wait
()
# Considered innocent until proven guilty.
error
=
None
for
line
in
'
\n
'
.
join
((
gcc
.
stdout
.
read
(),
gcc
.
stderr
.
read
()))
.
splitlines
():
if
line
.
startswith
(
'gcc version'
):
if
'4.1.1'
in
line
and
'prerelease'
in
line
:
# There is a bug in 4.1.1 prerelease (ie, as of mandriva
# 2007.0) g++ preventing kumo compilation from succeeding.
error
=
'broken GCC version:
%
s'
%
(
line
,
)
break
else
:
print
>>
sys
.
stderr
,
'GCC version could not be detected, '
\
'building anyway'
if
error
is
not
None
:
print
'Disabling build, with reason:'
,
error
# Copy to preserver permission
copy
(
CONFIGURE_PATH
,
CONFIGURE_BACKUP_PATH
)
open
(
CONFIGURE_PATH
,
'w'
)
.
write
(
FAKE_CONFIGURE
%
(
error
,
))
slapos/hook/libdb-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
def
pre_configure_hook
(
options
,
buildout
):
os
.
chdir
(
'build_unix'
)
slapos/hook/pdftk-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
def
pre_make_hook
(
options
,
buildout
):
# change to pdftk directory, where built process shall be done
os
.
chdir
(
'pdftk'
)
slapos/hook/stunnel-4-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
def
pre_configure_hook
(
options
,
buildout
):
# remove certificate generation
# based on Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-4.33.ebuild
name
=
os
.
path
.
join
(
'tools'
,
'Makefile.in'
)
f
=
file
(
name
,
'r'
)
d
=
f
.
read
()
.
replace
(
'install-data-local:'
,
'do-not-run-this:'
)
f
.
close
()
file
(
name
,
'w'
)
.
write
(
d
)
slapos/hook/tcl-hooks.py
deleted
100644 → 0
View file @
0eba9830
import
os
import
shutil
def
pre_configure_hook
(
options
,
buildout
):
os
.
chdir
(
'unix'
)
def
post_make_hook
(
options
,
buildout
):
bindir
=
os
.
path
.
join
(
options
[
'location'
],
'bin'
)
destination
=
os
.
path
.
join
(
bindir
,
'tclsh'
)
if
not
os
.
path
.
exists
(
destination
):
original
=
os
.
path
.
join
(
bindir
,
[
q
for
q
in
os
.
listdir
(
bindir
)
if
q
.
startswith
(
'tclsh'
)][
0
])
shutil
.
copy
(
original
,
destination
)
slapos/instance.cfg
deleted
100644 → 0
View file @
0eba9830
[buildout]
parts =
instance
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
[instance]
recipe = ${instance-recipe:name}
dcrond_binary = ${dcron:location}/sbin/crond
haproxy_binary = ${haproxy:location}/sbin/haproxy
httpd_binary = ${apache:location}/bin/httpd
innobackupex_binary = ${xtrabackup:location}/bin/innobackupex
kumo_gateway_binary = ${kumo:location}/bin/kumo-gateway
kumo_manager_binary = ${kumo:location}/bin/kumo-manager
kumo_server_binary = ${kumo:location}/bin/kumo-server
logrotate_binary = ${logrotate:location}/usr/sbin/logrotate
memcached_binary = ${memcached:location}/bin/memcached
mysql_binary = ${mariadb:location}/bin/mysql
mysql_install_binary = ${mariadb:location}/bin/mysql_install_db
mysql_upgrade_binary = ${mariadb:location}/bin/mysql_upgrade
mysqld_binary = ${mariadb:location}/libexec/mysqld
openssl_binary = ${openssl:location}/bin/openssl
perl_binary = ${perl:location}/bin/perl
rdiff_backup_binary = ${buildout:bin-directory}/rdiff-backup
repozo_binary = ${buildout:bin-directory}/repozo
runTestSuite_binary = ${buildout:bin-directory}/runTestSuite
runUnitTest_binary = ${buildout:bin-directory}/runUnitTest
runzeo_binary = ${buildout:bin-directory}/runzeo
runzope_binary = ${buildout:bin-directory}/runzope
tidstorage_repozo_binary = ${buildout:bin-directory}/tidstorage_repozo
tidstoraged_binary = ${buildout:bin-directory}/tidstoraged
zabbix_agent_binary = ${zabbix-agent:location}/sbin/zabbix_agent
# cloudooo specific configuration
ooo_binary_path = ${libreoffice-bin:location}/program
ooo_paster = ${buildout:bin-directory}/cloudooo_paster
ooo_uno_path = ${libreoffice-bin:location}/basis-link/program
link_binary_list =
${coreutils:location}/bin/basename
${coreutils:location}/bin/cat
${coreutils:location}/bin/cp
${coreutils:location}/bin/ls
${coreutils:location}/bin/tr
${coreutils:location}/bin/uname
${git:location}/bin/git
${graphviz:location}/bin/dot
${grep:location}/bin/grep
${imagemagick:location}/bin/convert
${mariadb:location}/bin/mysql
${mariadb:location}/bin/mysqldump
${pdftk:location}/bin/pdftk
${sed:location}/bin/sed
${tesseract:location}/bin/tesseract
${w3m:location}/bin/w3m
${xpdf:location}/bin/pdfinfo
${xpdf:location}/bin/pdftotext
${xtrabackup:location}/bin/xtrabackup_51
# XXX: products won't be needed as soon as all ERP5 (and products-deps)
# products will be eggified so then it will be possible to use them thanks to
# availability in software's eggs
products = ${products:list}
environment =
LD_LIBRARY_PATH = ${file:location}/lib:${zlib:location}/lib:${freetype:location}/lib:${libXext:location}/lib:${libXau:location}/lib:${libX11:location}/lib:${libXdmcp:location}/lib:${libxcb:location}/lib
slapos/patch/HandlerSocket-Plugin-for-MySQL-1.0.6-mariadb.patch
deleted
100644 → 0
View file @
0eba9830
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,7 @@
MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir/regex"
MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir"
AC_SUBST(MYSQL_INC)
- MYSQL_SOURCE_VERSION=`cat $ac_mysql_source_dir/configure.in | grep "\[[MySQL Server\]]" | sed -e "s|.*\([[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+[[0-9a-zA-Z\_\-]]*\).*|\1|"`
+ MYSQL_SOURCE_VERSION=`cat $ac_mysql_source_dir/configure.in | grep "\[[MariaDB Server\]]" | sed -e "s|.*\([[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+[[0-9a-zA-Z\_\-]]*\).*|\1|"`
AC_MSG_RESULT([yes: Using $ac_mysql_source_dir, version $MYSQL_SOURCE_VERSION])
else
AC_MSG_ERROR([invalid MySQL source directory: $ac_mysql_source_dir])
--- a/handlersocket/database.cpp
+++ b/handlersocket/database.cpp
@@ -686,19 +686,19 @@
for (uint32_t i = 0; i < limit + skip; ++i) {
if (i == 0) {
const key_part_map kpm = (1U << args.kvalslen) - 1;
- r = hnd->index_read_map(table->record[0], key_buf, kpm, find_flag);
+ r = hnd->ha_index_read_map(table->record[0], key_buf, kpm, find_flag);
} else {
switch (find_flag) {
case HA_READ_BEFORE_KEY:
case HA_READ_KEY_OR_PREV:
- r = hnd->index_prev(table->record[0]);
+ r = hnd->ha_index_prev(table->record[0]);
break;
case HA_READ_AFTER_KEY:
case HA_READ_KEY_OR_NEXT:
- r = hnd->index_next(table->record[0]);
+ r = hnd->ha_index_next(table->record[0]);
break;
case HA_READ_KEY_EXACT:
- r = hnd->index_next_same(table->record[0], key_buf, kplen_sum);
+ r = hnd->ha_index_next_same(table->record[0], key_buf, kplen_sum);
break;
default:
r = HA_ERR_END_OF_FILE; /* to finish the loop */
slapos/patch/cyrus-sasl-2.1.22-gcc44.patch
deleted
100644 → 0
View file @
0eba9830
fix warnings with gcc-4.4
http://bugs.gentoo.org/248738
--- cyrus-sasl-2.1.22/plugins/digestmd5.c
+++ cyrus-sasl-2.1.22/plugins/digestmd5.c
@@ -2715,7 +2715,7 @@ static sasl_server_plug_t digestmd5_serv
"DIGEST-MD5", /* mech_name */
#ifdef WITH_RC4
128, /* max_ssf */
-#elif WITH_DES
+#elif defined(WITH_DES)
112,
#else
1,
@@ -4034,7 +4034,7 @@ static sasl_client_plug_t digestmd5_clie
"DIGEST-MD5",
#ifdef WITH_RC4 /* mech_name */
128, /* max ssf */
-#elif WITH_DES
+#elif defined(WITH_DES)
112,
#else
1,
slapos/patch/cyrus-sasl-prototype-declaration.patch
deleted
100644 → 0
View file @
0eba9830
--- cyrus-sasl-2.1.23/include/sasl.h 2010-11-25 18:15:05.000000000 +0100
+++ cyrus-sasl-2.1.23/include/sasl.h 2010-11-25 18:15:34.000000000 +0100
@@ -346,7 +346,7 @@
* Mechanisms must ignore callbacks with id's they don't recognize.
*/
unsigned long id;
- int (*proc)(); /* Callback function. Types of arguments vary by 'id' */
+ int (*proc); /* Callback function. Types of arguments vary by 'id' */
void *context;
} sasl_callback_t;
slapos/patch/dcron-4.4.noroot.no.globals.patch
deleted
100644 → 0
View file @
0eba9830
# Patch for making dcron usable without root user, as a local service
diff -ru dcron-4.4.org/chuser.c dcron-4.4/chuser.c
--- dcron-4.4.org/chuser.c 2010-01-18 16:27:31.000000000 +0100
+++ dcron-4.4/chuser.c 2011-04-01 11:19:19.000000000 +0200
@@ -14,47 +14,6 @@
int
ChangeUser(const char *user, char *dochdir)
{
- struct passwd *pas;
-
- /*
- * Obtain password entry and change privilages
- */
-
- if ((pas = getpwnam(user)) == 0) {
- printlogf(LOG_ERR, "failed to get uid for %s\n", user);
- return(-1);
- }
- setenv("USER", pas->pw_name, 1);
- setenv("HOME", pas->pw_dir, 1);
- setenv("SHELL", "/bin/sh", 1);
-
- /*
- * Change running state to the user in question
- */
-
- if (initgroups(user, pas->pw_gid) < 0) {
- printlogf(LOG_ERR, "initgroups failed: %s %s\n", user, strerror(errno));
- return(-1);
- }
- if (setregid(pas->pw_gid, pas->pw_gid) < 0) {
- printlogf(LOG_ERR, "setregid failed: %s %d\n", user, pas->pw_gid);
- return(-1);
- }
- if (setreuid(pas->pw_uid, pas->pw_uid) < 0) {
- printlogf(LOG_ERR, "setreuid failed: %s %d\n", user, pas->pw_uid);
- return(-1);
- }
- if (dochdir) {
- /* try to change to $HOME */
- if (chdir(pas->pw_dir) < 0) {
- printlogf(LOG_ERR, "chdir failed: %s %s\n", user, pas->pw_dir);
- /* dochdir is a backup directory, usually /tmp */
- if (chdir(dochdir) < 0) {
- printlogf(LOG_ERR, "chdir failed: %s %s\n", user, dochdir);
- return(-1);
- }
- }
- }
- return(pas->pw_uid);
+ return getpwnam(user);
}
diff -ru dcron-4.4.org/crontab.c dcron-4.4/crontab.c
--- dcron-4.4.org/crontab.c 2010-01-18 16:27:31.000000000 +0100
+++ dcron-4.4/crontab.c 2011-04-01 11:19:19.000000000 +0200
@@ -316,9 +316,6 @@
close(filedes[0]);
- if (ChangeUser(user, NULL) < 0)
- exit(0);
-
fd = open(file, O_RDONLY);
if (fd < 0) {
printlogf(0, "unable to open %s: %s", file, strerror(errno));
@@ -344,8 +341,6 @@
const char *ptr;
char visual[SMALL_BUFFER];
- if (ChangeUser(user, TMPDIR) < 0)
- exit(0);
if ((ptr = getenv("EDITOR")) == NULL || strlen(ptr) >= sizeof(visual))
if ((ptr = getenv("VISUAL")) == NULL || strlen(ptr) >= sizeof(visual))
ptr = PATH_VI;
diff -ru dcron-4.4.org/job.c dcron-4.4/job.c
--- dcron-4.4.org/job.c 2010-01-18 16:27:31.000000000 +0100
+++ dcron-4.4/job.c 2011-04-01 11:19:19.000000000 +0200
@@ -62,14 +62,6 @@
* Change running state to the user in question
*/
- if (ChangeUser(file->cf_UserName, TempDir) < 0) {
- printlogf(LOG_ERR, "unable to ChangeUser (user %s %s)\n",
- file->cf_UserName,
- line->cl_Description
- );
- exit(0);
- }
-
/* from this point we are unpriviledged */
if (DebugOpt)
@@ -295,14 +287,6 @@
* by the mailing and we already verified the mail file.
*/
- if (ChangeUser(file->cf_UserName, TempDir) < 0) {
- printlogf(LOG_ERR, "unable to ChangeUser to send mail (user %s %s)\n",
- file->cf_UserName,
- line->cl_Description
- );
- exit(0);
- }
-
/* from this point we are unpriviledged */
/*
diff -ru dcron-4.4.org/Makefile dcron-4.4/Makefile
--- dcron-4.4.org/Makefile 2010-01-18 16:27:31.000000000 +0100
+++ dcron-4.4/Makefile 2011-04-01 11:19:35.000000000 +0200
@@ -3,7 +3,6 @@
# these variables can be configured by e.g. `make SCRONTABS=/different/path`
PREFIX = /usr/local
-CRONTAB_GROUP = wheel
SCRONTABS = /etc/cron.d
CRONTABS = /var/spool/cron/crontabs
CRONSTAMPS = /var/spool/cron/cronstamps
@@ -20,10 +19,10 @@
SHELL = /bin/sh
-INSTALL = install -o root
+INSTALL = install
INSTALL_PROGRAM = $(INSTALL) -D
-INSTALL_DATA = $(INSTALL) -D -m0644 -g root
-INSTALL_DIR = $(INSTALL) -d -m0755 -g root
+INSTALL_DATA = $(INSTALL) -D -m0644
+INSTALL_DIR = $(INSTALL) -d -m0755
CFLAGS ?= -O2
CFLAGS += -Wall -Wstrict-prototypes
SRCS = main.c subs.c database.c job.c concat.c chuser.c
@@ -44,7 +43,6 @@
echo "SBINDIR = $(SBINDIR)" >> config
echo "BINDIR = $(BINDIR)" >> config
echo "MANDIR = $(MANDIR)" >> config
- echo "CRONTAB_GROUP = $(CRONTAB_GROUP)" >> config
echo "SCRONTABS = $(SCRONTABS)" >> config
echo "CRONTABS = $(CRONTABS)" >> config
echo "CRONSTAMPS = $(CRONSTAMPS)" >> config
@@ -62,13 +60,10 @@
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $< -o $@
install:
- $(INSTALL_PROGRAM) -m0700 -g root crond $(DESTDIR)$(SBINDIR)/crond
- $(INSTALL_PROGRAM) -m4750 -g $(CRONTAB_GROUP) crontab $(DESTDIR)$(BINDIR)/crontab
+ $(INSTALL_PROGRAM) -m0755 crond $(DESTDIR)$(SBINDIR)/crond
+ $(INSTALL_PROGRAM) -m4750 crontab $(DESTDIR)$(BINDIR)/crontab
$(INSTALL_DATA) crontab.1 $(DESTDIR)$(MANDIR)/man1/crontab.1
$(INSTALL_DATA) crond.8 $(DESTDIR)$(MANDIR)/man8/crond.8
- $(INSTALL_DIR) $(DESTDIR)$(SCRONTABS)
- $(INSTALL_DIR) $(DESTDIR)$(CRONTABS)
- $(INSTALL_DIR) $(DESTDIR)$(CRONSTAMPS)
clean: force
rm -f *.o $(PROTOS)
slapos/patch/gdbm-Makefile.in-nochange.patch
deleted
100644 → 0
View file @
0eba9830
--- Makefile.in 2002-10-08 16:09:12.000000000 +0000
+++ Makefile.in.nochange 2010-11-03 21:17:38.579435530 +0000
@@ -14,10 +14,6 @@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
-# File ownership and group
-BINOWN = bin
-BINGRP = bin
-
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
@@ -131,11 +127,11 @@
$(INSTALL_ROOT)$(includedir) $(INSTALL_ROOT)$(man3dir) \
$(INSTALL_ROOT)$(infodir)
$(LIBTOOL) $(INSTALL) -c libgdbm.la $(INSTALL_ROOT)$(libdir)/libgdbm.la
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) gdbm.h \
+ $(INSTALL_DATA) gdbm.h \
$(INSTALL_ROOT)$(includedir)/gdbm.h
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.3 \
+ $(INSTALL_DATA) $(srcdir)/gdbm.3 \
$(INSTALL_ROOT)$(man3dir)/gdbm.3
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.info \
+ $(INSTALL_DATA) $(srcdir)/gdbm.info \
$(INSTALL_ROOT)$(infodir)/gdbm.info
install-compat:
@@ -143,9 +139,9 @@
$(INSTALL_ROOT)$(includedir)
$(LIBTOOL) $(INSTALL) -c libgdbm_compat.la \
$(INSTALL_ROOT)$(libdir)/libgdbm_compat.la
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/dbm.h \
+ $(INSTALL_DATA) $(srcdir)/dbm.h \
$(INSTALL_ROOT)$(includedir)/dbm.h
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/ndbm.h \
+ $(INSTALL_DATA) $(srcdir)/ndbm.h \
$(INSTALL_ROOT)$(includedir)/ndbm.h
#libgdbm.a: $(OBJS) gdbm.h
slapos/patch/groonga-storage-engine-0.4.mariadb.patch
deleted
100644 → 0
View file @
0eba9830
diff -ur groonga-storage-engine-0.4.orig/configure groonga-storage-engine-0.4/configure
--- groonga-storage-engine-0.4.orig/configure 2010-11-24 06:23:50.000000000 +0100
+++ groonga-storage-engine-0.4/configure 2011-01-01 16:01:07.000000000 +0100
@@ -13925,8 +13925,8 @@
as_fn_error "failed to run \"$ac_mysql_config\": $plugindir" "$LINENO" 5
fi
MYSQL_INC="$MYSQL_INC $($ac_mysql_config --include)"
- ac_mysql_major_version="`$ac_mysql_config --version | cut -b 1-3`"
- if test "$ac_mysql_major_version" = "5.1"; then
+ ac_mysql_major_version="`$ac_mysql_config --version | cut -b 1,3`"
+ if test $ac_mysql_major_version -lt 55; then
MYSQL51="-DMYSQL51"
fi
slapos/patch/imagemagick-6.6.6-1-no-gsx-gsc-probe.patch
deleted
100644 → 0
View file @
0eba9830
--- ImageMagick-6.6.6-1/configure.ac~ 2010-11-28 21:51:05.000000000 +0100
+++ ImageMagick-6.6.6-1/configure.ac 2010-12-03 14:13:14.000000000 +0100
@@ -2791,7 +2791,7 @@
AC_PATH_PROG(PCLDelegate, "$PCLDelegateDefault", "$PCLDelegateDefault")
AC_PATH_PROG(PGPDecodeDelegate, "$PGPDecodeDelegateDefault", "$PGPDecodeDelegateDefault")
AC_PATH_PROG(POVDelegate, "$POVDelegateDefault", "$POVDelegateDefault")
-AC_PATH_PROGS(PSDelegate, gsx gsc "$PSDelegateDefault", "$PSDelegateDefault")
+AC_PATH_PROGS(PSDelegate, "$PSDelegateDefault", "$PSDelegateDefault")
AC_PATH_PROG(RLEEncodeDelegate, "$RLEEncodeDelegateDefault", "$RLEEncodeDelegateDefault")
AC_PATH_PROG(RMDelegate, "$RMDelegateDefault", "$RMDelegateDefault")
AC_PATH_PROG(RSVGDecodeDelegate, "$RSVGDecodeDelegateDefault", "$RSVGDecodeDelegateDefault")
--- ImageMagick-6.6.6-1/configure~ 2010-11-28 23:27:16.000000000 +0100
+++ ImageMagick-6.6.6-1/configure 2010-12-03 14:13:57.000000000 +0100
@@ -30931,7 +30931,7 @@
fi
-for ac_prog in gsx gsc "$PSDelegateDefault"
+for ac_prog in "$PSDelegateDefault"
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
slapos/patch/imagemagick-6.6.7-4-without-lzma.patch
deleted
100644 → 0
View file @
0eba9830
--- ImageMagick-6.6.7-4/configure~ 2011-02-10 11:50:21.704561096 +0100
+++ ImageMagick-6.6.7-4/configure 2011-02-10 12:23:45.612561097 +0100
@@ -28251,7 +28251,7 @@
#
have_lzma='no'
LZMA_LIBS=''
-if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
+if test "$with_lzma" != 'no'; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
$as_echo "-------------------------------------------------------------" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
--- ImageMagick-6.6.7-4/configure.ac~ 2011-02-10 11:50:21.693561096 +0100
+++ ImageMagick-6.6.7-4/configure.ac 2011-02-10 12:23:40.013561098 +0100
@@ -2290,7 +2290,7 @@
#
have_lzma='no'
LZMA_LIBS=''
-if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
+if test "$with_lzma" != 'no'; then
AC_MSG_RESULT([-------------------------------------------------------------])
AC_MSG_CHECKING(for LZMA)
AC_MSG_RESULT()
slapos/patch/jbigkit-2.0-build.patch
deleted
100644 → 0
View file @
0eba9830
diff -ur jbigkit.orig/libjbig/Makefile jbigkit/libjbig/Makefile
--- jbigkit.orig/libjbig/Makefile 2008-08-30 20:20:52.000000000 +0300
+++ jbigkit/libjbig/Makefile 2010-02-28 13:12:41.000000000 +0200
@@ -1,29 +1,54 @@
# Unix makefile for the JBIG-KIT library
# $Id: jbigkit-2.0-build.patch,v 1.1 2010/02/28 11:21:39 ssuominen Exp $
-# Select an ANSI/ISO C compiler here, GNU gcc is recommended
-CC = gcc
+AR ?= ar
+CC ?= gcc
+RANLIB ?= ranlib
+
+CFLAGS += -Wall -ansi -pedantic
+
+ifeq ($(USERLAND),Darwin)
+ SONAME = dylib
+else
+ SONAME = so
+endif
-# Options for the compiler: A high optimization level is suggested
-CFLAGS = -g -O -Wall -ansi -pedantic # --coverage
-
-all: libjbig.a tstcodec tstcodec85
+all: libjbig.a libjbig.$(SONAME) libjbig85.a libjbig85.$(SONAME) tstcodec tstcodec85
tstcodec: tstcodec.o jbig.o jbig_ar.o
- $(CC) $(CFLAGS) -o tstcodec $+
+ $(CC) $(LDFLAGS) $(CFLAGS) -o tstcodec $+
tstcodec85: tstcodec85.o jbig85.o jbig_ar.o
- $(CC) $(CFLAGS) -o tstcodec85 $+
+ $(CC) $(LDFLAGS) $(CFLAGS) -o tstcodec85 $+
libjbig.a: jbig.o jbig_ar.o
rm -f libjbig.a
- ar rc libjbig.a jbig.o jbig_ar.o
- -ranlib libjbig.a
+ $(AR) rc libjbig.a jbig.o jbig_ar.o
+ -$(RANLIB) libjbig.a
+
+SOBJS = jbig.lo jbig_ar.lo
+
+libjbig.so: $(SOBJS)
+ $(CC) -shared $(LDFLAGS) -o $@ -Wl,-soname -Wl,$@ $(SOBJS)
+
+libjbig.dylib: $(SOBJS)
+ $(CC) -dynamic $(LDFLAGS) -o $@ -dynamiclib -install_name $@ $(SOBJS)
+
+SOBJS85 = jbig85.lo jbig_ar.lo
+
+libjbig85.so: $(SOBJS85)
+ $(CC) -shared $(LDFLAGS) -o $@ -Wl,-soname -Wl,$@ $(SOBJS85)
+
+libjbig85.dylib: $(SOBJS85)
+ $(CC) -dynamic $(LDFLAGS) -o $@ -dynamiclib -install_name $@ $(SOBJS85)
+
+%.lo: %.c jbig.h jbig85.h jbig_ar.h
+ $(CC) $(CFLAGS) -fPIC -c $< -o $@
libjbig85.a: jbig85.o jbig_ar.o
rm -f libjbig85.a
- ar rc libjbig85.a jbig85.o jbig_ar.o
- -ranlib libjbig85.a
+ $(AR) rc libjbig85.a jbig85.o jbig_ar.o
+ -$(RANLIB) libjbig85.a
jbig.o: jbig.c jbig.h jbig_ar.h
jbig85.o: jbig85.c jbig85.h jbig_ar.h
diff -ur jbigkit.orig/Makefile jbigkit/Makefile
--- jbigkit.orig/Makefile 2008-08-30 23:40:22.000000000 +0300
+++ jbigkit/Makefile 2010-02-28 12:59:07.000000000 +0200
@@ -1,34 +1,25 @@