diff options
Diffstat (limited to 'www-apps/guacamole')
-rw-r--r-- | www-apps/guacamole/Manifest | 27 | ||||
-rw-r--r-- | www-apps/guacamole/guacamole-0.9.0.ebuild | 92 | ||||
-rw-r--r-- | www-apps/guacamole/guacamole-0.9.2.ebuild | 92 | ||||
-rw-r--r-- | www-apps/guacamole/guacamole-0.9.3.ebuild | 92 | ||||
-rw-r--r-- | www-apps/guacamole/guacamole-0.9.7.ebuild | 132 | ||||
-rw-r--r-- | www-apps/guacamole/guacamole-0.9.8.ebuild | 125 | ||||
-rw-r--r-- | www-apps/guacamole/guacamole-0.9.9.ebuild | 126 | ||||
-rw-r--r-- | www-apps/guacamole/metadata.xml | 22 |
8 files changed, 708 insertions, 0 deletions
diff --git a/www-apps/guacamole/Manifest b/www-apps/guacamole/Manifest new file mode 100644 index 000000000000..c460543d488f --- /dev/null +++ b/www-apps/guacamole/Manifest @@ -0,0 +1,27 @@ +DIST guacamole-auth-jdbc-0.9.7.tar.gz 2997194 SHA256 f112c0ab83e4253f3a914716c5a7e61c4d7dc64d724e7c11bb4b695f386474a5 SHA512 0bfa920fed4b5baabc6f5541d9a5badc0a88c51e95675f00889d9d6f7a2069b07f0bee4ed628b82a4c243dd0a8fb1646a5ba6f822ca5704b1f60b49f3a2fd698 WHIRLPOOL 013ad62f68050b8c431565fa375e6c3c50e2cd1b962b6409c3b79f8652f021f71139de6facf3cd4195b34067ad01fba33bc980bbe4d50d8cc3d7f984555396c9 +DIST guacamole-auth-jdbc-0.9.8.tar.gz 7018542 SHA256 7a4026e1cc3cb08bf4b7c265c91df62a616560b21ec14bbde32f5c52bd0e928a SHA512 c1c1a4f0f33a46108a45c826ad075825846838ad05205579024820f4737db6c96e35c5be3d20c78a0e088cecc08738369bdcf00c6efd43307848a71c710aa394 WHIRLPOOL d05038376e7f5cb1722c0e05a5a70892341806de27cf107c99e6545f3e7d239ff2ea6b7eb3b528099dfd764ff9b79a01e038e7c37ca008f7f502d752b323d836 +DIST guacamole-auth-ldap-0.9.0.tar.gz 382885 SHA256 b9e0440202a4106b6fd0a8cdd9da7bfa476895ce8724edc7d75e80b89bca9780 SHA512 caf228029a4e69ac1ac1f252c761167c1676eadbb362877753710aa28d274f76ed8091102f5a142b871dc7a7e22f98d113c18fa06e46dfbf6ec57c3ea92b435b WHIRLPOOL 3f674c98c6c0bf068426f3c78947f1f09fecc19d55a341b58f9adde8920bc30722077feed7f293d082009991bc08ab8cbddba2569a65e05fcc39b8a91f5f875f +DIST guacamole-auth-ldap-0.9.2.tar.gz 382892 SHA256 478b0f5a3f9df0de4614b0432707cad443ea9f65ad219cffe904c6a91177250c SHA512 7ff6ed8aeac872aebfe654992208342370f991eabd141ac102ea553cc94b8c69c382344b5c8419745bcdc8f83b77d9b72577c8ddef9e2d000549a5fb1ae70617 WHIRLPOOL 846a673f1d61294b201d95160e2979254537fe80ffbbdc00756ee6202dd9886807a9c1f4b8f60653c528776a5c852cc7382cd14dec624aa10934fbf04e4a4584 +DIST guacamole-auth-ldap-0.9.3.tar.gz 382919 SHA256 0502e3d4e8512fbdd12b144285badfe2cd0b02fa9b0072b0b9772076998c8156 SHA512 e3eebeafd841d304f4c2beb21c1d54327bf0af2201794685c008d1812f05e70c8389888eec1e417c7e08600ebaf6f7f7330cddcf5176c9a12c987ba516155ebe WHIRLPOOL c7d2869d4ede53478cf55be4825dfdae4f47a7c03113e79dbf17afd190c823279f9967c2fefd518de0858484151901e5c3d4592ef3ffcb241c50949d59643068 +DIST guacamole-auth-ldap-0.9.7.tar.gz 384154 SHA256 479307fc54c20f0e4c661e135c0ad7251b3601054adbccdab2b7638cfa9c40bd SHA512 e750a89059a247ac17c7d137f8b7e03f43673a82559b91a39d0d1e69c94bb8212f7a17c335ec69f3c7d892c8ad0aaa746f50dfd247202468fc6c880e9126f1d2 WHIRLPOOL bdce95eb5d8a07de539dd44e55b6b44b746d0d3b12c7caba3c205ae584bdc69a83e5d05b753a650367fb2e172bd42eea0e3a21d3ef61f9e2cb35b8a028ac203c +DIST guacamole-auth-ldap-0.9.8.tar.gz 1055810 SHA256 712d7462368b690ddecd26a9bac926f9f307c84a63d8af622996d29fea71c99b SHA512 b13947581dfad5b25a423369867c1a98327fd9a6a2124c12fe16c68700caefec217f18d01a1436419cb60dd43bb7f2126f5e47f3aebd069b2ce6a46759c0b402 WHIRLPOOL 270991364222ea8f0202cc0fb76c129859f717e24bd3e1653a880562d077eb9368d8e56f327f60b07f7c2d615b2981dcc604261288cd90630b53087a738369d6 +DIST guacamole-auth-mysql-0.9.0.tar.gz 2104231 SHA256 5419d62a8decae579b54773ed70c8f21b03c11a53c24de982e8f84a79d74423e SHA512 00cc09e75f8c977a2465759b97022007fe34ba9272f9b9004eec404419a68b8c0b301fc385b4f09af07bde82510a6f5b808585c78a61b26cabd98529a5b1c4fa WHIRLPOOL cacb8ee6387b43b0c4fd5c473680404828acc8cbdee219930043ef2f18857ca53b1502e8a650f0cbc6a4a2dfbb42d457991043a4823445e261eb2dc53aad9601 +DIST guacamole-auth-mysql-0.9.2.tar.gz 2104317 SHA256 74567dcb03f2b4bbe059a8270c568ccf54a0a0ed8491de4ed2c3500cde0eabc3 SHA512 4422358b1ced34ca468f130807da6f8d7c65f39a0c3e1c7eecf004803ca62ccccda07b5a7a2b72f4b4e8337ad60783e5514af6318c2cc38f37397ba14cd2f552 WHIRLPOOL cc9583781f53110fd53e4f5dd6e2fc24fdd8a1c160fc674db4694ca3517b20846f43e0bb1a172378982303d03e4be8b2cb3a9e0e5e7c52a4d0f708b4da3766f1 +DIST guacamole-auth-mysql-0.9.3.tar.gz 2104479 SHA256 1cd081758b81b7cc082c383c7c2804434cb90ce609f5d02ed5c48fdcd50d13e6 SHA512 b33e1228b261e3857c385260a15f7b3b6088bdcaf2785f837b9525c5469a7af6560610c8064614b438160d98e349487037d78c11737dbef6a83be6b41bd37e4c WHIRLPOOL 371617fecb15b193cb51a3f76896982365e7d1d4c394021eeaec5281f57ce885517240842ce30f9543b002db71907ae550173b8ba75f19c866f297c3c52985a5 +DIST guacamole-auth-noauth-0.9.7.tar.gz 5810 SHA256 0ff433a73dcbc014cc5c7269f408ef01d02ab0d743f4b45a868b0f98a38d61ba SHA512 1f5e6f0b9e035c75edc556ff47a73e8e6e047369306e00e1281a97ac4896c7563b41dfbd66c89926d972e01a5aee3fdd9c0214d91cb84a83f177a4e3df05d537 WHIRLPOOL 7b75d883f6785bee4470cc3dee70e964c36447c0d1434c785e23b2d5bed8b18b3488c04dc4f8ae04f5a12dd54ba88ac7035acea99cd89e855ff264b1c548a09f +DIST guacamole-auth-noauth-0.9.8.tar.gz 6011 SHA256 3e3c060b37e6fd606b489ffb8b048749208d4124e075e42fb2b1cfe556cf4d4b SHA512 481f7ee88cbc7989734afb23cb9807d2cab71846ecdd17475f0e24afab5d3cd82040d5f448abe3eb01bfd828b9d834a753e0f0ec573b8b8c863fe5e2718ad1a2 WHIRLPOOL 8ad6bb47e47fe3f7e905e4f4e44a41affbe890a38d066357f255006ce0879f29a509255a750d2fae4a3d5e295e1f78fcd8898b22cd03060c2252df9d09859624 +DIST guacamole-client-0.9.0.tar.gz 314566 SHA256 2f98776e542fccdeb3a120ae266834e56935a30196d0c3088a8fa523a07f3594 SHA512 33dd583cde9188066f0254fe9a531886be79110ef9f0e62fc60771d2751a927f783eb484e5484760e4ed3bc2aaa1f2000f43f953b78122cbdc2b0f19d8141457 WHIRLPOOL 972ea5c2bfe7f7dc2b1cc42ca6bc49485c18e46b161180e6eddf828467dcce76cae58f89ca0a4e847ab33ebb0ee2ffa87b052c94a9707d8b1538cc3f1ac29c20 +DIST guacamole-client-0.9.2.tar.gz 386263 SHA256 c12f9b1b32621cc44d1e428d71eac5798f85f6b8df23edd3920907678205084c SHA512 e9e73b23b64883c64a1bd0908ecc9e685dc23308c3d44bd2c9c691e43fe383424bfc14816d0248b0f2a693da473a3a780a2d2469024aae53587b67f78d0b0af6 WHIRLPOOL 5a25e9942c9d9067bfad063833f89cc003ad8ba99c1ad1a2fd49d901f3c3616dac974f6abc67a4854129ea5160a7f7194a6b3e72e4741b0ff9a71025f57f229f +DIST guacamole-client-0.9.3.tar.gz 396313 SHA256 e579ef8f5271c19955429b9d064fd58f7554031c078557c1d65e5d51f695d8d1 SHA512 4ec3ec74b1175ce6b3cde4b9669a3f54f21b45c489c592ea3cabd2af670bf0ec9449f8a368d416640ed7348e77c23ad05243b4fdff083a120f432053642f7727 WHIRLPOOL cb44f374acce366964554cd192440cd4eb71e6b5364bff31a853a7769becce34a608358c204702702220e602cf94732af59ab707b4fb38452cbc78fca541829f +DIST guacamole-client-0.9.7.tar.gz 1580766 SHA256 905c32cb26844d7fca2a135cc6fcbc5017da7a71df5d4fed01786fe404ab9883 SHA512 eb9d9be14e9a55192c2e341fbd9b07d3cf1b3f4f06dbe97cdb5ca5d624362a895a6369100859716d9cf65562fa251424c9b3a36c2a7d4812bfb2814ab96dc5c3 WHIRLPOOL fbdade073fd2be4ea442d1b604f623a1e0046d744b86447e1eabc42643aae70eec62b596e2e014b294f14377c5823a42a498b75c06ded70346446b4ccc9c72b4 +DIST guacamole-client-0.9.8.tar.gz 1685223 SHA256 115107d4404a96abb122e5e4c06071adfe60bdd6bc7ff949dc537578f98e7f8b SHA512 e8152a10c8c51b0adff93ee476287e3c264ddae4de4b581a43009d8613e8cc2276ddd1ff5a53e84d74ff19901ec82433321d176e1335b4445dcbed04afe6f9f8 WHIRLPOOL 3daf2ac277f12360914c8cea0752a146d944ff8eaba01bfade5e8863b5e7d0da2163767b732b6f96120c4bfb2ab2f3eaa38fa700663b114684de12a311cd7411 +DIST guacamole-client-0.9.9.tar.gz 1725944 SHA256 f99f686aa49393160b7602048e78fb99886c4e367125d243eb3a741936833150 SHA512 109fe04fd9c072f6abfd31ba64c91b79dc6ef56562086bfb0db5d05feda436917eaf4d01b3b6e542bf2c6e1a56ab395a215fd0a1611cc0c2f87db925a14cf0e5 WHIRLPOOL 696d2595e96ebd0253879b8a6e376f634fe52baedc4d1496f97341415eb09bd20589ef4d7c6fdfb3ad8d6e68bec5cc96305ed1fa4199d0be38036cba307ec83b +EBUILD guacamole-0.9.0.ebuild 4870 SHA256 1b9e4c778748f9b3c349ccc154aac14d8600af0250175da4eed0aba6d2885305 SHA512 4606c2ef307102dde46dd8fbe6f9d0f223b434eb2bd5030a3e2630b84c513e3ced06d51c2a1d8ec1842307d07db07e44d4a26f57400a446ccbcd071e05a66de5 WHIRLPOOL 09f2a7d502fb8814bbf6f2c5891aba70ca6ddd707402cca374e5f17e655ab2cfb698ecaa164d7dfc49c36227f58f13b47939de584c47d38611acaef04f3c4e73 +EBUILD guacamole-0.9.2.ebuild 4865 SHA256 a2d1fcca2f8eabe3a4ff8f07ac60f5853a69d97e28b4bd290781e86a34a1e092 SHA512 47714e1f6d183f8edd3124e64fb92372bed4219bc9470c04a4c65841b2870c327c8676bda8b37ad988349985be951841d4965d9e61492da8e4fb93d788de260a WHIRLPOOL 9109a586940389ff60fa3af0fdf80ec05db31ebd01591ee3450efdf77a36c4e68c095add6cd228136f135505535512238cf8b51d7e32b5f261f0d840fc21fa4a +EBUILD guacamole-0.9.3.ebuild 4865 SHA256 d07f96498d1c3e8ff45a9b61ee00118ed65da545aae00fa06f312ea92d987907 SHA512 5c23f5294da2c664198c5bf9475556f52b5ebb6aebba1fff52f1294f9e3d3f2497fe17a63a2fe9df54c59506c36fec1ec6ef8a70b68117e48224351503d34c1d WHIRLPOOL 8b192fd58fec8611b9ee8ab6ab00762504d2a553599a38c857a72ac14b94c997e2c2c0b1a5309a51cfb1e013592be92f0de5dc099cceac78defe93157d4f74ab +EBUILD guacamole-0.9.7.ebuild 7932 SHA256 e68794c6602481ff18905d33a0c429df140cacfbb09d077ffbcaaa2e30fe7146 SHA512 58e27d210ef895dc9876951daa87a5c8d0030a6744d9b1e39d9152e9ff2b7948833c4d5692e4ac4cfee5be6d4af2a82ba4fa8e9219718ee59d516d7bff1675b7 WHIRLPOOL 8120c3835d6ea43c66633835c9b3be2d5b01b7bb178d7486708b76dfc38d4e98b1defce0b5818bb0ca999ad7265ee3bb944cb9399ce2e2be8ea8e2312f27e904 +EBUILD guacamole-0.9.8.ebuild 7004 SHA256 4567f32e6832ed3a3b26ea7a1f4c093b4fa0a6886e2edb03b7d73daa0eacff21 SHA512 f40f02ea24c9f6cd9f79338afb8e1ccbd6c39bb767187dc766f1153bfe966ffa8031c74d238bec4666642ffafd818bb71c1b2d500798db5881df6216980e1112 WHIRLPOOL e31f7610751894a7709e837ce33aeb3fb9e1e3a78371dba500e944ab714d7fecbac4f0d153c8857d374290b3742340910663592f9204ef09c0304baf99d85ef0 +EBUILD guacamole-0.9.9.ebuild 7217 SHA256 376704f6ceded97dd609091fdedd76dfdff0d250d44655deea5bc9a67d1d13d8 SHA512 ca763668ec1a8d3783fb199eecceaa2114861b3762c3ff8206c01a54fb79e829b9d03d3bb42c31a9cc038f906f379ae6f8131a7dd3c1f18585150f074322fbf5 WHIRLPOOL 51feecaa33088122533537a4a39dfa7ecbdff2c168d662bc31c947444455a428720769fd5345c4e4e1ae4da7cd170648a7d81066768af867992cd15e917a48ad +MISC ChangeLog 3245 SHA256 fe67d0b97b79407de9e10ab6290801e8a65274ac779ed4562b0cb4e8e850855d SHA512 439526aaf582e44aef891b0c9393826cdd8ccafa00f4671410bf76346c9cfb30dfe96624dbc93c40fc68b05ce68095d2da3f78c5d7f634507695bf7c38778aca WHIRLPOOL cce6659a704bfd372f18fa6d82baf7f68cb1d7f39c0b1ddf71c9e0809a57a67546b0d4c29d91a14f6cbf87e152ccb524a7197704ef64cf81adc937581cf4952a +MISC ChangeLog-2015 2225 SHA256 fdb380880b18798a5ecfef1743912011a568c73dd2e04303ac464f23dc818f12 SHA512 b1f64a26a9ff45fb053f0a6c1867d596eb1b19ffbaee28e8f99bc943e3a6005f0ac014d6a5d36c5c3350393e3e6deeea53791ee3af429e999739fbd7955384ab WHIRLPOOL fa72c6c16bdffa1fc41dab20f8fd03e814b2ae623b2bd77953f2e13663bf7e326fdb786e7f5ab4014f0f27ce9913160ae84f429de53227d16197032cb3f7e20d +MISC metadata.xml 857 SHA256 fb50c870c190e48dc4c4190cb9ecbf1c25529dc16ef81344cfaec50bb56795ff SHA512 9280c6a41cf349bbf2b40882d11d0cc35b101a89db029726ba987f0dd759264d7460b5147bd7cab58cd4f3877291136f693b0bcd3395d342bb8df844c8dc590e WHIRLPOOL 01ce8171460787a60f017151569126885e228c863d500e5d0a16ebf839b1c42d996b7526172cb0a41c94fe1f0dc8ce51a86d8f7524adddf6104bbb547e0cd698 diff --git a/www-apps/guacamole/guacamole-0.9.0.ebuild b/www-apps/guacamole/guacamole-0.9.0.ebuild new file mode 100644 index 000000000000..fa765ea1ee92 --- /dev/null +++ b/www-apps/guacamole/guacamole-0.9.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils +DESCRIPTION="Guacamole is a html5 vnc client as servlet" +HOMEPAGE="http://guacamole.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz + mysql? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-mysql-0.9.0.tar.gz ) + ldap? ( https://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-ldap-0.9.0.tar.gz )" +S="${WORKDIR}/${PN}-client-${PV}" + +LICENSE="AGPL-3" + +SLOT="0" + +KEYWORDS="~x86" + +IUSE="ldap mysql" + +DEPEND="dev-java/maven-bin" + +RDEPEND="${DEPEND} + www-servers/tomcat + >virtual/jre-1.6 + net-misc/guacamole-server + mysql? ( virtual/mysql ) + ldap? ( net-nds/openldap )" + +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}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.mysql.MySQLAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-mysql-0.9.0/lib/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + find "${WORKDIR}/${PN}-auth-mysql-0.9.0/schema/" -name '*.sql' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/upgrade" + find "${WORKDIR}/${PN}-auth-mysql-0.9.0/schema/upgrade/" -name '*.sql' -exec doins '{}' + + 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 + if use ldap; then + echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-ldap-0.9.0/lib/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + doins "${WORKDIR}/${PN}-auth-ldap-0.9.0/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-auth-ldap-0.9.0/schema/guacConfigGroup.schema" + elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server." + elog "There is also an example .lidf file for creating the users." + elog "-" + fi + sed -e 's:/path/to:/etc/guacamole:g' -i "${S}/${PN}/doc/example/${PN}.properties" || die "properties sed failed" + insinto /etc/"${PN}" + doins "${S}/${PN}/doc/example/guacamole.properties" + doins "${S}/${PN}/doc/example/user-mapping.xml" + insinto "/var/lib/${PN}" + newins "${S}/${PN}/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 connections in /etc/guacamole/user-mapping.xml if mysql is not used!" +} diff --git a/www-apps/guacamole/guacamole-0.9.2.ebuild b/www-apps/guacamole/guacamole-0.9.2.ebuild new file mode 100644 index 000000000000..bbb158af9e3f --- /dev/null +++ b/www-apps/guacamole/guacamole-0.9.2.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils +DESCRIPTION="Guacamole is a html5 vnc client as servlet" +HOMEPAGE="http://guac-dev.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz + mysql? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-mysql-0.9.2.tar.gz ) + ldap? ( https://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-ldap-0.9.2.tar.gz )" +S="${WORKDIR}/${PN}-client-${PV}" + +LICENSE="AGPL-3" + +SLOT="0" + +KEYWORDS="~x86" + +IUSE="ldap mysql" + +DEPEND="dev-java/maven-bin" + +RDEPEND="${DEPEND} + www-servers/tomcat + >virtual/jre-1.6 + net-misc/guacamole-server + mysql? ( virtual/mysql ) + ldap? ( net-nds/openldap )" + +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}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.mysql.MySQLAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-mysql-0.9.2/lib/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + find "${WORKDIR}/${PN}-auth-mysql-0.9.2/schema/" -name '*.sql' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/upgrade" + find "${WORKDIR}/${PN}-auth-mysql-0.9.2/schema/upgrade/" -name '*.sql' -exec doins '{}' + + 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 + if use ldap; then + echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-ldap-0.9.2/lib/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + doins "${WORKDIR}/${PN}-auth-ldap-0.9.2/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-auth-ldap-0.9.2/schema/guacConfigGroup.schema" + elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server." + elog "There is also an example .lidf file for creating the users." + elog "-" + fi + sed -e 's:/path/to:/etc/guacamole:g' -i "${S}/${PN}/doc/example/${PN}.properties" || die "properties sed failed" + insinto /etc/"${PN}" + doins "${S}/${PN}/doc/example/guacamole.properties" + doins "${S}/${PN}/doc/example/user-mapping.xml" + insinto "/var/lib/${PN}" + newins "${S}/${PN}/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 connections in /etc/guacamole/user-mapping.xml if mysql or ldap is not used!" +} diff --git a/www-apps/guacamole/guacamole-0.9.3.ebuild b/www-apps/guacamole/guacamole-0.9.3.ebuild new file mode 100644 index 000000000000..4388582a470a --- /dev/null +++ b/www-apps/guacamole/guacamole-0.9.3.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils +DESCRIPTION="Guacamole is a html5 vnc client as servlet" +HOMEPAGE="http://guac-dev.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz + mysql? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-mysql-0.9.3.tar.gz ) + ldap? ( https://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-ldap-0.9.3.tar.gz )" +S="${WORKDIR}/${PN}-client-${PV}" + +LICENSE="AGPL-3" + +SLOT="0" + +KEYWORDS="~x86" + +IUSE="ldap mysql" + +DEPEND="dev-java/maven-bin" + +RDEPEND="${DEPEND} + www-servers/tomcat + >virtual/jre-1.6 + net-misc/guacamole-server + mysql? ( virtual/mysql ) + ldap? ( net-nds/openldap )" + +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}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.mysql.MySQLAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-mysql-0.9.3/lib/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + find "${WORKDIR}/${PN}-auth-mysql-0.9.3/schema/" -name '*.sql' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/upgrade" + find "${WORKDIR}/${PN}-auth-mysql-0.9.3/schema/upgrade/" -name '*.sql' -exec doins '{}' + + 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 + if use ldap; then + echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-ldap-0.9.3/lib/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + doins "${WORKDIR}/${PN}-auth-ldap-0.9.3/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-auth-ldap-0.9.3/schema/guacConfigGroup.schema" + elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server." + elog "There is also an example .lidf file for creating the users." + elog "-" + fi + sed -e 's:/path/to:/etc/guacamole:g' -i "${S}/${PN}/doc/example/${PN}.properties" || die "properties sed failed" + insinto /etc/"${PN}" + doins "${S}/${PN}/doc/example/guacamole.properties" + doins "${S}/${PN}/doc/example/user-mapping.xml" + insinto "/var/lib/${PN}" + newins "${S}/${PN}/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 connections in /etc/guacamole/user-mapping.xml if mysql or ldap is not used!" +} diff --git a/www-apps/guacamole/guacamole-0.9.7.ebuild b/www-apps/guacamole/guacamole-0.9.7.ebuild new file mode 100644 index 000000000000..95687d83bf21 --- /dev/null +++ b/www-apps/guacamole/guacamole-0.9.7.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils +DESCRIPTION="Guacamole is a html5 vnc client as servlet" +HOMEPAGE="http://guac-dev.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz + mysql? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-jdbc-${PV}.tar.gz ) + postgres? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-jdbc-${PV}.tar.gz ) + noauth? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-noauth-${PV}.tar.gz ) + ldap? ( https://sourceforge.net/projects/guacamole/files/current/extensions/${PN}-auth-ldap-${PV}.tar.gz )" +S="${WORKDIR}/${PN}-client-${PV}" + +LICENSE="MIT" + +SLOT="0" + +KEYWORDS="~x86 ~amd64" + +IUSE="ldap mysql postgres noauth" +REQUIRED_USE="ldap? ( !mysql !postgres !noauth ) + mysql? ( !ldap !postgres !noauth ) + postgres? ( !ldap !mysql !noauth ) + noauth? ( !ldap !mysql !noauth )" + +DEPEND="dev-java/maven-bin:*" + +RDEPEND="${DEPEND} + www-servers/tomcat[websockets] + >virtual/jre-1.6 + net-misc/guacamole-server + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + ldap? ( net-nds/openldap )" + +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() { + echo guacd-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo guacd-port: 4822 >>"${S}/${PN}/doc/example/${PN}.properties" + echo basic-user-mapping: /etc/guacamole/user-mapping.xml >>"${S}/${PN}/doc/example/${PN}.properties" + if use noauth; then + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.noauth.NoAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo noauth-config: /etc/guacamole/noauth-config.xml >>"${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-noauth-${PV}/" -name '*.jar' -exec doins '{}' + + insinto "/etc/guacamole" + find "${WORKDIR}/${PN}-auth-noauth-${PV}/doc/example/" -name '*.xml' -exec doins '{}' + + elog "Warning: Setting No Athentication is obviously very insecure! Only use it if you know what you are doing!" + elif use mysql; then + echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.mysql.MySQLAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/mysql/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/mysql/schema/" -name '*.sql' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/upgrade" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/mysql/schema/upgrade/" -name '*.sql' -exec doins '{}' + + 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 "-" + elif use postgres; then + echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.postgresql.PostgreSQLAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-port: 5432 >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/postgresql/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/postgresql/schema/" -name '*.sql' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/upgrade" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/postgresql/schema/upgrade/" -name '*.sql' -exec doins '{}' + + elog "Please add a postgresql 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 postgresql-connector from here https://jdbc.postgresql.org/download.html#current" + elog "and put the contained .jar file into /var/lib/guacamole/classpath!" + elog "-" + elif use ldap; then + echo lib-directory: "/var/lib/${PN}/classpath" >>"${S}/${PN}/doc/example/${PN}.properties" + echo auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/var/lib/${PN}/classpath" + find "${WORKDIR}/${PN}-auth-ldap-${PV}/lib/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + doins "${WORKDIR}/${PN}-auth-ldap-${PV}/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-auth-ldap-${PV}/schema/guacConfigGroup.schema" + elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server." + elog "There is also an example .lidf file for creating the users." + elog "-" + else + insinto "/etc/${PN}" + doins "${WORKDIR}/${PN}-client-${PV}/${PN}/doc/example/user-mapping.xml" + fi + insinto "/etc/${PN}" + doins "${S}/${PN}/doc/example/guacamole.properties" + doins "${S}/${PN}/doc/example/user-mapping.xml" + insinto "/var/lib/${PN}" + newins "${S}/${PN}/target/${P}.war" "${PN}.war" + elog "If it is an update, please make sure to delete the old webapp in /var/lib/tomcat-7/webapps/ first!" + elog "To deploy guacamole with tomcat, you will need to link the war file and create the configuration!" + elog "ln -sf /var/lib/${PN}/${PN}.war /var/lib/tomcat-7/webapps/ && mkdir /var/lib/tomcat-7/webapps/.${PN}" + elog "You will also need to create a configuration in /var/lib/tomcat-7/webapps/.${PN}/${PN}.properties" + elog "See http://guac-dev.org/doc/0.9.7/gug/configuring-guacamole.html#initial-setup for a basic setup" + elog "or http://guac-dev.org/doc/0.9.7/gug/jdbc-auth.html for a database for authentication and host definitions." +} diff --git a/www-apps/guacamole/guacamole-0.9.8.ebuild b/www-apps/guacamole/guacamole-0.9.8.ebuild new file mode 100644 index 000000000000..9dd62ab6a653 --- /dev/null +++ b/www-apps/guacamole/guacamole-0.9.8.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils +DESCRIPTION="Guacamole is a html5 vnc client as servlet" +HOMEPAGE="http://guac-dev.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz + mysql? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-jdbc-${PV}.tar.gz ) + postgres? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-jdbc-${PV}.tar.gz ) + noauth? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-noauth-${PV}.tar.gz ) + ldap? ( https://sourceforge.net/projects/guacamole/files/current/extensions/${PN}-auth-ldap-${PV}.tar.gz )" +S="${WORKDIR}/${PN}-client-${PV}" + +LICENSE="MIT" + +SLOT="0" + +KEYWORDS="~x86 ~amd64" + +IUSE="ldap mysql postgres noauth" + +DEPEND="dev-java/maven-bin:*" + +RDEPEND="${DEPEND} + www-servers/tomcat[websockets] + >virtual/jre-1.6 + net-misc/guacamole-server + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + ldap? ( net-nds/openldap )" + +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() { + echo guacd-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo guacd-port: 4822 >>"${S}/${PN}/doc/example/${PN}.properties" + echo basic-user-mapping: /etc/guacamole/user-mapping.xml >>"${S}/${PN}/doc/example/${PN}.properties" + if use noauth; then + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + echo noauth-config: /etc/guacamole/noauth-config.xml >>"${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-auth-noauth-${PV}/" -name '*.jar' -exec doins '{}' + + insinto "/etc/guacamole" + find "${WORKDIR}/${PN}-auth-noauth-${PV}/doc/example/" -name '*.xml' -exec doins '{}' + + elog "Warning: Setting No Authentication is obviously very insecure! Only use it if you know what you are doing!" + fi + if use mysql; then + echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/mysql/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/mysql/schema/" -name '*.sql' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/upgrade" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/mysql/schema/upgrade/" -name '*.sql' -exec doins '{}' + + elog "Please add a mysql database and a user and load the sql files in /usr/share/guacamole/schema/ into it." + elog "If this is an update, then you will need to apply the appropriate update script in the location above." + 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 /etc/guacamole/lib!" + elog "-" + fi + if use postgres; then + echo postgresql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-port: 5432 >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/postgresql/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/postgresql/schema/" -name '*.sql' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/upgrade" + find "${WORKDIR}/${PN}-auth-jdbc-${PV}/postgresql/schema/upgrade/" -name '*.sql' -exec doins '{}' + + elog "Please add a postgresql database and a user and load the sql files in /usr/share/guacamole/schema/ into it." + elog "If this is an update, then you will need to apply the appropriate update script in the location above." + 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 postgresql-connector from here https://jdbc.postgresql.org/download.html#current" + elog "and put the contained .jar file into /etc/guacamole/lib!" + elog "-" + fi + if use ldap; then + echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-auth-ldap-${PV}" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + doins "${WORKDIR}/${PN}-auth-ldap-${PV}/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-auth-ldap-${PV}/schema/guacConfigGroup.schema" + elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server." + elog "There is also an example .lidf file for creating the users." + elog "-" + fi + insinto "/etc/${PN}" + doins "${WORKDIR}/${PN}-client-${PV}/${PN}/doc/example/user-mapping.xml" + insinto "/etc/${PN}" + doins "${S}/${PN}/doc/example/guacamole.properties" + echo "GUACAMOLE_HOME=/etc/guacamole" >98guacamole + doenvd 98guacamole + insinto "/var/lib/${PN}" + newins "${S}/${PN}/target/${P}.war" "${PN}.war" + elog "If it is an update, please make sure to delete the old webapp in /var/lib/tomcat-7/webapps/ first!" + elog "To deploy guacamole with tomcat, you will need to link the war file and create the configuration!" + elog "ln -sf /var/lib/${PN}/${PN}.war /var/lib/tomcat-7/webapps/" + elog "You will also need to adjust the configuration in /etc/${PN}/${PN}.properties" + elog "See http://guac-dev.org/doc/${PV}/gug/configuring-guacamole.html#initial-setup for a basic setup" + elog "or http://guac-dev.org/doc/${PV}/gug/jdbc-auth.html for a database for authentication and host definitions." +} diff --git a/www-apps/guacamole/guacamole-0.9.9.ebuild b/www-apps/guacamole/guacamole-0.9.9.ebuild new file mode 100644 index 000000000000..7d5b50959203 --- /dev/null +++ b/www-apps/guacamole/guacamole-0.9.9.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils +DESCRIPTION="Guacamole is a html5 vnc client as servlet" +HOMEPAGE="http://guac-dev.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz" +S="${WORKDIR}/${PN}-client-${PV}" + +LICENSE="MIT" + +SLOT="0" + +KEYWORDS="~x86 ~amd64" + +IUSE="ldap mysql noauth postgres" + +REQUIRED_USE="|| ( ldap mysql noauth postgres )" + +DEPEND="dev-java/maven-bin:*" + +RDEPEND="${DEPEND} + || ( www-servers/tomcat:7[websockets] www-servers/tomcat ) + >virtual/jre-1.6 + net-misc/guacamole-server + mysql? ( virtual/mysql dev-java/jdbc-mysql ) + postgres? ( dev-db/postgresql dev-java/jdbc-postgresql ) + ldap? ( net-nds/openldap )" + +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() { + echo guacd-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo guacd-port: 4822 >>"${S}/${PN}/doc/example/${PN}.properties" + echo basic-user-mapping: /etc/guacamole/user-mapping.xml >>"${S}/${PN}/doc/example/${PN}.properties" + if use mysql || use postgres; then + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-jdbc/modules/${PN}-auth-jdbc-base/" -name '*.jar' -exec doins '{}' + + fi + if use noauth; then + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + echo noauth-config: /etc/guacamole/noauth-config.xml >>"${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-noauth/" -name '*.jar' -exec doins '{}' + + insinto "/etc/guacamole" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-noauth/doc/example/" -name '*.xml' -exec doins '{}' + + elog "Warning: Setting No Authentication is obviously very insecure! Only use it if you know what you are doing!" + fi + if use mysql; then + echo mysql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-port: 3306 >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo mysql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-jdbc/modules/${PN}-auth-jdbc-mysql/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/mysql" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-jdbc/modules/${PN}-auth-jdbc-mysql/schema/" -name '*.sql' -exec doins '{}' + + elog "Please add a mysql database and a user and load the sql files in /usr/share/guacamole/schema/ into it." + elog "If this is an update, then you will need to apply the appropriate update script in the location above." + elog "You will also need to adjust the DB properties in /etc/guacamole.properties!" + elog "The default user and it's password is \"guacadmin\"." + elog "You also have to enable jdbc-mysql in tomcat!" + elog "For tomcat under openrc this can be done in /etc/conf.d/tomcat-7 with TOMCAT_EXTRA_JARS=jdbc-mysql" + elog "Another way is to add /usr/share/jdbc-mysql/lib/jdbc-mysql.jar to the classpath." + elog "-" + fi + if use postgres; then + echo postgresql-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-port: 5432 >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-database: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-username: guacamole >>"${S}/${PN}/doc/example/${PN}.properties" + echo postgresql-password: some_password >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-jdbc/modules/${PN}-auth-jdbc-postgresql/" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema/postgres" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-jdbc/modules/${PN}-auth-jdbc-postgresql/schema/" -name '*.sql' -exec doins '{}' + + elog "Please add a postgresql database and a user and load the sql files in /usr/share/guacamole/schema/ into it." + elog "If this is an update, then you will need to apply the appropriate update script in the location above." + elog "You will also need to adjust the DB properties in /etc/guacamole.properties!" + elog "The default user and it's password is \"guacadmin\"." + elog "You also have to enable jdbc-postgresql in tomcat!" + elog "For tomcat under openrc this can be done in /etc/conf.d/tomcat-7 with TOMCAT_EXTRA_JARS=jdbc-postgresql" + elog "Another way is to add /usr/share/jdbc-postgresql/lib/jdbc-postgresql.jar to the classpath." + elog "-" + fi + if use ldap; then + echo ldap-hostname: localhost >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-port: 389 >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-user-base-dn: ou=people,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-username-attribute: uid >>"${S}/${PN}/doc/example/${PN}.properties" + echo ldap-config-base-dn: ou=groups,dc=example,dc=net >>"${S}/${PN}/doc/example/${PN}.properties" + sed -e 's:basic-user-mapping:#basic-user-mapping:' -i "${S}/${PN}/doc/example/${PN}.properties" + insinto "/etc/${PN}/extensions" + find "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-ldap" -name '*.jar' -exec doins '{}' + + insinto "/usr/share/${PN}/schema" + doins "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-ldap/schema/guacConfigGroup.ldif" "${WORKDIR}/${PN}-client-${PV}/extensions/${PN}-auth-ldap/schema/guacConfigGroup.schema" + elog "You will need to add and load the .schema file in /usr/share/guacamole/schema/ to your ldap server." + elog "There is also an example .lidf file for creating the users." + elog "-" + fi + insinto "/etc/${PN}" + doins "${WORKDIR}/${PN}-client-${PV}/${PN}/doc/example/user-mapping.xml" + insinto "/etc/${PN}" + doins "${S}/${PN}/doc/example/guacamole.properties" + echo "GUACAMOLE_HOME=/etc/guacamole" >98guacamole + doenvd 98guacamole + insinto "/var/lib/${PN}" + newins "${S}/${PN}/target/${P}.war" "${PN}.war" + elog "If it is an update, please make sure to delete the old webapp in /var/lib/tomcat-8/webapps/ first!" + elog "To deploy guacamole with tomcat, you will need to link the war file and create the configuration!" + elog "ln -sf /var/lib/${PN}/${PN}.war /var/lib/tomcat-8/webapps/" + elog "You will also need to adjust the configuration in /etc/${PN}/${PN}.properties" + elog "With systemd make sure that the var GUACAMOLE_HOME is set to /etc/guacamole. for example via /etc/conf/tomcat." + elog "See http://guac-dev.org/doc/${PV}/gug/configuring-guacamole.html#initial-setup for a basic setup" + elog "or http://guac-dev.org/doc/${PV}/gug/jdbc-auth.html for a database for authentication and host definitions." +} diff --git a/www-apps/guacamole/metadata.xml b/www-apps/guacamole/metadata.xml new file mode 100644 index 000000000000..a86d47c73c59 --- /dev/null +++ b/www-apps/guacamole/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>nativemad@gentoo.org</email> + <name>Andreas Schuerch</name> + </maintainer> + <longdescription> + Guacamole is an HTML5 web application that provides access to desktop + environments using remote desktop protocols such as VNC or RDP. + A centralized server acts as a tunnel and proxy, allowing access to + multiple desktops through a web browser. No plugins are needed: + the client requires nothing more than a web browser supporting + HTML5 and AJAX. + </longdescription> + <use> + <flag name="noauth">enable support for leaving out any authentication on the webinterface</flag> + </use> + <upstream> + <remote-id type="sourceforge">guacamole</remote-id> + </upstream> +</pkgmetadata> |