Ticket #44111: Portfile-apache24-devel.diff

File Portfile-apache24-devel.diff, 1.0 KB (added by Schamschula (Marius Schamschula), 10 years ago)
  • Portfile

    old new  
    88name                apache24-devel
    99apache2.name        apache2
    1010version             2.4.9
     11revision            1
    1112categories          www
    1213maintainers         ryandesign mathiesen.info:macintosh pixilla openmaintainer
    1314license             Apache-2
     
    129130    }
    130131}
    131132
    132 # post-activate {
     133 post-activate {
     134    set confDir ${prefix}/etc/${apache2.name}
     135    if {![file exists ${confDir}/httpd.conf]} {
     136        file copy ${confDir}/httpd.conf.orig ${confDir}/httpd.conf
     137        reinplace "s|#LoadModule slotmem_shm_module|LoadModule slotmem_shm_module|g" \
     138        ${confDir}/httpd.conf
     139    }
     140
    133141#
    134142#     if {![file exists ${apache2.sbindir}/envvars]} {
    135143#         xinstall -m 755 ${apache2.sbindir}/envvars-std ${apache2.sbindir}/envvars
     
    148156#             exec "${apache2.sbindir}/a2${action}" ${module}
    149157#         }
    150158#     }
    151 # }
     159 }
    152160
    153161platform openbsd {
    154162    build.env-append "LD_LIBRARY_PATH=${prefix}/lib"