Commit a66bc020fb074ae554c6461a771464c9fd2b22eb
1 parent
36d467cc
Exists in
master
and in
90 other branches
Ajustes no ambiente de configuração.
- Ainda não finalizado.
Showing
5 changed files
with
100 additions
and
9 deletions
Show diff stats
.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 | [colab] | 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 | [doc/colabdocumentation] | 7 | [doc/colabdocumentation] |
8 | checkout = git clone https://gitlab.com/softwarepublico/colabdocumentation.git | 8 | checkout = git clone https://gitlab.com/softwarepublico/colabdocumentation.git |
9 | 9 | ||
10 | [redmine] | 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 | PROJECT = softwarepublico | 1 | PROJECT = softwarepublico |
2 | VERSION = 2014.07 | 2 | VERSION = 2014.07 |
3 | -COMPONENTS = colab | 3 | +COMPONENTS = solr |
4 | +ARCH = $(shell uname -i) | ||
4 | 5 | ||
5 | TARBALL_FORMAT = tar.gz | 6 | TARBALL_FORMAT = tar.gz |
6 | TARBALLS = $(patsubst %,build/$(PROJECT)-%-$(VERSION).$(TARBALL_FORMAT),$(COMPONENTS)) | 7 | TARBALLS = $(patsubst %,build/$(PROJECT)-%-$(VERSION).$(TARBALL_FORMAT),$(COMPONENTS)) |
7 | RPMS = $(patsubst %.$(TARBALL_FORMAT),%-1.$(ARCH).rpm, $(TARBALLS)) | 8 | RPMS = $(patsubst %.$(TARBALL_FORMAT),%-1.$(ARCH).rpm, $(TARBALLS)) |
8 | GENERATED += $(TARBALLS) $(RPMS) | 9 | GENERATED += $(TARBALLS) $(RPMS) |
9 | 10 | ||
10 | -ARCH = $(shell uname -m) | ||
11 | 11 | ||
12 | ifeq ("$(V)", "1") | 12 | ifeq ("$(V)", "1") |
13 | Q := | 13 | Q := |
@@ -38,7 +38,7 @@ $(RPMS): build/$(PROJECT)-%-$(VERSION)-1.$(ARCH).rpm: rpm/%.spec | @@ -38,7 +38,7 @@ $(RPMS): build/$(PROJECT)-%-$(VERSION)-1.$(ARCH).rpm: rpm/%.spec | ||
38 | $(Q)component=$$(basename $< .spec) && \ | 38 | $(Q)component=$$(basename $< .spec) && \ |
39 | ln -f build/$(PROJECT)-$$component-$(VERSION).$(TARBALL_FORMAT) ~/rpmbuild/SOURCES/ && \ | 39 | ln -f build/$(PROJECT)-$$component-$(VERSION).$(TARBALL_FORMAT) ~/rpmbuild/SOURCES/ && \ |
40 | rpmbuild -bb $(RPMBUILD_FLAGS) $< && \ | 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 | %.spec: %.spec.in | 43 | %.spec: %.spec.in |
44 | $(qecho) "SPEC\t$@" | 44 | $(qecho) "SPEC\t$@" |
rpm/colab.spec.in
@@ -0,0 +1,53 @@ | @@ -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 | + |
@@ -0,0 +1,39 @@ | @@ -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 | + |