head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	98.08.04.00.12.46;	author bob;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Working on a Solaris RPM for usparc chip. Following rpm's directory
structure moved the current files into i386 and created a usparc
directory for Solaris.
@
text
@RPM has been ported to Solaris 2.4 and Solaris 2.5.1. You can access
the Solaris RPM the following urls:

	http://www.solaris.rpm.org
	ftp://ftp.real-time.com/pub/real-time.com/RPMS/usparc

The ftp site is usually more up to date then the website. :-(

Here is the README on how to jump start RPM on your Solaris box.


Thanks to Rob Payne <repayne@@jeeves.net> the jump-start version of rpm
is now in native Solaris package format. So, getting rpm installed for
the first time is a snap.

To potential caveats from the Rob.

  "...the only caveats you might want to mention is that this
   rpm was built with --prefix=/usr/local, so that is where the 
   install goes, and this was built on 2.5.1 so will not work with 
   older versions of Solaris without library link-munging...."

First download.

ftp://ftp.real-time/pub/real-time/rpm-2.4.3.pkg

If you want to see what is included in the package (for a file list or
something) you might do a 'pkginfo -d ./rpm-2.4.3.pkg'.

In the directory you saved rpm-2.4.3.pkg, execute the following
command.

pkgadd -d ./rpm-2.4.3.pkg

My first recommendation is to download the rpm version of rpm and
install that.

Many Solaris packages are available at:

ftp://ftp.real-time.com/pub/real-time/RPMS/sparc

For more information on building SYSV packages read the following.

http://kira.acomp.usf.edu/solaris/packages.html
 
Another one is at:  http://kira.acomp.usf.edu/solaris/packages.html
 
If you have any specific questions not answered by these, let me know.
 
The steps that I took, in general, are:
 
'create pkginfo file' > pkginfo
'create list of files in pkg' > pkglist
pkgmk -f pkglist -r / -o 
pkgtrans -s /var/spool/pkg/ /tmp/pkg-name.pkg pkg-name
 
Here is what the relevant files looked like for rpm:
pkglist:
i pkginfo=pkginfo
i postinstall=postinstall.sh
d none /usr ? ? ?
d none /usr/local ? ? ?
d none /usr/local/bin ? ? ?
d none /usr/local/include ? ? ?
d none /usr/local/lib ? ? ? 
d none /usr/local/man ? ? ? 
d none /usr/local/man/man8 ? ? ? 
f none /usr/local/bin/rpm 0755 bin bin
f none /usr/local/bin/rpm2cpio 0755 bin bin
f none /usr/local/bin/find-provides 0755 bin bin
f none /usr/local/bin/find-requires 0755 bin bin
d none /usr/local/include/rpm 0755 bin bin
f none /usr/local/include/rpm/dbindex.h 0644 bin bin
f none /usr/local/include/rpm/header.h 0644 bin bin
f none /usr/local/include/rpm/rpmlib.h 0644 bin bin
f none /usr/local/lib/librpm.a 0644 bin bin
f none /usr/local/lib/rpmpopt 0644 bin bin
f none /usr/local/lib/rpmrc 0644 bin bin
f none /usr/local/man/man8/rpm.8 0644 bin bin
f none /usr/local/man/man8/rpm2cpio.8 0644 bin bin
d none /var/local 0755 bin bin
d none /var/local/lib 0755 bin bin
d none /var/local/lib/rpm 0755 bin bin
 
pkginfo:
PKG="rpm"
NAME="Red Hat Package Manager"
ARCH="sparc"
VERSION="2.4.3"
CATEGORY="administration"
DESC="rpm 2.4.3, package installation/monitoring tool for maintaining
files
as part of packages" CLASSES="none"
 
postinstall.sh:
#!/bin/sh
# RPM post-installation script
# Rob Payne  07/10/97
 
# Initialize Database
if [ -f '/var/local/lib/rpm/packages.rpm' ]; then
        echo "RPM Database already exists, doing nothing"
else    
        echo "Initializing RPM Database, as it doesn't already exist"
        /usr/local/bin/rpm --initdb
fi      

If you have any questions or comments please feel free to email me at
tanner@@real-time.com

@
