summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig
Commit message (Collapse)AuthorAgeFilesLines
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-0136-0/+396
| | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* META MODE: These need object directories to handle staging.bdrewery2015-11-2638-76/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* Rename checked-in 'includes' to 'includes.sh' to avoid colliding with share/mkbdrewery2015-11-192-1/+1
| | | | | | | | | target 'make includes'. The file is still installed to /usr/libexec/bsdconfig/includes/includes. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add support for "rc.conf.d" file(s).dteske2015-11-121-1/+95
| | | | | | | | | Differential Revision: https://reviews.freebsd.org/D3551 Reviewed by: allanjude MFC after: 1 week X-MFC-to: stable/10 X-MFC-with: 290337 Relnotes: yes
* Fix a ton of speelling errorseadler2015-10-211-1/+1
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.bdrewery2015-09-253-6/+0
| | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* Fix code typo (no functional change)dteske2015-09-141-3/+3
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Interim fix for "Login not found" error.dteske2015-06-192-10/+10
| | | | | | PR: bin/196514 MFC after: 3 days X-MFC-to: stable/10
* Add META_MODE support.sjg2015-06-133-0/+39
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * Merge sync of headsjg2015-05-2711-53/+190
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-1948-139/+87
| |\
| * \ Merge head from 7/28sjg2014-08-1917-171/+182
| |\ \
| * \ \ Merge headsjg2014-04-28104-3023/+6832
| |\ \ \
| * \ \ \ Merge head@256284sjg2013-10-1350-212/+246
| |\ \ \ \
| * | | | | New dependenciessjg2013-10-133-0/+36
| | | | | |
* | | | | | Fix typo in a comment.dteske2015-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9
* | | | | | Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;cperciva2015-02-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update paths; and include everything in the "base" distribution. The "games" distribution being optional made sense when there were more games and we had small disks; but the "games-like" games were moved into the ports tree a dozen years ago and the remaining "utility-like" games occupy less than 0.001% of my laptop's small hard drive. Meanwhile every new user is confronted by the question "do you want games installed" when they they try to install FreeBSD. The next steps will be: 2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and caesar cipher (caesar, rot13) utilities. I intend to keep fortune, factor, morse, number, primes, and random, since there is evidence that those are still being used. 3. Merging src/games into src/usr.bin. This change will not be MFCed. Reviewed by: jmg Discussed at: EuroBSDCon Approved by: gjb (release-affecting changes)
* | | | | | Update copyrights.dteske2015-02-106-6/+6
| | | | | |
* | | | | | Add "vt_"* aliases to bsdconfig console entries.dteske2015-02-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | NB: "syscons_"* kept for backward compatibility
* | | | | | Add bsdconfig api function f_dialog_menutag2help()dteske2015-02-101-0/+33
| | | | | |
* | | | | | Add bsdconfig api functions f_dialog_pause()/f_dialog_pause_no_cancel()dteske2015-02-101-0/+50
| | | | | |
* | | | | | Eliminate sub-shells where possible for performance.dteske2015-02-103-41/+89
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: 7 days
* | | | | | Whitespace.dteske2015-02-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days
* | | | | | Comments.dteske2015-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days
* | | | | | Add new alias "bsdconfig api" (same as "bsdconfig includes")dteske2015-02-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NB: My fingers like typing "api" a lot more than "includes" MFC after: 3 days
* | | | | | Replace the only instance of sed(1) in bsdconfig(8) with awk(1).dteske2015-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days
* | | | | | Revert SVN r278464 -- fingers were in perforce mode (prematuredteske2015-02-096-78/+23
| | | | | | | | | | | | | | | | | | | | | | | | commit of future stuffs not yet ready).
* | | | | | Replace the only instance of sed(1) in bsdconfig(8) with awk(1).dteske2015-02-096-23/+78
| |_|_|_|/ |/| | | | | | | | | | | | | | MFC after: 3 days
* | | | | Default `bsdconfig timezone' and `tzsetup' to `-s' in a VM.dteske2014-11-111-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recommended by: cperciva Reviewed by: cperciva Relnotes: tzsetup and bsdconfig now assume that the "hardware" clock inside a VM is set to UTC
* | | | | Renove faith(4) and faithd(8) from base. It looks like industrymelifaro2014-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have chosen different (and more traditional) stateless/statuful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD. No objections from: net@
* | | | | Follow-up to r255036; remove beforeinstall directives from bsdconfig(8)dteske2014-11-0439-119/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefile's, fixing concurrent installworld (`make -j17 installworld'). Thanks to: delphij, emaste Reviewed by: delphij MFC after: 3 days X-MFC-to: stable/10, stable/9
* | | | | Rename awk(1) implementation of GNU awk's built-in asorti() function todteske2014-10-143-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prevent fatal conflict should one-true-awk ever be replaced -- e.g., in an appliance -- with GNU awk. NB: Renamed my implementation to _asorti() MFC after: 3 days X-MFC-to: stable/10, stable/9
* | | | | Fix awk(1) asorti() implementation to work when called in a loop.dteske2014-10-143-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10, stable/9
* | | | | Fix regression introduced by SVN r270954. Correct way to reset getoptsdteske2014-09-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is to set OPTIND to 1, not unset it (which causes an error). Thanks to: jilles
* | | | | Fix a bug where command line arguments could be misprocessed if getopts isdteske2014-09-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | used prior to f_dialog_init() -- e.g., in a script that sets DIALOG_SELF_INITIALIZE to NULL, preventing f_dialog_init() from being run automaticaly when `dialog.subr' is included. Caused by sub-shell processing of arguments inheriting prior value of $OPTIND, used by getopts. Solved by unsetting OPTIND prior to [re-]processing of positional arguments.
* | | | | More man pages that need to know about vt in addition to syscons.se2014-08-261-0/+11
| | | | | | | | | | | | | | | | | | | | MFC after: 3 dayS
* | | | | Optimize f_which() to be slightly faster still.dteske2014-08-241-3/+3
| | | | |
* | | | | Add `-A' flag to pkg-install(8) invocation when installing dependencies.dteske2014-08-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10, stable/9 Reported by: gjb Discussed with: jelischer, gjb, bdrewery
* | | | | Add required `exec' before Xdialog(1) invocation for the case where wedteske2014-08-031-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | expect (require) data on stdin. The effect of this is that, when backgrounded, $! returns the pid of an Xdialog(1) instance instead of an sh(1) instance -- the difference being a later kill of $! will reach the Xdialog(1) instance whereas without the exec the kill succeeds on the sh(1) instance leaving Xdialog(1) open.
* | | | | Update command and add check for edge-case.dteske2014-07-311-1/+5
| | | | |
* | | | | Fix a syntax error when running under bash(1) for portability.dteske2014-07-311-4/+8
| | | | |
* | | | | Define a setvar() function for platforms using a shell unlike FreeBSD'sdteske2014-07-311-0/+26
| |_|_|/ |/| | | | | | | | | | | | | | | sh(1) for `/bin/sh' (e.g., bash(1) which lacks a setvar definition). This is to improve portability to other Operating Systems (e.g., Linux).
* | | | Fix a bug where include file `networking/services.subr' was not beingdteske2014-07-232-35/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | properly clustered. Change `fixedsize' to `fixedsize = true' to satisfy newer versions of dot(1) generating error "Warning: <stdin>: syntax error in line 27 near ','". Remove bounding cluster surrounding various include-groupings, allowing groups of include files to float freely to the greatest consumer (reducing the density of rendered diagrams). While here, change the bgcolor of include clusters from white to X11 color `thistle' (a light purple). Also, add the word "Subroutines" after include cluster labels. Do not terminate the digraph definition with a semi-colon [;] after the ending brace to satisfy newer versions of dot(1) generating error "Warning: <stdin>: syntax error in line 940 near ';'". MFC after: 3 days X-MFC-to: stable/10, stable/9
* | | | Add example script `add_some_packages.sh', demonstrating how to installdteske2014-07-2213-133/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Fix a code typo that prevented mkdir from firing (unnoticeddteske2014-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | usually because another part of the code succeeded in making the same directory). MFC after: 3 days
* | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | Update example portion of comment to coincide with r264840 changes.dteske2014-05-171-1/+2
| |_|/ |/| | | | | | | | MFC after: 3 days
* | | Implement GEOM based media device classification. You'll notice a fewdteske2014-04-2322-771/+1579
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different things from this commit: + More devices. Devices that were previously ignored are now present. + Faster device scanning. "There is no try, only Do" -- f_device_try() is no longer the basis of device scanning as GEOM provides [nearly] all devices (doesn't provide network devices). + More information available as non-root. Usually you have to be root to do things like taste filesystems, and that limits the amount of information available to non-root users; with GEOM, we see all even running unprivileged as the brunt of information (except for so- called ``dangerously dedicated'' file systems) is represented by the `kern.geom.confxml' sysctl(8) MIB. NB: Only really useful for external scripts that use the API and run as non-root; where this code is used in bsdconfig(8) and bsdinstall(8) you are running as root so can detect even ``dangerously dedicated'' file systems that are not present in GEOM; e.g., no PART class for a DOS filesystem written directly to disk without partition table). + No more use of legacy tools such as diskinfo(8) to get disk capacity or fdisk(8) to see partitions. MFC after: 1 week
* | | Rewrite usermgmt -- hooking it into the scripting system with dispatchdteske2014-03-1411-1044/+2085
| | | | | | | | | | | | | | | commands addUser, deleteUser, and editUser. Getting rid of the awkward- to-use `userinput' bolt-on which Ron and I talked about rewriting.
* | | Add protection against input containing single-quotes (e.g., i18n-users).dteske2014-03-142-35/+97
| | |
OpenPOWER on IntegriCloud