www-apps/dirlisting: initial checkin
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2192 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
234122c987
commit
3cb2bca878
5
www-apps/dirlisting/Manifest
Normal file
5
www-apps/dirlisting/Manifest
Normal file
@ -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
|
43
www-apps/dirlisting/dirlisting-2.ebuild
Normal file
43
www-apps/dirlisting/dirlisting-2.ebuild
Normal file
@ -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[pcre] >=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
|
||||||
|
}
|
19
www-apps/dirlisting/files/dirlistingv2-dirhandling-1.patch
Normal file
19
www-apps/dirlisting/files/dirlistingv2-dirhandling-1.patch
Normal file
@ -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();
|
||||||
|
}
|
||||||
|
}
|
1
www-apps/dirlisting/files/postinstall-en.txt
Normal file
1
www-apps/dirlisting/files/postinstall-en.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Remember to edit the config file
|
34
www-apps/dirlisting/metadata.xml
Normal file
34
www-apps/dirlisting/metadata.xml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<!--
|
||||||
|
$Header: /var/cvsroot/gentoo-x86/skel.metadata.xml,v 1.18 2008/07/28 19:27:05 cardoe Exp $
|
||||||
|
|
||||||
|
This is the example metadata file.
|
||||||
|
The root element of this file is <pkgmetadata>. Within this element a
|
||||||
|
number of subelements are allowed: herd, maintainer, and
|
||||||
|
longdescription. herd is a required subelement.
|
||||||
|
|
||||||
|
For a full description look at:
|
||||||
|
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4
|
||||||
|
|
||||||
|
|
||||||
|
Before committing, please remove the comments from this file. They are
|
||||||
|
not relevant for general metadata.xml files.
|
||||||
|
-->
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>no-herd</herd>
|
||||||
|
<maintainer>
|
||||||
|
<email>@gentoo.org</email>
|
||||||
|
<!-- <description>Description of the maintainership</description> -->
|
||||||
|
</maintainer>
|
||||||
|
<!-- <longdescription>Long description of the package</longdescription> -->
|
||||||
|
<!--
|
||||||
|
<use>
|
||||||
|
<flag name='flag'>Description of how USE='flag' affects this package</flag>
|
||||||
|
<flag name='userland_GNU'>Description of how USERLAND='GNU' affects this
|
||||||
|
package</flag>
|
||||||
|
<flag name='aspell'>Uses <pkg>app-text/aspell</pkg> for spell checking.
|
||||||
|
Requires an installed dictionary from <cat>app-dicts</cat></flag>
|
||||||
|
</use>
|
||||||
|
-->
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user