source: trunk/dports/net/ejabberd/Portfile

Last change on this file was 149679, checked in by ciserlohn@…, 15 months ago

ejabberd: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 149679 2016-06-29 06:37:42Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                ejabberd
6version             15.03
7revision            1
8categories          net
9platforms           darwin
10license             GPL-2
11maintainers         ciserlohn
12description         ejabberd is an XMPP application server.
13long_description    ${description} ejabberd stands for "Erlang Jabber Daemon"
14
15homepage            http://www.process-one.net/en/ejabberd/
16master_sites        http://www.process-one.net/downloads/ejabberd/${version}/
17
18checksums           rmd160  22dde290f1d9fb2a41b2eb02f89eb9a1ea0a895c \
19                    sha256  b685cd615ecd9a4f42701541e84c2a28ae534bc608d292b78145d9c59ea17233
20
21extract.suffix      .tgz
22
23build.env-append    CC=${configure.cc} \
24                    CXX=${configure.cxx} \
25                    CPP=${configure.cpp} \
26                    CFLAGS=${configure.cflags} \
27                    CXXFLAGS=${configure.cxxflags} \
28                    LDFLAGS=${configure.ldflags} \
29
30depends_build       port:git
31
32depends_lib         port:erlang \
33                    port:expat \
34                    port:libyaml \
35                    path:lib/libssl.dylib:openssl \
36                    port:libiconv \
37                    port:zlib
38
39# erlang is not universal
40universal_variant   no
41
42configure.args      --with-expat=${prefix} \
43                    --with-zlib=${prefix} \
44                    --with-openssl=${prefix}
45
46# All ejabberd configuration files.
47set conf_files      {ejabberd.yml ejabberdctl.cfg inetrc}
48
49destroot.keepdirs   ${destroot}${prefix}/var/log/ejabberd/
50
51set etc ${prefix}/etc/ejabberd
52post-destroot {
53    # Create sample configuration files so they don't get overwritten by an
54    # update.
55    foreach file ${conf_files} {
56        file rename ${destroot}${etc}/${file} ${destroot}${etc}/${file}.sample
57    }
58
59}
60
61notes "
62Before running ${name} for the first time, you must copy the sample\
63configuration files:
64
65cd ${etc}/
66"
67foreach file ${conf_files} {
68    notes-append "cp ${file}.sample ${file}"
69}
70
71livecheck.type      regex
72livecheck.url       ${homepage}release_notes
73livecheck.regex     "${name}.* (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.