pbulk-0.40: Use plain sed to extract RCS IDs. GNU ident has issues with unexpanded RCS IDs.diff -r1.53 -r1.54 pkgsrc/pkgtools/pbulk/Makefile
(joerg)
@@ -1,49 +1,49 @@ | @@ -1,49 +1,49 @@ | |||
1 | # $NetBSD: Makefile,v 1.53 2009/06/07 18:07:00 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.54 2009/06/08 16:02:52 joerg Exp $ | |
2 | 2 | |||
3 | DISTNAME= pbulk-0.39 | 3 | DISTNAME= pbulk-0.40 | |
4 | COMMENT= Modular bulk build framework | 4 | COMMENT= Modular bulk build framework | |
5 | 5 | |||
6 | PKG_DESTDIR_SUPPORT= user-destdir | 6 | PKG_DESTDIR_SUPPORT= user-destdir | |
7 | 7 | |||
8 | .include "../../pkgtools/pbulk/Makefile.common" | 8 | .include "../../pkgtools/pbulk/Makefile.common" | |
9 | 9 | |||
10 | USE_TOOLS+= awk:run bzip2:run digest:run gzip:run ident:run make:run \ | 10 | USE_TOOLS+= awk:run bzip2:run digest:run gzip:run make:run \ | |
11 | mail:run sed:run tar:run | 11 | mail:run sed:run tar:run | |
12 | DEPENDS+= rsync-[0-9]*:../../net/rsync | 12 | DEPENDS+= rsync-[0-9]*:../../net/rsync | |
13 | DEPENDS+= pbulk-base>=0.38:../../pkgtools/pbulk-base | 13 | DEPENDS+= pbulk-base>=0.38:../../pkgtools/pbulk-base | |
14 | 14 | |||
15 | .include "../../mk/bsd.prefs.mk" | 15 | .include "../../mk/bsd.prefs.mk" | |
16 | 16 | |||
17 | .if ${OPSYS} == "NetBSD" && ${MAKE} == "/usr/bin/make" | 17 | .if ${OPSYS} == "NetBSD" && ${MAKE} == "/usr/bin/make" | |
18 | TARGET_MAKE= ${MAKE} | 18 | TARGET_MAKE= ${MAKE} | |
19 | .else | 19 | .else | |
20 | TARGET_MAKE= $${prefix}/bin/bmake | 20 | TARGET_MAKE= $${prefix}/bin/bmake | |
21 | .endif | 21 | .endif | |
22 | 22 | |||
23 | NEATO= ${PREFIX}/bin/neato | 23 | NEATO= ${PREFIX}/bin/neato | |
24 | 24 | |||
25 | SUBST_CLASSES+= tools | 25 | SUBST_CLASSES+= tools | |
26 | SUBST_STAGE.tools= post-patch | 26 | SUBST_STAGE.tools= post-patch | |
27 | SUBST_MESSAGE.tools= Fixing references to tools | 27 | SUBST_MESSAGE.tools= Fixing references to tools | |
28 | SUBST_FILES.tools= pbulk.conf scripts/build scripts/build-client-start \ | 28 | SUBST_FILES.tools= pbulk.conf scripts/build scripts/build-client-start \ | |
29 | scripts/bulkbuild scripts/bulkbuild-rebuild scripts/bulkbuild-restart \ | 29 | scripts/bulkbuild scripts/bulkbuild-rebuild scripts/bulkbuild-restart \ | |
30 | scripts/client-clean \ | 30 | scripts/client-clean \ | |
31 | scripts/pkg-build scripts/pkg-up-to-date scripts/pre-build \ | 31 | scripts/pkg-build scripts/pkg-up-to-date scripts/pre-build \ | |
32 | scripts/report scripts/scan scripts/scan-client-start scripts/upload \ | 32 | scripts/report scripts/scan scripts/scan-client-start scripts/upload \ | |
33 | scripts/compute-packages.awk scripts/create-broken-graph.awk \ | 33 | scripts/compute-packages.awk scripts/create-broken-graph.awk \ | |
34 | scripts/create-report-html.awk scripts/create-report-txt.awk \ | 34 | scripts/create-report-html.awk scripts/create-report-txt.awk \ | |
35 | scripts/create-report.awk | 35 | scripts/create-report.awk | |
36 | SUBST_VARS.tools= AWK BZIP2 CHOWN DIGEST GZIP_CMD IDENT MAIL_CMD NEATO \ | 36 | SUBST_VARS.tools= AWK BZIP2 CHOWN DIGEST GZIP_CMD MAIL_CMD NEATO \ | |
37 | PBULK_CONFIG PBULK_CONFIG_VERSION PKG_ADD_CMD \ | 37 | PBULK_CONFIG PBULK_CONFIG_VERSION PKG_ADD_CMD \ | |
38 | PKG_DELETE_CMD PKG_INFO_CMD PREFIX SED SH TAR \ | 38 | PKG_DELETE_CMD PKG_INFO_CMD PREFIX SED SH TAR \ | |
39 | TARGET_MAKE | 39 | TARGET_MAKE | |
40 | 40 | |||
41 | CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf | 41 | CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf | |
42 | 42 | |||
43 | PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf | 43 | PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf | |
44 | PBULK_CONFIG_VERSION= 0.34 | 44 | PBULK_CONFIG_VERSION= 0.34 | |
45 | 45 | |||
46 | INSTALLATION_DIRS= bin libexec/pbulk share/examples/pbulk | 46 | INSTALLATION_DIRS= bin libexec/pbulk share/examples/pbulk | |
47 | USE_BSD_MAKEFILE= yes | 47 | USE_BSD_MAKEFILE= yes | |
48 | 48 | |||
49 | BUILD_DIRS= scripts | 49 | BUILD_DIRS= scripts |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: pbulk.conf,v 1.15 2008/09/16 18:21:30 joerg Exp $ | 1 | # $NetBSD: pbulk.conf,v 1.16 2009/06/08 16:02:52 joerg Exp $ | |
2 | 2 | |||
3 | # Version of the configuration file. This is bumped whenver the default | 3 | # Version of the configuration file. This is bumped whenver the default | |
4 | # config changes to notify the administrator about updates. | 4 | # config changes to notify the administrator about updates. | |
5 | # | 5 | # | |
6 | config_version=@PBULK_CONFIG_VERSION@ | 6 | config_version=@PBULK_CONFIG_VERSION@ | |
7 | 7 | |||
8 | # The URL where the build report will be made available. This is only | 8 | # The URL where the build report will be made available. This is only | |
9 | # used in the .txt version of the report. | 9 | # used in the .txt version of the report. | |
10 | # | 10 | # | |
11 | base_url=http://www.pkgsrc-box.org/reports/current/DragonFly-1.8 | 11 | base_url=http://www.pkgsrc-box.org/reports/current/DragonFly-1.8 | |
12 | 12 | |||
13 | # The pbulk framework can use multiple machines to build the packages. | 13 | # The pbulk framework can use multiple machines to build the packages. | |
14 | # On a single-processor, non-distributed build, you may want to say "no" | 14 | # On a single-processor, non-distributed build, you may want to say "no" | |
@@ -69,27 +69,26 @@ pkgdb=/var/db/pkg | @@ -69,27 +69,26 @@ pkgdb=/var/db/pkg | |||
69 | varbase=/var | 69 | varbase=/var | |
70 | 70 | |||
71 | # The following programs must NOT be inside ${prefix} | 71 | # The following programs must NOT be inside ${prefix} | |
72 | pkg_info=@PKG_INFO_CMD@ | 72 | pkg_info=@PKG_INFO_CMD@ | |
73 | pkg_add=@PKG_ADD_CMD@ | 73 | pkg_add=@PKG_ADD_CMD@ | |
74 | pkg_delete=@PKG_DELETE_CMD@ | 74 | pkg_delete=@PKG_DELETE_CMD@ | |
75 | 75 | |||
76 | # The tools that are used for building the packages. If you do not want | 76 | # The tools that are used for building the packages. If you do not want | |
77 | # to publish anything at all, set rsync=: and mail=:. | 77 | # to publish anything at all, set rsync=: and mail=:. | |
78 | # | 78 | # | |
79 | bzip2=@BZIP2@ | 79 | bzip2=@BZIP2@ | |
80 | digest=@DIGEST@ | 80 | digest=@DIGEST@ | |
81 | gzip="@GZIP_CMD@" | 81 | gzip="@GZIP_CMD@" | |
82 | ident=@IDENT@ | |||
83 | # On non-NetBSD, this should usually point at the bmake in ${prefix}, not the | 82 | # On non-NetBSD, this should usually point at the bmake in ${prefix}, not the | |
84 | # make used to build pbulk itself. | 83 | # make used to build pbulk itself. | |
85 | make=@TARGET_MAKE@ | 84 | make=@TARGET_MAKE@ | |
86 | mail=@MAIL_CMD@ | 85 | mail=@MAIL_CMD@ | |
87 | neato=@NEATO@ | 86 | neato=@NEATO@ | |
88 | rsync=@PREFIX@/bin/rsync | 87 | rsync=@PREFIX@/bin/rsync | |
89 | sed=@SED@ | 88 | sed=@SED@ | |
90 | tar=@TAR@ | 89 | tar=@TAR@ | |
91 | 90 | |||
92 | loc=${bulklog}/meta | 91 | loc=${bulklog}/meta | |
93 | 92 | |||
94 | pbuild=@PREFIX@/bin/pbulk-build | 93 | pbuild=@PREFIX@/bin/pbulk-build | |
95 | presolve=@PREFIX@/bin/pbulk-resolve | 94 | presolve=@PREFIX@/bin/pbulk-resolve |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | #!@SH@ | 1 | #!@SH@ | |
2 | # $NetBSD: pkg-up-to-date,v 1.6 2009/03/06 15:53:21 tnn Exp $ | 2 | # $NetBSD: pkg-up-to-date,v 1.7 2009/06/08 16:02:53 joerg Exp $ | |
3 | # | 3 | # | |
4 | # Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. | 4 | # Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. | |
5 | # All rights reserved. | 5 | # All rights reserved. | |
6 | # | 6 | # | |
7 | # This code was developed as part of Google's Summer of Code 2007 program. | 7 | # This code was developed as part of Google's Summer of Code 2007 program. | |
8 | # | 8 | # | |
9 | # Redistribution and use in source and binary forms, with or without | 9 | # Redistribution and use in source and binary forms, with or without | |
10 | # modification, are permitted provided that the following conditions | 10 | # modification, are permitted provided that the following conditions | |
11 | # are met: | 11 | # are met: | |
12 | # | 12 | # | |
13 | # 1. Redistributions of source code must retain the above copyright | 13 | # 1. Redistributions of source code must retain the above copyright | |
14 | # notice, this list of conditions and the following disclaimer. | 14 | # notice, this list of conditions and the following disclaimer. | |
15 | # 2. Redistributions in binary form must reproduce the above copyright | 15 | # 2. Redistributions in binary form must reproduce the above copyright | |
@@ -36,27 +36,27 @@ set -e | @@ -36,27 +36,27 @@ set -e | |||
36 | 36 | |||
37 | if [ "${config_version}" != "@PBULK_CONFIG_VERSION@" ]; then | 37 | if [ "${config_version}" != "@PBULK_CONFIG_VERSION@" ]; then | |
38 | echo "Your configuration has version ${config_version}." | 38 | echo "Your configuration has version ${config_version}." | |
39 | echo "This version of pbulk expects version @PBULK_CONFIG_VERSION@." | 39 | echo "This version of pbulk expects version @PBULK_CONFIG_VERSION@." | |
40 | exit 1 | 40 | exit 1 | |
41 | fi | 41 | fi | |
42 | 42 | |||
43 | pkg="${packages}/All/$1.tgz" | 43 | pkg="${packages}/All/$1.tgz" | |
44 | [ -f ${pkg} ] | 44 | [ -f ${pkg} ] | |
45 | 45 | |||
46 | ${pkg_info} -qb ${pkg} | sed 's/:/ /' | while read file file_id; do | 46 | ${pkg_info} -qb ${pkg} | sed 's/:/ /' | while read file file_id; do | |
47 | [ -z "$file" ] && continue | 47 | [ -z "$file" ] && continue | |
48 | 48 | |||
49 | id=`${ident} ${pkgsrc}/${file} 2> /dev/null | head -n 2 | sed -e 1d -e 's/^ //'` | 49 | id=`@SED@ -e '/[$]NetBSD/!d' -e 's/^.*\([$]NetBSD[^$]*[$]\).*$/\1/;q' ${pkgsrc}/${file}` | |
50 | [ "$id" = "$file_id" ] | 50 | [ "$id" = "$file_id" ] | |
51 | done | 51 | done | |
52 | 52 | |||
53 | # TODO: compare build options | 53 | # TODO: compare build options | |
54 | 54 | |||
55 | # Remove current package, so that only dependencies are in $* now. | 55 | # Remove current package, so that only dependencies are in $* now. | |
56 | shift | 56 | shift | |
57 | 57 | |||
58 | ${pkg_info} -qN ${pkg} | while read dep; do | 58 | ${pkg_info} -qN ${pkg} | while read dep; do | |
59 | # pkg_info prints a trailing newline, ignore that | 59 | # pkg_info prints a trailing newline, ignore that | |
60 | [ -z "${dep}" ] && continue | 60 | [ -z "${dep}" ] && continue | |
61 | found=0 | 61 | found=0 | |
62 | for dep2 in $*; do | 62 | for dep2 in $*; do |