aboutsummaryrefslogtreecommitdiffstats
path: root/net/istgt
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-12-16 13:02:37 +0800
committerdanfe <danfe@FreeBSD.org>2014-12-16 13:02:37 +0800
commite5fb49f4d07b4555316b1764eaca0c53995a280e (patch)
tree4ec97bd425cdab0ab656d588ae72ce5c43a781d6 /net/istgt
parent6e1a9c3cdf4ef43c972da5067e7cbc52395de0ef (diff)
downloadfreebsd-ports-gnome-e5fb49f4d07b4555316b1764eaca0c53995a280e.tar.gz
freebsd-ports-gnome-e5fb49f4d07b4555316b1764eaca0c53995a280e.tar.zst
freebsd-ports-gnome-e5fb49f4d07b4555316b1764eaca0c53995a280e.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
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