aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipw-firmware
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-12-19 01:09:11 +0800
committerflz <flz@FreeBSD.org>2005-12-19 01:09:11 +0800
commitfa575c78bb7bb78639f56e97230d25e4da211650 (patch)
tree21b2e570e2462012772442b338aba78f6c889015 /net/ipw-firmware
parent07f5047388d237522eba1ef73e7854e0726bbf76 (diff)
downloadfreebsd-ports-graphics-fa575c78bb7bb78639f56e97230d25e4da211650.tar.gz
freebsd-ports-graphics-fa575c78bb7bb78639f56e97230d25e4da211650.tar.zst
freebsd-ports-graphics-fa575c78bb7bb78639f56e97230d25e4da211650.zip
- Finally fix the mtree problem both in HEAD and in stable branches.
Reported by: kris
Diffstat (limited to 'net/ipw-firmware')
-rw-r--r--net/ipw-firmware/Makefile2
-rw-r--r--net/ipw-firmware/pkg-plist3
2 files changed, 4 insertions, 1 deletions
diff --git a/net/ipw-firmware/Makefile b/net/ipw-firmware/Makefile
index d9a2a0400c5..605b0237c3a 100644
--- a/net/ipw-firmware/Makefile
+++ b/net/ipw-firmware/Makefile
@@ -67,11 +67,13 @@ IGNORE= needs at least FreeBSD 5.3-RELEASE
.if ${OSVERSION} > ${MIN7OSVERSION}
SUB_LIST+= DONT_NEED_CONTROL="@comment "
+PLIST_SUB+= MTREE_DIRRM="@comment "
. if !defined(WITHOUT_CONTROL)
IGNORE= is configured with ${DRIVERNAME}control(8) which you don't need
. endif
.else
SUB_LIST+= DONT_NEED_CONTROL=""
+PLIST_SUB+= MTREE_DIRRM=""
MAN8+= ${DRIVERNAME}control.8
USE_RCORDER= ${DRIVERNAME}.sh
.endif
diff --git a/net/ipw-firmware/pkg-plist b/net/ipw-firmware/pkg-plist
index 39f354d3702..fb9b8b95b78 100644
--- a/net/ipw-firmware/pkg-plist
+++ b/net/ipw-firmware/pkg-plist
@@ -1,10 +1,11 @@
@cwd /
%%WITH_CONTROL%%usr/sbin/%%DRIVERNAME%%control
-@exec mkdir -p %%FWDIR%%
+%%MTREE_DIRRM%%@exec mkdir -p %%FWDIR%%
@cwd %%FWDIR%%
LICENSE.%%DRIVERNAME%%
%%DRIVERNAME%%-i.fw
%%DRIVERNAME%%-p.fw
%%DRIVERNAME%%.fw
+%%MTREE_DIRRM%%@unexec rmdir %%FWDIR%% 2>/dev/null || true
%%WITH_MODULE%%@cwd /
%%WITH_MODULE%%%%KMODDIR%%/if_%%DRIVERNAME%%.ko