diff --git a/solaris/README-solaris_pkg.txt b/solaris/README-solaris_pkg.txt new file mode 100644 index 000000000..bde6f0d55 --- /dev/null +++ b/solaris/README-solaris_pkg.txt @@ -0,0 +1,47 @@ +# $Id: README-solaris_pkg.txt,v 1.1 2000/06/16 18:58:45 steve Exp $ + +Notes about the solaris package. + +I. Installing a prebuild solaris package +----------------------------------------- + +To install the solaris package do the following as root on your machine: + +1) uncompress the package using: + + cp package_name.gz /tmp + cd /tmp + gunzip package_name.gz + + where "package_name.gz" is the compressed binary package. It will + be named something like "verilog-0.3-SunOS-5.6-sparc.gz" + +2) install the package using: + + cd /tmp + pkgadd -d package_name + + this will install the package. The package will be registered under the + name "IVLver" + +II. Deinstalling the solaris package +------------------------------------- + +To deinstall an installed solaris package do the following as root on your machine: + + pkgrm IVLver + +III. Notes on building a solaris package from sources +------------------------------------------------------ + +1) build and install verilog. Be sure and pick where the package should + install with the "--prefix=" argument to 'configure' + +2) edit the 'pkginfo' file to update the version number and also set BASEDIR + to the same as the argument to "--prefix=" + +3) edit the 'prototype' file to add/removed files/directories from the list + of installed components. + +4) run the 'mksolpkg' script to create the solaris package + diff --git a/solaris/mksolpkg b/solaris/mksolpkg new file mode 100755 index 000000000..17c904640 --- /dev/null +++ b/solaris/mksolpkg @@ -0,0 +1,47 @@ +#!/bin/sh +# +# mksolpkg +# a script to generate a native solaris package +# + + +if [ `whoami` != "root" ]; then + echo "you must be root to run this script" + exit 1 +fi + +# an ugly hack to get various bits of info +ver=`grep VERSION pkginfo | sed 's/"/ /g' | awk '{print $2}'` +basedir=`grep BASEDIR pkginfo | sed 's/"/ /g' | awk '{print $2}'` +name=`grep NAME pkginfo | sed 's/"/ /g' | awk '{print $2}'` +pkg=`grep PKG pkginfo | sed 's/"/ /g' | awk '{print $2}'` +arch=`grep ARCH pkginfo | sed 's/"/ /g' | awk '{print $2}'` +march=`uname -p` + + +if [ "$arch" != "$march" ]; then + echo "Warning: you have listed \"$arch\" in the pkginfo file but this machine" + echo " has a \"$march\" processor" + exit 1 +fi + +oslabel=`uname -s`-`uname -r`-$march +fname=$name-$ver-$oslabel + +cp -f prototype $basedir +cp -f pkginfo $basedir +cd $basedir + +pkgmk -o -r `pwd` + +cd /var/spool/pkg +pkgtrans -s `pwd` /tmp/$fname all +cd /tmp +gzip -f $fname + +echo "Your $oslabel package is left in /tmp/$fname.gz" + +# cleanup +rm -f $basedir/prototype $basedir/pkginfo +rm -fr /var/spool/pkg/$pkg + diff --git a/solaris/pkginfo b/solaris/pkginfo new file mode 100644 index 000000000..0742062ba --- /dev/null +++ b/solaris/pkginfo @@ -0,0 +1,10 @@ +PKG="IVLver" +NAME="verilog" +ARCH="sparc" +VERSION="0.3" +CATEGORY="application" +VENDOR="Icarus.com" +EMAIL="steve@icarus.com" +PSTAMP="Stephen Williams" +BASEDIR="/usr/local" +CLASSES="none" diff --git a/solaris/prototype b/solaris/prototype new file mode 100644 index 000000000..2e8f45e28 --- /dev/null +++ b/solaris/prototype @@ -0,0 +1,22 @@ +i pkginfo=./pkginfo +d none bin 0755 bin bin +f none bin/iverilog 0755 bin bin +d none include 0755 bin bin +f none include/vpi_priv.h 0644 bin bin +f none include/vpi_user.h 0644 bin bin +f none include/vvm.h 0644 bin bin +f none include/vvm_calltf.h 0644 bin bin +f none include/vvm_func.h 0644 bin bin +f none include/vvm_gates.h 0644 bin bin +f none include/vvm_nexus.h 0644 bin bin +f none include/vvm_signal.h 0644 bin bin +f none include/vvm_thread.h 0644 bin bin +d none lib 0755 bin bin +d none lib/ivl 0755 bin bin +f none lib/ivl/ivl 0755 bin bin +f none lib/ivl/ivlpp 0755 bin bin +f none lib/ivl/system.vpi 0644 bin bin +f none lib/libvvm.a 0644 bin bin +d none man 0755 bin bin +d none man/man1 0755 bin bin +f none man/man1/iverilog.1 0644 bin bin