Packages for Solaris

We’ll need to compile our software adding prefix-path:

# ./configure --prefix=/opt/SMCxxxxx
# make && make install
# cd /opt/SMCxxxxx
# find . -print | pkgproto > ../prototype
# vi ../prototype

Add this on the first line of the file prototype

i pkginfo=./pkginfo

Than create the file pkginfo and edit:

PKG="SMCxxxx"
NAME="xxxx"
ARCH="sparc"
VERSION="1.00"
CATEGORY="application"
VENDOR="ACME, Inc."
EMAIL="acme@acme.com"
PSTAMP="Beep Beep"
BASEDIR="/usr/local"
CLASSES="none"

Then

# cd /opt/SMCxxxxxx
# pkgmk -r `pwd` -f ../prototype
# cd /var/spool/pkg
# pkgtrans -s `pwd` /tmp/SMCxxxxx

Comments are closed.