Commit Graph

239 Commits

Author SHA1 Message Date
lukem 8e5c6bed5f obsolete mkstr(1) and xstr(1)
These were only used on PDP-11 for two programs we don't ship,
and have been obsolete since the VAX days.

xstr never worked in the build.sh cross-build environment (22 years), or
parallel make environment (nearly 28 years), didn't work in the orignal 386bsd
import, and has never been needed in NetBSD as we don't have the older BSD
programs (pascal, pre-nvi ex) that needed mkstr/xstr on PDP-11.

PR toolchain/35964
2023-05-24 13:00:14 +00:00
nia b7957d1677 build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.
2022-06-06 10:56:27 +00:00
nia e994758d71 mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.
2022-05-28 14:31:11 +00:00
brad bf53d44167 A driver and user land utility for the Sparkfun Serial Controlled Motor
Driver module as illustrated here:

https://www.sparkfun.com/products/13911

A SCMD module is a ARM SOC simular to a Arduino in front of a motor
driver chip.  The single SCMD module can control two motors and up to
16 additional modules can be chained together using an internal I2C
bus.  One can interface with the SCMD using tty uart commands, SPI or
I2C.  The driver in this commit adds a kernel driver for the I2C and
SPI interfaces.  The command line utility provides a set of
convenience commands that support most of the functions of the SCMD
and is able to use the tty uart mode, SPI user land or the included
kernel driver in a uniform manor.

The use of the SCMD module is mostly for small robots and the like,
but it can control anything that is controllable by voltage.
2021-12-07 17:39:53 +00:00
nia 209f7af6d7 hook up aiomixer 2021-05-07 21:51:20 +00:00
htodd 5ed8424a90 Go into the resize directory to build/install the files since they're in the sets. 2020-12-28 03:48:41 +00:00
kamil 771c425869 Port realpath(1) from FreeBSD
realpath(1) wraps realpath(3) and returns resolved physical path.

This utility shipped with GNU and FreeBSD is sometimes
used in scripts in the wild.
2020-02-02 21:49:43 +00:00
christos 0d2d986001 Tiny base64 encoder/decoder command patterned after the linux and the macosx
ones with the same name,.
2018-07-24 15:26:16 +00:00
maxv 5ae6235d0e Remove tpfmt(1). Its code was merged into tprof(8). 2018-07-13 11:14:14 +00:00
mrg 1b11df59cf don't try to decend into remove 'pmc' subdir. 2018-07-13 11:13:10 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
christos 2e389fd691 switch to the OpenBSD dc 2017-04-10 16:38:19 +00:00
christos eead193d4a Add nc. 2017-02-06 16:04:07 +00:00
kamil b3c98abce0 Import c11(1) - a cc -std=c11 wrapper
This script is similar to c89(1) and c99(1).

It's a NetBSD extension. The c89(1) and c99(1) scripts are part of POSIX.
2016-10-03 01:00:27 +00:00
agc 3f81b60716 Following positive feedback on tech-userlevel, move the sys_info
script from othersrc to usr.bin/sys_info

	The sys_info script is a small script which will show the version
	information for installed utilities.  It also works on the kernel, and
	on most libraries.

	Its use is as follow:

		[19:41:13] agc@netbsd-002 ...external/bsd/sys_info [4568] > ./sys_info -a
		awk-20121220
		bind-9.10.3pl3
		bzip2-1.0.6
		calendar-20160601
		ftpd-20110904
		g++-4.8.5
		gcc-4.8.5
		grep-2.5.1anb1
		gzip-20150113
		bozohttpd-20151231
		NetBSD-7.99.26
		netpgp-3.99.17
		netpgpverify-20160214
		ntp-4.2.8pl5
		openssl-1.0.1r
		sqlite3-3.12.2
		openssh-7.1
		opensshd-7.1
		tcsh-6.19.00
		xz-5.2.1
		[19:41:20] agc@netbsd-002 ...external/bsd/sys_info [4569] > ./sys_info ntp ssh netpgp
		ntp-4.2.8pl5
		openssh-7.1
		netpgp-3.99.17
		[19:41:31] agc@netbsd-002 ...external/bsd/sys_info [4570] > ./sys_info ntp ssh netbsd
		ntp-4.2.8pl5
		openssh-7.1
		NetBSD-7.99.26
		[19:41:38] agc@netbsd-002 ...external/bsd/sys_info [4571] >

	The -a option can be given to the script to print out the information
	on all known components.

	The sys_info script also works on libraries, returning their
	"versions" as given by the shared object version numbers.

		[19:45:06] agc@netbsd-002 ...external/bsd/sys_info [4572] > ./sys_info libevent libXfont libc netbsd
		libevent-4.0
		libXfont-3.0
		libc-12.200
		NetBSD-7.99.26
		[19:45:27] agc@netbsd-002 ...external/bsd/sys_info [4573] >

	Alistair Crooks
	Wed Jun  1 19:44:01 PDT 2016
2016-06-04 15:27:11 +00:00
christos 1a7e9bc1af Add a program to find the latest timestamp in a cvs repository 2016-01-24 17:08:16 +00:00
christos e4aa5bd87d this are our's not gnu 2016-01-14 04:27:26 +00:00
christos 088e556329 add sortinfo 2015-12-18 18:56:47 +00:00
christos c3b6f86ce5 Add a gettext implementation from William Orr. 2015-06-03 14:32:16 +00:00
christos 90298a02bf add pwait 2015-03-02 21:54:13 +00:00
mrg e2cc3fc481 install midirecord. 2014-12-30 04:22:18 +00:00
christos 3f7fdb96f5 PR/49053: Kamil Rytarowski: Import timeout(1) from FreeBSD 2014-08-01 14:01:30 +00:00
ginsbach 42bc9b7b73 Hook getaddrinfo(1) into the build. Hi riastradh! 2014-04-15 22:09:27 +00:00
pooka b5108f448c Add rump_wmd, a utility to resolve rump kernel component dependencies. 2014-01-16 01:54:47 +00:00
rjs d63e9ca599 Only build shmif_dumpbus when rump is available. 2013-12-28 02:32:01 +00:00
christos e675354f1e switch to the nv in external/bsd 2013-11-22 16:10:25 +00:00
christos ecb1daed9a put back soelim, if MKGROFF is no so that we don't break the sets. 2013-02-11 17:24:21 +00:00
christos ed97a32994 Don't build and install soelim anymore, because it got overwritten
anyway by the groff one and messed up the mtree unprived sets. If
we want to switch back to ours, we should probably add the extra
flags GNU added first.
2013-02-11 17:14:23 +00:00
christos dcdc302c64 Add an flock program inspired by the linux one with the same name. 2012-11-01 23:30:19 +00:00
christos 2be2cb6bfb exclude programs for MKRUMP = no 2012-08-08 14:13:46 +00:00
christos 7dd78711cb fix bogus test. 2012-08-04 15:50:16 +00:00
jmmv 7054f14003 Remove window(1).
window(1) was replaced by tmux(1) on March 2011.  The source code has
been reimported into othersrc/usr.bin/window and an up-to-date package
is available in pkgsrc/misc/window.

This removal was approved by core@, with the condition that it be done
once netbsd-6 had been brached.  And the branching has just happened!
2012-02-16 04:52:47 +00:00
joerg 410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00
yamt 9753d46d1c install tprof related commands and man pages. 2012-01-04 16:25:13 +00:00
yamt f40ab0e98f install fincore. 2012-01-04 15:54:37 +00:00
christos 07fb1a358e descend into cleantags 2011-10-08 19:16:54 +00:00
mrg 92461b24a3 enable building/installing audiocfg(1). ok jmcneill. 2011-10-06 07:38:54 +00:00
tron 32830a8673 Remove the old version of "less". 2011-07-03 21:58:52 +00:00
joerg 0cef9f9563 Add MKBSDGREP switch for easy testing of the GNU grep
replacement/alternative.
2011-04-21 14:26:33 +00:00
elric 98fbe74f8c Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal.  The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
pooka e963960681 Add a simple dhcp client for rump kernels. It uses code from dhcpcd
for talking to the server and for setting the interface address
and route.  However, otherwise it is quite different, since we need
to be working under the assumptions that there is no stable storage
on a rump instance, and that there are n networking stacks on a
given host.
2011-01-20 18:47:19 +00:00
pooka fca51725c2 shmif(4) bus dumping utility 2011-01-12 16:14:24 +00:00
jmcneill 4b6947bfe1 hook videoctl into build 2010-12-26 11:31:43 +00:00
pooka 53fb74fd7e Add rump_server which is just like rump_allserver with the exception
that it links in only -lrump instead of everything.  The startup
time difference (especially when attaching a debugger) is noticeable.
2010-12-13 13:29:15 +00:00
pooka 78e5870eec utility to halt a rump kernel 2010-12-12 12:48:30 +00:00
pooka 843bb51b69 dumdidumdum, fix name in previous 2010-12-05 17:45:08 +00:00
pooka 6eb225bba1 Add a rump server which comes with all the drivers currently
available.  In terms of modules it maps to:

golem> rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
bpf              driver     builtin    0     -        -
cd9660           vfs        builtin    0     -        -
cgd              driver     builtin    0     -        -
dm               driver     builtin    0     -        -
efs              vfs        builtin    0     -        -
ext2fs           vfs        builtin    0     -        ffs
fdesc            vfs        builtin    0     -        -
ffs              vfs        builtin    3     -        -
fss              driver     builtin    0     -        -
hfs              vfs        builtin    0     -        -
kernfs           vfs        builtin    0     -        -
ksem             misc       builtin    0     -        -
layerfs          misc       builtin    2     -        -
lfs              vfs        builtin    0     -        ffs
mfs              vfs        builtin    0     -        ffs
msdos            vfs        builtin    0     -        -
nfs              vfs        builtin    1     -        -
nfsserver        misc       builtin    0     -        nfs
nilfs            vfs        builtin    0     -        -
ntfs             vfs        builtin    0     -        -
null             vfs        builtin    0     -        layerfs
pad              driver     builtin    0     -        -
ptyfs            vfs        builtin    0     -        -
puffs            vfs        builtin    0     -        putter
putter           driver     builtin    1     -        -
scsiverbose      misc       builtin    0     -        -
smbfs            vfs        builtin    0     -        -
suser            secmodel   builtin    0     -        -
swsensor         driver     builtin    0     -        -
sysvbfs          vfs        builtin    0     -        -
tmpfs            vfs        builtin    0     -        -
udf              vfs        builtin    0     -        -
umap             vfs        builtin    0     -        layerfs
union            vfs        builtin    0     -        -
usbverbose       misc       builtin    0     -        -
wapbl            vfs        builtin    0     -        -


In terms of interfaces:
golem> rump.ifconfig -C
shmif virt lo carp


and dmesg:
NetBSD 5.99.41 (RUMP-ROAST) #0: Tue Nov 30 15:35:05 CET 2010
        pooka@pain-rustique.localhost:/usr/allsrc/src/sys/rump/librump/rumpkern
total memory = unlimited (host limit)
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "rumpclk" frequency 100 Hz quality 0
cpu0 at thinair0: rump virtual cpu
cpu1 at thinair0: rump virtual cpu
root file system type: rumpfs
mainbus0 (root)
ugenhc0 at mainbus0
usb0 at ugenhc0: USB revision 2.0
uhub0 at usb0: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub0: 1 port with 1 removable, self powered
ugenhc1 at mainbus0
usb1 at ugenhc1: USB revision 2.0
uhub1 at usb1: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub1: 1 port with 1 removable, self powered
ugenhc2 at mainbus0
usb2 at ugenhc2: USB revision 2.0
uhub2 at usb2: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub2: 1 port with 1 removable, self powered
ugenhc3 at mainbus0
usb3 at ugenhc3: USB revision 2.0
uhub3 at usb3: vendor 0x7275 product 0x6d70, class 9/0, rev 0.00/0.00, addr 1
uhub3: 1 port with 1 removable, self powered
scsitest0 at mainbus0
scsibus0 at scsitest0: 2 targets, 1 lun per target
cd0 at scsibus0 target 1 lun 0: <RUMPHOBO, It's a LIE, 0.00> cdrom removable
Chicony Electronics Chicony Electronics, class 0/0, rev 2.00/1.00, addr 2, uhub0 port 1 not configured
AuthenTec AuthenTec, class 255/255, rev 1.10/6.21, addr 2, uhub1 port 1 not configured
swwdog0: software watchdog initialized
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio0 at pad0: half duplex, playback, capture


There a bunch of other stuff which doesn't show up as any of the
above, plus of course the usb drivers which are probed only if I
have the appropriate hardware plugged into my workstation.
2010-12-05 17:37:32 +00:00
christos d28b9cb610 unhook awk again 2010-08-27 16:50:10 +00:00
christos 75bfb16aca switch back to the old awk till I fixed the problem. 2010-08-27 16:38:27 +00:00
christos 74e4b96653 Unglue awk. 2010-08-26 14:57:47 +00:00