summaryrefslogtreecommitdiff
path: root/mk/scripts
AgeCommit message (Collapse)AuthorFilesLines
2005-06-01Recognize inet6 in PKG_SUPPORTED_OPTIONS as an indicatorwiz1-2/+2
that a package support IPv6 (for the README-IPv6.html generation).
2005-05-24Add more error checking. PACKAGES must exist. No extra command line args ↵dmcmahill1-1/+12
taken.
2005-05-24improve the message when an invalid cache file version is founddmcmahill1-2/+4
2005-05-24Improve error checking. Specifically, after a new cache file isdmcmahill1-7/+27
created in a temp directory, issue a warning if we fail to install it in the package directory. If the error happens on the top level (master) cache file, then error out. For a subdirectory, issue a warning and drop that directory from the master cache.
2005-05-22pass down FIND to genreadme.awk and binpkg-cachedmcmahill2-6/+7
2005-05-22use find ${DIR}/ -name \*${SUFX} instead of ls ${DIR}/*${SUFX} whendmcmahill1-4/+7
generating a list of possibles packages. Avoids proglems with too long of a command line for ls. While here change find to ${FIND}.
2005-05-20get rid of a spurious %%SUBDIR%% which found its way into the generated ↵dmcmahill1-2/+2
category README.html
2005-05-20Rework how the lookup of binary packages in the cache is performed.dmcmahill1-46/+50
As data for a given binary package is loaded, increment a count stored with PKGPATH as the index. Then use a psuedo-multidimensional array with PKGPATH and the # as the index. This allows for much faster lookups and scales linearly with the number of packages. The old way scaled as the product of the number of pkgsrc entries and the total number of binary packages. Not a pretty value. This makes the actual README.html generation part run about 3x faster. Approach suggested by soda.
2005-05-19make local variables in a few functions be localdmcmahill1-4/+7
2005-05-19allow spaces after the "=" in the .pkgcache files. This was noted withdmcmahill1-7/+7
some of the older packages on ftp.netbsd.org. For example, pkg_info -B ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5.2/vax/All/cascade-1.4.tgz will give OPSYS= NetBSD instead of OPSYS=NetBSD
2005-05-19- if the mv of the temporary cache file to the real one fails, usuallydmcmahill1-4/+18
due to a directory permissions error, then error out. - when the master cache has just been newly created, don't also report that the master cache is up to date. Both were suggested by Christian Hattemer.
2005-05-19if the top level package cache file does not exist then exit withdmcmahill1-1/+2
a fatal error. Noted by Christian Hattemer.
2005-05-18make use of the new tools framework via the prereq-readme package todmcmahill1-7/+21
extract tools needed for the README.html generation. Suggested by Johnny Lam and Rolland Illig.
2005-05-17Rework the README.html generation code. Major changes are:dmcmahill3-173/+543
- completely redo the code which decides on the machine architecture, operating system, and operating system version for the binary packages. The old way just used to directory names to take a guess. The new way creates a cache file containing meta-data for all the binary packages in each "All" directory. This cache file is consulted when generating the lists of available binary packages. The meta-data is obtained with pkg_info so it should always be correct even if you do something silly like mix OS_VERSION or MACHINE_ARCH packages up in the same directory. Among the benefits are: works when PACKAGES is not $PKGSRC/packages, works with a more or less arbitrary subdirectory structure, works when there are subdirectories for multiple operating systems. This portion of the fix should address PR25390. The cache files are only updated when the contents of an "All" directory changes or if the cache file format changes. There is some room for improving the updating of the cache files, but its not too bad the way it is. - fix up some of the awk code so that generadme.awk works with Solaris nawk as well as NetBSD's nawk and gawk (for pre-2.0 systems). - remove some "if ! foo" shell constructs to increase portability. - be more consistent with what variables get passed to mkreadme from make and which ones are determined automatically. Mostly this meant moving stuff into mkreadme to make it easier to run it standalone.
2004-11-12Don't expand .la files in PLISTs that are symlinks. The expansion shouldjlam1-2/+2
only occur with the real .la file. This avoids the problem noted by Greg Troxel in: http://mail-index.netbsd.org/tech-pkg/2004/11/12/0018.html
2004-10-05Check for presence of the libname listed in the libtool archive beforejlam1-2/+6
outputting it to stdout.
2004-09-21Don't exit on error if the *.la file is not a libtool archive.jlam1-11/+11
2004-09-21Add a lock_file function that generates lockfiles that are usable onjlam1-1/+57
NFS-mounted directories.
2004-09-10* Do the *.la expansion within the current _PLIST_AWK_SCRIPT framework.jlam1-17/+31
We no longer require that LIBTOOL_LA_FILES be defined in the package Makefile, and the libtool archives should once again be listed in the PLIST. * Add a new yes/no variable "LIBTOOLIZE_PLIST" to control whether to have bsd.pkg.mk automatically expand *.la files in PLISTs into the true library names represented by the libtool archives. * Rename the "transform-la" script to "print-la-libnames" which more correctly reflects its function. Many thanks to Todd Vierling for the original implementation and for his contructive comments on how to improve the changes in this commit.
2004-09-06Add a library of useful shell functions. There are functions forjlam1-0/+329
logging, backslash quoting, and two queue implementations: one entirely in memory and one using a file.
2004-08-16Add new variable LIBTOOL_LA_FILES, which may be used instead of listingtv1-0/+59
all of the .a, .la, .so, and .so.* files in the PLIST. This will autogenerate the PLIST entries based on the informaion in the .la file. This include print-PLIST support; if LIBTOOL_LA_FILES contains an installed .la, its entries will be elided from the output PLIST template.
2004-07-06Retire buildlink2, now that all packages using it have been converted towiz1-2/+2
buildlink3.
2003-09-23Use ${BMAKE} instead of make to make this work on non NetBSD platforms.yyamano1-2/+2
2003-09-11s/vulnerabilities/pkg-vulnerabilitesdmcmahill1-2/+2
2003-09-02Merge pkgviews-mk branch into the HEAD by running:jlam1-1/+1
cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-07-25- fix bug that gave an invalid entry in the homepage field when there isdmcmahill1-3/+13
no listed homepage. Thanks to Grant Beattie for noting this and providing a patch which I changed slightly. - fix a bug which put extra stuff in the categories field. Thanks to Grant for noting this.
2003-07-24- add HOMEPAGE as the last field in the INDEX file.dmcmahill1-30/+20
- make the paths be relative to PKGSRCDIR as opposed to absolute. - some cleanup/simplification of the awk code.
2003-07-23rework the INDEX file generation. The new approach speeds up things bydmcmahill1-0/+389
several orders of magnitude and 'make index' now takes 30 minutes or so instead of several days on my test machine. The approach now is to take one pass through every package and extract some key information including the explicitly listed dependencies. After the data is extracted, the dependencies are flattened in one step which avoids the extremely inefficient recursive make that was previously used.
2003-05-06Drop trailing whitespace. Ok'ed by wiz.jmmv4-73/+73
2003-03-21when there are no build depends, indicate this with "none" instead ofdmcmahill1-3/+11
having an empty list. Do the same for run depends. Suggested by Christian Hattemer in a private email.
2003-03-19- fix a bug in the HOMEPAGE link when the URL contains an ampersanddmcmahill1-41/+80
- fix a bug in which caused only packages listed as DEPENDS to show up in the 'packages needed to build' section. Now the BUILD_DEPENDS are also shown. Thanks to Christian Hattemer for noting this. - fix a bug which caused error messages claiming that category and top level README.html files could not be created even though they were created. This bug only showed up if an old README.html file did not exist. As part of this, clean up and unify the code which handles comparing the new README.html file to a possibly pre-existing one and only copying it over if there is a change.
2003-03-19fix a few 'strings split across lines' bugs which caused some dependenciesdmcmahill1-9/+4
to be dropped from the README.html files. Problem of missing dependencies noted by Christian Hattemer in a private email.
2003-02-09Open/close HTML mark-up in the correct order. Noted by Kevin P. Neal.wiz1-2/+2
2003-02-08Add backslash for a line continuation to fix "make readme" erroryyamano1-4/+4
on darwin. Approved by mcmahill.
2003-01-20fix a bug introduced by the last commit where a string was accidentallydmcmahill1-3/+2
split across a line. Thanks to Greg Woods for catching this.
2003-01-18Many white space and indenting fixes to bring this more in line withdmcmahill1-469/+553
/usr/share/misc/style. Prompted by a private email from Greg Woods, woods at weird dot com.
2003-01-15avoid the use of the gensub() function as it is a gawk extension notdmcmahill1-6/+7
found in other awk implementations. Patch provided by Greg Woods, woods at weird dot com, via private email.
2003-01-05add a -a|--append option to allow appending to an existing database instead ofdmcmahill1-4/+36
creating a new one.
2003-01-04expr -> ${EXPR}dmcmahill2-5/+7
2003-01-04move bulk/{mkreadme,genreadme.awk} to scripts/ as this is a more suitabledmcmahill2-0/+1131
location. They are not really part of the bulk build stuff.
2003-01-04add two scripts used for creating dependency databases. These scriptsdmcmahill2-0/+294
can be used anytime one needs to extract the complete dependency information for a package for example, when creating a README.html file for the pkg. The approach used by mkdatabase requires exactly one make call per package which makes it scale well to packages with large dependency trees that have many paths to the leaves.