Mon Jun 8 16:02:53 2009 UTC ()
pbulk-0.40:
Use plain sed to extract RCS IDs. GNU ident has issues with unexpanded
RCS IDs.


(joerg)
diff -r1.53 -r1.54 pkgsrc/pkgtools/pbulk/Makefile
diff -r1.15 -r1.16 pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf
diff -r1.6 -r1.7 pkgsrc/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date

cvs diff -r1.53 -r1.54 pkgsrc/pkgtools/pbulk/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/pbulk/Makefile 2009/06/07 18:07:00 1.53
+++ pkgsrc/pkgtools/pbulk/Makefile 2009/06/08 16:02:52 1.54
@@ -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
3DISTNAME= pbulk-0.39 3DISTNAME= pbulk-0.40
4COMMENT= Modular bulk build framework 4COMMENT= Modular bulk build framework
5 5
6PKG_DESTDIR_SUPPORT= user-destdir 6PKG_DESTDIR_SUPPORT= user-destdir
7 7
8.include "../../pkgtools/pbulk/Makefile.common" 8.include "../../pkgtools/pbulk/Makefile.common"
9 9
10USE_TOOLS+= awk:run bzip2:run digest:run gzip:run ident:run make:run \ 10USE_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
12DEPENDS+= rsync-[0-9]*:../../net/rsync 12DEPENDS+= rsync-[0-9]*:../../net/rsync
13DEPENDS+= pbulk-base>=0.38:../../pkgtools/pbulk-base 13DEPENDS+= 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"
18TARGET_MAKE= ${MAKE} 18TARGET_MAKE= ${MAKE}
19.else 19.else
20TARGET_MAKE= $${prefix}/bin/bmake 20TARGET_MAKE= $${prefix}/bin/bmake
21.endif 21.endif
22 22
23NEATO= ${PREFIX}/bin/neato 23NEATO= ${PREFIX}/bin/neato
24 24
25SUBST_CLASSES+= tools 25SUBST_CLASSES+= tools
26SUBST_STAGE.tools= post-patch 26SUBST_STAGE.tools= post-patch
27SUBST_MESSAGE.tools= Fixing references to tools 27SUBST_MESSAGE.tools= Fixing references to tools
28SUBST_FILES.tools= pbulk.conf scripts/build scripts/build-client-start \ 28SUBST_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
36SUBST_VARS.tools= AWK BZIP2 CHOWN DIGEST GZIP_CMD IDENT MAIL_CMD NEATO \ 36SUBST_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
41CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf 41CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf
42 42
43PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf 43PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf
44PBULK_CONFIG_VERSION= 0.34 44PBULK_CONFIG_VERSION= 0.34
45 45
46INSTALLATION_DIRS= bin libexec/pbulk share/examples/pbulk 46INSTALLATION_DIRS= bin libexec/pbulk share/examples/pbulk
47USE_BSD_MAKEFILE= yes 47USE_BSD_MAKEFILE= yes
48 48
49BUILD_DIRS= scripts 49BUILD_DIRS= scripts

cvs diff -r1.15 -r1.16 pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf (expand / switch to unified diff)

--- pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf 2008/09/16 18:21:30 1.15
+++ pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf 2009/06/08 16:02:52 1.16
@@ -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#
6config_version=@PBULK_CONFIG_VERSION@ 6config_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#
11base_url=http://www.pkgsrc-box.org/reports/current/DragonFly-1.8 11base_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
69varbase=/var 69varbase=/var
70 70
71# The following programs must NOT be inside ${prefix} 71# The following programs must NOT be inside ${prefix}
72pkg_info=@PKG_INFO_CMD@ 72pkg_info=@PKG_INFO_CMD@
73pkg_add=@PKG_ADD_CMD@ 73pkg_add=@PKG_ADD_CMD@
74pkg_delete=@PKG_DELETE_CMD@ 74pkg_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#
79bzip2=@BZIP2@ 79bzip2=@BZIP2@
80digest=@DIGEST@ 80digest=@DIGEST@
81gzip="@GZIP_CMD@" 81gzip="@GZIP_CMD@"
82ident=@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.
85make=@TARGET_MAKE@ 84make=@TARGET_MAKE@
86mail=@MAIL_CMD@ 85mail=@MAIL_CMD@
87neato=@NEATO@ 86neato=@NEATO@
88rsync=@PREFIX@/bin/rsync 87rsync=@PREFIX@/bin/rsync
89sed=@SED@ 88sed=@SED@
90tar=@TAR@ 89tar=@TAR@
91 90
92loc=${bulklog}/meta 91loc=${bulklog}/meta
93 92
94pbuild=@PREFIX@/bin/pbulk-build 93pbuild=@PREFIX@/bin/pbulk-build
95presolve=@PREFIX@/bin/pbulk-resolve 94presolve=@PREFIX@/bin/pbulk-resolve

cvs diff -r1.6 -r1.7 pkgsrc/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date (expand / switch to unified diff)

--- pkgsrc/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date 2009/03/06 15:53:21 1.6
+++ pkgsrc/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date 2009/06/08 16:02:53 1.7
@@ -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
37if [ "${config_version}" != "@PBULK_CONFIG_VERSION@" ]; then 37if [ "${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
41fi 41fi
42 42
43pkg="${packages}/All/$1.tgz" 43pkg="${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" ]
51done 51done
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.
56shift 56shift
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