svn commit: r447282 - in head: . www/guacamole-client www/guacamole-client/files

Richard Gallamore ultima at FreeBSD.org
Thu Aug 3 20:50:48 UTC 2017


Author: ultima
Date: Thu Aug  3 20:50:46 2017
New Revision: 447282
URL: https://svnweb.freebsd.org/changeset/ports/447282

Log:
  * Updated to 0.9.13
  * Sorted USES/OPTION section to better comply with PHB
  * Removed custom etcdir and changed to ETCDIR, added note in UPDATING
  
  Changelog: https://guacamole.incubator.apache.org/releases/0.9.13-incubating
  
  Reviewed by:	matthew (mentor), mat
  Approved by:	matthew (mentor)
  Differential Revision:	https://reviews.freebsd.org/D11817

Modified:
  head/UPDATING
  head/www/guacamole-client/Makefile
  head/www/guacamole-client/distinfo
  head/www/guacamole-client/files/pkg-message.in
  head/www/guacamole-client/pkg-plist

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Thu Aug  3 20:42:25 2017	(r447281)
+++ head/UPDATING	Thu Aug  3 20:50:46 2017	(r447282)
@@ -6,6 +6,14 @@ You should get into the habit of checking this file fo
 you update your ports collection, before attempting any port upgrades.
 
 20170803:
+  AFFECTS: users of net/guacamole-client
+  AUTHOR: ultima at FreeBSD.org
+
+  As of version 0.9.13, the configuration directory for guacamole-client
+  has changed from /usr/local/etc/guacamole to
+  /usr/local/etc/guacamole-client.
+
+20170803:
   AFFECTS: users of net/guacamole-server
   AUTHOR: ultima at FreeBSD.org
 

Modified: head/www/guacamole-client/Makefile
==============================================================================
--- head/www/guacamole-client/Makefile	Thu Aug  3 20:42:25 2017	(r447281)
+++ head/www/guacamole-client/Makefile	Thu Aug  3 20:50:46 2017	(r447282)
@@ -2,9 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	guacamole-client
-PORTVERSION=	0.9.12
+PORTVERSION=	0.9.13
 DISTVERSIONSUFFIX=	-incubating
-PORTREVISION=	1
 CATEGORIES=	www java
 MASTER_SITES+=	https://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo \
 		http://sourceforge.net/projects/distfiles/files/${PORTNAME}/:repo
@@ -19,30 +18,32 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${LOCALBASE}/share/java/maven33/bin/mvn:devel/maven33
 
+USES=		tar:xz
+USE_JAVA=	yes
+JAVA_VERSION=	1.8+
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	apache
 GH_PROJECT=	incubator-guacamole-client
 
 MVN=		mvn
 MVN_ARGS=	package -Duser.home=${WRKDIR}
-USE_JAVA=	yes
-JAVA_VERSION=	1.8+
 NO_ARCH=	yes
 
-OPTIONS_SUB=	yes
 SUB_FILES=	pkg-message
 
 OPTIONS_DEFINE=		MK_LINK SERVER TOMCAT
 OPTIONS_DEFAULT=	MK_LINK SERVER TOMCAT
+OPTIONS_SUB=		yes
+
 MK_LINK_DESC=		Make sybolic links
-TOMCAT_RUN_DEPENDS=	${LOCALBASE}/apache-tomcat-8.0/bin/bootstrap.jar:www/tomcat8
+SERVER_DESC=		Include Guacamole Server
 TOMCAT_DESC=		Use Tomcat as your servlet
 
+TOMCAT_RUN_DEPENDS=	${LOCALBASE}/apache-tomcat-8.0/bin/bootstrap.jar:www/tomcat8
 SERVER_RUN_DEPENDS=	guacd:net/guacamole-server
-SERVER_DESC=		Include Guacamole Server
 
-GUACAMOLE_CONF=	${PREFIX}/etc/guacamole
-GUACAMOLE_DATA=	${PREFIX}/share/${PORTNAME}
+AUTH_EXTENSION=	duo cas header ldap noauth
 
 .include <bsd.port.pre.mk>
 
@@ -50,29 +51,28 @@ do-build:
 		cd ${WRKSRC} && ${MVN} ${MVN_ARGS}
 
 do-install:
-		@${MKDIR} ${STAGEDIR}${GUACAMOLE_DATA}
-		@${MKDIR} ${STAGEDIR}${GUACAMOLE_CONF}
+		@${MKDIR} ${STAGEDIR}${DATADIR}
+		@${MKDIR} ${STAGEDIR}${ETCDIR}
 
-		@${CP} ${WRKSRC}/guacamole/target/guacamole-${DISTVERSIONFULL}.war \
-			${STAGEDIR}${GUACAMOLE_DATA}/guacamole.war
-		@${CP} ${WRKSRC}/extensions/guacamole-auth-duo/target/guacamole-auth-duo-${DISTVERSIONFULL}.tar.gz \
-			${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-duo.tar.gz
-		@${CP} ${WRKSRC}/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/target/guacamole-auth-jdbc-${DISTVERSIONFULL}.tar.gz \
-			${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-jdbc.tar.gz
-		@${CP} ${WRKSRC}/extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-${DISTVERSIONFULL}.tar.gz \
-			 ${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-ldap.tar.gz
-		@${CP} ${WRKSRC}/extensions/guacamole-auth-noauth/target/guacamole-auth-noauth-${DISTVERSIONFULL}.tar.gz \
-			 ${STAGEDIR}/${GUACAMOLE_DATA}/guacamole-auth-noauth.tar.gz
+		${INSTALL_DATA} ${WRKSRC}/guacamole/target/guacamole-${DISTVERSIONFULL}.war \
+			${STAGEDIR}${DATADIR}/guacamole.war
+.for i in ${AUTH_EXTENSION}
+		${INSTALL_DATA} ${WRKSRC}/extensions/guacamole-auth-$i/target/guacamole-auth-$i-${DISTVERSIONFULL}.tar.gz \
+			${STAGEDIR}/${DATADIR}/guacamole-auth-$i.tar.gz
+.endfor
+		${INSTALL_DATA} ${WRKSRC}/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/target/guacamole-auth-jdbc-${DISTVERSIONFULL}.tar.gz \
+			${STAGEDIR}/${DATADIR}/guacamole-auth-jdbc.tar.gz
+		${INSTALL_DATA} ${FILESDIR}/user-mapping.xml.sample ${STAGEDIR}${ETCDIR}/
+		${INSTALL_DATA} ${FILESDIR}/logback.xml.sample ${STAGEDIR}${ETCDIR}/
+		${INSTALL_DATA} ${FILESDIR}/guacamole.properties.sample ${STAGEDIR}${ETCDIR}/
 
-.if ${PORT_OPTIONS:MMK_LINK}
+do-install-MK_LINK-on:
 		@${MKDIR} ${STAGEDIR}/root
+		${RLN} ${STAGEDIR}/${ETCDIR} ${STAGEDIR}/root/.guacamole
+.if ${PORT_OPTIONS:MTOMCAT}
 		@${MKDIR} ${STAGEDIR}${PREFIX}/apache-tomcat-8.0/webapps
-		@${LN} -s ..${GUACAMOLE_CONF} ${STAGEDIR}/root/.guacamole
-		@${LN} -s ../../share/${PORTNAME}/guacamole.war \
-			${STAGEDIR}${PREFIX}/apache-tomcat-8.0/webapps/
+		${RLN} ${STAGEDIR}${DATADIR}/guacamole.war \
+			${STAGEDIR}${PREFIX}/apache-tomcat-8.0/webapps
 .endif
-		@${CP} ${FILESDIR}/user-mapping.xml.sample ${STAGEDIR}${GUACAMOLE_CONF}/
-		@${CP} ${FILESDIR}/logback.xml.sample ${STAGEDIR}${GUACAMOLE_CONF}/
-		@${CP} ${FILESDIR}/guacamole.properties.sample ${STAGEDIR}${GUACAMOLE_CONF}/
 
 .include <bsd.port.post.mk>

Modified: head/www/guacamole-client/distinfo
==============================================================================
--- head/www/guacamole-client/distinfo	Thu Aug  3 20:42:25 2017	(r447281)
+++ head/www/guacamole-client/distinfo	Thu Aug  3 20:50:46 2017	(r447282)
@@ -1,5 +1,5 @@
-TIMESTAMP = 1491448771
-SHA256 (guacamole-client/repository-0.9.12.tar.gz) = 2177c05a99d4727c73416d828281cd3b8c909281ef63b86b8d7c133b6700957f
-SIZE (guacamole-client/repository-0.9.12.tar.gz) = 57553854
-SHA256 (guacamole-client/apache-incubator-guacamole-client-0.9.12-incubating_GH0.tar.gz) = 860236750fdc73a7275f06289d089546d5eeae7329a3c0f84598ee5ef134b121
-SIZE (guacamole-client/apache-incubator-guacamole-client-0.9.12-incubating_GH0.tar.gz) = 1680786
+TIMESTAMP = 1501628487
+SHA256 (guacamole-client/repository-0.9.13.tar.xz) = 2e35f8dc60ba5cc38efe9e44155cd80d48f27418989edc56a4dc95eaf198368d
+SIZE (guacamole-client/repository-0.9.13.tar.xz) = 51868452
+SHA256 (guacamole-client/apache-incubator-guacamole-client-0.9.13-incubating_GH0.tar.gz) = ca5e0ddf952dea3faff2b41e87f5b47b2bf235c8640d4193dcd6b3611b9d8ebd
+SIZE (guacamole-client/apache-incubator-guacamole-client-0.9.13-incubating_GH0.tar.gz) = 5766007

Modified: head/www/guacamole-client/files/pkg-message.in
==============================================================================
--- head/www/guacamole-client/files/pkg-message.in	Thu Aug  3 20:42:25 2017	(r447281)
+++ head/www/guacamole-client/files/pkg-message.in	Thu Aug  3 20:50:46 2017	(r447282)
@@ -1,6 +1,6 @@
-	Guacamole-client requires authentecation to start.
-	cp %%PREFIX%%/etc/guacamole/user-mapping.xml.sample \
-	%%PREFIX%%/etc/guacamole/user-mapping.xml
+	Guacamole-client requires authentication to start.
+	cp %%ETCDIR%%/user-mapping.xml.sample \
+	%%ETCDIR%%/user-mapping.xml
 
 	Once tomcat8 and guacd are running
 	http://localhost:8080/guacamole

Modified: head/www/guacamole-client/pkg-plist
==============================================================================
--- head/www/guacamole-client/pkg-plist	Thu Aug  3 20:42:25 2017	(r447281)
+++ head/www/guacamole-client/pkg-plist	Thu Aug  3 20:50:46 2017	(r447282)
@@ -1,9 +1,11 @@
 %%MK_LINK%%/root/.guacamole
-%%TOMCAT%%apache-tomcat-8.0/webapps/guacamole.war
-etc/guacamole/guacamole.properties.sample
-etc/guacamole/logback.xml.sample
-etc/guacamole/user-mapping.xml.sample
+%%MK_LINK%%%%TOMCAT%%apache-tomcat-8.0/webapps/guacamole.war
+%%ETCDIR%%/guacamole.properties.sample
+%%ETCDIR%%/logback.xml.sample
+%%ETCDIR%%/user-mapping.xml.sample
 %%DATADIR%%/guacamole-auth-duo.tar.gz
+%%DATADIR%%/guacamole-auth-cas.tar.gz
+%%DATADIR%%/guacamole-auth-header.tar.gz
 %%DATADIR%%/guacamole-auth-jdbc.tar.gz
 %%DATADIR%%/guacamole-auth-ldap.tar.gz
 %%DATADIR%%/guacamole-auth-noauth.tar.gz


More information about the svn-ports-head mailing list