summaryrefslogtreecommitdiff
path: root/devel/netbsd-iscsi-initiator
diff options
context:
space:
mode:
authoragc <agc>2007-11-14 20:33:47 +0000
committeragc <agc>2007-11-14 20:33:47 +0000
commit51a2fd96586b28ac4c8d52a6dbe39dcc780ab7eb (patch)
treed9aa7a68bd56237ecd6aeeaf536ac8c225e985f7 /devel/netbsd-iscsi-initiator
parentfdbfe6d44ee5ac30de906ad90ab43baaaebf6660 (diff)
downloadpkgsrc-51a2fd96586b28ac4c8d52a6dbe39dcc780ab7eb.tar.gz
Import the NetBSD iSCSI initiator, version 20071114, into the Packages
Collection. This initiator is based on FUSE/ReFUSE. 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. The NetBSD iSCSI initiator is based on FUSE/ReFUSE, and provides a portable initiator for any operating system with a FUSE-like interface.
Diffstat (limited to 'devel/netbsd-iscsi-initiator')
-rw-r--r--devel/netbsd-iscsi-initiator/DESCR8
-rw-r--r--devel/netbsd-iscsi-initiator/Makefile27
-rw-r--r--devel/netbsd-iscsi-initiator/PLIST3
-rw-r--r--devel/netbsd-iscsi-initiator/distinfo6
-rw-r--r--devel/netbsd-iscsi-initiator/patches/patch-aa17
5 files changed, 61 insertions, 0 deletions
diff --git a/devel/netbsd-iscsi-initiator/DESCR b/devel/netbsd-iscsi-initiator/DESCR
new file mode 100644
index 00000000000..6f034fd6419
--- /dev/null
+++ b/devel/netbsd-iscsi-initiator/DESCR
@@ -0,0 +1,8 @@
+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.
+
+The NetBSD iSCSI initiator is based on FUSE/ReFUSE, and provides a
+portable initiator for any operating system with a FUSE-like
+interface.
diff --git a/devel/netbsd-iscsi-initiator/Makefile b/devel/netbsd-iscsi-initiator/Makefile
new file mode 100644
index 00000000000..b9e3c424d3e
--- /dev/null
+++ b/devel/netbsd-iscsi-initiator/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/11/14 20:33:47 agc Exp $
+
+DISTNAME= netbsd-iscsi-20071114
+PKGNAME= ${DISTNAME:C/-iscsi/-iscsi-initiator/}
+CATEGORIES= devel
+MASTER_SITES= http://www.alistaircrooks.co.uk/src/
+
+MAINTAINER= agc@NetBSD.org
+HOMEPAGE= http://www.alistaircrooks.co.uk/software.html
+COMMENT= NetBSD's iSCSI initiator (per iSCSI RFC 3720)
+
+GNU_CONFIGURE= yes
+CONFIGURE_DIRS= src
+BUILD_TARGET= all-initiator
+
+INSTALLATION_DIRS_FROM_PLIST= yes
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/iscsifs ${DESTDIR}${PREFIX}/sbin/iscsifs
+ ${INSTALL_MAN} ${WRKSRC}/src/iscsifs.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/iscsifs.8
+
+.include "../../mk/fuse.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/netbsd-iscsi-initiator/PLIST b/devel/netbsd-iscsi-initiator/PLIST
new file mode 100644
index 00000000000..25c65c28698
--- /dev/null
+++ b/devel/netbsd-iscsi-initiator/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/11/14 20:33:47 agc Exp $
+man/man8/iscsifs.8
+sbin/iscsifs
diff --git a/devel/netbsd-iscsi-initiator/distinfo b/devel/netbsd-iscsi-initiator/distinfo
new file mode 100644
index 00000000000..33b9bdc002a
--- /dev/null
+++ b/devel/netbsd-iscsi-initiator/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/11/14 20:33:47 agc Exp $
+
+SHA1 (netbsd-iscsi-20071114.tar.gz) = 4fc412b35e46d6d978dd905a97b8f572b10eeaea
+RMD160 (netbsd-iscsi-20071114.tar.gz) = e6e0d0487721423b01f75a2cd8de2436c9f168f1
+Size (netbsd-iscsi-20071114.tar.gz) = 256656 bytes
+SHA1 (patch-aa) = e86b7400cc472a31a5cf2457924af3d7d5c4b0c3
diff --git a/devel/netbsd-iscsi-initiator/patches/patch-aa b/devel/netbsd-iscsi-initiator/patches/patch-aa
new file mode 100644
index 00000000000..756e885c558
--- /dev/null
+++ b/devel/netbsd-iscsi-initiator/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/11/14 20:33:47 agc Exp $
+
+--- src/Makefile.in.orig 2006-06-03 00:39:22.000000000 +0000
++++ src/Makefile.in
+@@ -16,9 +16,9 @@ MANDIR=$(prefix)/man
+ 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
+ CFLAGS= @CFLAGS@ ${GCC_CFLAGS} ${COMMON_CFLAGS} -I${INCLUDE} ${PTHREAD_FLAGS}