1 | # $Id: Portfile 69520 2010-07-08 20:19:52Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ejabberd |
---|
6 | version 2.1.5 |
---|
7 | revision 1 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | description ejabberd is an XMPP application server. |
---|
12 | long_description ${description} ejabberd stands for "Erlang Jabber Daemon" |
---|
13 | |
---|
14 | homepage http://www.process-one.net/en/ejabberd/ |
---|
15 | master_sites http://www.process-one.net/downloads/ejabberd/${version}/ |
---|
16 | |
---|
17 | checksums md5 2029ceca45584d704ca821a771d6d928 \ |
---|
18 | sha1 8966d6752219c9386f48a5b8e1f2f8fb0e7477ae \ |
---|
19 | rmd160 7abd6bc4a03f68d03e13ee8c1ff3a5fee6098dc6 |
---|
20 | |
---|
21 | worksrcdir ${worksrcdir}/src |
---|
22 | |
---|
23 | depends_lib port:erlang \ |
---|
24 | port:expat \ |
---|
25 | port:openssl \ |
---|
26 | port:libiconv \ |
---|
27 | port:zlib |
---|
28 | |
---|
29 | # erlang is not universal |
---|
30 | universal_variant no |
---|
31 | |
---|
32 | configure.args --with-expat=${prefix} \ |
---|
33 | --with-zlib=${prefix} \ |
---|
34 | --with-openssl=${prefix} |
---|
35 | |
---|
36 | # All ejabberd configuration files. |
---|
37 | set conf_files {ejabberd.cfg ejabberdctl.cfg inetrc} |
---|
38 | |
---|
39 | destroot.keepdirs ${destroot}${prefix}/var/log/ejabberd/ |
---|
40 | |
---|
41 | post-destroot { |
---|
42 | # Create sample configuration files so they don't get overwritten by an |
---|
43 | # update. |
---|
44 | set etc ${destroot}${prefix}/etc/ejabberd |
---|
45 | foreach file ${conf_files} { |
---|
46 | file rename ${etc}/${file} ${etc}/${file}.sample |
---|
47 | } |
---|
48 | |
---|
49 | # Install documentation. |
---|
50 | set doc ${destroot}${prefix}/share/doc |
---|
51 | xinstall -d ${doc} |
---|
52 | file copy ${worksrcpath}/../doc ${doc}/${name}-${version} |
---|
53 | } |
---|
54 | |
---|
55 | post-install { |
---|
56 | ui_msg "****************************************************************" |
---|
57 | ui_msg "* *" |
---|
58 | ui_msg "* If you run ejabberd for the first time, then you must rename *" |
---|
59 | ui_msg "* the following configuration files by removing the .sample *" |
---|
60 | ui_msg "* extension: *" |
---|
61 | ui_msg "* *" |
---|
62 | ui_msg "* cd ${prefix}/etc/ejabberd/ *" |
---|
63 | foreach file ${conf_files} { |
---|
64 | ui_msg "* mv ${file}.sample ${file}" |
---|
65 | } |
---|
66 | ui_msg "* *" |
---|
67 | ui_msg "****************************************************************" |
---|
68 | } |
---|
69 | |
---|
70 | livecheck.type regex |
---|
71 | livecheck.url ${homepage}release_notes |
---|
72 | livecheck.regex "${name} (\\d+(?:\\.\\d+)*)" |
---|
73 | |
---|
74 | patchfiles ejabberd-md2.patch |
---|