Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 611E318948 for ; Tue, 30 Jun 2015 15:26:33 +0000 (UTC) Received: (qmail 70711 invoked by uid 500); 30 Jun 2015 15:26:24 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 69997 invoked by uid 500); 30 Jun 2015 15:26:23 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 68408 invoked by uid 99); 30 Jun 2015 15:26:22 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2015 15:26:22 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id A23B0AC08DF for ; Tue, 30 Jun 2015 15:26:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1688474 [21/21] - in /httpd/httpd/trunk/modules/http2: ./ m4/ mod-h2.xcodeproj/ mod-h2.xcodeproj/project.xcworkspace/ mod-h2.xcodeproj/project.xcworkspace/xcshareddata/ mod-h2.xcodeproj/xcuserdata/ mod-h2.xcodeproj/xcuserdata/sei.xcuserdat... Date: Tue, 30 Jun 2015 15:26:19 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150630152622.A23B0AC08DF@hades.apache.org> Added: httpd/httpd/trunk/modules/http2/setup/Makefile.am URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/setup/Makefile.am?rev=1688474&view=auto ============================================================================== --- httpd/httpd/trunk/modules/http2/setup/Makefile.am (added) +++ httpd/httpd/trunk/modules/http2/setup/Makefile.am Tue Jun 30 15:26:16 2015 @@ -0,0 +1,29 @@ +# Copyright 2015 greenbytes GmbH (https://www.greenbytes.de) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +SUBDIRS = + +EXTRA_DIST = \ + h2.load \ + h2.conf \ + install-config.sh + + +ACLOCAL_AMFLAGS = -I m4 + +SYSCONF_DIR = @SYSCONF_DIR@ + +# overwrite install target +install: + @bash install-config.sh $(SYSCONF_DIR) $(DESTDIR) Added: httpd/httpd/trunk/modules/http2/setup/h2.conf URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/setup/h2.conf?rev=1688474&view=auto ============================================================================== --- httpd/httpd/trunk/modules/http2/setup/h2.conf (added) +++ httpd/httpd/trunk/modules/http2/setup/h2.conf Tue Jun 30 15:26:16 2015 @@ -0,0 +1 @@ +H2Engine on Added: httpd/httpd/trunk/modules/http2/setup/h2.load URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/setup/h2.load?rev=1688474&view=auto ============================================================================== --- httpd/httpd/trunk/modules/http2/setup/h2.load (added) +++ httpd/httpd/trunk/modules/http2/setup/h2.load Tue Jun 30 15:26:16 2015 @@ -0,0 +1 @@ +LoadModule h2_module modules/mod_h2.so Added: httpd/httpd/trunk/modules/http2/setup/install-config.sh URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/setup/install-config.sh?rev=1688474&view=auto ============================================================================== --- httpd/httpd/trunk/modules/http2/setup/install-config.sh (added) +++ httpd/httpd/trunk/modules/http2/setup/install-config.sh Tue Jun 30 15:26:16 2015 @@ -0,0 +1,60 @@ +#!/bin/sh +# Copyright 2015 greenbytes GmbH (https://www.greenbytes.de) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +SYSCONF="$1" +DESTDIR="$2" +A2ENMOD="$( type -p a2enmod )" + +INSTALL_LOC="" + +if [ -d "$DESTDIR" ]; then + INSTALL_LOC="$DESTDIR/$SYSCONF" +else + INSTALL_LOC="$SYSCONF" +fi +echo "[DEBUG] Install location is assumed to be $INSTALL_LOC" +if [ -d "$SYSCONF/mods-available" ]; then + echo -n "Debian layout assumed, installing mod_h2 config in $INSTALL_LOC..." + cp h2.conf h2.load "$INSTALL_LOC/mods-available" + echo "done." + if [ -x "$A2ENMOD" ] && [ ! -d "$DESTDIR" ]; then + echo -n "enabling mod_h2..." + "$A2ENMOD" mod_h2 + echo "done." + fi +elif [ -d "$SYSCONF/../conf.d" ] && [ -d "$SYSCONF/../conf.modules.d" ]; then + # Odds are this is a Fedora box! + echo -n "RHEL/Fedora layout assumed, installing mod_h2 config in $INSTALL_LOC..." + cp h2.conf "$INSTALL_LOC/../conf.d" + cp h2.load "$INSTALL_LOC/../conf.modules.d/10-h2.conf" + echo "done." +else + cat <