Commit graph

48 commits

Author SHA1 Message Date
wiz
2d426e62df Get rid of support for vulnerable/ directory. 2010-04-10 21:44:44 +00:00
wiz
4ee018a5f8 Revert unintended commit. 2010-03-21 15:31:41 +00:00
wiz
cddc694dbb Depend on fixed version of xz. 2010-03-21 10:52:29 +00:00
spz
d8a98af902 don't upload to a 'vulnerable' subdir any more 2010-03-18 08:58:28 +00:00
sketch
cc9b709684 Make the bulk scripts which use 'set -eu' actually work. 2008-11-19 16:27:14 +00:00
joerg
1375bd1199 Remove remaining compat code for old pkg_install versions. 2008-03-15 16:27:42 +00:00
rillig
7fca192e2e Replaced all references to pkglint with lintpkgsrc, which has its own
package since a few days.
2008-01-04 15:49:07 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
adrianp
35f7e128c2 Add --config <file> from build script 2007-07-25 12:00:21 +00:00
adrianp
554cf5daf1 Make sure PKG_INFO is set 2007-07-25 10:57:44 +00:00
adrianp
9b5c38d79d Add support for the upcoming pkg_install-20070714 which now includes
audit-packages.
2007-07-14 17:17:45 +00:00
martti
e2610fb8c8 Remove trailing tabs. 2006-12-15 13:15:06 +00:00
martti
2cc4216d5e Remove trailing spaces. 2006-12-15 12:46:23 +00:00
rillig
be43e26193 Due to a misunderstanding of mine, preventing to upload restricted
binary packages has not worked in the last few months. Now I fixed the
rsync command line to use --files-from instead of --include-from, which
does the right thing.

Tested in a directory of about 20 binary packages, including one that is
restricted. Everything worked as expected.

Fixes PR 35199.
2006-12-07 23:31:48 +00:00
rillig
dd2923d156 When installing packages, first "cd $USR_PKGSRC" to be independent of
the current working directory.

See http://mail-index.netbsd.org/tech-pkg/2006/08/08/0006.html
2006-08-10 17:58:10 +00:00
rillig
5b2a5cfec6 Rewrote upload to use the newly introduced sort-packages program.
While here, ...
- Added stricter checking by using "set -eu".
- The bulk build configuration file is properly included, and the
  MAKECONF definition that it may contain is properly exported.
- All progress messages and error messages are prefixed by "upload>",
  so that it is obvious where the messages come from.
- Since extracting the make(1) variables takes quite a long time, print
  an informational message before doing that.
- Removed the use of the error-prone lintpkgsrc to detect whether a
  package is restricted or vulnerable.
- If an error occurs, the upload program returns an exitcode of 1,
  which is common among Unix utilities.
- Removed almost all pipe operators, since they tend to hide program
  failures.
- All error messages are redirected to stderr instead of stdout.
2006-08-01 13:16:41 +00:00
dmcmahill
f1ac5f909e - add a -h|--help flag
- add a -n|--no-upload flag which does everything but actually executing
  the upload to help see what would happen

- add a -d|--debug flag to preserve the temporary files to help with
  debugging

- add a -V|--version flag
2006-08-01 00:53:24 +00:00
jschauma
a380b42fa0 - use ${BMAKE} instead of 'make' in one instance
- if we can't build one of the required packages, bail out
2006-07-30 14:31:10 +00:00
joerg
abd93e2085 Restore ls -t | grep idiom, the whole package list is too big for the
argument list on at least on OS.
2006-06-22 11:09:18 +00:00
dillo
f2d9a1c52f Adapt to create pkg_summary file via pkg_info -X. Prompted and
reviewd by joerg.
2006-06-02 22:01:46 +00:00
joerg
88a346cbc7 Add an option (MKSUMMARY) to create pkg_chk index for binary-only updates
during mk/bulk/upload. Disabled by default.
2006-03-28 10:56:52 +00:00
grant
91a2d8e88e fix some non-portable statements, allowing this to work properly
on Solaris.
2005-07-28 00:37:43 +00:00
wiz
e86bd09e3c Changes to the upload script:
vulnerable packages are uploaded directly into the vulnerable subdir.

While here:
quote variables
better handling of the temporary directory
remove some backwards compatibility code that's been here long enough
opsys-specific package handling was doing the same as non-opsys
specific, so fold them together.

Written together with dillo.
2005-05-08 13:29:09 +00:00
jschauma
b4cb11f8f8 s/upto date/up-to-date/ 2005-04-30 21:35:06 +00:00
jschauma
3751e8f33e uncomment the checksums for IRIX
(the commented version was committed by mistake)
2005-04-10 21:44:04 +00:00
hubertf
cb95f0b61b If SIGN_AS is not set, remind the user to please sign the checksum
files manually.

Suggested and OK'd by jschauma@
2005-03-30 22:36:18 +00:00
hubertf
1910d8dbb2 Before calculating checksums, print a line that says what's happening.
With a slow NFS server (as mine), this can take a lot of time.
2005-03-30 22:26:37 +00:00
jschauma
0c0134061b Per default, only create md5 and sha1 checksums.
(These are available on all platforms via digest(1).)
Set commands for other checksums on a per OPSYS basis.

Set MKSUSM=yes back as the default.
2005-01-24 15:00:48 +00:00
jschauma
bb18a86029 Add bits to allow bulk-builders to generate checksums for the binary
packages they upload (by setting the optional variable MKSUMS=yes) and,
also optionally, PGP signing them (by setting SIGN_AS=username@NetBSD.org,
for example).
2005-01-24 03:41:34 +00:00
tv
913dfa54a2 Add LINTPKGSRC_CACHE support to reuse .lintpkgsrc.db created by pre-build.
"cd" to $USR_PKGSRC automagically so this can be called from any dir.
2005-01-20 02:02:50 +00:00
hubertf
5420388150 Deprecate RSYNC_DST_SPECIFIC and RSYNC_DST_OTHER and replace them
by RSYNC_DST. Warn if any of them is not set properly, and in
general adjust to the new layout on the FTP server.
2004-04-19 18:39:09 +00:00
hubertf
307e455bf2 Catch UPDATE_VULNERABILITY_LIST being unset, default to be conservative
and run it if it's not explicitly set to "no"
2004-04-12 13:01:52 +00:00
hubertf
51c65d9891 Enforce vulnerability list being installed & correct & upto-date
before trying to upload anything.
2004-03-16 13:55:51 +00:00
grant
b6f7f60e16 s/netbsd.org/NetBSD.org/ 2004-02-25 09:20:59 +00:00
hubertf
4b44008c84 Add RCS ID 2004-02-16 20:25:35 +00:00
sketch
122c819022 Replace hardcoded '/usr/pkgsrc' in comments. 2003-12-10 13:59:06 +00:00
sketch
4324dba117 Missing terminating quote. 2003-12-03 17:49:33 +00:00
jklos
bc9344585a Added text describing major.minor-latest directories for binaries built
from pkgsrc current.
2003-08-19 08:55:53 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
hubertf
fdd884a853 now REALLY use the right dir... doh 2003-04-22 14:35:57 +00:00
hubertf
7da5db08da Make sure binary pkgs are found :) 2003-04-22 14:31:18 +00:00
cjep
290d5262aa Set BATCH=1 and set DEPENDS_TARGET. (BATCH=1 is certainly needed for
the bulk-install target to work.)
2003-04-21 16:47:37 +00:00
agc
9a4f22c0ba Make these scripts useful on platforms other than NetBSD by using a BMAKE
environment variable, which contains the name of the make(1) program to
invoke - suggestion by Julien Letessier some time ago, the confusion mine,
since I thought he was referring to something else completely.

Don't rely on there being a POSIX tr(1) in the path by default - test
explicitly for both "yes" and "YES".

Set the default for PRUNEDISTFILES to "no", since we can't assume that
the user wants us to delete something which he may have been keeping
around, and there are other ways of accomplishing this aim (lintpkgsrc
-o, for example).

Clean up some superfluous white space at the end of lines.
2002-08-07 10:56:11 +00:00
agc
ccff9099bc Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
references of the pkglint package.

_PKGSRCDIR is an internal definition in bsd.pkg.mk, and a few packages
which would like to refer to other packages in the build tree. It should
not be set by users, but neither should it stop a user from building a
package if it is defined, so make it obvious that this is the case.
2001-12-15 20:25:34 +00:00
dmcmahill
47460c416e consolidate a duplicated part of the script. 2001-07-09 10:24:41 +00:00
dmcmahill
5e895a7c16 when saving the rsync script for later, be sure and save the starting
directory too.
2001-07-09 10:08:38 +00:00
dmcmahill
7bb464e019 teach the upload script about OSVERSION_SPECIFIC packages so one can put
them in the right place.  For example, a collection of binary packages can
now put uploaded with most going to the major.minor directory and the
OSVERSION_SPECIFIC ones going to the major.minor.patch directory.

still todo:  the destination settings should probably be moved out of
build.conf so the same build.conf can be used by multiple machines of
different MACHINE_ARCH's at the same time.  Perhaps these should be
a command line option to 'upload' instead.
2001-07-08 14:36:56 +00:00
hubertf
81cdec4cf4 Add a script that I use to upload binary pkgs to the FTP server 2001-06-23 23:27:18 +00:00