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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
2
3PortSystem          1.0
4
5name                ejabberd
6version             15.03
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  22dde290f1d9fb2a41b2eb02f89eb9a1ea0a895c \
18                    sha256  b685cd615ecd9a4f42701541e84c2a28ae534bc608d292b78145d9c59ea17233
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
30
31depends_lib         port:erlang \
32                    port:expat \
33                    port:libyaml \
34                    path:lib/libssl.dylib: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.