Bug 188268 - [PATCH] www/resin3: update to 3.1.14
Summary: [PATCH] www/resin3: update to 3.1.14
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 22:50 UTC by Muhammad Moinur Rahman
Modified: 2014-04-26 19:34 UTC (History)
0 users

See Also:


Attachments
resin-3.1.14.patch (4.14 KB, patch)
2014-04-04 22:50 UTC, Muhammad Moinur Rahman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-04 22:50:11 UTC
Class Changed
From-To: update->maintainer-update

Fix category (submitter is maintainer) (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-04 22:50:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

sunpoet@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-04-26 19:13:09 UTC
Author: sunpoet
Date: Sat Apr 26 18:13:00 2014
New Revision: 352317
URL: http://svnweb.freebsd.org/changeset/ports/352317
QAT: https://qat.redports.org/buildarchive/r352317/

Log:
  - Update to 3.1.14
  - Add LICENSE
  - Space/Tab twiddle
  - Support STAGEDIR
  - While I'm here, use . for COPYTREE_SHARE
  
  PR:		ports/188268
  Submitted by:	Muhammad Moinur Rahman <5u623l20@gmail.com> (maintainer)

Modified:
  head/www/resin3/Makefile
  head/www/resin3/distinfo

Modified: head/www/resin3/Makefile
==============================================================================
--- head/www/resin3/Makefile	Sat Apr 26 18:12:55 2014	(r352316)
+++ head/www/resin3/Makefile	Sat Apr 26 18:13:00 2014	(r352317)
@@ -1,18 +1,19 @@
 # Created by: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
 # $FreeBSD$
 
-PORTNAME=		resin
-PORTVERSION=		3.1.13
-CATEGORIES=		www java
-MASTER_SITES=		http://www.caucho.com/download/
+PORTNAME=	resin
+PORTVERSION=	3.1.14
+CATEGORIES=	www java
+MASTER_SITES=	http://www.caucho.com/download/
 
-MAINTAINER=		5u623l20@gmail.com
-COMMENT=		Java-based Application Server, 3.x branch
+MAINTAINER=	5u623l20@gmail.com
+COMMENT=	Java-based Application Server, 3.x branch
+
+LICENSE=	GPLv2
 
 OPTIONS_DEFINE=	APACHE22
 APACHE22_DESC=	Use Apache 2.2
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 USE_JAVA=		yes
@@ -35,7 +36,7 @@ PORT?=			8080
 APP_NAME_SUFFIX=	${PORTVERSION:C/\..*$//}
 APP_NAME?=		${PORTNAME}${APP_NAME_SUFFIX}
 LATEST_LINK=		${APP_NAME}
-APP_HOME?=		${PREFIX}/${APP_NAME}
+APP_HOME?=		${STAGEDIR}${PREFIX}/${APP_NAME}
 PID_FILE?=		${APP_HOME}/${APP_NAME}.pid
 LOG_FILE?=		${APP_HOME}/${APP_NAME}.log
 
@@ -80,7 +81,7 @@ SUB_LIST=	APP_HOME=${APP_HOME} \
 		LOG_FILE=${LOG_FILE} \
 		PID_FILE=${PID_FILE} \
 		PORT=${PORT} \
-		PREFIX=${PREFIX} \
+		PREFIX=${STAGEDIR}${PREFIX} \
 		PYTHON_CMD=${PYTHON_CMD} \
 		USERS=${USERS}
 
@@ -89,7 +90,7 @@ post-extract:
 	@${TAR} xf ${WRKSRC}/webapps/resin-doc.war -C ${WRKSRC}/webapps/resin-doc && ${RM} ${WRKSRC}/webapps/resin-doc.war
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|$${resin.home}/conf/app-default.xml|${PREFIX}/etc/${APP_NAME}/app-default.xml|' \
+	@${REINPLACE_CMD} -e 's|$${resin.home}/conf/app-default.xml|${STAGEDIR}${PREFIX}/etc/${APP_NAME}/app-default.xml|' \
 		${WRKSRC}/conf/resin.conf
 
 post-build:
@@ -97,28 +98,20 @@ post-build:
 
 # Resin does not handle installation, so proceed now
 do-install:
-.for i in ${APP_HOME} ${APP_HOME}/lib ${PREFIX}/etc/${APP_NAME}
-	@install -d -g ${WWWOWN} -o ${WWWGRP} ${i}
-.endfor
-	if [ ! -e ${PREFIX}/etc/${APP_NAME}/resin.xml ]; then \
-			${ECHO_MSG} "   Installing local configuration file: ${PREFIX}/etc/${APP_NAME}/resin.xml" ;\
-			${INSTALL_DATA} ${WRKSRC}/conf/resin.conf ${PREFIX}/etc/${APP_NAME}/resin.xml ;\
-	else \
-		${ECHO_MSG} "   Preserving local configuration file: ${PREFIX}/etc/${APP_NAME}/resin.xml" ;\
-	fi
-	${INSTALL_DATA} ${WRKSRC}/conf/resin.conf ${PREFIX}/etc/${APP_NAME}/resin.xml-dist
-	${INSTALL_DATA} ${WRKSRC}/conf/app-default.xml ${PREFIX}/etc/${APP_NAME}
-	${INSTALL_SCRIPT} ${WRKDIR}/resin3ctl ${PREFIX}/sbin
-	cd ${WRKSRC}/webapps && ${COPYTREE_SHARE} \* ${APP_HOME}/webapps
-	cd ${WRKSRC}/lib  && ${COPYTREE_SHARE} \* ${APP_HOME}/lib
+#.for i in ${APP_HOME} ${APP_HOME}/lib ${STAGEDIR}${PREFIX}/etc/${APP_NAME}
+#	@install -d -g ${WWWOWN} -o ${WWWGRP} ${i}
+#.endfor
+	install -d -g ${WWWOWN} -o ${WWWGRP} ${i} ${APP_HOME} ${APP_HOME}/lib ${STAGEDIR}${PREFIX}/etc/${APP_NAME}
+	${ECHO_MSG} "   Installing local configuration file: ${STAGEDIR}${PREFIX}/etc/${APP_NAME}/resin.xml"
+	${INSTALL_DATA} ${WRKSRC}/conf/resin.conf ${STAGEDIR}${PREFIX}/etc/${APP_NAME}/resin.xml 
+	${INSTALL_DATA} ${WRKSRC}/conf/resin.conf ${STAGEDIR}${PREFIX}/etc/${APP_NAME}/resin.xml-dist
+	${INSTALL_DATA} ${WRKSRC}/conf/app-default.xml ${STAGEDIR}${PREFIX}/etc/${APP_NAME}
+	${INSTALL_SCRIPT} ${WRKDIR}/resin3ctl ${STAGEDIR}${PREFIX}/sbin
+	cd ${WRKSRC}/webapps && ${COPYTREE_SHARE} . ${APP_HOME}/webapps
+	cd ${WRKSRC}/lib  && ${COPYTREE_SHARE} . ${APP_HOME}/lib
 
 .if ${PORT_OPTIONS:MAPACHE22}
 	${APXS} -i -n caucho -a ${WRKSRC}/modules/c/src/apache2/.libs/mod_caucho.so
 .endif
-	@${ECHO_MSG}
-	@${ECHO_MSG} "********************************************************************************"
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_MSG} "********************************************************************************"
-	@${ECHO_MSG}
 
 .include <bsd.port.post.mk>

Modified: head/www/resin3/distinfo
==============================================================================
--- head/www/resin3/distinfo	Sat Apr 26 18:12:55 2014	(r352316)
+++ head/www/resin3/distinfo	Sat Apr 26 18:13:00 2014	(r352317)
@@ -1,2 +1,2 @@
-SHA256 (resin-3.1.13.tar.gz) = f51b0acad197d44f69c1f722f07ab10efd046d52decef34ab0dd5d6194196b0b
-SIZE (resin-3.1.13.tar.gz) = 10273075
+SHA256 (resin-3.1.14.tar.gz) = 6ad8218caa6f1d3333cbeaad2a6839691f211746578fbb3a45321246e211c348
+SIZE (resin-3.1.14.tar.gz) = 10276901
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-04-26 19:34:19 UTC
State Changed
From-To: open->closed

Committed. Thanks!