diff --git a/net/netbsd-iscsi-target/Makefile b/net/netbsd-iscsi-target/Makefile index c6c8aff9eed..c89dba1ed14 100644 --- a/net/netbsd-iscsi-target/Makefile +++ b/net/netbsd-iscsi-target/Makefile @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile,v 1.3 2012/02/21 22:41:30 sthen Exp $ +# $OpenBSD: Makefile,v 1.4 2012/03/23 13:39:28 claudio Exp $ COMMENT= iSCSI (RFC 3720) target from NetBSD DISTNAME= netbsd-iscsi-20111006 PKGNAME= ${DISTNAME:S/-iscsi/-iscsi-target/} +REVISION= 0 CATEGORIES= net sysutils diff --git a/net/netbsd-iscsi-target/patches/patch-src_lib_disk_c b/net/netbsd-iscsi-target/patches/patch-src_lib_disk_c new file mode 100644 index 00000000000..4226efaaa8c --- /dev/null +++ b/net/netbsd-iscsi-target/patches/patch-src_lib_disk_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_lib_disk_c,v 1.1 2012/03/23 13:39:28 claudio Exp $ +--- src/lib/disk.c.orig Tue Mar 16 15:27:17 2010 ++++ src/lib/disk.c Tue Mar 20 08:03:58 2012 +@@ -1057,7 +1057,7 @@ device_vpd(iscsi_target_t *tgt, uint8_t *data, uint8_t + cp[0] = (INQUIRY_DEVICE_ISCSI_PROTOCOL << 4) | + INQUIRY_DEVICE_CODESET_UTF8; + cp[1] = (INQUIRY_DEVICE_PIV << 7) | +- (INQUIRY_DEVICE_ASSOCIATION_TARGET_DEVICE << 4) | ++ (INQUIRY_DEVICE_ASSOCIATION_LOGICAL_UNIT << 4) | + INQUIRY_IDENTIFIER_TYPE_T10; + strpadcpy(&cp[4], 8, ISCSI_VENDOR, strlen(ISCSI_VENDOR), ' '); + len = 8;