#!/bin/bash # javavmwrapper # # Douglas Thrift # # $Id$ name=javavmwrapper version=2.3 revision=0 categories=(java) description='Wrapper script for various Java Virtual Machines' url='http://www.freebsd.org/cgi/cvsweb.cgi/ports/java/javavmwrapper/' depends=('base/coreutils' 'base/findutils' 'base/sed') sources=(javavmwrapper.tar.bz2 javavmwrapper.patch) sourcedir=$name function build() { gnu_patch javavmwrapper.patch || return $? install -dv $package/{etc,usr/{bin,share/{java/classes,man/man{1,5}}}} || return $? install -v -m 0755 src/classpath.sh $package/usr/bin/classpath || return $? install -v -m 0755 src/javavmwrapper.sh $package/usr/bin/javavm || return $? for link in $package/usr/bin/{checkvms,{man,{,un}register}vm}; do ln -v $package/usr/bin/javavm $link || return $? done for section in 1 5; do for man in src/*.$section; do install -v -m 0644 $man $package/usr/share/man/man$section/${man#src/} || return $? done done ln -sv registervm.1 $package/usr/share/man/man1/unregistervm.1 || return $? install -v -m 0644 files/javavm_opts.conf.dist $package/etc/javavm_opts.conf }