aboutsummaryrefslogtreecommitdiffstats
path: root/net/iet
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-05-21 15:21:42 +0800
committerdelphij <delphij@FreeBSD.org>2014-05-21 15:21:42 +0800
commit19fb3152ddc865a7a52bd8ffc3cb994304c45a28 (patch)
tree0079bcb8d2db4e4124ba555b770d1cecdae82d6c /net/iet
parentce2e3337d73ccf556d4b20db24d9b763ddfb3999 (diff)
downloadfreebsd-ports-gnome-19fb3152ddc865a7a52bd8ffc3cb994304c45a28.tar.gz
freebsd-ports-gnome-19fb3152ddc865a7a52bd8ffc3cb994304c45a28.tar.zst
freebsd-ports-gnome-19fb3152ddc865a7a52bd8ffc3cb994304c45a28.zip
Stageify.
Diffstat (limited to 'net/iet')
-rw-r--r--net/iet/Makefile15
-rw-r--r--net/iet/pkg-plist22
2 files changed, 14 insertions, 23 deletions
diff --git a/net/iet/Makefile b/net/iet/Makefile
index 337c5282f9e6..66ac6a24ef6b 100644
--- a/net/iet/Makefile
+++ b/net/iet/Makefile
@@ -3,7 +3,7 @@
PORTNAME= iet
PORTVERSION= 1.4.20.2
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= net kld
MASTER_SITES= SF/iscsitarget/iscsitarget/${PORTVERSION}/
DISTNAME= iscsitarget-${PORTVERSION}
@@ -22,11 +22,8 @@ SSP_UNSAFE= kernel module does not support ssp
BUILD_WRKSRC= ${WRKSRC}/freebsd
INSTALL_WRKSRC= ${BUILD_WRKSRC}
-MAN5= ietd.conf.5
-MAN8= ietadm.8 ietd.8
-MANCOMPRESSED= maybe
-
USE_RC_SUBR= ietd
+USES= kmod uidfix
KMODDIR= ${PREFIX}/modules
PLIST_SUB+= KMODDIR=${KMODDIR}
@@ -34,7 +31,6 @@ MAKE_ENV+= KMODDIR=${KMODDIR} DATADIR=${DATADIR} SYSDIR="${SRC_BASE}/sys"
IET_CONF_FILES= ietd.conf initiators.allow initiators.deny targets.allow
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !exists(${SRC_BASE}/sys/Makefile)
@@ -46,11 +42,6 @@ BROKEN= requires 8.0-RELEASE or higher
.endif
pre-install:
- ${MKDIR} ${DATADIR} ${KMODDIR} ${ETCDIR}
-
-post-install:
-.for f in ${IET_CONF_FILES}
- @[ -f ${ETCDIR}/${f} ] || ${CP} ${DATADIR}/${f} ${ETCDIR}/
-.endfor
+ ${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${KMODDIR} ${STAGEDIR}${ETCDIR}
.include <bsd.port.post.mk>
diff --git a/net/iet/pkg-plist b/net/iet/pkg-plist
index dc54cf41f104..58a9f831dfaa 100644
--- a/net/iet/pkg-plist
+++ b/net/iet/pkg-plist
@@ -1,21 +1,21 @@
modules/iet.ko
@exec mkdir -p %D/etc/iet
-@unexec (cmp -s %D/%%DATADIR%%/ietd.conf %D/etc/iet/ietd.conf && rm -f %D/etc/iet/ietd.conf) || true
+@unexec if cmp -s %D/%%DATADIR%%/ietd.conf %D/etc/iet/ietd.conf ; then rm -f %D/etc/iet/ietd.conf ; fi
%%DATADIR%%/ietd.conf
-@exec [ -f %B/ietd.conf ] || cp %B/%f %D/etc/iet/ietd.conf
-@unexec (cmp -s %D/%%DATADIR%%/initiators.allow %D/etc/iet/initiators.allow && rm -f %D/etc/iet/initiators.allow) || true
+@exec if [ ! -f %D/etc/iet/ietd.conf ]; then cp -p %D/%F %D/etc/iet/ietd.conf; fi
+@unexec if cmp -s %D/%%DATADIR%%/initiators.allow %D/etc/iet/initiators.allow ; then rm -f %D/etc/iet/initiators.allow ; fi
%%DATADIR%%/initiators.allow
-@exec [ -f %B/initiators.allow ] || cp %B/%f %D/etc/iet/initiators.allow
-@unexec (cmp -s %D/%%DATADIR%%/initiators.deny %D/etc/iet/initiators.deny && rm -f %D/etc/iet/initiators.deny) || true
+@exec if [ ! -f %D/etc/iet/initiators.allow ]; then cp -p %D/%F %D/etc/iet/initiators.allow; fi
+@unexec if cmp -s %D/%%DATADIR%%/initiators.deny %D/etc/iet/initiators.deny ; then rm -f %D/etc/iet/initiators.deny ; fi
%%DATADIR%%/initiators.deny
-@exec [ -f %B/initiators.deny ] || cp %B/%f %D/etc/iet/initiators.deny
-@unexec (cmp -s %D/%%DATADIR%%/targets.allow %D/etc/iet/targets.allow && rm -f %D/etc/iet/targets.allow) || true
+@exec if [ ! -f %D/etc/iet/initiators.deny ]; then cp -p %D/%F %D/etc/iet/initiators.deny; fi
+@unexec if cmp -s %D/%%DATADIR%%/targets.allow %D/etc/iet/targets.allow ; then rm -f %D/etc/iet/targets.allow ; fi
%%DATADIR%%/targets.allow
-@exec [ -f %B/targets.allow ] || cp %B/%f %D/etc/iet/targets.allow
+@exec if [ ! -f %D/etc/iet/targets.allow ]; then cp -p %D/%F %D/etc/iet/targets.allow; fi
@dirrmtry etc/iet
@dirrm %%DATADIR%%
+man/man5/ietd.conf.5.gz
+man/man8/ietadm.8.gz
+man/man8/ietd.8.gz
sbin/ietd
sbin/ietadm
-@exec /usr/sbin/kldxref %%KMODDIR%%
-@unexec /usr/sbin/kldxref %%KMODDIR%%
-@dirrmtry modules