History log of /freebsd-current/usr.sbin/bsdconfig/share/script.subr
Revision Date Author Comments
# 5e7aa757 05-Oct-2023 Baptiste Daroussin <bapt@FreeBSD.org>

bsdconfig: remove support for ftp, pkg does not support it anymore


# 77e93191 05-Oct-2023 Baptiste Daroussin <bapt@FreeBSD.org>

bsdconfig: drop support for floppies

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D42083


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# f589320a 13-Mar-2014 Devin Teske <dteske@FreeBSD.org>

Rewrite usermgmt -- hooking it into the scripting system with dispatch
commands addUser, deleteUser, and editUser. Getting rid of the awkward-
to-use `userinput' bolt-on which Ron and I talked about rewriting.


# 9aab41b1 07-Mar-2014 Devin Teske <dteske@FreeBSD.org>

Change dipatch words from group* to *Group to backward compatible with
ye-olden sysinstall(8).


# 27c43fe1 07-Mar-2014 Devin Teske <dteske@FreeBSD.org>

Rewrite groupmgmt -- hooking it into the scripting system with dispatch
commands groupAdd, groupDelete, and groupEdit. Getting rid of the awkward-
to-use `groupinput' bolt-on which Ron and I talked about rewriting.


# 4bed406f 07-Mar-2014 Devin Teske <dteske@FreeBSD.org>

Centralize function name. Update a comment while here.


# e5cb2e69 07-Mar-2014 Devin Teske <dteske@FreeBSD.org>

Allow dispatched reswords to carry arguments. Fix a comment while here.


# 8e37a7c8 07-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Fix typos in the BSD License.


# f8ea072a 07-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Be consistent with other usr.sbin programs w/respect to the copyright
wording ("All rights reserved."); I had the casing wrong on many instances.


# 52d41f91 05-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Add the necessary code to reinstall packages. Both scripted access
(packageReinstall) and UI access have been tested successfully with a
variation of different situations including:
+ Reinstall a package for which no other packages depend
+ Purposefully do thinks like reinstall a package that is not installed
+ Try to reinstall a package which other installed packages still depend

NOTE: There is no "force" used; if a package is required by other packages,
it will not be uninstalled (and therefore no reinstall is done).


# 542dd84b 05-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Add the necessary code to uninstall packages (re-install still pending).
Both scripted access (packageDelete) and UI access have been tested
successfully with a variation of different situations including:
+ Uninstall a package which no other installed package depends
+ Uninstall multiple packages which no other installed packages depend
+ Uninstall multiple packages which depend on each other
+ Similar to above but when ordered removal requires tracing dependencies
+ Purposefully do things like uninstall a package that is not installed
+ Try to uninstall a package which other installed packages still depend
+ Try to uninstall multiple packages which other installed packages depend
+ And many more.


# 38ae478b 04-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Add the beginnings of the old networking services functionality of
sysinstall(8). The UI for this will come later while this exposes the
functionality to the scripted interface. Tested successfully to first
install the pcnfsd package from the `Latest' repository, and second to
configure mountd_flags="-n" in rc.conf(5).


# 31185df0 04-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Add the necessary code to install packages (uninstall and re-install still
pending). Both scripted access (packageAdd) and UI access have been tested
successfully with a variation of different situations including:
+ Install a package with no dependencies
+ Install a package with dependencies that are already installed
+ Install a package with dependencies where some are already installed
+ Repeat each of the above from FTP and local Directory
+ Purposefully do things like try to install a package that does not exist
+ Try to install a package for which a dependency could not be loaded
+ Try to install a package that is in the INDEX bot not on the media
+ And many more.


# 0e30bd5b 04-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Add mustberoot.subr to the list of includes for scripts, exposing the helper
function f_mustberoot_init() to make it easy to write scripts that can more
easily transition to the super-user via sudo(8).


# 47b73aa2 23-Jun-2013 Devin Teske <dteske@FreeBSD.org>

Merge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):
Add support for installation directly via HTTP.

While we're here, remove the menu-item for Passive FTP (since moving to
ftp(1) and switching FTPMODE to `auto' by default -- see r251613 -- the
single remaining FTP menu-item works for both ftp.f.o and ftp-archive.f.o;
previously each requiring separately active versus passive both work with
the `auto' setting). In scripting you still have mediaSetFTPActive and
mediaSetFTPPassive but the remaining FTP menu-item uses mediaSetFTP which
defaults to `auto' (aforementioned SVN r251613).


# 3daac03b 19-Jun-2013 Devin Teske <dteske@FreeBSD.org>

Alphabetize reserved-word (resword) registration.


# fa8b43c8 19-Jun-2013 Devin Teske <dteske@FreeBSD.org>

Alphabetize includes.


# 87c16275 06-May-2013 Devin Teske <dteske@FreeBSD.org>

Commit first portion of package module -- this includes the ability to view
categories, view packages, mark packages for installation, de-installation,
or re-installation, calculate and track dependencies, as well as ability to
review selections.

Still to come is the actual processing of selections (performing the
various actions associated with the user's selections, such as installing
dependencies first, then selections, etc.).


# 24e8d282 06-May-2013 Devin Teske <dteske@FreeBSD.org>

Re-organize and add missing installVarDefaults and mediaSetDirectory.


# d4fd7c13 22-Apr-2013 Devin Teske <dteske@FreeBSD.org>

Partially uncommit r249779. The changes to share/common.subr were good
while the remaining changes were part of a much larger ``secret sauce''
involved in an up-coming commit that I'm still laboring on.


# 8c944ff5 22-Apr-2013 Devin Teske <dteske@FreeBSD.org>

Fix "-D file" to automagically enable debugging if not explicitly disabled.


# 7323adac 25-Feb-2013 Devin Teske <dteske@FreeBSD.org>

Import media selection/preparation framework (sysinstall inspired). Makes
accessing files from various types of media nice and abstracted away from
the wet-work involved in preparing, validating, and initializing those
types of media. This will be used for the package management system module
and other modules that need access to files and want to allow the user to
decide where those files come from (either in a scripted fashion, prompted
fashion, or any combination thereof).

Heavily inspired by sysinstall and even uses the same reserved words so
that scripts are portable. Coded over months, tested continuously through-
out, and reviewed several times.

Some notes about the changes:
- Move network-setting acquisition/validation routines to media/tcpip.subr
- The options screen from sysinstall has been converted to a dialog menu
- The "UFS" media choice is renamed to "Directory" to reflect how sysinstall
treats the choice and a new [true] "UFS" media choice has been added that
acts on real UFS partitions (such as external disks with disklabels).
- Many more help files have been resurrected from sysinstall (I noticed that
some of the content seems a bit dated; I gave them a once-over but they
could really use an update).
- A total of 10 media choices are presented (via mediaGetType) including:
CD/DVD, FTP, FTP Passive, HTTP Proxy, Directory, NFS, DOS, UFS, Floppy, USB
- Novel struct/device management layer for managing the issue of passing
more information than can comfortably fit in an argument list.


# 8ff9900c 20-Jan-2013 Devin Teske <dteske@FreeBSD.org>

Backward compatibility fix: treat cmds loaded as a script as nonInteractive


# 99bc932e 04-Jan-2013 Devin Teske <dteske@FreeBSD.org>

Add support for scripting (sysinstall style).

Reviewed by: jilles