summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2005-11-18Collapse two .for blocks to improve readability:tv1-14/+3
_ULIMIT_CMD to use a ${...:@var@loop ...@} construct _ACCEPTABLE to use a !empty(var:Mfoo) conditional
2005-11-18Use :D and :U constructs in a few more places to collapse some .if definedtv1-36/+8
blocks to a more parallelism-readable state.
2005-11-18Simplify the _MASTER_SITE_{BACKUP,OVERRIDE} settings a bit by using a :Dtv1-12/+3
construct rather than .if defined(), and changing := to =.
2005-11-18The "Building packages" section has been split up into "Building therillig1-7/+11
packages" and "Generating the report".
2005-11-18Added a new section called "Generating the report". Moved the FTP*rillig1-9/+11
variables into that section, since they have nothing to do with uploading the binary packages.
2005-11-18Revert the change in 1.77, which does not work correctly.agc1-15/+11
However, this does not help people who are doing bulk builds in sandboxes via read-only nullfs mounts. A correct, long-term solution to this needs to be found.
2005-11-18- The text/plain report is generated using printf() instead ofrillig1-34/+33
formline(). This prevents long package names from being trimmed. - Removed the "-p e" command line option from the pax(1) command line. This makes it possible to run mk/bulk/post-build as different user from the one who did the actual build.
2005-11-18Added a few FIXMEs at places where this program might fail unexpectedly.rillig1-1/+5
2005-11-18Renamed append to append_flag. Removed superfluous quotes around thatrillig1-5/+4
variable. As it is controlled completely by this program, they are not needed.
2005-11-18Don't accept anything besides the known options on the command line. Asrillig1-7/+2
no additional parameters are used it's better to reject them.
2005-11-18- Added section headings.rillig1-29/+34
- Renamed DEBUG to debug_flag, as it is not modifiable via the environment. - Removed trailing white-space from the --help output. - Removed the clean_and_exit function, as it had been practically unused. - Replaced some "if"s with "case"s to avoid line noise.
2005-11-18Code cleanup, bugfixes and separation of PKGSRCDIR and BULKFILESDIR.rillig1-24/+88
- Added section headings to make reading the code more efficient. - Added bp_die() for uniform error messages. - Added sanity checks: - $BULK_BUILD_CONF must be a regular file. - Protect against spurious output from the bulk.conf file. - Check that configuration variables are defined, non-empty and do not contain newlines. - Properly extract MAKECONF from the bulk.conf file when getting the mk.conf variables. - Protect against spurious output from BMAKE show-vars. - Fixed the use of undefined values ($startdate). - Changed some calls to my_system() to a more secure form. - Check if the calls to chdir() actually work. - Look for the BROKENFILEs in BULKFILESDIR instead of USR_PKGSRC. - Changed postfix conditions to prefix conditions. Example: do_foo() if $bar; ==> if ($bar) { do_foo(); }
2005-11-18If the bulk build is taking place in a sandbox, then typically read-onlyagc1-11/+15
nullfs mounts are used (on NetBSD). Only attempt to install new pkg_install tools if the bulk build is not taking place in a sandbox. This is a quick and dirty hack to allow sandboxed bulk builds (the majority of cases, I suspect) to operate properly once again.
2005-11-18Corrected the comment above BULKFILESDIR. It is not only used for therillig1-2/+3
global log files but also for the package-specific ones.
2005-11-18Properly indented preprocessing directives.rillig1-3/+3
2005-11-18Allow FORCEBROKENFILE files to be created in either PKGSRCDIR orrillig1-3/+6
BULKFILESDIR.
2005-11-17A warning is printed for every non-text file. This helps in detectingrillig1-1/+3
broken file(1) databases. It also gives an indication of whether this test is necessary at all.
2005-11-17Properly quoted variables.rillig1-21/+17
2005-11-17To support variants of make that run the shell so 'set -e' is true (shellerh1-3/+3
exits on any command failing), add a '|| ${TRUE}' when running the check-vulnerable target in do-fetch.
2005-11-17Back out the previous change. The output _will_ be visible to the user.erh1-4/+4
See the "*)" case in the do-fetch target.
2005-11-17The message that audit-packages is out-of-date is printed on stderr insteadrillig1-4/+4
of stdout because the latter would not show up to the user.
2005-11-17Only show the message about fiddling with mk.conf if the output oferh1-3/+5
check-vulnerable actually contains some vulnerability ids.
2005-11-17Minimum audit-packages version is _1_.40, not 0.40erh1-3/+3
2005-11-17Clarified the wording of the comment regarding the use of ".if" and ".for"rillig1-3/+4
in MAKECONF.
2005-11-17Don't set SKIP_AUDIT_PACKAGES unconditionally to "no". Because this filerillig1-2/+2
is included _after_ mk.conf, it could not be overridden in that file.
2005-11-16Changes for separation of BULKFILESDIR and PKGSRCDIR.rillig1-26/+53
- Added a bunch of internal variables that determine the correct places for the build log files of the current package. - Added section headings. - Moved a sanity check out of the configuration section to not confuse the reader. - mk/bulk/print{depends,index} are called with two arguments, which allows separation of BULKFILESDIR and PKGSRCDIR. - Replaced uses of BUILDLOG, BROKENFILE and BROKENWRKLOG with their internal counterparts, which use ${BULKFILESDIR} instead of ${PKGSRCDIR}.
2005-11-16Changes for enabling separate BULKFILESDIR and PKGSRCDIR.rillig1-6/+13
- The main .make file is stored in ${BULKFILESDIR} instead of ${PKGSRCDIR}. - The PKGLIST variable from the configuration file is passed to the bulk-cache command in the environment. There are very few variables left that have to be exported via export_config_vars(). Maybe that function can be avoided alltogether.
2005-11-16Made printdepends very similar to printindex, as both iterate over allrillig1-53/+114
pkgsrc packages, collecting different information. - BMAKE is taken from the environment instead of querying `uname -s`. - package-specific log files can be saved in a directory tree different from PKGSRCDIR. - Added sanity checks for BMAKE, bulkfilesdir and brokenfile. - The .pkglist cache is saved in ${BULKFILESDIR} instead of ${PKGSRCDIR}. - Reformatted the diagnostics.
2005-11-16As I'm not sure for what things ${BULKFILESDIR}/${BROKENFILE} is used,rillig1-2/+2
error messages from failed "cd" commands simply go to stderr.
2005-11-16Another rewrite:rillig1-21/+65
- Changed the implementation how package-specific log files are generated. No user-visible changes. - Stricter preconditions: - bulkfilesdir must be an absolute path. - brokenfile must not contain slashes. - The .pkglist file is taken from BULKFILESDIR, not from PKGSRCDIR. - Error messages use the prefix "[printindex]" instead of "===>", as the latter is already reserved for pkgsrc. Everything else would be confusing. - If a "cd" into a package directory fails, an error message is written to ${BULKFILESDIR}/${BROKENFILE}.
2005-11-16Missed a couple of underscores. Add them.erh1-3/+3
2005-11-16Improve the handling of allowed vulnerabilities. Instead of the singleerh3-24/+46
ALLOW_VULNERABLE_PACKAGES settings that applies to all packages, there can now be per-package lists of allowed vulnerability ids: ALLOW_VULNERABILITIES.<pkgname>=<space separated list of vulnids> To avoid duplication of code, audit-packages is now used to do these checks. It can be skipped altogether by setting: SKIP_AUDIT_PACKAGES=yes
2005-11-16- Improved the "man page" comment a little.rillig1-17/+14
- Renamed the second parameter from "brokenbasedir" to "bulkfilesdir". The latter name is already used in bsd.bulk-pkg.mk for the same purpose. - Renamed "cwd" to "pkgsrcdir" for the same reason.
2005-11-16Interix cannot use the generic mksandbox procedure. Exit with error.tv1-1/+6
(A future Interix-specific mksandbox procedure is in work.)
2005-11-16Add lo and ss locale directories, used by the upcoming audio/amarokseb13-13/+117
update.
2005-11-15Rewrote the _PATH_CMD command, which could not handle a PATH environmentrillig1-5/+8
variable before if it had multiple adjacent white-space characters in it. Removed the dependency on awk(1), as a simple shell script can do this job, too. Another change is that all kinds of weird pathnames can be used for PREPEND_PATH, like /bin, "/bin/Program Files", "/ ", /foo\ bar, and so on. This had not been possible before, too. Related to PR 32079. Ok'ed by jlam.
2005-11-15make install doesn't work when updating pkg_install. Recommend make updategavan1-2/+2
instead.
2005-11-15Correct the file name in comments.minskim1-2/+2
2005-11-15Allow white-space in the PATH environment variable. Fixes PR 32079. Therillig1-3/+3
shell quoting still isn't completely correct for some other variables. This needs to be fixed, too.
2005-11-15Define the user-settable variable TEX_DEFAULT in defaults/mk.conftonio2-5/+9
The default value is still teTeX2
2005-11-14Fixed singleton variable which had been left over by one of the lastrillig1-2/+2
changes.
2005-11-14Removed the code for printing progress information again, as printindexrillig1-17/+1
is mostly used in batch mode. Impatient users should count the number of lines in the output file if they can't wait.
2005-11-14Removed trailing white-space.rillig2-5/+5
2005-11-14Removed trailing white-space.rillig2-11/+10
2005-11-14Removed trailing white-space from a comment.rillig1-2/+2
2005-11-14Add PRINT_PLIST_AWK patterns for bibtex directories.minskim1-2/+2
2005-11-13Add descriptions for new options.mk in ircd-hybridadrianp1-1/+4
2005-11-13Renamed spamassassin options to follow the naming conventions.heinz1-5/+6
2005-11-13Update a lot of the IRCD_HYBRID_* options as we are now on 7.1 in pkgsrcadrianp1-109/+25
2005-11-13Reverted the change that moved the definition of MANINSTALL from mk.conf torillig2-7/+7
bsd.prefs.mk. Alistair has told me that Stoned had told him that MANINSTALL actually belongs to mk.conf.