Changeset 4188


Ignore:
Timestamp:
Dec 10, 2003, 9:33:59 PM (17 years ago)
Author:
mww
Message:

-added missing 'platforms' key
-moved 'reinplace' from post-patch to post-destroot
-added 'reinplace DESTDIR...' cause Makefile won't use destroot
-replaced 'system' cmds with 'file' equivalent

File:
1 edited

Legend:

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

    r3508 r4188  
    1 # $Id: Portfile,v 1.2 2003/09/23 10:14:22 mww Exp $
     1# $Id: Portfile,v 1.3 2003/12/10 21:33:59 mww Exp $
    22
    33PortSystem 1.0
     
    66categories      net
    77maintainers     mww@opendarwin.org
     8platforms       darwin freebsd
    89description     dynamic dns client
    910long_description        ez-ipupdate is a small utility for updating your host \
     
    1112                        mode is currently not working under Darwin/OS-X.
    1213
    13 homepage        http://www.ez-ipupdate.com/
    14 master_sites    ${homepage}dist/
     14homepage        http://www.ez-ipupdate.com
     15master_sites    ${homepage}/dist/
    1516checksums       md5 525be4550b4461fdf105aed8e753b020
    16 
    17 post-patch      { reinplace \
    18                 "s|/usr/local/bin/ez-ipupdate|${prefix}/bin/ez-ipupdate|g" \
    19                 ${worksrcpath}/example.conf }
    2017
    2118configure.args  --cache-file=${prefix}/var/ez-ipupdate
    2219
    23 variant darwin {
     20variant darwin  {
    2421        configure.env   CPPFLAGS=-D__FreeBSD__
    2522        configure.args-append --host=powerpc-apple-freebsd
     
    2825build.target
    2926
    30 destroot.destdir        prefix=${destroot}${prefix}
     27pre-destroot    {
     28        reinplace "s|DESTDIR =|DESTDIR = ${destroot}|g" \
     29                ${worksrcpath}/Makefile
     30}
    3131
    32 post-destroot   { system "install -m 755 -d \
    33                                 ${destroot}${prefix}/share/doc/ez-ipupdate \
    34                 && install -m 644 ${worksrcpath}/README \
    35                                 ${destroot}${prefix}/share/doc/ez-ipupdate \
    36                 && install -m 644 ${worksrcpath}/COPYING \
    37                                 ${destroot}${prefix}/share/doc/ez-ipupdate \
    38                 && install -m 700 ${worksrcpath}/example.conf \
    39                                 ${destroot}${prefix}/etc/ez-ipupdate.conf.sample" }
     32post-destroot   {
     33        file mkdir ${destroot}${prefix}/share/doc/${name}
     34        file copy ${worksrcpath}/README ${worksrcpath}/COPYING \
     35                ${destroot}${prefix}/share/doc/${name}
     36        file copy ${worksrcpath}/example.conf \
     37                ${destroot}${prefix}/etc/ez-ipupdate.conf.sample
     38        reinplace "s|/usr/local/bin/ez-ipupdate|${prefix}/bin/ez-ipupdate|g" \
     39                ${destroot}${prefix}/etc/ez-ipupdate.conf.sample
     40}
    4041
    41 post-install    { if {![file exists ${prefix}/etc/ez-ipupdate.conf]} {
    42                         system "cp ${prefix}/etc/ez-ipupdate.conf.sample \
    43                                         ${prefix}/etc/ez-ipupdate.conf"
    44                   } }
     42post-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
     46        }
     47}
Note: See TracChangeset for help on using the changeset viewer.