Solaris pkg files.
This commit is contained in:
parent
8f64656984
commit
9bc3a8f241
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue