From c78e2d93c2effd934b0681a6f2855a692ae249d7 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Wed, 23 Jan 2008 14:40:03 +0000 Subject: [PATCH] Added apache tomcat connector module svn path=/nixpkgs/trunk/; revision=10260 --- .../apache-modules/tomcat-connectors/builder.sh | 8 ++++++++ .../apache-modules/tomcat-connectors/default.nix | 14 ++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 pkgs/servers/http/apache-modules/tomcat-connectors/builder.sh create mode 100644 pkgs/servers/http/apache-modules/tomcat-connectors/default.nix diff --git a/pkgs/servers/http/apache-modules/tomcat-connectors/builder.sh b/pkgs/servers/http/apache-modules/tomcat-connectors/builder.sh new file mode 100644 index 000000000000..70b609e64656 --- /dev/null +++ b/pkgs/servers/http/apache-modules/tomcat-connectors/builder.sh @@ -0,0 +1,8 @@ +source $stdenv/setup + +tar xfvz $src +cd tomcat-connectors-*-src/native +./configure --with-apxs=$apacheHttpd/bin/apxs --with-java-home=$jdk +make +ensureDir $out/modules +cp apache-2.0/mod_jk.so $out/modules diff --git a/pkgs/servers/http/apache-modules/tomcat-connectors/default.nix b/pkgs/servers/http/apache-modules/tomcat-connectors/default.nix new file mode 100644 index 000000000000..5c33c444c0d6 --- /dev/null +++ b/pkgs/servers/http/apache-modules/tomcat-connectors/default.nix @@ -0,0 +1,14 @@ +{stdenv, fetchurl, apacheHttpd, jdk}: + +stdenv.mkDerivation { + name = "tomcat-connectors-1.2.26"; + builder = ./builder.sh; + + src = fetchurl { + url = http://apache.proserve.nl/tomcat/tomcat-connectors/jk/source/jk-1.2.26/tomcat-connectors-1.2.26-src.tar.gz; + md5 = "feaec245136bc4d99a9dde95a00ea93c"; + }; + + inherit apacheHttpd; + buildInputs = [apacheHttpd jdk]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 627c7e26ff7d..b66fbcca4709 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3028,6 +3028,10 @@ rec { inherit fetchurl stdenv apacheHttpd python; }; + tomcat_connectors = import ../servers/http/apache-modules/tomcat-connectors { + inherit fetchurl stdenv apacheHttpd jdk; + }; + mysql = import ../servers/sql/mysql { inherit fetchurl stdenv ncurses zlib perl; ps = procps; /* !!! Linux only */