summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2002-03-04Generalize the handling for packages where "fetch" and "fetch-list"fredb2-36/+52
only emit a message and don't actually fetch anything. This allows us to make the output of "fetch-list" for these packages consistent with other packages. While we're in here, integrate DYNAMIC_MASTER_SITES with the ${ORDERED_SITES} macro. The only functional change here is that ${MASTER_SITE_OVERRIDE} is now respected. Still to do -- something appropriate for "fetch-list" for these packages, like sourcing "getsites.sh" into the generated script. (Well, "package", but there are two others that do something similar in their "Makefile".) Also eliminate the misbegotten _FETCH_ALLFILES macro -- now that only "fetch" uses it, move it's functionality directly under "do-fetch".
2002-03-04Redirect errors from grep in fake-pkg to /dev/null so complaints about notjmc1-2/+2
being able to grep on a dir don't fly by and confuse people.
2002-03-04Add two new EXPERIMENTAL targets:agc1-1/+68
replace - this target updates a package in place, fixing up references to and from other packages to the updated package. undo-replace - undoes all the work of the previous replace operation. For this target to work, the ${WRKDIR} must be preserved. The replace target first makes a binary package of the existing installed package, then a copy of the +REQUIRED_BY file is taken, if it exists, and then the existing package is deleted. The new package is installed, and the preserved +REQUIRED_BY file is copied back into place, using its contents to modify the +CONTENTS files of all the packages which require it. The undo-replace shares code with the replace target, and does the same operation, but in reverse. Warnings are displayed when either of these targets is used, since they are experimental targets right now.
2002-03-04Adding PLIST filtering based on MANINSTALL's content for the shakeseb1-1/+15
of BSD-makefile'd packages. By tuning MANINSTALL, passing it to a package's build process by way of MAKE_ENV, one can retains the man related entries in ${PLIST_SRC} while keeping a correct generated ${PLIST}. This is mostly intended for packages being compiled on non-NetBSD platforms when "andoc man pages" are difficult or impossible to process i.e. depending on groff package is not realistic.
2002-03-03Add SILC_CLIENT_WITH_PERL, for silc-client 0.8 and uphubertf1-1/+6
2002-03-02Use show-all-depends-dirs-excl for build-depends-list target.wiz1-6/+6
Makes e.g. "make readme" awfully faster. TODO: Similar change for run-depends-list.
2002-03-01Require the new libtool.skrll1-2/+2
2002-03-01Fix for PR 15761 from Jonathan Perkin <sketch@rd.bbc.co.uk> - only printagc1-2/+4
the number of bytes about to be downloaded, as gleaned from the distinfo file, if a distinfo file exists.
2002-02-28Remove unused NEED_NCURSES code fragment.wiz1-5/+1
2002-02-28Comprehensive update to the fetch-list target (and friends), incorporatingfredb2-23/+164
many suggestions made by Bernd Ernesti on "tech-pkg". Closes PR pkg/15539. - - Partially revert 1.895, which made 'fetch-list' ape 'fetch', so instead check if a file exists on the building host before emitting anything for it into the generated script. Update to use the new 'fetch' procedure on the fetching host, once it is determined that the file is needed, and generally clean up the output, so that it's a human readable shell script with comments. - - Introduce utility target 'show-all-depends-dirs', to do the necessary recursing over dependencies quickly and correctly. Add a couple of variations to show how it's done, and bracket the whole thing with ".if make()", so it's invisible to the dependency graph for all the other targets. The key improvement over the old way, is that it utilizes an "awk" associative array to guarantee that no package subdirectory is visited twice. For the package with the hairiest dependency graph, "x11/gnome", this leads to something like a 1,000-fold improvement! - - "sort -u" over the result of 'fetch-list-one-pkg' goes bye-bye. The new "awk" post-processor begins emitting output as soon as there is a file to fetch, so the user doesn't have to wait for the whole thing to finish before he sees anything. - - Get rid of the old hook for non-recursing for a top-level 'fetch-list', which was never used. Previously, a top-level 'fetch-list' couldn't work anyway, because the progress reports ruined the shell script. Remove 'fetch-list' from the targets that recurse from the top, and instead use a different 'fetch-list' target in "bsd.pkg.subdir.mk" to do the right thing. Currently, that right thing includes recursing in the single-category case, or if ${SPECIFIC_PKGS} is set, and not recursing in the top-level, all packages case (where it would be perfectly pointless).
2002-02-28When constructing the build version information, avoid problemsagc1-9/+13
when there is a filename with an embedded space in the directory. Fixes PR 15755 from Simon Burge (simonb@wasabisystems.com). Whilst I'm here, only include the build information for the package Makefile once.
2002-02-27Add _STRIPFLAG_CC and _STRIPFLAG_INSTALL to fix PR 15467.yyamano4-4/+24
I'll replace all STRIPFLAG in pkgsrc with STRIPFLAG_CC or STRIPFLAG_INSTALL.
2002-02-26Use massively simpler method to filter out libtool archives and get ridjlam1-12/+8
of the horrendous (non-portable) sed statement that did the same thing.
2002-02-25Print the size of the distfile before it is downloaded.agc1-1/+2
2002-02-25Explicitly recognize .tar.Z files so that they don't fall through intojlam1-2/+3
.Z handling.
2002-02-25* Turn _SHELL_EXTRACT into a "subroutine" for extracting an archive. Itjlam1-57/+55
extracts the contents of archive named by the shell variable "extract_file" based on the file extension of the archive. The contents are dumped into the current directory. * Unify the EXTRACT_CMD handling. We now define the default EXTRACT_CMD to be ${_SHELL_EXTRACT} (see above). Otherwise, if it's already defined in the package Makefile, then that EXTRACT_CMD is used to extract all of the archives. * Rearrange the locking code so that it's localized instead of interspersed in the extraction code. * Add EXTRACT_CMD definitions for files that are only compressed (foo.c.gz) that decompress the file into ${WRKDIR}.
2002-02-24Add share/locale/is (for guppi).wiz4-4/+20
2002-02-18Introduce new framework for handling info files generation and installation.seb2-14/+90
Summary of changes: - removal of USE_GTEXINFO - addition of mk/texinfo.mk - inclusion of this file in package Makefiles requiring it - `install-info' substituted by `${INSTALL_INFO}' in PLISTs - tuning of mk/bsd.pkg.mk: removal of USE_GTEXINFO INSTALL_INFO added to PLIST_SUBST `${INSTALL_INFO}' replace `install-info' in target rules print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info' - a couple of new patch files added for a handful of packages - setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it - devel/cssc marked requiring texinfo 4.0 - a couple of packages Makefiles were tuned with respect of INFO_FILES and makeinfo command usage See -newly added by this commit- section 10.24 of Packages.txt for further information.
2002-02-16Don't mention 'Letterdj' as valid PAPERSIZE, pkg/15599.wiz1-2/+2
2002-02-15mkdir -> ${MKDIR}skrll1-2/+3
rmdir -> ${RMDIR} rm -> ${RM} (${RM} added to PLIST_SUBST) chmod -> ${CHMOD} chown -> ${CHOWN}
2002-02-13bin-install: use $MACHINE_ARCH over calling unamehubertf1-2/+2
2002-02-13n-install: use uname(1) over sysctl(1) to find out machine archhubertf1-2/+2
2002-02-13Implement DYNAMIC_MASTER_SITESabs1-1/+10
If you need to download from a dynamic URL you can set DYNAMIC_MASTER_SITES and a 'make fetch' will call files/getsite.sh with the name of each file to download as an argument, expecting it to output the URL of the directory from which to download it. graphics/ns-cult3d is an example of this usage.
2002-02-08Use unproven-pthreads/buildlink.mk instead of just depending on thejlam1-2/+2
package.
2002-02-07Create a new knob: PKG_SYSCONFVARjlam1-5/+17
PKG_SYSCONFVAR is the special suffix used to distinguish any overriding values for a particular package (see next item). It defaults to ${PKGNAME}, but for a collection of related packages that should all have the same PKG_SYSCONFDIR value, it can be set in each of the package Makefiles to a common value. PKG_SYSCONFDIR.${PKG_SYSCONFVAR} overrides the value of ${PKG_SYSCONFDIR} for packages with the same value for PKG_SYSCONFVAR. Package maintainers may want to set PKG_SYSCONFVAR to a common value for related packages, e.g. all of the amanda packages set PKG_SYSCONFVAR=amanda so that the PKG_SYSCONFDIR for all of them may be tweaked by just setting PKG_SYSCONFDIR.amanda in /etc/mk.conf.
2002-02-05/bin/mkdir -> ${MKDIR}.skrll1-2/+2
Make the print-PLIST target output ${MKDIR} also.
2002-02-05Don't hardcode /usr/X11R6 when making directories or running X basedskrll1-1/+4
programs such as mkfontdir use ${X11BASE} instead. Also pick up a couple of /bin/chmod -> ${CHMOD}s
2002-02-05Obsolete SSH_CONF_DIR in favor of PKG_SYSCONFDIR.jlam2-7/+7
2002-02-04Added SAMBA_USE_LDAPmartti1-1/+6
2002-01-31Deprecate POSTFIX_USE_SASL_AUTH in favor of more generic USE_SASL.jlam2-7/+11
2002-01-29In the show-vulnerabilities and show-vulnerabilities-html targets, tightenagc1-3/+3
down further the regexp used to match a vulnerable package.
2002-01-28Fix PR 15395, whereby a package entry in the vulnerabilities file,agc1-5/+7
which shared a common prefix with a package being installed, would erroneously be flagged as having a vulnerability. (e.g. samba and sam).
2002-01-28Make sure that the decompression/extraction programs needed arejlam1-4/+6
automatically DEPENDed if EXTRACT_SUFX is set to a known suffix but EXTRACT_ONLY is set to an empty value. This should fix the problems for audio/guspatches and textproc/iso8879 in the 2002-01-28 i386 bulk-build results.
2002-01-28We've changed DEPENDS=foo-* into DEPENDS=foo-[0-9]* everywhere else butjlam1-8/+8
here, so correct that oversight.
2002-01-27Prevent /etc/mk.conf from being included by BSD-style makefiles used byjlam1-1/+6
packages themselves, as /etc/mk.conf may contain harmful settings for package builds. Just to clarify, /etc/mk.conf is still included by the Makefiles in pkgsrc, just not by the Makefiles used to build the software itself. This should fix pkg/15297 by gabriel rosenkoetter <gr@grappa.eclipsed.net>.
2002-01-27MAKE_ENV is the make environment passed down to the build process. Itjlam1-6/+6
shouldn't be set as the environment for a make process invoked at the package (${.CURDIR}) level during the install phase because it can contain harmful settings.
2002-01-27Recognize how to automatically extract .shar.gz, .shar.bz2, .shar.Z, andjlam1-3/+15
.shar distfiles.
2002-01-27x11-links version updated.markd1-2/+2
2002-01-25Optimize the code to extract distfiles based on the extract suffix byjlam1-19/+19
putting them all into one large case statement instead of successive if statements, and by removing the creation and constant testing of a temp file to mark when the distfile is extracted.
2002-01-24For NetBSD/alpha versions >= 1.5V add -mieee to both CFLAGS and FFLAGS.dmcmahill1-1/+9
This will pass -mieee to those package which obey CFLAGS and FFLAGS. paraphrasing an email from Ross: The executive summary is: if i386 uses it (and it does) then alpha should also, or some programs will SIGFPE out on alpha when they don't on i386. If anyone asks, the details are as follows: The actual effect of -mieee is to put a software completion code bit into every floating point instruction, and to put trap barrier instructions in the code as necessary to ensure that traps are delivered before branches or other instructions make it impossible to trace backwards to the trapping op. The code bits have little effect on the hardware, mainly what happens is that when the hardware and palcode deliver a trap, they tell the trap handler whether the faulting op had a completion code. If it did, the kernel is suppose to trace backwards, find the op, and interpret it in SW, doing all the wacky ieee stuff that most chips don't do, stuff like denormal arithmetic and the generation of magic values (infinity, NaN) and the sticky flags. We do all that now except for a couple of truly obscure things that SoftFloat didn't support and which I haven't yet added. (And these are things that happen ONLY when you are taking overflow and underflow traps, which no one has every really done AFAICT. If you have the default behavior of gradual underflow and nontrapping infinity generation, we do everything.) This brings up the question of -mieee libraries, but that's not a pkgsrc problem. (Except to the extent that I recommend that libraries from pkgsrc, like everything else, also be compiled with -mieee. And in the case of libraries, it might be worth individually modifying the Makefile for the "not easy" case.)
2002-01-23Be more pervasive with previous change.jlam1-4/+7
2002-01-23When copying config files, if the destination file already exists, thenjlam1-2/+3
tell user where the example file is located. Patch provided by Stoned Elipot <seb@netbsd.org> in private e-mail.
2002-01-23Continue the trend removing the temporary ${PKGDIR} workaround.seb1-7/+1
2002-01-22make sure FFLAGS ends up in MAKE_ENV as well as BUILD_DEFS. This allows youdmcmahill1-4/+4
to do make FFLAGS='-my -f -flags' and at least the pkgs which obey FFLAGS use them.
2002-01-22Also replace for @SETENV@ (/usr/bin/env).jlam1-1/+2
2002-01-21Change the messagezuntum1-2/+2
"Perhaps you forgot the -P flag to cvs co or update?" to "Perhaps you forgot the -P flag to 'cvs checkout' or 'cvs update'?"
2002-01-21Add QMAILDIR variable that defaults to /var/qmail, may be set in /etc/mk.confzuntum2-3/+9
Also substitute QMAILDIR in PLIST because more packages than just mail/qmail need it.
2002-01-21Add ${QMAILDIR} to MESSAGE_SUBST, as it is going to be used in all qmail-relatedzuntum1-2/+3
packages.
2002-01-20add some html markup to the .broken files (which now have .html extenstion).dmcmahill1-10/+12
The primary purpose is so when a package is broken due to broken depends, there are links to the build logs of the broken dependencies. Suggested by Brook Milligan on tech-pkg.
2002-01-19Add coarse-grained locking to pkgsrc builds, by means of a beefedagc6-17/+110
up version of the bare-bones code in PR 7590, from David Maxwell. The definition governing the type of locking used is PKGSRC_LOCKTYPE, which can take any of the values "none", "sleep", and "once". The default is "none". If "sleep" locking is used, and process A is building a package, when process B attempts to build the same package, process B will sleep for PKGSRC_SLEEPSECS seconds, and attempt to grab the lock again. Coarse-grained locking uses the OBJHOSTNAME definition to ensure that the PID space is regular for shlock(1) to do its work. The pkgsrc/pkgtools/shlock package has been provided for environments where shlock is not standard.