Ticket #7609: Portfile

File Portfile, 1.6 KB (added by jyrki.wahlstedt@…, 18 years ago)

midgard-apache2 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       macosx
12homepage        http://www.midgard-project.org/
13
14master_sites    http://www.midgard-project.org/midcom-serveattachmentguid-1c9a06cc0f6737a4ad122dfefe448751/
15
16distname        ${name}-${version}
17use_bzip2       yes
18checksums       md5 0e8ca794876952645e0ebc7dc363c151
19depends_lib     port:midgard-core\
20                port:apache2\
21                port:apr\
22                port:apr-util
23
24configure.args  --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}