freebsd-dev/usr.sbin
Devin Teske 95d45410b5 Add example script `add_some_packages.sh', demonstrating how to install
a list of packages using the bsdconfig(8) API, providing dialog(8) based
user experience (versus plain console output were you to use pkg(8)
directly to install the same list of packages).

Remove example script `browse_packages_ftp.sh', made obsolete because
the digests.txz and packagesite.txz databases for pkg(8) are not
available via FTP (HTTP only to pkg.freebsd.org SRV hosts).

Update example script `browse_packages_http.sh', made to work with new
pkg(8) demonstrating how to generate a local package repository.

Fix a bug in `bsdconfig packages' where packages were listed twice. This
fix requires pkg(8) version 1.2.7_4 or higher.

NB: It is the introduction of pkg(8) 1.2.7_4 wherein I am also able to
drastically reduce the generation time of package dependencies prior to
the dialog display (by utilizing the new `-I' flag to pkg-rquery(8)).

While here, fix a positional argument nit for f_index_initialize() of
`packages/index.subr' include (the one and only argument is positional
argument 1 to state the by-ref handle, indicating the variable to set
in the caller's namespace; the nit I'm fixing here is that we were
querying positional argument 2 for this information incorrectly; caused
by a missing hunk back around SVN r257795).

Fix a bug in sysrc(8) described by PR bin/187458 "sysrc(8) silently and
unexpectedly bootstraps pkg". This was caused by an explicit entry in
`/usr/share/bsdconfig/common.subr' (used by sysrc(8)) that called pkg(8)
to populate the $PKG_ABI global (called in a way that allows implicit
bootstrap of pkg(8)). The solution to which was to find every place in
bsdconfig(8) that requires the $PKG_ABI global and add a layer of
protection by way of introducing the new API call f_musthavepkg_init()
(provided by new include, `/usr/share/bsdconfig/packages/musthavepkg.subr'
intented to mirror `/usr/share/bsdconfig/mustberoot.subr'). When the
$PKG_ABI global is required, you can use `f_musthavepkg_init' to cause
graceful premature termination in the event that pkg(8) has not yet been
bootstrapped, and thus cannot be used to populate $PKG_ABI.

NB: If running interactively ($nonInteractive is NULL or unset), the
f_musthavepkg_init() API call will attempt to bootstrap pkg(8), but only
if the user chooses "Yes" to a Yes/No dialog confirming it is ok to
bootstrap.

While here, simplify an if-conditional in `media/http.subr' include to
use sh(1) inline assignment-with-break.

Also, fix a bug in `media/http.subr' and `media/httpproxy.subr' wherein
the error messages for various HTTP failures were not finding their way
to the console (needed to pass stdout to pass-thru descriptor).

While here, remove the executable bit from `packages/categories.subr',
`packages/index.subr', and `packages/packages.subr' includes.

Fix issues where pkg(8) complains about PACKAGESITE being defined.
Previously, we would set $PACKAGESITE and export it. Now we only set
$PACKAGESITE for invocations of "pkg update" -- getting rid of all the
spurious warnings about PACKAGESITE being deprecated (it's still used
in the case of "pkg update" for simplicity versus having to configure
a config-file).

Remove the leading argument from invocations of f_index_initialize() in
`packages/packages.subr' include. The leading argument no longer means
what it used to, pre SVN r257995).

PR:		bin/187458
Reviewed by:	nwhitehorn
MFC after:	1 week
X-MFC-to:	stable/10, stable/9
2014-07-22 23:10:12 +00:00
..
ac Move example to EXAMPLES. 2013-03-17 06:54:04 +00:00
accton
acpi use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
adduser use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
amd In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
ancontrol use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
apm use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
apmd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
arp Speed up the lookup of interfaces when there are a large number 2014-04-05 22:13:32 +00:00
asf use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
audit
auditd
auditdistd Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
auditreduce
authpf Install authpf-noip. 2013-07-10 07:40:30 +00:00
bhyve Handle nested exceptions in bhyve. 2014-07-19 20:59:08 +00:00
bhyvectl Handle nested exceptions in bhyve. 2014-07-19 20:59:08 +00:00
bhyveload Sort command flags in usage output and the manpages. 2014-06-27 15:20:34 +00:00
binmiscctl mdoc: use display block in the beginning of the EXAMPLES section. 2014-06-15 10:31:50 +00:00
bluetooth use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
boot0cfg use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
boot98cfg Change <sys/diskpc98.h> to not redefine the same symbols that are 2013-08-07 00:00:48 +00:00
bootparamd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
bsdconfig Add example script `add_some_packages.sh', demonstrating how to install 2014-07-22 23:10:12 +00:00
bsdinstall Allow up to 512K for boot code on GPT with BIOS. As pmbr.s says in a comment, 2014-07-11 23:41:56 +00:00
bsnmpd Remove ia64. 2014-07-07 00:27:09 +00:00
btxld use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
cdcontrol Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
chkgrp use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
chown chown: Fix chown test number 2014-07-17 06:57:26 +00:00
chroot
ckdist
clear_locks
config Remove ia64. 2014-07-07 00:27:09 +00:00
cpucontrol Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID, use 2014-06-20 13:13:38 +00:00
crashinfo Do not truncate the `command'' column in `ps'' output. 2013-12-25 15:23:01 +00:00
cron use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
crunch Remove ia64. 2014-07-07 00:27:09 +00:00
ctladm Add support for VMWare dialect of EXTENDED COPY command, aka VAAI Clone. 2014-07-16 15:57:17 +00:00
ctld Correct spelling errors in ctld.8. While here, correct similar errors 2014-07-20 22:13:51 +00:00
ctm With the move away from GNATS, drop the CTM config file for downloading 2014-06-23 18:13:42 +00:00
daemon Fork a child process and wait until the process terminates when the -P 2014-04-06 16:35:49 +00:00
dconschat use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
devinfo use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
digictl
diskinfo
dumpcis use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
editmap In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
edquota edquota: Don't pass fd for temporary file to editor. 2013-10-27 21:06:17 +00:00
eeprom use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
etcupdate use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
extattr Fix return type of extattr_set_* and fix rmextattr(8) utility. 2013-04-02 05:30:41 +00:00
extattrctl
faithd
fdcontrol
fdformat
fdread
fdwrite use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
fifolog In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
flowctl use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
freebsd-update use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ftp-proxy In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
fwcontrol use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
getfmac
getpmac
gpioctl use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
gssd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
gstat Add an option, -p, which makes gstat(8) to only display physical providers 2014-07-03 21:48:19 +00:00
i2c use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ifmcstat Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
inetd Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
iostat use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ip6addrctl
ipfwpcap use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
iscsid Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects. 2014-07-06 17:37:49 +00:00
jail The month's name shall not be abbreviated. 2014-07-11 22:38:05 +00:00
jexec
jls Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
kbdcontrol Fix vt(4) detection in kbdcontrol and vidcontrol 2014-07-02 20:40:59 +00:00
kbdmap use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
keyserv
kgmon
kgzip use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
kldxref use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
lastlogin
lmcconfig use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
lpr Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
lptcontrol
mailstats In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
mailwrapper use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
makefs use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
makemap In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
manctl
memcontrol
mergemaster Remove ia64. 2014-07-07 00:27:09 +00:00
mfiutil - Fix an off by one error when checking for the stop event. This resulted 2014-04-22 15:17:32 +00:00
mixer use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
mld6query
mlxcontrol use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
mount_smbfs Use system libiconv, instead of trying to dlopen() it. 2013-11-09 14:48:50 +00:00
mountd
moused use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
mptable use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
mptutil Remove contractions. 2013-04-11 18:46:41 +00:00
mtest Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
mtree Merge from CheriBSD: 2014-01-30 21:32:25 +00:00
nandsim use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
nandtool
ndiscvt use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ndp Fix "ndp -d hostname". 2014-07-18 06:48:02 +00:00
newsyslog - Include /etc/newsyslog.conf.d/* and /usr/local/etc/newsyslog.conf.d/* by 2014-05-20 03:00:20 +00:00
nfscbd
nfsd r243637 changed the default number of nfsd threads created, 2014-07-19 01:15:01 +00:00
nfsdumpstate
nfsrevoke
nfsuserd
ngctl Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
nghook use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
nmtree In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
nologin
nscd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ntp Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
nvram use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ofwdump use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
pc-sysinstall use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
pciconf Add IOMMU PCI subclass, found on Tyan S8236 motherboard. 2014-05-20 14:39:22 +00:00
periodic use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
pkg When we fail to extract the pkg binaries (for example, / is read-only), 2014-07-16 00:12:57 +00:00
pmcannotate use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
pmccontrol use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
pmcstat Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
pnpinfo
portsnap use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
powerd In acline_init(), initialize ac_line to SRC_UNKNOWN. Previously 2014-02-11 15:16:49 +00:00
ppp use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
pppctl Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
praliases In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
praudit
procctl
pstat
pw pw: fix up deletion of users from groups 2014-06-27 18:51:19 +00:00
pwd_mkdb Add -p to the example (why isn't this the default?) 2014-02-06 09:57:27 +00:00
quot
quotaon
rarpd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
repquota
rip6query
rmt
route6d Remove unneeded fake _KERNEL definition. 2014-03-23 09:15:14 +00:00
rpc.lockd multiple: Remove 3rd clause from BSD license where approved by the 2014-03-14 03:07:51 +00:00
rpc.statd multiple: Remove 3rd clause from BSD license where approved by the 2014-03-14 03:07:51 +00:00
rpc.umntall use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
rpc.yppasswdd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
rpc.ypupdated NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
rpc.ypxfrd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
rpcbind Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
rrenumd Improve compatibility with recent flex from flex.sourceforge.net. 2013-05-03 23:51:32 +00:00
rtadvctl use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
rtadvd Ignore if the interface is not IPv6-capable. 2013-09-02 20:44:19 +00:00
rtprio use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
rtsold Use sysctl(ICMPV6CTL_ND6_DRLIST) instead of SIOCGDRLST_IN6 ioctl. 2013-08-17 22:13:26 +00:00
rwhod Don't accidently skip every second line when calculating the 2014-06-28 15:53:28 +00:00
sa use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
sendmail In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
service Revert previous revision (r268461) for reasons documented in PR. 2014-07-16 19:02:30 +00:00
services_mkdb Similar to cap_mkdb(1), add endianness support to services_mkdb(1) 2014-01-22 16:50:18 +00:00
setfib Tweak wording. 2013-09-07 20:25:22 +00:00
setfmac
setpmac
sicontrol use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
smbmsg
snapinfo use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
spkrtest
spray
syslogd Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
sysrc Oops, forgot to bump manual date/copyright in r268860. 2014-07-18 23:23:52 +00:00
tcpdchk Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
tcpdmatch Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
tcpdrop use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
tcpdump When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS and 2014-06-06 04:09:07 +00:00
tests Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout. 2014-03-16 04:09:22 +00:00
timed Minor update about rc.conf. 2013-04-22 18:31:39 +00:00
traceroute
traceroute6
trpt Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
tzsetup Revert r261296. This removes the WITHOUT_NCURSESW option. 2014-05-15 16:44:25 +00:00
uathload
ugidfw
uhsoctl Use %zu not %zd for printing size_t. 2014-07-05 20:08:25 +00:00
unbound Use a combination of unblock-lan-zones (r268839) and domain-insecure 2014-07-18 12:33:22 +00:00
usbconfig - Make the FreeBSD's USB library compile under Linux. 2013-03-13 12:23:14 +00:00
usbdump use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
utx use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
vidcontrol Fix vt(4) detection in kbdcontrol and vidcontrol 2014-07-02 20:40:59 +00:00
vipw
wake use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
watch Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
watchdogd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
wlandebug Fix stray "." left over from previous commit. 2014-04-10 10:56:11 +00:00
wlconfig
wpa Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
yp_mkdb use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ypbind use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
yppoll
yppush use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ypserv use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
ypset Use INADDR_NONE instead of -1 to check inet_addr() result. 2013-10-15 07:37:30 +00:00
zic
zzz Use Mt macro to properly format mailto links 2014-06-19 13:18:23 +00:00
Makefile Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
Makefile.amd64 - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
Makefile.arm
Makefile.i386 - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
Makefile.inc
Makefile.mips
Makefile.powerpc - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
Makefile.sparc64 - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00