summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-27 15:12:43 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-02-27 04:51:09 -0500
commit15cdf7708b321fe883ada00b9624503c2aa00572 (patch)
treec81836825b483e49578981c2af8194265b333c90
parentbb50c512e51901410762b99d857d53435a73c9c4 (diff)
INSTALL: add install guide
Change-Id: Icfb21f3134b9dc3817638ca48c1b0b92438cef1d Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
-rw-r--r--INSTALL69
-rw-r--r--Makefile.am3
-rw-r--r--gluster-block.spec.in5
3 files changed, 75 insertions, 2 deletions
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..4601afe
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,69 @@
+Installation Instructions:
+-------------------------
+
+
+Install from Source:
+-------------------
+
+1. gluster-block uses targetcli (>= 2.1.fb43-2) and tcmu-runner. So, make sure you have them installed.
+
+2. $ git clone https://github.com/gluster/gluster-block.git
+
+3. Run ./autogen.sh.
+
+4. Run ./configure.
+
+ $ ./configure
+ [...]
+ ------------------ Summary ------------------
+ gluster-block version 0.1
+ Prefix.........: /usr/local
+ C Compiler.....: gcc -g -O2
+ Linker.........: /usr/bin/ld -m elf_x86_64
+ ---------------------------------------------
+
+ In case if you notice failures, install the dependencies suggested by configure
+
+5. Now just run 'make' and later run 'make install' to install the package.
+
+ $ make
+ $ make install
+
+Installation completed :-)
+
+Check,
+ $ gluster-block version (or)
+ $ gluster-block --version
+
+ $ gluster-block help (or)
+ $ gluster-block --help
+
+Make sure your version is the latest from the release, and the one you just installed.
+
+
+Download from repo:
+-------------------
+
+Fedora:
+------
+Get the gluster-block repo URL from https://copr.fedorainfracloud.org/coprs/pkalever/gluster-block/
+
+URL look similar to:
+https://copr.fedorainfracloud.org/coprs/pkalever/gluster-block/repo/fedora-25/pkalever-gluster-block-fedora-25.repo
+
+ $ dnf config-manager --add-repo $URL
+
+ $ dnf install gluster-block
+
+Installation completed :-)
+
+Check,
+ $ gluster-block version (or)
+ $ gluster-block --version
+
+ $ gluster-block help (or)
+ $ gluster-block --help
+
+As of now gluster-block is supported on fedora >= 25.
+
+Cheers!
diff --git a/Makefile.am b/Makefile.am
index ac07516..5f17603 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,8 @@ DISTCLEANFILES = Makefile.in gluster-block.spec autom4te.cache
CLEANFILES = *~ gluster-block.spec
-EXTRA_DIST = autogen.sh README.md COPYING-GPLV2 COPYING-LGPLV3
+EXTRA_DIST = autogen.sh README.md COPYING-GPLV2 COPYING-LGPLV3 \
+ gluster-block.spec INSTALL
if USE_SYSTEMD
RPM_WITH_FLAGS = --with systemd
diff --git a/gluster-block.spec.in b/gluster-block.spec.in
index 0be206d..8092f68 100644
--- a/gluster-block.spec.in
+++ b/gluster-block.spec.in
@@ -35,7 +35,7 @@ rm -rf ${RPM_BUILD_ROOT}
%files
%license COPYING-GPLV2 COPYING-LGPLV3
-%doc README.md
+%doc README.md INSTALL
%{_sbindir}/gluster-block
%{_sbindir}/gluster-blockd
%{_mandir}/man8/gluster-block*.8*
@@ -45,6 +45,9 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog
* Mon Feb 27 2017 Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
+- add INSTALL
+
+* Mon Feb 27 2017 Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
- add Man page entry
* Thu Feb 23 2017 Niels de Vos <ndevos@redhat.com>