60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# Created by: Nemo Liu <nemoliu@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= james
|
|
PORTVERSION= 2.3.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail java
|
|
MASTER_SITES= APACHE/${PORTNAME}/server/binaries
|
|
DISTNAME= ${PORTNAME}-binary-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Java SMTP and POP3 Mail server and NNTP News server
|
|
|
|
USES= cpe
|
|
CPE_VENDOR= apache
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= YES
|
|
|
|
USE_RC_SUBR= james
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION}
|
|
PID_FILE= /var/run/${APP_SHORTNAME}.pid
|
|
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}
|
|
|
|
SUB_LIST= JAVA_HOME=${JAVA_HOME} \
|
|
PID_FILE=${PID_FILE} \
|
|
JAMES_HOME=${APP_HOME} \
|
|
JAMES_VERSION=${PORTVERSION:S/.//g}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-patch:
|
|
@${ECHO_MSG} "Installation settings:"
|
|
@${ECHO_MSG} " Destination directory: ${APP_HOME}"
|
|
@${ECHO_MSG} " Location of JDK: ${JAVA_HOME}"
|
|
@${ECHO_MSG} " Location of Java port: ${JAVA_PORT}"
|
|
|
|
post-patch:
|
|
@${ECHO_MSG} -n ">> Removing unneeded files..."
|
|
@${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'`
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Creating destination directory..."
|
|
@${MKDIR} ${STAGEDIR}${APP_HOME}
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} ">> Copying files to destination directory..."
|
|
@${CP} -R ${WRKSRC}/* ${STAGEDIR}${APP_HOME}
|
|
@${MKDIR} ${STAGEDIR}${APP_HOME}/logs
|
|
@${MKDIR} ${STAGEDIR}${APP_HOME}/apps
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Creating symlink to tools.jar..."
|
|
@${LN} -sf ${JAVA_HOME}/lib/tools.jar ${STAGEDIR}${APP_HOME}/lib/tools.jar
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
post-install:
|
|
@${ECHO_MSG} "${PORTNAME} ${PORTVERSION} has been installed in ${APP_HOME}."
|
|
|
|
.include <bsd.port.post.mk>
|