You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.0 KiB

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=0
inherit webapp
DESCRIPTION="drraw is a simple web based presentation front-end for RRDtool"
HOMEPAGE="http://web.taranis.org/drraw"
SRC_URI="http://web.taranis.org/${PN}/dist/${P}.tgz"
LICENSE="GPL-2"
KEYWORDS="ppc ~x86"
IUSE=""
RDEPEND=">=dev-lang/perl-5.6
dev-perl/CGI
>=net-analyzer/rrdtool-1.0.47"
need_httpd_cgi
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s|/usr/local/bin/perl|/usr/bin/perl|" drraw.cgi
sed -i \
-e "s|/somewhere/drraw/saved|/tmp|" \
-e "s|/somewhere/drraw/tmp|/tmp|" \
drraw.conf
}
src_install() {
webapp_src_preinst
dodoc CHANGES INSTALL README.EVENTS WISHLIST
rm CHANGES INSTALL README.EVENTS WISHLIST
insinto "${MY_CGIBINDIR}"
doins drraw.conf
exeinto "${MY_CGIBINDIR}"
doexe drraw.cgi
insinto "${MY_ICONSDIR}"
doins icons/*.gif
webapp_configfile "${MY_CGIBINDIR}"/drraw.conf
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
webapp_src_install
}