diff options
author | mat <mat@FreeBSD.org> | 2015-11-05 12:36:25 +0000 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-11-05 12:36:25 +0000 |
commit | 83b7c91d19c003ffb9239eedefcecc6a149026ea (patch) | |
tree | 9cbf2a263e7841be76898ae832e7bfb273d3fd08 /emulators/linux_base-c6/Makefile | |
parent | 89b1b18d91fb0b762e2387add24955f773c21fa4 (diff) | |
download | FreeBSD-ports-83b7c91d19c003ffb9239eedefcecc6a149026ea.zip FreeBSD-ports-83b7c91d19c003ffb9239eedefcecc6a149026ea.tar.gz |
Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR: 204056
Submitted by: mat
Reviewed by: bapt
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D2735
Diffstat (limited to 'emulators/linux_base-c6/Makefile')
-rw-r--r-- | emulators/linux_base-c6/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/emulators/linux_base-c6/Makefile b/emulators/linux_base-c6/Makefile index 0a17ecf..8acfc81 100644 --- a/emulators/linux_base-c6/Makefile +++ b/emulators/linux_base-c6/Makefile @@ -180,17 +180,17 @@ ARCH= i386 pre-extract: @for file in ${PRE_BIN_DISTFILES}; do \ - if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ + if ! (cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ then \ exit 1; \ fi; \ done # now fix up broken permissions . if defined(OVERRIDE_LINUX_BASE_PORT) && ${OVERRIDE_LINUX_BASE_PORT} == "c6_64" - @${CHMOD} -R u+rwX ${WRKDIR}/lib64 ${WRKDIR}/usr/lib64 + @${CHMOD} -R u+rwX ${WRKSRC}/lib64 ${WRKSRC}/usr/lib64 . endif - @${CHMOD} -R u+rwX ${WRKDIR}/bin ${WRKDIR}/lib ${WRKDIR}/sbin ${WRKDIR}/usr/bin ${WRKDIR}/usr/lib ${WRKDIR}/usr/sbin - @${CHMOD} 400 ${WRKDIR}/etc/*shadow + @${CHMOD} -R u+rwX ${WRKSRC}/bin ${WRKSRC}/lib ${WRKSRC}/sbin ${WRKSRC}/usr/bin ${WRKSRC}/usr/lib ${WRKSRC}/usr/sbin + @${CHMOD} 400 ${WRKSRC}/etc/*shadow do-build: @for D in ${REMOVE_DIRS}; do \ @@ -242,8 +242,8 @@ do-install: # # Do install without using linux rpm system # - @cd ${WRKSRC} && ${FIND} * ! -path "stage*" -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/{}" \; - @cd ${WRKSRC} && ${FIND} * ! -path "stage/*" ! -type d \ + @cd ${WRKSRC} && ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/{}" \; + @cd ${WRKSRC} && ${FIND} * ! -type d \ | ${CPIO} -pm -R root:wheel ${STAGEDIR}${PREFIX} @${LN} -sf /var/tmp ${STAGEDIR}${PREFIX}/usr/tmp |