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

(-)Makefile (-5 / +5 lines)
Lines 27-32 Link Here
27
PKGINSTALL=	${WRKDIR}/pkg-install
27
PKGINSTALL=	${WRKDIR}/pkg-install
28
28
29
NO_BUILD=	yes
29
NO_BUILD=	yes
30
USES=	shebangfix
30
USE_LINUX=	yes
31
USE_LINUX=	yes
31
USE_LINUX_APPS=	xorglibs
32
USE_LINUX_APPS=	xorglibs
32
JDK_VERSION=	1.6.0
33
JDK_VERSION=	1.6.0
Lines 38-44 Link Here
38
PACKED_JARS=	jre/lib/charsets jre/lib/deploy jre/lib/ext/localedata jre/lib/javaws jre/lib/jsse jre/lib/plugin jre/lib/rt lib/tools
39
PACKED_JARS=	jre/lib/charsets jre/lib/deploy jre/lib/ext/localedata jre/lib/javaws jre/lib/jsse jre/lib/plugin jre/lib/rt lib/tools
39
UNPACK_CMD=	${WRKSRC}/bin/unpack200
40
UNPACK_CMD=	${WRKSRC}/bin/unpack200
40
41
41
NO_STAGE=	yes
42
.include <bsd.port.pre.mk>
42
.include <bsd.port.pre.mk>
43
43
44
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
44
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
Lines 95-107 Link Here
95
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
95
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
96
96
97
do-install:
97
do-install:
98
	${MKDIR} ${APP_HOME}
98
	${MKDIR} ${STAGEDIR}${APP_HOME}
99
	cd ${WRKSRC} && ${FIND} . -print \
99
	cd ${WRKSRC} && ${FIND} . -print \
100
	  | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME}
100
	  | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${STAGEDIR}${APP_HOME}
101
101
102
post-install:
102
post-install:
103
	${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Sun-JDK${PORTVERSION}"
103
	${SED} -e "s:%%JRE_HOME%%:${APP_HOME}/jre:g; \
104
	${SED} -e "s:%%JRE_HOME%%:${APP_HOME}/jre:g" \
104
		s:%%STAGEDIR%%:${STAGEDIR}:g" \
105
	  < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
105
	  < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
106
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
106
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
107
107
(-)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 187536