source: trunk/dports/mail/qpopper/Portfile

Last change on this file was 111353, checked in by ryandesign@…, 4 years ago

remove use of [suffix] proc in nomaintainer ports because it is thought to be confusing

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 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 111353 2013-09-19 07:21:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                qpopper
7version             4.1.0
8categories          mail
9platforms           darwin
10maintainers         nomaintainer
11license             BSD
12
13description         Eudora POP3 mail server
14
15long_description    popper is Eudora's POP3 mail server. It does not include a mail \
16                    transfer agent or an SMTP server, it just let you get your mail stored \
17                    on the machine via POP3.
18
19homepage            http://www.eudora.com/products/unsupported/qpopper/
20master_sites        http://www.ring.gr.jp/archives/net/mail/qpopper/ \
21                    ftp://ftp.nctu.edu.tw/network/mail/qpopper/ \
22                    ftp://ftp.qualcomm.com/eudora/servers/unix/popper/
23
24distname            ${name}${version}
25
26checksums           rmd160  5254dd252739b2465795a0161bc2fed82adffbcc \
27                    sha256  1bc21f83cda47e9b2d5d8ceecc49f169e10fdb9b99ddddcd543218fad269b0de
28
29patchfiles          patch-Makefile.in patch-popper-Makefile.in
30
31post-patch {
32    reinplace "s|@@INSTALL.USER@@|${install.user}|g" \
33        ${worksrcpath}/Makefile.in \
34        ${worksrcpath}/popper/Makefile.in
35}
36
37configure.args      --mandir=${prefix}/share/man \
38                    --without-pam
39
40destroot.destdir    prefix=${destroot}${prefix} \
41                    mandir=${destroot}${prefix}/share/man
42
43pre-destroot {
44    xinstall -d ${destroot}${prefix}/etc/xinetd.d
45    xinstall -o ${install.user} -m 755 -c ${portpath}/files/qpopper-dist \
46        ${destroot}${prefix}/etc/xinetd.d/
47    reinplace "s|@@PREFIX@@|${prefix}|g" \
48        ${destroot}${prefix}/etc/xinetd.d/qpopper-dist
49}
50
51notes "
52To use qpopper, you'll need to add it to inetd.conf/xinetd.d/launchd depending on\
53what you use on your system.
54
55For inetd, something like:
56pop3  stream  tcp  nowait  root  /usr/libexec/tcpd  ${prefix}/sbin/popper
57should do it.
58
59For xinetd, you'll find in ${prefix}/etc/xinetd.d/\
60a file called qpopper-dist that you should edit and copy to /etc/xinetd.d/
61
62In both cases, don't forget to tell (x)inetd to reload their configuration.
63"
64
65platform darwin {
66    configure.args-append   --enable-specialauth
67    configure.ldflags   "-framework DirectoryService"
68    patchfiles-append       patch-pop_pass.c
69
70    pre-destroot {
71        xinstall -d ${destroot}${prefix}/Library/LaunchDaemons/
72        xinstall -o ${install.user} -m 755 -c ${portpath}/files/org.macports.mail.qpopper.plist-dist \
73            ${destroot}${prefix}/Library/LaunchDaemons/
74        reinplace "s|@@PREFIX@@|${prefix}|g" \
75            ${destroot}${prefix}/Library/LaunchDaemons/org.macports.mail.qpopper.plist-dist
76    }
77
78    notes-append "
79    For launchd, you'll find in ${prefix}/Library/LaunchDaemons/\
80    a file called org.macports.mail.qpopper.plist-dist that you should edit and copy to /Library/LaunchDaemons/
81    "
82}
83
84variant ssl {
85    depends_lib-append      lib:libssl.0:openssl
86
87    configure.args-append   --with-openssl=${prefix}
88
89    notes-append "
90    To get TLS/SSL working, you need to set up certificates.\
91    Cf: http://www.eudora.com/qpopper/faq.html#tls
92    "
93}
94
95variant pam {
96    post-extract {
97        system "mkdir -p ${workpath}/paminclude"
98        system "ln -s /usr/include/pam ${workpath}/paminclude/security"
99    }
100
101    configure.cppflags      -I${workpath}/paminclude
102    configure.cflags        -I${workpath}/paminclude
103    configure.args-delete   --without-pam
104    configure.args-append   --with-pam=pop3
105
106    notes-append "
107    Additionally, for PAM, you need to copy /etc/pam.d/sshd to\
108    /etc/pam.d/pop3, or use another config with pam_securityserver.so.
109    "
110}
111
112livecheck.type      regex
113livecheck.url       [lindex ${master_sites} 0]
114livecheck.regex     ${name}(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.