Gentoo Archives: gentoo-commits

From: "Andreas Schuerch (nativemad)" <nativemad@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/guacamole: guacamole-0.8.3.ebuild ChangeLog guacamole-0.6.2.ebuild
Date: Tue, 26 Nov 2013 12:53:40
Message-Id: 20131126125333.6C17F2004B@flycatcher.gentoo.org
1 nativemad 13/11/26 12:53:33
2
3 Modified: ChangeLog guacamole-0.6.2.ebuild
4 Added: guacamole-0.8.3.ebuild
5 Log:
6 version bump. Added ldap backend and depend on the new guacamole-server instead of guacd and its libs. Also quoted some variables on 0.6.2 to make repoman happy.
7
8 (Portage version: 2.2.1/cvs/Linux i686, signed Manifest commit with key C1DE54B2)
9
10 Revision Changes Path
11 1.8 www-apps/guacamole/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 14 Aug 2013 11:31:47 -0000 1.7
24 +++ ChangeLog 26 Nov 2013 12:53:33 -0000 1.8
25 @@ -1,6 +1,14 @@
26 # ChangeLog for www-apps/guacamole
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v 1.7 2013/08/14 11:31:47 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/ChangeLog,v 1.8 2013/11/26 12:53:33 nativemad Exp $
30 +
31 +*guacamole-0.8.3 (26 Nov 2013)
32 +
33 + 26 Nov 2013; Andreas Schuerch <nativemad@g.o> guacamole-0.6.2.ebuild,
34 + +guacamole-0.8.3.ebuild:
35 + version bump. Added ldap backend and depend on the new guacamole-server
36 + instead of guacd and its libs. Also quoted so variables on 0.6.2 to make
37 + repoman happy.
38
39 14 Aug 2013; Patrick Lauer <patrick@g.o> guacamole-0.6.2.ebuild:
40 Whitespace
41
42
43
44 1.6 www-apps/guacamole/guacamole-0.6.2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.6.2.ebuild?rev=1.6&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.6.2.ebuild?rev=1.6&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.6.2.ebuild?r1=1.5&r2=1.6
49
50 Index: guacamole-0.6.2.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/www-apps/guacamole/guacamole-0.6.2.ebuild,v
53 retrieving revision 1.5
54 retrieving revision 1.6
55 diff -u -r1.5 -r1.6
56 --- guacamole-0.6.2.ebuild 14 Aug 2013 11:31:47 -0000 1.5
57 +++ guacamole-0.6.2.ebuild 26 Nov 2013 12:53:33 -0000 1.6
58 @@ -1,6 +1,6 @@
59 # Copyright 1999-2013 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/guacamole-0.6.2.ebuild,v 1.5 2013/08/14 11:31:47 patrick Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/guacamole-0.6.2.ebuild,v 1.6 2013/11/26 12:53:33 nativemad Exp $
63
64 EAPI=4
65
66 @@ -26,19 +26,19 @@
67 rdesktop? ( net-libs/libguac-client-rdp )"
68
69 src_compile() {
70 - mkdir ${HOME}/.m2
71 + mkdir "${HOME}/.m2"
72 cat /usr/share/`readlink /usr/bin/mvn | sed 's:mvn:maven-bin:'`/conf/settings.xml | \
73 - sed -e 's:/path/to/local/repo:'${HOME}/.m2':g' -e 's:<!-- localRepo::' >${S}/settings.xml
74 - mvn-2.2 -s ${S}/settings.xml compile war:war
75 + sed -e 's:/path/to/local/repo:'${HOME}/.m2':g' -e 's:<!-- localRepo::' >"${S}/settings.xml"
76 + mvn-2.2 -s "${S}/settings.xml" compile war:war
77 }
78
79 src_install() {
80 - sed -e 's:/path/to:/etc/guacamole:g' -i ${S}/doc/example/guacamole.properties || die "properties sed failed"
81 - insinto /etc/${PN}
82 - doins ${S}/doc/example/guacamole.properties
83 - doins ${S}/doc/example/user-mapping.xml
84 - insinto /var/lib/${PN}
85 - newins ${S}/target/${P}.war ${PN}.war
86 + sed -e 's:/path/to:/etc/guacamole:g' -i "${S}/doc/example/guacamole.properties" || die "properties sed failed"
87 + insinto "/etc/${PN}"
88 + doins "${S}/doc/example/guacamole.properties"
89 + doins "${S}/doc/example/user-mapping.xml"
90 + insinto "/var/lib/${PN}"
91 + newins "${S}/target/${P}.war" "${PN}.war"
92 elog "Please unpack /var/lib/${PN}/${PN}.war in to your servlet container!"
93 elog "Please also link /etc/guacamole in to the lib directory of your servlet container."
94 elog "like this:"
95
96
97
98 1.1 www-apps/guacamole/guacamole-0.8.3.ebuild
99
100 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.8.3.ebuild?rev=1.1&view=markup
101 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/guacamole/guacamole-0.8.3.ebuild?rev=1.1&content-type=text/plain
102
103 Index: guacamole-0.8.3.ebuild
104 ===================================================================
105 # Copyright 1999-2013 Gentoo Foundation
106 # Distributed under the terms of the GNU General Public License v2
107 # $Header: /var/cvsroot/gentoo-x86/www-apps/guacamole/guacamole-0.8.3.ebuild,v 1.1 2013/11/26 12:53:33 nativemad Exp $
108
109 EAPI=4
110
111 inherit eutils
112 DESCRIPTION="Guacamole is a html5 vnc client as servlet"
113 HOMEPAGE="http://guacamole.sourceforge.net/"
114 SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz
115 mysql? ( http://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-mysql-0.8.2.tar.gz )
116 ldap? ( http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-ldap-0.8.0.tar.gz )"
117 S="${WORKDIR}/${PN}-client-${PV}"
118
119 LICENSE="AGPL-3"
120
121 SLOT="0"
122
123 KEYWORDS="~x86"
124
125 IUSE="ldap mysql"
126
127 DEPEND="dev-java/maven-bin"
128
129 RDEPEND="${DEPEND}
130 www-servers/tomcat
131 >virtual/jre-1.6
132 net-misc/guacamole-server
133 mysql? ( virtual/mysql )
134 ldap? ( net-nds/openldap )"
135
136 src_compile() {
137 mkdir "${HOME}"/.m2
138 cat /usr/share/`readlink /usr/bin/mvn | sed 's:mvn:maven-bin:'`/conf/settings.xml | \
139 sed -e 's:/path/to/local/repo:'${HOME}/.m2':g' -e 's:<!-- localRepo::' >"${S}"/settings.xml
140 mvn -s "${S}"/settings.xml package
141 }
142
143 src_install() {
144 if use mysql; then
145 echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties"
146 echo auth-provider: net.sourceforge.guacamole.net.auth.mysql.MySQLAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties"
147 echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties"
148 echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties"
149 echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties"
150 echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties"
151 echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties"
152 sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties"
153 insinto "/var/lib/${PN}/classpath"
154 find "${WORKDIR}/${PN}-auth-mysql-0.8.2/lib/" -name '*.jar' -exec doins '{}' +
155 insinto "/usr/share/${PN}/schema"
156 find "${WORKDIR}/${PN}-auth-mysql-0.8.2/schema/" -name '*.sql' -exec doins '{}' +
157 insinto "/usr/share/${PN}/schema/upgrade"
158 find "${WORKDIR}/${PN}-auth-mysql-0.8.2/schema/upgrade/" -name '*.sql' -exec doins '{}' +
159 elog "Please add a mysql database and a user and load the sql files in /usr/share/guacamole/schema/ into it."
160 elog "You will also need to adjust the DB propeties in /etc/guacamole.properties!"
161 elog "The default user and it's password is \"guacadmin\"."
162 elog "You will also need to download the mysql-connector from here http://dev.mysql.com/downloads/connector/j/"
163 elog "and put the contained .jar file into /var/lib/guacamole/classpath!"
164 elog "-"
165 fi
166 if use ldap; then
167 echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties"
168 echo auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties"
169 echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties"
170 echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties"
171 echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties"
172 echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties"
173 echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties"
174 sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties"
175 insinto "/var/lib/${PN}/classpath"
176 find "${WORKDIR}/${PN}-auth-ldap-0.8.0/lib/" -name '*.jar' -exec doins '{}' +
177 insinto "/usr/share/${PN}/schema"
178 doins "${WORKDIR}/${PN}-auth-ldap-0.8.0/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-auth-ldap-0.8.0/schema/guacConfigGroup.schema"
179 elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server."
180 elog "There is also an example .lidf file for creating the users."
181 elog "-"
182 fi
183 sed -e 's:/path/to:/etc/guacamole:g' -i "${S}/${PN}/doc/example/${PN}.properties" || die "properties sed failed"
184 insinto /etc/"${PN}"
185 doins "${S}/${PN}/doc/example/guacamole.properties"
186 doins "${S}/${PN}/doc/example/user-mapping.xml"
187 insinto "/var/lib/${PN}"
188 newins "${S}/${PN}/target/${P}.war" "${PN}.war"
189 elog "Please unpack /var/lib/"${PN}"/"${PN}".war in to your servlet container! If it is an update,"
190 elog "delete the old content first!"
191 elog "Read: if you use the command below, delete everything within /var/lib/guacamole/guacamole first!"
192 elog "Please also link /etc/guacamole in to the lib directory of your servlet container."
193 elog "like this:"
194 elog "cd /var/lib/guacamole && mkdir guacamole && cd guacamole && jar -xvf ../guacamole.war && cd .. && mv guacamole /var/lib/tomcat-7/webapps/"
195 elog "ln -sf /etc/guacamole/guacamole.properties /usr/share/tomcat-7/lib/"
196 elog "You will also need to define users and connectrions in /etc/guacamole/user-mapping.xml if mysql is not used!"
197 }