From 16478abc16a796c42248688b1df122489d530446 Mon Sep 17 00:00:00 2001 From: geos_one Date: Thu, 3 Sep 2009 14:01:10 +0000 Subject: [PATCH] add glpi git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@1537 6952d904-891a-0410-993b-d76249ca496b --- www-apps/glpi/glpi-0.72.1.ebuild | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 www-apps/glpi/glpi-0.72.1.ebuild diff --git a/www-apps/glpi/glpi-0.72.1.ebuild b/www-apps/glpi/glpi-0.72.1.ebuild new file mode 100644 index 0000000..dc27f31 --- /dev/null +++ b/www-apps/glpi/glpi-0.72.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit webapp eutils + + +MY_P="glpi-${PV}" +S=${WORKDIR}/"glpi" + +DESCRIPTION="GLPI is the Information Resource-Manager with an additional Administration- Interface. You can use it to build up a database with an inventory for your company (computer, software, printers...)." +HOMEPAGE="http://glpi-project.org/" +SRC_URI="http://glpi.indepnet.org/IMG/gz/${MY_P}.tar.gz" +LICENSE="GPL-2" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="${DEPEND} + app-admin/webapp-config" +RDEPEND="${DEPEND} + virtual/php + dev-db/mysql" + +src_unpack() { + cd ${WORKDIR} + unpack ${MY_P}.tar.gz +} + +src_compile() { + echo "Nothing to compile" +} + +src_install() { + + webapp_src_preinst + + einfo "Copying main files" + cd ${S} + cp -r . ${D}/${MY_HTDOCSDIR} || die + + #All files must be owned by server + for i in $(find . -print) ; do + webapp_serverowned ${MY_HTDOCSDIR}/$i || die + done + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-0.7.1.txt + webapp_src_install + +} +