summaryrefslogtreecommitdiff
path: root/net/netbsd-iscsi-target
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2010-06-04 16:07:27 +0000
committersborrill <sborrill@pkgsrc.org>2010-06-04 16:07:27 +0000
commitc15fa9d63fba4e9570b886b1ceae023a9a985804 (patch)
treeb5406c9c058968f24fccc5461c1d2091d49142ef /net/netbsd-iscsi-target
parent3a43933a458debdd85bb8580780fecc442057546 (diff)
downloadpkgsrc-c15fa9d63fba4e9570b886b1ceae023a9a985804.tar.gz
Move from devel to net
Diffstat (limited to 'net/netbsd-iscsi-target')
-rw-r--r--net/netbsd-iscsi-target/DESCR9
-rw-r--r--net/netbsd-iscsi-target/Makefile29
-rw-r--r--net/netbsd-iscsi-target/PLIST5
-rw-r--r--net/netbsd-iscsi-target/distinfo6
-rw-r--r--net/netbsd-iscsi-target/patches/patch-aa17
5 files changed, 66 insertions, 0 deletions
diff --git a/net/netbsd-iscsi-target/DESCR b/net/netbsd-iscsi-target/DESCR
new file mode 100644
index 00000000000..0cfbbe49ccb
--- /dev/null
+++ b/net/netbsd-iscsi-target/DESCR
@@ -0,0 +1,9 @@
+iSCSI is an IETF standard (RFC 3720) for remote access to block-level
+storage. It can be thought of as similar to NFS, except that an NFS
+server exports files; the iSCSI target exports blocks to the iSCSI
+initiators, which are the clients.
+
+To set up the target, you need to edit the /etc/iscsi/targets file.
+It has a certain layout, to provide a means of (a) mirroring and (b)
+combining multiple areas to present one large contiguous area of
+storage. This can be multiply-layered.
diff --git a/net/netbsd-iscsi-target/Makefile b/net/netbsd-iscsi-target/Makefile
new file mode 100644
index 00000000000..c35919003c6
--- /dev/null
+++ b/net/netbsd-iscsi-target/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/06/04 16:07:27 sborrill Exp $
+
+DISTNAME= netbsd-iscsi-20080207
+PKGNAME= ${DISTNAME:C/-iscsi/-iscsi-target/}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_BACKUP}
+
+MAINTAINER= agc@NetBSD.org
+HOMEPAGE= http://www.alistaircrooks.co.uk/software.html
+COMMENT= NetBSD's iSCSI target (per iSCSI RFC 3720)
+
+CONFLICTS+= netbsd-iscsi>0
+
+GNU_CONFIGURE= yes
+CONFIGURE_DIRS= src
+
+AUTO_MKDIRS= yes
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/iscsi-target ${DESTDIR}${PREFIX}/sbin/iscsi-target
+ ${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${DESTDIR}${PREFIX}/share/doc/iscsi/FAQ
+ ${INSTALL_MAN} ${WRKSRC}/src/iscsi-target.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/iscsi-target.8
+ ${INSTALL_MAN} ${WRKSRC}/src/targets.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/targets.5
+
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/netbsd-iscsi-target/PLIST b/net/netbsd-iscsi-target/PLIST
new file mode 100644
index 00000000000..37d70933202
--- /dev/null
+++ b/net/netbsd-iscsi-target/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/06/04 16:07:27 sborrill Exp $
+man/man5/targets.5
+man/man8/iscsi-target.8
+sbin/iscsi-target
+share/doc/iscsi/FAQ
diff --git a/net/netbsd-iscsi-target/distinfo b/net/netbsd-iscsi-target/distinfo
new file mode 100644
index 00000000000..235eddec1e7
--- /dev/null
+++ b/net/netbsd-iscsi-target/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/06/04 16:07:27 sborrill Exp $
+
+SHA1 (netbsd-iscsi-20080207.tar.gz) = afe6ca2fdf46ce6dfed341dfd05aeb597584ae0f
+RMD160 (netbsd-iscsi-20080207.tar.gz) = 62417a6c7bebf95257054f96990a7009f515c064
+Size (netbsd-iscsi-20080207.tar.gz) = 249607 bytes
+SHA1 (patch-aa) = c97a1b97456cf2d11415ab22175c564baa9aae14
diff --git a/net/netbsd-iscsi-target/patches/patch-aa b/net/netbsd-iscsi-target/patches/patch-aa
new file mode 100644
index 00000000000..b13c6127138
--- /dev/null
+++ b/net/netbsd-iscsi-target/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/06/04 16:07:27 sborrill Exp $
+
+--- src/Makefile.in.orig 2006-06-03 00:39:22.000000000 +0000
++++ src/Makefile.in
+@@ -16,9 +16,9 @@
+ SYSCONFDIR=@sysconfdir@
+
+ CC= @CC@
+-PTHREAD_FLAGS= -pthread
+-PTHREAD_LDFLAGS= -pthread
+-PTHREAD_LIBS= -lpthread
++PTHREAD_FLAGS?= -pthread
++PTHREAD_LDFLAGS?= -pthread
++PTHREAD_LIBS?= -lpthread
+ GCC_CFLAGS= -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -Wno-trigraphs
+ COMMON_CFLAGS += -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+ COMMON_CFLAGS += -DHAVE_CONFIG_H