source: trunk/dports/mail/bincimap/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 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.8 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2PortSystem              1.0
3
4name                    bincimap
5version                 1.2.13final
6revision        2
7categories              mail
8license                 {GPL-2 OpenSSLException}
9maintainers             nomaintainer
10description             modular, secure, stable, and fast IMAP server for Maildir
11long_description        Binc IMAP is a well designed, modular IMAP server \
12                                        for  Maildir. Its goals are to be secure, stable, \
13                                        and fast, yet flexible and easy to maintain.
14homepage                http://www.bincimap.org
15master_sites    ${homepage}/dl/tarballs/1.2/
16checksums               md5 6d64d556eb3b786ad727e250f884a432
17use_bzip2               yes
18platforms               darwin
19
20patchfiles              patch-Makefile.in.diff \
21                                patch-conf.diff \
22                                patch-service.diff
23
24depends_lib             lib:libssl:openssl
25depends_run             bin:checkpassword-pam:checkpassword-pam
26
27configure.args  --sysconfdir=${prefix}/etc/${name} \
28                                --mandir=${prefix}/share/man \
29                                --without-optimization \
30                                --with-ssl
31
32# If you prefer the DJB daemontools setup, use this variant,
33# otherwise, it will assume xinetd will be used.
34variant djb {
35        depends_run-append      bin:supervise:daemontools \
36                                                bin:tcpserver:ucspi-tcp
37}
38
39variant no_ssl {
40        depends_lib-delete              lib:libssl:openssl
41        configure.args-delete   --with-ssl
42        configure.args-append   --without-ssl
43}
44
45post-destroot {
46        set confdir "${destroot}${prefix}/etc/${name}"
47        xinstall -d -m 0755 ${confdir}
48        xinstall -m 0644 -W ${worksrcpath} conf/bincimap.conf ${confdir}/bincimap.conf.sample
49        xinstall -d -m 0755 ${confdir}/pam
50        xinstall -m 0644 ${filespath}/pam-bincimap ${confdir}/pam/bincimap.sample
51        xinstall -d -m 0755 ${confdir}/xinetd
52        xinstall -m 0644 -W ${worksrcpath} conf/xinetd-bincimap ${confdir}/xinetd/imap.sample
53        if {![variant_isset no_ssl]} {
54                xinstall -m 0644 -W ${worksrcpath} conf/xinetd-bincimaps ${confdir}/xinetd/imaps.sample
55        }
56        if {[variant_isset djb]} {
57                xinstall -d -m 0755 ${confdir}/service
58                xinstall -d -m 0755 ${confdir}/service/imap.sample
59                xinstall -m 0644 -W ${worksrcpath} service/run ${confdir}/service/imap.sample
60                xinstall -d -m 0755 ${confdir}/service/imap.sample/log
61                xinstall -m 0644 -W ${worksrcpath} service/log/run ${confdir}/service/imap.sample/log
62                if {![variant_isset no_ssl]} {
63                        xinstall -d -m 0755 ${confdir}/service/imaps.sample
64                        xinstall -m 0644 -W ${worksrcpath} service/run-ssl ${confdir}/service/imaps.sample
65                        xinstall -d -m 0755 ${confdir}/service/imaps.sample/log
66                        xinstall -m 0644 -W ${worksrcpath} service/log/run-ssl ${confdir}/service/imaps.sample/log
67                }
68        }
69        set docdir "${destroot}${prefix}/share/doc/${name}"
70        xinstall -m 0644 ${filespath}/README.MACOSX.in ${docdir}/README.MACOSX
71        reinplace "s|@prefix@|${prefix}|" ${docdir}/README.MACOSX
72        xinstall -m 0644 -W ${worksrcpath} README.SSL ${docdir}
73        xinstall -d -m 0755 ${docdir}/contrib
74        xinstall -m 0644 -W ${worksrcpath} \
75                contrib/README \
76                contrib/authenticators/bincimap-auth-teapop.sh \
77                ${docdir}/contrib
78}
79
80livecheck.type  regex
81livecheck.regex latest stable.*${name}-(\[0-9a-z.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.