Index: head/java/Makefile =================================================================== --- head/java/Makefile (revision 521562) +++ head/java/Makefile (revision 521563) @@ -1,132 +1,133 @@ # $FreeBSD$ # COMMENT = Java language support SUBDIR += apache-bcel SUBDIR += apache-commons-cli SUBDIR += apache-commons-codec SUBDIR += apache-commons-collections SUBDIR += apache-commons-dbcp SUBDIR += apache-commons-httpclient SUBDIR += apache-commons-lang SUBDIR += apache-commons-lang3 SUBDIR += apache-commons-logging SUBDIR += apache-commons-pool SUBDIR += apache-commons-primitives SUBDIR += aparapi SUBDIR += avis SUBDIR += berkeley-db SUBDIR += bluej SUBDIR += bootstrap-openjdk11 SUBDIR += bootstrap-openjdk6 SUBDIR += bootstrap-openjdk8 SUBDIR += bouncycastle SUBDIR += bouncycastle15 SUBDIR += castor SUBDIR += cos SUBDIR += cryptix-jce SUBDIR += dbvis SUBDIR += eclipse SUBDIR += eclipse-EPIC SUBDIR += eclipse-cdt SUBDIR += eclipse-drjava SUBDIR += eclipse-ecj SUBDIR += eclipse-findbugs SUBDIR += eclipse-pydev SUBDIR += eclipse-shelled SUBDIR += eclipse-windowbuilder SUBDIR += hamcrest SUBDIR += icedtea-web SUBDIR += infobus SUBDIR += intellij SUBDIR += intellij-fsnotifier SUBDIR += intellij-pty4j SUBDIR += intellij-rubymine SUBDIR += intellij-ultimate SUBDIR += jad SUBDIR += jai SUBDIR += jakarta-commons-beanutils SUBDIR += jakarta-commons-discovery SUBDIR += jakarta-oro SUBDIR += jakarta-regexp SUBDIR += jasmin SUBDIR += jattach SUBDIR += java-cup SUBDIR += java-getopt SUBDIR += java-subversion SUBDIR += java-zoneinfo SUBDIR += java3d SUBDIR += javahelp SUBDIR += javamail SUBDIR += javavmwrapper SUBDIR += jaxen SUBDIR += jcalendar SUBDIR += jcckit SUBDIR += jcommon SUBDIR += jd-gui SUBDIR += jdbcpool SUBDIR += jdk11-doc SUBDIR += jdk12-doc SUBDIR += jdk8-doc SUBDIR += jdom SUBDIR += jflex SUBDIR += jfreechart SUBDIR += jgraph SUBDIR += jgraphx SUBDIR += jikes SUBDIR += jlex SUBDIR += jlint SUBDIR += jmf SUBDIR += jode SUBDIR += jomp SUBDIR += jrosetta SUBDIR += jta SUBDIR += jtiger SUBDIR += jump SUBDIR += junit SUBDIR += jxgrabkey SUBDIR += langspec SUBDIR += lightweight-java-profiler SUBDIR += linux-oracle-jdk18 SUBDIR += linux-oracle-jre18 SUBDIR += linux-oracle-serverjre10 SUBDIR += mmake SUBDIR += mx4j SUBDIR += netbeans SUBDIR += netcomponents SUBDIR += netrexx SUBDIR += netty SUBDIR += openjdk11 SUBDIR += openjdk12 SUBDIR += openjdk13 SUBDIR += openjdk7 SUBDIR += openjdk7-jre SUBDIR += openjdk8 SUBDIR += openjdk8-jre SUBDIR += openjfx8-devel SUBDIR += openjfx8-scenebuilder SUBDIR += phpeclipse SUBDIR += proguard SUBDIR += sablevm SUBDIR += sablevm-classpath SUBDIR += servingxml SUBDIR += sigar SUBDIR += springframework SUBDIR += springframework31 SUBDIR += sqlitejdbc SUBDIR += trove4j SUBDIR += veditor SUBDIR += visualvm SUBDIR += wildfly10 SUBDIR += wildfly11 SUBDIR += wildfly12 SUBDIR += wildfly13 SUBDIR += wildfly14 SUBDIR += wildfly15 SUBDIR += wildfly16 SUBDIR += wildfly17 + SUBDIR += wildfly18 SUBDIR += wildfly90 SUBDIR += xdoclet .include Index: head/java/wildfly18/Makefile =================================================================== --- head/java/wildfly18/Makefile (nonexistent) +++ head/java/wildfly18/Makefile (revision 521563) @@ -0,0 +1,71 @@ +# Created by: Simeo Reig +# $FreeBSD$ + +PORTNAME= wildfly18 +PORTVERSION= 18.0.1 +CATEGORIES= java www +MASTER_SITES= https://download.jboss.org/wildfly/${WILDFLY_VERSION}/ +DISTNAME= wildfly-${WILDFLY_VERSION} + +MAINTAINER= reig.simeo@gmail.com +COMMENT= WildFly is a Java Jakarta EE8 application server developed by Red Hat + +LICENSE= GPLv2 + +USE_RC_SUBR= wildfly18 +USE_JAVA= yes + +JAVA_VERSION= 1.8+ +USER= www +GROUP= www +VAR_DIR?= /var +LOG_DIR?= ${VAR_DIR}/log/${PORTNAME} +PID_FILE= ${VAR_DIR}/run/${PORTNAME}.pid +WILDFLY_VERSION=${PORTVERSION}.Final +SUB_FILES= pkg-message + +SUB_LIST= APP_SHORTNAME=${PORTNAME} \ + LOG_DIR=${LOG_DIR} \ + USER=${USER} \ + GROUP=${GROUP} \ + PID_FILE=${PID_FILE} \ + APP_HOME=${PREFIX}/${PORTNAME} +PLIST_SUB= APP_HOME=${PORTNAME} + +CONFIG_FILES= appclient/configuration/appclient.xml \ + appclient/configuration/logging.properties \ + domain/configuration/application-roles.properties \ + domain/configuration/application-users.properties \ + domain/configuration/default-server-logging.properties \ + domain/configuration/domain.xml \ + domain/configuration/host-master.xml \ + domain/configuration/host-slave.xml \ + domain/configuration/host.xml \ + domain/configuration/logging.properties \ + domain/configuration/mgmt-groups.properties \ + domain/configuration/mgmt-users.properties \ + standalone/configuration/application-roles.properties \ + standalone/configuration/application-users.properties \ + standalone/configuration/logging.properties \ + standalone/configuration/mgmt-groups.properties \ + standalone/configuration/mgmt-users.properties \ + standalone/configuration/standalone-full-ha.xml \ + standalone/configuration/standalone-full.xml \ + standalone/configuration/standalone-ha.xml \ + standalone/configuration/standalone-load-balancer.xml \ + standalone/configuration/standalone.xml + +do-build: + ${RM} ${WRKSRC}/bin/*.bat + ${RM} ${WRKSRC}/bin/*.ps1 + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} + (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME}) + ${RMDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/.installation +.for FILE in ${CONFIG_FILES} + ${MV} ${STAGEDIR}${PREFIX}/${PORTNAME}/${FILE} \ + ${STAGEDIR}${PREFIX}/${PORTNAME}/${FILE}.sample +.endfor + +.include Property changes on: head/java/wildfly18/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/java/wildfly18/distinfo =================================================================== --- head/java/wildfly18/distinfo (nonexistent) +++ head/java/wildfly18/distinfo (revision 521563) @@ -0,0 +1,3 @@ +TIMESTAMP = 1577632252 +SHA256 (wildfly-18.0.1.Final.tar.gz) = 54498e9c16b29c7f0a2cbab91edab6dfb9e2002259ee07c6d1247c23dc0cbb6c +SIZE (wildfly-18.0.1.Final.tar.gz) = 185501676 Property changes on: head/java/wildfly18/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/java/wildfly18/files/wildfly18.in =================================================================== --- head/java/wildfly18/files/wildfly18.in (nonexistent) +++ head/java/wildfly18/files/wildfly18.in (revision 521563) @@ -0,0 +1,98 @@ +#!/bin/sh +# +# %%APP_SHORTNAME%% startup script. +# $FreeBSD$ +# + +# PROVIDE: %%APP_SHORTNAME%% +# REQUIRE: NETWORKING SERVERS +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable %%APP_SHORTNAME%%: +# %%APP_SHORTNAME%%_enable (bool): Set to "YES" to enable %%APP_SHORTNAME%% +# %%APP_SHORTNAME%%_args (str): Optional arguments to OAJBoss +# %%APP_SHORTNAME%%_log_stdout (str) JBoss log output stdout, filename. +# %%APP_SHORTNAME%%_log_stderr (str) JBoss log output stderr, filename. +# + +. /etc/rc.subr + +name="%%APP_SHORTNAME%%" +rcvar=%%APP_SHORTNAME%%_enable +extra_commands="status" + +load_rc_config $name + +%%APP_SHORTNAME%%_logdir="%%LOG_DIR%%" +%%APP_SHORTNAME%%_enable="${%%APP_SHORTNAME%%_enable:-"NO"}" +%%APP_SHORTNAME%%_log_stdout="${%%APP_SHORTNAME%%_log_stdout:-"${%%APP_SHORTNAME%%_logdir}/log"}" +%%APP_SHORTNAME%%_log_stderr="${%%APP_SHORTNAME%%_log_stderr:-"${%%APP_SHORTNAME%%_logdir}/error"}" +%%APP_SHORTNAME%%_args="${%%APP_SHORTNAME%%_args:-""}" +%%APP_SHORTNAME%%_sleep="${%%APP_SHORTNAME%%_sleep:-"5"}" +%%APP_SHORTNAME%%_kill9="${%%APP_SHORTNAME%%_kill9:-""}" +%%APP_SHORTNAME%%_additional_killall="${%%APP_SHORTNAME%%_additional_killall:-""}" +%%APP_SHORTNAME%%_user="%%USER%%" +%%APP_SHORTNAME%%_group="%%GROUP%%" + +start_cmd="%%APP_SHORTNAME%%_start" +stop_cmd="%%APP_SHORTNAME%%_stop" +pidfile="%%PID_FILE%%" +status_cmd="%%APP_SHORTNAME%%_status" + +WILDFLY_HOME="%%APP_HOME%%" +#minimal requirements must be set for our javavmwrapper +JAVA_VERSION="1.8+" +export JAVA_VERSION + +%%APP_SHORTNAME%%_start () +{ + if [ ! -d "${%%APP_SHORTNAME%%_logdir}" ] + then + install -d -o ${%%APP_SHORTNAME%%_user} ${%%APP_SHORTNAME%%_logdir} + fi + + echo "%%APP_SHORTNAME%%: making sure all writeable dirs belong to proper user/group" + chown -R ${%%APP_SHORTNAME%%_user}:${%%APP_SHORTNAME%%_group} ${WILDFLY_HOME}/standalone + echo "Starting %%APP_SHORTNAME%%." + daemon -u ${%%APP_SHORTNAME%%_user} ${WILDFLY_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_args} >> ${%%APP_SHORTNAME%%_log_stdout} 2>> ${%%APP_SHORTNAME%%_log_stderr} + + sleep ${%%APP_SHORTNAME%%_sleep} # let daemon(8) and sh(1) finish before executing pgrep(1) + pgrep -U ${%%APP_SHORTNAME%%_user} -f ${WILDFLY_HOME}/modules > ${pidfile} + chown ${%%APP_SHORTNAME%%_user} $pidfile +} + +%%APP_SHORTNAME%%_stop () +{ + # Subvert the check_pid_file procname check. + if [ -f ${pidfile} ] + then + kill `cat ${pidfile}` + # Only if we aware that our setup can hangs, and only after trying simple kill, we can kill it hard way. + if [ ! -z "${%%APP_SHORTNAME%%_kill9}" ] + then + sleep ${%%APP_SHORTNAME%%_sleep} + kill -9 `cat ${pidfile}` + fi + # In some setups, JBoss can spawn some child processess, which could prevent it from stopping, and freeing net ports. + # Let's blindly kill them all, since we are really know what we are doing. + if [ ! -z "${%%APP_SHORTNAME%%_additional_killall}" ] + then + sleep ${%%APP_SHORTNAME%%_sleep} + killall ${%%APP_SHORTNAME%%_additional_killall} + fi + rm ${pidfile} + fi +} + +%%APP_SHORTNAME%%_status () +{ + # If running, show pid + if [ -f ${pidfile} ] + then + echo "%%APP_SHORTNAME%% is running as pid" `cat ${pidfile}` + else + echo "%%APP_SHORTNAME%% is not running" + fi +} + +run_rc_command "$1" Property changes on: head/java/wildfly18/files/wildfly18.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/java/wildfly18/files/pkg-message.in =================================================================== --- head/java/wildfly18/files/pkg-message.in (nonexistent) +++ head/java/wildfly18/files/pkg-message.in (revision 521563) @@ -0,0 +1,31 @@ +[ +{ type: install + message: <