diff options
author | sborrill <sborrill@pkgsrc.org> | 2010-02-02 16:09:51 +0000 |
---|---|---|
committer | sborrill <sborrill@pkgsrc.org> | 2010-02-02 16:09:51 +0000 |
commit | 58893c3eceaa5de72ced71e783308cfaa3d1c775 (patch) | |
tree | 77af120a7232aeff66e08aa2b7a31ab16da242e0 /net/istgt | |
parent | 6382faeff5451a2f7e5ad4a62b07c12e88188a36 (diff) | |
download | pkgsrc-58893c3eceaa5de72ced71e783308cfaa3d1c775.tar.gz |
This software (istgt) is the implementation of iSCSI target
(refer to RFC3720 about iSCSI) for FreeBSD 7.1 or later.
It includes iSCSI protocol processor and SPC-3 (SCSI Primary
Commands - 3) based logical unit emulation.
Version 20100125
Diffstat (limited to 'net/istgt')
-rw-r--r-- | net/istgt/DESCR | 4 | ||||
-rw-r--r-- | net/istgt/Makefile | 47 | ||||
-rw-r--r-- | net/istgt/PLIST | 9 | ||||
-rw-r--r-- | net/istgt/distinfo | 7 | ||||
-rw-r--r-- | net/istgt/files/istgt.sh | 18 | ||||
-rw-r--r-- | net/istgt/patches/patch-istgt.h | 16 | ||||
-rw-r--r-- | net/istgt/patches/patch-istgt_lu.h | 18 |
7 files changed, 119 insertions, 0 deletions
diff --git a/net/istgt/DESCR b/net/istgt/DESCR new file mode 100644 index 00000000000..5e35b65a2c6 --- /dev/null +++ b/net/istgt/DESCR @@ -0,0 +1,4 @@ +This software (istgt) is the implementation of iSCSI target +(refer to RFC3720 about iSCSI) for FreeBSD 7.1 or later. +It includes iSCSI protocol processor and SPC-3 (SCSI Primary +Commands - 3) based logical unit emulation. diff --git a/net/istgt/Makefile b/net/istgt/Makefile new file mode 100644 index 00000000000..7e6135d8d44 --- /dev/null +++ b/net/istgt/Makefile @@ -0,0 +1,47 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/02/02 16:09:51 sborrill Exp $ +# + +DISTNAME= istgt-20100125 +CATEGORIES= net +MASTER_SITES= http://shell.peach.ne.jp/~aoyama/wordpress/download/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://shell.peach.ne.jp/aoyama/ +COMMENT= Configurable iSCSI target +LICENSE= modified-bsd + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes + +PKG_SYSCONFSUBDIR= istgt + + +SUBST_CLASSES+= paths +SUBST_MESSAGE.paths= Fixing hardcoded paths. +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths= doc/istgt.1 src/istgt.h src/istgtcontrol.h +SUBST_SED.paths= -e "s,/usr/local,${PREFIX}," + +EG_DIR= ${PREFIX}/share/examples/istgt +CONF_FILES= ${EG_DIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf \ + ${EG_DIR}/istgt.conf ${PKG_SYSCONFDIR}/istgt.conf \ + ${EG_DIR}/istgtcontrol.conf ${PKG_SYSCONFDIR}/istgtcontrol.conf + +RCD_SCRIPTS= istgt +INSTALLATION_DIRS+= bin ${EG_DIR} ${PKGMANDIR}/man1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/istgt ${DESTDIR}${PREFIX}/bin/istgt + ${INSTALL_PROGRAM} ${WRKSRC}/src/istgtcontrol \ + ${DESTDIR}${PREFIX}/bin/istgtcontrol + ${INSTALL_DATA} ${WRKSRC}/etc/auth.conf ${DESTDIR}${EG_DIR}/auth.conf + ${INSTALL_DATA} ${WRKSRC}/etc/istgt.conf ${DESTDIR}${EG_DIR}/istgt.conf + ${INSTALL_DATA} ${WRKSRC}/etc/istgt.large.conf \ + ${DESTDIR}${EG_DIR}/istgt.large.conf + ${INSTALL_DATA} ${WRKSRC}/etc/istgtcontrol.conf \ + ${DESTDIR}${EG_DIR}/istgtcontrol.conf + ${INSTALL_MAN} ${WRKSRC}/doc/istgt.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/istgt.1 + +.include "../../mk/bsd.pkg.mk" diff --git a/net/istgt/PLIST b/net/istgt/PLIST new file mode 100644 index 00000000000..8046896f9b2 --- /dev/null +++ b/net/istgt/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/02/02 16:09:51 sborrill Exp $ +bin/istgt +bin/istgtcontrol +man/man1/istgt.1 +share/examples/istgt/auth.conf +share/examples/istgt/istgt.conf +share/examples/istgt/istgt.large.conf +share/examples/istgt/istgtcontrol.conf +share/examples/rc.d/istgt diff --git a/net/istgt/distinfo b/net/istgt/distinfo new file mode 100644 index 00000000000..0354c8b3a5d --- /dev/null +++ b/net/istgt/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/02/02 16:09:51 sborrill Exp $ + +SHA1 (istgt-20100125.tar.gz) = bfb705c8d3bb6bdaa570e151332aff870c8a240a +RMD160 (istgt-20100125.tar.gz) = 529161792759f01618d6ff90ef81e8d9405cd699 +Size (istgt-20100125.tar.gz) = 211958 bytes +SHA1 (patch-istgt.h) = 3a9e3a8057a51c5c762c39d84986ba4e7bb3b445 +SHA1 (patch-istgt_lu.h) = 3146eff6f29e1d2fd0103c7f759cd3f640645374 diff --git a/net/istgt/files/istgt.sh b/net/istgt/files/istgt.sh new file mode 100644 index 00000000000..cb8221a662f --- /dev/null +++ b/net/istgt/files/istgt.sh @@ -0,0 +1,18 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: istgt.sh,v 1.1.1.1 2010/02/02 16:09:51 sborrill Exp $ +# + +# PROVIDE: istgt +# REQUIRE: network mountcritlocal + +$_rc_subr_loaded . /etc/rc.subr + +name="istgt" +rcvar=$name +command="@PREFIX@/bin/${name}" +pidfile="/var/run/${name}.pid" +required_files="@PKG_SYSCONFDIR@/istgt.conf" + +load_rc_config $name +run_rc_command "$1" diff --git a/net/istgt/patches/patch-istgt.h b/net/istgt/patches/patch-istgt.h new file mode 100644 index 00000000000..fbd23a571b3 --- /dev/null +++ b/net/istgt/patches/patch-istgt.h @@ -0,0 +1,16 @@ +$NetBSD: patch-istgt.h,v 1.1.1.1 2010/02/02 16:09:51 sborrill Exp $ + +--- src/istgt.h.orig 2010-02-02 13:49:40.000000000 +0000 ++++ src/istgt.h 2010-02-02 13:51:11.000000000 +0000 +@@ -55,7 +55,11 @@ + #define DEFAULT_LIVEFILE "/usr/local/etc/istgt/istgt.live" + #define DEFAULT_MEDIADIRECTORY "/var/istgt" + //#define DEFAULT_NODEBASE "iqn.2007-09.jp.ne.peach.istgt" ++#if defined(__NetBSD__) ++#define DEFAULT_NODEBASE "iqn.1994-04.org.netbsd.istgt" ++#else + #define DEFAULT_NODEBASE "iqn.1994-09.org.freebsd.istgt" ++#endif + #define DEFAULT_PORT 3260 + #define DEFAULT_MAX_SESSIONS 32 + #define DEFAULT_MAX_CONNECTIONS 8 diff --git a/net/istgt/patches/patch-istgt_lu.h b/net/istgt/patches/patch-istgt_lu.h new file mode 100644 index 00000000000..20b075abcf7 --- /dev/null +++ b/net/istgt/patches/patch-istgt_lu.h @@ -0,0 +1,18 @@ +$NetBSD: patch-istgt_lu.h,v 1.1.1.1 2010/02/02 16:09:51 sborrill Exp $ + +--- src/istgt_lu.h.orig 2010-02-02 13:22:21.000000000 +0000 ++++ src/istgt_lu.h 2010-02-02 13:24:47.000000000 +0000 +@@ -50,7 +50,13 @@ + #define DEFAULT_LU_QUEUE_DEPTH 16 + + //#define DEFAULT_LU_VENDOR "PEACHNW" ++#if defined(__NetBSD__) ++#define DEFAULT_LU_VENDOR "NetBSD" ++#elif defined(__OpenBSD__) ++#define DEFAULT_LU_VENDOR "OpenBSD" ++#else + #define DEFAULT_LU_VENDOR "FreeBSD" ++#endif + #define DEFAULT_LU_VENDOR_DISK DEFAULT_LU_VENDOR + #define DEFAULT_LU_VENDOR_DVD DEFAULT_LU_VENDOR + #ifndef USE_LU_TAPE_DLT8000 |