Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60675 closed enhancement (fixed)

Add Variant "+http2" to the apache2 port

Reported by: alphanull (alphanull) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula)
Port: apache2

Description (last modified by alphanull (alphanull))

I need to run my local webserver with http2 enabled for developing and testing. However, there is currently no built in support for this package. So I am forced to manually recompile apache with a modified port file after each update, which is quite cumbersome!

But actually I think the changes won't be that complicated - I am no expert with portfiles, but something similar like this should do it:

variant http2 description {Enable HTTP/2 support} {
    depends_lib-append port:nghttp2
    configure.args-append --enable-http2
     configure.args-append --with-nghttp2=/opt/local/lib/libnghttp2.14.dylib \
}

Change History (5)

comment:1 Changed 4 years ago by alphanull (alphanull)

Description: modified (diff)

comment:2 Changed 4 years ago by mf2k (Frank Schima)

In the future, please add the port maintainer(s) to Cc (port info --maintainers apache2), if any.

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Cc: Schamschula added
Keywords: apache2 http/2 removed
Owner: set to ryandesign
Status: newassigned

comment:4 Changed 4 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In efa3881cce68a0637c61e31415f8c0e385ae72a6/macports-ports (master):

apache2: add http2 variant

Closes: #60675

comment:5 Changed 4 years ago by alphanull (alphanull)

Just wanted to say: thank you for adding this so fast! At first it took while until the addition was reflected in the updated portfiles, but now all works as expected. Thumbs up!

Note: See TracTickets for help on using tickets.