mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
b6fda414cd
config or added other files into ETCDIR - Bump PORTREVISION since plist has changed PR: ports/171423 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> Approved by: Daisuke Aoyama <aoyama@peach.ne.jp> (maintainer) Approved by: eadler, bapt (mentors, implicit)
73 lines
1.9 KiB
Makefile
73 lines
1.9 KiB
Makefile
# New ports collection makefile for: istgt
|
|
# Date created: 2009-02-23
|
|
# Whom: Daisuke Aoyama <aoyama@peach.ne.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= istgt
|
|
PORTVERSION= 20120901
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.peach.ne.jp/archives/istgt/
|
|
|
|
MAINTAINER= aoyama@peach.ne.jp
|
|
COMMENT= iSCSI target for Debian/NetBSD/FreeBSD
|
|
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAN1= istgt.1
|
|
MANCOMPRESSED= 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
|
|
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:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${DOCSDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|