Skip to content
Browse files

Add in a mod_spdy ebuild

  • Loading branch information...
1 parent 3f49753 commit 43c86df98623707eb5e58047ac31060b67064500 @kormoc committed
View
2 www-apache/mod_spdy/Manifest
@@ -0,0 +1,2 @@
+AUX 80_mod_spdy.conf 158 RMD160 8e9e478b3da2159f2ca71e36f225137fc9107d4b SHA1 24342a50c3ded4c3c78533032122f1d341a0d000 SHA256 94c729f2bfec358657d35d1afa56d93434ac17a5f0da1cea6bab54efc2466332
+EBUILD mod_spdy-9999.ebuild 1538 RMD160 23b3b44337338d3ce749f451dda9ee3fe897fdb0 SHA1 63fa9a73cf7cfcc7b0256dc2f4b0b9d659376f28 SHA256 f7034bed87267a02e5f9cf7ee6e80c791f6528afb6481f57a02c31b82e7fa52d
View
6 www-apache/mod_spdy/files/80_mod_spdy.conf
@@ -0,0 +1,6 @@
+<IfDefine SPDY>
+ LoadModule spdy_module /usr/lib/apache2/modules/mod_spdy.so
+ <IfModule spdy_module>
+ SpdyEnabled on
+ </IfModule>
+</IfDefine>
View
63 www-apache/mod_spdy/mod_spdy-9999.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit apache-module eutils subversion
+
+DESCRIPTION="A SPDY module for the Apache HTTP server v2.2"
+HOMEPAGE="http://code.google.com/p/mod-spdy"
+
+ESVN_REPO_URI="http://mod-spdy.googlecode.com/svn/trunk/src"
+EGCLIENT_REPO_URI="http://src.chromium.org/svn/trunk/tools/depot_tools"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-vcs/subversion
+ dev-util/gperf"
+RDEPEND="www-servers/apache[ssl]"
+
+APACHE2_MOD_FILE="${S}/out/Release/${PN}.so"
+APACHE2_MOD_CONF="80_${PN//-/_}"
+APACHE2_MOD_DEFINE="SPDY"
+
+need_apache2_2
+
+src_unpack() {
+ # all the dirty job in WORKDIR
+ cd "${WORKDIR}"
+
+ # fetch depot_tools
+ einfo "fetch depot_tools -->"
+ svn co "${EGCLIENT_REPO_URI}"
+ EGCLIENT="${WORKDIR}"/depot_tools/gclient
+
+ # manually fetch sources in distfiles
+ if [[ ! -f .gclient ]]; then
+ einfo "gclient config -->"
+ ${EGCLIENT} config ${ESVN_REPO_URI} || die "gclient: error creating config"
+ fi
+
+ # run gclient synchronization
+ einfo "gclient sync -->"
+ einfo " repository: ${ESVN_REPO_URI}"
+ ${EGCLIENT} sync --force || die "gclient: unable to sync"
+
+ # move the sources to the working dir
+ rsync -rlpgo --exclude=".svn" --exclude=".glient*" src/ "${S}"
+ einfo " working copy: ${S}"
+}
+
+src_compile() {
+ chmod +x build/gyp_chromium
+ emake BUILDTYPE=Release || die "emake failed"
+}
+
+src_install() {
+ mv -f out/Release/libmod_spdy.so out/Release/${PN}.so
+ apache-module_src_install
+}

0 comments on commit 43c86df

Please sign in to comment.
Something went wrong with that request. Please try again.