summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--pgfuse.15
-rw-r--r--redhat/pgfuse.spec2
3 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 431344e..3fd0c64 100644
--- a/Makefile
+++ b/Makefile
@@ -123,6 +123,10 @@ install: all
cp pgfuse "$(bindir)"
test -d "$(datadir)/man/man1" || mkdir -p "$(datadir)/man/man1"
cp pgfuse.1 "$(datadir)/man/man1"
+ gzip "$(datadir)/man/man1/pgfuse.1"
+ test -d "$(datadir)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)" || \
+ mkdir -p "$(datadir)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)"
+ cp schema.sql "$(datadir)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)"
dist:
rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
diff --git a/pgfuse.1 b/pgfuse.1
index f1b8ccc..12c715d 100644
--- a/pgfuse.1
+++ b/pgfuse.1
@@ -67,6 +67,11 @@ of \fBmount\fR and the README file of the \fBfuse\fR source package.
.SH DESCRIPTION
PgFuse is a FUSE filesystem which stores inodes and data into a
PostgreSQL database.
+.SH INSTALLATION
+Before using PgFuse you must create a database user and a database
+where to store the files to. Populate the initial schema with:
+.TP
+\fBpsql < /usr/share/pgfuse-xxxx/schema.sql\fR
.SH BUGS
.TP
- no hard-links
diff --git a/redhat/pgfuse.spec b/redhat/pgfuse.spec
index 802da35..31c8af1 100644
--- a/redhat/pgfuse.spec
+++ b/redhat/pgfuse.spec
@@ -126,6 +126,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr( -, root, root )
%{_bindir}/pgfuse
+%{_datadir}/man/man/pgfuse.1.gz
+%{_datadir}/%{name}-%{version}/schema.sql
%changelog
* Fri Apr 20 2012 Andreas Baumann <abaumann@yahoo.com> 0.0.1-0.1