Ticket #8453: Portfile

File Portfile, 1.6 KB (added by janaka@…, 19 years ago)

Sahana2 Portfile

Line 
1# $Id$
2PortSystem 1.0
3
4name                    sahana2
5version                 0.2.0-beta-1
6categories              www php
7maintainers             janaka@opensource.lk
8description             Sahana is a web based disaster management system
9long_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
13homepage                http://www.sahana.lk
14master_sites        sourceforge:sahana
15distname                sahana2-${version}
16checksums               md5 08ded67d106351b2d55ff362e0791c15
17platforms               darwin freebsd
18
19depends_lib     port:apache2 port:php5 port:mysql5
20                       
21variant apache {
22        depends_lib-append      port:apache
23        depends_lib-delete      port:apache2
24}
25
26variant php4 {
27        depends_lib-append      port:php4
28        depends_lib-delete      port:php5
29}
30
31variant mysql3 conflicts mysql4 postgresql7 postgresql8 {
32    depends_lib-append  port:mysql
33}
34
35variant mysql4 conflicts mysql3 postgresql7 postgresql8 {
36    depends_lib-append  port:mysql4
37    depends_lib-delete  port:mysql5
38}
39
40variant postgresql7 conflicts mysql3 mysql4 postgresql8 {
41    depends_lib-append  port:postgresql7
42    depends_lib-delete  port:mysql5
43}
44
45variant postgresql8 conflicts mysql3 mysql4 postgresql7 {
46    depends_lib-append  port:postgresql8
47    depends_lib-delete  port:mysql5
48}
49
50use_configure   no
51build                   {}
52
53set docpath ${destroot}${prefix}/www/data
54set worksrcpath ${workpath}/sahana-phase2
55
56destroot {
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}