# $Id: Portfile 50477 2009-05-01 14:18:10Z jwa@macports.org $ PortSystem 1.0 name midgard-apache2 version 8.09.5 categories www maintainers jwa description A content management system long_description Midgard is a content management system platform using \ Apache, PHP and MySQL. platforms darwin homepage http://www.midgard-project.org/ master_sites http://www.midgard-project.org/midcom-serveattachmentguid-b20cd814332d11de99e797ba4966ad3bad3b/ #use_bzip2 yes checksums md5 5c593a4a14105f71282bd2c80c6ab2d1 \ sha1 5c60fc3dfe2ba80a58e40328063c1a3a29ab78b6 \ rmd160 d28664aa462e316b9ead85960aa7e7dcb9f79d7a depends_lib port:midgard-core \ port:apache2 \ port:apr \ port:apr-util configure.args --sysconfdir=${prefix}/etc/midgard/ \ --with-apxs=${prefix}/apache2/bin/apxs \ --with-apr-config=${prefix}/bin/apr-1-config pre-destroot { file mkdir ${destroot}${prefix}/apache2 file mkdir ${destroot}${prefix}/apache2/conf/extra file mkdir ${destroot}${prefix}/apache2/modules } destroot.violate_mtree yes #post-destroot { # xinstall -m 755 ${worksrcpath}/midgard.conf ${destroot}${prefix}/apache2/conf/extra #} post-install { ui_msg "======================== IMPORTANT =========================" ui_msg "Make sure the following exist in ${prefix}/apache2/conf/httpd.conf" ui_msg "In DSO Support section, i.e. LoadModule section" ui_msg " LoadModule php5_module modules/libphp5.so" ui_msg "DirectoryIndex section" ui_msg " DirectoryIndex to include index.php index.php5" ui_msg "AddType section" ui_msg " AddType application/x-httpd-php .php" ui_msg " AddType application/x-httpd-php-source .phps" ui_msg "In Supplemental configuration, add" ui_msg " Include conf/extra/midgard.conf" ui_msg "================================================================" } livecheck.check regex livecheck.url ${homepage}download livecheck.regex ${name}-(\[1-9\]+.\[0-9\]+.\[0-9\]+).tar.\[bg\]z