diff --git a/top/build.sh b/top/build.sh index 5b7dd6a..1dc7d3d 100755 --- a/top/build.sh +++ b/top/build.sh @@ -18,6 +18,9 @@ source[0]=$topdir-$version.tar.bz2 # Source function library . ${BUILDPKG_BASE}/scripts/buildpkg.functions +# Global settings +[ -n "$(isainfo | grep sparcv9)" ] && v9bin=1 + reg prep prep() { diff --git a/top/meta/pkgdef b/top/meta/pkgdef index b9e3adc..5c7c393 100644 --- a/top/meta/pkgdef +++ b/top/meta/pkgdef @@ -7,6 +7,8 @@ pkgdesc="Utility that provides a rolling display of top cpu using processes" pkgver="$pkgver" files(-,root,bin) default_docs +if(v9bin)$_bindir/sparcv7/top +if(v9bin)$_bindir/sparcv9/top $_bindir/top $_mandir/man1/top.1 diff --git a/top/meta/relnotes b/top/meta/relnotes index bd83629..cbb6904 100644 --- a/top/meta/relnotes +++ b/top/meta/relnotes @@ -25,3 +25,6 @@ KNOWN DEPENDENCIES ERRORS/MISCELLANEOUS -------------------- +For Solaris versions with 64bit kernels available this package contains +binaries for both 32 and 64 bit kernels. +top will automatically select the appropriate binary at runtime.