blob: 3a9d2c8a81f17b7c461b390f4e99622103743cf1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# New ports collection makefile for: iet
# Date created: 2011-02-25
# Whom: Xin LI <delphij@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= iet
PORTVERSION= 1.4.20.2
PORTREVISION= 4
CATEGORIES= net
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
BUILD_WRKSRC= ${WRKSRC}/freebsd
INSTALL_WRKSRC= ${BUILD_WRKSRC}
MAN5= ietd.conf.5
MAN8= ietadm.8 ietd.8
MANCOMPRESSED= maybe
USE_RC_SUBR= ietd
KMODDIR= ${PREFIX}/modules
PLIST_SUB+= KMODDIR=${KMODDIR}
MAKE_ENV+= KMODDIR=${KMODDIR} DATADIR=${DATADIR} SYSDIR="${SRC_BASE}/sys"
CONFDIR= ${PREFIX}/etc/iet
CONF_FILES= ietd.conf initiators.allow initiators.deny targets.allow
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= requires kernel sources to build
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800107
BROKEN= requires 8.0-RELEASE or higher
.endif
pre-install:
${MKDIR} ${DATADIR} ${KMODDIR} ${CONFDIR}
post-install:
.for f in ${CONF_FILES}
@[ -f ${CONFDIR}/${f} ] || ${CP} ${DATADIR}/${f} ${CONFDIR}/
.endfor
.include <bsd.port.post.mk>
|