about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2014-05-19 18:50:38 -0400
committerDomen Kožar <domen@dev.si>2014-05-25 15:27:58 +0200
commit6d173e2a81266f48e909f02edc4113478396cbd5 (patch)
treeeb222c2f491f6ac13765aa5931074bf6d49839cd /pkgs
parent7ce1ffbfa594a51fc7c27d899624cc4c64da0a83 (diff)
downloadnixlib-6d173e2a81266f48e909f02edc4113478396cbd5.tar
nixlib-6d173e2a81266f48e909f02edc4113478396cbd5.tar.gz
nixlib-6d173e2a81266f48e909f02edc4113478396cbd5.tar.bz2
nixlib-6d173e2a81266f48e909f02edc4113478396cbd5.tar.lz
nixlib-6d173e2a81266f48e909f02edc4113478396cbd5.tar.xz
nixlib-6d173e2a81266f48e909f02edc4113478396cbd5.tar.zst
nixlib-6d173e2a81266f48e909f02edc4113478396cbd5.zip
spawn-fcgi: Add package
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/http/spawn-fcgi/default.nix26
-rw-r--r--pkgs/servers/http/spawn-fcgi/show_version.patch14
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/servers/http/spawn-fcgi/default.nix b/pkgs/servers/http/spawn-fcgi/default.nix
new file mode 100644
index 000000000000..7c11aa8e8378
--- /dev/null
+++ b/pkgs/servers/http/spawn-fcgi/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchsvn, autoconf, automake }:
+
+stdenv.mkDerivation rec {
+  name = "spawn-fcgi-${version}";
+  version = "1.6.3";
+
+  src = fetchsvn {
+    url = "svn://svn.lighttpd.net/spawn-fcgi/tags/spawn-fcgi-${version}";
+    sha256 = "06f0zw3rja42d9vg8j68nqkm3mn5pfzzhwfadpvs4aidh6kz9p42";
+  };
+
+  buildInputs = [ automake autoconf ];
+
+  patches = [ ./show_version.patch ];
+
+  preConfigure = ''
+    ./autogen.sh
+  '';
+
+  meta = with stdenv.lib; {
+    homepage    = "http://redmine.lighttpd.net/projects/spawn-fcgi";
+    description = "Provides an interface to external programs that support the FastCGI interface";
+    license     = licenses.bsd3;
+    maintainers = with maintainers; [ cstrahan ];
+  };
+}
diff --git a/pkgs/servers/http/spawn-fcgi/show_version.patch b/pkgs/servers/http/spawn-fcgi/show_version.patch
new file mode 100644
index 000000000000..90c64ed66209
--- /dev/null
+++ b/pkgs/servers/http/spawn-fcgi/show_version.patch
@@ -0,0 +1,14 @@
+diff --git a/src/spawn-fcgi.c b/src/spawn-fcgi.c
+index 7f3f594..2f1046f 100644
+--- a/src/spawn-fcgi.c
++++ b/src/spawn-fcgi.c
+@@ -405,8 +405,7 @@ static int find_user_group(const char *user, const char *group, uid_t *uid, gid_
+ 
+ static void show_version () {
+ 	write(1, CONST_STR_LEN(
+-		PACKAGE_DESC \
+-		"Build-Date: " __DATE__ " " __TIME__ "\n"
++		PACKAGE_DESC "\n"
+ 	));
+ }
+ 
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index aadabfdceb04..4b0bdb32fb71 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6769,6 +6769,8 @@ let
 
   sipwitch = callPackage ../servers/sip/sipwitch { };
 
+  spawn_fcgi = callPackage ../servers/http/spawn-fcgi { };
+
   squids = recurseIntoAttrs( import ../servers/squid/squids.nix {
     inherit fetchurl stdenv perl lib composableDerivation
       openldap pam db cyrus_sasl kerberos libcap expat libxml2 libtool