www-apps/zarafa: first step to integrate binary only licensed server

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2515 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-10-12 06:00:14 +00:00
parent 4a2eb78d2a
commit f37bc17b9a
3 changed files with 25 additions and 5 deletions

View File

@ -2,6 +2,9 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
12 Oct 2010; Mario Fetka <mario.fetka@gmail.com> zarafa-6.40.2.ebuild:
first step to integrate binary only licensed server
11 Oct 2010; Mario Fetka <mario.fetka@gmail.com> zarafa-6.40.2.ebuild:
add support for direct download

View File

@ -16,6 +16,6 @@ AUX zarafa.logrotate 1857 RMD160 d295f5307be6577d3f8fdc89edc7995adae2fd47 SHA1 7
DIST zarafa-6.40.2-ubuntu10.04-i386.tar.gz 7749271 RMD160 0de3af308b678695d938d14897d87b0501a51235 SHA1 11281457fc146831406d64a8962d48f394272c3e SHA256 6b850c2103692cfa8ab54e9f496df90a489f50519d97c4dc19833c0b2d97d7cf
DIST zarafa-6.40.2-ubuntu10.04-x86_64.tar.gz 7770638 RMD160 c739c37b0cbebcf57812c7492702af95323691dc SHA1 2513ee339d3d96338408816ffd2da36c8b73db15 SHA256 8c0cf068785a3afef6ce423f8fdafad5b3d29fa85637b894b7ee0daac6dcbfda
DIST zarafa-6.40.2.tar.gz 4605538 RMD160 9da243c0d7f5b9e86a5606482a1728b1056dde89 SHA1 3554a6f6cc2f32ee30f628598eb2d5de09fe5f1d SHA256 3ad4598cc6943e7e99d3d8340916dc425db1c54ed76c66a309183cb53b838350
EBUILD zarafa-6.40.2.ebuild 3231 RMD160 28352b65dbe48b6acb916e350e02a4c71dc87846 SHA1 46345212c0e2855a58ab7cf8f2e7180a26101a6e SHA256 1c87e8ae66420c6910fbff834ada48a2b1ec845d63b7b179a755d94ebc474f77
MISC ChangeLog 334 RMD160 570107c8bab6457f25b2fb19b7ada8b835f89d59 SHA1 b229db2a849e260b2d5dd7044174a3c1b0e9f3e4 SHA256 2b55266dbe5028b99f2c3f925d22662138b18aedef47f5fcf14bc237ee229a2c
EBUILD zarafa-6.40.2.ebuild 3591 RMD160 a7a8695dc9a12f75ce06655cc99f794b5e43c052 SHA1 45496364de1f9c09a6331a7dadfb5d3ed80ade45 SHA256 e65400409c6e767e417222da6f4b83df7dcf4493aebdd4b1873caecf61800d5a
MISC ChangeLog 462 RMD160 679b139915ff212ecd25cc408eb091b8703dcd59 SHA1 e655896faf5f7a31915e99cdaf8e8763997939a9 SHA256 ba3c15083b4d654f4631319c575b1a80172ae4e209b4ee86674f822b0ddd213e
MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5

View File

@ -13,9 +13,9 @@ inherit eutils php-ext-base-r1 autotools
DESCRIPTION="Open Source Groupware Solution"
HOMEPAGE="http://zarafa.com/"
SRC_URI="http://download.zarafa.com/zarafa/drupal/ondemand.php?version=${PV}&src=zarafa-${PV} -> ${P}.tar.gz
licensed? (
amd64? ( http://download.zarafa.com/zarafa/drupal/beta/ondemand.php?version=${PV}&distro=ubuntu&distroversion=10.04&arch=x86_64&type=1 -> zarafa-${PV}-ubuntu10.04-x86_64.tar.gz )
x86? ( http://download.zarafa.com/zarafa/drupal/beta/ondemand.php?version=${PV}&distro=ubuntu&distroversion=10.04&arch=i386&type=1 -> zarafa-${PV}-ubuntu10.04-i386.tar.gz )
"
x86? ( http://download.zarafa.com/zarafa/drupal/beta/ondemand.php?version=${PV}&distro=ubuntu&distroversion=10.04&arch=i386&type=1 -> zarafa-${PV}-ubuntu10.04-i386.tar.gz ) )"
LICENSE="AGPL-3"
SLOT="0"
@ -44,10 +44,27 @@ DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/gettext"
src_unpack() {
unpack ${A}
if use licensed; then
cd "${WORKDIR}"
if use x86; then
unpack $(find ./zarafa-${PV}-ubuntu10.04-i386 -name "zarafa-licensed*")
fi
if use amd64; then
unpack $(find ./zarafa-${PV}-ubuntu10.04-x86_64 -name "zarafa-licensed*")
fi
mkdir licensed
cd licensed
unpack ./../data.tar.gz
cd "${S}"
fi
}
src_prepare() {
EPATCH_SOURCE="${FILESDIR}/patches" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" epatch
edos2unix php-webclient-ajac/config.php.dist
edos2unix php-webclient-ajax/config.php.dist
eautoreconf
}