aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-10-04 23:47:38 +0800
committerbapt <bapt@FreeBSD.org>2013-10-04 23:47:38 +0800
commit7f14ecc2547657f686e391845b16a0d0506eb695 (patch)
treeb9d2ba2fdfe57335b6fac0690423f919fb531626 /Mk
parent02cb9e1cf5027915acfed6c0bb42797997f028c5 (diff)
downloadfreebsd-ports-graphics-7f14ecc2547657f686e391845b16a0d0506eb695.tar.gz
freebsd-ports-graphics-7f14ecc2547657f686e391845b16a0d0506eb695.tar.zst
freebsd-ports-graphics-7f14ecc2547657f686e391845b16a0d0506eb695.zip
Fix linux rpm plist generation
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.linux-rpm.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/bsd.linux-rpm.mk b/Mk/bsd.linux-rpm.mk
index ef03ce14c1f..61088b9e884 100644
--- a/Mk/bsd.linux-rpm.mk
+++ b/Mk/bsd.linux-rpm.mk
@@ -152,9 +152,9 @@ pre-install: linux-rpm-generate-plist
. if !target(linux-rpm-generate-plist)
linux-rpm-generate-plist:
- @cd ${WRKSRC} && \
+ cd ${WRKSRC} && \
${FIND} * -path ./stage -prune ! -type d | ${SORT} > ${PLIST} && \
- ${FIND} * -path ./stage -prune -type d | ${SORT} | ${SED} -e 's|^|@dirrm |' > ${PLIST}.dirs
+ ${FIND} * | ${GREP} -v "^stage" | ${SORT} | ${SED} -e 's|^|@dirrm |' > ${PLIST}.dirs
@${GREP} '^@dirrm' ${PORTSDIR}/emulators/linux_base-${_LINUX_BASE_SUFFIX}/pkg-plist | ${SED} 's:^@dirrmtry:@dirrm:g' | ${SORT} > ${PLIST}.shared-dirs
@${COMM} -1 -3 ${PLIST}.shared-dirs ${PLIST}.dirs | ${SORT} -r >> ${PLIST}
. endif