pkgsrc/devel/netbsd-iscsi-lib/Makefile.common
sborrill 55263b4ac3 Update to netbsd-iscsi-20111006.
Allow maximum number of targets in initiator to be set in mk.conf
with ISCSI_INITIATOR_MAX_TARGETS

Changes:
Provide function in libiscsi to return the compile-time limit on number of
targets. Use this function in the initiator, to ensure that the same limit
is used throughout (i.e. stop you attempting to compile the initiator with a
different limit to the library - the initiator uses the library for most of
its functionality).

If truncating the number of targets in the initiator, truncate it to the
correct amount, not half of what it should be.

Obey RFC3720 when determining targets. SendTargets=All MUST be supported
on a discovery session, and MUST NOT be supported on an operational session.
Previously, SendTargets=All was used both in the initial discovery session
and the later session. (from Daisuke Aoyama - author of istgt).
2011-10-06 14:19:25 +00:00

22 lines
646 B
Text

# $NetBSD: Makefile.common,v 1.3 2011/10/06 14:19:25 sborrill Exp $
# Included by:
# net/netbsd-iscsi-target/Makefile
# net/netbsd-iscsi-initiator/Makefile
DISTNAME= netbsd-iscsi-20111006
MASTER_SITES= ${MASTER_SITE_BACKUP}
MAINTAINER= sborrill@NetBSD.org
HOMEPAGE= http://www.alistaircrooks.co.uk/software.html
LICENSE= modified-bsd
GNU_CONFIGURE= yes
AUTO_MKDIRS= yes
PKG_DESTDIR_SUPPORT= user-destdir
# ISCSI_INITIATOR_MAX_TARGETS can be overridden in your mk.conf file
ISCSI_INITIATOR_MAX_TARGETS?= 16
MESSAGE_SUBST+= MAX_TARGETS=${ISCSI_INITIATOR_MAX_TARGETS:Q}
CFLAGS+= -DCONFIG_INITIATOR_NUM_TARGETS=${ISCSI_INITIATOR_MAX_TARGETS}