Commit graph

48 commits

Author SHA1 Message Date
yyamano
3fd6d97d03 Remove STRIPFLAG to fix pkg/15467.
It was replaced with _STRIPFLAG_INSTALL and moved to defs.*.mk.
2002-05-29 14:55:22 +00:00
fredb
2f53857f29 Generalize the handling for packages where "fetch" and "fetch-list"
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-04 19:41:03 +00:00
fredb
8527784dd6 Comprehensive update to the fetch-list target (and friends), incorporating
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-28 14:42:39 +00:00
abs
6dd01d2785 lose some more pkg/ references 2001-11-28 10:21:46 +00:00
tron
8d0e937ff7 Add a new "show-vars" target which allows to display several makefile
variables at once.
2001-10-26 21:42:44 +00:00
wiz
7c4ccd33f6 Back out that part, not intended to be committed just yet 2001-03-06 16:14:35 +00:00
wiz
afcceaff60 Move PKGTOOLS_VERSION check to bsd.prefs.mk for speedups in recursive tree walks.bsd.pkg.mk bsd.prefs.mk
Bump required version number of PKGTOOLS to 20010306 for the latest bugfixes
and the -V option support.
2001-03-06 16:00:15 +00:00
wiz
1b7f0d246f Change COMMENT handling:
COMMENTs are now a variable in the Makefile instead of a pkg/COMMENT
file. The COMMENT var should be in the maintainer block after the
homepage.
Modify bsd.pkg.mk, pkglint, url2pkg, and port2pkg (last one untested)
for the new behaviour. Document new state in Packages.txt.
This should save lots of inodes, and lots of time when untarring/updating.
Idea by Alistair Crooks.
For the time being, accept pkg/COMMENT instead of a COMMENT var to avoid
a flag day.
2001-02-16 13:06:17 +00:00
tv
03c1600fe7 Add "show-var" to the list of recursable targets. 2001-01-13 15:35:53 +00:00
hubertf
d0dc50dff7 Add bulk-package and bulk-install targets so people can invoke these
in pkgsrc or pkgsrc/category now.

The install and package targets are still left in, but deprecated now.
2000-07-28 00:54:06 +00:00
mycroft
5b3eca4bf1 /bin/echo -> echo. This file appears to have NetBSD-specific paths already,
so I'm not worried about .ifdefing it at the moment.
2000-06-03 21:18:47 +00:00
mycroft
3752ab5b8e Pass down ${MAKEFLAGS}. 2000-06-03 15:25:16 +00:00
hubertf
ad6c4dd126 Garbage collect.
Now that the procedure for building in a package and in a category is the
same, there's no longer any need to differentiate between the two cases.
2000-05-29 00:54:25 +00:00
dmcmahill
3154113d32 Do not abort compilation of several categories if building a single category
fails.
2000-05-28 12:42:26 +00:00
agc
ef268dcf91 Define a new target, "show-pkgsrc-dir", which prints the directory
from which an installed package can be re-installed.  This can be used
to build up a list of host specific packages, which is useful, for
example, in re-building all packages on a machine for a.out to ELF
transition.
2000-05-11 11:23:20 +00:00
abs
b6140f538f Fix off by one count of packages in a category in README.html 1999-12-15 15:52:17 +00:00
abs
ece830ebfe Add total number of packages to the category README.html 1999-12-06 23:40:55 +00:00
agc
afbb63a318 Pass the makepatchsum target down to submakes. 1999-07-09 13:15:24 +00:00
agc
d05adf7155 Add a show-downlevel target, which shows output of the form:
...
        ===> package security/sudo
        sudo package: sudo-1.5.7p4 installed, pkgsrc version sudo-1.5.9p1
        ===> package security/tripwire
        ===> category shells
        ...

for installed packages whose version does not match that in pkgsrc. No
output is produced if the package is not installed. This allows an easy
overview of the packages installed on a machine which need to be upgraded.

Also make minor modifications to the SUBDIRUSE target for Solaris.
1999-07-02 12:56:32 +00:00
agc
c6dd955c2b Add a "show-distfiles" target, used to show the distfiles and patchfiles
(including any subdir) for a package. If ${IGNORE} is set, for any reason,
do not print anything. The output is relative to ${DISTDIR}.

This target can be used to identify out of date distfiles and patchfiles
in ${DISTDIR}, in conjunction with suitable filters.
1999-06-28 11:42:28 +00:00
tron
ca3b296af2 Define "${ECHO_MSG}" so that the patch from PR pkg/7545 doesn't break
(at least) a recursive "make clean".
1999-05-17 23:34:37 +00:00
tron
edc762690c Fix broken index file creation. Patch suppled by NAKAJIMA Yoshihiro
in PR pkg/7545.
1999-05-17 22:24:15 +00:00
hubertf
5df287ffd4 DUDS is expected to be a a make variable, not a shell variable 1999-03-28 03:56:32 +00:00
hubertf
5619befc40 Comment that targets listed in $PKG_MISC_TARGETS are also regarded 1999-02-22 01:11:18 +00:00
hubertf
cb4b88bb46 Pull in mk.conf (via bsd.pref.mk), so that e.g. PKG_MISC_TARGETS can
be set there.
1999-02-21 01:24:22 +00:00
tron
2bfc513950 Add "cleandir" target. 1998-12-29 22:31:53 +00:00
hubertf
aeef2024b8 Add support for custom, per-category targets by setting PKG_MISC_TARGETS
This can be used to
 - enable execution of a non-standard target for all pkgs of a category,
   e.g. cd pkgsrc/benchmarks ; make benchmark
 - superceding standard-targets with custom versions, e.g. from
   /etc/mk.conf
1998-12-06 01:22:54 +00:00
agc
6c522c02de Add a cdrom-readme target, a clone of the readme target, for ease of use.
The URLs in the generated README.html files can be specified by overriding
the CDROM_PKG_URL_HOST and CDROM_PKG_URL_DIR definitions.
Document the targets, and clean up some English, in Packages.txt
1998-09-23 13:09:32 +00:00
lukem
8933f6caca support distclean in subdir makes 1998-07-26 03:25:54 +00:00
hubertf
b400acae4b Only update README.html if it has changed. 1998-07-13 20:39:32 +00:00
hubertf
bb4fb86735 Fix check if we're doing a package or a category (via PR 5687 by
Tim Rightnour).
1998-07-07 15:08:10 +00:00
hubertf
3f24a982fc Do not abort compilation of several packages if building a single package
fails. (Doing this via a "make -k" breaks things like dependent pkgs in a
nasty way)
1998-06-17 21:01:09 +00:00
hubertf
905e28799e Make these lists real tables 1998-05-29 03:25:51 +00:00
hubertf
6a1ef30378 Mark README.html as precious.
This will result in the pkgsrc/README.html _not_ being removed, even if
some "make readme" in any of the pkgs fails. (That's the reason there
was no toplevel README.html when I postet this first :)
1998-05-29 02:34:36 +00:00
agc
591b6bbf26 More cosmetic editing - PORTSTOP is now PKGSRCTOP 1998-05-15 12:14:24 +00:00
agc
abdead7f98 Fix botch in previous commit, as pointed out by Thorsten Frueauf.
Add missing semi-colon, and missing '$', both on the same line.
1998-05-14 14:27:47 +00:00
agc
ebaf10b588 s/make/${MAKE}/g
Use _THISDIR_, rather than DIRPRFX, in the same way as
src/share/bsd.subdir.mk, and pass _THISDIR_ down to any
subdirectories.
1998-05-14 11:52:01 +00:00
hubertf
fdd3aabd8c Enable deinstall target from here 1998-05-06 09:33:22 +00:00
agc
4d9b4e20bb Use relative paths within the pkgsrc tree, and remove PORTSDIR
definition accordingly.
Modify check in LIB_DEPENDS, RUN_DEPENDS and BUILD_DEPENDS, so that
the first component is considered to be a file name if it contains a
'/' character anywhere within it, not just the first character.
1998-04-24 09:15:57 +00:00
agc
3e01763fc4 Fix the names of these two files. 1998-04-15 10:45:05 +00:00
hubertf
16b5cca770 Fix PR 4884 by replacing STRIP with STRIPFLAG.
This addes yet another step towards bsd.pkg.mk. :)
1998-02-09 00:47:23 +00:00
agc
105023d3e6 Echo the directory name when doing a "make readme", so that progress
can be monitored.
1998-01-30 14:33:48 +00:00
hubertf
6bbb30d306 add mirror-distfiles target also here 1998-01-27 23:04:48 +00:00
agc
9456e71ade Add lines so that "make readme" in the top level pkgsrc directory, or
one if the categories directories, will call "make readme" in
any subdirectories.

I thought that this was suggested by Chris Demetriou, but I can't find
any PR backing this up.  So my apologies to the person who did suggest
this.
1998-01-08 10:59:47 +00:00
agc
41243ee1cb Modification by Bill Fenner which removes the embedded control
characters, and avoids the wrong interpretation of magic HTML
characters in DESCR files or categories.

Forwarded to me by Chris Demetriou, and refers to PR 4341.
1997-11-21 16:01:54 +00:00
thorpej
78968c27c9 /usr/pkg/src -> /usr/pkgsrc (per discussion w/ agc) 1997-09-25 19:09:32 +00:00
agc
6b32d05fa0 Change a path for NetBSD. Our PORTSDIR is /usr/pkg/src 1997-08-20 10:51:40 +00:00
agc
f3a1a1f048 Initial import of FreeBSD's ports makefiles. 1997-08-20 10:21:05 +00:00