source: trunk/dports/net/jabberd/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

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