Changeset 12267


Ignore:
Timestamp:
May 15, 2005, 6:11:30 PM (15 years ago)
Author:
mww
Message:

Bug: #3070
Submitted by: i97_bed@…
Reviewed by: mww@

fix failing file copy that should not happen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/ez-ipupdate/Portfile

    r4188 r12267  
    1 # $Id: Portfile,v 1.3 2003/12/10 21:33:59 mww Exp $
     1# $Id: Portfile,v 1.4 2005/05/15 18:11:30 mww Exp $
    22
    33PortSystem 1.0
     
    3030}
    3131
     32set conf        ${prefix}/etc/ez-ipupdate.conf
     33
    3234post-destroot   {
    3335        file mkdir ${destroot}${prefix}/share/doc/${name}
     
    3537                ${destroot}${prefix}/share/doc/${name}
    3638        file copy ${worksrcpath}/example.conf \
    37                 ${destroot}${prefix}/etc/ez-ipupdate.conf.sample
     39                ${destroot}${conf}.sample
    3840        reinplace "s|/usr/local/bin/ez-ipupdate|${prefix}/bin/ez-ipupdate|g" \
    39                 ${destroot}${prefix}/etc/ez-ipupdate.conf.sample
     41                ${destroot}${conf}.sample
    4042}
    4143
    42 post-install    {
    43         if { ![file exists ${prefix}/etc/ez-ipupdate.conf] }    {
    44                 file copy ${prefix}/etc/ez-ipupdate.conf.sample \
    45                         ${prefix}/etc/ez-ipupdate.conf
     44post-install {
     45        if { ![file exists ${conf}] } {
     46                if { [file exists ${conf}.sample] } {
     47                        file copy ${conf}.sample ${conf}
     48                }
    4649        }
    4750}
Note: See TracChangeset for help on using the changeset viewer.