diff --git a/software/dokuwiki/instance.cfg b/software/dokuwiki/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..fd50f44f39c37337b8bb2e1f94aa4d085cb16b06 --- /dev/null +++ b/software/dokuwiki/instance.cfg @@ -0,0 +1,13 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +httpd_binary = ${apache:location}/bin/httpd +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 \ No newline at end of file diff --git a/software/dokuwiki/software.cfg b/software/dokuwiki/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..a3051ba6f3b1904bf4110ea3495971fa066cce99 --- /dev/null +++ b/software/dokuwiki/software.cfg @@ -0,0 +1,53 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2011-05-25a.tgz +md5sum = 6452eff54afa35e031e15fec9a737dd1 +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = ${instance-recipe:egg} + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/drupal/software.cfg b/software/drupal/software.cfg index ec66694c0b4cce47a42af7450c1d99efe12c3cf7..44e87c42a6e04dd135e1a0a8fb723e78eda0b401 100644 --- a/software/drupal/software.cfg +++ b/software/drupal/software.cfg @@ -5,6 +5,7 @@ extends = [application] recipe = slapos.recipe.build:download-unpacked + url = http://ftp.drupal.org/files/projects/drupal-7.15.tar.gz md5sum = f42c9baccd74e1d035d61ff537ae21b4 @@ -14,7 +15,22 @@ url = ${:_profile_base_location_}/settings.php.in md5sum = add9e4e96094a9d3fb7cf0f4d26ae544 download-only = True filename = template.in -mode = 0644 + + + + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + + +# Default template for the instance. + + +#md5sum = Student shall put md5 of instance.cfg here + + + location = ${buildout:parts-directory}/${:_buildout_section_name_} [application-configuration] diff --git a/software/freeglobes/configure-freeglobes.py b/software/freeglobes/configure-freeglobes.py new file mode 100644 index 0000000000000000000000000000000000000000..e1d08417966c7ee7ab17e7105f9000261a623423 --- /dev/null +++ b/software/freeglobes/configure-freeglobes.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +import sys +import os + +def setup(args): + ''' + Freeglobes doesn't put the good url of the application + this script ensure the url is the good one + ''' + mysql_port, mysql_host, mysql_user, mysql_password, mysql_database, base_url, htdocs = args + + config_file = os.path.join(htdocs, "conf/config.php") + new_config_file = os.path.join(htdocs, "conf/config_new.php") + install_dir = os.path.join(htdocs, "install") + software_url = "$CONFIG['site_url'] = '%s'; " % base_url + + f = open(config_file, 'r') + f1 = open(new_config_file, 'w+') + for line in f.readlines(): + if "$CONFIG['site_url']" not in line: + f1.write(line) + else: + f1.write(software_url) + f.close() + f1.close() + + os.remove(config_file) + os.rename(new_config_file, config_file) + os.rename(install_dir, '%s_done' % install_dir) + +if __name__ == '__main__': + setup(sys.argv[1:]) diff --git a/software/freeglobes/instance.cfg b/software/freeglobes/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..6f9104ee79005cc457b6356b70336f4d6fdfe557 --- /dev/null +++ b/software/freeglobes/instance.cfg @@ -0,0 +1,20 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + +httpd_binary = ${apache:location}/bin/httpd +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 + +table_name = user +constraint = `id`=1 +script = ${configure-script:location}/${configure-script:filename} \ No newline at end of file diff --git a/software/freeglobes/software.cfg b/software/freeglobes/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..6d7875f6bf62297ac1301074950997fe8b12dabd --- /dev/null +++ b/software/freeglobes/software.cfg @@ -0,0 +1,66 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + configure-script + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = slapos.recipe.build:download-unpacked +url = http://www.freeglobes.net/freeglobes-03.01.2009.zip +md5sum = 80e373c4a23fab7506d6e00a3ec11473 +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + +[configure-script] +recipe = hexagonit.recipe.download +location = ${buildout:parts-directory}/${:_buildout_section_name_} +url = ${:_profile_base_location_}/configure-freeglobes.py +md5sum = 30d9bbcd410f35afc58c7b9ad101b1ec +filename = configure-freeglobes.py +download-only = True +mode = 0744 + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/freewebshop/instance.cfg b/software/freewebshop/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..63788156319b510c8652e52d199895194e131cbc --- /dev/null +++ b/software/freewebshop/instance.cfg @@ -0,0 +1,20 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + +httpd_binary = ${apache:location}/bin/httpd +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 + +table_name = shipping_weight +constraint = `id`=2 +delete = install.php \ No newline at end of file diff --git a/software/freewebshop/software.cfg b/software/freewebshop/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..fa4738ed62df4f0df094716bc35053d0c41df990 --- /dev/null +++ b/software/freewebshop/software.cfg @@ -0,0 +1,59 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = slapos.recipe.build +url = http://www.chaozz.nl/binaries/freewebshop/FreeWebshop.org2.2.9_R2.zip +md5sum = 9a32bfa3feb47e33c4eb81a9e00271e6 +script = + if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ') + extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum'))) + workdir = guessworkdir(extract_dir) + self.copyTree(workdir, "${buildout:parts-directory}/${:_buildout_section_name_}") + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/fusionnews/instance.cfg b/software/fusionnews/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..2b393d68f04ede02268e0b2669cd9a9358451c19 --- /dev/null +++ b/software/fusionnews/instance.cfg @@ -0,0 +1,19 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + +httpd_binary = ${apache:location}/bin/httpd +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 + +file_token = install.lock +delete = install.php \ No newline at end of file diff --git a/software/fusionnews/software.cfg b/software/fusionnews/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..7992dba33a6e7fa826d6148d3725a1ac0266c98f --- /dev/null +++ b/software/fusionnews/software.cfg @@ -0,0 +1,59 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = slapos.recipe.build +url = http://downloads.sourceforge.net/project/fnews/fnews/3.9.6-p1/fusionnews-3.9.6-p1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ffnews%2Ffiles%2F&ts=1320325550&use_mirror=freefr +md5sum = dc4c00be8f4abab11fbab178e016c581 +script = + if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ') + extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum'))) + workdir = guessworkdir(extract_dir) + self.copyTree(workdir + "/upload", "${buildout:parts-directory}/${:_buildout_section_name_}") + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/guppy/instance.cfg b/software/guppy/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9495bde7e7cadfe7dcb518156bf58a4f6a9c2a1c --- /dev/null +++ b/software/guppy/instance.cfg @@ -0,0 +1,15 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} + +httpd_binary = ${apache:location}/bin/httpd +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 diff --git a/software/guppy/software.cfg b/software/guppy/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..914482618a3057006688d25cc45b793bf0f82240 --- /dev/null +++ b/software/guppy/software.cfg @@ -0,0 +1,53 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://www.freeguppy.org/file/guppy4619.zip +md5sum = 5d993b0818e195385a775880ce5d4be7 +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = false + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = ${instance-recipe:egg} + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/mantis/instance.cfg b/software/mantis/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..412fda95cebaa3bda1868e5ea3dbaaef7f5418a3 --- /dev/null +++ b/software/mantis/instance.cfg @@ -0,0 +1,19 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + +httpd_binary = ${apache:location}/bin/httpd +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 + +file_token = config_inc.php +delete = admin \ No newline at end of file diff --git a/software/mantis/software.cfg b/software/mantis/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..8b61fcfc55cd6a8af5dafa6c7aedbc1ebab7043c --- /dev/null +++ b/software/mantis/software.cfg @@ -0,0 +1,57 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://downloads.sourceforge.net/project/mantisbt/mantis-stable/1.2.10/mantisbt-1.2.10.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmantisbt%2F&ts=1334735181&use_mirror=freefr +md5sum = f653408a24f76723929567cba606861c +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/moregroupware/instance.cfg b/software/moregroupware/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..b09fb6f6e921d2968fa57f887e49f053e8ad146a --- /dev/null +++ b/software/moregroupware/instance.cfg @@ -0,0 +1,19 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + +httpd_binary = ${apache:location}/bin/httpd +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 + +file_token = install.log +delete = setup \ No newline at end of file diff --git a/software/moregroupware/software.cfg b/software/moregroupware/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c39ddaf660044fe008f4c9d233d587f40a5148dd --- /dev/null +++ b/software/moregroupware/software.cfg @@ -0,0 +1,56 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://downloads.sourceforge.net/project/moregroupware/moregroupware/0.7.4/moregroupware-core-0.7.4.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmoregroupware%2F&ts=1319116756&use_mirror=sunet +md5sum = b30523ab7dd2bf5003cb897be07201b7 +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/nucleus/configure-nucleus.py b/software/nucleus/configure-nucleus.py new file mode 100644 index 0000000000000000000000000000000000000000..4f9e6faf026cff0c36eb3205b95560bb594ac520 --- /dev/null +++ b/software/nucleus/configure-nucleus.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +import sys +import os + +def setup(args): + mysql_port, mysql_host, mysql_user, mysql_password, mysql_database, base_url, htdocs = args + + config_php = os.path.join(htdocs, "config.php") + install_php = os.path.join(htdocs, "install.php") + install_sql = os.path.join(htdocs, "install.sql") + + os.chmod(config_php, 0444) + os.remove(install_php) + os.remove(install_sql) + +if __name__ == '__main__': + setup(sys.argv[1:]) diff --git a/software/nucleus/instance.cfg b/software/nucleus/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c0b7aeebd6be513a6be72225c67f9b2612d3c4f0 --- /dev/null +++ b/software/nucleus/instance.cfg @@ -0,0 +1,23 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + +httpd_binary = ${apache:location}/bin/httpd +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 + +#delete = install.sql, install.php +#chmod = config.php +#mode = 0444 +table_name = member +constraint = `mnumber`=1 +script = ${configure-script:location}/${configure-script:filename} \ No newline at end of file diff --git a/software/nucleus/software.cfg b/software/nucleus/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..014927b9374b566a7af5ad0cbaa402e91a536bb4 --- /dev/null +++ b/software/nucleus/software.cfg @@ -0,0 +1,66 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + configure-script + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://downloads.sourceforge.net/project/nucleuscms/1.%20Nucleus%20Core/Nucleus%20v3.64/nucleus3.64.zip?r=&ts=1319307841&use_mirror=freefr +md5sum = f38d23cba814e6aa05e5d82ea43cb3fd +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + +[configure-script] +recipe = hexagonit.recipe.download +location = ${buildout:parts-directory}/${:_buildout_section_name_} +url = ${:_profile_base_location_}/configure-nucleus.py +md5sum = c052f761180a6ee55af1e531e4c38b4b +filename = configure-nucleus.py +download-only = True +mode = 0744 + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/openemr/configure-openemr.py b/software/openemr/configure-openemr.py new file mode 100644 index 0000000000000000000000000000000000000000..14fd5cbf8cf1cc568a8c7bcb55bafb3f07386b65 --- /dev/null +++ b/software/openemr/configure-openemr.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +import sys +import os + +def setup(args): + ''' + Freeglobes doesn't put the good url of the application + this script ensure the url is the good one + ''' + mysql_port, mysql_host, mysql_user, mysql_password, mysql_database, base_url, htdocs = args + + htpasswd_file = os.path.join(htdocs, "sites/default/.htpasswd") + document_htaccess = os.path.join(htdocs, "sites/default/documents/.htaccess") + edi_htaccess = os.path.join(htdocs, "sites/default/edi/.htaccess") + era_htaccess = os.path.join(htdocs, "sites/default/era/.htaccess") + + f1 = open(htpasswd_file, 'w+') + f1.write("admin:OA9zt069mtqn6") #admin/admin + f1.close() + os.chmod(htpasswd_file, 0644) + + htaccess_content = "AuthUserFile %ssites/default/.htpasswd\nAuthName “OpenEMR Protected Pageâ€\nAuthType Basic\nRequire valid-user" % htdocs + + for f in [document_htaccess, edi_htaccess, era_htaccess]: + file = open(f, 'w+') + file.write(htaccess_content) + file.close() + os.chmod(f, 0644) + +if __name__ == '__main__': + setup(sys.argv[1:]) diff --git a/software/openemr/instance.cfg b/software/openemr/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9495bde7e7cadfe7dcb518156bf58a4f6a9c2a1c --- /dev/null +++ b/software/openemr/instance.cfg @@ -0,0 +1,15 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} + +httpd_binary = ${apache:location}/bin/httpd +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 diff --git a/software/openemr/software.cfg b/software/openemr/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..13f9364cfa9924eafa68795378adbadb211eee43 --- /dev/null +++ b/software/openemr/software.cfg @@ -0,0 +1,66 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + configure-script + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://downloads.sourceforge.net/project/openemr/OpenEMR%20Current/4.1.0/openemr-4.1.0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fopenemr%2F&ts=1319625464&use_mirror=freefr +md5sum = 4311688c25e991825584ad529b553396 +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + +[configure-script] +recipe = hexagonit.recipe.download +location = ${buildout:parts-directory}/${:_buildout_section_name_} +url = ${:_profile_base_location_}/configure-openemr.py +md5sum = cfb305e0fd2b996f8bfe4302dd6b6288 +filename = configure-openemr.py +download-only = True +mode = 0744 + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/phpmybackup/instance.cfg b/software/phpmybackup/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..1234ccac92542637604ec6e5e33bd0cfb3c755ef --- /dev/null +++ b/software/phpmybackup/instance.cfg @@ -0,0 +1,14 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} + +httpd_binary = ${apache:location}/bin/httpd +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 \ No newline at end of file diff --git a/software/phpmybackup/software.cfg b/software/phpmybackup/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..3a176aaf9fa886bf10f3a9bec049b6fdb0708c11 --- /dev/null +++ b/software/phpmybackup/software.cfg @@ -0,0 +1,56 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = slapos.recipe.build +url = http://downloads.sourceforge.net/project/phpmybackup/phpMyBackupPro/phpMyBackupPro%202.2/phpMyBackupPro-2.2.zip?r=&ts=1319486570&use_mirror=freefr +md5sum = 577d9189195f358017e5910f3699b88e +script = + if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ') + extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum'))) + workdir = guessworkdir(extract_dir) + self.copyTree(workdir + "/phpMyBackupPro", "${buildout:parts-directory}/${:_buildout_section_name_}") + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = ${instance-recipe:egg} + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/phprojekt/instance.cfg b/software/phprojekt/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9495bde7e7cadfe7dcb518156bf58a4f6a9c2a1c --- /dev/null +++ b/software/phprojekt/instance.cfg @@ -0,0 +1,15 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} + +httpd_binary = ${apache:location}/bin/httpd +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 diff --git a/software/phprojekt/software.cfg b/software/phprojekt/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..60c71deaff4a426378886ae22657e5cdb4b697fd --- /dev/null +++ b/software/phprojekt/software.cfg @@ -0,0 +1,56 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = slapos.recipe.build +url = http://downloads.sourceforge.net/project/phprojekt/PHProjekt%206.0/6.0.6/phprojekt-6.0.6.zip?r=http%3A%2F%2Fwww.google.fr%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3Ddownload%2520phprojekt%26source%3Dweb%26cd%3D4%26ved%3D0CD4QFjAD%26url%3Dhttp%253A%252F%252Fsourceforge.net%252Fprojects%252Fphprojekt%252Ffiles%252Flatest%252Fdownload%26ei%3DeWuyToW3HMWEOqubkYQC%26usg%3DAFQjCNG0ZO1Bp-VS5t4X2pI9QKAmlovXpg&ts=1320315780&use_mirror=freefr +md5sum = d139b3d9b791a39460e9a780dece7779 +script = + if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ') + extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum'))) + workdir = guessworkdir(extract_dir) + self.copyTree(workdir, "${buildout:parts-directory}/${:_buildout_section_name_}") + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = ${instance-recipe:egg} + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/quick-cart/instance.cfg b/software/quick-cart/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9495bde7e7cadfe7dcb518156bf58a4f6a9c2a1c --- /dev/null +++ b/software/quick-cart/instance.cfg @@ -0,0 +1,15 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} + +httpd_binary = ${apache:location}/bin/httpd +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 diff --git a/software/quick-cart/software.cfg b/software/quick-cart/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..3acd0d1afb1804df5b96b11116b5c0b77f1aaf25 --- /dev/null +++ b/software/quick-cart/software.cfg @@ -0,0 +1,53 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://opensolution.org/download,en,18.html?sFile=Quick.Cart/Quick.Cart_v5.1.zip +md5sum = c710d772b9b253c9cbba78dc4d619865 +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = false + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = ${instance-recipe:egg} + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/quick-cms/instance.cfg b/software/quick-cms/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9495bde7e7cadfe7dcb518156bf58a4f6a9c2a1c --- /dev/null +++ b/software/quick-cms/instance.cfg @@ -0,0 +1,15 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} + +httpd_binary = ${apache:location}/bin/httpd +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 diff --git a/software/quick-cms/software.cfg b/software/quick-cms/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..a50ad151bd2b556d452f68f06ef19e54bcb761f3 --- /dev/null +++ b/software/quick-cms/software.cfg @@ -0,0 +1,53 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://opensolution.org/download,en,18.html?sFile=Quick.Cms/Quick.Cms_v4.1.zip +md5sum = b21ad5aaf0a367a0e7edf19f714e893a +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = false + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = ${instance-recipe:egg} + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/simple-invoicing/instance.cfg b/software/simple-invoicing/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..fd50f44f39c37337b8bb2e1f94aa4d085cb16b06 --- /dev/null +++ b/software/simple-invoicing/instance.cfg @@ -0,0 +1,13 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +httpd_binary = ${apache:location}/bin/httpd +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 \ No newline at end of file diff --git a/software/simple-invoicing/software.cfg b/software/simple-invoicing/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c0b59c9198c93dacb8fecf51b6a3e36f408b74db --- /dev/null +++ b/software/simple-invoicing/software.cfg @@ -0,0 +1,53 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/lamp.cfg?js=1 + http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://bigprof.com/appgini/sites/default/files/invoicing.zip +md5sum = b3fbc5c818e22363582f954bc04aa046 +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = ${instance-recipe:egg} + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/thelia/instance.cfg b/software/thelia/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c056c85a4e1cf630b00304a16c01b72fabf492c0 --- /dev/null +++ b/software/thelia/instance.cfg @@ -0,0 +1,20 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + +httpd_binary = ${apache:location}/bin/httpd +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 + +table_name = lang +constraint = `defaut`=1 AND `url`<>'' +delete = install diff --git a/software/thelia/software.cfg b/software/thelia/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..3f23c2c1c594432e9b8fdb4c6214d4ee24c48abf --- /dev/null +++ b/software/thelia/software.cfg @@ -0,0 +1,57 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://thelia.net/fichiers/thelia_1.5.1.zip +md5sum = 7be32154c75e450b39bdb4478658848b +#If provided tarball does not contain top directory, option shall be changed to false +strip-top-level-dir = true + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +#eggs = ${instance-recipe:egg} +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file diff --git a/software/ultimate-php-borad/instance.cfg b/software/ultimate-php-borad/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9495bde7e7cadfe7dcb518156bf58a4f6a9c2a1c --- /dev/null +++ b/software/ultimate-php-borad/instance.cfg @@ -0,0 +1,15 @@ +[buildout] +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} + +parts = instance + +[instance] +recipe = ${instance-recipe:egg}:${instance-recipe:module} +source = ${application:location} + +httpd_binary = ${apache:location}/bin/httpd +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 diff --git a/software/ultimate-php-borad/software.cfg b/software/ultimate-php-borad/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..98ff45f4c19fe00c560a1335b58f2310b40df70d --- /dev/null +++ b/software/ultimate-php-borad/software.cfg @@ -0,0 +1,55 @@ +[buildout] +versions = versions + +parts = + template + apache-php + mariadb + eggs + instance-recipe-egg + downloadcache-workaround + +extends = + ../../stack/lamp.cfg + ../../stack/shacache-client.cfg + +[application] +recipe = hexagonit.recipe.download +url = http://downloads.sourceforge.net/project/textmb/UPB/UPB%202.2.7/upb2.2.7.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftextmb%2Ffiles%2FUPB%2FUPB%25202.2.7%2F&ts=1320403647&use_mirror=freefr +md5sum = b50e2c8d222789beb399d07d3eba2206 +strip-top-level-dir = true + +[instance-recipe] +egg = slapos.cookbook +module = lamp.simple + +[template] +# Default template for the instance. +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +#md5sum = Student shall put md5 of instance.cfg here +output = ${buildout:directory}/template.cfg +mode = 0644 + +[instance-recipe-egg] +recipe = zc.recipe.egg +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +[versions] +# Use SlapOS patched zc.buildout +zc.buildout = 1.5.3-dev-SlapOS-010 + +[downloadcache-workaround] +# workaround irritating problem of hexagonit.recipe.cmmi which automatically +# creates download cache, which in turn switches builout to "semi-offline" mode +recipe = plone.recipe.command +# in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves +# to ${buildout:directory}/downloads but this variable is available late, that's +# why it is hardcoded only for required case +download-cache = ${buildout:directory}/downloads +command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 +update-command = ${:command} +stop-on-error = True \ No newline at end of file