[vhffs-dev] [1520] Added installation instructions for lighttpd mod-partialcontentabuse

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1520
Author:   beuss
Date:     2009-08-27 22:59:07 +0200 (Thu, 27 Aug 2009)
Log Message:
-----------
Added installation instructions for lighttpd mod-partialcontentabuse

Modified Paths:
--------------
    trunk/vhffs-packages/patches/lighttpd/mod_partialcontentabuse.c

Added Paths:
-----------
    trunk/vhffs-packages/patches/lighttpd/README
    trunk/vhffs-packages/patches/lighttpd/partialcontentabuse-debian.patch
    trunk/vhffs-packages/patches/lighttpd/partialcontentabuse.patch

Added: trunk/vhffs-packages/patches/lighttpd/README
===================================================================
--- trunk/vhffs-packages/patches/lighttpd/README	                        (rev 0)
+++ trunk/vhffs-packages/patches/lighttpd/README	2009-08-27 20:59:07 UTC (rev 1520)
@@ -0,0 +1,4 @@
+Put mod_partialcontentabuse.c in lighttpd' sources src/ subdirectory. Apply
+needed patches (generic one and optional debian one).
+Compile.
+Enjoy.

Modified: trunk/vhffs-packages/patches/lighttpd/mod_partialcontentabuse.c
===================================================================
--- trunk/vhffs-packages/patches/lighttpd/mod_partialcontentabuse.c	2009-08-19 17:32:23 UTC (rev 1519)
+++ trunk/vhffs-packages/patches/lighttpd/mod_partialcontentabuse.c	2009-08-27 20:59:07 UTC (rev 1520)
@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2008-2009 Sylvain Rochet (gradator at gradator dot net)
+ */
+
+/*
+ * Returns a 403 forbidden if the same client requests the same path multiple
+ * times.
+ * Put this in src/ subdirectory of lighttpd and patch the Makefile.
+ */
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>

Added: trunk/vhffs-packages/patches/lighttpd/partialcontentabuse-debian.patch
===================================================================
--- trunk/vhffs-packages/patches/lighttpd/partialcontentabuse-debian.patch	                        (rev 0)
+++ trunk/vhffs-packages/patches/lighttpd/partialcontentabuse-debian.patch	2009-08-27 20:59:07 UTC (rev 1520)
@@ -0,0 +1,19 @@
+diff -urN lighttpd-1.4.23/debian/control lighttpd.patched/lighttpd-1.4.23/debian/control
+--- lighttpd-1.4.23/debian/control	2009-08-27 20:44:30.000000000 +0000
++++ lighttpd.patched/lighttpd-1.4.23/debian/control	2009-08-27 20:37:55.000000000 +0000
+@@ -87,6 +87,15 @@
+  or at a later stage, when the doc-root is known and the physical-path is 
+  already setup
+ 
++Package: lighttpd-mod-partialcontentabuse
++Homepage: http://www.vhffs.org
++Architecture: any
++Depends: lighttpd (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
++Description: Forbid multiple connections for the same file download on lighttpd.
++ mod_partialcontentabuse returns a 403 error if the same client opens multiple
++ concurrent connections to download a single file.
++
++
+ Package: lighttpd-mod-webdav
+ Homepage: http://www.lighttpd.net
+ Architecture: any

Added: trunk/vhffs-packages/patches/lighttpd/partialcontentabuse.patch
===================================================================
--- trunk/vhffs-packages/patches/lighttpd/partialcontentabuse.patch	                        (rev 0)
+++ trunk/vhffs-packages/patches/lighttpd/partialcontentabuse.patch	2009-08-27 20:59:07 UTC (rev 1520)
@@ -0,0 +1,15 @@
+diff -urN lighttpd-1.4.23/src/Makefile.am lighttpd.patched/lighttpd-1.4.23/src/Makefile.am
+--- lighttpd-1.4.23/src/Makefile.am	2009-06-16 13:45:42.000000000 +0000
++++ lighttpd.patched/lighttpd-1.4.23/src/Makefile.am	2009-08-27 20:33:53.000000000 +0000
+@@ -95,6 +95,11 @@
+ common_libadd =
+ endif
+ 
++lib_LTLIBRARIES += mod_partialcontentabuse.la
++mod_flv_streaming_la_SOURCES = mod_partialcontentabuse.c
++mod_flv_streaming_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
++mod_flv_streaming_la_LIBADD = $(common_libadd)
++
+ lib_LTLIBRARIES += mod_flv_streaming.la
+ mod_flv_streaming_la_SOURCES = mod_flv_streaming.c
+ mod_flv_streaming_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/