[152906] trunk/dports/www/apache2/Portfile
ctreleaven at macports.org
ctreleaven at macports.org
Tue Sep 20 05:45:22 PDT 2016
Revision: 152906
https://trac.macports.org/changeset/152906
Author: ctreleaven at macports.org
Date: 2016-09-20 05:45:22 -0700 (Tue, 20 Sep 2016)
Log Message:
-----------
apache2: add support for packaging
Modified Paths:
--------------
trunk/dports/www/apache2/Portfile
Modified: trunk/dports/www/apache2/Portfile
===================================================================
--- trunk/dports/www/apache2/Portfile 2016-09-20 12:12:50 UTC (rev 152905)
+++ trunk/dports/www/apache2/Portfile 2016-09-20 12:45:22 UTC (rev 152906)
@@ -6,7 +6,7 @@
name apache2
version 2.2.31
-revision 1
+revision 2
categories www
maintainers ryandesign openmaintainer
license Apache-2
@@ -181,6 +181,22 @@
startupitem.restart \
"${prefix}/${name}/bin/apachectl restart > /dev/null"
+if {[info exists pkg.asroot]} {
+ pkg.asroot yes
+}
+
+pre-pkg {
+ if {![info exists pkg.asroot]} {
+ ui_error "Packaging ${name} ${version} requires MacPorts 2.3.5 or greater (pkg.asroot support)"
+ return -code error "Incompatible MacPorts version"
+ }
+
+ # at this point the destroot has been pruned and bin doesn't exist
+ xinstall -d -m 0755 ${destroot}${prefix}/bin
+ # apache2 needs daemondo; ram a copy into the destroot so it will be packaged
+ xinstall -m 0755 ${prefix}/bin/daemondo ${destroot}${prefix}/bin/
+}
+
livecheck.type regex
livecheck.url ${homepage}download.cgi
livecheck.regex httpd-(2\.2\.\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160920/496b49dc/attachment.html>
More information about the macports-changes
mailing list