Changeset 35352


Ignore:
Timestamp:
Mar 25, 2008, 5:45:20 PM (12 years ago)
Author:
jberry@…
Message:

Remove use of cd command. Contact to maintainer failed as his domain rejects mail from macports.org.

File:
1 edited

Legend:

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

    r29749 r35352  
    55name             postgrey
    66version          1.31
    7 revision         1
     7revision         2
    88
    99categories       mail
     
    3333
    3434configure {
    35   cd ${worksrcpath}
    36   system "echo all: > Makefile"
    37   reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" postgrey \
    38         contrib/postgreyreport
    39   reinplace "s|/etc/postfix|${prefix}/etc/postgrey|g" postgrey \
    40         postgrey_whitelist_clients postgrey_whitelist_recipients \
    41         contrib/postgreyreport
    42   reinplace "s|/etc/main.cf|postfix's main.cf|g" postgrey
     35  system "echo all: > ${worksrcpath}/Makefile"
     36  reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
     37        ${worksrcpath}/postgrey \
     38        ${worksrcpath}/contrib/postgreyreport
     39  reinplace "s|/etc/postfix|${prefix}/etc/postgrey|g" \
     40        ${worksrcpath}/postgrey \
     41        ${worksrcpath}/postgrey_whitelist_clients \
     42        ${worksrcpath}/postgrey_whitelist_recipients \
     43        ${worksrcpath}/contrib/postgreyreport
     44  reinplace "s|/etc/main.cf|postfix's main.cf|g" \
     45        ${worksrcpath}/postgrey
    4346  reinplace "s|/var/spool/postfix/postgrey|${prefix}/var/spool/postgrey|g" \
    44         postgrey contrib/postgreyreport
     47        ${worksrcpath}/postgrey \
     48        ${worksrcpath}/contrib/postgreyreport
    4549}
    4650destroot {
    4751  adduser postgrey realname=Postgrey\ Server
    4852  addgroup postgrey
    49   cd ${worksrcpath}
    5053  file mkdir ${destroot}${prefix}/etc/postgrey
    5154  file mkdir ${destroot}${prefix}/share/postgrey
     
    6063        ${destroot}${prefix}/var/run/postgrey \
    6164        ${destroot}${prefix}/etc/postgrey
    62   system "pod2man --section=8 postgrey > \
     65  system "pod2man --section=8 ${worksrcpath}/postgrey > \
    6366        ${destroot}${prefix}/share/man/man8/postgrey.8"
    64   system "pod2man --section=1 contrib/postgreyreport > \
     67  system "pod2man --section=1 ${worksrcpath}/contrib/postgreyreport > \
    6568        ${destroot}${prefix}/share/man/man1/postgreyreport.1"
    66   xinstall -m 755 -c contrib/postgreyreport \
     69  xinstall -m 755 -c ${worksrcpath}/contrib/postgreyreport \
    6770        ${destroot}${prefix}/bin/postgreyreport
    68   xinstall -m 644 -c README README.exim Changes COPYING \
     71  xinstall -m 644 -c ${worksrcpath}/README \
     72        ${worksrcpath}/README.exim \
     73        ${worksrcpath}/Changes \
     74        ${worksrcpath}/COPYING \
    6975        ${destroot}${prefix}/share/doc/postgrey
    7076  xinstall -m 644 -c ${portpath}/files/postgrey.conf \
     
    7480  reinplace "s|__PREFIX|${prefix}|g" \
    7581        ${destroot}${prefix}/share/postgrey/postgrey.sh
    76   xinstall -m 4755 -o postgrey -g postgrey -c postgrey \
     82  xinstall -m 4755 -o postgrey -g postgrey -c \
     83        ${worksrcpath}/postgrey \
    7784        ${destroot}${prefix}/sbin/postgrey
    78   xinstall -m 644 -c postgrey_whitelist_clients \
     85  xinstall -m 644 -c \
     86        ${worksrcpath}/postgrey_whitelist_clients \
    7987        ${destroot}${prefix}/etc/postgrey
    80   xinstall -m 644 -c postgrey_whitelist_recipients \
     88  xinstall -m 644 -c \
     89        ${worksrcpath}/postgrey_whitelist_recipients \
    8190        ${destroot}${prefix}/etc/postgrey/postgrey_whitelist_recipients.default
    8291}
Note: See TracChangeset for help on using the changeset viewer.