View | Details | Raw Unified | Return to bug 187538
Collapse All | Expand All

(-)Makefile (-6 / +5 lines)
Lines 34-40 Link Here
34
PACKED_JARS=	lib/charsets lib/deploy lib/ext/localedata lib/javaws lib/jsse lib/plugin lib/rt
34
PACKED_JARS=	lib/charsets lib/deploy lib/ext/localedata lib/javaws lib/jsse lib/plugin lib/rt
35
UNPACK_CMD=	${WRKSRC}/bin/unpack200
35
UNPACK_CMD=	${WRKSRC}/bin/unpack200
36
36
37
NO_STAGE=	yes
38
.include <bsd.port.pre.mk>
37
.include <bsd.port.pre.mk>
39
38
40
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
39
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
Lines 56-73 Link Here
56
55
57
post-patch:
56
post-patch:
58
	${REINPLACE_CMD} -i.orig -e 's:^#!/bin/bash:#!/bin/sh:' ${WRKSRC}/bin/jcontrol
57
	${REINPLACE_CMD} -i.orig -e 's:^#!/bin/bash:#!/bin/sh:' ${WRKSRC}/bin/jcontrol
59
	@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
58
	@${FIND} ${WRKSRC} -name '*.orig' -delete
60
59
61
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
60
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
62
61
63
do-install:
62
do-install:
64
	${MKDIR} ${APP_HOME}
63
	${MKDIR} ${STAGEDIR}${APP_HOME}
65
	cd ${WRKSRC} && ${FIND} . -print \
64
	cd ${WRKSRC} && ${FIND} . -print \
66
	  | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME}
65
	  | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${STAGEDIR}${APP_HOME}
67
66
68
post-install:
67
post-install:
69
	${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Sun-JRE${PORTVERSION}"
68
	${SED} -e "s:%%JRE_HOME%%:${APP_HOME}:g; \
70
	${SED} -e "s:%%JRE_HOME%%:${APP_HOME}:g" \
69
		s:%%STAGEDIR%%:${STAGEDIR}:" \
71
	  < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
70
	  < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
72
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
71
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
73
72
(-)files/pkg-install.in (-8 / +8 lines)
Lines 5-19 Link Here
5
5
6
# Set up system preferences during post install
6
# Set up system preferences during post install
7
if [ "$2" = "POST-INSTALL" ]; then
7
if [ "$2" = "POST-INSTALL" ]; then
8
	if [ ! -d "${PREFS_LOCATION}/.systemPrefs" ] ; then
8
	if [ ! -d "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs" ] ; then
9
		mkdir -m 755 "${PREFS_LOCATION}/.systemPrefs"
9
		mkdir -m 755 "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs"
10
	fi
10
	fi
11
	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
11
	if [ ! -f "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
12
		touch "${PREFS_LOCATION}/.systemPrefs/.system.lock"
12
		touch "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.system.lock"
13
		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.system.lock"
13
		chmod 644 "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.system.lock"
14
	fi
14
	fi
15
	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
15
	if [ ! -f "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
16
		touch "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
16
		touch "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
17
		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
17
		chmod 644 "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
18
	fi
18
	fi
19
fi
19
fi

Return to bug 187538