63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
PORTNAME= jetty
|
|
PORTVERSION= 10.0.16
|
|
CATEGORIES= www java
|
|
MASTER_SITES= https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/${PORTVERSION}/
|
|
PKGNAMESUFFIX= 10
|
|
DISTNAME= jetty-home-${PORTVERSION}
|
|
|
|
MAINTAINER= zi@FreeBSD.org
|
|
COMMENT= Full-featured web server implemented entirely in Java
|
|
WWW= https://www.eclipse.org/jetty/
|
|
|
|
LICENSE= APACHE20 EPL
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
RUN_DEPENDS= bash:shells/bash
|
|
|
|
USES= cpe shebangfix
|
|
|
|
CONFLICTS= jetty8.* jetty9.* jetty11.* jetty12.*
|
|
|
|
USE_JAVA= yes
|
|
NO_ARCH= yes
|
|
CPE_VENDOR= eclipse
|
|
SHEBANG_FILES= bin/jetty.sh
|
|
NO_BUILD= yes
|
|
JAVA_VERSION= 11+
|
|
JAVA_VENDOR= openjdk
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
APP_NAME= ${PORTNAME}
|
|
APP_HOME= ${PREFIX}/${PORTNAME}
|
|
|
|
USERS= www
|
|
GROUPS= www
|
|
|
|
SUB_LIST= \
|
|
APP_HOME=${APP_HOME} \
|
|
APP_NAME=${APP_NAME} \
|
|
JAVA_HOME=${JAVA_HOME} \
|
|
JAVA=${JAVA} \
|
|
WWWDIR=${WWWDIR}
|
|
|
|
SUB_FILES= \
|
|
${APP_NAME} \
|
|
pkg-message \
|
|
jetty.sample
|
|
|
|
PLIST_SUB= \
|
|
APP_HOME=${APP_HOME} \
|
|
APP_NAME=${APP_NAME} \
|
|
WWWDIR=${WWWDIR} \
|
|
PORTVERSION=${PORTVERSION} \
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${APP_HOME} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${ETCDIR}
|
|
${RM} ${WRKSRC}/lib/setuid/libsetuid-linux.so ${WRKSRC}/lib/setuid/libsetuid-osx.so
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME})
|
|
${INSTALL_SCRIPT} ${STAGEDIR}${PREFIX}/${PORTNAME}/bin/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.sample ${STAGEDIR}${ETCDIR}/
|
|
|
|
.include <bsd.port.mk>
|