Commit a66bc020fb074ae554c6461a771464c9fd2b22eb

Authored by Edson Alves
1 parent 36d467cc
Exists in master and in 90 other branches 3.x, add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup, backup_not_prod, cdtc_configuration, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev-lappis, dev_env_minimal, disable_email_dev, docs, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, performance, prezento, r3, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_backup_emails, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, stable-devel, support_docs, syslog, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Ajustes no ambiente de configuração.

- Ainda não finalizado.
.mrconfig
1   -[.]
  1 +[solr]
  2 +checkout = utils/downloadsource.sh http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz solr http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz.md5
2 3  
3 4 [colab]
4   -checkout = git clone https://github.com/colab-community/colab.git
5   - --branch dev_gitlab
  5 +checkout = git clone https://github.com/colab-community/colab.git --branch stable_spb
6 6  
7 7 [doc/colabdocumentation]
8 8 checkout = git clone https://gitlab.com/softwarepublico/colabdocumentation.git
9 9  
10 10 [redmine]
11   -checkout = git clone https://github.com/redmine/redmine.git
12   - --branch 2.5-stable
  11 +checkout = git clone https://github.com/redmine/redmine.git --branch 2.5-stable
... ...
Makefile
1 1 PROJECT = softwarepublico
2 2 VERSION = 2014.07
3   -COMPONENTS = colab
  3 +COMPONENTS = solr
  4 +ARCH = $(shell uname -i)
4 5  
5 6 TARBALL_FORMAT = tar.gz
6 7 TARBALLS = $(patsubst %,build/$(PROJECT)-%-$(VERSION).$(TARBALL_FORMAT),$(COMPONENTS))
7 8 RPMS = $(patsubst %.$(TARBALL_FORMAT),%-1.$(ARCH).rpm, $(TARBALLS))
8 9 GENERATED += $(TARBALLS) $(RPMS)
9 10  
10   -ARCH = $(shell uname -m)
11 11  
12 12 ifeq ("$(V)", "1")
13 13 Q :=
... ... @@ -38,7 +38,7 @@ $(RPMS): build/$(PROJECT)-%-$(VERSION)-1.$(ARCH).rpm: rpm/%.spec
38 38 $(Q)component=$$(basename $< .spec) && \
39 39 ln -f build/$(PROJECT)-$$component-$(VERSION).$(TARBALL_FORMAT) ~/rpmbuild/SOURCES/ && \
40 40 rpmbuild -bb $(RPMBUILD_FLAGS) $< && \
41   - ln -f ~/rpmbuild/RPMS/$(ARCH)/$(PROJECT)-$$component-$(VERSION)-1.$(ARCH).rpm $@
  41 + ln -f ~/rpmbuild/RPMS/$(ARCH)/$(PROJECT)-$$component-$(VERSION)-1.el6.$(ARCH).rpm $@
42 42  
43 43 %.spec: %.spec.in
44 44 $(qecho) "SPEC\t$@"
... ...
rpm/colab.spec.in
... ... @@ -9,7 +9,7 @@ Source: %{name}-%{version}.tar.gz
9 9 %description
10 10  
11 11 %prep
12   -%autosetup
  12 +%setup
13 13  
14 14 %build
15 15 # nothing really
... ...
rpm/solr.spec.in 0 → 100644
... ... @@ -0,0 +1,53 @@
  1 +#
  2 +# Spec file do solr
  3 +#
  4 +
  5 +# Preamble
  6 +
  7 +Summary: Solr is the search platform from Apache Lucene project.
  8 +Name: sofwarepublico-solr
  9 +Version: @@version@@
  10 +Release: 1%{?dist}
  11 +
  12 +License: Apache License, Version 2.0
  13 +Group: Applications/Internet
  14 +Source: %{name}-%{version}.tar.gz
  15 +#Source: http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz
  16 +URL: http://lucene.apache.org/solr/
  17 +Vendor: The Apache Software Foundation
  18 +
  19 +%description
  20 +SolrTM is the popular, blazing fast open source enterprise search platform from the Apache LuceneTM project. Its major features include powerful full-text search, hit highlighting, faceted search, near real-time indexing, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world's largest internet sites.
  21 +
  22 +# Esta seção prepara o ambiente para a construção do pacote. Pode ser
  23 +# entendida como um shell script, e é o local onde podem ser aplicados
  24 +# os patches
  25 +%prep
  26 +
  27 +# A macro %setup prepara o ambiente, de forma semelhante aos comandos abaixo:
  28 +# rm -rf $RPM_BUILD_DIR/cdp-0.33
  29 +# zcat $RPM_SOURCE_DIR/cdp-0.33.tar.gz | tar vxf -
  30 +%setup
  31 +
  32 +# Esta é a seção responsável pela construção do software. Também é um
  33 +# shell script, e não tem macros associadas
  34 +%build
  35 +make
  36 +
  37 +# Seção responsável pela instalação do software. Também é um shell script
  38 +%install
  39 +make install
  40 +
  41 +# Esta seção lista todos os arquivos que fazem parte do pacote: se um
  42 +# arquivo não for listado abaixo, não será inserido no pacote. A diretiva
  43 +# %doc indica um arquivo de documentação
  44 +%files
  45 +%doc README
  46 +/usr/local/bin/cdp
  47 +/usr/local/bin/cdplay
  48 +/usr/local/man/man1/cdp.1
  49 +
  50 +# Esta seção remove os arquivos que foram criados durante o build
  51 +%clean
  52 +rm -rf %{buildroot}
  53 +
... ...
utils/downloadsource.sh 0 → 100755
... ... @@ -0,0 +1,39 @@
  1 +# !/bin/bash
  2 +if [ $# -lt 3 ];
  3 +then
  4 + echo "Usage: $0 {link} {destdir} {md5sum}"
  5 + exit -1
  6 +fi
  7 +
  8 +link=$1
  9 +dest=$2
  10 +checksum=$3
  11 +packdir=packages
  12 +
  13 +fname=`basename $link`
  14 +cname=`basename $checksum`
  15 +
  16 +if [ ! -f $packdir/$fname ];
  17 +then
  18 + wget $link -O $dest/$fname
  19 +fi
  20 +
  21 +if [ ! -f $packdir/$cname ];
  22 +then
  23 + wget $checksum -O $packdir/$cname
  24 +fi
  25 +
  26 +
  27 +cd $packdir
  28 +
  29 +if ! md5sum -c $cname;
  30 +then
  31 + echo "$fname is corrupted!"
  32 + exit -2
  33 +fi
  34 +
  35 +cd ..
  36 +
  37 +mkdir -p $dest
  38 +tar vxzf $packdir/$fname -C $dest --strip-components=1
  39 +
... ...