source: trunk/dports/mail/qpopper/Portfile @ 110916

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

qpopper: whitespace changes and reformatting; add modeline

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 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 110916 2013-09-10 03:06:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                qpopper
7version             4.0.9
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/
20distfiles           ${name}${version}${extract.suffix}
21master_sites        http://www.ring.gr.jp/archives/net/mail/qpopper/ \
22                    ftp://ftp.nctu.edu.tw/network/mail/qpopper/ \
23                    ftp://ftp.qualcomm.com/eudora/servers/unix/popper/
24
25checksums           md5     de2cd15f95cfd00d0d080fd16287acad \
26                    sha1    5629aa86d92fe10565021980882dffb733ce73d9 \
27                    rmd160  b48a68cd9e282bfb3d78c6b53f3dee7c97bdf77d
28
29worksrcdir          ${name}${version}
30
31patchfiles          patch-Makefile.in patch-popper-Makefile.in
32
33post-patch {
34    reinplace "s|@@INSTALL.USER@@|${install.user}|g" \
35        ${worksrcpath}/Makefile.in \
36        ${worksrcpath}/popper/Makefile.in
37}
38
39configure.args      --mandir=${prefix}/share/man \
40                    --without-pam
41
42destroot.destdir    prefix=${destroot}${prefix} \
43                    mandir=${destroot}${prefix}/share/man
44
45pre-destroot {
46    xinstall -d ${destroot}${prefix}/etc/xinetd.d
47    xinstall -o ${install.user} -m 755 -c ${portpath}/files/qpopper-dist \
48        ${destroot}${prefix}/etc/xinetd.d/
49    reinplace "s|@@PREFIX@@|${prefix}|g" \
50        ${destroot}${prefix}/etc/xinetd.d/qpopper-dist
51}
52
53# Tell the user that the server needs to be used through (x)inetd
54post-install {
55    ui_msg "\nTo use qpopper, you'll need to add it to inetd.conf/xinetd.d/launchd depending on"
56    ui_msg "what you use on your system.\n"
57    ui_msg "For inetd, something like:"
58    ui_msg "pop3  stream  tcp  nowait  root  /usr/libexec/tcpd  ${prefix}/sbin/popper"
59    ui_msg "should do it.\n"
60    ui_msg "For xinetd, you'll find in ${prefix}/etc/xinetd.d/"
61    ui_msg "a file called qpopper-dist that you should edit and copy to /etc/xinetd.d/\n"
62    ui_msg "In both cases, don't forget to tell (x)inetd to reload their configuration.\n"
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    post-install {
79        ui_msg "For launchd, you'll find in ${prefix}/Library/LaunchDaemons/ a file called org.macports.mail.qpopper.plist-dist that you should edit and copy to /Library/LaunchDaemons/"
80    }
81}
82
83variant ssl {
84    depends_lib-append      lib:libssl.0:openssl
85
86    configure.args-append   --with-openssl=${prefix}
87
88    post-install {
89        ui_msg "To get TLS/SSL working, you need to setup certificates."
90        ui_msg "Cf: http://www.eudora.com/qpopper/faq.html#tls"
91    }
92}
93
94variant pam {
95    post-extract {
96        system "mkdir -p ${workpath}/paminclude"
97        system "ln -s /usr/include/pam ${workpath}/paminclude/security"
98    }
99
100    configure.cppflags      -I${workpath}/paminclude
101    configure.cflags        -I${workpath}/paminclude
102    configure.args-delete   --without-pam
103    configure.args-append   --with-pam=pop3
104
105    post-install {
106        ui_msg "Additionally, for PAM, you need to copy /etc/pam.d/sshd to"
107        ui_msg " /etc/pam.d/pop3, or use another config with pam_securityserver.so."
108    }
109}
110
111livecheck.type      md5
112livecheck.url       http://www.ring.gr.jp/archives/net/mail/qpopper/Changes
113livecheck.md5       19d56ff7048a3b8df26c0ce535e12f7b
Note: See TracBrowser for help on using the repository browser.