PNFS
****

PNFS is a Namespace service for the dCache project.

Subprojects within this code include

pnfs-dump
pnfs-gdbm
pnfs-postgresq

Build dependencies
******************

This package has the following development header files and libraries dependencies.

PostgreSQL
OpenSSL

Also this code makes use of lex, and is tested with the GNU implementation "flex".

The following rpm packages should be installed on SL5 to build.

openssl-devel
postgresql-devel
flex

Compilation
***********

To compile just type

make

To run pnfs from the local directory you must type 

make install

To provide a conventional "make install" type 

make deposit 

This will install to the directory /opt/pnfs.3.1.10/pnfs to set the installation
prefix type the following

make deposit prefix=${YOUR_INSTALL_DIR}

where YOUR_INSTALL_DIR is the directory you want to install pnfs under.

To make a source tar ball for redistribution

make dist

To make an rpm type 

make rpm

Pre Release process pnfs-dump
*****************************

Before tagging a new release of pnfs-dump 2 files 
should be modified with the next release version.

dump/dump_version.h
packaging/pnfs-dump.spec

Building RPM Packages
*********************

RPM macros used in this section as default for Root.

%{sourcedir} = /usr/src/redhat/SOURCES



To build pnfs-dump do the following as root.

make dist
# Please note the change in file name
cp build/pnfs-postgresql.src.tgz  %{sourcedir}/pnfs-postgresql.tgz
# This builds the rpm and the macros.
rpmbuild -ba packaging/pnfs-dump.spec

The final result will produce both SRPM and RPM of pnfs dump.
