software.cfg 5.69 KB
Newer Older
1
[buildout]
2 3 4 5 6
develop =
  /srv/slapgrid/slappart9/srv/runner/project/slapos
  /opt/slapdev_build

extends =
7
  ../../component/rsync/buildout.cfg
8
  ../../component/apache-perl/buildout.cfg
9
  ../../component/perl-Crypt-SSLeay/buildout.cfg
10
  ../../component/perl-XML-Parser/buildout.cfg
11 12
  ../../component/perl-XML-LibXML/buildout.cfg
  ../../component/perl-XML-LibXSLT/buildout.cfg
13 14
  ../../component/perl-Term-ReadLine-Gnu/buildout.cfg
  ../../component/perl-Text-Iconv/buildout.cfg
15
  ../../component/perl-Image-Magick/buildout.cfg
16 17
  ../../component/postgresql/buildout.cfg
  ../../component/perl-DBD-Pg/buildout.cfg
18 19
  ../../component/perl-Search-Xapian/buildout.cfg
  ../../component/libxslt/buildout.cfg
20
  ../../component/dcron/buildout.cfg
21
  ../../component/dropbear/buildout.cfg
22
  ../../component/lxml-python/buildout.cfg
23 24
  ../../stack/slapos.cfg

25 26 27 28 29 30 31 32 33
parts = 
  eggs
  apache-perl
  perl-Apache2-Request
  perl-Crypt-SSLeay
  perl-DBD-Pg
  perl-XML-Parser
  perl-XML-LibXML
  perl-XML-LibXSLT
34 35
  perl-Term-ReadLine-Gnu
  perl-Text-Iconv
36
  perl-Image-Magick
37
  perl-String-Checker-mioga
38
  perl-Search-Xapian
39
  cpan-simple-modules
40
  rsync
41
  mioga
Viktor Horvath's avatar
Viktor Horvath committed
42 43 44
  template
  template-apacheperl
  template-postgres
45 46 47 48 49 50

[eggs]
recipe = zc.recipe.egg
eggs =
  ${lxml-python:egg}
  slapos.cookbook
Viktor Horvath's avatar
Viktor Horvath committed
51
  cns.recipe.symlink
52

53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
# override perl here to keep using 5.14.x.
[perl]
recipe = hexagonit.recipe.cmmi
version = 5.14.2
url = http://www.cpan.org/src/5.0/perl-${:version}.tar.bz2
md5sum = 04a4c5d3c1f9f19d77daff8e8cd19a26
siteprefix = ${buildout:parts-directory}/site_${:_buildout_section_name_}
patch-options = -p1
patches =
  ${perl-keep-linker-flags-in-ldflags.patch:location}/${perl-keep-linker-flags-in-ldflags.patch:filename}
# Viktor has adapted the following commands for AMD64 compilation
# TODO: find out how we can write a generic code that suits all architectures
configure-command =
  sh Configure -des \
    -A ccflags=-fPIC \
    -Dprefix=${buildout:parts-directory}/${:_buildout_section_name_} \
    -Dsiteprefix=${:siteprefix} \
    -Dcflags=-I${gdbm:location}/include \
    -Dldflags="-L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib" \
    -Ui_db \
    -Dnoextensions=ODBM_File \
    -Dusethreads
environment =
  PATH=${patch:location}/bin:%(PATH)s
  CFLAGS='-m64 -mtune=nocona'
post-make-hook = ${perl-postmakehook-download:location}/${perl-postmakehook-download:filename}:post_make_hook

80 81 82 83
[cpan-simple-modules]
recipe = slapos.recipe.build:cpan
modules =
  S/ST/STBEY/Date-Calc-6.3.tar.gz
84
  D/DC/DCOPPIT/Benchmark-Timer-0.7102.tar.gz
85
  R/RB/RBOW/Date-ICal-2.678.tar.gz
86
  S/SB/SBECK/Date-Manip-6.37.tar.gz
87
  G/GB/GBARR/TimeDate-1.20.tar.gz
88 89 90 91
  S/SH/SHLOMIF/Error-0.17018.tar.gz
  P/PA/PARDUS/File-MimeInfo/File-MimeInfo-0.16.tar.gz
  O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz
  D/DS/DSKOLL/MIME-tools-5.503.tar.gz
92
  D/DS/DSKOLL/IO-stringy-2.110.tar.gz
93
  C/CO/COSIMO/HTTP-DAV-0.47.tar.gz
94 95 96 97
  M/MA/MARSCHAP/perl-ldap-0.48.tar.gz
  F/FD/FDESAR/Parse-Yapp-1.05.tar.gz
  S/SN/SNOWHARE/Unicode-MapUTF8-1.11.tar.gz
  G/GA/GAAS/Unicode-String-2.09.tar.gz
98
  T/TY/TYEMQ/Algorithm-Diff-1.1902.tar.gz
99 100 101 102 103
  J/JG/JGMYERS/Encode-Detect-1.01.tar.gz
  G/GU/GUIDO/libintl-perl-1.20.tar.gz
  K/KE/KEN/XML-XML2JSON-0.06.tar.gz
  A/AR/ARISTOTLE/XML-Atom-SimpleFeed-0.86.tar.gz
  P/PE/PETDANCE/Test-WWW-Mechanize-1.44.tar.gz
104 105 106
  G/GR/GRANTM/XML-Simple-2.20.tar.gz
  A/AD/ADAMK/Archive-Zip-1.30.tar.gz
  D/DU/DURIST/Proc-ProcessTable-0.45.tar.gz
Viktor Horvath's avatar
Viktor Horvath committed
107
  S/SU/SULLR/Net-INET6Glue-0.5.tar.gz
108
perl = perl
109 110 111
cpan-configuration =
  makepl_arg=''
  make_arg=''
112

113 114 115 116 117 118
[perl-String-Checker-mioga]
recipe = hexagonit.recipe.cmmi
url = http://packages.alixen.org/contribs/String-Checker-0.03.tar.gz
md5sum = c750a33505609544f95eace7a2896c84
configure-command =
  ${perl:location}/bin/perl Makefile.PL
119

120 121
[mioga]
recipe = hexagonit.recipe.cmmi
122
version = 2.4.16
123
# No use re-using "version", the whole URL will change for the next one
124 125 126 127 128
url = http://www.alixen.org/attachments/download/89/Mioga2-2.4.16.tar.gz
md5sum = 1d2e76c798ee6d5f233011997200e125
location = ${buildout:parts-directory}/${:_buildout_section_name_}
buildinst = ${mioga:location}/buildinst
static = ${mioga:location}/static
129
environment =
130 131 132
  MIOGA_BASE=${mioga:location}
  MIOGA_BUILDINST=${mioga:buildinst}
  MIOGA_STATIC=${mioga:static}
133
  MIOGA_SITEPERL=${perl:siteprefix}
134
  PATH=${libxslt:location}/bin:${libxml2:location}/bin:${perl:location}/bin:${perl:siteprefix}/bin:${rsync:location}/bin:%(PATH)s
135 136 137 138 139 140 141
patch-options = -p1
patches =
  ${mioga-patch:location}/${mioga-patch:filename}
# post-make-hook = ${mioga-postmakehook:location}/${mioga-postmakehook:filename}:post_make_hook
pre-configure-hook = ${mioga-hooks:location}/${mioga-hooks:filename}:pre_configure_hook
configure-command =
  ${perl:location}/bin/perl Makefile.PL
142 143
make-targets =
  slapos-compilation
144
keep-compile-dir = true
145
perl-binary = ${perl:location}/bin/perl
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160

[mioga-patch]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
# md5sum = b836ad89902d1ea68b091a5b9800edd8
download-only = true
filename = ${:_buildout_section_name_}

[mioga-hooks]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
# md5sum = c7ceec7788749238cb5fbe09beb647b1
download-only = true
filename = mioga-hooks.py

Viktor Horvath's avatar
Viktor Horvath committed
161 162 163 164 165 166 167 168 169 170 171 172 173
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
# md5sum = 
output = ${buildout:directory}/template.cfg
mode = 0644

[template-apacheperl]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-apacheperl.cfg
# md5sum = 
output = ${buildout:directory}/template-apacheperl.cfg
mode = 0644
174 175
compile-directory = ${mioga:compile-directory}/Mioga2-${mioga:version}

Viktor Horvath's avatar
Viktor Horvath committed
176 177 178 179 180 181 182

[template-postgres]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-postgres.cfg
# md5sum = 
output = ${buildout:directory}/template-postgres.cfg
mode = 0644