Ticket #22875: Portfile_wview-5.8.0.diff
File Portfile_wview-5.8.0.diff, 5.5 KB (added by mbrooksclark@…, 15 years ago) |
---|
-
(a) /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/wview/Portfile vs. (b) portfile
a b 1 1 # -*- 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 60665 2009-11-19 19:42:33Z snc@macports.org$2 # $Id:$ 3 3 4 PortSystem 1.04 PortSystem 1.0 5 5 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 6 name wview 7 version 5.8.0 8 categories science 9 maintainers mac.com:mbrooksclark 10 homepage http://wviewweather.com/ 11 description unix weather application that generates web sites 17 12 18 13 long_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.24 25 platforms darwin 26 27 u se_autoconf yes28 29 master_sites sourceforge:wview14 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. 20 21 platforms darwin 22 universal_variant no 23 use_autoconf yes 24 master_sites sourceforge:wview 30 25 31 26 depends_lib port:gd2 port:radlib port:openssl port:libpng port:zlib \ 32 27 port:sqlite3 port:curl 33 28 depends_build port:gawk 34 29 35 checksums md5 c704ea480b7b444b51b7b6a63ef56198 \ 36 sha1 69017f9354eaa74b2441bdabcd314083c55f3e19 \ 37 rmd160 a63ca2894abcd62b18804dda8d8fb50fb4f7b8e0 38 39 configure.args --enable-station-sim --enable-http 30 checksums md5 22145b0f1ff4ba72828668430ead2dcd \ 31 sha1 80b95fa86740000a80d4dedb131aeaf48a6a15bc \ 32 rmd160 e5e3185ff6e28b437c4b0b2c894cf4cd6379cc3c 40 33 41 configure. env-append HTTP_DOC_ROOT="${prefix}/www"34 configure.args --enable-station-sim --enable-http 42 35 43 36 destroot.violate_mtree 44 37 45 38 post-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 47 41 xinstall -d -o root -g wheel -m 755 \ 48 42 ${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems/wview 49 43 50 44 xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \ 51 45 ${destroot}/Library/StartupItems/wview/wview 52 46 53 47 xinstall -o root -g wheel -m 644 \ 54 48 ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \ 55 49 ${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 57 62 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 59 74 file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \ 60 75 ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start-MacOSX.html 61 76 62 77 file copy ${worksrcpath}/wview-Quick-Start.html \ 63 78 ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start.html 64 79 65 80 file copy ${worksrcpath}/wview-User-Manual.html \ 66 81 ${destroot}${prefix}/share/doc/${name}/wview-User-Manual.html 67 82 68 83 file copy ${worksrcpath}/COPYING \ 69 84 ${destroot}${prefix}/share/doc/${name}/COPYING 70 85 71 86 file copy ${worksrcpath}/UPGRADE \ 72 87 ${destroot}${prefix}/share/doc/${name}/UPGRADE 73 88 } 74 89 75 90 post-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 "#####################################" 77 105 ui_msg "Run" 78 106 ui_msg "\tsudo ${prefix}/bin/wviewconfig" 79 107 ui_msg "\tsudo ${prefix}/bin/wviewhtmlconfig"