diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2008-10-01 23:49:35 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2008-10-01 23:49:35 +0200 |
commit | 3b99d73fbbc1c596d6761d0d3662497a161524ef (patch) | |
tree | 486e628a26fa5adf0beed88a04d12339c2549f39 | |
parent | lighttpd 1.4.20 (diff) | |
download | portage-3b99d73fbbc1c596d6761d0d3662497a161524ef.tar.xz |
Update brezhoneg patch
3 files changed, 90 insertions, 91 deletions
diff --git a/www-servers/lighttpd/Manifest b/www-servers/lighttpd/Manifest index 5e74492a..f980a3c9 100644 --- a/www-servers/lighttpd/Manifest +++ b/www-servers/lighttpd/Manifest @@ -5,8 +5,8 @@ AUX 1.4.19-r2/07_all_lighttpd-1.4.19-closing_foreign_ssl_connections-dos-taketwo AUX 1.4.19-r2/10_all_lighttpd-1.4.18-dirlisting-sort.diff 3482 RMD160 def2d4cb50973a0a4c62a68e2455ea97273ec514 SHA1 54281eb0405bb73edf9a11e606f1099b94df7bb5 SHA256 5c5cc0976d99b73bc949b10ffd6343d0a9de7aa0a4a03bf92fe071a5c3f67e80 AUX 1.4.19-r2/11_all_lighttpd-1.4.18-dirlisting-brezhoneg-on-sort.diff 2960 RMD160 ef621718a87b32790514b639c2f5c7fd2d5e1ca9 SHA1 cf1e9eb509d150387708b76086adfc32c72d9078 SHA256 2620e3ae8bae994c3e9adfff062338f5c9482272c8ba5737216b48619c5cc743 AUX 1.4.20/03_all_lighttpd-1.4.11-errorlog-pipe.diff 4931 RMD160 7653167b0cd3fde6cb7d3d6fe4ae30a8d2e56ebe SHA1 bd0ff91b5caf447f78bcad66a444fbe3719897fb SHA256 2b1a253dda1dbc688ac072608656121f8c2d346a64be1080c65f2ca1d81f8e2d -AUX 1.4.20/10_all_lighttpd-1.4.18-dirlisting-sort.diff 3482 RMD160 def2d4cb50973a0a4c62a68e2455ea97273ec514 SHA1 54281eb0405bb73edf9a11e606f1099b94df7bb5 SHA256 5c5cc0976d99b73bc949b10ffd6343d0a9de7aa0a4a03bf92fe071a5c3f67e80 -AUX 1.4.20/11_all_lighttpd-1.4.18-dirlisting-brezhoneg-on-sort.diff 2960 RMD160 ef621718a87b32790514b639c2f5c7fd2d5e1ca9 SHA1 cf1e9eb509d150387708b76086adfc32c72d9078 SHA256 2620e3ae8bae994c3e9adfff062338f5c9482272c8ba5737216b48619c5cc743 +AUX 1.4.20/10_all_lighttpd-1.4.18-dirlisting-sort.diff 3291 RMD160 e1d689df560d6255fa7672bd0dbb089690e693ff SHA1 dee983ea4dda139514cf15d10e7fca1ab4561057 SHA256 0d85ed49589b3181504e065feff6b9a7df56457ee530aa120ca5a4d7cf965d07 +AUX 1.4.20/11_all_lighttpd-1.4.18-dirlisting-brezhoneg-on-sort.diff 3059 RMD160 b62da0dc5cba93fb7b5a69ceb43e222ee7ad8f5f SHA1 6d304d6edb540765f640a986ac60cc9e846511d3 SHA256 2f66c70cc4754569ac305869eeb239d6acf784fb7695d626e26e4b11e85ed77d AUX conf/lighttpd.conf 8182 RMD160 450cf40f4ec517331f8932618a3c492cb566e4f3 SHA1 16922786a79807fa3233d1af105a99582d3486a5 SHA256 c0f6951e00d4e8c928f1799a84976ab8bb536bd59a104c13ca9d1d3661d8cebd AUX conf/mime-types.conf 3291 RMD160 157c9a6f7d00e52c7d4118edcce8d1eb1e0a3c20 SHA1 3eec39060014e1498d3254919b10a64ca1e6ff00 SHA256 575231104d51fa1882c47021ab0aa00d615401059a6748d64453cb39aafba537 AUX conf/mod_cgi.conf 869 RMD160 1d447bad36822657d014990128891cbdb6169468 SHA1 30066f52e469339cc8a5df8864b4cc2d9c558c3d SHA256 322656b4cfd22ca9f1f8ab160e0b932f1646622422fd49c6fc82ab416223eecf diff --git a/www-servers/lighttpd/files/1.4.20/10_all_lighttpd-1.4.18-dirlisting-sort.diff b/www-servers/lighttpd/files/1.4.20/10_all_lighttpd-1.4.18-dirlisting-sort.diff index f4bb6a5d..f3e1c619 100644 --- a/www-servers/lighttpd/files/1.4.20/10_all_lighttpd-1.4.18-dirlisting-sort.diff +++ b/www-servers/lighttpd/files/1.4.20/10_all_lighttpd-1.4.18-dirlisting-sort.diff @@ -1,80 +1,79 @@ ---- src/mod_dirlisting.c.old 2007-10-01 14:57:24.000000000 +0200 -+++ src/mod_dirlisting.c 2007-10-01 15:36:12.000000000 +0200 -@@ -503,6 +503,73 @@ +--- src/mod_dirlisting.c.old 2008-10-01 23:37:28.823802605 +0200 ++++ src/mod_dirlisting.c 2008-10-01 23:42:36.127802256 +0200 +@@ -501,6 +501,72 @@ "}\n" "</style>\n" - ); -+ -+ BUFFER_APPEND_STRING_CONST(out, -+ "<script type=\"text/javascript\">\n" -+ "// <!--\n" -+ "var sort_column;\n" -+ "var prev_span = null;\n"); -+ -+ BUFFER_APPEND_STRING_CONST(out, -+ "function get_inner_text(el) {\n" -+ " if((typeof el == 'string')||(typeof el == 'undefined'))\n" -+ " return el;\n" -+ " if(el.innerText)\n" -+ " return el.innerText;\n" -+ " else {\n" -+ " var str = \"\";\n" -+ " var cs = el.childNodes;\n" -+ " var l = cs.length;\n" -+ " for (i=0;i<l;i++) {\n" -+ " if (cs[i].nodeType==1) str += get_inner_text(cs[i]);\n" -+ " else if (cs[i].nodeType==3) str += cs[i].nodeValue;\n" -+ " }\n" -+ " }\n" -+ " return str;\n" -+ "}\n"); -+ -+ BUFFER_APPEND_STRING_CONST(out, -+ "function sortfn(a,b) {\n" -+ " var at = get_inner_text(a.cells[sort_column]);\n" -+ " var bt = get_inner_text(b.cells[sort_column]);\n" -+ " if (a.cells[sort_column].className == 'int') {\n" -+ " return parseInt(at)-parseInt(bt);\n" -+ " } else {\n" -+ " aa = at.toLowerCase();\n" -+ " bb = bt.toLowerCase();\n" -+ " if (aa==bb) return 0;\n" -+ " else if (aa<bb) return -1;\n" -+ " else return 1;\n" -+ " }\n" -+ "}\n"); -+ -+ BUFFER_APPEND_STRING_CONST(out, -+ "function resort(lnk) {\n" -+ " var span = lnk.childNodes[1];\n" -+ " var table = lnk.parentNode.parentNode.parentNode.parentNode;\n" -+ " var rows = new Array();\n" -+ " for (j=1;j<table.rows.length;j++)\n" -+ " rows[j-1] = table.rows[j];\n" -+ " sort_column = lnk.parentNode.cellIndex;\n" -+ " rows.sort(sortfn);\n"); -+ -+ BUFFER_APPEND_STRING_CONST(out, -+ " if (prev_span != null) prev_span.innerHTML = '';\n" -+ " if (span.getAttribute('sortdir')=='down') {\n" -+ " span.innerHTML = '↑';\n" -+ " span.setAttribute('sortdir','up');\n" -+ " rows.reverse();\n" -+ " } else {\n" -+ " span.innerHTML = '↓';\n" -+ " span.setAttribute('sortdir','down');\n" -+ " }\n" -+ " for (i=0;i<rows.length;i++)\n" -+ " table.tBodies[0].appendChild(rows[i]);\n" -+ " prev_span = span;\n" -+ "}\n" -+ "// -->\n" -+ "</script>\n"); -+ + )); ++ buffer_append_string_len(out, CONST_STR_LEN( ++ "<script type=\"text/javascript\">\n" ++ "// <!--\n" ++ "var sort_column;\n" ++ "var prev_span = null;\n" ++ )); ++ buffer_append_string_len(out, CONST_STR_LEN( ++ "function get_inner_text(el) {\n" ++ " if((typeof el == 'string')||(typeof el == 'undefined'))\n" ++ " return el;\n" ++ " if(el.innerText)\n" ++ " return el.innerText;\n" ++ " else {\n" ++ " var str = \"\";\n" ++ " var cs = el.childNodes;\n" ++ " var l = cs.length;\n" ++ " for (i=0;i<l;i++) {\n" ++ " if (cs[i].nodeType==1) str += get_inner_text(cs[i]);\n" ++ " else if (cs[i].nodeType==3) str += cs[i].nodeValue;\n" ++ " }\n" ++ " }\n" ++ " return str;\n" ++ "}\n" ++ )); ++ buffer_append_string_len(out, CONST_STR_LEN( ++ "function sortfn(a,b) {\n" ++ " var at = get_inner_text(a.cells[sort_column]);\n" ++ " var bt = get_inner_text(b.cells[sort_column]);\n" ++ " if (a.cells[sort_column].className == 'int') {\n" ++ " return parseInt(at)-parseInt(bt);\n" ++ " } else {\n" ++ " aa = at.toLowerCase();\n" ++ " bb = bt.toLowerCase();\n" ++ " if (aa==bb) return 0;\n" ++ " else if (aa<bb) return -1;\n" ++ " else return 1;\n" ++ " }\n" ++ "}\n" ++ )); ++ buffer_append_string_len(out, CONST_STR_LEN( ++ "function resort(lnk) {\n" ++ " var span = lnk.childNodes[1];\n" ++ " var table = lnk.parentNode.parentNode.parentNode.parentNode;\n" ++ " var rows = new Array();\n" ++ " for (j=1;j<table.rows.length;j++)\n" ++ " rows[j-1] = table.rows[j];\n" ++ " sort_column = lnk.parentNode.cellIndex;\n" ++ " rows.sort(sortfn);\n" ++ )); ++ buffer_append_string_len(out, CONST_STR_LEN( ++ " if (prev_span != null) prev_span.innerHTML = '';\n" ++ " if (span.getAttribute('sortdir')=='down') {\n" ++ " span.innerHTML = '↑';\n" ++ " span.setAttribute('sortdir','up');\n" ++ " rows.reverse();\n" ++ " } else {\n" ++ " span.innerHTML = '↓';\n" ++ " span.setAttribute('sortdir','down');\n" ++ " }\n" ++ " for (i=0;i<rows.length;i++)\n" ++ " table.tBodies[0].appendChild(rows[i]);\n" ++ " prev_span = span;\n" ++ "}\n" ++ "// -->\n" ++ "</script>\n" ++ )); } - BUFFER_APPEND_STRING_CONST(out, "</head>\n<body>\n"); -@@ -532,10 +599,10 @@ + buffer_append_string_len(out, CONST_STR_LEN("</head>\n<body>\n")); +@@ -530,10 +596,10 @@ "<table summary=\"Directory Listing\" cellpadding=\"0\" cellspacing=\"0\">\n" "<thead>" "<tr>" diff --git a/www-servers/lighttpd/files/1.4.20/11_all_lighttpd-1.4.18-dirlisting-brezhoneg-on-sort.diff b/www-servers/lighttpd/files/1.4.20/11_all_lighttpd-1.4.18-dirlisting-brezhoneg-on-sort.diff index aa81da57..403f0524 100644 --- a/www-servers/lighttpd/files/1.4.20/11_all_lighttpd-1.4.18-dirlisting-brezhoneg-on-sort.diff +++ b/www-servers/lighttpd/files/1.4.20/11_all_lighttpd-1.4.18-dirlisting-brezhoneg-on-sort.diff @@ -1,24 +1,24 @@ ---- src/mod_dirlisting.c.ori 2007-11-06 19:22:03.456537443 +0100 -+++ src/mod_dirlisting.c 2007-11-06 19:22:56.430836948 +0100 +--- src/mod_dirlisting.c.old 2008-10-01 23:43:40.691802940 +0200 ++++ src/mod_dirlisting.c 2008-10-01 23:45:17.791801929 +0200 @@ -458,7 +458,7 @@ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n" "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n" "<head>\n" - "<title>Index of " + "<title>Taolenn verr " - ); + )); buffer_append_string_encoded(out, CONST_BUF_LEN(con->uri.path), ENCODING_MINIMAL_XML); - BUFFER_APPEND_STRING_CONST(out, "</title>\n"); -@@ -591,7 +591,7 @@ + buffer_append_string_len(out, CONST_STR_LEN("</title>\n")); +@@ -588,7 +588,7 @@ stream_close(&s); } -- BUFFER_APPEND_STRING_CONST(out, "<h2>Index of "); -+ BUFFER_APPEND_STRING_CONST(out, "<h2>Taolenn verr "); +- buffer_append_string_len(out, CONST_STR_LEN("<h2>Index of ")); ++ buffer_append_string_len(out, CONST_STR_LEN("<h2>Taolenn verr ")); buffer_append_string_encoded(out, CONST_BUF_LEN(con->uri.path), ENCODING_MINIMAL_XML); - BUFFER_APPEND_STRING_CONST(out, + buffer_append_string_len(out, CONST_STR_LEN( "</h2>\n" -@@ -599,18 +599,18 @@ +@@ -596,18 +596,18 @@ "<table summary=\"Directory Listing\" cellpadding=\"0\" cellspacing=\"0\">\n" "<thead>" "<tr>" @@ -27,7 +27,7 @@ - "<th class=\"s\"><a href=\"#\" class=\"sortheader\" onclick=\"resort(this);return false;\">Size <span class=\"sortarrow\"></span></a></th>" - "<th class=\"t\"><a href=\"#\" class=\"sortheader\" onclick=\"resort(this);return false;\">Type <span class=\"sortarrow\"></span></a></th>" + "<th class=\"n\"><a href=\"#\" class=\"sortheader\" onclick=\"resort(this);return false;\">Anv <span class=\"sortarrow\"></span></a></th>" -+ "<th class=\"m\"><a href=\"#\" class=\"sortheader\" onclick=\"resort(this);return false;\">Kemm da ziwezhañ <span class=\"sortarrow\"></span></a></th>" ++ "<th class=\"m\"><a href=\"#\" class=\"sortheader\" onclick=\"resort(this);return false;\">Kemm da ziwezhañ <span class=\"sortarrow\"></span></a></th>" + "<th class=\"s\"><a href=\"#\" class=\"sortheader\" onclick=\"resort(this);return false;\">Brasentez <span class=\"sortarrow\"></span></a></th>" + "<th class=\"t\"><a href=\"#\" class=\"sortheader\" onclick=\"resort(this);return false;\">Benaos <span class=\"sortarrow\"></span></a></th>" "</tr>" @@ -39,16 +39,16 @@ "<td class=\"m\"> </td>" "<td class=\"s\">- </td>" - "<td class=\"t\">Directory</td>" -+ "<td class=\"t\">Roll Skridoù</td>" ++ "<td class=\"t\">Roll Skridoù</td>" "</tr>\n" - ); + )); } -@@ -835,7 +835,7 @@ +@@ -832,7 +832,7 @@ buffer_append_string_encoded(out, DIRLIST_ENT_NAME(tmp), tmp->namelen, ENCODING_MINIMAL_XML); - BUFFER_APPEND_STRING_CONST(out, "</a>/</td><td class=\"m\">"); + buffer_append_string_len(out, CONST_STR_LEN("</a>/</td><td class=\"m\">")); buffer_append_string_len(out, datebuf, sizeof(datebuf) - 1); -- BUFFER_APPEND_STRING_CONST(out, "</td><td class=\"s\">- </td><td class=\"t\">Directory</td></tr>\n"); -+ BUFFER_APPEND_STRING_CONST(out, "</td><td class=\"s\">- </td><td class=\"t\">Roll Skridoù</td></tr>\n"); +- buffer_append_string_len(out, CONST_STR_LEN("</td><td class=\"s\">- </td><td class=\"t\">Directory</td></tr>\n")); ++ buffer_append_string_len(out, CONST_STR_LEN("</td><td class=\"s\">- </td><td class=\"t\">Roll Skridoù</td></tr>\n")); free(tmp); } |