mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 11:26:29 -04:00
Automagically generating pkg-plist.
Submitted by: Dave Glowacki <dglo@hyde.ssec.wisc.edu>
This commit is contained in:
parent
7965a75d25
commit
193245d672
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70546
2 changed files with 20 additions and 1094 deletions
|
@ -27,8 +27,26 @@ NO_BUILD= yes
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
pre-install:
|
||||||
|
@${ECHO_CMD} -n ">> Removing ${PLIST}..."
|
||||||
|
@${RM} -f ${PLIST}
|
||||||
|
@${TOUCH} ${PLIST}
|
||||||
|
@${ECHO_CMD} " [ DONE ]"
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${MKDIR} ${TARGET_DIR}
|
@${ECHO_CMD} -n ">> Creating directory ${TARGET_DIR}..."
|
||||||
${CP} -r ${WRKSRC}/* ${TARGET_DIR}
|
@${MKDIR} ${TARGET_DIR}
|
||||||
|
@${ECHO_CMD} " [ DONE ]"
|
||||||
|
|
||||||
|
@${ECHO_CMD} -n ">> Copying files..."
|
||||||
|
@${CP} -r ${WRKSRC}/* ${TARGET_DIR}
|
||||||
|
@${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>
|
.include <bsd.port.post.mk>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue