Date: Wed, 15 Apr 2009 16:00:52 +1000 (EST) From: jurgen@ish.com.au To: FreeBSD-gnats-submit@FreeBSD.org Cc: support@ish.com.au Subject: ports/133740: Message-ID: <200904150600.n3F60qcQ004078@astonish.ish.com.au> Resent-Message-ID: <200904150620.n3F6K1iG026076@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133740 >Category: ports >Synopsis: >Confidential: yes >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 15 06:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: jurgen >Release: FreeBSD 7.1-RELEASE i386 >Organization: ish pty ltd >Environment: System: FreeBSD astonish.ish.com.au 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/www/archiva # /usr/ports/www/archiva/Makefile # /usr/ports/www/archiva/distinfo # /usr/ports/www/archiva/pkg-message # /usr/ports/www/archiva/pkg-descr # /usr/ports/www/archiva/files # /usr/ports/www/archiva/files/archiva.xml # echo c - /usr/ports/www/archiva mkdir -p /usr/ports/www/archiva > /dev/null 2>&1 echo x - /usr/ports/www/archiva/Makefile sed 's/^X//' >/usr/ports/www/archiva/Makefile << 'f25821107a05f58f149b1722cc47552c' X# New ports collection makefile for: archiva X# Date created: 2009-04-15 X# Whom: Jurgen Weber <jurgen@ish.com.au> X# X# $FreeBSD:$ X# X XPORTNAME= apache-archiva XPORTVERSION= 1.2 XCATEGORIES= www java devel XMASTER_SITES= http://apache.16degrees.com.au/archiva/binaries/ \ X http://apache.wildit.net.au/archiva/binaries/ \ X http://apache.mirror.aussiehq.net.au/archiva/binaries/ XEXTRACT_SUFX= .war XDIST_SUBDIR= ${PORTNAME}-${PORTVERSION} XEXTRACT_ONLY= X XMAINTAINER= jurgen@ish.com.au XCOMMENT= The Build Artifact Repository Manager X XRUN_DEPENDS= ${LOCALBASE}/apache-tomcat6.0/bin/catalina.sh:${PORTSDIR}/www/tomcat6 X XNO_BUILD= yes X XWEBAPP_SUBDIR= apache-tomcat6.0/archiva XWEBAPP_DIR= ${PREFIX}/${WEBAPP_SUBDIR} X XCFGFILE= archiva.xml X XPLIST_FILES= ${WEBAPP_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \ X apache-tomcat6.0/conf/Catalina/localhost/archiva.xml XPLIST_DIRS= ${WEBAPP_SUBDIR} \ X apache-tomcat6.0/conf/Catalina/localhost X Xdo-install: install-app install-conf X Xinstall-app: X ${MKDIR} ${PREFIX}/${WEBAPP_SUBDIR} X ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} ${WEBAPP_DIR}/ Xinstall-conf: install-app X ${MKDIR} ${PREFIX}/apache-tomcat6.0/conf/Catalina/localhost ; \ X ${CHOWN} www:www ${FILESDIR}/${CFGFILE} ;\ X ${CHMOD} 0640 ${FILESDIR}/${CFGFILE} ;\ X ${CP} -p ${FILESDIR}/${CFGFILE} ${PREFIX}/apache-tomcat6.0/conf/Catalina/localhost/${CFGFILE} X X.include <bsd.port.mk> f25821107a05f58f149b1722cc47552c echo x - /usr/ports/www/archiva/distinfo sed 's/^X//' >/usr/ports/www/archiva/distinfo << 'cda50226d62526e9cf2fe696d6c4fd54' XMD5 (apache-archiva-1.2/apache-archiva-1.2.war) = f09072c0f1aa371482e4105557aabe6f XSHA256 (apache-archiva-1.2/apache-archiva-1.2.war) = 2bc77b4f326b8f027c88431b9404da6c248392c8148f04d135642c53d9b6bd3e XSIZE (apache-archiva-1.2/apache-archiva-1.2.war) = 18523821 cda50226d62526e9cf2fe696d6c4fd54 echo x - /usr/ports/www/archiva/pkg-message sed 's/^X//' >/usr/ports/www/archiva/pkg-message << '6ea4b9ab03fef1e16170eba96f2abc57' Xarchiva needs the following set in your rc.conf to function, you will need to restart tomcat60. Xtomcat60_java_opts="-Dappserver.home=${tomcat60_catalina_home} -Dappserver.base=${tomcat60_catalina_base}" X XYou will also need to edit the configuration file found at <tomcat home>/conf/Catalina/localhost/archiva.xml Xand ensure that you have directories made for your user and archiva database, set permission to the same user/group Xas tomcat. X XPlease consult the documentation if you have difficulties Xhttp://archiva.apache.org/docs/1.2/adminguide/webapp.html 6ea4b9ab03fef1e16170eba96f2abc57 echo x - /usr/ports/www/archiva/pkg-descr sed 's/^X//' >/usr/ports/www/archiva/pkg-descr << '7002444505bcc1dbf7aaf53764090de8' XApache Archiva is an extensible repository management software Xthat helps taking care of your own personal or enterprise-wide Xbuild artifact repository. X XWWW: http://archiva.apache.org/ 7002444505bcc1dbf7aaf53764090de8 echo c - /usr/ports/www/archiva/files mkdir -p /usr/ports/www/archiva/files > /dev/null 2>&1 echo x - /usr/ports/www/archiva/files/archiva.xml sed 's/^X//' >/usr/ports/www/archiva/files/archiva.xml << '5a473ec96a2519ab22bc96a3fbf29526' X<?xml version="1.0" encoding="UTF-8"?> X <Context path="/archiva" X docBase="${catalina.home}/archiva/apache-archiva-1.2.war"> X X <Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource" X username="sa" X password="" X driverClassName="org.apache.derby.jdbc.EmbeddedDriver" X url="jdbc:derby:/path/to/database/users;create=true" /> X X <Resource name="jdbc/archiva" auth="Container" type="javax.sql.DataSource" X username="sa" X password="" X driverClassName="org.apache.derby.jdbc.EmbeddedDriver" X url="jdbc:derby:/path/to/database/archiva;create=true" /> X X <Resource name="mail/Session" auth="Container" X type="javax.mail.Session" X mail.smtp.host="localhost"/> X </Context> X 5a473ec96a2519ab22bc96a3fbf29526 exit >Description: >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904150600.n3F60qcQ004078>