Skip to content

Commit 2316ebc

Browse files
committed
iSCSI target implementaion
0 parents  commit 2316ebc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+57904
-0
lines changed

ChangeLog.jp

+850
Large diffs are not rendered by default.

INSTALL

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
1) run configure script
3+
4+
# ./configure
5+
6+
2) build & install binary and sample configuration files
7+
8+
# make
9+
# make install
10+
# make install-doc
11+
12+
3) create your configuration files and edit it
13+
for more detail, see /usr/local/share/doc/istgt/QUICKSTART
14+
15+
# cd /usr/local/etc/istgt
16+
# cp auth.conf.sample auth.conf
17+
# cp istgt.conf.sample istgt.conf
18+
# cp istgtcontrol.conf.sample istgtcontrol.conf
19+
# EDIT files
20+
21+
4) start daemon
22+
23+
# /usr/local/etc/rc.d/istgt forcestart
24+
25+
5) edit /etc/rc.conf to run it at startup
26+
27+
istgt_enable="YES"
28+

LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright (C) 2008-2012 Daisuke Aoyama <[email protected]>.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions
6+
are met:
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
2. Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
17+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23+
SUCH DAMAGE.

Makefile

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# top Makefile
2+
3+
top_srcdir = .
4+
srcdir = .
5+
6+
prefix = /usr/local
7+
exec_prefix = ${prefix}
8+
bindir = ${exec_prefix}/bin
9+
sbindir = ${exec_prefix}/sbin
10+
sysconfdir = ${prefix}/etc
11+
datarootdir = ${prefix}/share
12+
datadir = ${datarootdir}
13+
libexecdir = ${exec_prefix}/libexec
14+
mandir = ${datarootdir}/man
15+
16+
PACKAGE_NAME = istgt
17+
PACKAGE_STRING = istgt 0.5
18+
PACKAGE_TARNAME = istgt
19+
PACKAGE_VERSION = 0.5
20+
21+
document = COPYRIGHT README INSTALL ChangeLog.jp
22+
23+
VER_H = src/istgt_ver.h
24+
DISTBASE = istgt
25+
DISTVER = `sed -e '/ISTGT_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)`
26+
DISTEXTVER = `sed -e '/ISTGT_EXTRA_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)`
27+
#DISTDIR = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
28+
#DISTDIR = $(DISTBASE)-$(DISTVER)-$(DISTEXTVER)
29+
DISTDIR = $(DISTBASE)-$(DISTEXTVER)
30+
DISTNAME = $(DISTDIR).tar.gz
31+
DISTFILES = Makefile.in configure.in config.guess config.sub install-sh configure \
32+
$(header) $(source) $(ctl_header) $(ctl_source) \
33+
$(document) $(sample)
34+
35+
SUBDIRS = src etc doc
36+
37+
#########################################################################
38+
39+
.PHONY: all install install-doc
40+
all:
41+
for subdir in $(SUBDIRS); do \
42+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
43+
done
44+
45+
install:
46+
for subdir in $(SUBDIRS); do \
47+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
48+
done
49+
50+
install-doc:
51+
for subdir in doc; do \
52+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
53+
done
54+
55+
56+
.PHONY: dist clean distclean local-clean local-distclean depend
57+
dist: distdir
58+
rm -rf $(DISTDIR) $(DISTNAME)
59+
mkdir $(DISTDIR)
60+
for file in $(DISTFILES); do \
61+
cp -p $(srcdir)/$$file $(DISTDIR); \
62+
done
63+
for subdir in $(SUBDIRS); do \
64+
(cd $$subdir; $(MAKE) subdir=$$subdir $@) || exit $$?; \
65+
done
66+
tar cf - $(DISTDIR) | gzip -9c > $(DISTNAME)
67+
rm -rf $(DISTDIR) distdir
68+
69+
distdir:
70+
echo $(DISTDIR) >$@
71+
72+
clean: local-clean
73+
for subdir in $(SUBDIRS); do \
74+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
75+
done
76+
77+
distclean: clean local-distclean
78+
for subdir in $(SUBDIRS); do \
79+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
80+
done
81+
82+
local-clean:
83+
-rm -f a.out *.o *.core
84+
-rm -f *~
85+
86+
local-distclean: local-clean
87+
-rm -f Makefile config.status config.cache config.log config.h
88+
-rm -f $(DISTNAME) distdir
89+
90+
depend:
91+
for subdir in $(SUBDIRS); do \
92+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
93+
done
94+
95+
#########################################################################

Makefile.in

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# top Makefile
2+
3+
top_srcdir = @top_srcdir@
4+
srcdir = @srcdir@
5+
6+
prefix = @prefix@
7+
exec_prefix = @exec_prefix@
8+
bindir = @bindir@
9+
sbindir = @sbindir@
10+
sysconfdir = @sysconfdir@
11+
datarootdir = @datarootdir@
12+
datadir = @datadir@
13+
libexecdir = @libexecdir@
14+
mandir = @mandir@
15+
16+
PACKAGE_NAME = @PACKAGE_NAME@
17+
PACKAGE_STRING = @PACKAGE_STRING@
18+
PACKAGE_TARNAME = @PACKAGE_TARNAME@
19+
PACKAGE_VERSION = @PACKAGE_VERSION@
20+
21+
document = COPYRIGHT README INSTALL ChangeLog.jp
22+
23+
VER_H = src/istgt_ver.h
24+
DISTBASE = istgt
25+
DISTVER = `sed -e '/ISTGT_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)`
26+
DISTEXTVER = `sed -e '/ISTGT_EXTRA_VERSION/!d' -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' $(VER_H)`
27+
#DISTDIR = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
28+
#DISTDIR = $(DISTBASE)-$(DISTVER)-$(DISTEXTVER)
29+
DISTDIR = $(DISTBASE)-$(DISTEXTVER)
30+
DISTNAME = $(DISTDIR).tar.gz
31+
DISTFILES = Makefile.in configure.in config.guess config.sub install-sh configure \
32+
$(header) $(source) $(ctl_header) $(ctl_source) \
33+
$(document) $(sample)
34+
35+
SUBDIRS = src etc doc
36+
37+
#########################################################################
38+
39+
.PHONY: all install install-doc
40+
all:
41+
for subdir in $(SUBDIRS); do \
42+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
43+
done
44+
45+
install:
46+
for subdir in $(SUBDIRS); do \
47+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
48+
done
49+
50+
install-doc:
51+
for subdir in doc; do \
52+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
53+
done
54+
55+
56+
.PHONY: dist clean distclean local-clean local-distclean depend
57+
dist: distdir
58+
rm -rf $(DISTDIR) $(DISTNAME)
59+
mkdir $(DISTDIR)
60+
for file in $(DISTFILES); do \
61+
cp -p $(srcdir)/$$file $(DISTDIR); \
62+
done
63+
for subdir in $(SUBDIRS); do \
64+
(cd $$subdir; $(MAKE) subdir=$$subdir $@) || exit $$?; \
65+
done
66+
tar cf - $(DISTDIR) | gzip -9c > $(DISTNAME)
67+
rm -rf $(DISTDIR) distdir
68+
69+
distdir:
70+
echo $(DISTDIR) >$@
71+
72+
clean: local-clean
73+
for subdir in $(SUBDIRS); do \
74+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
75+
done
76+
77+
distclean: clean local-distclean
78+
for subdir in $(SUBDIRS); do \
79+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
80+
done
81+
82+
local-clean:
83+
-rm -f a.out *.o *.core
84+
-rm -f *~
85+
86+
local-distclean: local-clean
87+
-rm -f Makefile config.status config.cache config.log config.h
88+
-rm -f $(DISTNAME) distdir
89+
90+
depend:
91+
for subdir in $(SUBDIRS); do \
92+
(cd $$subdir; $(MAKE) $@) || exit $$?; \
93+
done
94+
95+
#########################################################################

README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)