1 | # $Id$ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name sahana2 |
---|
5 | version 0.2.0-beta-1 |
---|
6 | categories www php |
---|
7 | maintainers janaka@opensource.lk |
---|
8 | description Sahana is a web based disaster management system |
---|
9 | long_description Sahana is an integrated set of pluggable, web based disaster \ |
---|
10 | management applications that provide solutions to large-scale \ |
---|
11 | humanitarian problems in the aftermath of a disaster. |
---|
12 | |
---|
13 | homepage http://www.sahana.lk |
---|
14 | master_sites sourceforge:sahana |
---|
15 | distname sahana2-${version} |
---|
16 | checksums md5 08ded67d106351b2d55ff362e0791c15 |
---|
17 | platforms darwin freebsd |
---|
18 | |
---|
19 | depends_lib port:apache2 port:php5 port:mysql5 |
---|
20 | |
---|
21 | variant apache { |
---|
22 | depends_lib-append port:apache |
---|
23 | depends_lib-delete port:apache2 |
---|
24 | } |
---|
25 | |
---|
26 | variant php4 { |
---|
27 | depends_lib-append port:php4 |
---|
28 | depends_lib-delete port:php5 |
---|
29 | } |
---|
30 | |
---|
31 | variant mysql3 conflicts mysql4 postgresql7 postgresql8 { |
---|
32 | depends_lib-append port:mysql |
---|
33 | } |
---|
34 | |
---|
35 | variant mysql4 conflicts mysql3 postgresql7 postgresql8 { |
---|
36 | depends_lib-append port:mysql4 |
---|
37 | depends_lib-delete port:mysql5 |
---|
38 | } |
---|
39 | |
---|
40 | variant postgresql7 conflicts mysql3 mysql4 postgresql8 { |
---|
41 | depends_lib-append port:postgresql7 |
---|
42 | depends_lib-delete port:mysql5 |
---|
43 | } |
---|
44 | |
---|
45 | variant postgresql8 conflicts mysql3 mysql4 postgresql7 { |
---|
46 | depends_lib-append port:postgresql8 |
---|
47 | depends_lib-delete port:mysql5 |
---|
48 | } |
---|
49 | |
---|
50 | use_configure no |
---|
51 | build {} |
---|
52 | |
---|
53 | set docpath ${destroot}${prefix}/www/data |
---|
54 | set worksrcpath ${workpath}/sahana-phase2 |
---|
55 | |
---|
56 | destroot { |
---|
57 | xinstall -d -m 0755 ${docpath}/sahana-phase2 |
---|
58 | eval file copy [glob ${worksrcpath}/*] ${docpath}/sahana-phase2 |
---|
59 | file attributes ${docpath}/sahana-phase2/www/tmp -permissions 040777 |
---|
60 | } |
---|