diff options
author | znerd <znerd@FreeBSD.org> | 2004-03-26 07:14:09 +0000 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2004-03-26 07:14:09 +0000 |
commit | b8cb0939e9e2fedab6565dadb768d3c364787203 (patch) | |
tree | 6ba945b6bfd89cae4c1af7ddabe294f2d836a823 /java/jdk14-doc | |
parent | 0dbd055ca58ebfe16dba2c8deba0f3f697272b89 (diff) | |
download | FreeBSD-ports-b8cb0939e9e2fedab6565dadb768d3c364787203.zip FreeBSD-ports-b8cb0939e9e2fedab6565dadb768d3c364787203.tar.gz |
Fixed generation of pkg-plist.
PR: 60722
Submitted by: Ulrich Spoerlein <q@uni.de>
Diffstat (limited to 'java/jdk14-doc')
-rw-r--r-- | java/jdk14-doc/Makefile | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/java/jdk14-doc/Makefile b/java/jdk14-doc/Makefile index d81843b..13b7ba9 100644 --- a/java/jdk14-doc/Makefile +++ b/java/jdk14-doc/Makefile @@ -36,12 +36,6 @@ USE_ZIP= yes IGNORE=You must manually fetch ${DISTNAME}${EXTRACT_SUFX} from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again .endif -pre-install: - @${ECHO_CMD} -n ">> Removing ${PLIST}..." - @${RM} -f ${PLIST} - @${TOUCH} ${PLIST} - @${ECHO_CMD} " [ DONE ]" - do-install: @${ECHO_CMD} -n ">> Creating directory ${TARGET_DIR}..." @${MKDIR} ${TARGET_DIR} @@ -51,11 +45,15 @@ do-install: @${CP} -r ${WRKSRC}/* ${TARGET_DIR} @${ECHO_CMD} " [ DONE ]" +post-extract: @${ECHO_CMD} -n ">> Creating packing list..." - @${FIND} ${TARGET_DIR} -type f -print | \ - ${SED} "s,${PREFIX}/*,," >> ${PLIST} - @${FIND} ${TARGET_DIR} -type d -print | ${SORT} -r | \ - ${SED} -e "s,${PREFIX}/*,," -e "s,^,@dirrm ,g" >> ${PLIST} + @${ECHO_CMD} "@cwd ${TARGET_DIR}" > ${PLIST} + @${FIND} ${WRKSRC} -type f -print | \ + ${SED} -e "s,${WRKSRC}/*,," >> ${PLIST} + @${FIND} ${WRKSRC} -type d -print | ${SORT} -r | \ + ${SED} -e "s,${WRKSRC}/*,," -e "/^$$/d" -e "s,^,@dirrm ," >> ${PLIST} + @${ECHO_CMD} "@cwd /" >> ${PLIST} + @${ECHO_CMD} "@dirrm ${TARGET_DIR}" >> ${PLIST} @${ECHO_CMD} " [ DONE ]" .include <bsd.port.post.mk> |