summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-08-18 10:02:01 +0000
committeragc <agc@pkgsrc.org>1999-08-18 10:02:01 +0000
commitfc230df0aecc5008fd09366960232dd36980b670 (patch)
tree5997773c3c4ead449c151a1929824a22b941af19 /mk
parent69696f9b820cbbd6bfdd1bb9eada3b8288d74a55 (diff)
downloadpkgsrc-fc230df0aecc5008fd09366960232dd36980b670.tar.gz
Record the names of the patches which were applied to the package
(taken from the patch-sum file), plus any local patches, in the BuildVersion file (which can be viewed with the -b option to pkg_info(1)), rather than simply recording the contents of any patches directory.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 50b711203c3..f48d6baebe2 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.314 1999/08/16 15:37:40 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.315 1999/08/18 10:02:01 agc Exp $
#
# This file is in the public domain.
#
@@ -2195,11 +2195,16 @@ fake-pkg: ${PLIST} ${DESCR}
files="$$files $$f"; \
fi; \
done; \
+ if [ -f ${PATCH_SUM_FILE} ]; then \
+ for f in `${AWK} '$$1 == "MD5" { gsub("[()]", "", $$2); print $$2 }' < ${PATCH_SUM_FILE}`; do \
+ files="$$files ${PATCHDIR}/$$f"; \
+ done; \
+ fi; \
if [ -d ${PATCHDIR} ]; then \
for f in ${PATCHDIR}/patch-*; do \
case $$f in \
*.orig|*.rej|*~) ;; \
- *) \
+ ${PATCHDIR}/patch-local-*) \
files="$$files $$f" ;; \
esac; \
done; \