openbsd-ports/net/netbsd-iscsi-target/Makefile
sthen 5cbc3d201a import the portable version of netbsd's iSCSI target. port req'd by dlg@
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.
2009-08-15 10:46:59 +00:00

40 lines
984 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2009/08/15 10:46:59 sthen Exp $
COMMENT= NetBSD's iSCSI (RFC 3720) target
DISTNAME= netbsd-iscsi-20080207
PKGNAME= ${DISTNAME:S/-iscsi/-iscsi-target/}
CATEGORIES= net sysutils
HOMEPAGE= http://www.alistaircrooks.co.uk/software.html
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c pthread
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
CONFIGURE_STYLE=gnu
# test harness needs the initiator, not built here (needs fuse)
NO_REGRESS= Yes
WRKSRC= ${WRKDIST}/src
pre-configure:
@perl -pi -e 's,/etc/iscsi,${SYSCONFDIR}/iscsi,g' \
${WRKSRC}/targets.5 ${WRKSRC}/iscsi-target.8
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/iscsi-target ${PREFIX}/sbin
${INSTALL_DATA} ${WRKDIST}/doc/FAQ ${PREFIX}/share/doc/iscsi
${INSTALL_MAN} ${WRKSRC}/iscsi-target.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/targets.5 ${PREFIX}/man/man5
.include <bsd.port.mk>