Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 18:47:30 +0100
From:      "Remco van 't Veer" <rwvtveer@xs4all.nl>
To:        Ernst de Haan <znerd@FreeBSD.ORG>
Cc:        java@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: Port www/jakarta-tomcat refactored
Message-ID:  <20020225174730.GJ88307@azrael.xs4all.nl>
In-Reply-To: <200202212033.g1LKXv256350@zaphod.euronet.nl>
References:  <200202212033.g1LKXv256350@zaphod.euronet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
I've cvsup-ed this morning and tried to upgrade tomcat but the
install crashes and burns.  As you can see from the output below
the www user and group are not created, IOW the pkg-install
script is not called.

Other ports like apache2 have a call to the pkg-install script in
the pre-install Makefile target.  Adding:

    ${SH} pkg-install ${PKGNAME} PRE-INSTALL

to the end of the pre-install target seem to fix this problem.

Regards,
Remco


# make install
===>  Extracting for jakarta-tomcat-3.2.4_2
>> Checksum OK for jakarta-tomcat-3.2.4.tar.gz.
===>  Patching for jakarta-tomcat-3.2.4_2
===>  Applying FreeBSD patches for jakarta-tomcat-3.2.4_2
===>  Configuring for jakarta-tomcat-3.2.4_2
===>  Installing for jakarta-tomcat-3.2.4_2
===>   jakarta-tomcat-3.2.4_2 depends on file: /usr/local/jdk1.3.1/bin/javac - found
Installation settings:
   Destination directory:   /usr/local/jakarta-tomcat3.2.4
   Control script location: /usr/local/bin/tomcatctl
   Startup script location: /usr/local/etc/rc.d/020.jakarta-tomcat.sh
   Location of JDK:         /usr/local/jdk1.3.1
   Location of Java port:   /usr/ports/java/jdk13
   Running as (user/group): www/www
   Port to listen at:       8080
   Logfile stdout:          /usr/local/jakarta-tomcat3.2.4/logs/stdout.log
   Logfile stderr:          /usr/local/jakarta-tomcat3.2.4/logs/stderr.log
   Starting after install:  NO
/bin/mkdir -p /usr/local/jakarta-tomcat3.2.4
/bin/rm -f `/usr/bin/find /big/ports/www/jakarta-tomcat/work/jakarta-tomcat-3.2.4 -name '*.bat'`
/bin/rm -f `/usr/bin/find /big/ports/www/jakarta-tomcat/work/jakarta-tomcat-3.2.4 -name '*.orig'`
/bin/cp -R /big/ports/www/jakarta-tomcat/work/jakarta-tomcat-3.2.4/* /usr/local/jakarta-tomcat3.2.4
/bin/chmod 755 `find /usr/local/jakarta-tomcat3.2.4 -type d`
/bin/cat /big/ports/www/jakarta-tomcat/work/jakarta-tomcat-3.2.4/conf/workers.properties  | /usr/bin/sed "/%%TOMCAT_HOME%%/s//\/usr\/local\/jakarta-tomcat3.2.4/"  | /usr/bin/sed "/%%JAVA_HOME%%/s//\/usr\/local\/jdk1.3.1/"  > /big/ports/www/jakarta-tomcat/work/workers.properties
/bin/mv /big/ports/www/jakarta-tomcat/work/workers.properties /usr/local/jakarta-tomcat3.2.4/conf/workers.properties
/bin/cat /big/ports/www/jakarta-tomcat/files/jakarta-tomcat.sh  | /usr/bin/sed "/%%USER_NAME%%/s//www/"  | /usr/bin/sed "/%%APP_SHORTNAME%%/s//tomcat/"  | /usr/bin/sed "/%%CONTROL_SCRIPT%%/s//\/usr\/local\/bin\/tomcatctl/"  > /usr/local/etc/rc.d/020.jakarta-tomcat.sh
/bin/chmod 0554 /usr/local/etc/rc.d/020.jakarta-tomcat.sh
/bin/cat /big/ports/www/jakarta-tomcat/files/tomcatctl  | /usr/bin/sed "/%%PORTNAME%%/s//jakarta-tomcat/"  | /usr/bin/sed "/%%APP_TITLE%%/s//Jakarta Tomcat/"  | /usr/bin/sed "/%%APP_SHORTNAME%%/s//tomcat/"  | /usr/bin/sed "/%%APP_HOME%%/s//\/usr\/local\/jakarta-tomcat3.2.4/"  | /usr/bin/sed "/%%LOG_DIR%%/s//\/usr\/local\/jakarta-tomcat3.2.4\/logs/"  | /usr/bin/sed "/%%STARTUP_SCRIPT_NAME%%/s//jakarta-tomcat.sh/"  | /usr/bin/sed "/%%JAVA_HOME%%/s//\/usr\/local\/jdk1.3.1/"  | /usr/bin/sed "/%%USER_NAME%%/s//www/"  | /usr/bin/sed "/%%STDOUT_LOG%%/s//\/usr\/local\/jakarta-tomcat3.2.4\/logs\/stdout.log/"  | /usr/bin/sed "/%%STDERR_LOG%%/s//\/usr\/local\/jakarta-tomcat3.2.4\/logs\/stderr.log/"  > /usr/local/bin/tomcatctl
/usr/sbin/chown www:www /usr/local/bin/tomcatctl
chown: www: illegal group name
*** Error code 1

Stop in /big/ports/www/jakarta-tomcat.
*** Error code 1

Stop in /big/ports/www/jakarta-tomcat.
*** Error code 1

Stop in /big/ports/www/jakarta-tomcat.



On Thu, Feb 21, 2002 at 21:33, Ernst de Haan wrote:

> Hi all,
> 
> Just finished refactoring the Jakarta Tomcat port (www/jakarta-tomcat). There 
> were a lot of suggestions and comments, and I tried to squeeze them all in. 
> Any comments on the new version would be more than welcome. Just make install 
> (or portupgrade) after a cvsup :)
> 
> Next thing for me to do is sort out the mod_jk problems....
> 
> Ernst


-- 
We resolve to execute a strategic plan involving synergizing our
frictionless communities as part of our five-year plan to embrace
leadership skills to permit us to produce a higher quality product
line that kicks the competition's butt.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020225174730.GJ88307>