Bug 204902

Summary: [patch] textproc/elasticsearch2 update to 2.1.0
Product: Ports & Packages Reporter: Olli Hauer <ohauer>
Component: Individual Port(s)Assignee: Tom Judge <tj>
Status: Closed FIXED    
Severity: Affects Only Me CC: borjam, daniel, rsimmons0
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (tj)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
update to 2.1.0
none
update to 2.1.0 none

Description Olli Hauer freebsd_committer freebsd_triage 2015-11-29 20:52:02 UTC
Created attachment 163666 [details]
update to 2.1.0

- update to 2.1.0
- use GIT_HUB
- simplify Makefile
  use ${VAR:S|^|...} instead .for loop
  use COPYTREE_SHARE instead listing all jar's
  replace "${SED} -i .bak" with ${REINPLACE_CMD}
- mute MKDIR
- move softlink creation back to post-install (from do-install-DOCS)
  create softlink without `cd' before into target dir
- create var/{log,db}/elesticsearch dirs with owner and mode
- sort pkg-plist
- use postunexec in pkg-plist (see ports/CHANGES:20150926)
Comment 1 Borja Marcos 2015-11-30 11:28:43 UTC
Doesn't build for me after applying the patch.

Am I missing anything?

# make
===>  License APACHE20 accepted by the user
===>  Found saved configuration for elasticsearch2-2.0.0
===>   elasticsearch2-2.1.0 depends on file: /usr/local/sbin/pkg - found
=> elastic-elasticsearch-2.1.0-72cd1f1_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/elastic/elasticsearch/tar.gz/72cd1f1?dummy=/elastic-elasticsearch-2.1.0-72cd1f1_GH0.tar.gz
elastic-elasticsearch-2.1.0-72cd1f1_GH0.tar.gz100% of   16 MB 2383 kBps 00m07s
===> Fetching all distfiles required by elasticsearch2-2.1.0 for building
===>  Extracting for elasticsearch2-2.1.0
=> SHA256 Checksum OK for elastic-elasticsearch-2.1.0-72cd1f1_GH0.tar.gz.
===>  Patching for elasticsearch2-2.1.0
===>  Applying FreeBSD patches for elasticsearch2-2.1.0
File to patch:
Comment 2 Olli Hauer freebsd_committer freebsd_triage 2015-12-01 20:27:24 UTC
Created attachment 163726 [details]
update to 2.1.0

Sorry, I've attached the wrong diff ...
I shaped a new patch that will apply clean.
Comment 3 Borja Marcos 2015-12-14 15:01:08 UTC
Confirmed, it worked now.

Thanks!(In reply to Olli Hauer from comment #2)
Comment 4 rsimmons0 2015-12-14 22:32:23 UTC
One tiny edit:

diff -ru elasticsearch2.orig/pkg-descr elasticsearch2/pkg-descr
--- elasticsearch2.orig/pkg-descr	2012-12-08 20:48:41.000000000 +0000
+++ elasticsearch2/pkg-descr	2015-12-12 04:38:10.892251764 +0000
@@ -1,4 +1,4 @@
 Elasticsearch aims to be a Distributed, RESTful, Search Engine built on top of
 Apache Lucene.
 
-WWW: http://www.elasticsearch.org/
+WWW: https://www.elastic.co/
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-12-15 17:07:13 UTC
A commit references this bug:

Author: tj
Date: Tue Dec 15 17:06:12 UTC 2015
New revision: 403794
URL: https://svnweb.freebsd.org/changeset/ports/403794

Log:
  Update to 2.1.

  Changes: https://www.elastic.co/guide/en/elasticsearch/reference/2.1/release-notes-2.1.0.html

  - Fix path to allow service to start at boot
  - Misc cleanup from ohauer

  PR:		195861, 204821, 204902, 204910

Changes:
  head/textproc/elasticsearch2/Makefile
  head/textproc/elasticsearch2/distinfo
  head/textproc/elasticsearch2/files/patch-bin-elasticsearch.in.sh
  head/textproc/elasticsearch2/pkg-descr
  head/textproc/elasticsearch2/pkg-plist