aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2017-10-03 23:02:34 +0100
committerStuart Shelton <stuart@shelton.me>2017-10-03 23:04:59 +0100
commitb7ba9edb747a864bc6fe44552e8b4e356475f3b2 (patch)
tree9fd98709669f68b10d7d1db6a3dcf3c8f7487209 /www-apps
parentAdd sys-libs/libunwind-1.2.1, update sys-libs/libunwind-1.1-r1 (diff)
downloadsrcshelton-b7ba9edb747a864bc6fe44552e8b4e356475f3b2.tar.gz
srcshelton-b7ba9edb747a864bc6fe44552e8b4e356475f3b2.tar.bz2
srcshelton-b7ba9edb747a864bc6fe44552e8b4e356475f3b2.zip
Add www-apps/nabaztaglives-2.2.3
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/nabaztaglives/Manifest2
-rw-r--r--www-apps/nabaztaglives/nabaztaglives-2.2.3.ebuild161
2 files changed, 163 insertions, 0 deletions
diff --git a/www-apps/nabaztaglives/Manifest b/www-apps/nabaztaglives/Manifest
index d0a82e84..b3ecf570 100644
--- a/www-apps/nabaztaglives/Manifest
+++ b/www-apps/nabaztaglives/Manifest
@@ -6,6 +6,7 @@ AUX nabaztaglives-2.1.2-api.patch 9012 SHA256 b34e882c503244d5d55f14f66947183acd
AUX nabaztaglives-2.2.2-api.patch 8956 SHA256 31f277496ec5d978b0677052b29beb73ccde0f3121ee9e6961e0b5079217db9f SHA512 efeb6676164905d8f5faa9eacfa479e75a226d49647e1e4f98eb0408e649a8f074e53cedaf8789c8763d3f97fbcc84d8a1ac463a0dc0f551df8bc0db8bd815eb WHIRLPOOL d91118675013280a43a86fe3b0ee7567506d1c1ccee393edd77dd0fab8598b00548c8e5e317fdde0495d0e024930b5668d505fe6de213d4cb9633652bfb531eb
AUX postinstall-en-2.00.txt 300 SHA256 c54ee8192d3aed8a0f90dc5f9805e42e237e1d479ef3bce2679e6d3dff383af5 SHA512 ac3e056e697f6f29a2cb88e0d34aab33c4968c98f08099f71dc80700004883eab6f89dbf7dc168ea18bfcd89b8108b2474af591a40800f6cc5ad20783d713da2 WHIRLPOOL 828a8d8f4aae4ad2fcc9e13148ce73d0f163b35ec5363e090358957fbb1a9da2e53c87164b6aca55bb186905b8407f227804cf37040f764dbbc6aa94da3dca52
DIST nabaztaglives-code-258dd0c4c32207863fb4657a453d507876ca2c5a.zip 32143186 SHA256 f299562289bade6779539f929413cec8f30205cd4a133f4bfd964a6cadb938fb SHA512 5ae0d1fdb6b82eb9a0c22b7a9986ddf4e28cab9571f0ba652d52de499e4003a2eba7220d0e91f3d9fc009a8809ea4257eb12d5d66fc3fab1b6edced67a28d032 WHIRLPOOL 50daf7acac1444f7960830bdf348b8a64cb6efd124882332bfaae42d4f45c515351dc3d303283bd32f10aad9d0eb19013df4c6962571c636df2ee8618c34285c
+DIST nabaztaglives-code-470278918c400cb6550b33a181dbfc0cd1ab76f1.zip 32146457 SHA256 ac3e6defd22926a6945d77d05d68ea1d055dc08c2d7627e738900f84e75feefe SHA512 6388980e20815bffe93368e1cfb676e341e9246fd1847b763c9793ea326e58f11e983c65b78363d1b69a53035fa3ddc2dc8174917669a4df67ee52f4f900e169 WHIRLPOOL 766be84c5b19f05099c2c24990a41779e71d73b2833c85024c690eb3ce4cf90e89c6752e979ad740432db0499feaf7ec4de35e9bbde795f75afb877b345adaf5
DIST nabaztaglives-code-5577e0e24dcf95179d078ddc04753a83b1e43b0a.zip 31649978 SHA256 72ae80194e5522fce4732302d41a580262947fdc55dcc52bcfa2d7f5b6de10a8 SHA512 9b3ba8bb8af32a48529af796fca25a70cb607413a32a877e33a157829dcb5540f8b9e47de4d8725f6bd4ad6af9661503aef8d45661cfe7b675d72999ce269f8b WHIRLPOOL 195c3de2dc7c55ea005bc03f5b66a1d258b69dbccb3911e27c3487128588e998e55d5dadfaac72fd8e0b2911c518aa23a65ffd387000b0c359a5706d12eb15f6
DIST nabaztaglives-code-622cd905f87bcf3d6ff16369ee914525ae213bd7.zip 32146477 SHA256 d687571adb614fa3be10ea6eee74dfb85983020074ff0a741c4ec4ce9b6924b8 SHA512 e46bbc6834861702a85d4e48121ea8193c5715a738487b3168d06207d3577f24577846a98180eb4d23c5b28d974f695e0d93f10aba98b6e23728f8586123b319 WHIRLPOOL a3f863003ec97fbc7f8092aeb9ba8c878d68afc40753a554532bd81d0035b6748ff827afb3457de9142a801207e213d90461e34e818ce60d39885479eb9958e9
DIST nabaztaglives-code-73f9640f528b8c36d1aca59bd9bfc6d0df5bdc08.zip 32146524 SHA256 0a610147b0d9322f821aaf1a8e5f09dca3f2e53afb5a6140c7c010f436eac527 SHA512 953a37744a38d7a2ae632f90eb9b7748d5f2be1b97efca6c3bc7670fa92d2d019402a4057ad2d19ef87e95bee2504d99cc28548ccba58aacfca7e19aa3687ae1 WHIRLPOOL 2e8cc2962f799c5c8444220cae71fbf0bfb8c353c07ac197f5f00ca0ceb50718ccd1623aa9c718a1ca4655afd9eee592c5d5e51e1347a8e29c961acb359f34c5
@@ -21,3 +22,4 @@ EBUILD nabaztaglives-2.1.7.ebuild 3928 SHA256 a5fb246f4b5397bcfb725ddbd7fccb4334
EBUILD nabaztaglives-2.2.0.ebuild 4521 SHA256 63bbfc904c33277e2810af446c30058c3c73f12507af5821766a43fd401df18a SHA512 4f4994799183a600784f889b1e7da709ad0f1854babbebb67b863adec330a9214d3312e4c9252ab015c13673e82c827e1cc8247d8e2bdafccb99364bd1e9e6a7 WHIRLPOOL 0858948d949378deb9347bd5b0076e821a284d1908caa44864a7bd38fef906c35c0f06587799d6364a21d17992aa774b0e487f39af4cf46aff947df0d041ba72
EBUILD nabaztaglives-2.2.1.ebuild 4521 SHA256 e9d3ff36508a2d8982fcfac1e6eb4fa60a60c422e16baed4f67c97b451df0aec SHA512 6cca73b7621d943726b0d8968e0b45524d37f9a6dc4d3741470d0a43e35c0a929bb3a3180bd9faceb4dc016e06ed22bd2fd7848802549fe67ecc2582b2209131 WHIRLPOOL ac6282845e34dfd770999f1e93f7fb47ffec7d7d9fe2596a0a275f7859351088629ad97f0596e0794a003b0144e6bc796b9721c3df7e77ac726223c0c718c434
EBUILD nabaztaglives-2.2.2.ebuild 4521 SHA256 7a1a69f9466f878d452b1509f8144290912e776307de1ac78e7a1f2f8a18c0b6 SHA512 19a653628f313ad9a639d6b5af2119858fa510cc21e8bf531e5442dff629dbf67fb7ed2b1a6184225fdce7327bc026798a458c48d70cd1ee4e8670a2877774a4 WHIRLPOOL 9001b5fc0932e463fc4b12098e61b7677e3fcec17ff18cfd62a678a03a315dff5610c4aa9ce5732fcfb15c7952bfbf82f26b4719cab8a1c1dbd4fe176f9a1581
+EBUILD nabaztaglives-2.2.3.ebuild 4521 SHA256 147be670238ed51d96800e042e49858fc4ff70bac42b9c533c028c19089fdfff SHA512 2f003e13c94782ee8dd248145673da0fa99f3e37ef4b4d9038080ba99ce9a9795da408927ee678808a28884bbd3f0ca289b62d4a8ce099f6c721a810c57464eb WHIRLPOOL a6a440766edb1af69457473e7b478ff39a998155acca9a6af44bc6a3db1c9d668c5bed92ca477a54cbda312e618490be63fa18fb9c11dd6f6580a045ea061ac5
diff --git a/www-apps/nabaztaglives/nabaztaglives-2.2.3.ebuild b/www-apps/nabaztaglives/nabaztaglives-2.2.3.ebuild
new file mode 100644
index 00000000..88a7c375
--- /dev/null
+++ b/www-apps/nabaztaglives/nabaztaglives-2.2.3.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils webapp
+
+LANGUAGES="l10n_de l10n_en l10n_es l10n_fr l10n_it l10n_ja l10n_us"
+
+COMMIT="470278918c400cb6550b33a181dbfc0cd1ab76f1"
+
+DESCRIPTION="Nabaztag/tag NabaztagLives! Server"
+HOMEPAGE="http://nabaztaglives.com"
+SRC_URI="http://sourceforge.net/code-snapshots/git/n/na/nabaztaglives/code.git/nabaztaglives-code-${COMMIT}.zip"
+RESTRICT="nomirror"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ${LANGUAGES}"
+
+RDEPEND="
+ virtual/httpd-php
+ dev-lang/php
+ media-sound/lame
+ media-sound/mp3wrap
+ app-accessibility/svox-pico
+"
+
+need_httpd_cgi
+
+S="${WORKDIR}/nabaztaglives-code-${COMMIT}"
+
+pkg_nofetch() {
+ einfo "If the source for this ebuild fails to download, please access the following URL:"
+ einfo
+ einfo " https://sourceforge.net/p/nabaztaglives/code/ci/${COMMIT}/tree/"
+ einfo
+ einfo "... and select 'Download Snapshot' in order to regenerate the cached archive."
+ einfo
+ einfo "This is (one of the many reasons) why everyone is using github instead..."
+}
+
+src_prepare() {
+ cd "${S}"
+
+ if use l10n_ja; then
+ epatch "${FILESDIR}"/"${PN}"-2.1-lang-ja.patch
+ fi
+
+ sed -si \
+ -e 's|<?$|<?php|' \
+ www/peek.php \
+ || die "PHP patching failed: ${?}"
+ sed -si \
+ -e 's|<? |<?php |g' \
+ www/saveUpdateRabbit.php \
+ || die "PHP patching failed: ${?}"
+
+ sed -si \
+ -e "s|'/var/etc/nabaztag_error.log'|'./logs/error.log'|" \
+ www/*.php \
+ || die "Log-location patching failed: ${?}"
+ sed -si \
+ -e "s|'/var/etc/nabaztag_error.log'|'../logs/error.log'|" \
+ www/subroutines/logError.php www/vl/p4.php \
+ || die "Log-location patching failed: ${?}"
+ sed -si \
+ -e "s|'/var/etc/nabaztag_error.log'|'../../logs/error.log'|" \
+ www/vl/FR/p3.jsp \
+ || die "Log-location patching failed: ${?}"
+
+ sed -si \
+ -e "s|'/var/etc/api_calls.log'|'../logs/apicalls.log'|" \
+ www/api*.php \
+ || die "API log-location patching failed: ${?}"
+
+ sed -si \
+ -e 's|'/var/etc/nabaztag_db.php'|'./config/db.php'|' \
+ www/*.php \
+ || die "Configuration patching failed: ${?}"
+ sed -si \
+ -e 's|'/var/etc/nabaztag_db.php'|'../config/db.php'|' \
+ www/subroutines/*.php www/vl/p4.php www/vl/FR/p3.jsp \
+ || die "Configuration patching failed: ${?}"
+ sed -si \
+ -e 's|'/var/etc/nabaztag_db.php'|'../../config/db.php'|' \
+ www/vl/FR/p3.jsp \
+ || die "Configuration patching failed: ${?}"
+
+ sed -rsi \
+ -e 's|<img src="?([^"> ]+).jpg"?|<img src="images/\1.jpg"|g' \
+ www/*.php www/*.htm \
+ || die "Image patching failed: ${?}"
+ sed -rsi \
+ -e 's|<a href="?([^"> ]+).jpg"?|<a href="images/\1.jpg"|g' \
+ www/*.php \
+ || die "Image patching failed: ${?}"
+
+ sed -rsi \
+ -e 's|url\(([^)]+).jpg\)|url(images/\1.jpg)|g' \
+ www/main.css \
+ || die "CSS Image patching failed: ${?}"
+
+ sed -si \
+ -e "/'pi'/d" \
+ db/rabbit_pi.sql \
+ || die "MySQL script patching failed: ${?}"
+
+ #use l10n_en || { einfo "Removing audio files for EN/US language" ; rm -r www/vl/broad_us ; }
+ for LNG in it es de us; do
+ eval "use l10n_${LNG} || { einfo 'Removing audio files for ${LNG} language' ; rm -r www/vl/broad_${LNG} ; }"
+ done
+
+ mkdir www/images
+
+ rm db/*.sh
+ rm docs/installation.htm
+
+ mv www/*.jpg www/images/
+ mv db/rabbit_pi.sql db/initial.sql
+
+ epatch "${FILESDIR}/${PN}-2.2.2-api.patch" || die "Patch failed"
+ epatch "${FILESDIR}/${PN}-2.00.patch" || die "Patch failed"
+
+ sed -si \
+ -e 's/doTTS2(/doTTS3(/g' \
+ www/api.php \
+ || die "Undefined function patching failed: ${?}"
+ sed -si \
+ -e "/Could not connect: /s|'[^']*Could not connect: '|__FILE__ . ': Could not connect to host \"' . \$host . '\" database \"' . \$db . '\" as ' . \$user . ':' . \$pass . ' - ' |" \
+ www/*.php www/subroutines/*.php \
+ || die "Logging improvement patching failed: ${?}"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ use doc && dohtml -r docs/*
+
+ ewarn "Installation of large numbers of files can be slow - please wait ..."
+ insinto "${MY_HTDOCSDIR}"
+ doins -r www/*
+ dodir "${MY_HTDOCSDIR}"/db
+ dodir "${MY_HTDOCSDIR}"/config
+ dodir "${MY_HTDOCSDIR}"/logs
+ insinto "${MY_HTDOCSDIR}"/db
+ doins -r db/*
+ insinto "${MY_HTDOCSDIR}"/config
+ newins etc/nabaztag_db.php db.php
+ insinto "${MY_HTDOCSDIR}"/logs
+ newins etc/nabaztag_error.log error.log
+
+ webapp_serverowned "${MY_HTDOCSDIR}"/vl/hutch
+ webapp_serverowned "${MY_HTDOCSDIR}"/logs/error.log
+ webapp_configfile "${MY_HTDOCSDIR}"/config/db.php
+ webapp_configfile "${MY_HTDOCSDIR}"/locate.jsp
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en-2.00.txt
+
+ webapp_src_install
+}