linamh/www-apps/dirlisting/dirlisting-2.ebuild

46 lines
903 B
Bash
Raw Normal View History

# Copyright 1999-2010 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 ~arm ~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
edos2unix dlf/i.php
edos2unix dlf/styles.css
}
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
}