aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2017-10-18 22:35:00 +0100
committerStuart Shelton <stuart@shelton.me>2017-10-22 12:53:34 +0100
commit646f63d3ce56ac7a839a47ce17e873c5987c6e8a (patch)
tree0c82ca1d0b59ff2d962f370a0b4b6007399901d2
parentAdd app-crypt/pinentry-1.0.0-r2 (diff)
downloadsrcshelton-646f63d3ce56ac7a839a47ce17e873c5987c6e8a.tar.gz
srcshelton-646f63d3ce56ac7a839a47ce17e873c5987c6e8a.tar.bz2
srcshelton-646f63d3ce56ac7a839a47ce17e873c5987c6e8a.zip
Add mail-client/roundcube-1.2.6, mail-client/roundcube-1.3.1
-rw-r--r--mail-client/roundcube/Manifest5
-rw-r--r--mail-client/roundcube/roundcube-1.2.6.ebuild128
-rw-r--r--mail-client/roundcube/roundcube-1.3.1.ebuild129
3 files changed, 262 insertions, 0 deletions
diff --git a/mail-client/roundcube/Manifest b/mail-client/roundcube/Manifest
index b5512880..a010ea9d 100644
--- a/mail-client/roundcube/Manifest
+++ b/mail-client/roundcube/Manifest
@@ -10,6 +10,7 @@ DIST composer.phar_1.2.0 1705467 SHA256 dc80131545ed7f7b1369ae058824587f0718892f
DIST composer.phar_1.2.4 1710687 SHA256 3c900579659b79a4e528722e35bd160c86090e370e9cb41cc07c7a22c674c657 SHA512 781e738eb534fbd4a8dd6c1242c28b617fa9857b3d836c72e0a52db42b48442795a3a5c41ce956988378eee79b0287ff2b3eab30aa4ffcb45b508dad59013bfa WHIRLPOOL ee78190ad61373b7fb5921b2ce9bb99d6ee39a5960b04a6a4e8c8687791ade1eda494f0f182878eea134b9048158b687d8744c43bcbaee1ed2ea748ae2df8cb0
DIST composer.phar_1.4.1 1836198 SHA256 abd277cc3453be980bb48cbffe9d1f7422ca1ef4bc0b7d035fda87cea4d55cbc SHA512 bc9c39fb8b0de53f67ca02d0740c25bc270643a80375e17cd8dfa45beba99339c1754c9d2a33d8475ad2a26479bd17c514c8b7b9c2719fd306d91b525a00721c WHIRLPOOL d36d100ce067a8553bc8efe07f1cf1fdb297271abbe72bf9e211239c881579d9abfde0e1e992d4f5eb28027ac91b97a55baadec58cdbb149e3ee7cb628ed4e09
DIST composer.phar_1.4.2 1838958 SHA256 6b1945c3ee477f12be508a5bb41a5025d57de5510bcf94855ae6a4d59f3d86f4 SHA512 38bb2a696df65a47f6dfa22907e76c3210731530f51dc70f8e104d8b64e9ff2a40b18ea01f3948664fb7595d0e0c92c18dce1efaed6d1d57f05c28fa76f9966f WHIRLPOOL 07ffac5e0a66c626867598583d39549ac4ae5ac808c7d86c3cf13e4d7c968f493aade45b5cf4cc0469960006688185f386d55216313ff23efc2e03aaf94eb130
+DIST composer.phar_1.5.2 1852323 SHA256 c0a5519c768ef854913206d45bd360efc2eb4a3e6eb1e1c7d0a4b5e0d3bbb31f SHA512 61dfd2f9262a0a2469e0c1864ab1cce6d3e63f9053faf883cd08307413d92119010638bfbee7c90c9b6977e284814bcb7bfdc01dd9cb9125ac947a2968c791bc WHIRLPOOL e9826efdc673a9aafe066968adde7b36f2be7de697514435015afd731cff86b2fef3ba0092fe34107e4fd91c1e8a3cd6d8b2968b4a73610b3f130c8ed9846c6f
DIST roundcubemail-1.0.0.tar.gz 3975691 SHA256 cfe4b1b66f32149d7727a6ae2ec2aa0c6c1388c9d22fd5b6da2e78bdbaac8dc8 SHA512 32ad828aba192ae1773d3e28070d9824a1676ffdeb96ba60d8b00ba4f208ec41cad20289e1cf5934fb59e5fb40932b8560a80a09d15cfa94097139395110f0a2 WHIRLPOOL d6c4bb19ba76a5a7e8d0f1a08c23ce400c42149adc298a80ce6cf2aeba9a93db475fa2eb5211c3ebc0c417a8622a00d73852b9c7d8440b415e4e3787642c0d64
DIST roundcubemail-1.0.1.tar.gz 3978126 SHA256 e75817e936cccb5f55ea601dba302dc2ad8cd4e57109fa34bd5765fbe03cdb09 SHA512 dd981a03d540607fdb7a1bde18a346c93ddd988abbafb43a77b3eeac138f804b3a294445f5a6d5f9525b00d14f3f7bb1e378ad74ff0342680268a6553c6ad4f8 WHIRLPOOL d6addd79ed1185f05c4d14a75203522e1fd47e5ca8b4ca231cd616a1f155243e63eb1bdac9742eb051c6de0df4623f1c0e0d5fbfb26a9c365249284b50475b77
DIST roundcubemail-1.0.2.tar.gz 3980298 SHA256 1c1560a7a56e6884b45c49f52961dbbb3f6bacbc7e7c755440750a1ab027171c SHA512 4076be3846f3c39c481c5546d7d2f8843cd87f1dde868aa06c9432db4a8786269e4297975802c841a0476ae4462cb7dbcc40e375bdafb6ea0a74b9c5ba9bb780 WHIRLPOOL 773b9f687dc82fdc2a879187d40bd79936d3103427a28e35b602eb7648ea397be5afeb412ff9523ff59653d50a7c3ac9ea4f14eec605e41e88158fc2f628d426
@@ -26,7 +27,9 @@ DIST roundcubemail-1.2.2.tar.gz 3562148 SHA256 6c647ed28ea0ae1b730a1784018b63884
DIST roundcubemail-1.2.3.tar.gz 3599096 SHA256 2df820d2ccc7bb320f854a821a1dc9983792f42a3353a1d38fe0822d94980d4d SHA512 af64b5ccb95b30ee483c573098741098427dd9755526253490f657a10fed3764f5ed8f336d0a8cb82bcce65d8840b0892d6e4746ce93bc595cfd29f66ea45795 WHIRLPOOL 08551297ca37d8f26ab9fa13c60db7f5b477251a639519285003cedc6971dbf2b6f6c43d1adc6334bfc67adfb85271b8bfe52d50a7416ba31d3ea38284ac28b7
DIST roundcubemail-1.2.4.tar.gz 3602288 SHA256 76b52a6405e0fc36b6829bf21200badbc681b18c95c7b3d9098e90f9de7ed9cc SHA512 299ab90d6dba9325efdea2e0498e4345e13c78fd8b85e0848827e5127e4cf210e66327ad264f5609373d9de2237cf396907dcb9cc2901c13e18899e4233a3c77 WHIRLPOOL 99788f7a1852e94a304a62dcd3ad400bff4b20bc68285d09cdce480ecd39ff4306f04b1d9795f8983577c63ebf83ac887fba1e695870a2218379bcf71ec0fef7
DIST roundcubemail-1.2.5.tar.gz 3602701 SHA256 9c4d65951cc636d0e2e2296bfdf55fb53e23a4611fa96f17fb5d354db91bec38 SHA512 8f17c8222a59123e438a3683e5f2fbfef28c966899a271a2a11c25535e7188ff57846847108190a4d20ff53eccd10a2a7e88e8a5f958e9bc38c69e53824e7928 WHIRLPOOL 48bfc729da9e9ceb88a5125e7d713016b48986eb8debb21a2d92404011361ceddc536871b21acbe1094d4be365727a6f15a0c66433736fb34879a55aba009528
+DIST roundcubemail-1.2.6-complete.tar.gz 3893031 SHA256 2f5c674f41fb2c842b3e4d5d7feab00c674b0c834f5cd944a4d778c23c921ec1 SHA512 4b33ddc322446cf4d7915d9f57fa11946fb6056f91034ff9643363a87ad293d444bacf2a6e6502bbb8b57623f39548b7a6fff02f4bb70622843ecbc489949024 WHIRLPOOL a52c45d4995002f4096237e846841115c57ba4a4eb01d6f3c78ab3b821ccc2ad59d4cbc6b8e547b2a9ed1416fbb0084004ecd4342666e689136f7f4c3f343d17
DIST roundcubemail-1.3.0.tar.gz 3104348 SHA256 a37e55a3b5f83420930ae20ef3ac6dbedb499c920bbcf3fc93a8f784f7773d21 SHA512 f3ab39cc3eec9bbcaf3d8f5d9004b0da92fe5d35b71687acc234fab5772abb92d970855716288cba10c8609532d42ddc6e791a1f7bca13de555174a37deca9c4 WHIRLPOOL a2fb856fa060a3e904cc528b73474fa64ebe4af1de6f1b2bb1c82f426143bf762d380f121902cea60ff7d00d73058786b7bb4f27ddd6f00cf798b15a0e8e8d38
+DIST roundcubemail-1.3.1-complete.tar.gz 5296647 SHA256 f071bbe84f90ba55582289dcef7b70198b81e0aedd4de8422945658bbee3da0b SHA512 79722d1213b6855af37dea4c2522eba12ded4ed430b5d96f5ba9eb851bbfbe68c406b0c5410e21e2721dfe2cf42fdc2fa825161a229f785921ebdc89221ab232 WHIRLPOOL 7df4ff8ba3e39ce217e4fea8c932707bb98dea68c7aa0a504efe56345d32afa369fcbb57fe053520cfad62a8090309113e8e4e8c2f49ff883a66cf31e0bdfd41
EBUILD roundcube-1.0.0.ebuild 2993 SHA256 a19215eb162ddef0cdf7ab9f5eab463ea4a920fe09c2f16c38ef16fd38536dc6 SHA512 f5a6f81a9d160e022f6ab3ec55296f078fbb67c2938363a1ea3a3f6b2221e2d45eded238ac8fcd8e8b0bda03c565cc133669f16fdc5ed41855e927787c41974f WHIRLPOOL 58e2c662c424c8433e78dfc3508bfe1a34cabf228466b0b0bc07b7d8a8c3f4d9ed634a60da655cd8a874ca510efdcd8b1b8348d5e0eb292f91b8717ba07bca04
EBUILD roundcube-1.0.1.ebuild 3101 SHA256 5c7dc9eac4c42fef150193ddd8387a93abc42ba477c57bba20fd972b8e2ea166 SHA512 ea082b75fba96878b686553b096885c9546e622ec63e361033c1c8b68d37ceebf92477d2b4481d57143591737fde5200df5eb66dd19485869678d6ecb8a0d78f WHIRLPOOL 69a5d7ba44d77e7b7c35c2e31802154b6406c7bbf919bc51004a38eae54ece37cf2559eab620d6bb9ebe1467daee75537dc697a9780b6ca7fee2b561bf6c4ff2
EBUILD roundcube-1.0.2.ebuild 3177 SHA256 f079064c5409bfd8bb2870558fa38e409e8fe47c14a5a212361d02c275ae0255 SHA512 1e2675023d1f566b52cd9c72545479e45f560f7e78fd042639d6cb1f83fa9bd0b089c7c8ada3686fd631657262d76c3cc2530532085df76f699c77aa836fdbbd WHIRLPOOL bef6753d7d95e360c25c0bccef2501548fbdaff76638218538f1c663697bd12cf737e802e46cb0dd7ec5c165467d40c016241d2babb65ba3f683bc99ce82388c
@@ -42,5 +45,7 @@ EBUILD roundcube-1.2.2.ebuild 3580 SHA256 56bd8cd8578b3b1ee997fe9ebae3d68307ffc1
EBUILD roundcube-1.2.3.ebuild 3582 SHA256 36b35f2c5db0e455945890c8f5d8473c3e0b55337b2a9a274020f634ec65a8ec SHA512 4097f4c5b23dcd4b99ee91b209b39687c0f2bf876b1719e10c0d693b87a6a7fb2a8eb0564a3c7cc00c5074de79e002228cfc692958d2751254fd0671970864d4 WHIRLPOOL eef662ee684cf6698d32f43ece643ea18636b45d8fad89c5e2f8dcdc570f6ac7d434f5468fb3552c9e034a44163deb1cffd77de208f79c3deadc4377fe8a2ab2
EBUILD roundcube-1.2.4.ebuild 3546 SHA256 3ec3ac9bb30d19362c1ca319199351a55ebfc0122619ac40b343de05c8b23d9c SHA512 f10214f95cffdc75ca0d6e14f9f339f032ac038495d5d5759fc09e7bf91a23a3523dac129bb1c6ca0f8c02b2aa07129d9d1925462c3ef209db0b2b2fe34ca68f WHIRLPOOL 829c801a66bb318def9aed2aa4ec2488515f4ace59340b3de33af921c6bf54d47e366894fa80bfcd6019ebfcf200fff4de08358315d359cfdf54940465eb5f64
EBUILD roundcube-1.2.5.ebuild 3537 SHA256 10ecbaee20bf74911036a1b2f143b6c40a4fcb0266117554d362a38d5706b1ea SHA512 45adfb86926861e5d252828ea67765e54412c40359d8a8e105184de45e5324e721c446f7300a14a4309a02db8fac32a103022bb28d6fa4c64f3a257e3850c966 WHIRLPOOL 1ec23b4836371a8efc8baa0311d314f2109ae17297a9232e80523694d32ceb75796cc62342b7dddc22119ee8c702826f1155287f2de833f230accb63375144ee
+EBUILD roundcube-1.2.6.ebuild 3919 SHA256 fe145496da736fafca7195c6f606f6e7b0065f2f7165bae059e16461f005b885 SHA512 0f29fb4dc5681268b2d95c338fe5b9e5dca9c1eb42aadd5d68528da77e6fc01b1d94a9637fed5ae45b3c3572d7daed45ec2d60e46df07092ece7eeffabcd3246 WHIRLPOOL 3357260aadaa3251533da35ff8f6b42b125a27ca328c0a240a91fe4f7a462dbfe1d73dcaa7e72f9cebd66db03940418cd7507830a1067ec85ae2bb787424a91f
EBUILD roundcube-1.2_beta.ebuild 3445 SHA256 16eeeccc4138a8712200318a2544430a3d3e00d4d97d832f4948185238681c4d SHA512 000ec58b5d3af22c2f3bc4a99b3552e1bf5ab257c93748214aabb21a73d4992370c7975de48e7a4d43d38f5bdcf1bcecfba3dc06985b1e405f050816e9feeefa WHIRLPOOL 0db8ffd1209c562cb7f3c9c2925f858e3d369957da35d3553196033dda24c69481ce9acaa29c4b40dcbadd2abfebf015f8ebfe9063658df062015aade22bec2d
EBUILD roundcube-1.3.0.ebuild 4364 SHA256 a5b475182029f9aba47af08650808c600dfa8472a05bdae49913f2ccceb7e0f7 SHA512 19373ff4a8d7ed42f717feb4d959c289a9472a4344fc7aa6f72e2aa2d5d5110570b96a6464dbd9a87e4f3723ccd6b869d2ad90402edf5a5f2897809ffd850d9c WHIRLPOOL 938ad79cdde054f2b4af8044be989149e43030555e4f3b0daa85950e65f92e0ecf97d1a56f24999058b5561ec802990943d3cb5658257881fecfabf864319d6f
+EBUILD roundcube-1.3.1.ebuild 3989 SHA256 356504736de1f8bd37eef18e8c0fa7733503a64c72d848fdf4e5ee0fb51a6784 SHA512 ac6024b6f04cf2492daa846241842a6db71cab76c644ff4940ed1a923f22870d4e0524e1fd47f28f74790de3458f3daf4033db408ca333373d563d76635466b0 WHIRLPOOL b26bffe7b08f471b3b41bd7739501b288d8eec7d91bf725da0fc45576b7754959e800cbd9932c6933fbea040cfa1ae279a2c9835d1a85858a483012b090634db
diff --git a/mail-client/roundcube/roundcube-1.2.6.ebuild b/mail-client/roundcube/roundcube-1.2.6.ebuild
new file mode 100644
index 00000000..bf0f4182
--- /dev/null
+++ b/mail-client/roundcube/roundcube-1.2.6.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit webapp
+
+MY_PN=${PN}mail
+MY_P=${MY_PN}-${PV}
+
+PHAR="1.5.2"
+
+DESCRIPTION="A browser-based multilingual IMAP client with an application-like user interface"
+HOMEPAGE="https://roundcube.net"
+SRC_URI="https://github.com/${PN}/${MY_PN}/releases/download/${PV}/${MY_P}-complete.tar.gz
+ plugins? ( https://getcomposer.org/download/${PHAR}/composer.phar -> composer.phar_${PHAR} )"
+RESTRICT="mirror"
+
+# roundcube is GPL-licensed, the rest of the licenses here are
+# for bundled PEAR components, googiespell and utf8.class.php
+LICENSE="GPL-3 BSD PHP-2.02 PHP-3 MIT public-domain"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+IUSE="enigma exif ldap managesieve +mysql php_targets_php7-0 plugins postgres sqlite ssl spell"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
+# The function below sets only DEPEND, so we need to include the latter in RDEPEND ...
+need_httpd_cgi
+
+RDEPEND="
+ ${DEPEND}
+ >=dev-lang/php-5.3.7[crypt,exif?,fileinfo,filter,gd,iconv,intl,json,ldap?,mysql?,pdo,postgres?,session,sockets,sqlite?,ssl?,unicode,xml,zip]
+ >=dev-php/PEAR-Auth_SASL-1.0.6
+ >=dev-php/PEAR-Mail_Mime-1.10.0
+ >=dev-php/PEAR-Mail_mimeDecode-1.5.5
+ >=dev-php/PEAR-Net_IDNA2-0.1.1
+ >=dev-php/PEAR-Net_SMTP-1.7.1
+ >=dev-php/PEAR-Net_Socket-1.0.12
+ virtual/httpd-php
+ enigma? ( >=dev-php/PEAR-Crypt_GPG-1.4.1 app-crypt/gnupg )
+ ldap? ( || ( >=dev-php/PEAR-Net_LDAP2-2.0.12 dev-php/PEAR-Net_LDAP3 ) )
+ managesieve? ( >=dev-php/PEAR-Net_Sieve-1.3.2 )
+ mysql? ( || ( dev-lang/php[mysql] dev-lang/php[mysqli] ) )
+ php_targets_php7-0? ( >=dev-php/PEAR-PEAR-1.10.1 )
+ plugins? ( dev-lang/php[ctype,filter,hash,json,phar,ssl] )
+ spell? ( dev-lang/php[curl,spell] )
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ cp config/config.inc.php{.sample,} || die
+ cp composer.json{-dist,} || die
+
+ rm robots.txt
+
+ default
+}
+
+src_unpack() {
+ local file
+
+ for file in ${A}; do
+ if [[ "${file}" == *.tar* ]]; then
+ unpack "${file}"
+ fi
+ done
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc CHANGELOG INSTALL README.md UPGRADING
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r [[:lower:]]* SQL
+ doins .htaccess
+ exeinto "${MY_HTDOCSDIR}"/bin
+ use plugins && newexe "${DISTDIR}"/composer.phar_${PHAR} composer.phar
+
+ webapp_serverowned "${MY_HTDOCSDIR}"/logs
+ webapp_serverowned "${MY_HTDOCSDIR}"/temp
+
+ webapp_configfile "${MY_HTDOCSDIR}"/config/config.inc.php
+ webapp_configfile "${MY_HTDOCSDIR}"/config/defaults.inc.php
+ webapp_configfile "${MY_HTDOCSDIR}"/composer.json
+
+ #webapp_postupgrade_txt en "${FILESDIR}/POST-UPGRADE.txt"
+ webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en-0.6.txt
+
+ webapp_src_install
+
+ # fperms must occur after webapp_src_install is called...
+ #fperms 0755 "${MY_HTDOCSDIR}"/bin/*.sh || die "Cannot set file permissions in '${ED}/${MY_HTDOCSDIR}'"
+ local FILE filename
+ find "${ED}"/"${MY_HTDOCSDIR}"/bin/ -type f -name \*.sh | while read -r FILE; do
+ filename="$( basename "${FILE}" )"
+ fperms 0755 "${MY_HTDOCSDIR}"/bin/"${filename}" || die "Cannot set file permissions in '${ED}/${MY_HTDOCSDIR}/bin/'"
+ done
+}
+
+pkg_postinst() {
+ webapp_pkg_postinst
+
+ if has_version "<mail-client/roundcube-1.0.0"; then
+ ewarn
+ ewarn "When upgrading from <= 0.9, note that the old configuration files"
+ ewarn "named main.inc.php and db.inc.php are deprecated and should be"
+ ewarn "replaced with one single config.inc.php file."
+ ewarn
+ ewarn "Run the ./bin/update.sh script to convert those"
+ ewarn "or manually merge the files."
+ ewarn
+ ewarn "The new config.inc.php should only contain options that"
+ ewarn "differ from those listed in defaults.inc.php."
+ ewarn
+ fi
+
+ if use plugins; then
+ elog "If you have installed PHP components with 'composer', then"
+ elog "please run the command:"
+ elog
+ elog " php composer.phar update --no-dev"
+ elog
+ elog "... to update these modules."
+ fi
+}
+# vi: set diffopt=iwhite,filler:
diff --git a/mail-client/roundcube/roundcube-1.3.1.ebuild b/mail-client/roundcube/roundcube-1.3.1.ebuild
new file mode 100644
index 00000000..07ed3d2d
--- /dev/null
+++ b/mail-client/roundcube/roundcube-1.3.1.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit webapp
+
+MY_PN=${PN}mail
+MY_P=${MY_PN}-${PV}
+
+PHAR="1.5.2"
+
+DESCRIPTION="A browser-based multilingual IMAP client with an application-like user interface"
+HOMEPAGE="https://roundcube.net"
+SRC_URI="https://github.com/${PN}/${MY_PN}/releases/download/${PV}/${MY_P}-complete.tar.gz
+ plugins? ( https://getcomposer.org/download/${PHAR}/composer.phar -> composer.phar_${PHAR} )"
+RESTRICT="mirror"
+
+# roundcube is GPL-licensed, the rest of the licenses here are
+# for bundled PEAR components, googiespell and utf8.class.php
+LICENSE="GPL-3 BSD PHP-2.02 PHP-3 MIT public-domain"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+IUSE="enigma exif ldap managesieve +mysql php_targets_php7-0 plugins postgres sqlite ssl spell"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
+# The function below sets only DEPEND, so we need to include the latter in RDEPEND ...
+need_httpd_cgi
+
+# :TODO: Support "endriod/qrcode: ~1.6.5" dep (ebuild needed)
+RDEPEND="
+ ${DEPEND}
+ >=dev-lang/php-5.4.0[crypt,exif?,fileinfo,filter,gd,iconv,intl,json,ldap?,mysql?,pdo,postgres?,session,sockets,sqlite?,ssl?,unicode,xml,zip]
+ >=dev-php/PEAR-Auth_SASL-1.1.0
+ >=dev-php/PEAR-Mail_Mime-1.10.0
+ >=dev-php/PEAR-Mail_mimeDecode-1.5.5
+ >=dev-php/PEAR-Net_IDNA2-0.2.0
+ >=dev-php/PEAR-Net_SMTP-1.7.1
+ >=dev-php/PEAR-Net_Socket-1.2.1
+ virtual/httpd-php
+ enigma? ( >=dev-php/PEAR-Crypt_GPG-1.6.0 app-crypt/gnupg )
+ ldap? ( || ( >=dev-php/PEAR-Net_LDAP2-2.2.0 dev-php/PEAR-Net_LDAP3 ) )
+ managesieve? ( >=dev-php/PEAR-Net_Sieve-1.4.0 )
+ mysql? ( || ( dev-lang/php[mysql] dev-lang/php[mysqli] ) )
+ php_targets_php7-0? ( >=dev-php/PEAR-PEAR-1.10.1 )
+ plugins? ( dev-lang/php[ctype,filter,hash,json,phar,ssl] )
+ spell? ( dev-lang/php[curl,spell] )
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ cp config/config.inc.php{.sample,} || die
+ cp composer.json{-dist,} || die
+
+ rm robots.txt
+
+ default
+}
+
+src_unpack() {
+ local file
+
+ for file in ${A}; do
+ if [[ "${file}" == *.tar* ]]; then
+ unpack "${file}"
+ fi
+ done
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc CHANGELOG INSTALL README.md UPGRADING
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r [[:lower:]]* SQL
+ doins .htaccess
+ exeinto "${MY_HTDOCSDIR}"/bin
+ use plugins && newexe "${DISTDIR}"/composer.phar_${PHAR} composer.phar
+
+ webapp_serverowned "${MY_HTDOCSDIR}"/logs
+ webapp_serverowned "${MY_HTDOCSDIR}"/temp
+
+ webapp_configfile "${MY_HTDOCSDIR}"/config/config.inc.php
+ webapp_configfile "${MY_HTDOCSDIR}"/config/defaults.inc.php
+ webapp_configfile "${MY_HTDOCSDIR}"/composer.json
+
+ #webapp_postupgrade_txt en "${FILESDIR}/POST-UPGRADE.txt"
+ webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en-0.6.txt
+
+ webapp_src_install
+
+ # fperms must occur after webapp_src_install is called...
+ #fperms 0755 "${MY_HTDOCSDIR}"/bin/*.sh || die "Cannot set file permissions in '${ED}/${MY_HTDOCSDIR}'"
+ local FILE filename
+ find "${ED}"/"${MY_HTDOCSDIR}"/bin/ -type f -name \*.sh | while read -r FILE; do
+ filename="$( basename "${FILE}" )"
+ fperms 0755 "${MY_HTDOCSDIR}"/bin/"${filename}" || die "Cannot set file permissions in '${ED}/${MY_HTDOCSDIR}/bin/'"
+ done
+}
+
+pkg_postinst() {
+ webapp_pkg_postinst
+
+ if has_version "<mail-client/roundcube-1.0.0"; then
+ ewarn
+ ewarn "When upgrading from <= 0.9, note that the old configuration files"
+ ewarn "named main.inc.php and db.inc.php are deprecated and should be"
+ ewarn "replaced with one single config.inc.php file."
+ ewarn
+ ewarn "Run the ./bin/update.sh script to convert those"
+ ewarn "or manually merge the files."
+ ewarn
+ ewarn "The new config.inc.php should only contain options that"
+ ewarn "differ from those listed in defaults.inc.php."
+ ewarn
+ fi
+
+ if use plugins; then
+ elog "If you have installed PHP components with 'composer', then"
+ elog "please run the command:"
+ elog
+ elog " php composer.phar update --no-dev"
+ elog
+ elog "... to update these modules."
+ fi
+}
+# vi: set diffopt=iwhite,filler: