Add proper php support (for now recompile zarafa for differtn php implementations)

Package-Manager: portage-2.2.8-r1
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2014-06-28 15:31:45 +02:00
parent 4d1e508a9b
commit 80b68b3cb2
3 changed files with 64 additions and 44 deletions

View File

@ -2,6 +2,10 @@
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
28 Jun 2014; Mario Fetka <mario.fetka@gmail.com> zarafa-7.1.10.44973.ebuild:
Add proper php support (for now recompile zarafa for differtn php
implementations)
28 Jun 2014; Mario Fetka <mario.fetka@gmail.com>
files/7.1.10.44973/zarafa-14-shared-libs.patch:
Bump

View File

@ -50,6 +50,6 @@ DIST libssl1.0.0_1.0.1-4ubuntu5.16_i386.deb 1006970 SHA256 dc3698c369a0afc95c019
DIST zcp-7.1.10-44973-ubuntu-12.04-i386-free.tar.gz 46283549 SHA256 03ab6f199b287968c457102f0f89898c512b8dfb69c43acc6b7210d2ab5fc031 SHA512 b66f137f49bf3f0f3c6078a66e25584b3d772f7caa6e8c5d4b2a0888524dcba817c8c474035ed1348f194c1fd767561134c46de37e6e93901c2376cd666cf942 WHIRLPOOL bf3516a3d5819d581f723e4c0c0ad61cdc8410c6aa16ca1f7f973c5ed36af896147c282b90bfa81aba3cb96c950a49853262165112507ef0441f86e19ce377d8
DIST zcp-7.1.10-44973-ubuntu-12.04-x86_64-free.tar.gz 46072953 SHA256 1b415f173be08109002743da511b1aeb338ad7d0485928b38509b669b740e887 SHA512 0122804e51cc76b6a6f101279a8c7b16afd1a112d4e47caa814dde98f6fe63714536d59c6cb0d916d6dad8a06294302fdf4647fb05fc4bdc913508c329f08525 WHIRLPOOL 4c3f7b8d6bd42640d12a2a975b31bccb07d4c018ea61502f9a8ad5d9df7a8a9cf99f583207e9f9bbdb22c4c05d4896b95a23ff65eed04e93b8a19b6eb56c0160
DIST zcp-7.1.10.tar.gz 7024296 SHA256 701bc4729a755c331493c4131b425f34de0f18eb7e02f675d9474d9d62d9c739 SHA512 a13b1ca7c8163f70601e88d8cacb5be47124bd791dcd4a98995590af739781823c5227402e6992d577640d933b67e27dbb14d2dede6054fc4d588a2a85c5e723 WHIRLPOOL 9c9c2f1fb6cd611cbfcce39582ada939cab333f55d48388eb0ee539eedf445736330e7c64013712cbdf27c0614e1808b8bd01adc7bf7506e59d03a0c0017c955
EBUILD zarafa-7.1.10.44973.ebuild 7061 SHA256 7b9d3e6bd199dd91789cbff2fd2f321a9bbed9ade6fcbb3336571cc8c96f1a5e SHA512 9a6c5ce74b85316521ba7a0f62f09fcf0141cbac2c563b866fc9a6bc4cce354684d5aaf2cc80a6d6286dfd179e2f6cb5b573bdf1d43b68b5b57273cff03d9434 WHIRLPOOL a291f9d6504db10ee026329d7140165a31aa4f5aa833342d935433f3c01bef19cf20f29f877b62e2ffb117df7e00bb9f6a36a40044b1becda0312651629dfb03
MISC ChangeLog 27541 SHA256 99a7c7c01464a577ffebf42b4c33c4280ee56880154c1d717e47154863b43720 SHA512 36253d216529b3aa91e4052b3f4b8aa996cfcda5294ab18b11d864c515d80db4ab1247bd108e2fa631e535198ea034c3cd1bea6ca9dada6ee1b693858c920333 WHIRLPOOL e47173ff8860262971f5d982c30a8becbf0d474a76834c8a9436154623f31e70d4cc391c72fc663e595b8f8de2e12fbed7ccafda99e1e98c26564db3bb85d0eb
EBUILD zarafa-7.1.10.44973.ebuild 7299 SHA256 d1fcff84509dd6e77a6c08a45ee1114e6774b9f763db3dd9b02a9c8fd64e5e98 SHA512 4162f9ed5624f41f68e0cf940c27b8a6da98615270dd8295a48e1ccd492abb764f20504b25fa588d659242de4c75fd800c29d048b1a9e57857850de6e60ea33b WHIRLPOOL d13e78ac328650e7cb57d36fee050f66ceb7bde64fed95a7d8975261f94a2c09bc49e48404aa7cfa02b564a5646a44285bdcec7e2ca9cacd89cbda5145a952b1
MISC ChangeLog 27708 SHA256 78fe45d7c2e9d6af1a2e904bc9a4b8d6183f2b4815ec98bbf3fba00926bce592 SHA512 3c22ff91b0f2c744d4d4b68fb10a5a1ec17c01e7ec02cf23be52213636f92a51bfd2829651f4935c9041847086509991c5e9ce637bc5cad6534f58e9303e7af7 WHIRLPOOL 40b311152f376193e8cb55ef5512d5447174260a77faee93331f50a21ed96e401714fffe4681729356cd333ce05159101029ad7d190a8c1af7be3ed0bd749b95
MISC metadata.xml 1238 SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5 SHA512 d94394e853ce7bd9109322f37ab5d3526e2bbc4a59ac02d0b66e9d952d221a06ae1c38b6de5cdb142b2b09ac602a57ff03f0525efbbc7b8f33f9662ca42a5dd5 WHIRLPOOL 482453b974eaca6506c4503f49c5c55195790e9b47f19a885d551fa535445104fbb7bc93dc4f30f7faf545f619594fa04d9a8071c21eb55995fef4f7380f55b9

View File

@ -5,15 +5,12 @@
EAPI="4"
PHP_EXT_NAME="mapi"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
PHPSAPILIST="apache2 cgi cli"
USE_PHP="php5-3 php5-4"
USE_PHP="php5-3 php5-4 php5-5"
PYTHON_DEPEND="python? 2"
inherit eutils bash-completion flag-o-matic php-ext-base-r1 python unpacker autotools versionator systemd
inherit eutils bash-completion flag-o-matic php-ext-source-r2 python unpacker autotools versionator systemd
DESCRIPTION="Open Source Groupware Solution"
HOMEPAGE="http://zarafa.com/"
@ -23,7 +20,6 @@ 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 )
MAX_PHP_VERSION=5.5
SRC_URI="http://download.zarafa.com/community/${ZARAFA_RELEASE}/${MY_PVM}/${MY_PV}/sourcecode/zcp-${MY_PVR}.tar.gz
@ -45,32 +41,31 @@ LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm"
RESTRICT="mirror"
IUSE="debug +kerberos +icu +ldap +logrotate +perl +python static +swig +tcmalloc +licensed sparsehash profiling +pic"
IUSE="debug +kerberos +icu +ldap +logrotate +python static +swig +tcmalloc +licensed +sparsehash profiling +pic"
RDEPEND=">=dev-libs/libical-0.44
>=dev-cpp/libvmime-0.9.2_pre512
<virtual/httpd-php-${MAX_PHP_VERSION}
virtual/httpd-php
virtual/mysql
dev-cpp/clucene
>=dev-cpp/clucene-2.3.3.4-r5
dev-db/kyotocabinet
dev-libs/boost
dev-libs/libxml2
dev-libs/openssl
net-misc/curl
sys-libs/e2fsprogs-libs
sys-libs/zlib
icu? ( dev-libs/icu )
kerberos? ( virtual/krb5 )
ldap? ( net-nds/openldap )
logrotate? ( app-admin/logrotate )
perl? ( dev-lang/perl )
python? ( dev-lang/python )
tcmalloc? ( dev-util/google-perftools )
swig? ( =dev-lang/swig-1.3* )"
dev-libs/libxml2
dev-libs/openssl
net-misc/curl
sys-libs/e2fsprogs-libs
sys-libs/zlib
icu? ( dev-libs/icu )
kerberos? ( virtual/krb5 )
ldap? ( net-nds/openldap )
logrotate? ( app-admin/logrotate )
python? ( dev-lang/python )
swig? ( =dev-lang/swig-1.3* )
tcmalloc? ( dev-util/google-perftools )"
DEPEND="${RDEPEND}
sparsehash? ( dev-cpp/sparsehash )
dev-util/pkgconfig
sys-devel/gettext"
dev-util/pkgconfig
sys-devel/gettext"
pkg_setup() {
python_set_active_version 2
@ -78,16 +73,24 @@ pkg_setup() {
}
src_prepare() {
EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" epatch
edos2unix php-webclient-ajax/config.php.dist
AT_M4DIR="autoconf" eautoreconf
append-flags "-fPIC"
local slot orig_s="$S"
for slot in $(php_get_slots); do
php_init_slot_env ${slot}
EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" epatch
edos2unix php-webclient-ajax/config.php.dist
AT_M4DIR="autoconf" eautoreconf
done
append-flags "-fPIC"
}
src_unpack() {
unpack zcp-${MY_PVR}.tar.gz
local slot orig_s="$S"
for slot in $(php_get_slots); do
cp -r "${orig_s}" "${WORKDIR}/${slot}"
done
if use licensed; then
if [[ "${ARCH}" == "amd64" ]]; then
unpack zcp-${MY_PV}-ubuntu-12.04-x86_64-free.tar.gz
@ -112,7 +115,10 @@ src_unpack() {
src_configure() {
append-flags -fpermissive
econf \
local slot
for slot in $(php_get_slots); do
php_init_slot_env ${slot}
econf \
--enable-oss \
--enable-release \
--enable-unicode \
@ -120,35 +126,47 @@ src_configure() {
--with-userscript-prefix=/etc/zarafa/userscripts \
--with-quotatemplate-prefix=/etc/zarafa/quotamails \
--with-searchscripts-prefix=/etc/zarafa/searchscripts \
--with-php-config=${PHPCONFIG} \
$(use_with pic) \
$(use_enable icu) \
$(use_enable static) \
$(use_enable perl) \
$(use_enable python) \
$(use_enable swig) \
$(use_enable tcmalloc) \
$(use_enable tcmalloc tcmalloc-full) \
$(use_enable profiling) \
$(use_enable sparsehash) \
$(use_enable debug)
$(use_enable debug) || die "Unable to configure code to compile"
done
}
src_compile() {
find swig -type f | xargs touch
emake || die "emake failed"
local slot
for slot in $(php_get_slots); do
php_init_slot_env ${slot}
find swig -type f | xargs touch
emake || die "emake failed"
done
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
make DESTDIR="${D}" install-ajax-webaccess || die "make install-ajax-webaccess failed"
#make DESTDIR="${D}" install-mobile-webaccess || die "make install-mobile-webaccess failed"
local slot
for slot in $(php_get_slots); do
php_init_slot_env ${slot}
emake DESTDIR="${D}" install || die "make install failed"
done
emake DESTDIR="${D}" install-ajax-webaccess || die "make install-ajax-webaccess failed"
php-ext-base-r1_src_install
rm -rf "${D}"/etc/php
php-ext-source-r2_addtoinifiles "mapi.debug" "0"
php-ext-source-r2_createinifiles
if [[ "${ARCH}" == "x86" || "${ARCH}" == "amd64" ]]; then
if use licensed; then
ZARAFA_SERVICES="${ZARAFA_SERVICES} licensed"
make_wrapper zarafa-licensed "/opt/zarafa/bin/zarafa-licensed" /opt/zarafa/bin /opt/zarafa/$(get_libdir)
make_wrapper zarafa-report "/opt/zarafa/bin/zarafa-report" /opt/zarafa/bin /opt/zarafa/$(get_libdir)
ZARAFA_SERVICES="${ZARAFA_SERVICES} licensed"
into /opt/zarafa
dobin "${WORKDIR}"/licensed/usr/bin/zarafa-{licensed,report} || die "Failed to install licensed binaries"
dolib.so $(find ${WORKDIR}/licensed -name "*.so*")
@ -160,11 +178,9 @@ src_install() {
fi
insinto /etc/apache2/modules.d
#newins "${FILESDIR}/50_zarafa-webaccess-mobile.conf" 50_zarafa-webaccess-mobile.conf || die "Failed to install apache config files"
newins "${FILESDIR}/50_zarafa-webaccess.conf" 50_zarafa-webaccess.conf || die "Failed to install apache config files"
rm "${D}"/usr/share/zarafa-webaccess/*.conf || die "Failed to remove apache config files"
#rm "${D}"/usr/share/zarafa-webaccess-mobile/*.conf || die "Failed to remove apache config files"
rm "${D}"/etc/conf.d/zarafa || die "Failed to remove wrong file files"
exeinto /etc/zarafa/userscripts/