aboutsummaryrefslogtreecommitdiff
path: root/net/istgt
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2014-12-16 05:02:37 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2014-12-16 05:02:37 +0000
commit2c3752ef4595b245fb57de8be5b3bfe91b9da80e (patch)
tree4ec97bd425cdab0ab656d588ae72ce5c43a781d6 /net/istgt
parent4a50f64bed005f9a3474d315bff2094795c00365 (diff)
downloadports-2c3752ef4595b245fb57de8be5b3bfe91b9da80e.tar.gz
ports-2c3752ef4595b245fb57de8be5b3bfe91b9da80e.zip
- Improve VBOXVD_DESC, define LICENSE, remove redundant PKGMESSAGE
- Simplify post-install recipe, generally cleanup Makefile while here - Convert PLIST_* knobs into pkg-plist (8 lines make it long enough to be kept in a separate file), use sample@ keyword
Notes
Notes: svn path=/head/; revision=374784
Diffstat (limited to 'net/istgt')
-rw-r--r--net/istgt/Makefile27
-rw-r--r--net/istgt/pkg-plist8
2 files changed, 17 insertions, 18 deletions
diff --git a/net/istgt/Makefile b/net/istgt/Makefile
index 5cde57fa7b31..8619c626780d 100644
--- a/net/istgt/Makefile
+++ b/net/istgt/Makefile
@@ -3,35 +3,26 @@
PORTNAME= istgt
PORTVERSION= 20121028
-PORTREVISION= 1
+PORTREVISION= 2
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
+LICENSE= BSD2CLAUSE
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}
+PORTDOCS= ${DOCFILES:T}
+DOCFILES= ChangeLog.jp README doc/QUICKSTART doc/QUICKSTART.jp
-DOCS= ChangeLog.jp README doc/QUICKSTART doc/QUICKSTART.jp
+SUB_FILES= pkg-message
OPTIONS_DEFINE= SYMLNKDEV VBOXVD
-OPTIONS_DEFAULT=
+
SYMLNKDEV_DESC= Allow symbolic link for device file
-VBOXVD_DESC= Build with VBox VD support(no X11 required)
+VBOXVD_DESC= Build with VBox VD support (no X11 required)
.include <bsd.port.options.mk>
@@ -50,7 +41,7 @@ post-extract:
@${REINPLACE_CMD} -e '/\/doc\/istgt/d' ${WRKSRC}/doc/Makefile.in
post-install:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/net/istgt/pkg-plist b/net/istgt/pkg-plist
new file mode 100644
index 000000000000..01d6a1c0b6de
--- /dev/null
+++ b/net/istgt/pkg-plist
@@ -0,0 +1,8 @@
+bin/istgt
+bin/istgtcontrol
+etc/rc.d/istgt
+@sample %%ETCDIR%%/auth.conf.sample
+@sample %%ETCDIR%%/istgt.conf.sample
+@sample %%ETCDIR%%/istgt.large.conf.sample
+@sample %%ETCDIR%%/istgtcontrol.conf.sample
+man/man1/istgt.1.gz