Ignore:
Timestamp:
Dec 5, 2014, 10:24:29 PM (6 years ago)
Author:
jmr@…
Message:

assp: use add_users, use extract.mkdir, use C locale to prevent reinplace failure, mark noarch

File:
1 edited

Legend:

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

    r111559 r129114  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22# $Id$
     3
    34PortSystem              1.0
    45
     
    1819                                        easy-to-use tool works with any mail transport and \
    1920                                        achieves these goals requiring no operator \
    20                                         intervention after the initial setup phase. 
     21                                        intervention after the initial setup phase.
    2122homepage                http://assp.sourceforge.net/
    2223master_sites    sourceforge
     
    2425checksums               md5 55be31bab3efacc6bd964adf8cd25c83
    2526platforms               darwin
     27supported_archs noarch
    2628
    27 depends_run             path:bin/perl:perl5
     29depends_run             port:perl5
    2830
    29 pre-extract             { file mkdir ${worksrcpath} }
    30 extract.dir             ${worksrcpath}
     31extract.mkdir   yes
    3132
    3233set assp_base   ${prefix}/var/assp
     
    3637        file rename "${worksrcpath}/Regular Expression Tutorial.htm" ${worksrcpath}/RegularExpressionTutorial.htm
    3738        foreach file [glob -directory ${worksrcpath} *.pl *.sh *.htm *.txt rc/*.dat] {
    38                 reinplace "s%\r%%" $file
     39                reinplace -locale C "s%\r%%" $file
    3940        }
    4041}
     
    4243
    4344configure {
    44         reinplace "s%^#!.*perl%#![binaryInPath perl]%" \
     45        reinplace "s%^#!.*perl%#!${prefix}/bin/perl%" \
    4546                ${worksrcpath}/assp.pl \
    4647                ${worksrcpath}/move2num.pl \
     
    4849                ${worksrcpath}/repair.pl \
    4950                ${worksrcpath}/stat.pl
    50         reinplace "s%/usr/local/assp%${assp_base}%" \
     51        reinplace -locale C "s%/usr/local/assp%${assp_base}%" \
    5152                ${worksrcpath}/ASSPDocumentation.htm \
    5253                ${worksrcpath}/stats.sh \
     
    5556                ${worksrcpath}/rc/start.dat \
    5657                ${worksrcpath}/rc/stop.dat
    57         reinplace "s%/usr/local%${prefix}%" \
     58        reinplace -locale C "s%/usr/local%${prefix}%" \
    5859                ${worksrcpath}/ASSPDocumentation.htm
    5960}
     
    6162build {}
    6263
    63 pre-destroot {
    64         addgroup assp
    65         set gid [existsgroup assp]
    66         adduser assp gid=${gid} realname=ASSP\ Proxy home=${prefix}/var/assp
    67 }
     64add_users assp group=assp realname=ASSP\ Proxy home=${prefix}/var/assp
     65
    6866destroot {
    6967        xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
     
    8583                xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}
    8684        }
    87 }
    88 
    89 pre-install {
    90         addgroup assp
    91         set gid [existsgroup assp]
    92         adduser assp gid=${gid} realname=ASSP\ Proxy home=${prefix}/var/assp
    9385}
    9486
     
    123115        }
    124116}
    125 
Note: See TracChangeset for help on using the changeset viewer.