ports/90322: [PATCH] www/resin3: update to 3.0.16

Jean-Baptiste Quenot jb.quenot at caraldi.com
Tue Dec 13 13:30:10 UTC 2005


The following reply was made to PR ports/90322; it has been noted by GNATS.

From: Jean-Baptiste Quenot <jb.quenot at caraldi.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: ports/90322: [PATCH] www/resin3: update to 3.0.16
Date: Tue, 13 Dec 2005 14:22:53 +0100

 --KsGdsel6WgEHnImy
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Thank you for your patch, it is perfect... except that I make some
 improvements on the port itself.  Please find attached the updated
 patch.
 -- 
 Jean-Baptiste Quenot
 http://caraldi.com/jbq/
 
 --KsGdsel6WgEHnImy
 Content-Type: text/plain; charset=iso-8859-1
 Content-Disposition: attachment; filename="resin3.patch"
 Content-Transfer-Encoding: 8bit
 
 diff --ignore-matching-lines=\$FreeBSD.*\$ --exclude=.svn --exclude=work --exclude=admin -ruN /usr/ports/www/resin3/Makefile ./Makefile
 --- /usr/ports/www/resin3/Makefile	Mon Dec  5 00:15:05 2005
 +++ ./Makefile	Tue Dec 13 14:18:09 2005
 @@ -6,7 +6,7 @@
  #
  
  PORTNAME=		resin
 -PORTVERSION=		3.0.14
 +PORTVERSION=		3.0.16
  CATEGORIES=		www java
  MASTER_SITES=		http://www.caucho.com/download/
  
 diff --ignore-matching-lines=\$FreeBSD.*\$ --exclude=.svn --exclude=work --exclude=admin -ruN /usr/ports/www/resin3/distinfo ./distinfo
 --- /usr/ports/www/resin3/distinfo	Wed Aug 31 00:40:52 2005
 +++ ./distinfo	Tue Dec 13 14:06:19 2005
 @@ -1,2 +1,3 @@
 -MD5 (resin-3.0.14.tar.gz) = 1348ca83d945a8905238989ba0eb7d23
 -SIZE (resin-3.0.14.tar.gz) = 6275586
 +MD5 (resin-3.0.16.tar.gz) = 8f5a88fa14190bc768b083c17f864ea3
 +SHA256 (resin-3.0.16.tar.gz) = 17326fc79ec941cd18b9c25d251aa595a9b9bcaa5ff653cb44b9f129c7b948a2
 +SIZE (resin-3.0.16.tar.gz) = 7667120
 diff --ignore-matching-lines=\$FreeBSD.*\$ --exclude=.svn --exclude=work --exclude=admin -ruN /usr/ports/www/resin3/files/pkg-message.in ./files/pkg-message.in
 --- /usr/ports/www/resin3/files/pkg-message.in	Fri Feb 25 09:54:44 2005
 +++ ./files/pkg-message.in	Thu Oct 20 09:27:55 2005
 @@ -8,7 +8,40 @@
  
  env - %%PREFIX%%/etc/rc.d/%%APP_NAME%%.sh start
  
 -And point your web browser to the default home page at
 +For this control script to run seamlessly, it is recommended to increase the
 +maximum length of commands displayed by ps(1).  Please append the following
 +setting to /etc/sysctl.conf:
 +
 +  # Do not truncate command line arguments in ps(1) listing
 +  kern.ps_arg_cache_limit=10000
 +
 +This setting will take effect at next reboot, however it is possible to have
 +immediate effect with the following command as root:
 +
 +  # sysctl kern.ps_arg_cache_limit=10000
 +
 +If you wish to skip this setting, please note that the `stop', `restart' and
 +`status' will not function properly with %%APP_NAME%%.sh.
 +
 +Once Resin is started, point your web browser to the default home page at
  http://localhost:%%PORT%%/ to read the documentation and test the samples.
  
  Resin configuration is located at %%PREFIX%%/etc/%%APP_NAME%%/resin.xml
 +
 +
 +Enjoy!
 +
 +--------------------------------------------------------------------------------
 +ADVANCED USAGE
 +
 +If you need to pass special options to Java, please set the
 +%%APP_NAME%%_flags option in /etc/rc.conf, see examples below:
 +
 +  # Prevent Java from opening an X11 display
 +  %%APP_NAME%%_flags="-Djava.awt.headless=true"
 +
 +  # Increase memory limit of the Java virtual machine
 +  %%APP_NAME%%_flags="-Xms32m -Xmx256m"
 +
 +  # Run Java with remote debugging turned on
 +  %%APP_NAME%%_flags="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n"
 diff --ignore-matching-lines=\$FreeBSD.*\$ --exclude=.svn --exclude=work --exclude=admin -ruN /usr/ports/www/resin3/files/resinctl ./files/resinctl
 --- /usr/ports/www/resin3/files/resinctl	Thu Apr 21 00:04:55 2005
 +++ ./files/resinctl	Thu Oct 20 09:27:55 2005
 @@ -157,8 +157,7 @@
      COMMAND = "%%JAVA%%"
      ARGS = [COMMAND]
  
 -    if os.environ.has_key('JAVA_OPTS'):
 -        ARGS += os.environ['JAVA_OPTS'].split(" ")
 +    ARGS += sys.argv[1:-1]
  
      ARGS += [
          "-Dresin.home=%%APP_HOME%%",
 @@ -170,17 +169,17 @@
      os.environ['JAVA_HOME'] = "%%JAVA_HOME%%"
      os.environ['CLASSPATH'] = classpath()
  
 -    if len(sys.argv) != 2:
 +    if len(sys.argv) < 2:
          usage()
          sys.exit(1)
  
 -    if sys.argv[1] == "start":
 +    if sys.argv[-1] == "start":
          start()
  
 -    elif sys.argv[1] == "stop":
 +    elif sys.argv[-1] == "stop":
          stop()
  
 -    elif sys.argv[1] == "restart":
 +    elif sys.argv[-1] == "restart":
          stop()
          start()
  
 diff --ignore-matching-lines=\$FreeBSD.*\$ --exclude=.svn --exclude=work --exclude=admin -ruN /usr/ports/www/resin3/pkg-plist ./pkg-plist
 --- /usr/ports/www/resin3/pkg-plist	Wed Aug 31 00:40:53 2005
 +++ ./pkg-plist	Tue Dec 13 14:07:26 2005
 @@ -1,5 +1,7 @@
 - at comment $FreeBSD: ports/www/resin3/pkg-plist,v 1.10 2005/08/29 14:56:50 hq Exp $
 + at comment $FreeBSD: ports/www/resin3/pkg-plist,v 1.9 2005/05/16 20:33:47 hq Exp $
  %%APP_NAME%%/lib/aopalliance.jar
 +%%APP_NAME%%/lib/default.xsl
 +%%APP_NAME%%/lib/eclipse-compiler.jar
  %%APP_NAME%%/lib/ejb-20.jar
  %%APP_NAME%%/lib/ejb-30.jar
  %%APP_NAME%%/lib/j2eedeploy.jar
 @@ -10,6 +12,7 @@
  %%APP_NAME%%/lib/jstl-11.jar
  %%APP_NAME%%/lib/jta-101.jar
  %%APP_NAME%%/lib/portlet-10.jar
 +%%APP_NAME%%/lib/quercus.jar
  %%APP_NAME%%/lib/resin-jdk15.jar
  %%APP_NAME%%/lib/resin.jar
  %%APP_NAME%%/lib/resinboot.jar
 
 --KsGdsel6WgEHnImy--



More information about the freebsd-ports-bugs mailing list