Ticket #14022: Portfile-vpopmail.diff

File Portfile-vpopmail.diff, 4.0 KB (added by compconsultant@…, 17 years ago)
  • Portfile

    old new  
    11# $Id$
    22
    33PortSystem      1.0
     4
    45name                            vpopmail
    56version                         5.4.25
    67categories                      mail
    78maintainers                     yahoo.com:compconsultant
    89platforms                       darwin
    910
    10 description                     Manage multiple virtual domains with Qmail 
     11description                     Manage multiple virtual domains with Qmail
    1112
    1213long_description                Vpopmail is a set of programs for creating and managing multiple virtual domains on a qmail server, with full support for many POP/IMAP servers.
    1314
     
    7374                                sha1 ce62415fbd338b80f1962a477d94276f622756d0 \
    7475                                rmd160 57142cca0617bd95ef2e5f4aa74ab5fa0844d6df
    7576
    76 patchfiles                      patch-configure
     77patchfiles                      patch-configure.diff
    7778
    7879configure.args                  --enable-qmaildir=${prefix}/var/qmail \
    7980                                --enable-tcprules-prog=${prefix}/bin/tcprules \
    80                                 --enable-qmail-ext
    81 
    82 configure.cflags        -O2
     81                                --enable-qmail-ext \
     82                                --prefix=/opt/local \
     83                                --exec-prefix=/opt/local
    8384
    84 build.target           
     85build.target
    8586
    8687destroot.target         install-strip
    8788destroot.keepdirs       ${destroot}${prefix}/var/vpopmail/domains
     
    9596
    9697post-destroot {
    9798        if {[variant_isset roaming]} {
    98                 system "echo \"127.:allow,RELAYCLIENT=''\" > ${destroot}${prefix}/var/vpopmail/etc/tcp.smtp"
    99                 system "echo \"localhost|0|user|password|database\" >${destroot}${prefix}/var/vpopmail/etc/tcp.smtp"
    100                 system "chown vpopmail:vchkpw ${destroot}${prefix}/var/vpopmail/etc/tcp.smtp"
    101                 file copy ${worksrcpath}/README.roamingusers ${destroot}${prefix}/var/vpopmail/doc
     99                system "echo \"127.:allow,RELAYCLIENT=''\" > ${destroot}${prefix}/var/vpopmail/etc/tcp.smtp.sample"
     100                system "echo \"localhost|0|user|password|database\" >${destroot}${prefix}/var/vpopmail/etc/tcp.smtp.sample"
     101                system "chown vpopmail:vchkpw ${destroot}${prefix}/var/vpopmail/etc/tcp.smtp.sample"
     102                xinstall -m 644 -W ${worksrcpath} README.roamingusers ${destroot}${prefix}/var/vpopmail/doc
    102103        }
    103104        if {[variant_isset mysql5]} {
    104                 system "echo \"localhost|0|user|password|database\" >${destroot}${prefix}/var/vpopmail/etc/vpopmail.mysql"
    105                 system "chown vpopmail:vchkpw ${destroot}${prefix}/var/vpopmail/etc/vpopmail.mysql"
    106                 file copy ${worksrcpath}/README.mysql ${destroot}${prefix}/var/vpopmail/doc
     105                system "echo \"localhost|0|user|password|database\" >${destroot}${prefix}/var/vpopmail/etc/vpopmail.mysql.sample"
     106                system "chown vpopmail:vchkpw ${destroot}${prefix}/var/vpopmail/etc/vpopmail.mysql.sample"
     107                system "chmod 640 ${destroot}${prefix}/var/vpopmail/etc/vpopmail.mysql.sample"
     108                xinstall -m 644 -W ${worksrcpath} README.mysql ${destroot}${prefix}/var/vpopmail/doc
    107109        }
    108110        if {[variant_isset maildrop]} {
    109                 file copy ${worksrcpath}/README.maildrop ${destroot}${prefix}/var/vpopmail/doc
     111                xinstall -m 644 -W ${worksrcpath} README.maildrop ${destroot}${prefix}/var/vpopmail/doc
    110112        }
    111113        if {[variant_isset onchange]} {
    112                 file copy ${worksrcpath}/README.onchange ${destroot}${prefix}/var/vpopmail/doc
     114                xinstall -m 644 -W ${worksrcpath} README.onchange ${destroot}${prefix}/var/vpopmail/doc
    113115        }
    114116        if {[variant_isset spamassassin]} {
    115                 file copy ${worksrcpath}/README.spamassassin ${destroot}${prefix}/var/vpopmail/doc
     117                xinstall -m 644 -W ${worksrcpath} README.spamassassin ${destroot}${prefix}/var/vpopmail/doc
    116118        }
    117119}
    118120
     
    120122        if {[variant_isset roaming]} {
    121123                ui_msg "
    122124Because you used the roaming variant, you must set up the tcpserver file
    123 ${prefix}/var/vpopmail/etc/tcp.smtp, a sample has been placed there.
     125${prefix}/var/vpopmail/etc/tcp.smtp, please copy the sample file from
     126${prefix}/var/vpopmail/etc/tcp.smtp.sample
    124127"
    125128        }
    126129        if {[variant_isset onchange]} {
     
    133136                ui_msg "
    134137Because you used the MySQL5 variant, you must set up a file called
    135138${prefix}/var/vpopmail/etc/vpopmail.mysql so that it points to your database.
     139A sample has been created for you at ${prefix}/var/vpopmail/etc/vpopmail.mysql.sample
    136140"
    137         }       
     141        }
    138142        ui_msg "Please review the doc in ${prefix}/var/vpopmail/doc\n"
    139143}