source: trunk/dports/net/ejabberd/Portfile @ 120114

Last change on this file since 120114 was 120114, checked in by ciserlohn@…, 6 years ago

ejabberd: add missing build dependency on git-core

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