Add arm Support
Package-Manager: portage-2.2.8-r1 RepoMan-Options: --force
This commit is contained in:
parent
1182ce6d98
commit
cab08cfb5f
@ -2,6 +2,9 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
10 Dec 2014; Mario Fetka <mario.fetka@gmail.com> zarafa-7.1.11.46050.ebuild:
|
||||
Add arm Support
|
||||
|
||||
09 Dec 2014; Mario Fetka <mario.fetka@gmail.com>
|
||||
-files/7.1.11.46050/zarafa-7.1.4-tcmalloc.patch, zarafa-7.1.11.46050.ebuild:
|
||||
depend on tcmalloc static-libs
|
||||
|
@ -45,9 +45,10 @@ DIST libicu48_4.8.1.1-3ubuntu0.1_amd64.deb 8105454 SHA256 f73b045259331468961df2
|
||||
DIST libicu48_4.8.1.1-3ubuntu0.1_i386.deb 8183078 SHA256 9d1f3d680c1081fb1de639f098e853f180b29711028f0917fb540a2f13efc816 SHA512 ba73918bbcd0de4896c783e073eb49189a631fccc70374a81a95c9ecfbfb077a2902f6d523e602fde25b63f345036e0ff672d44f7431ace478eb0c08d1b2da7f WHIRLPOOL c9b2f3e799980dabe1a99c8e6ee8d0c592dc6693a971afd359f38799febb56777a7cdf0b457a5ead9db8f0f298547cd315cb7243e4c2383845b5ac011b612378
|
||||
DIST libssl1.0.0_1.0.1-4ubuntu5.20_amd64.deb 1051238 SHA256 3e4d5b717e6b56489576a2dfd2c0d7ecddf23b352051f0016297d702cc11d908 SHA512 bfabbd583df3af1f2c2952eaea6e53684357720afad2d0c9acfc902196abcf1cd729e3d1e63657af8a77efefdb5f1ab462352be91e44f67079412c5b4a76b0ae WHIRLPOOL 7a6d09ae961960dc15b55ec75ee731624062a3d812b0dafa364f0b013955d5706eb7eb848d32ebf4a7038df1421fd0d3a96e247c8963d77d715a350cbd3b56d6
|
||||
DIST libssl1.0.0_1.0.1-4ubuntu5.20_i386.deb 1010990 SHA256 c138847a17ef0af47074335de90a51ef665887a181b3d631e80433210571ba49 SHA512 92949ee24a9d288df379be28c314b891f5b1e91e7208490d885f06fa7fd5908ec878040e79c3cbe71b7c7855de30fa2a6420920826ee18730442d75ca84bd43b WHIRLPOOL 88a5dc86d2f70ac3e5a4b75a281469512541b05bbca587301a4924f3ed9d0cf725a4b7baba4097b36a8fbfc2ecee9d27c97ec3b03f8ca1455b810bb33b405736
|
||||
DIST zcp-7.1.11-46050-spk-arm-free.tar 150978560 SHA256 b8d6b90868752c0fc652f4875719081acf639b2ae643d5fd80ccb71a59825206 SHA512 e6bb8c5b63398fce8b14e3bbccde851948e28de90e4667c01d8002819db0653b80de965fa354496f13e401e8d2a9c919d80db4140c6a1c4f674fdd7eddb44261 WHIRLPOOL c801a8ce596ef1467454bb1376d1108f4bd61944ebdbb6e943b48a7afcb76402a750cba295e6ffcae994cfddded8f4640ebbc9e473be253f5438a48559b5db46
|
||||
DIST zcp-7.1.11-46050-ubuntu-12.04-i386-free.tar.gz 46915732 SHA256 7c68995d03829f0dcdacebaf11c7accd93aa200d35e7f0373b81376e0d9f3916 SHA512 77afe41125468224d86db6ac674764abc14debe409c88ce2486ce3feea25d0366c0d7fb561b9354cfa840491cbc41fdcc549b2ba65a98e4544b227a819d6a88c WHIRLPOOL d475689e5b3bd28b5faf7ea3b6696e487434fbd044f22de8e3e29e2efd83d3f48aaa94d317510dd3667cea10c24417935b7009abc05494262e5b1e08ee45b5a5
|
||||
DIST zcp-7.1.11-46050-ubuntu-12.04-x86_64-free.tar.gz 46703722 SHA256 fd83bdfcf1776c87c1b49eccf0a6921aef9a4cb61a18a4edf755fa2dc4e07704 SHA512 a401fd5ccae2ba75bae0d056b804ec8c76ec3bc9b40df7752a67479b6041eb41fe6a01443302bfbef9b5d7f0636f2893ba7a8f0ef4fce47e2469e32904049a32 WHIRLPOOL b2de3e4a4a457714ad72044e61d3005f19a308fb0ae40a26f1507414a89936ec2252540c43f072069c23a8195e4c0c0d438d42c8501bab9b7feca3bd2cfb2cda
|
||||
DIST zcp-7.1.11.tar.gz 6940018 SHA256 74e4683ef241761322bb25cffa70876f7c042914de60e181b3bb7fb4f23be05c SHA512 e74fc75fbca1faaaa8c9ae99ffb06688c31ac8bba1f62e3620e31b2b85d1d9e0dd286675f8f19fb696ded88c63ad78c7d7a698d95a9d91cdcb8851eb1e78c826 WHIRLPOOL 4efb892b2313b10ad366d3fb24e07dbccd7c703aa7fc230badb2e24a30c4aaa7ff7369ed38a0137f92062b9f97e32178b8cf7fadd85a04a33893592ab8a0046b
|
||||
EBUILD zarafa-7.1.11.46050.ebuild 7311 SHA256 acd22859e66d15acab0c6c031cef1ef447e8ef376db07c2639e3724e736288c5 SHA512 4147b61e50fcfd1ceb585f9ddfc7182b3f90ad2d3dee877f67c9576c5d24301042356371701b6aa6dff32d4402c7d3ac66345e55152f6c546cb12925366f67f0 WHIRLPOOL 86bfee9acc7501beeb277412b1d9f68d5acd5b809e7844390e4ee05d44329755a72b289840eb59b519f83b20a8ca26b5cca2297fbf0bd9421471c5e4220dd8fe
|
||||
MISC ChangeLog 29453 SHA256 b2cbf6d7edee1a2548589bb25d9baf8857b9b5c3fffa9803b621d5f68b420afa SHA512 1e54a2fd3f85d034106dbceafa90bd8a8d3a4dee423fb4b4ef79a4ff9b5fef193d7bbc71d9b1e6fb6280e10d8eb7a0e816af1625c5cedcb1f3fdc48578009f83 WHIRLPOOL ecd02732cb698a9df29cf7aeb235d68b0848dbe95a894aafe6a3d88a70426637d129050cea137489bc9ce6057105b1c2193cd362e23bd0f39e9d78218b765957
|
||||
EBUILD zarafa-7.1.11.46050.ebuild 8390 SHA256 b75da436a1b23206284a1ede36d6ec3083c395778d77344365782e6f915003ff SHA512 8d2ac3a3064952697d0da37f55b6406b05cc44b2dc86b53095890062f2db46354fecc69ef89320878538d2bae8b17074d2418672555872280dc4d5a3d961574f WHIRLPOOL f63820a068d87c2f12bb2a1b77925fb5960339d430efda6a04f477802f244d01079a25a254736c8c490dae5c98ca7a2613e992188c0acbf1c67344e3dbe5e32d
|
||||
MISC ChangeLog 29551 SHA256 4028593f35c817b1984a6c05972b8ae294abd18d364791dc5bd01441af99b666 SHA512 7a4174e94f6dbe563271c1c52892a331c0be75e860fe9c17f13f592d458422b6160f45c4ff8da4f9bb951a4f262470270a8ff8da9b55107c69994092d48dca53 WHIRLPOOL 704febf1a81797e646a8b84abf70e40ea0d3674f52c6f2d38f13b51d49d10be2d1db60d1098fa8042cd444714f3e1931b3f3ce589fb13a07f4c43dadb4714b9c
|
||||
MISC metadata.xml 1238 SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5 SHA512 d94394e853ce7bd9109322f37ab5d3526e2bbc4a59ac02d0b66e9d952d221a06ae1c38b6de5cdb142b2b09ac602a57ff03f0525efbbc7b8f33f9662ca42a5dd5 WHIRLPOOL 482453b974eaca6506c4503f49c5c55195790e9b47f19a885d551fa535445104fbb7bc93dc4f30f7faf545f619594fa04d9a8071c21eb55995fef4f7380f55b9
|
||||
|
@ -16,12 +16,12 @@ DESCRIPTION="Open Source Groupware Solution"
|
||||
HOMEPAGE="http://zarafa.com/"
|
||||
|
||||
ZARAFA_RELEASE="final"
|
||||
ZARAFA_ARM="0.6.0"
|
||||
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 )
|
||||
|
||||
|
||||
SRC_URI="http://download.zarafa.com/community/${ZARAFA_RELEASE}/${MY_PVM}/${MY_PV}/sourcecode/zcp-${MY_PVR}.tar.gz
|
||||
amd64? ( licensed? ( http://download.zarafa.com/community/${ZARAFA_RELEASE}/${MY_PVM}/${MY_PV}/zcp-${MY_PV}-ubuntu-12.04-x86_64-free.tar.gz
|
||||
https://launchpad.net/ubuntu/+archive/primary/+files/libboost-system1.46.1_1.46.1-7ubuntu3_amd64.deb
|
||||
@ -32,7 +32,9 @@ SRC_URI="http://download.zarafa.com/community/${ZARAFA_RELEASE}/${MY_PVM}/${MY_P
|
||||
https://launchpad.net/ubuntu/+archive/primary/+files/libboost-system1.46.1_1.46.1-7ubuntu3_i386.deb
|
||||
https://launchpad.net/ubuntu/+archive/primary/+files/libboost-filesystem1.46.1_1.46.1-7ubuntu3_i386.deb
|
||||
https://launchpad.net/ubuntu/+archive/primary/+files/libssl1.0.0_1.0.1-4ubuntu5.20_i386.deb
|
||||
https://launchpad.net/ubuntu/+archive/primary/+files/libicu48_4.8.1.1-3ubuntu0.1_i386.deb ) )"
|
||||
https://launchpad.net/ubuntu/+archive/primary/+files/libicu48_4.8.1.1-3ubuntu0.1_i386.deb ) )
|
||||
arm? ( licensed? ( http://www.jdo.it/Zarafa_${ZARAFA_ARM}_arm.spk -> zcp-${MY_PV}-spk-arm-free.tar ) )"
|
||||
|
||||
S="${WORKDIR}"/zarafa-${MY_PVR}
|
||||
|
||||
ZARAFA_SERVICES="dagent gateway ical monitor search server spooler"
|
||||
@ -93,22 +95,52 @@ src_unpack() {
|
||||
done
|
||||
if use licensed; then
|
||||
if [[ "${ARCH}" == "amd64" ]]; then
|
||||
unpack zcp-${MY_PV}-ubuntu-12.04-x86_64-free.tar.gz
|
||||
unpack zcp-${MY_PV}-ubuntu-12.04-x86_64-free.tar.gz
|
||||
fi
|
||||
|
||||
if [[ "${ARCH}" == "x86" ]]; then
|
||||
unpack zcp-${MY_PV}-ubuntu-12.04-i386-free.tar.gz
|
||||
unpack zcp-${MY_PV}-ubuntu-12.04-i386-free.tar.gz
|
||||
fi
|
||||
|
||||
if [[ "${ARCH}" == "arm" ]]; then
|
||||
unpack zcp-${MY_PV}-spk-arm-free.tar
|
||||
unpack $(find ./ -name "package.tgz")
|
||||
mkdir arm
|
||||
pushd arm
|
||||
unpack $(find ./../ -name "zarafa.tgz")
|
||||
popd
|
||||
fi
|
||||
|
||||
pushd "${WORKDIR}"
|
||||
mkdir licensed
|
||||
cd licensed
|
||||
unpack_deb $(find ./../ -name "zarafa-licensed*.deb")
|
||||
unpack_deb $(find ./../ -name "zarafa-client*.deb")
|
||||
unpack_deb $(find ./../../ -name "libboost-system1.46.1*.deb")
|
||||
unpack_deb $(find ./../../ -name "libboost-filesystem1.46.1*.deb")
|
||||
unpack_deb $(find ./../../ -name "libssl1.0.0*.deb")
|
||||
unpack_deb $(find ./../../ -name "libicu48*.deb")
|
||||
popd
|
||||
mkdir licensed
|
||||
cd licensed
|
||||
if [[ "${ARCH}" == "amd64" || "${ARCH}" == "x86" ]]; then
|
||||
unpack_deb $(find ./../ -name "zarafa-licensed*.deb")
|
||||
unpack_deb $(find ./../ -name "zarafa-client*.deb")
|
||||
unpack_deb $(find ./../../ -name "libboost-system1.46.1*.deb")
|
||||
unpack_deb $(find ./../../ -name "libboost-filesystem1.46.1*.deb")
|
||||
unpack_deb $(find ./../../ -name "libssl1.0.0*.deb")
|
||||
unpack_deb $(find ./../../ -name "libicu48*.deb")
|
||||
fi
|
||||
|
||||
if [[ "${ARCH}" == "arm" ]]; then
|
||||
mv ../arm/zarafa-licensed usr
|
||||
mv usr/bin/zarafa-licensed-arm usr/bin/zarafa-licensed
|
||||
echo "#/bin/sh" > usr/bin/zarafa-report
|
||||
echo "echo \"zarafa-report not ported to arm\"" >> usr/bin/zarafa-report
|
||||
echo "echo \"Please contact zarafa for arm\"" >> usr/bin/zarafa-report
|
||||
echo "echo \"support.\"" >> usr/bin/zarafa-report
|
||||
echo "exit 0" >> usr/bin/zarafa-report
|
||||
mkdir -p etc/zarafa/license
|
||||
mv ../arm/etc/zarafa/licensed.cfg etc/zarafa/
|
||||
mkdir -p share/doc/zarafa-licensed
|
||||
mv ../arm/share/doc/eula.txt share/doc/zarafa-licensed/
|
||||
mkdir -p usr/share/man/man{1,5}
|
||||
mv ../arm/share/man/man1/zarafa-{licensed,report}.* usr/share/man/man1/
|
||||
mv ../arm/share/man/man5/zarafa-licensed.cfg.* usr/share/man/man5/
|
||||
fi
|
||||
|
||||
popd
|
||||
fi
|
||||
cd "${S}"
|
||||
}
|
||||
@ -162,7 +194,7 @@ src_install() {
|
||||
php-ext-source-r2_createinifiles
|
||||
php-ext-source-r2_addtoinifiles "mapi.debug" "0"
|
||||
|
||||
if [[ "${ARCH}" == "x86" || "${ARCH}" == "amd64" ]]; then
|
||||
if [[ "${ARCH}" == "x86" || "${ARCH}" == "amd64" || "${ARCH}" == "arm" ]]; 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)
|
||||
@ -170,7 +202,7 @@ src_install() {
|
||||
into /opt/zarafa
|
||||
dobin "${WORKDIR}"/licensed/usr/bin/zarafa-{licensed,report} || die "Failed to install licensed binaries"
|
||||
dolib.so $(find ${WORKDIR}/licensed -name "*.so*")
|
||||
doman "${WORKDIR}"/licensed/usr/share/man/*/zarafa-*.gz || die "Failed to install man files"
|
||||
doman "${WORKDIR}"/licensed/usr/share/man/*/zarafa-* || die "Failed to install man files"
|
||||
dodoc -r "${WORKDIR}"/licensed/usr/share/doc/zarafa-licensed/* || die "Failed to install docs"
|
||||
insinto /etc/zarafa
|
||||
doins -r "${WORKDIR}"/licensed/etc/zarafa/* || die "Failed to install config files"
|
||||
|
Loading…
Reference in New Issue
Block a user