1 |
nativemad 14/10/28 16:35:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: guacamole-0.9.3.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.8-r2/cvs/Linux i686, signed Manifest commit with key C1DE54B2) |
9 |
|
10 |
Revision Changes Path |
11 |
1.12 www-apps/guacamole/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?rev=1.12&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?rev=1.12&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?r1=1.11&r2=1.12 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v |
20 |
retrieving revision 1.11 |
21 |
retrieving revision 1.12 |
22 |
diff -u -r1.11 -r1.12 |
23 |
--- ChangeLog 12 Aug 2014 09:07:24 -0000 1.11 |
24 |
+++ ChangeLog 28 Oct 2014 16:35:48 -0000 1.12 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-apps/guacamole |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v 1.11 2014/08/12 09:07:24 nativemad Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v 1.12 2014/10/28 16:35:48 nativemad Exp $ |
30 |
+ |
31 |
+*guacamole-0.9.3 (28 Oct 2014) |
32 |
+ |
33 |
+ 28 Oct 2014; Andreas Schuerch <nativemad@g.o> +guacamole-0.9.3.ebuild: |
34 |
+ version bump |
35 |
|
36 |
*guacamole-0.9.2 (12 Aug 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 www-apps/guacamole/guacamole-0.9.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.9.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.9.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: guacamole-0.9.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/guacamole-0.9.3.ebuild,v 1.1 2014/10/28 16:35:48 nativemad Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
inherit eutils |
55 |
DESCRIPTION="Guacamole is a html5 vnc client as servlet" |
56 |
HOMEPAGE="http://guac-dev.org/" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz |
58 |
mysql? ( http://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-mysql-0.9.3.tar.gz ) |
59 |
ldap? ( http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-ldap-0.9.3.tar.gz )" |
60 |
S="${WORKDIR}/${PN}-client-${PV}" |
61 |
|
62 |
LICENSE="AGPL-3" |
63 |
|
64 |
SLOT="0" |
65 |
|
66 |
KEYWORDS="~x86" |
67 |
|
68 |
IUSE="ldap mysql" |
69 |
|
70 |
DEPEND="dev-java/maven-bin" |
71 |
|
72 |
RDEPEND="${DEPEND} |
73 |
www-servers/tomcat |
74 |
>virtual/jre-1.6 |
75 |
net-misc/guacamole-server |
76 |
mysql? ( virtual/mysql ) |
77 |
ldap? ( net-nds/openldap )" |
78 |
|
79 |
src_compile() { |
80 |
mkdir "${HOME}"/.m2 |
81 |
cat /usr/share/`readlink /usr/bin/mvn | sed 's:mvn:maven-bin:'`/conf/settings.xml | \ |
82 |
sed -e 's:/path/to/local/repo:'${HOME}/.m2':g' -e 's:<!-- localRepo::' >"${S}"/settings.xml |
83 |
mvn -s "${S}"/settings.xml package |
84 |
} |
85 |
|
86 |
src_install() { |
87 |
if use mysql; then |
88 |
echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" |
89 |
echo auth-provider: net.sourceforge.guacamole.net.auth.mysql.MySQLAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" |
90 |
echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" |
91 |
echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties" |
92 |
echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" |
93 |
echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" |
94 |
echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" |
95 |
sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" |
96 |
insinto "/var/lib/${PN}/classpath" |
97 |
find "${WORKDIR}/${PN}-auth-mysql-0.9.3/lib/" -name '*.jar' -exec doins '{}' + |
98 |
insinto "/usr/share/${PN}/schema" |
99 |
find "${WORKDIR}/${PN}-auth-mysql-0.9.3/schema/" -name '*.sql' -exec doins '{}' + |
100 |
insinto "/usr/share/${PN}/schema/upgrade" |
101 |
find "${WORKDIR}/${PN}-auth-mysql-0.9.3/schema/upgrade/" -name '*.sql' -exec doins '{}' + |
102 |
elog "Please add a mysql database and a user and load the sql files in /usr/share/guacamole/schema/ into it." |
103 |
elog "You will also need to adjust the DB propeties in /etc/guacamole.properties!" |
104 |
elog "The default user and it's password is \"guacadmin\"." |
105 |
elog "You will also need to download the mysql-connector from here http://dev.mysql.com/downloads/connector/j/" |
106 |
elog "and put the contained .jar file into /var/lib/guacamole/classpath!" |
107 |
elog "-" |
108 |
fi |
109 |
if use ldap; then |
110 |
echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" |
111 |
echo auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" |
112 |
echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" |
113 |
echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties" |
114 |
echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" |
115 |
echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties" |
116 |
echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" |
117 |
sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" |
118 |
insinto "/var/lib/${PN}/classpath" |
119 |
find "${WORKDIR}/${PN}-auth-ldap-0.9.3/lib/" -name '*.jar' -exec doins '{}' + |
120 |
insinto "/usr/share/${PN}/schema" |
121 |
doins "${WORKDIR}/${PN}-auth-ldap-0.9.3/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-auth-ldap-0.9.3/schema/guacConfigGroup.schema" |
122 |
elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server." |
123 |
elog "There is also an example .lidf file for creating the users." |
124 |
elog "-" |
125 |
fi |
126 |
sed -e 's:/path/to:/etc/guacamole:g' -i "${S}/${PN}/doc/example/${PN}.properties" || die "properties sed failed" |
127 |
insinto /etc/"${PN}" |
128 |
doins "${S}/${PN}/doc/example/guacamole.properties" |
129 |
doins "${S}/${PN}/doc/example/user-mapping.xml" |
130 |
insinto "/var/lib/${PN}" |
131 |
newins "${S}/${PN}/target/${P}.war" "${PN}.war" |
132 |
elog "Please unpack /var/lib/"${PN}"/"${PN}".war in to your servlet container! If it is an update," |
133 |
elog "delete the old content first!" |
134 |
elog "Read: if you use the command below, delete everything within /var/lib/guacamole/guacamole first!" |
135 |
elog "Please also link /etc/guacamole in to the lib directory of your servlet container." |
136 |
elog "like this:" |
137 |
elog "cd /var/lib/guacamole && mkdir guacamole && cd guacamole && jar -xvf ../guacamole.war && cd .. && mv guacamole /var/lib/tomcat-7/webapps/" |
138 |
elog "ln -sf /etc/guacamole/guacamole.properties /usr/share/tomcat-7/lib/" |
139 |
elog "You will also need to define users and connections in /etc/guacamole/user-mapping.xml if mysql or ldap is not used!" |
140 |
} |