From 33b31b6d5ec267822bbb7a0176b3521df8128819 Mon Sep 17 00:00:00 2001 From: Nick Sayer Date: Fri, 4 May 2001 23:17:47 +0000 Subject: Make the default installation work. Add an alternative to the shell script for those who've installed a Java 2 VM. Life will be exponentially better when we can count on 'javavm -jar foo.jar' just doing The Right Thing(tm). Submitted by: dozens of angry scientists --- net-mgmt/airport/Makefile | 4 +++- net-mgmt/airport/files/airport | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'net-mgmt') diff --git a/net-mgmt/airport/Makefile b/net-mgmt/airport/Makefile index 637e77fc6eb0..c6f4f0040da1 100644 --- a/net-mgmt/airport/Makefile +++ b/net-mgmt/airport/Makefile @@ -32,8 +32,10 @@ do-install: @cd ${WRKSRC}; \ ${MKDIR} ${PREFIX}/share/airport; \ ${CP} -r ${WRKSRC}/* ${PREFIX}/share/airport; \ - ${SED} -e s,%%PREFIX%%,${PREFIX},g \ + ${SED} \ + -e s,%%PREFIX%%,${PREFIX},g \ -e s/%%JFC_VERSION%%/${JFC_VERSION}/ \ + -e s/%%JDK_VERSION%%/${JDK_VERSION}/ \ < ${FILESDIR}/airport > ${PREFIX}/bin/airport; \ ${CHMOD} a+x ${PREFIX}/bin/airport diff --git a/net-mgmt/airport/files/airport b/net-mgmt/airport/files/airport index 4e1254dd28bf..5c8303d602b7 100644 --- a/net-mgmt/airport/files/airport +++ b/net-mgmt/airport/files/airport @@ -1,5 +1,9 @@ #! /bin/sh -exec %%PREFIX%%/bin/javavm -cp "%%PREFIX%%/share/java/classes/jfc-%%JFC_VERSION%%/swingall.jar:%%PREFIX%%/share/airport/AirportBaseStationConfig.jar" AirportBaseStationConfigurator +# Use this one for JDK 1.2 and beyond: +# exec %%PREFIX%%/bin/javavm -jar %%PREFIX%%/share/airport/AirportBaseStationConfig.jar + +# Use this one for the default installation -- JDK 1.1.x + JFC: +exec %%PREFIX%%/bin/javavm -classpath "%%PREFIX%%/jdk%%JDK_VERSION%%/lib/classes.zip:%%PREFIX%%/share/java/classes/jfc-%%JFC_VERSION%%/swingall.jar:%%PREFIX%%/share/airport/AirportBaseStationConfig.jar" AirportBaseStationConfigurator exit 1 -- cgit v1.2.3