Ticket #44823: Portfile

File Portfile, 2.4 KB (added by jul_bsd@…, 10 years ago)
Line 
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
4PortSystem          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
10name                elasticsearch-head
11version             20140925
12categories          www sysutils
13platforms           darwin
14maintainers         yahoo.fr:jul_bsd openmaintainer
15license             APL-2
16
17description         web front end for an elastic search cluster
18long_description    ${description}
19supported_archs     noarch
20
21homepage            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
26master_sites        https://github.com/mobz/elasticsearch-head/archive/
27distname            d8c5822f84e4cb7f10a14092cb460b971949ddce
28use_zip             yes
29checksums           rmd160  50dbef3e0decd0124c69d15bb785a810dc5a527a \
30                    sha256  2b1b0c0022aa98f4f99e97a3284cf286697d40853be60137d9bac4f741af7f1d
31
32depends_run         port:elasticsearch
33
34set webroot          ${prefix}/www/${name}
35
36use_configure        no
37build {}
38
39destroot {
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
45post-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
51notes "
52**** To complete ${name} installation ****
53
541) Install Webserver (Apache, Nginx, ...)
552) Edit ${webroot}/config.js and check your elasticsearch server settings
563) Connect to your webserver. If localhost
57   http://localhost/${name}
58
59"
60
61if {![variant_isset apache] && ![variant_isset nginx]} {
62    default_variants    +nginx
63}
64
65variant 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
70variant 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
75livecheck.type     none
76