[121600] trunk/dports/www/apache24-devel/Portfile
cal at macports.org
cal at macports.org
Tue Jul 1 12:41:00 PDT 2014
Revision: 121600
https://trac.macports.org/changeset/121600
Author: cal at macports.org
Date: 2014-07-01 12:41:00 -0700 (Tue, 01 Jul 2014)
Log Message:
-----------
apache24-devel: install default configuration file if it doesn't exist, closes #44111
Modified Paths:
--------------
trunk/dports/www/apache24-devel/Portfile
Modified: trunk/dports/www/apache24-devel/Portfile
===================================================================
--- trunk/dports/www/apache24-devel/Portfile 2014-07-01 19:20:58 UTC (rev 121599)
+++ trunk/dports/www/apache24-devel/Portfile 2014-07-01 19:41:00 UTC (rev 121600)
@@ -8,6 +8,7 @@
name apache24-devel
apache2.name apache2
version 2.4.9
+revision 1
categories www
maintainers ryandesign mathiesen.info:macintosh pixilla openmaintainer
license Apache-2
@@ -129,27 +130,34 @@
}
}
-# post-activate {
-#
-# if {![file exists ${apache2.sbindir}/envvars]} {
-# xinstall -m 755 ${apache2.sbindir}/envvars-std ${apache2.sbindir}/envvars
-# }
-#
-# fileInstall "install" "${prefix}" "0644"
-#
-# set listenFile [open "${apache2.sysconfdir}/ports.conf" w 0644]
-# foreach listen_port ${apache2.listen_ports} {
-# puts ${listenFile} "Listen ${listen_port}"
-# }
-# close ${listenFile}
-#
-# foreach action {enmod dismod} {
-# foreach module ${apache2.default_ ${action}} {
-# exec "${apache2.sbindir}/a2${action}" ${module}
-# }
-# }
-# }
+post-activate {
+ set confDir ${prefix}/etc/${apache2.name}
+ if {![file exists ${confDir}/httpd.conf]} {
+ file copy ${confDir}/httpd.conf.orig ${confDir}/httpd.conf
+ reinplace "s|#LoadModule slotmem_shm_module|LoadModule slotmem_shm_module|g" \
+ ${confDir}/httpd.conf
+ }
+#
+# if {![file exists ${apache2.sbindir}/envvars]} {
+# xinstall -m 755 ${apache2.sbindir}/envvars-std ${apache2.sbindir}/envvars
+# }
+#
+# fileInstall "install" "${prefix}" "0644"
+#
+# set listenFile [open "${apache2.sysconfdir}/ports.conf" w 0644]
+# foreach listen_port ${apache2.listen_ports} {
+# puts ${listenFile} "Listen ${listen_port}"
+# }
+# close ${listenFile}
+#
+# foreach action {enmod dismod} {
+# foreach module ${apache2.default_ ${action}} {
+# exec "${apache2.sbindir}/a2${action}" ${module}
+# }
+# }
+}
+
platform openbsd {
build.env-append "LD_LIBRARY_PATH=${prefix}/lib"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140701/1dfe5166/attachment.html>
More information about the macports-changes
mailing list