From 3cb2bca8787fef5fc90abd927aeb6145151af61a Mon Sep 17 00:00:00 2001 From: geos_one Date: Sun, 9 May 2010 10:41:11 +0000 Subject: [PATCH] www-apps/dirlisting: initial checkin git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2192 6952d904-891a-0410-993b-d76249ca496b --- www-apps/dirlisting/Manifest | 5 +++ www-apps/dirlisting/dirlisting-2.ebuild | 43 +++++++++++++++++++ .../files/dirlistingv2-dirhandling-1.patch | 19 ++++++++ www-apps/dirlisting/files/postinstall-en.txt | 1 + www-apps/dirlisting/metadata.xml | 34 +++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 www-apps/dirlisting/Manifest create mode 100644 www-apps/dirlisting/dirlisting-2.ebuild create mode 100644 www-apps/dirlisting/files/dirlistingv2-dirhandling-1.patch create mode 100644 www-apps/dirlisting/files/postinstall-en.txt create mode 100644 www-apps/dirlisting/metadata.xml diff --git a/www-apps/dirlisting/Manifest b/www-apps/dirlisting/Manifest new file mode 100644 index 00000000..bad53353 --- /dev/null +++ b/www-apps/dirlisting/Manifest @@ -0,0 +1,5 @@ +AUX dirlistingv2-dirhandling-1.patch 585 RMD160 986543dd0304f4dd8b693e70196bb4b0409888df SHA1 032e6aadf10033f08342ef918defb19643aa07b0 SHA256 2a8bdc67b2c0e296fe65e569658cc53d229d13b8a8ee22d022a456785736f99b +AUX postinstall-en.txt 33 RMD160 efe4c0fe002dce8f29cb94269d0d0c6b01fa6d89 SHA1 5cd6e61f35ea434e36720c9dd6922585dff9cc67 SHA256 c5c688eb7c8da48d82cc9fd5e062e7f02880b58f7d293b4af97c23d5884974da +DIST dirlistingv2.zip 19384 RMD160 54f749f60bd264b7ef21c9113d96f61495dbd2b0 SHA1 6b92c8404a3641338e602dd748cbd28924fbebb8 SHA256 f9175fc3929e4ec033e74bd500cad3fe6c5837b5c6a7f4efec3082495c37019e +EBUILD dirlisting-2.ebuild 851 RMD160 a611145799d41add4d3e8c735311ce91db071536 SHA1 5bad8fdac4f4d0c1837f896106af4f80b17609b8 SHA256 a926d4763f0e1314bb04c5e7bcdee7a22592be263a2a72fca048ea778904876b +MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5 diff --git a/www-apps/dirlisting/dirlisting-2.ebuild b/www-apps/dirlisting/dirlisting-2.ebuild new file mode 100644 index 00000000..9f8a071f --- /dev/null +++ b/www-apps/dirlisting/dirlisting-2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit webapp depend.php eutils + +DESCRIPTION="php Directory listing script" +HOMEPAGE="http://www.evoluted.net/community/code/directorylisting.php" +SRC_URI="http://www.evoluted.net/files/dirlistingv2.zip" + +LICENSE="GPL-2" +KEYWORDS="alpha amd64 ~ppc sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="|| ( =dev-lang/php-5.3 )" + +need_httpd_cgi +need_php_httpd + +S="${WORKDIR}" + +pkg_setup() { + webapp_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/dirlistingv2-dirhandling-1.patch + edos2unix index.php +} + +src_install() { + webapp_src_preinst + + insinto "${MY_HTDOCSDIR}" + doins -r . + + webapp_configfile "${MY_HTDOCSDIR}"/index.php + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_src_install +} diff --git a/www-apps/dirlisting/files/dirlistingv2-dirhandling-1.patch b/www-apps/dirlisting/files/dirlistingv2-dirhandling-1.patch new file mode 100644 index 00000000..7255008f --- /dev/null +++ b/www-apps/dirlisting/files/dirlistingv2-dirhandling-1.patch @@ -0,0 +1,19 @@ +Submitted By: Mario Fetka (mario dot fetka at gmail dot com) +Date: 2008-11-23 +Initial Package Version: v2 +Origin: me +Upstream Status: unknown +Description: correct directory handling + +diff -Naur dirlistingv2.orig/index.php dirlistingv2/index.php +--- dirlistingv2.orig/index.php 2005-11-09 00:49:36.000000000 +0000 ++++ dirlistingv2/index.php 2008-11-23 10:49:54.933004943 +0000 +@@ -249,7 +249,7 @@ + + if($displayindex) { + if(in_array(strtolower($file), $indexfiles)) { +- header("Location: $file"); ++ header("Location: $leadon$file"); + die(); + } + } diff --git a/www-apps/dirlisting/files/postinstall-en.txt b/www-apps/dirlisting/files/postinstall-en.txt new file mode 100644 index 00000000..7e1cae07 --- /dev/null +++ b/www-apps/dirlisting/files/postinstall-en.txt @@ -0,0 +1 @@ +Remember to edit the config file diff --git a/www-apps/dirlisting/metadata.xml b/www-apps/dirlisting/metadata.xml new file mode 100644 index 00000000..46a44e57 --- /dev/null +++ b/www-apps/dirlisting/metadata.xml @@ -0,0 +1,34 @@ + + + + +no-herd + + @gentoo.org + + + + +