Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2000 01:42:49 +0200
From:      Ernst de Haan <ernst@jollem.com>
To:        freebsd-java@freebsd.org
Subject:   checkports.sh
Message-ID:  <20000617014249.A76184@c187104187.telekabel.chello.nl>

next in thread | raw e-mail | index | archive | help

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,


Here's a very small script that checks the existence of the ports needed
by the FreeBSD JDK port (alpha patchset 9) as per Kees Jan Koster's page
on:

* http://web.inter.nl.net/users/kjkoster/java/

This should make things about 1% easier :) Perhaps we can write a whole
bunch of scripts or even a ports-like Makefile that will do this the
right way.


Ernst

--AhhlLboLdkugWU4S
Content-Type: application/x-sh
Content-Disposition: attachment; filename="checkports.sh"

#!/bin/sh

#-----------------------------------------------------------------------------
# Script that checks that all ports needed by the FreeBSD JDK port are
# installed
#
# Author: Ernst de Haan (ernst@jollem.com)
#

checkPort ( )
{
   echo -n ">> ${friendly_name}..."
   # found=`pkg_info | grep ${pkg_name}`
   # if [ -z "${found}" ]
   if ! `pkg_info -e ${pkg_name}`
   then
      echo " [ FAILED ]"
      echo "This port can be found in /usr/ports/${port_loc}"
   else
      echo " [ DONE ]"
   fi
}

echo "--- Checking availability of required ports ---"
friendly_name="LessTif (0.90.0)"
pkg_name="lesstif-0.90.0"
port_loc="x11-toolkits/lesstif"
checkPort

friendly_name="GNU make (3.79)"
pkg_name="gmake-3.79"
port_loc="devel/gmake/"
checkPort

friendly_name="GNU m4 (1.4)"
pkg_name="m4-1.4"
port_loc="devel/m4"
checkPort

friendly_name="Display GhostScript (0.5.9)"
pkg_name="dgs-0.5.9"
port_loc="x11/dgs"
checkPort

friendly_name="ODBC for UNIX (1.8.8)"
pkg_name="unixODBC-1.8.8"
port_loc="databases/unixODBC"
checkPort

friendly_name="Java Development Kit (1.1.8)"
pkg_name="jdk-1.1.8"
port_loc="java/jdk"
checkPort

friendly_name="Swing (1.1.1)"
pkg_name="swing-1.1.1"
port_loc="java/jfc"
checkPort

friendly_name="Blackdown Linux JDK (1.2.2)"
pkg_name="linux-jdk-1.2.2"
port_loc="java/linux-jdk"
checkPort

friendly_name="ZIP (2.3)"
pkg_name="zip-2.3"
port_loc="archivers/zip"
checkPort

--AhhlLboLdkugWU4S--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000617014249.A76184>