Ticket #7609: Portfile.2

File Portfile.2, 1.7 KB (added by jyrki.wahlstedt@…, 19 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.00 2005/06/12 10:39:42 jwa Exp $
2
3PortSystem 1.0
4name            midgard-apache2
5version         1.7.4
6categories      www
7maintainers     jyrki.wahlstedt@hut.fi
8description     "A content management system"
9long_description "Midgard is a content management system\
10                platform using Apache, PHP and MySQL."
11platforms       darwin
12homepage        http://www.midgard-project.org/
13
14master_sites    http://www.midgard-project.org/midcom-serveattachmentguid-1c9a06cc0f6737a4ad122dfefe448751/
15
16use_bzip2       yes
17checksums       sha1 914823f87da792731317799fad992483a6894aac
18depends_lib     port:midgard-core\
19                port:apache2\
20                port:apr\
21                port:apr-util
22
23configure.args  --sysconfdir=${prefix}/etc/midgard/ \
24                --with-apxs=${prefix}/apache2/bin/apxs\
25                --with-apr-config=${prefix}/bin/apr-1-config
26
27pre-destroot {
28        file mkdir ${destroot}${prefix}/apache2
29        file mkdir ${destroot}${prefix}/apache2/conf/extra
30        file mkdir ${destroot}${prefix}/apache2/modules
31}
32
33post-destroot   {
34        xinstall -m 755 ${worksrcpath}/midgard.conf ${destroot}${prefix}/apache2/conf/extra
35}
36
37post-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
52platform darwin 8 {
53        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
54}