diff options
Diffstat (limited to 'java/jboss5/Makefile')
-rw-r--r-- | java/jboss5/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/java/jboss5/Makefile b/java/jboss5/Makefile index ffd73a00a549..b41a519d58f9 100644 --- a/java/jboss5/Makefile +++ b/java/jboss5/Makefile @@ -7,6 +7,7 @@ PORTNAME= ${APP_TITLE:L} PORTVERSION= 4.0.0 +PORTREVISION= 1 CATEGORIES= java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -22,17 +23,18 @@ USE_JAVA= yes JAVA_VERSION= 1.4+ USE_REINPLACE= YES +USE_RC_SUBR= YES USE_BZIP2= YES .if !defined(NOPORTDOCS) PORTDOCS= * .endif -APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:R} +APP_HOME?= ${PREFIX}/${APP_SHORTNAME} DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}${PORTVERSION:R} LOG_DIR= ${APP_HOME}/log APP_TITLE= JBoss -APP_SHORTNAME= ${PORTNAME}${PORTVERSION:R:R} +APP_SHORTNAME= ${UNIQUENAME} CONTROL_SCRIPT_NAME= ${APP_SHORTNAME}ctl CONTROL_SCRIPT= ${PREFIX}/bin/${CONTROL_SCRIPT_NAME} CONTROL_SCRIPT_MANPAGE_TITLE= ${CONTROL_SCRIPT_NAME:U} @@ -66,6 +68,7 @@ PLIST_FILES= ${CONTROL_SCRIPT:S,^${PREFIX}/,,} \ do-configure: @(cd ${DAEMONCTL_DIR} && ${CP} ${DAEMONCTL_FILES} ${WRKDIR}) @(cd ${WRKDIR} && ${REINPLACE_CMD} \ + -e "s|%%RC_SUBR%%|${RC_SUBR}|g;" \ -e "s|%%APP_HOME%%|${APP_HOME}|g;" \ -e "s|%%APP_SHORTNAME%%|${APP_SHORTNAME}|g;" \ -e "s|%%APP_TITLE%%|${APP_TITLE}|g;" \ @@ -73,8 +76,8 @@ do-configure: -e "s|%%CONTROL_SCRIPT_MANPAGE_TITLE%%|${CONTROL_SCRIPT_MANPAGE_TITLE}|g;" \ -e "s|%%CONTROL_SCRIPT_NAME%%|${CONTROL_SCRIPT_NAME}|g;" \ -e "s|%%GROUP%%|${GROUP}|g;" \ + -e "s|%%JAVA%%|${JAVA}|g;" \ -e "s|%%JAVA_CP%%|${JAVA_CP}|g;" \ - -e "s|%%JAVA_CMD%%|bin/java|g;" \ -e "s|%%JAVA_HOME%%|${JAVA_HOME}|g;" \ -e "s|%%JAVA_MAIN%%|${JAVA_MAIN}|g;" \ -e "s|%%JAVA_OPTS%%|${JAVA_OPTS}|g;" \ |