1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wview |
---|
6 | |
---|
7 | version 3.7.0 |
---|
8 | |
---|
9 | categories science |
---|
10 | |
---|
11 | maintainers mac.com:mbrooksclark |
---|
12 | |
---|
13 | homepage http://wviewweather.com/ |
---|
14 | |
---|
15 | description Daemons that download and archive data from supported weather stations |
---|
16 | |
---|
17 | long_description \ |
---|
18 | wview is a unix application for weather stations. It archives weather \ |
---|
19 | data from the station. Generates full html web sites with graphics. \ |
---|
20 | ftp/ssh export capability. MySQL/PostgreSQL archiving. International. \ |
---|
21 | Weather alarms. Data feed. RSS feed. Stations currently supported include: \ |
---|
22 | Davis Vantage Pro/Pro2, Vaisala WXT-510, La Crosse WS-2300, and a \ |
---|
23 | weather station simulator. |
---|
24 | |
---|
25 | platforms darwin |
---|
26 | |
---|
27 | master_sites sourceforge:wview |
---|
28 | |
---|
29 | depends_lib port:gd2 port:radlib |
---|
30 | |
---|
31 | checksums md5 f56c02c27f75b1d1f136bbcd3078641a \ |
---|
32 | sha1 8d325cfd0ddce1262881bbc76a5d4577ea4f33ae \ |
---|
33 | rmd160 0581657a69be197a7208d98ea60fdb95b01b6862 |
---|
34 | |
---|
35 | variant env description { Install config files and templates (first time install) } { |
---|
36 | destroot.target-append install-env |
---|
37 | } |
---|
38 | |
---|
39 | variant mysql5 description { Includes mySQL database support } { |
---|
40 | configure.args-append --enable-mysql |
---|
41 | depends_lib-append port:mysql5 |
---|
42 | } |
---|
43 | |
---|
44 | variant pgresql description { Includes Postgresql database support } { |
---|
45 | configure.args-append --enable-pgresql |
---|
46 | depends_lib-append port:postgresql83 |
---|
47 | } |
---|
48 | |
---|
49 | variant vpro description { Support for Davis Vantage Pro WX Station } { |
---|
50 | configure.args-append --enable-station-vp2 |
---|
51 | } |
---|
52 | |
---|
53 | variant wxt510 description { Support for Vaisala WXT-510 WX Station } { |
---|
54 | configure.args-append --enable-station-wxt510 |
---|
55 | } |
---|
56 | |
---|
57 | variant ws2300 description { Support for the La Crosse WS-2300 series stations } { |
---|
58 | configure.args-append --enable-station-ws2300 |
---|
59 | } |
---|
60 | |
---|
61 | variant sim description { Support for the Simulated WX Station } { |
---|
62 | configure.args-append --enable-station-sim |
---|
63 | } |
---|
64 | |
---|
65 | variant http description { Enable support for uploading data to Weather Underground } { |
---|
66 | configure.args-append --enable-http |
---|
67 | depends_lib-append port:curl |
---|
68 | } |
---|
69 | |
---|
70 | destroot.violate_mtree |
---|
71 | |
---|
72 | post-destroot { |
---|
73 | xinstall -d -o root -g wheel -m 755 \ |
---|
74 | ${worksrcpath}/examples/MacOSX/wview /Library/StartupItems/wview |
---|
75 | |
---|
76 | xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \ |
---|
77 | /Library/StartupItems/wview/wview |
---|
78 | |
---|
79 | xinstall -o root -g wheel -m 644 \ |
---|
80 | ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \ |
---|
81 | /Library/StartupItems/wview/StartupParameters.plist |
---|
82 | |
---|
83 | |
---|
84 | file mkdir ${destroot}${prefix}/share/doc/${name} |
---|
85 | |
---|
86 | file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \ |
---|
87 | ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start-MacOSX.html |
---|
88 | |
---|
89 | file copy ${worksrcpath}/wview-Quick-Start.html \ |
---|
90 | ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start.html |
---|
91 | |
---|
92 | file copy ${worksrcpath}/wview-User-Manual.html \ |
---|
93 | ${destroot}${prefix}/share/doc/${name}/wview-User-Manual.html |
---|
94 | |
---|
95 | file copy ${worksrcpath}/COPYING \ |
---|
96 | ${destroot}${prefix}/share/doc/${name}/COPYING |
---|
97 | |
---|
98 | file copy ${worksrcpath}/UPGRADE \ |
---|
99 | ${destroot}${prefix}/share/doc/${name}/UPGRADE |
---|
100 | |
---|
101 | |
---|
102 | } |
---|
103 | |
---|
104 | post-install { ui_msg "\n#####################################" |
---|
105 | ui_msg "Run\n" |
---|
106 | ui_msg "\tsudo ${prefix}/bin/wviewconfig and\n" |
---|
107 | ui_msg "\tsudo ${prefix}/bin/wviewhtmlconfig\n" |
---|
108 | ui_msg "before launching wview\n" |
---|
109 | ui_msg "\n#####################################" |
---|
110 | ui_msg "html templates and config files are stored in ${prefix}/etc/wview/\n" |
---|
111 | ui_msg "archive files are stored in ${prefix}/var/wview/\n" |
---|
112 | ui_msg "\n#####################################" |
---|
113 | ui_msg "Start the daemons with the command:\n" |
---|
114 | ui_msg "\tsudo /sbin/SystemStarter start wview\n" |
---|
115 | ui_msg "\n#####################################" |
---|
116 | } |
---|