1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | #PortGroup github 1.0 |
---|
7 | |
---|
8 | ## Note: can't use as there is not a single release |
---|
9 | #github.setup mobz elasticsearch-head |
---|
10 | name elasticsearch-head |
---|
11 | version 20140925 |
---|
12 | categories www sysutils |
---|
13 | platforms darwin |
---|
14 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
15 | license APL-2 |
---|
16 | |
---|
17 | description web front end for an elastic search cluster |
---|
18 | long_description ${description} |
---|
19 | supported_archs noarch |
---|
20 | |
---|
21 | homepage http://mobz.github.io/elasticsearch-head/ |
---|
22 | #fetch.type git |
---|
23 | #git.url https://github.com/mobz/elasticsearch-head.git |
---|
24 | #git.branch f4c1a8d51ae1a5f65801a542084a34994902f9f0 |
---|
25 | |
---|
26 | master_sites https://github.com/mobz/elasticsearch-head/archive/ |
---|
27 | distname d8c5822f84e4cb7f10a14092cb460b971949ddce |
---|
28 | use_zip yes |
---|
29 | checksums rmd160 50dbef3e0decd0124c69d15bb785a810dc5a527a \ |
---|
30 | sha256 2b1b0c0022aa98f4f99e97a3284cf286697d40853be60137d9bac4f741af7f1d |
---|
31 | |
---|
32 | depends_run port:elasticsearch |
---|
33 | |
---|
34 | set webroot ${prefix}/www/${name} |
---|
35 | |
---|
36 | use_configure no |
---|
37 | build {} |
---|
38 | |
---|
39 | destroot { |
---|
40 | copy ${worksrcpath} ${destroot}/${webroot}/ |
---|
41 | xinstall -d ${destroot}${prefix}/share/examples/${name} |
---|
42 | copy ${filespath}/nginx-${name}.conf ${destroot}${prefix}/share/examples/${name}/nginx-${name}.conf |
---|
43 | } |
---|
44 | |
---|
45 | post-activate { |
---|
46 | if ![file exists ${prefix}/etc/nginx/nginx-${name}.conf] { |
---|
47 | copy ${prefix}/share/examples/${name}/nginx-${name}.conf ${prefix}/etc/nginx/nginx-${name}.conf |
---|
48 | } |
---|
49 | } |
---|
50 | |
---|
51 | notes " |
---|
52 | **** To complete ${name} installation **** |
---|
53 | |
---|
54 | 1) Install Webserver (Apache, Nginx, ...) |
---|
55 | 2) Edit ${webroot}/config.js and check your elasticsearch server settings |
---|
56 | 3) Connect to your webserver. If localhost |
---|
57 | http://localhost/${name} |
---|
58 | |
---|
59 | " |
---|
60 | |
---|
61 | if {![variant_isset apache] && ![variant_isset nginx]} { |
---|
62 | default_variants +nginx |
---|
63 | } |
---|
64 | |
---|
65 | variant nginx description { use with nginx and nobody web user } conflicts apache2 { |
---|
66 | depends_run port:nginx |
---|
67 | configure.args-append --with-web-user=nobody |
---|
68 | } |
---|
69 | |
---|
70 | variant apache2 description { use with apache2 and _www web user } conflicts nginx { |
---|
71 | depends_run port:apache2 |
---|
72 | configure.args-append --with-web-user=_www |
---|
73 | } |
---|
74 | |
---|
75 | livecheck.type none |
---|
76 | |
---|