Ticket #23297: Portfile_wview-5.12.1.diff

File Portfile_wview-5.12.1.diff, 2.7 KB (added by brooks@…, 15 years ago)
  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    2 # $Id: Portfile 62126 2009-12-29 15:43:25Z macsforever2000@macports.org $
    32
    43PortSystem          1.0
    54
    65name                wview
    7 version             5.10.0
     6version             5.12.1
    87categories          science
    98maintainers         clarksonline.net:brooks
    109homepage            http://wviewweather.com/
     
    2726                    port:sqlite3 port:curl
    2827depends_build       port:gawk
    2928
    30 checksums           md5     8a484efc23b3eb3cfdbf257d129d1eaa \
    31                     sha1    aed7e5953a91361316cb4dfc23fed60f3bbd48d2 \
    32                     rmd160  a590b3212a560f3d034b6bb2b2da30f5edd5cb8b
     29checksums           md5     1a1146e9417a2bd6e62984b3edb79f77 \
     30                    sha1    f9cd6ce7c4a63402335548daea34a098633a205b \
     31                    rmd160  7029049eb428bbe9ea806e253939ee41fcdef1d0
    3332
    34 configure.args      --enable-station-sim --enable-http
     33configure.args      --enable-station-sim
    3534
    3635destroot.violate_mtree
    3736
     
    5958  reinplace "s|/etc/init.d/wview stop|/sbin/SystemStarter stop wview|" \
    6059    ${destroot}${prefix}/www/wviewmgmt/wview_upgrade.php
    6160 
     61  file mkdir ${destroot}${prefix}/share/${name}
     62 
    6263  file mkdir ${destroot}${prefix}/share/doc/${name}
    6364 
    6465  file mkdir ${destroot}${prefix}/share/${name}/etc
    6566 
    6667  file mkdir ${destroot}${prefix}/share/${name}/var
    6768 
     69  file mkdir ${destroot}${prefix}/share/${name}/examples
     70 
    6871  file rename ${destroot}${prefix}/etc/${name} \
    6972    ${destroot}${prefix}/share/${name}/etc/${name}
    7073 
    7174  file rename ${destroot}${prefix}/var/${name} \
    7275    ${destroot}${prefix}/share/${name}/var/${name}
    7376 
     77  file copy ${worksrcpath}/examples/conf \
     78    ${destroot}${prefix}/share/${name}/examples/conf
     79 
    7480  file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \
    7581    ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start-MacOSX.html
    7682 
     
    96102    file copy ${destroot}${prefix}/share/${name}/etc/${name} ${prefix}/etc/wview
    97103    file attributes ${prefix}/etc/wview -group www
    98104    file attributes ${prefix}/etc/${name}/wview-conf.sdb -group www
     105  } else {
     106    file copy -force ${destroot}${prefix}/share/${name}/etc/${name}/wview-conf-update.sql \
     107      ${prefix}/etc/${name}/wview-conf-update.sql
     108    exec sqlite3 ${prefix}/etc/${name}/wview-conf.sdb <  ${prefix}/etc/${name}/wview-conf-update.sql
    99109  }
    100110 
    101111  file copy -force ${destroot}${prefix}/share/${name}/etc/${name}/wview-version \