source: trunk/dports/net/jabberd/Portfile @ 122410

Last change on this file since 122410 was 122410, checked in by ryandesign@…, 5 years ago

jabberd: remove dependencies jabberd does not use; libudns is a static library only used at build time

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
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: Portfile 122410 2014-07-22 11:49:59Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    jabberd2 jabberd2 2.2.17 jabberd-
8name            jabberd
9categories      net
10platforms       darwin
11maintainers     nomaintainer
12license         GPL-2+
13
14description     Jabber messaging (XMPP) server
15long_description \
16    The Jabber server (jabberd) is a daemon for Jabber clients to connect and \
17    communicate with using the XMPP protocol.
18
19homepage        http://jabberd2.org/
20distname        ${name}-${version}
21github.tarball_from downloads
22use_xz          yes
23
24checksums       rmd160  4e0d30fdd24ce707ce3c5e3654f51c01de7ee0a2 \
25                sha256  0be815dfa1e450cd7416a9a2046c6f9ad547b11b562b6d0bf33520594e03b647
26
27depends_build   port:libudns
28
29depends_lib     port:openssl \
30                port:expat \
31                port:libgsasl \
32                port:libidn \
33                port:gettext \
34                port:zlib
35
36patchfiles      patch-configure.diff \
37                patch-s2s-out.c.diff \
38                patch-sm-mod_roster.c.diff
39
40# gcc 4.1.1 miscompiles something at -Os. gcc 4.2.2 works. Don't know when it
41# got fixed, therefore use -O2 on all gcc.
42# https://github.com/jabberd2/jabberd2/issues/34
43if {[string match *gcc* ${configure.compiler}]} {
44    configure.optflags -O2
45}
46
47configure.args  --enable-mio=select \
48                --enable-ssl \
49                --disable-mysql \
50                --disable-pgsql \
51                --disable-sqlite \
52                --disable-db \
53                --disable-oracle \
54                --disable-ldap \
55                --disable-pam \
56                --disable-pipe \
57                --disable-anon \
58                --disable-fs
59
60destroot.keepdirs ${destroot}${prefix}/var/jabberd/pid
61
62set conf_files {c2s.xml jabberd.cfg router-filter.xml router-users.xml router.xml s2s.xml sm.xml templates/roster.xml}
63
64post-destroot {
65    foreach f ${conf_files} {
66        file delete ${destroot}${prefix}/etc/$f
67    }
68}
69
70post-activate {
71    foreach f ${conf_files} {
72        if {![file exists ${prefix}/etc/$f]} {
73            copy ${prefix}/etc/$f.dist ${prefix}/etc/$f
74        }
75    }
76}
Note: See TracBrowser for help on using the repository browser.