svn commit: r404923 - head/net/istgt

Dmitry Marakasov amdmi3 at FreeBSD.org
Thu Dec 31 10:58:00 UTC 2015


Author: amdmi3
Date: Thu Dec 31 10:57:58 2015
New Revision: 404923
URL: https://svnweb.freebsd.org/changeset/ports/404923

Log:
  - Add LICENSE_FILE
  - Switch to options helpers

Modified:
  head/net/istgt/Makefile

Modified: head/net/istgt/Makefile
==============================================================================
--- head/net/istgt/Makefile	Thu Dec 31 10:57:57 2015	(r404922)
+++ head/net/istgt/Makefile	Thu Dec 31 10:57:58 2015	(r404923)
@@ -10,6 +10,7 @@ MAINTAINER=	ports at FreeBSD.org
 COMMENT=	iSCSI target for openSUSE/Debian/NetBSD/FreeBSD
 
 LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
 GNU_CONFIGURE=	yes
 
@@ -18,16 +19,14 @@ DOCFILES=	ChangeLog.jp README doc/QUICKS
 
 SUB_FILES=	pkg-message
 
-OPTIONS_DEFINE=	SYMLNKDEV VBOXVD
+OPTIONS_DEFINE=	SYMLNKDEV VBOXVD DOCS
 
 SYMLNKDEV_DESC=	Allow symbolic link for device file
 VBOXVD_DESC=	Build with VBox VD support (no X11 required)
 
-.include <bsd.port.options.mk>
+SYMLNKDEV_CONFIGURE_ON=	--enable-symlink-device
 
-.if ${PORT_OPTIONS:MSYMLNKDEV}
-CONFIGURE_ARGS+=	--enable-symlink-device
-.endif
+.include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MVBOXVD}
 VBOX_WRKSRC=	`${MAKE} -C ${PORTSDIR}/emulators/virtualbox-ose -V WRKSRC`
@@ -39,7 +38,7 @@ CONFIGURE_ARGS+=	--with-vbox=${VBOX_WRKS
 post-extract:
 	@${REINPLACE_CMD} -e '/\/doc\/istgt/d' ${WRKSRC}/doc/Makefile.in
 
-post-install:
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 


More information about the svn-ports-head mailing list