1 | # $Id: Portfile,v 1.00 2005/06/12 10:39:42 jwa Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name midgard-apache2 |
---|
5 | version 1.7.4 |
---|
6 | categories www |
---|
7 | maintainers jyrki.wahlstedt@hut.fi |
---|
8 | description "A content management system" |
---|
9 | long_description "Midgard is a content management system\ |
---|
10 | platform using Apache, PHP and MySQL." |
---|
11 | platforms darwin |
---|
12 | homepage http://www.midgard-project.org/ |
---|
13 | |
---|
14 | master_sites http://www.midgard-project.org/midcom-serveattachmentguid-1c9a06cc0f6737a4ad122dfefe448751/ |
---|
15 | |
---|
16 | use_bzip2 yes |
---|
17 | checksums sha1 914823f87da792731317799fad992483a6894aac |
---|
18 | depends_lib port:midgard-core\ |
---|
19 | port:apache2\ |
---|
20 | port:apr\ |
---|
21 | port:apr-util |
---|
22 | |
---|
23 | configure.args --sysconfdir=${prefix}/etc/midgard/ \ |
---|
24 | --with-apxs=${prefix}/apache2/bin/apxs\ |
---|
25 | --with-apr-config=${prefix}/bin/apr-1-config |
---|
26 | |
---|
27 | pre-destroot { |
---|
28 | file mkdir ${destroot}${prefix}/apache2 |
---|
29 | file mkdir ${destroot}${prefix}/apache2/conf/extra |
---|
30 | file mkdir ${destroot}${prefix}/apache2/modules |
---|
31 | } |
---|
32 | |
---|
33 | post-destroot { |
---|
34 | xinstall -m 755 ${worksrcpath}/midgard.conf ${destroot}${prefix}/apache2/conf/extra |
---|
35 | } |
---|
36 | |
---|
37 | post-install { |
---|
38 | ui_msg "======================== IMPORTANT =========================" |
---|
39 | ui_msg "Make sure the following exist in ${prefix}/apache2/conf/httpd.conf" |
---|
40 | ui_msg "In DSO Support section, i.e. LoadModule section" |
---|
41 | ui_msg " LoadModule php4_module modules/libphp4.so" |
---|
42 | ui_msg "DirectoryIndex section" |
---|
43 | ui_msg " DirectoryIndex to include index.php index.php4" |
---|
44 | ui_msg "AddType section" |
---|
45 | ui_msg " AddType application/x-httpd-php .php" |
---|
46 | ui_msg " AddType application/x-httpd-php-source .phps" |
---|
47 | ui_msg "In Supplemental configuration, add" |
---|
48 | ui_msg " Include conf/extra/midgard.conf" |
---|
49 | ui_msg "================================================================" |
---|
50 | } |
---|
51 | |
---|
52 | platform darwin 8 { |
---|
53 | configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
54 | } |
---|