Ignore:
Timestamp:
Jan 13, 2008, 11:10:50 AM (12 years ago)
Author:
ryandesign@…
Message:

assp: no longer use the deprecated 'cd' command

File:
1 edited

Legend:

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

    r32778 r32779  
    3131
    3232pre-patch {
    33         cd ${worksrcpath}
    34         file rename "ASSP Documentation.htm" "ASSPDocumentation.htm"
    35         file rename "Regular Expression Tutorial.htm" RegularExpressionTutorial.htm
    36         foreach file [glob *.pl *.sh *.htm *.txt rc/*.dat] {
     33        file rename "${worksrcpath}/ASSP Documentation.htm" ${worksrcpath}/ASSPDocumentation.htm
     34        file rename "${worksrcpath}/Regular Expression Tutorial.htm" ${worksrcpath}/RegularExpressionTutorial.htm
     35        foreach file [glob -directory ${worksrcpath} *.pl *.sh *.htm *.txt rc/*.dat] {
    3736                reinplace "s%\r%%" $file
    3837        }
     
    4140
    4241configure {
    43         cd ${worksrcpath}
    4442        reinplace "s%^#!.*perl%#![binaryInPath perl]%" \
    45                 assp.pl \
    46                 move2num.pl \
    47                 rebuildspamdb.pl \
    48                 repair.pl \
    49                 stat.pl
     43                ${worksrcpath}/assp.pl \
     44                ${worksrcpath}/move2num.pl \
     45                ${worksrcpath}/rebuildspamdb.pl \
     46                ${worksrcpath}/repair.pl \
     47                ${worksrcpath}/stat.pl
    5048        reinplace "s%/usr/local/assp%${assp_base}%" \
    51                 ASSPDocumentation.htm \
    52                 stats.sh \
    53                 assp.pl \
    54                 rc/assp.dat \
    55                 rc/start.dat \
    56                 rc/stop.dat
     49                ${worksrcpath}/ASSPDocumentation.htm \
     50                ${worksrcpath}/stats.sh \
     51                ${worksrcpath}/assp.pl \
     52                ${worksrcpath}/rc/assp.dat \
     53                ${worksrcpath}/rc/start.dat \
     54                ${worksrcpath}/rc/stop.dat
    5755        reinplace "s%/usr/local%${prefix}%" \
    58                 ASSPDocumentation.htm
     56                ${worksrcpath}/ASSPDocumentation.htm
    5957}
    6058
     
    6765}
    6866destroot {
    69         cd ${worksrcpath}
    70 
    7167        xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
    72         xinstall -m 0755 rc/assp.dat ${destroot}${prefix}/etc/rc.d/assp.sh
     68        xinstall -m 0755 -W ${worksrcpath} rc/assp.dat ${destroot}${prefix}/etc/rc.d/assp.sh
    7369
    7470        xinstall -o assp -g assp -d -m 0755 ${destroot}${assp_base}
     
    7672                ${destroot}${assp_base}/assp.cfg-dist
    7773        reinplace "s%__BASE%${assp_base}%" ${destroot}${assp_base}/assp.cfg-dist
    78         xinstall -o assp -g assp -m 0755 rc/start.dat ${destroot}${assp_base}/start
    79         xinstall -o assp -g assp -m 0755 rc/stop.dat ${destroot}${assp_base}/stop
    80         foreach file {freshclam.sh stats.sh} {
    81                 xinstall -o assp -g assp -m 0755 $file ${destroot}${assp_base}
    82         }
    83         foreach file {assp.pl move2num.pl rebuildspamdb.pl repair.pl stat.pl} {
    84                 xinstall -o assp -g assp -m 0755 $file ${destroot}${assp_base}
    85         }
    86         foreach file {notspamreport.txt spamreport.txt whitereport.txt} {
    87                 xinstall -o assp -g assp -m 0644 $file ${destroot}${assp_base}
    88         }
     74        xinstall -o assp -g assp -m 0755 -W ${worksrcpath} rc/start.dat ${destroot}${assp_base}/start
     75        xinstall -o assp -g assp -m 0755 -W ${worksrcpath} rc/stop.dat ${destroot}${assp_base}/stop
     76        xinstall -o assp -g assp -m 0755 -W ${worksrcpath} freshclam.sh stats.sh ${destroot}${assp_base}
     77        xinstall -o assp -g assp -m 0755 -W ${worksrcpath} assp.pl move2num.pl rebuildspamdb.pl repair.pl stat.pl ${destroot}${assp_base}
     78        xinstall -o assp -g assp -m 0644 -W ${worksrcpath} notspamreport.txt spamreport.txt whitereport.txt ${destroot}${assp_base}
    8979
    9080        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    91         xinstall -m 0644 changelog.txt ${destroot}${prefix}/share/doc/${name}
    92         foreach file [glob *.htm] {
     81        xinstall -m 0644 -W ${worksrcpath} changelog.txt ${destroot}${prefix}/share/doc/${name}
     82        foreach file [glob -directory ${worksrcpath} *.htm] {
    9383                xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}
    9484        }
Note: See TracChangeset for help on using the changeset viewer.