Changeset 14471 for trunk/dports


Ignore:
Timestamp:
Oct 8, 2005, 5:24:53 AM (14 years ago)
Author:
markd
Message:

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
Changed spool and lock file locations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/vm-pop3d/Portfile

    r14227 r14471  
    1 # $Id: Portfile,v 1.1 2005/09/23 01:44:39 markd Exp $
     1# $Id: Portfile,v 1.2 2005/10/08 05:24:53 markd Exp $
    22
    33PortSystem      1.0
     
    2525destroot.destdir                prefix=${destroot}${prefix}
    2626
    27 depends_lib                     port:DarwinPortsStartup \
    28                                 port:postfix
     27depends_lib                     port:postfix \
     28                                port:DarwinPortsStartup
    2929
    3030configure.args                  --enable-virtual
     
    3636
    3737# Set vm-pop3d.h virtual directory domain spool path
    38         reinplace "s|/var/spool/virtual|${prefix}/var/spool/${name}|g" \
     38        reinplace "s|/var/spool/virtual|${prefix}/var/${name}/spool|g" \
    3939                "${worksrcpath}/vm-pop3d.h"
    4040
     
    4646post-destroot {
    4747# Create spool and passwd file paths for the virtual domains
    48         xinstall -m 755 -d ${destroot}${prefix}/var/spool/${name}
     48        xinstall -m 755 -d ${destroot}${prefix}/var/${name}/spool
    4949        xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
    50         system "chown postfix:postfix ${destroot}${prefix}/var/spool/${name}"
     50        system "chown postfix:postfix ${destroot}${prefix}/var/${name}/spool"
     51
     52# Create lock file path
     53        xinstall -m 755 -d ${destroot}${prefix}/var/${name}/lock
    5154
    5255# Keep the empty virtual spool and passwd file paths
    5356destroot.keepdirs \
    54         ${destroot}${prefix}/var/spool/${name} \
    55         ${destroot}${prefix}/etc/${name}
     57        ${destroot}${prefix}/var/${name}/spool \
     58        ${destroot}${prefix}/var/${name}/lock \
     59        ${destroot}${prefix}/etc/${name}
    5660
    5761# Install documentation type stuff
     
    6569        xinstall -m 644 ${worksrcpath}/TODO ${destroot}${prefix}/share/doc/${name}
    6670
    67 # Fix and install the init script
     71# Fix and copy the init script
    6872        reinplace "s|daemon vm-pop3d|${prefix}/sbin/vm-pop3d --user postfix --group postfix|g" \
    6973                "${worksrcpath}/vm-pop3d.init"
     
    7276                "${worksrcpath}/vm-pop3d.init"
    7377
    74         reinplace "s|/var/lock/subsys|${prefix}/var|g" \
     78        reinplace "s|/var/lock/subsys|${prefix}/var/${name}/lock|g" \
    7579                "${worksrcpath}/vm-pop3d.init"
    7680
     
    9397         if you deviate from the paths described below vm-pop3d will not work.
    9498
    95 1) Setup Postfix (if not previously used) and create spool directories
     991) Setup Postfix (if first-time setup) and create spool directories
    96100   for your vm-pop3d virtual domains.
    97101
     
    100104        sudo cp main.cf.sample main.cf
    101105 
    102         sudo mkdir ${prefix}/var/spool/${name}/my-vdomain1.com
    103         sudo chown postfix:postfix ${prefix}/var/spool/${name}/my-vdomain1.com
    104         sudo chmod 775 ${prefix}/var/spool/${name}/my-vdomain1.com
     106        sudo mkdir ${prefix}/var/${name}/spool/my-vdomain1.com
     107        sudo chown postfix:postfix ${prefix}/var/${name}/spool/my-vdomain1.com
     108        sudo chmod 775 ${prefix}/var/${name}/spool/my-vdomain1.com
    105109
    106110
     
    109113   Add to main.cf
    110114
    111         virtual_mailbox_base = ${prefix}/var/spool/${name}
     115        virtual_mailbox_base = ${prefix}/var/${name}/spool
    112116        virtual_mailbox_maps = hash:${prefix}/etc/${name}/vmailbox_maps
    113117        virtual_mailbox_domains = hash:${prefix}/etc/${name}/vdomain_maps
     
    145149   messages are arriving:
    146150
    147         ls ${prefix}/var/spool/${name}/my-vdomainx.com for messages.
     151        ls ${prefix}/var/${name}/spool/my-vdomainx.com for messages.
    148152
    149153   Check the error logs for either delivery errors or (after next step)
Note: See TracChangeset for help on using the changeset viewer.