Changeset 110916 for trunk/dports/mail


Ignore:
Timestamp:
Sep 10, 2013, 3:06:12 AM (6 years ago)
Author:
ryandesign@…
Message:

qpopper: whitespace changes and reformatting; add modeline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/qpopper/Portfile

    r94974 r110916  
     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
    12# $Id$
    23
    3 PortSystem 1.0
    4 name                            qpopper
    5 version                         4.0.9
    6 categories                      mail
    7 platforms                       darwin
    8 license                         BSD
    9 maintainers                     nomaintainer
    10 description                     Eudora POP3 mail server
    11 long_description        popper is Eudora's POP3 mail server. It does not include a mail \
    12                                         transfer agent or an SMTP server, it just let you get your mail stored \
    13                                         on the machine via POP3.
    14 homepage                        http://www.eudora.com/products/unsupported/qpopper/
    15 distfiles                       ${name}${version}${extract.suffix}
    16 master_sites            http://www.ring.gr.jp/archives/net/mail/qpopper/ \
    17                                         ftp://ftp.nctu.edu.tw/network/mail/qpopper/ \
    18                                         ftp://ftp.qualcomm.com/eudora/servers/unix/popper/
    19 checksums                       md5 de2cd15f95cfd00d0d080fd16287acad \
    20                                         rmd160 b48a68cd9e282bfb3d78c6b53f3dee7c97bdf77d \
    21                                         sha1 5629aa86d92fe10565021980882dffb733ce73d9
    22 worksrcdir                      ${name}${version}
    23 patchfiles                      patch-Makefile.in patch-popper-Makefile.in
    24 configure.args          --mandir=${prefix}/share/man \
    25                                         --without-pam
    26 destroot.destdir        prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man
     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
    2732
    2833post-patch {
    29         reinplace "s|@@INSTALL.USER@@|${install.user}|g" \
    30                 ${worksrcpath}/Makefile.in
    31         reinplace "s|@@INSTALL.USER@@|${install.user}|g" \
    32                 ${worksrcpath}/popper/Makefile.in
     34    reinplace "s|@@INSTALL.USER@@|${install.user}|g" \
     35        ${worksrcpath}/Makefile.in \
     36        ${worksrcpath}/popper/Makefile.in
    3337}
    3438
     39configure.args      --mandir=${prefix}/share/man \
     40                    --without-pam
     41
     42destroot.destdir    prefix=${destroot}${prefix} \
     43                    mandir=${destroot}${prefix}/share/man
     44
    3545pre-destroot {
    36         xinstall -d ${destroot}${prefix}/etc/xinetd.d
    37         xinstall -o ${install.user} -m 755 -c ${portpath}/files/qpopper-dist \
    38                 ${destroot}${prefix}/etc/xinetd.d/
    39         reinplace "s|@@PREFIX@@|${prefix}|g" \
    40                 ${destroot}${prefix}/etc/xinetd.d/qpopper-dist
     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
    4151}
    4252
    4353# Tell the user that the server needs to be used through (x)inetd
    4454post-install {
    45         ui_msg "\nTo use qpopper, you'll need to add it to inetd.conf/xinetd.d/launchd depending on"
    46         ui_msg "what you use on your system.\n"
    47         ui_msg "For inetd, something like:"
    48         ui_msg "pop3  stream  tcp  nowait  root  /usr/libexec/tcpd  ${prefix}/sbin/popper"
    49         ui_msg "should do it.\n"
    50         ui_msg "For xinetd, you'll find in ${prefix}/etc/xinetd.d/"
    51         ui_msg "a file called qpopper-dist that you should edit and copy to /etc/xinetd.d/\n"
    52         ui_msg "In both cases, don't forget to tell (x)inetd to reload their configuration.\n"
     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"
    5363}
    5464
    5565platform darwin {
    56         configure.args-append   --enable-specialauth
    57         configure.ldflags       "-framework DirectoryService"
    58         patchfiles-append               patch-pop_pass.c
     66    configure.args-append   --enable-specialauth
     67    configure.ldflags   "-framework DirectoryService"
     68    patchfiles-append       patch-pop_pass.c
    5969
    60         pre-destroot {
    61                 xinstall -d ${destroot}${prefix}/Library/LaunchDaemons/
    62                 xinstall -o ${install.user} -m 755 -c ${portpath}/files/org.macports.mail.qpopper.plist-dist \
    63                         ${destroot}${prefix}/Library/LaunchDaemons/
    64                 reinplace "s|@@PREFIX@@|${prefix}|g" \
    65                         ${destroot}${prefix}/Library/LaunchDaemons/org.macports.mail.qpopper.plist-dist
    66         }
    67         post-install {
    68                 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/"
    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    }
    7081}
    7182
    7283variant ssl {
    73         configure.args-append   --with-openssl=${prefix}
    74         depends_lib-append              lib:libssl.0:openssl
    75        
    76         post-install {
    77                 ui_msg "To get TLS/SSL working, you need to setup certificates."
    78                 ui_msg "Cf: http://www.eudora.com/qpopper/faq.html#tls"         
    79         }
     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    }
    8092}
    8193
    8294variant pam {
    83         configure.cppflags      "-I${workpath}/paminclude"
    84         configure.cflags        "-I${workpath}/paminclude"
    85         configure.args-delete   --without-pam
    86         configure.args-append   --with-pam=pop3
    87         post-install {
    88                 ui_msg "Additionally, for PAM, you need to copy /etc/pam.d/sshd to"
    89                 ui_msg " /etc/pam.d/pop3, or use another config with pam_securityserver.so."
    90         }
     95    post-extract {
     96        system "mkdir -p ${workpath}/paminclude"
     97        system "ln -s /usr/include/pam ${workpath}/paminclude/security"
     98    }
    9199
    92         post-extract    {
    93                 system "mkdir -p ${workpath}/paminclude"
    94                 system "ln -s /usr/include/pam ${workpath}/paminclude/security"
    95         }
     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    }
    96109}
    97110
    98 livecheck.type  md5
    99 livecheck.url   http://www.ring.gr.jp/archives/net/mail/qpopper/Changes
    100 livecheck.md5   19d56ff7048a3b8df26c0ce535e12f7b
     111livecheck.type      md5
     112livecheck.url       http://www.ring.gr.jp/archives/net/mail/qpopper/Changes
     113livecheck.md5       19d56ff7048a3b8df26c0ce535e12f7b
Note: See TracChangeset for help on using the changeset viewer.