mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-14 20:41:20 +02:00
create bsd12 branch
This commit is contained in:
84
java/wildfly10/Makefile
Normal file
84
java/wildfly10/Makefile
Normal file
@@ -0,0 +1,84 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
PORTNAME= wildfly
|
||||
PORTVERSION= 10.0.0
|
||||
CATEGORIES= java www
|
||||
MASTER_SITES= http://download.jboss.org/wildfly/${WILDFLY_VERSION}/
|
||||
DISTNAME= wildfly-${WILDFLY_VERSION}-src
|
||||
PKGNAMESUFFIX= ${PORTVERSION:R:R}
|
||||
|
||||
|
||||
MAINTAINER= yerenkow@gmail.com
|
||||
COMMENT= Replacement for JBoss Application Server
|
||||
|
||||
|
||||
USE_RC_SUBR= wildfly${PORTVER}
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.8
|
||||
VAR_DIR= /var
|
||||
LOG_DIR= ${VAR_DIR}/log/${PORTNAME}${PORTVER}
|
||||
PID_FILE= ${VAR_DIR}/run/${PORTNAME}${PORTVER}.pid
|
||||
WILDFLY_VERSION=${PORTVERSION}.Final
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
WF_OWNER= www
|
||||
WF_GROUP= www
|
||||
|
||||
SUB_LIST+= APP_SHORTNAME=wildfly${PORTVER}
|
||||
SUB_LIST+= OWNER=${WF_OWNER}
|
||||
SUB_LIST+= GROUP=${WF_GROUP}
|
||||
SUB_LIST+= APP_HOME=${PREFIX}/wildfly${PORTVER}
|
||||
SUB_LIST+= PID_FILE=${PID_FILE}
|
||||
SUB_LIST+= LOG_DIR=${LOG_DIR}
|
||||
|
||||
PLIST_SUB+= APP_HOME=${PREFIX}/wildfly${PORTVER}
|
||||
|
||||
|
||||
CONFIG_FILES+= appclient/configuration/appclient.xml
|
||||
CONFIG_FILES+= appclient/configuration/logging.properties
|
||||
CONFIG_FILES+= domain/configuration/application-roles.properties
|
||||
CONFIG_FILES+= domain/configuration/application-users.properties
|
||||
CONFIG_FILES+= domain/configuration/default-server-logging.properties
|
||||
CONFIG_FILES+= domain/configuration/domain.xml
|
||||
CONFIG_FILES+= domain/configuration/host-master.xml
|
||||
CONFIG_FILES+= domain/configuration/host-slave.xml
|
||||
CONFIG_FILES+= domain/configuration/host.xml
|
||||
CONFIG_FILES+= domain/configuration/logging.properties
|
||||
CONFIG_FILES+= domain/configuration/mgmt-groups.properties
|
||||
CONFIG_FILES+= domain/configuration/mgmt-users.properties
|
||||
CONFIG_FILES+= standalone/configuration/application-roles.properties
|
||||
CONFIG_FILES+= standalone/configuration/application-users.properties
|
||||
CONFIG_FILES+= standalone/configuration/logging.properties
|
||||
CONFIG_FILES+= standalone/configuration/mgmt-groups.properties
|
||||
CONFIG_FILES+= standalone/configuration/mgmt-users.properties
|
||||
CONFIG_FILES+= standalone/configuration/standalone-full-ha.xml
|
||||
CONFIG_FILES+= standalone/configuration/standalone-full.xml
|
||||
CONFIG_FILES+= standalone/configuration/standalone-ha.xml
|
||||
CONFIG_FILES+= standalone/configuration/standalone.xml
|
||||
|
||||
PORTVER= ${PORTVERSION:R:R}
|
||||
|
||||
post-patch:
|
||||
${RM} ${WRKSRC}/bin/add-user.sh.orig
|
||||
|
||||
do-build:
|
||||
${RM} ${WRKSRC}/bin/*.bat
|
||||
${RM} ${WRKSRC}/bin/*.ps1
|
||||
${RM} -rf ${WRKSRC}/bin/service
|
||||
${RM} -rf ${WRKSRC}/bin/init.d
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/wildfly${PORTVER}
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/wildfly${PORTVER}
|
||||
${RMDIR} ${STAGEDIR}${PREFIX}/wildfly${PORTVER}/.installation
|
||||
.for FILE in ${CONFIG_FILES}
|
||||
${MV} ${STAGEDIR}${PREFIX}/wildfly${PORTVER}/${FILE} \
|
||||
${STAGEDIR}${PREFIX}/wildfly${PORTVER}/${FILE}.sample
|
||||
.endfor
|
||||
|
||||
# ${FIND} ${STAGEDIR}${PREFIX}/wildfly${PORTVER} -name '*.sh' | ${XARGS} ${CHMOD} 555
|
||||
# cd ${STAGEDIR}${PREFIX}/wildfly${PORTVER} && ${CHOWN} -R www:www .
|
||||
|
||||
.include <bsd.port.mk>
|
||||
#EOF
|
||||
2
java/wildfly10/distinfo
Normal file
2
java/wildfly10/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
SHA256 (wildfly-10.0.0.Final-src.tar.gz) = 639dfe87f8e196bd38e6c6a5eccfe88dfa6e7e481335e4d363e31677d8ecabcb
|
||||
SIZE (wildfly-10.0.0.Final-src.tar.gz) = 15512018
|
||||
11
java/wildfly10/files/patch-bin_add-user.sh
Normal file
11
java/wildfly10/files/patch-bin_add-user.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
--- bin/add-user.sh.orig 2015-10-23 18:57:02 UTC
|
||||
+++ bin/add-user.sh
|
||||
@@ -7,6 +7,8 @@
|
||||
#
|
||||
|
||||
DIRNAME=`dirname "$0"`
|
||||
+JAVA_VERSION="1.7+"
|
||||
+export JAVA_VERSION
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false;
|
||||
18
java/wildfly10/files/pkg-message.in
Normal file
18
java/wildfly10/files/pkg-message.in
Normal file
@@ -0,0 +1,18 @@
|
||||
------------------------------------------------------------
|
||||
|
||||
To make WildFly bind to all interfaces add this to rc.conf:
|
||||
|
||||
%%APP_SHORTNAME%%_args="-Djboss.bind.address=0.0.0.0"
|
||||
|
||||
See
|
||||
https://community.jboss.org/wiki/JBossProperties
|
||||
|
||||
for additional startup properties.
|
||||
|
||||
To change JVM args, edit appropriate standalone.conf.
|
||||
|
||||
To add the initial admin user:
|
||||
|
||||
%%APP_HOME%%/bin/add-user.sh
|
||||
|
||||
------------------------------------------------------------
|
||||
97
java/wildfly10/files/wildfly10.in
Normal file
97
java/wildfly10/files/wildfly10.in
Normal file
@@ -0,0 +1,97 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# %%APP_SHORTNAME%% startup script.
|
||||
#
|
||||
# $FreeBSD: head/java/wildfly100/files/wildfly100.in 411975 2016-03-27 01:58:45Z junovitch $
|
||||
#
|
||||
|
||||
# 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="%%OWNER%%"
|
||||
%%APP_SHORTNAME%%_group="%%GROUP%%"
|
||||
|
||||
start_cmd="%%APP_SHORTNAME%%_start"
|
||||
stop_cmd="%%APP_SHORTNAME%%_stop"
|
||||
pidfile="%%PID_FILE%%"
|
||||
|
||||
WILDFLY_HOME="%%APP_HOME%%"
|
||||
#minimal requirements must be set for our javavmwrapper
|
||||
JAVA_VERSION="1.7+"
|
||||
export JAVA_VERSION
|
||||
|
||||
%%APP_SHORTNAME%%_start ()
|
||||
{
|
||||
if [ ! -d "${%%APP_SHORTNAME%%_logdir}" ]
|
||||
then
|
||||
install -d -o ${%%APP_SHORTNAME%%_user} ${%%APP_SHORTNAME%%_logdir}
|
||||
fi
|
||||
|
||||
echo "Making sure all writeable dirs belongs 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
|
||||
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"
|
||||
12
java/wildfly10/pkg-descr
Normal file
12
java/wildfly10/pkg-descr
Normal file
@@ -0,0 +1,12 @@
|
||||
WildFly is a flexible, lightweight, managed application
|
||||
runtime that helps you build amazing applications.
|
||||
WildFly - new name for JBoss Application Server
|
||||
|
||||
Fast Startup
|
||||
Small Footprint
|
||||
Modular Design
|
||||
Unified Configuration and Management
|
||||
|
||||
And of course Java EE!
|
||||
|
||||
WWW: http://wildfly.org
|
||||
2065
java/wildfly10/pkg-plist
Normal file
2065
java/wildfly10/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
2065
java/wildfly10/pkg-plist.orig
Normal file
2065
java/wildfly10/pkg-plist.orig
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user