summaryrefslogtreecommitdiff
path: root/mk/checksum
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-16 16:29:27 +0000
committerjlam <jlam@pkgsrc.org>2007-08-16 16:29:27 +0000
commit8cd21c85a1b5b5bb7a86d30698d94529d8fcb87f (patch)
tree6aa7ab1b9ececb0dee0c7ed516a1dbcdb9c1e7b3 /mk/checksum
parent5b6205850d25cb6cdb0b12d0274e0bee25388bd8 (diff)
downloadpkgsrc-8cd21c85a1b5b5bb7a86d30698d94529d8fcb87f.tar.gz
Allow for emulation-specific patches for binary-only packages. The
patches are named emul-${EMUL_PLATFORM}-patch-* and are located in ${PATCHDIR}.
Diffstat (limited to 'mk/checksum')
-rw-r--r--mk/checksum/checksum.mk3
-rw-r--r--mk/checksum/distinfo.awk6
2 files changed, 5 insertions, 4 deletions
diff --git a/mk/checksum/checksum.mk b/mk/checksum/checksum.mk
index 692c52a8650..c08f705c497 100644
--- a/mk/checksum/checksum.mk
+++ b/mk/checksum/checksum.mk
@@ -1,4 +1,4 @@
-# $NetBSD: checksum.mk,v 1.6 2007/08/15 13:56:24 jlam Exp $
+# $NetBSD: checksum.mk,v 1.7 2007/08/16 16:29:27 jlam Exp $
#
# See bsd.checksum.mk for helpful comments.
#
@@ -66,6 +66,7 @@ _DISTINFO_ARGS_DISTSUM+= ${_IGNOREFILES:S/^/-i /}
.endif
_DISTINFO_ARGS_PATCHSUM+= ${PATCHDIR}/patch-*
+_DISTINFO_ARGS_PATCHSUM+= ${PATCHDIR}/emul-*-patch-*
distinfo:
${RUN}set -e; \
diff --git a/mk/checksum/distinfo.awk b/mk/checksum/distinfo.awk
index d119c4a97c1..ebb22e07aac 100644
--- a/mk/checksum/distinfo.awk
+++ b/mk/checksum/distinfo.awk
@@ -1,6 +1,6 @@
#!/usr/bin/awk -f
#
-# $NetBSD: distinfo.awk,v 1.3 2007/08/14 19:22:31 jlam Exp $
+# $NetBSD: distinfo.awk,v 1.4 2007/08/16 16:29:27 jlam Exp $
#
# Copyright (c) 2007 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -57,7 +57,7 @@
#
# For example:
#
-# $NetBSD: distinfo.awk,v 1.3 2007/08/14 19:22:31 jlam Exp $
+# $NetBSD: distinfo.awk,v 1.4 2007/08/16 16:29:27 jlam Exp $
#
# SHA1 (make-3.81.tar.gz) = cd4fa5a3184176492bf0799593a8f250a728210c
# RMD160 (make-3.81.tar.gz) = a713a72875cb9a29568677c98022465c6f55cbbf
@@ -280,7 +280,7 @@ function header() {
###
function is_patch(file) {
if (file ~ /^patch-local-|[.]orig$|[.]rej$|~$/) return 0
- if (file ~ /^patch-/) return 1
+ if (file ~ /^patch-|^emul-.*-patch-/) return 1
return 0
}