forked from openebs-archive/istgt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2316ebc
Showing
68 changed files
with
57,904 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
1) run configure script | ||
|
||
# ./configure | ||
|
||
2) build & install binary and sample configuration files | ||
|
||
# make | ||
# make install | ||
# make install-doc | ||
|
||
3) create your configuration files and edit it | ||
for more detail, see /usr/local/share/doc/istgt/QUICKSTART | ||
|
||
# cd /usr/local/etc/istgt | ||
# cp auth.conf.sample auth.conf | ||
# cp istgt.conf.sample istgt.conf | ||
# cp istgtcontrol.conf.sample istgtcontrol.conf | ||
# EDIT files | ||
|
||
4) start daemon | ||
|
||
# /usr/local/etc/rc.d/istgt forcestart | ||
|
||
5) edit /etc/rc.conf to run it at startup | ||
|
||
istgt_enable="YES" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Copyright (C) 2008-2012 Daisuke Aoyama <[email protected]>. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# top Makefile | ||
|
||
top_srcdir = . | ||
srcdir = . | ||
|
||
prefix = /usr/local | ||
exec_prefix = ${prefix} | ||
bindir = ${exec_prefix}/bin | ||
sbindir = ${exec_prefix}/sbin | ||
sysconfdir = ${prefix}/etc | ||
datarootdir = ${prefix}/share | ||
datadir = ${datarootdir} | ||
libexecdir = ${exec_prefix}/libexec | ||
mandir = ${datarootdir}/man | ||
|
||
PACKAGE_NAME = istgt | ||
PACKAGE_STRING = istgt 0.5 | ||
PACKAGE_TARNAME = istgt | ||
PACKAGE_VERSION = 0.5 | ||
|
||
document = COPYRIGHT README INSTALL ChangeLog.jp | ||
|
||
VER_H = src/istgt_ver.h | ||
DISTBASE = istgt | ||
DISTVER = `sed -e '/ISTGT_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)` | ||
DISTEXTVER = `sed -e '/ISTGT_EXTRA_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)` | ||
#DISTDIR = $(PACKAGE_NAME)-$(PACKAGE_VERSION) | ||
#DISTDIR = $(DISTBASE)-$(DISTVER)-$(DISTEXTVER) | ||
DISTDIR = $(DISTBASE)-$(DISTEXTVER) | ||
DISTNAME = $(DISTDIR).tar.gz | ||
DISTFILES = Makefile.in configure.in config.guess config.sub install-sh configure \ | ||
$(header) $(source) $(ctl_header) $(ctl_source) \ | ||
$(document) $(sample) | ||
|
||
SUBDIRS = src etc doc | ||
|
||
######################################################################### | ||
|
||
.PHONY: all install install-doc | ||
all: | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
install: | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
install-doc: | ||
for subdir in doc; do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
|
||
.PHONY: dist clean distclean local-clean local-distclean depend | ||
dist: distdir | ||
rm -rf $(DISTDIR) $(DISTNAME) | ||
mkdir $(DISTDIR) | ||
for file in $(DISTFILES); do \ | ||
cp -p $(srcdir)/$$file $(DISTDIR); \ | ||
done | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) subdir=$$subdir $@) || exit $$?; \ | ||
done | ||
tar cf - $(DISTDIR) | gzip -9c > $(DISTNAME) | ||
rm -rf $(DISTDIR) distdir | ||
|
||
distdir: | ||
echo $(DISTDIR) >$@ | ||
|
||
clean: local-clean | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
distclean: clean local-distclean | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
local-clean: | ||
-rm -f a.out *.o *.core | ||
-rm -f *~ | ||
|
||
local-distclean: local-clean | ||
-rm -f Makefile config.status config.cache config.log config.h | ||
-rm -f $(DISTNAME) distdir | ||
|
||
depend: | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
######################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# top Makefile | ||
|
||
top_srcdir = @top_srcdir@ | ||
srcdir = @srcdir@ | ||
|
||
prefix = @prefix@ | ||
exec_prefix = @exec_prefix@ | ||
bindir = @bindir@ | ||
sbindir = @sbindir@ | ||
sysconfdir = @sysconfdir@ | ||
datarootdir = @datarootdir@ | ||
datadir = @datadir@ | ||
libexecdir = @libexecdir@ | ||
mandir = @mandir@ | ||
|
||
PACKAGE_NAME = @PACKAGE_NAME@ | ||
PACKAGE_STRING = @PACKAGE_STRING@ | ||
PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
|
||
document = COPYRIGHT README INSTALL ChangeLog.jp | ||
|
||
VER_H = src/istgt_ver.h | ||
DISTBASE = istgt | ||
DISTVER = `sed -e '/ISTGT_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)` | ||
DISTEXTVER = `sed -e '/ISTGT_EXTRA_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)` | ||
#DISTDIR = $(PACKAGE_NAME)-$(PACKAGE_VERSION) | ||
#DISTDIR = $(DISTBASE)-$(DISTVER)-$(DISTEXTVER) | ||
DISTDIR = $(DISTBASE)-$(DISTEXTVER) | ||
DISTNAME = $(DISTDIR).tar.gz | ||
DISTFILES = Makefile.in configure.in config.guess config.sub install-sh configure \ | ||
$(header) $(source) $(ctl_header) $(ctl_source) \ | ||
$(document) $(sample) | ||
|
||
SUBDIRS = src etc doc | ||
|
||
######################################################################### | ||
|
||
.PHONY: all install install-doc | ||
all: | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
install: | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
install-doc: | ||
for subdir in doc; do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
|
||
.PHONY: dist clean distclean local-clean local-distclean depend | ||
dist: distdir | ||
rm -rf $(DISTDIR) $(DISTNAME) | ||
mkdir $(DISTDIR) | ||
for file in $(DISTFILES); do \ | ||
cp -p $(srcdir)/$$file $(DISTDIR); \ | ||
done | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) subdir=$$subdir $@) || exit $$?; \ | ||
done | ||
tar cf - $(DISTDIR) | gzip -9c > $(DISTNAME) | ||
rm -rf $(DISTDIR) distdir | ||
|
||
distdir: | ||
echo $(DISTDIR) >$@ | ||
|
||
clean: local-clean | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
distclean: clean local-distclean | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
local-clean: | ||
-rm -f a.out *.o *.core | ||
-rm -f *~ | ||
|
||
local-distclean: local-clean | ||
-rm -f Makefile config.status config.cache config.log config.h | ||
-rm -f $(DISTNAME) distdir | ||
|
||
depend: | ||
for subdir in $(SUBDIRS); do \ | ||
(cd $$subdir; $(MAKE) $@) || exit $$?; \ | ||
done | ||
|
||
######################################################################### |
Empty file.
Oops, something went wrong.