Date: Tue, 28 Dec 2004 17:03:46 +0100 From: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> To: freebsd-java@FreeBSD.ORG Subject: Re: New port to review: jakarta-commons-daemon (maybe useful for tomcat) Message-ID: <20041228160346.GA8970@arabica.esil.univ-mrs.fr> In-Reply-To: <20041222181835.GA36851@arabica.esil.univ-mrs.fr> References: <20041222181835.GA36851@arabica.esil.univ-mrs.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 22, 2004 at 07:18:35PM +0100, Herve Quiroz wrote: > So here is a brand new version of the port. Install/deinstall targets > work and 'jsvc' will run. If someone is interested in either maintaining > this port or wish to contribute to it, please let me know. Apparently the shar attachement was lost, so here it is: # 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: # # jakarta-commons-daemon # jakarta-commons-daemon/files # jakarta-commons-daemon/files/patch-build.xml # jakarta-commons-daemon/files/patch-configure # jakarta-commons-daemon/Makefile # jakarta-commons-daemon/distinfo # jakarta-commons-daemon/pkg-descr # echo c - jakarta-commons-daemon mkdir -p jakarta-commons-daemon > /dev/null 2>&1 echo c - jakarta-commons-daemon/files mkdir -p jakarta-commons-daemon/files > /dev/null 2>&1 echo x - jakarta-commons-daemon/files/patch-build.xml sed 's/^X//' >jakarta-commons-daemon/files/patch-build.xml << 'END-of-jakarta-commons-daemon/files/patch-build.xml' X$FreeBSD$ X XThis patch allow linking API documentation to the J2SE API documentation, if Xinstalled X X--- build.xml.orig Wed Dec 22 18:26:37 2004 X+++ build.xml Wed Dec 22 18:27:13 2004 X@@ -197,6 +197,7 @@ X bottom="Copyright (c) 2001-2002 - Apache Software Foundation"> X <classpath refid="compile.classpath"/> X <classpath location="${ant.lib}/ant.jar"/> X+ <link href="${j2se.apidocs}"/> X </javadoc> X </target> X END-of-jakarta-commons-daemon/files/patch-build.xml echo x - jakarta-commons-daemon/files/patch-configure sed 's/^X//' >jakarta-commons-daemon/files/patch-configure << 'END-of-jakarta-commons-daemon/files/patch-configure' X$FreeBSD$ X XPatch to have configure script recognize FreeBSD 5.x and 6.x X X--- src/native/unix/configure.orig Wed Dec 22 18:53:10 2004 X+++ src/native/unix/configure Wed Dec 22 18:53:30 2004 X@@ -2583,7 +2583,7 @@ X CFLAGS="$CFLAGS -DOS_SYSV -DDSO_DLFCN -Kthread" X LDFLAGS="-Kthread $LDFLAGS -ldl" X ;; X- freebsd4.?) X+ freebsd[456].?) X CFLAGS="$CFLAGS -DOS_FREEBSD -DDSO_DLFCN -D_THREAD_SAFE -pthread" X LDFLAGS="-pthread $LDFLAGS" X supported_os="freebsd" END-of-jakarta-commons-daemon/files/patch-configure echo x - jakarta-commons-daemon/Makefile sed 's/^X//' >jakarta-commons-daemon/Makefile << 'END-of-jakarta-commons-daemon/Makefile' X# New ports collection makefile for: Jakarta Commons Daemon X# Date created: December 22, 2004 X# Whom: Herve Quiroz <hq@FreeBSD.org> X# X# $FreeBSD$ X# X XPORTNAME= commons-daemon XPORTVERSION= 1.0 XCATEGORIES= sysutils java XMASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} XMASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/source XPKGNAMEPREFIX= jakarta- XDISTNAME= daemon-${PORTVERSION} X XMAINTAINER= hq@FreeBSD.org XCOMMENT= Invocation mechanism for unix-daemon-like Java code X XGNU_CONFIGURE= yes XNATIVE_WRKSRC= ${WRKSRC}/src/native/unix XCONFIGURE_WRKSRC= ${NATIVE_WRKSRC} X XUSE_JAVA= yes XJAVA_VERSION= 1.2+ X XUSE_ANT= yes XALL_TARGET= jar X XCONTROL_PROGRAM=jsvc XJARFILE= ${PORTNAME}.jar XPLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/${CONTROL_PROGRAM} X X.if !defined(NOPORTDOCS) XALL_TARGET+= javadoc XAPIDOCS= api XOTHERDOCS= LICENSE.txt PROPOSAL.html README RELEASE-NOTES.txt STATUS.html XPORTDOCS= ${APIDOCS} ${OTHERDOCS} X.endif X X.include <bsd.port.pre.mk> X XJDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1 XMAKE_ARGS+= -Dj2se.apidocs="${JDK_API}" X XCONFIGURE_ARGS+= --with-java="${JAVA_HOME}" X Xpost-build: X (cd ${NATIVE_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} all) X Xdo-install: X @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..." X @${INSTALL_DATA} ${WRKSRC}/dist/${JARFILE} ${JAVAJARDIR}/${JARFILE} X @${ECHO_MSG} " [ DONE ]" X @${ECHO_MSG} -n ">> Installing control program as ${PREFIX}/bin/${CONTROL_PROGRAM}..." X @${INSTALL_PROGRAM} ${NATIVE_WRKSRC}/${CONTROL_PROGRAM} ${PREFIX}/bin/${CONTROL_PROGRAM} X @${ECHO_MSG} " [ DONE ]" X.if !defined(NOPORTDOCS) X @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." X @cd ${WRKSRC}/dist/docs \ X && ${FIND} ${APIDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ X && ${FIND} ${APIDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; X @${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ X @${ECHO_MSG} " [ DONE ]" X.endif X X.include <bsd.port.post.mk> END-of-jakarta-commons-daemon/Makefile echo x - jakarta-commons-daemon/distinfo sed 's/^X//' >jakarta-commons-daemon/distinfo << 'END-of-jakarta-commons-daemon/distinfo' XMD5 (daemon-1.0.tar.gz) = 3054786aaba9631ec04fef0862023bc8 XSIZE (daemon-1.0.tar.gz) = 233313 END-of-jakarta-commons-daemon/distinfo echo x - jakarta-commons-daemon/pkg-descr sed 's/^X//' >jakarta-commons-daemon/pkg-descr << 'END-of-jakarta-commons-daemon/pkg-descr' X X XWWW: http://jakarta.apache.org/commons/daemon/ END-of-jakarta-commons-daemon/pkg-descr exit
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041228160346.GA8970>