opnsense-src/tools/tools
Lev A. Serebryakov 36cfb5d50f nanobsd: enhance fill_pkg.sh
NanoBSD has helper script "fill_pkg.sh" which links all packages and
ther dependencies from "package dump" (like /usr/ports/packages/All) to
specified director. fill_pkg.sh has some limitations:

1) It needs ports tree, which should have exactly same versions as
   "package dump".
2) It requires full paths to needed ports, including "/usr/ports" part.
3) It has assumptions about Nano Package Dir (it assumes, that it
   specified rtelative to current directory).
4) It does not have any diagnostics (almost).

This PR enhances "fill_pkg.sh" script in several ways:

1) Nano package dir could be absolute path.
2) Script understands four ways to specify "root" ports/packages:
   (a) Absolute directory with port (old one)
   (b) Relative directory with port, relative to ${PORTSDIR} or /usr/ports
   (c) Absolute path to file with package (with .tbz suffix)
   (d) Name of package in dump dir, with or without .tbz suffix

   These ways can be mixed in one call. Dependencies for
   packages are obtained with 'pkg_info -r' call, and are searched for
   in same directory as "parent" package. Dependencies for ports are
   obtained in old way from port's Makefile.
3) Three levels of diagnostic (and -v option, could be repeated) are added.
4) All path variables are enclosed in quotes, to make script work with paths,
   containing spaces.

Note: imp merged in the changes to fill_pkg.sh since this has been a PR.

PR:			151695
Reviewed by:		imp@
MFC After:		3 days
Differential Revision:	https://reviews.freebsd.org/D31101
2021-07-11 09:05:16 -06:00
..
aac Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
ansify Reencode files from latin1 to UTF-8. 2011-12-29 12:33:27 +00:00
ath [athstats] Add a tag to listen for beacon stuff 2021-05-22 15:54:44 -07:00
atsectl Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
bootparttest Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00
build_option_survey Increase size of working imgfile from 250MB to 4GB 2018-09-07 15:52:20 +00:00
cd2dvd Update several more URLs 2017-10-29 08:17:03 +00:00
cfi Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
commitsdb
crypto OCF: Remove support for asymmetric cryptographic operations. 2021-04-12 14:28:43 -07:00
cxgbtool Get tools/tools/cxgbtool to build with the latest clang. 2020-10-05 06:53:29 +00:00
decioctl Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
dmardump Add a dmardump utility to dump the VT-d context tables. 2016-08-09 19:06:05 +00:00
drm Revert drm2 removal. 2018-08-24 00:02:00 +00:00
editing
epfe
ether_reflect Fix a few mandoc issues 2020-10-09 15:14:19 +00:00
fetchbench Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
find-sb Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
fixwhite Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
gdb_regofs Remove ia64. 2014-07-07 00:27:09 +00:00
genericize Reencode files from latin1 to UTF-8. 2011-12-29 12:33:27 +00:00
gensnmpdef Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
git tools: Remove obsolete svn information. 2021-06-10 19:02:22 -06:00
hcomp Reencode files from latin1 to UTF-8. 2011-12-29 12:33:27 +00:00
html-mv
ifinfo Fix compilation on head and while here: 2020-11-30 15:04:35 +00:00
ifpifa Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
indent_wrapper Update usage: 2015-11-25 14:51:44 +00:00
intel-ucode-split intel-ucode-split: add -n flag to skip creating output files 2018-05-22 14:35:33 +00:00
ioat Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
ipw tools: minor spelling fixes. 2016-05-01 16:20:14 +00:00
iso
iwi Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
iwn iwnstats: fix build with clang and allow install under /usr/local/sbin 2021-04-20 18:07:56 +00:00
kdrv
kernelcruft
kerninclude Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
kernxref SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
kttcp Revert previous commit... 2012-10-10 08:36:38 +00:00
locale Fix generation of colldef source files for non-UTF-8 locales 2020-12-30 04:40:27 +09:00
makeroot revert r302146: makeroot: zero out subsecond component of time= keywords 2019-03-27 17:28:23 +00:00
man add script to help figure out what man pages need MLINKS updated... 2020-07-16 23:05:18 +00:00
mcgrab use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
mctest Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
mfi NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
mid
mtxstat Reencode files from latin1 to UTF-8. 2011-12-29 12:33:27 +00:00
mwl - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems() 2015-08-29 19:47:20 +00:00
nanobsd nanobsd: enhance fill_pkg.sh 2021-07-11 09:05:16 -06:00
ncpus Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
net80211 wlanstats: fix build 2021-04-20 19:31:44 +00:00
netmap netmap: pkt-gen: fix compilation issue 2021-06-15 21:33:07 +00:00
netrate Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
notescheck - Correct mispellings of word and 2013-04-17 11:48:46 +00:00
npe - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems() 2015-08-29 19:47:20 +00:00
pciroms Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
perforce add scripts for generating a diff from p4... 2014-08-27 18:56:12 +00:00
pirtool General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
portsinfo Update several more URLs 2017-10-29 08:17:03 +00:00
qrndtest apparently MAN was misspelled, fix.. 2015-02-05 21:56:23 +00:00
release
scsi-defects
shlib-compat tools: minor spelling fixes. 2016-05-01 16:20:14 +00:00
sortbench Add sortbench. 2018-04-19 21:53:57 +00:00
switch_tls Add kernel-side support for in-kernel TLS. 2019-08-27 00:01:56 +00:00
sysbuild sysbuild: Also copy /var/db/zoneinfo 2021-06-30 11:08:26 -06:00
syscall_timing Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
sysdoc Remove the Yarrow PRNG algorithm option in accordance with due notice 2018-08-26 12:51:46 +00:00
termcap
tinybsd gc pmtimer and apm 2020-08-31 19:47:30 +00:00
tionxcl NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
track The error syntax has changed. 2012-08-30 22:56:32 +00:00
tscdrift Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
umastat Fix build of tools/tools/umastat. 2017-04-26 17:58:10 +00:00
usb
usbtest DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
vhba Revert r253748,253749 2013-07-28 18:44:17 +00:00
vimage Fix a few mandoc issues 2020-10-09 15:14:19 +00:00
vop_table
vt Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
whereintheworld Reencode files from latin1 to UTF-8. 2011-12-29 12:33:27 +00:00
wtap tools: minor spelling fixes. 2016-05-01 16:20:14 +00:00
zfsboottest loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
README add script to help figure out what man pages need MLINKS updated... 2020-07-16 23:05:18 +00:00

# $FreeBSD$

This directory is for tools.

A tool is something which is sometimes useful, and doesn't fit any of
the other categories.

Please make a subdir per program, and add a brief description to this
file.

ansify		Convert K&R-style function definitions to ANSI style
ath		Tools specific to the Atheros 802.11 support
cfi		Common Flash Interface (CFI) tool
commitsdb	A tool for reconstructing commit history using md5
		checksums of the commit logs.
crypto		Test and exercise tools related to the crypto framework
cxgbetool	A tool for the cxgbe(4) driver.
cxgbtool	A tool for the cxgb(4) driver.
drm		Tools specific to the DRM/KMS device drivers.
editing		Editor modes and the like to help editing FreeBSD code.
epfe 		Extract printing filter examples from printing.sgml.
ether_reflect	An Ethernet packet reflector for low level testing.
find-sb		Scan a disk for possible filesystem superblocks.
gdb_regofs	A simple tool that prints out a register offset table
		for mapping gdb(1) register numbers to struct reg and
		struct fpreg offsets. The tool is useful on selected
		platforms only.
genericize	Turn a kernel config into something that can more easily
		be diffed against the appropriate GENERIC.
git		Tools to simplify the use of git by committers.
hcomp		Compress header files by removing comments and whitespace.
html-mv         Rename HTML generated filenames to human readable filenames.
ifinfo		Uses the interface MIB to print out all the information
		an interface exports in an ugly form.
indent_wrapper	Tool for style(9) checking SVN/GIT patches.
intel-ucode-split Tool to split Intel microcode into individual files.
iso             Tool to compare the iso3166 and iso639 files in
		/usr/share/misc with the data from the master sites.
iwi		Tools specific to the Intel PRO/Wireless 2200BG/2225BG/2915ABG
		support.
kdrv		KernelDriver; add/list/remove third-party kernel driver
		source to/in/from a kernel source tree.
kernelcruft	Shellscript to find orphaned *.c files in /sys
kerninclude	Shellscript to find unused #includes in the kernel.
kernxref	Shellscript to cross reference symbols in the LINT kernel.
kttcp		An in-kernel version of the ttcp network performance tool
man		Scripts useful for working on man pages.
mctest		A multicast test program
mid	 	Create a Message-ID database for mailing lists.
mwl		Tools specific to the Marvell 88W8363 support
ncpus		Count the number of processors
netmap		Test applications for netmap(4)
notescheck	Check for missing devices and options in NOTES files.
npe		Tools specific to the Intel IXP4XXX NPE device
pciid		Generate src/share/misc/pci_vendors.
pciroms		A tool for dumping PCI ROM images. WARNING: alpha quality.
pirtool		A tool for dumping the $PIR table on i386 machines at runtime.
portsinfo 	Generate list of new ports for last two weeks.
scsi-defects	Get at the primary or grown defect list of a SCSI disk.
sysdoc		Build a manual page with available sysctls for a specific
		kernel configuration.
tinybsd		Script to build FreeBSD embedded systems.
track		Track the progress of a world / kernel build
vimage		An interim utility for managing the virtualized network
		stack infrastructure.
vop_table	Generates a HTML document that shows all the VOP's in
		the kernel.
whereintheworld	Summarizes "make world" output.