1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Automagically generating pkg-plist.

This commit is contained in:
Ernst de Haan 2002-11-20 08:56:26 +00:00
parent 545bf7ae46
commit 4284dc71cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70554
2 changed files with 17 additions and 5358 deletions

View File

@ -18,7 +18,6 @@ MAINTAINER= znerd@FreeBSD.org
NO_CDROM= "License does not allow distribution with fee."
RESTRICTED= "This software is under license and export control."
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs
@ -29,13 +28,26 @@ NO_BUILD= yes
.include <bsd.port.pre.mk>
pre-install:
@${ECHO_CMD} -n ">> Removing ${PLIST}..."
@${RM} -f ${PLIST}
@${TOUCH} ${PLIST}
@${ECHO_CMD} " [ DONE ]"
do-install:
@${ECHO} -n ">> Creating directory ${TARGET_DIR}..."
@${ECHO_CMD} -n ">> Creating directory ${TARGET_DIR}..."
@${MKDIR} ${TARGET_DIR}
@${ECHO} " [ DONE ]"
@${ECHO_CMD} " [ DONE ]"
@${ECHO} -n ">> Copying files..."
@${ECHO_CMD} -n ">> Copying files..."
@${CP} -r ${WRKSRC}/* ${TARGET_DIR}
@${ECHO} " [ DONE ]"
@${ECHO_CMD} " [ DONE ]"
@${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} " [ DONE ]"
.include <bsd.port.post.mk>

File diff suppressed because it is too large Load Diff