public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in www-apps/guacamole: guacamole-0.8.0.ebuild ChangeLog
@ 2013-04-28 11:35 Andreas Schuerch (nativemad)
  0 siblings, 0 replies; only message in thread
From: Andreas Schuerch (nativemad) @ 2013-04-28 11:35 UTC (permalink / raw
  To: gentoo-commits

nativemad    13/04/28 11:35:31

  Modified:             ChangeLog
  Added:                guacamole-0.8.0.ebuild
  Log:
  new ebuild for 0.8.0
  
  (Portage version: 2.1.11.55/cvs/Linux i686, signed Manifest commit with key C1DE54B2)

Revision  Changes    Path
1.6                  www-apps/guacamole/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?r1=1.5&r2=1.6

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ChangeLog	28 Apr 2013 08:25:59 -0000	1.5
+++ ChangeLog	28 Apr 2013 11:35:31 -0000	1.6
@@ -1,6 +1,11 @@
 # ChangeLog for www-apps/guacamole
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v 1.5 2013/04/28 08:25:59 nativemad Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v 1.6 2013/04/28 11:35:31 nativemad Exp $
+
+*guacamole-0.8.0 (28 Apr 2013)
+
+  28 Apr 2013; Andreas Schuerch <nativemad@gentoo.org> +guacamole-0.8.0.ebuild:
+  new ebuild for 0.8.0
 
   28 Apr 2013; Andreas Schuerch <nativemad@gentoo.org> guacamole-0.6.2.ebuild,
   guacamole-0.7.0.ebuild:



1.1                  www-apps/guacamole/guacamole-0.8.0.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.8.0.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.8.0.ebuild?rev=1.1&content-type=text/plain

Index: guacamole-0.8.0.ebuild
===================================================================
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/guacamole-0.8.0.ebuild,v 1.1 2013/04/28 11:35:31 nativemad Exp $

EAPI=4

inherit eutils
DESCRIPTION="Guacamole is a html5 vnc client as servlet"
HOMEPAGE="http://guacamole.sourceforge.net/"
#I know its terrible, but with the mirror url it always takes the wrong file with the same name...
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
	mysql? ( http://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-mysql-0.8.0.tar.gz )"
LICENSE="AGPL-3"

SLOT="0"

KEYWORDS="~x86"

IUSE="vnc rdesktop mysql"

DEPEND="dev-java/maven-bin"

RDEPEND="${DEPEND}
	www-servers/tomcat
	>virtual/jre-1.6
	net-misc/guacd
	vnc? ( net-libs/libguac-client-vnc )
	rdesktop? ( net-libs/libguac-client-rdp )
	mysql? ( virtual/mysql )"

src_compile() {
	mkdir "${HOME}"/.m2
	cat /usr/share/`readlink /usr/bin/mvn | sed 's:mvn:maven-bin:'`/conf/settings.xml | \
	sed -e 's:/path/to/local/repo:'${HOME}/.m2':g' -e 's:<!-- localRepo::' >"${S}"/settings.xml
	mvn -s "${S}"/settings.xml package
}

src_install() {
	if use mysql; then
		echo lib-directory: /var/lib/"${PN}"/classpath >>"${S}"/doc/example/"${PN}".properties
		echo auth-provider: net.sourceforge.guacamole.net.auth.mysql.MySQLAuthenticationProvider >>"${S}"/doc/example/"${PN}".properties
		echo mysql-hostname: localhost >>"${S}"/doc/example/"${PN}".properties
		echo mysql-port: 3306 >>"${S}"/doc/example/"${PN}".properties
		echo mysql-database: guacamole >>"${S}"/doc/example/"${PN}".properties
		echo mysql-username: guacamole >>"${S}"/doc/example/"${PN}".properties
		echo mysql-password: some_password >>"${S}"/doc/example/"${PN}".properties
		sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}"/doc/example/"${PN}".properties
		insinto /var/lib/"${PN}"/classpath
		doins "${WORKDIR}"/"${PN}"-auth-mysql-"${PV}"/lib/*.jar
		insinto /usr/share/"${PN}"/schema
		doins "${WORKDIR}"/"${PN}"-auth-mysql-"${PV}"/schema/*.sql
		elog "Please add a mysql database and a user and load the sql files in /usr/share/guacamole/schema/ into it."
		elog "You will also need to adjust the DB propeties in /etc/guacamole.properties!"
		elog "The default user and it's password is \"guacadmin\"."
		elog "You will also need to download the mysql-connector from here http://dev.mysql.com/downloads/connector/j/"
		elog "and put the contained .jar file into /var/lib/guacamole/classpath!"
		elog "-"
	fi
	sed -e 's:/path/to:/etc/guacamole:g' -i "${S}"/doc/example/"${PN}".properties || die "properties sed failed"
	insinto /etc/"${PN}"
	doins "${S}"/doc/example/guacamole.properties
	doins "${S}"/doc/example/user-mapping.xml
	insinto /var/lib/"${PN}"
	newins "${S}"/target/"${P}".war "${PN}".war
	elog "Please unpack /var/lib/"${PN}"/"${PN}".war in to your servlet container! If it is an update,"
	elog "delete the old content first!"
	elog "Read: if you use the command below, delete everything within /var/lib/guacamole/guacamole first!"
	elog "Please also link /etc/guacamole in to the lib directory of your servlet container."
	elog "like this:"
	elog "cd /var/lib/guacamole && mkdir guacamole && cd guacamole && jar -xvf ../guacamole.war && cd .. && mv guacamole /var/lib/tomcat-7/webapps/"
	elog "ln -sf /etc/guacamole/guacamole.properties /usr/share/tomcat-7/lib/"
	elog "You will also need to define users and connectrions in /etc/guacamole/user-mapping.xml if mysql is not used!"
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-28 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-28 11:35 [gentoo-commits] gentoo-x86 commit in www-apps/guacamole: guacamole-0.8.0.ebuild ChangeLog Andreas Schuerch (nativemad)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox