blob: 1f2101772490a5969da1a02ec295a8897f8796fb (
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
60
61
62
63
|
# Created by: Daisuke Aoyama <aoyama@peach.ne.jp>
# $FreeBSD$
PORTNAME= istgt
PORTVERSION= 20121028
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.peach.ne.jp/archives/istgt/
MAINTAINER= ports@FreeBSD.org
COMMENT= iSCSI target for openSUSE/Debian/NetBSD/FreeBSD
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
GNU_CONFIGURE= yes
PLIST_FILES= bin/istgt \
bin/istgtcontrol \
etc/rc.d/istgt \
%%ETCDIR%%/auth.conf.sample \
%%ETCDIR%%/istgt.conf.sample \
%%ETCDIR%%/istgt.large.conf.sample \
%%ETCDIR%%/istgtcontrol.conf.sample \
man/man1/istgt.1.gz
PLIST_DIRSTRY= %%ETCDIR%%
PORTDOCS= ${DOCS:T}
DOCS= ChangeLog.jp README doc/QUICKSTART doc/QUICKSTART.jp
OPTIONS_DEFINE= SYMLNKDEV VBOXVD
OPTIONS_DEFAULT=
SYMLNKDEV_DESC= Allow symbolic link for device file
VBOXVD_DESC= Build with VBox VD support(no X11 required)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSYMLNKDEV}
CONFIGURE_ARGS+= --enable-symlink-device
.endif
.if ${PORT_OPTIONS:MVBOXVD}
. if ${OSVERSION} < 802000
VBOX_WRKSRC= `${MAKE} -C ${PORTSDIR}/emulators/virtualbox-ose-legacy -V WRKSRC`
RUN_DEPENDS+= ${LOCALBASE}/lib/virtualbox/VBoxRT.so:${PORTSDIR}/emulators/virtualbox-ose-legacy
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/emulators/virtualbox-ose-legacy:patch
CONFIGURE_ARGS+= --with-vbox=${VBOX_WRKSRC}/include
. else
VBOX_WRKSRC= `${MAKE} -C ${PORTSDIR}/emulators/virtualbox-ose -V WRKSRC`
RUN_DEPENDS+= ${LOCALBASE}/lib/virtualbox/VBoxRT.so:${PORTSDIR}/emulators/virtualbox-ose
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/emulators/virtualbox-ose:patch
CONFIGURE_ARGS+= --with-vbox=${VBOX_WRKSRC}/include
. endif
.endif
post-extract:
@${REINPLACE_CMD} -e '/\/doc\/istgt/d' ${WRKSRC}/doc/Makefile.in
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|