Changeset 152906 for trunk/dports/www


Ignore:
Timestamp:
Sep 20, 2016, 12:45:22 PM (2 years ago)
Author:
ctreleaven@…
Message:

apache2: add support for packaging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/apache2/Portfile

    r146274 r152906  
    77name                apache2
    88version             2.2.31
    9 revision            1
     9revision            2
    1010categories          www
    1111maintainers         ryandesign openmaintainer
     
    182182"${prefix}/${name}/bin/apachectl restart > /dev/null"
    183183
     184if {[info exists pkg.asroot]} {
     185        pkg.asroot      yes
     186}
     187
     188pre-pkg {
     189    if {![info exists pkg.asroot]} {
     190        ui_error "Packaging ${name} ${version} requires MacPorts 2.3.5 or greater (pkg.asroot support)"
     191        return -code error "Incompatible MacPorts version"
     192    }
     193
     194    # at this point the destroot has been pruned and bin doesn't exist
     195    xinstall -d -m 0755 ${destroot}${prefix}/bin
     196    # apache2 needs daemondo; ram a copy into the destroot so it will be packaged
     197    xinstall -m 0755 ${prefix}/bin/daemondo ${destroot}${prefix}/bin/
     198}
     199
    184200livecheck.type  regex
    185201livecheck.url   ${homepage}download.cgi
Note: See TracChangeset for help on using the changeset viewer.