1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name sahana2 |
---|
7 | version 0.4.0 |
---|
8 | categories www php |
---|
9 | maintainers nomaintainer |
---|
10 | description Sahana is a web based disaster management system |
---|
11 | long_description Sahana is an integrated set of pluggable, web based \ |
---|
12 | disaster management applications that provide solutions to \ |
---|
13 | large-scale humanitarian problems in the aftermath of a \ |
---|
14 | disaster. |
---|
15 | |
---|
16 | homepage http://www.sahana.lk |
---|
17 | master_sites sourceforge:sahana |
---|
18 | distname sahana2-${version}-stable |
---|
19 | checksums md5 a38c474ba739c2e0d26401547a37b9f0 \ |
---|
20 | sha1 732a73cbcf0a82d933866628cae881fe5100bffc \ |
---|
21 | rmd160 ff72509f5f35ab756d2861adf70cabbf39a66123 |
---|
22 | |
---|
23 | platforms darwin freebsd |
---|
24 | |
---|
25 | depends_lib port:apache2 port:php5 port:mysql5 |
---|
26 | |
---|
27 | variant apache description "Use Apache 1 instead of Apache 2" { |
---|
28 | depends_lib-append port:apache |
---|
29 | depends_lib-delete port:apache2 |
---|
30 | } |
---|
31 | |
---|
32 | variant php4 description "Use PHP 4 instead of PHP 5" { |
---|
33 | depends_lib-append port:php4 |
---|
34 | depends_lib-delete port:php5 |
---|
35 | } |
---|
36 | |
---|
37 | variant mysql3 description "Use MySQL 3" conflicts mysql4 postgresql7 postgresql8 { |
---|
38 | depends_lib-append port:mysql |
---|
39 | } |
---|
40 | |
---|
41 | variant mysql4 description "Use MySQL 4" conflicts mysql3 postgresql7 postgresql8 { |
---|
42 | depends_lib-append port:mysql4 |
---|
43 | depends_lib-delete port:mysql5 |
---|
44 | } |
---|
45 | |
---|
46 | variant postgresql7 description "Use PostgreSQL 7" conflicts mysql3 mysql4 postgresql8 { |
---|
47 | depends_lib-append port:postgresql7 |
---|
48 | depends_lib-delete port:mysql5 |
---|
49 | } |
---|
50 | |
---|
51 | variant postgresql8 description "Use PostgreSQL 8" conflicts mysql3 mysql4 postgresql7 { |
---|
52 | depends_lib-append port:postgresql8 |
---|
53 | depends_lib-delete port:mysql5 |
---|
54 | } |
---|
55 | |
---|
56 | use_configure no |
---|
57 | build {} |
---|
58 | |
---|
59 | set docpath ${destroot}${prefix}/www/data |
---|
60 | set worksrcpath ${workpath}/sahana-phase2 |
---|
61 | |
---|
62 | destroot { |
---|
63 | xinstall -d -m 0755 ${docpath}/sahana-phase2 |
---|
64 | eval file copy [glob ${worksrcpath}/*] ${docpath}/sahana-phase2 |
---|
65 | file attributes ${docpath}/sahana-phase2/www/tmp -permissions 040777 |
---|
66 | } |
---|
67 | |
---|