Ignore:
Timestamp:
Dec 13, 2009, 7:37:59 PM (8 years ago)
Author:
macsforever2000@…
Message:

Maintainer update to version 5.8.0. Changed installation behavior for config and database files. (#22875)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/wview/Portfile

    r60665 r61517  
    22# $Id$
    33
    4 PortSystem      1.0
     4PortSystem          1.0
    55
    6 name            wview
    7 
    8 version             5.7.1
    9 
    10 categories      science
    11 
    12 maintainers     mac.com:mbrooksclark
    13 
    14 homepage        http://wviewweather.com/
    15 
    16 description     Daemons that download and archive data from supported weather stations
     6name                wview
     7version             5.8.0
     8categories          science
     9maintainers         mac.com:mbrooksclark
     10homepage            http://wviewweather.com/
     11description         unix weather application that generates web sites
    1712
    1813long_description \
    19   wview is a unix application for weather stations. It archives weather \
    20   data from the station. Generates full html web sites with graphics. \
    21   ftp/ssh export capability. International. Weather alarms. Data feed. \
    22   RSS feed. Stations currently supported include: Davis Vantage Pro/Pro2,\
    23   Vaisala WXT-510, La Crosse WS-2300, and a weather station simulator.
     14  wview is a collection of linux/unix daemons that interface with a supported \
     15  weather station to retrieve archive records (if generated by the station) and \
     16  current conditions. The archive records are stored in an SQLite3 database. At a \
     17  configurable interval, wview will utilize the archive history and current \
     18  conditions to generate weather images (buckets, dials and graphs) and HTML web \
     19  pages based on user-configurable HTML templates.
    2420
    25 platforms        darwin
    26 
    27 use_autoconf     yes
    28 
    29 master_sites     sourceforge:wview
     21platforms           darwin
     22universal_variant   no
     23use_autoconf        yes
     24master_sites        sourceforge:wview
    3025
    3126depends_lib         port:gd2 port:radlib port:openssl port:libpng port:zlib \
     
    3328depends_build       port:gawk
    3429
    35 checksums           md5     c704ea480b7b444b51b7b6a63ef56198 \
    36                     sha1    69017f9354eaa74b2441bdabcd314083c55f3e19 \
    37                     rmd160  a63ca2894abcd62b18804dda8d8fb50fb4f7b8e0
     30checksums           md5     22145b0f1ff4ba72828668430ead2dcd \
     31                    sha1    80b95fa86740000a80d4dedb131aeaf48a6a15bc \
     32                    rmd160  e5e3185ff6e28b437c4b0b2c894cf4cd6379cc3c
    3833
    39 configure.args      --enable-station-sim --enable-http
    40 
    41 configure.env-append    HTTP_DOC_ROOT="${prefix}/www"
     34configure.args      --enable-station-sim --enable-http
    4235
    4336destroot.violate_mtree
    4437
    4538post-destroot {
    46     xinstall -d -o root -g wheel -m 755 ${destroot}/Library/StartupItems
     39  xinstall -d -o root -g wheel -m 755 ${destroot}/Library/StartupItems
     40 
    4741  xinstall -d -o root -g wheel -m 755 \
    4842    ${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems/wview
    49 
     43 
    5044  xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \
    5145    ${destroot}/Library/StartupItems/wview/wview
    52 
     46 
    5347  xinstall -o root -g wheel -m 644 \
    5448    ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \
    5549    ${destroot}/Library/StartupItems/wview/StartupParameters.plist
    56          
     50   
     51  file rename ${destroot}${prefix}/var/wviewmgmt ${destroot}${prefix}/www/wviewmgmt
     52 
     53  reinplace "s|/etc/init.d/wview stop|/sbin/SystemStarter stop wview|" \
     54    ${destroot}${prefix}/www/wviewmgmt/wview_control.php
     55   
     56  reinplace "s|/etc/init.d/wview start|/sbin/SystemStarter start wview|" \
     57    ${destroot}${prefix}/www/wviewmgmt/wview_control.php
     58   
     59  reinplace "s|/etc/init.d/wview stop|/sbin/SystemStarter stop wview|" \
     60    ${destroot}${prefix}/www/wviewmgmt/wview_upgrade.php
     61 
    5762  file mkdir ${destroot}${prefix}/share/doc/${name}
    58 
     63 
     64  file mkdir ${destroot}${prefix}/share/${name}/etc
     65 
     66  file mkdir ${destroot}${prefix}/share/${name}/var
     67 
     68  file rename ${destroot}${prefix}/etc/${name} \
     69    ${destroot}${prefix}/share/${name}/etc/${name}
     70 
     71  file rename ${destroot}${prefix}/var/${name} \
     72    ${destroot}${prefix}/share/${name}/var/${name}
     73 
    5974  file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \
    6075    ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start-MacOSX.html
    61 
     76 
    6277  file copy ${worksrcpath}/wview-Quick-Start.html \
    6378    ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start.html
    64 
     79 
    6580  file copy ${worksrcpath}/wview-User-Manual.html \
    6681    ${destroot}${prefix}/share/doc/${name}/wview-User-Manual.html
    67 
     82 
    6883  file copy ${worksrcpath}/COPYING \
    6984    ${destroot}${prefix}/share/doc/${name}/COPYING
    70 
     85 
    7186  file copy ${worksrcpath}/UPGRADE \
    7287    ${destroot}${prefix}/share/doc/${name}/UPGRADE
     
    7489
    7590post-install {
    76   ui_msg "\n#####################################"
     91  if {![file exists ${prefix}/var/${name}]} {
     92    file copy ${destroot}${prefix}/share/${name}/var/${name} ${prefix}/var/wview
     93  }
     94 
     95  if {![file exists ${prefix}/etc/${name}/wview-conf.sdb]} {
     96    file copy ${destroot}${prefix}/share/${name}/etc/${name} ${prefix}/etc/wview
     97    file attributes ${prefix}/etc/wview -group www
     98    file attributes ${prefix}/etc/${name}/wview-conf.sdb -group www
     99  }
     100 
     101  file copy -force ${destroot}${prefix}/share/${name}/etc/${name}/wview-version \
     102    ${prefix}/etc/wview/wview-version
     103 
     104  ui_msg "#####################################"
    77105  ui_msg "Run"
    78106  ui_msg "\tsudo ${prefix}/bin/wviewconfig"
Note: See TracChangeset for help on using the changeset viewer.