34c1b574b4
Package-Manager: portage-2.2.0_alpha166 RepoMan-Options: --force
58 lines
1.3 KiB
Bash
58 lines
1.3 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils rpm versionator
|
|
|
|
MY_PV=$(replace_version_separator 3 '-' )
|
|
MY_PVV=$(replace_version_separator 3 'beta' $MY_PV )
|
|
MY_PVM=$(get_version_component_range 1-2 )
|
|
MY_PVR=$(get_version_component_range 1-3 )
|
|
|
|
DESCRIPTION="Zarafa WebApp plugins"
|
|
HOMEPAGE="http://zarafa.com/"
|
|
|
|
ZARAFA_WEBAPP_BUILD="final"
|
|
|
|
if [[ ${ZARAFA_WEBAPP_BUILD} == "final" ]] ; then
|
|
SRC_URI="http://download.zarafa.com/community/${ZARAFA_WEBAPP_BUILD}/WebApp/${MY_PVR}/rhel/zarafa-webapp-${MY_PV}.noarch.rpm"
|
|
else
|
|
SRC_URI="http://download.zarafa.com/community/${ZARAFA_WEBAPP_BUILD}/WebApp/zarafa-webapp-${MY_PV}.noarch.rpm"
|
|
fi
|
|
|
|
LICENSE="AGPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
|
|
IUSE="plugin_extbox plugin_pdfbox"
|
|
|
|
RESTRICT="mirror"
|
|
|
|
DEPEND="www-apps/zarafa-webapp"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
S="${WORKDIR}/usr/share/zarafa-webapp"
|
|
|
|
src_configure() {
|
|
return
|
|
}
|
|
|
|
src_compile() {
|
|
return
|
|
}
|
|
|
|
src_install() {
|
|
einfo "Installing plugins..."
|
|
dodir "/var/lib/zarafa-webapp/plugins"
|
|
for plugin in extbox pdfbox; do
|
|
if use "plugin_${plugin}"; then
|
|
einfo " ${plugin}"
|
|
cp -R "${S}/plugins/${plugin}" "${D}/var/lib/zarafa-webapp/plugins/"
|
|
fowners -R apache:apache "/var/lib/zarafa-webapp/plugins/${plugin}"
|
|
fi
|
|
done
|
|
}
|