diff options
author | Stuart Shelton <stuart@shelton.me> | 2014-08-02 00:30:01 +0100 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2014-08-02 00:30:01 +0100 |
commit | 5719724012bd9e80c1ac708860a3fe1af7cf8220 (patch) | |
tree | efc9e5dd2f0a11a10d466fae1826883418c23220 | |
parent | Add sys-libs/glibc-2.19-r1 (diff) | |
download | srcshelton-5719724012bd9e80c1ac708860a3fe1af7cf8220.tar.gz srcshelton-5719724012bd9e80c1ac708860a3fe1af7cf8220.tar.bz2 srcshelton-5719724012bd9e80c1ac708860a3fe1af7cf8220.zip |
Add www-apps/nabaztaglives-0.6
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | www-apps/nabaztaglives/Manifest | 3 | ||||
-rw-r--r-- | www-apps/nabaztaglives/files/postinstall-en-0.6.txt | 18 | ||||
-rw-r--r-- | www-apps/nabaztaglives/nabaztaglives-0.6.ebuild | 119 |
4 files changed, 142 insertions, 0 deletions
@@ -104,6 +104,8 @@ EOF * PAM component of mOTP * www-apps/heatmiser * Data acquisition and web-interface for Heatmiser Wifi Thermostats +* www-apps/nabaztaglives + * Nabaztag Lives server software, re-factored into a webapp * www-apps/opennab * OpenNAB Nabaztag server software * www-apps/rpi-monitor diff --git a/www-apps/nabaztaglives/Manifest b/www-apps/nabaztaglives/Manifest new file mode 100644 index 00000000..3b837e30 --- /dev/null +++ b/www-apps/nabaztaglives/Manifest @@ -0,0 +1,3 @@ +AUX postinstall-en-0.6.txt 300 SHA256 c54ee8192d3aed8a0f90dc5f9805e42e237e1d479ef3bce2679e6d3dff383af5 SHA512 ac3e056e697f6f29a2cb88e0d34aab33c4968c98f08099f71dc80700004883eab6f89dbf7dc168ea18bfcd89b8108b2474af591a40800f6cc5ad20783d713da2 WHIRLPOOL 828a8d8f4aae4ad2fcc9e13148ce73d0f163b35ec5363e090358957fbb1a9da2e53c87164b6aca55bb186905b8407f227804cf37040f764dbbc6aa94da3dca52 +DIST nabaztaglives-code-5577e0e24dcf95179d078ddc04753a83b1e43b0a.zip 31649978 SHA256 72ae80194e5522fce4732302d41a580262947fdc55dcc52bcfa2d7f5b6de10a8 SHA512 9b3ba8bb8af32a48529af796fca25a70cb607413a32a877e33a157829dcb5540f8b9e47de4d8725f6bd4ad6af9661503aef8d45661cfe7b675d72999ce269f8b WHIRLPOOL 195c3de2dc7c55ea005bc03f5b66a1d258b69dbccb3911e27c3487128588e998e55d5dadfaac72fd8e0b2911c518aa23a65ffd387000b0c359a5706d12eb15f6 +EBUILD nabaztaglives-0.6.ebuild 3035 SHA256 c5063073396648258fe71e16605404c323bcaf3e94d911527aedbcc5b657b8d5 SHA512 d1b508ff4294735be6ddd3f577528b3b72bd4f75508f29ff59c0cba351b45c86d32605665ed21b241478c742ad348226ca388892df09830379bc391a7b501861 WHIRLPOOL fca60b61f06a11a8f248b495d3785a303d7448fcfa9e83b5cc2bf07c0cf94e775cb7e964cec2a98ea65f58487bd5e8a7b7cfeb76a3a225579c98aeb7e0919162 diff --git a/www-apps/nabaztaglives/files/postinstall-en-0.6.txt b/www-apps/nabaztaglives/files/postinstall-en-0.6.txt new file mode 100644 index 00000000..1d0db43e --- /dev/null +++ b/www-apps/nabaztaglives/files/postinstall-en-0.6.txt @@ -0,0 +1,18 @@ + +For a new install, please edit: + + db/initial.sql + +... and specify your desired username and password. With these in mind, +proceed to update: + + config/db.php + +... with the same values. + +Finally, ensure that the two IP addresses specified in: + + locate.jsp + +... are the IP address of the web-server. + diff --git a/www-apps/nabaztaglives/nabaztaglives-0.6.ebuild b/www-apps/nabaztaglives/nabaztaglives-0.6.ebuild new file mode 100644 index 00000000..4a88f3ac --- /dev/null +++ b/www-apps/nabaztaglives/nabaztaglives-0.6.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils webapp + +LANGUAGES="linguas_de linguas_en linguas_es linguas_fr linguas_it linguas_us" + +COMMIT="5577e0e24dcf95179d078ddc04753a83b1e43b0a" + +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 +" + +need_httpd_cgi + +S="${WORKDIR}/nabaztaglives-code-${COMMIT}" + +src_prepare() { + cd "${S}" + + sed -si \ + -e 's|<? |<?php |g' \ + www/*.php \ + || die "PHP patching failed: ${?}" + + sed -si \ + -e "s|'../etc/nabaztag_error.log'|'logs/error.log'|" \ + www/*.php www/subroutines/logError.php \ + || die "Log-location patching failed: ${?}" + sed -si \ + -e 's|../etc/nabaztag_error.log|logs/error.log|' \ + www/vl/p4.php www/vl/FR/p3.jsp \ + || die "Log-location patching failed: ${?}" + + sed -si \ + -e "s|../etc/api_calls.log|logs/apicalls.log|" \ + www/*.php \ + || die "API log-location patching failed: ${?}" + + sed -si \ + -e 's|../etc/nabaztag_db.php|config/db.php|' \ + www/*.php www/subroutines/*.php www/vl/p4.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 linguas_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 linguas_${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 +} + +src_install() { + webapp_src_preinst + + use doc && dohtml -r docs/* + + einfo "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-${PV}.txt + + webapp_src_install +} |