build with systrace

This commit is contained in:
sturm 2005-02-20 11:18:55 +00:00
parent cdefa902f7
commit 6313a1dba0
2 changed files with 165 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2004/12/17 18:22:48 kurt Exp $
# $OpenBSD: Makefile,v 1.10 2005/02/20 11:18:55 sturm Exp $
# $FreeBSD: ports/java/jdk12/Makefile,v 1.11 2002/08/19 20:47:04 glewis Exp $
# Requires existing JDK 1.3 to build
@ -58,7 +58,6 @@ MAKE_ENV+= ALT_BOOTDIR="${LOCALBASE}/${JDKHOME}"
.else
BUILD_DEPENDS+= :jdk-linux->=1.3.1_10:devel/jdk/1.3-linux
MAKE_ENV+= ALT_BOOTDIR="${LOCALBASE}/jdk1.3.1-linux"
NO_SYSTRACE= Yes
.endif
WANTLIB= ICE SM X11 Xext Xp Xt Xtst c dps m ossaudio pthread
@ -101,6 +100,7 @@ JDKHOME= jdk-${V}
JREHOME= jre-${V}
SUBST_VARS= JDKHOME JREHOME
SYSTRACE_SUBST_VARS= LOCALBASE
# Deal with Sun's internal build structure
WRKDIST= ${WRKDIR}

View File

@ -0,0 +1,163 @@
# $OpenBSD: systrace.policy,v 1.1 2005/02/20 11:18:55 sturm Exp $
Policy: ${LOCALBASE}/jdk1.3.1-linux/bin/i386/green_threads/jar, Emulation: linux
linux-brk: permit
linux-close: permit
linux-exit: permit
linux-fcntl64: permit
linux-fsread: true then permit
linux-fstat64: permit
linux-fswrite: filename match "${WRKDIR}" then permit
linux-fswrite: filename match "/tmp" then permit
linux-getcwd: permit
linux-getdents64: permit
linux-getegid: permit
linux-geteuid: permit
linux-getgid: permit
linux-getpid: permit
linux-getrlimit: permit
linux-gettimeofday: permit
linux-getuid: permit
linux-ioctl: permit
linux-llseek: permit
linux-lstat64: permit
linux-mmap: permit
linux-mprotect: permit
linux-mremap: permit
linux-munmap: permit
linux-read: permit
linux-rt_sigaction: permit
linux-rt_sigprocmask: permit
linux-setrlimit: permit
linux-socketcall: permit
linux-stat64: permit
linux-time: permit
linux-uname: permit
linux-write: permit
linux-writev: permit
Policy: ${LOCALBASE}/jdk1.3.1-linux/bin/i386/green_threads/java, Emulation: linux
linux-brk: permit
linux-close: permit
linux-exit: permit
linux-fcntl64: permit
linux-fsread: true then permit
linux-fstat64: permit
linux-fswrite: filename match "${WRKDIR}" then permit
linux-fswrite: filename match "/tmp" then permit
linux-getcwd: permit
linux-getdents64: permit
linux-getegid: permit
linux-geteuid: permit
linux-getgid: permit
linux-getpid: permit
linux-getrlimit: permit
linux-gettimeofday: permit
linux-getuid: permit
linux-ioctl: permit
linux-llseek: permit
linux-lstat64: permit
linux-mmap: permit
linux-mprotect: permit
linux-munmap: permit
linux-read: permit
linux-rt_sigaction: permit
linux-rt_sigprocmask: permit
linux-setrlimit: permit
linux-socketcall: permit
linux-stat64: permit
linux-time: permit
linux-uname: permit
linux-write: permit
linux-writev: permit
Policy: ${LOCALBASE}/jdk1.3.1-linux/bin/i386/green_threads/javac, Emulation: linux
linux-brk: permit
linux-close: permit
linux-exit: permit
linux-fcntl64: permit
linux-fsread: true then permit
linux-fstat64: permit
linux-fswrite: filename match "${WRKDIR}" then permit
linux-fswrite: filename match "/tmp" then permit
linux-getcwd: permit
linux-getdents64: permit
linux-getegid: permit
linux-geteuid: permit
linux-getgid: permit
linux-getpid: permit
linux-getrlimit: permit
linux-gettimeofday: permit
linux-getuid: permit
linux-ioctl: permit
linux-llseek: permit
linux-lstat64: permit
linux-mmap: permit
linux-mprotect: permit
linux-munmap: permit
linux-read: permit
linux-rt_sigaction: permit
linux-rt_sigprocmask: permit
linux-setrlimit: permit
linux-socketcall: permit
linux-stat64: permit
linux-time: permit
linux-uname: permit
linux-write: permit
linux-writev: permit
Policy: ${LOCALBASE}/jdk1.3.1-linux/bin/i386/green_threads/javah, Emulation: linux
linux-brk: permit
linux-close: permit
linux-exit: permit
linux-fcntl64: permit
linux-fsread: true then permit
linux-fstat64: permit
linux-fswrite: filename match "${WRKDIR}" then permit
linux-fswrite: filename match "/tmp" then permit
linux-getcwd: permit
linux-getdents64: permit
linux-getegid: permit
linux-geteuid: permit
linux-getgid: permit
linux-getpid: permit
linux-getrlimit: permit
linux-gettimeofday: permit
linux-getuid: permit
linux-ioctl: permit
linux-llseek: permit
linux-lstat64: permit
linux-mmap: permit
linux-mprotect: permit
linux-munmap: permit
linux-read: permit
linux-rt_sigaction: permit
linux-rt_sigprocmask: permit
linux-setrlimit: permit
linux-socketcall: permit
linux-stat64: permit
linux-time: permit
linux-uname: permit
linux-write: permit
linux-writev: permit
Policy: ${LOCALBASE}/jdk1.3.1-linux/jre/bin/i386/realpath, Emulation: linux
linux-brk: permit
linux-close: permit
linux-exit: permit
linux-fsread: true then permit
linux-fstat64: permit
linux-fswrite: filename match "${WRKDIR}" then permit
linux-fswrite: filename match "/tmp" then permit
linux-getegid: permit
linux-geteuid: permit
linux-getgid: permit
linux-getuid: permit
linux-lstat64: permit
linux-mmap: permit
linux-mremap: permit
linux-munmap: permit
linux-read: permit
linux-uname: permit
linux-write: permit
linux-writev: permit