2013-06-19 04:24:46 +02:00
|
|
|
# Created by: Xin LI <delphij@FreeBSD.org>
|
2011-02-26 05:58:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= iet
|
|
|
|
PORTVERSION= 1.4.20.2
|
2015-02-13 23:38:19 +01:00
|
|
|
PORTREVISION= 10
|
2013-09-20 14:54:54 +02:00
|
|
|
CATEGORIES= net kld
|
2011-02-26 05:58:37 +01:00
|
|
|
MASTER_SITES= SF/iscsitarget/iscsitarget/${PORTVERSION}/
|
|
|
|
DISTNAME= iscsitarget-${PORTVERSION}
|
|
|
|
|
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
PATCH_SITE_SUBDIR= delphij
|
|
|
|
PATCHFILES= ${PORTNAME}-${PORTVERSION}.diff.bz2
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
|
|
|
MAINTAINER= delphij@FreeBSD.org
|
|
|
|
COMMENT= The iSCSI Enterprise Target
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-20 14:54:54 +02:00
|
|
|
SSP_UNSAFE= kernel module does not support ssp
|
2011-02-26 05:58:37 +01:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/freebsd
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
|
|
|
|
USE_RC_SUBR= ietd
|
2014-05-21 09:21:42 +02:00
|
|
|
USES= kmod uidfix
|
2011-02-26 05:58:37 +01:00
|
|
|
|
|
|
|
KMODDIR= ${PREFIX}/modules
|
|
|
|
PLIST_SUB+= KMODDIR=${KMODDIR}
|
|
|
|
MAKE_ENV+= KMODDIR=${KMODDIR} DATADIR=${DATADIR} SYSDIR="${SRC_BASE}/sys"
|
|
|
|
|
2011-05-19 01:41:41 +02:00
|
|
|
IET_CONF_FILES= ietd.conf initiators.allow initiators.deny targets.allow
|
2011-02-26 05:58:37 +01:00
|
|
|
|
|
|
|
.if !exists(${SRC_BASE}/sys/Makefile)
|
|
|
|
IGNORE= requires kernel sources to build
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
2014-05-21 09:21:42 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${KMODDIR} ${STAGEDIR}${ETCDIR}
|
2011-02-26 05:58:37 +01:00
|
|
|
|
2015-04-03 13:26:48 +02:00
|
|
|
.include <bsd.port.mk>
|