pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/x11-links Change the way the PLIST is generat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/aae1c52947fa
branches: trunk
changeset: 495272:aae1c52947fa
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Jun 06 09:05:25 2005 +0000
description:
Change the way the PLIST is generated. We now use a separate loop after
the files in the work directory are built to discover the directories
that need to be removed at deinstall time. This fixes PR pkg/25325 by
Georg Schwarz.
diffstat:
pkgtools/x11-links/Makefile | 22 ++++++++--------------
1 files changed, 8 insertions(+), 14 deletions(-)
diffs (55 lines):
diff -r 4090216e6d9d -r aae1c52947fa pkgtools/x11-links/Makefile
--- a/pkgtools/x11-links/Makefile Mon Jun 06 08:42:53 2005 +0000
+++ b/pkgtools/x11-links/Makefile Mon Jun 06 09:05:25 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.69 2005/06/06 08:42:53 jlam Exp $
+# $NetBSD: Makefile,v 1.70 2005/06/06 09:05:25 jlam Exp $
#
# NOTE: If you update this package, then you'll likely need to also update
# the x11-links dependency in buildlink3.mk to the correct version,
@@ -21,9 +21,9 @@
NO_CHECKSUM= yes
NO_MTREE= yes
-PLIST_SRC= ${WRKDIR}/.PLIST_SRC
-PLIST_SRC.dirs= ${PLIST_SRC}.dirs
-PLIST_SRC.files= ${PLIST_SRC}.files
+PLIST_SRC.dirs= ${WRKDIR}/.PLIST_SRC.dirs
+PLIST_SRC.files= ${WRKDIR}/.PLIST_SRC.files
+PLIST_SRC= ${.CURDIR}/PLIST ${PLIST_SRC.files} ${PLIST_SRC.dirs}
.include "../../mk/bsd.prefs.mk"
@@ -54,14 +54,11 @@
do-build:
${MKDIR} ${X11_LINKS_BUILD_DIR}
${CHMOD} ${PKGDIRMODE} ${X11_LINKS_BUILD_DIR}
- ${RM} -f ${PLIST_SRC.dirs}
${FILES_LIST_CMD} | ${SED} -e "s,/[^/]*$$,," | ${SORT} -u | \
while read dir; do \
if [ -d ${X11BASE}/$$dir ]; then \
${MKDIR} ${X11_LINKS_BUILD_DIR}/$$dir; \
${CHMOD} ${PKGDIRMODE} ${X11_LINKS_BUILD_DIR}/$$dir; \
- ${ECHO} "@dirrm ${X11_LINKS_SUBDIR}/$$dir" \
- >> ${PLIST_SRC.dirs}; \
fi; \
done
${RM} -f ${PLIST_SRC.files}
@@ -75,13 +72,10 @@
>> ${PLIST_SRC.files}; \
fi; \
done
-
-post-build:
- ( ${CAT} ${PKGDIR}/PLIST; \
- ${SORT} -u ${PLIST_SRC.files}; \
- ${SORT} -ur ${PLIST_SRC.dirs}; \
- ${ECHO} "@dirrm ${X11_LINKS_SUBDIR}"; \
- ) > ${PLIST_SRC}
+ ${RM} -f ${PLIST_SRC.dirs}
+ { cd ${WRKSRC}; ${FIND} ${X11_LINKS_SUBDIR} -type d -print | \
+ ${SORT} -ur | ${SED} -e "s|^|@dirrm |"; \
+ } > ${PLIST_SRC.dirs}
do-install:
${INSTALL_DATA_DIR} ${X11_LINKS_DIR}
Home |
Main Index |
Thread Index |
Old Index