mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Now extracts non-interactive. Bumped PORTREVISION.
Reviewed by: glewis, kris Approved by: kris
This commit is contained in:
parent
cbb56ccae8
commit
06f3700a2c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71358
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= jdk
|
||||
PORTVERSION= ${JDK_VERSION}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= java
|
||||
MASTER_SITES= ftp://ftp.nluug.nl/pub/os/Linux/java/jdk/${DOWNLOAD_DIR}/ \
|
||||
ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/${DOWNLOAD_DIR}/ \
|
||||
@ -20,10 +21,6 @@ MAINTAINER= znerd@FreeBSD.org
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
|
||||
RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
|
||||
|
||||
EXTRACT_CMD= # empty
|
||||
EXTRACT_BEFORE_ARGS= # empty
|
||||
EXTRACT_AFTER_ARGS= # empty
|
||||
|
||||
WRKSRC= ${WRKDIR}/j2sdk${PORTVERSION}
|
||||
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}
|
||||
|
||||
@ -41,8 +38,9 @@ APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}${JDK_VERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-fetch:
|
||||
@${CHMOD} +x ${DISTDIR}/${DISTFILES}
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@cd ${WRKDIR} && ${TAIL} +400 ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | ${BZIP2_CMD} -dc | ${TAR} xf -
|
||||
|
||||
post-patch:
|
||||
@${ECHO} -n ">> Removing unneeded files..."
|
||||
@ -62,4 +60,8 @@ do-install:
|
||||
@${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Blackdown-JDK${PORTVERSION}_${PORTREVISION}"
|
||||
@${ECHO} " [ DONE ]"
|
||||
|
||||
post-install:
|
||||
@${ECHO} "Please read the license carefully before using this software."
|
||||
@${ECHO} "See: ${APP_HOME}/LICENSE"
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= jdk
|
||||
PORTVERSION= ${JDK_VERSION}.${JDK_REVISION}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= #
|
||||
PKGNAMEPREFIX= linux-sun-
|
||||
@ -21,10 +22,6 @@ RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
|
||||
NO_CDROM= "License does not allow distribution with fee"
|
||||
RESTRICTED= "Redistribution of repackaged binaries not permitted"
|
||||
|
||||
EXTRACT_CMD= # empty
|
||||
EXTRACT_BEFORE_ARGS= # empty
|
||||
EXTRACT_AFTER_ARGS= # empty
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}${JDK_VERSION}_${JDK_REVISION}
|
||||
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
|
||||
|
||||
@ -57,8 +54,12 @@ pre-extract:
|
||||
};\
|
||||
fi
|
||||
|
||||
post-fetch:
|
||||
@${CHMOD} +x ${DISTDIR}/${DISTFILES}
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@cd ${WRKDIR} \
|
||||
&& ${TAIL} +291 ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} > ${WRKDIR}/install.sfx \
|
||||
&& ${CHMOD} +x ${WRKDIR}/install.sfx \
|
||||
&& ${WRKDIR}/install.sfx > /dev/null
|
||||
|
||||
post-patch:
|
||||
@find ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f
|
||||
|
Loading…
Reference in New Issue
Block a user