Commit Graph

350 Commits

Author SHA1 Message Date
sepotvin
3ffe583f13 Options spring cleanup:
- Add and document the KVM and KVM_SUPPORT options that
are needed for the ifmcstats(3) makefile
- Garbage collect unused variables
- Add missing inclusion of bsd.own.mk where needed

Approved by: kan (mentor)
Reviewed by: ru
2007-06-13 02:08:04 +00:00
delphij
2089860135 Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

 - Because this is a piece of mature code and we want to make
   changes so it is added directly rather than importing to
   src/contrib.
 - Connect newly added code to src/usr.bin/ and rescue/rescue
   build.
 - Disconnect the GNU gzip code from build for now, they will
   be eventually removed completely.
 - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
   WITHOUT_BZIP2.

Tested by:	kris (full exp-7 pointyhat build)
Approved by:	core (importing a 4-clause BSD licensed file)
Approved by:	re (adding new utility during -HEAD code slush)
2007-01-26 10:19:08 +00:00
peter
1f17881ec3 Retire objformat(1) as threatened in 2002.
Laughed-at-by:  kris
2007-01-25 22:26:41 +00:00
ru
815d860c2f - When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.
- Don't build ngctl(8) and cached(8) if threading libs aren't built.
- Fix various issues in a cached(8) makefile.
2006-11-26 14:36:34 +00:00
marcel
f511e89bcf Build libsmb and smbutil on ia64. 2006-08-22 03:22:17 +00:00
marcel
8e50b5d93c Remove alpha left-overs. 2006-08-21 19:49:57 +00:00
maxim
e6ffe3c2b2 o By popular demand import getent(1) utility: a program retrieves
and displays entries from the administrative database specified by
database, using the lookup order specified in nsswitch.conf(5).

PR:		bin/79903, bin/88460, bin/96536
Submitted by:	Julien Gabel, Dan Nelson, Daniel J. O'Connor
Obtained from:	NetBSD
Discussed with:	ume, soc-bushman
MFC after:	1 month
2006-05-04 08:44:44 +00:00
ru
f6f87616ef libc_r is no longer provided, and on alpha and sparc64, libthr
is (sym)linked to libpthread.  Account for this change and
check for MK_LIBTHR instead of MK_LIBC_R where appropriate.
2006-04-12 19:52:34 +00:00
ru
637342fe1a Unbreak WITHOUT_LIBPHREAD/WITHOUT_LIBC_R option support, depending
on platform.
2006-03-21 11:00:54 +00:00
ru
270427ac5b Extend coverage of the MK_IPX build option to the following:
- <netipx> headers [1]
- IPX library (libipx)
- IPX support in ifconfig(8)
- IPXrouted(8)
- new MK_NCP option

New MK_NCP build option controls:

- <netncp> and <fs/nwfs> headers
- NCP library (libncp)
- ncplist(1) and ncplogin(1)
- mount_nwfs(8)
- ncp and nwfs kernel modules

User knobs: WITHOUT_IPX, WITHOUT_IPX_SUPPORT, WITHOUT_NCP.

[1] <netsmb/netbios.h> unconditionally uses <netipx> headers
so they are still installed.  This needs to be dealt with.
2006-03-20 14:24:58 +00:00
ru
388e590f95 Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
mux
31458bf441 Don't build csup if NO_CRYPT or NO_OPENSSL is defined, since we depend
on those.

Reported by:	marius
2006-03-03 21:12:05 +00:00
mux
775429c0bc Connect csup the build! 2006-03-03 14:55:43 +00:00
grehan
c34b73d7df Enable truss for powerpc 2006-01-05 05:58:16 +00:00
grehan
5afbb7396a Build gprof for powerpc now. 2005-12-29 04:30:03 +00:00
imura
7b4e5c25c9 Connect smbfs build on powerpc. 2005-09-19 08:13:43 +00:00
phk
6786d43591 Old habits die hard: Make that .if defined(YES_HESIOD) not .if !defined 2005-08-06 07:41:36 +00:00
phk
20873c8f6f Put hesinfo(1) under buildoption "YES_HESIOD" 2005-08-06 06:56:39 +00:00
cperciva
68258ab179 Add bsdiff and bspatch to the base system. These are tools for
constructing and applying binary patches; in particular, they perform
well (in the sense of constructing small patches) for executable code.
Both portsnap (coming to the base system Real Soon Now) and FreeBSD
Update (coming to the base system a bit later) use bspatch.

This is the same code as the bsdiff-4.2 which has been in the ports
tree (misc/bsdiff) for the past year, with the following exceptions:
1. The license is now the traditional 2-clause BSD;
2. Instead of forking and execing bzip2, the code now uses libbz2; and
3. Some minor changes have been made to fit this code into the base
system (adding $FreeBSD$ tags, putting bsdiff and bspatch into separate
directories, etc.)

This code is rather ugly and has lots of style bugs (mostly because I
wrote it before I had ever heard of style(9)).  Some day I'll come
back and clean it up.

Discussed on:	freebsd-arch
MFC before:	5.5-RELEASE
Tested by:	Several million users (earlier version).
2005-08-06 01:59:06 +00:00
phk
7fb7d7aef1 Let NO_MAN control catman 2005-08-05 16:09:34 +00:00
phk
34e5ba960a Add NO_CALENDAR 2005-08-03 09:27:01 +00:00
fjoe
80c76b58f6 - check for geom_uzip module presence using kldstat -m.
kldstat -m finds geom_uzip module even if it is compiled in statically.
- create output file with x bit set.
- build mkuzip on all architectures (verified with "make universe").
- fix typo in info message.
2005-05-11 17:02:38 +00:00
sobomax
6d0e34daa6 Enabke mkuzip(1) on amd64.
Submitted by:	Matteo Riondato <rionda@gufi.org>
2005-05-02 17:40:40 +00:00
trhodes
792676bbc2 Wrap BSD r* commands in NO_RCMDS.
Change NO_RCMDNS to NO_RCMDS and do the switch in bsd.compat.mk.

Discussed with: ru, nectar
2005-03-02 11:53:22 +00:00
delphij
c640356af2 New order after _netcat has been changed to _nc: sort the list.
Submitted by:	ru
Pointy hat to:	me
2005-02-13 13:42:20 +00:00
delphij
064b269fc4 Spell the variable as underscore plus their possible value, to follow
the style nearby.

Submitted by:	ru
2005-02-13 10:11:21 +00:00
delphij
8825ee8ffa Forgotten to commit this file during the last commit. Connect nc(1)
to build.
2005-02-13 07:12:23 +00:00
ru
f4c44b761b NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
ru
3b01b84505 NOATM -> NO_ATM 2004-12-21 09:08:06 +00:00
bz
4b83c5852a Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on  no NIS support and related programs will be built.

Lost parts rediscovered by:	Danny Braniss <danny at cs.huji.ac.il>
PR:		bin/68303
No objections:	des, gshapiro, nectar
Reviewed by:	ru
Approved by:	rwatson (mentor)
MFC after:	2 weeks
2004-11-13 20:40:32 +00:00
ru
d9df4f59eb Re-enable descending into the "atm" subdir. 2004-10-05 07:47:46 +00:00
dougb
fc66d174a3 1. Add much finer granularity to the NO_BIND knobs with the addition of:
NO_BIND_DNSSEC, NO_BIND_ETC, NO_BIND_NAMED, and NO_BIND_UTILS.

2. Make creation of directories in /usr/include that are only needed
in the WITH_BIND_LIBS case conditional.

Reviewed by:	ru, des
2004-09-27 08:23:43 +00:00
des
a4c12f8006 Switch from BIND 8 to BIND 9.
Submitted by:	(in part) dougb@, trhodes@
Reviewed by:	dougb@, trhodes@, re@
MFC after:	5 days
2004-09-21 19:01:48 +00:00
sobomax
f292884004 Add mkuzip(8), non-GPL utility to compress filesystem images for use with
geom_uzip module. This is based on utility I wrote some 3 years ago for a
hack for md(4), which functionally was close to what geom_uzip does today.

Since I don't have a time to test that it compiles/works on other arches,
stick it to i386 only. Will do it later.

Unlike original cloop util, this one embedds FreeBSD-compatible shell code
into the generated image, not Linux one. Unfortunately severe space
restriction imposed by the CLOOP format doesn't allow to put conditional
code which will work both on Linux and FreeBSD. In fact it was quite a
challenge to fit necessary FreeBSD code into 127 bytes. ;-)
2004-09-10 20:17:31 +00:00
emax
3c9dfc9919 Make bluetooth compile on all platforms
Reviewed by:	imp, ru
2004-07-07 22:48:30 +00:00
dwmalone
cfc5f034d6 A first stab at truss support for amd64, basically cogged from i386.
It seems to work in my limited tests.
2004-06-12 22:49:06 +00:00
peter
1704e84aba Build/install gprof on amd64 as well, after repocopying the MD bits.
Not that it has anything to process yet, but that comes next.
2004-05-18 18:05:19 +00:00
cognet
dd9f981b68 Insert "arm" between "amd64" and "powerpc"
Requested by:	bde
2004-05-14 23:08:52 +00:00
cognet
fc542086d8 Use four spaces instead of tab for second level indentation.
Requested by:	ru
2004-05-14 14:50:55 +00:00
cognet
a630f4edc1 Do not build truss on arm. 2004-05-14 13:43:18 +00:00
kientzle
f73108ad1c Connect bsdtar to the build. 2004-04-06 17:04:38 +00:00
gad
df297ea749 Hook pkill' (and thus pgrep') to the standard buildworld.
Reviewed by:	freebsd-arch
2004-03-27 05:44:55 +00:00
des
14651d99f3 Remove doscmd from the base system now that it lives in the ports tree. 2004-03-23 22:27:24 +00:00
imp
f6d28bfe48 With the passing of the asc driver, the sasc prograqm is no longer
necessary.
2004-03-14 04:59:17 +00:00
des
7f2329af2a Hook logins(1) up to the build. 2004-03-06 21:57:47 +00:00
emax
3f0b112d3c Add NO_BLUETOOTH knob to the build process
Requested by:	phk
Reviewed by:	imp (mentor), ru
2004-01-28 00:42:51 +00:00
ru
6593bb80ea - Build things in pure dictionary order (see sort(1)).
- Unify the conditional assignments section so that architectural
  exclusions come first, then options and !options, sorted by the
  option name, also in directory order, then architecture specific
  sections, sorted by the architecture name, with i386 being a
  traditional exception.

Prodded by:	bde
2004-01-16 15:23:19 +00:00
marcel
cae05e711a Build lint(1) on ia64. 2003-11-03 05:14:47 +00:00
harti
f5759b00c4 Build the NgATM user space SSCOP tool (unless NOATM is defined). 2003-10-29 10:30:54 +00:00
emax
41bb0e8fd2 Update Bluetooth code.
Reviewed by: M. Warner Losh <imp@bsdimp.com>; John Hay <jhay@freebsd.org>
Approved by: M. Warner Losh <imp@bsdimp.com> (mentor)
2003-10-12 22:04:24 +00:00
marcel
ccbfee854e Fix bug introduced in version 1.246 with the addition of NO_TOOLCHAIN.
The c89, c99, lex and yacc subdirectories were bogusly added to the
${MACHINE_ARCH} != "ia64" case.

Pointy hat: phk
2003-09-24 00:43:48 +00:00
tjr
5d369f4c62 Remove symorder. It's almost useless now that we have ELF kernels and
no a.out toolchain.
2003-09-11 05:58:21 +00:00
tjr
81063d1dcb Fix typo: c89, not c88. 2003-09-05 09:03:39 +00:00
phk
21e62f9e80 Typo in last commit.
Spotted by:	tjr
2003-08-30 06:39:56 +00:00
phk
69a89b719e Introduce more knobs to slim down FreeBSD userland
NO_TOOLCHAIN	skips Compilers and Binutils
NO_USB		skips USB stuff
NO_VINUM	skips Vinum stuff
NO_ACPI		skips ACPI stuff
2003-08-29 10:35:01 +00:00
markm
376c7c030b Don't check for the existance of src/crypto/ for building items that
may contain crypto. The days of ITAR paranoia are over, and the simple
macro tests that remain are sufficient.
2003-07-24 18:30:25 +00:00
peter
13ec34c585 Connect ncplist, ncplogin, and smbutil to the amd64 build. 2003-07-24 02:09:19 +00:00
markm
d6aec2b6d6 Very big makeover in the way telnet, telnetd and libtelnet are built.
Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".

As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).

Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.
2003-07-16 20:59:15 +00:00
julian
4e5ab31742 Temporarily re-remove the bluetooth tools..
there are problems with their Makefiles I wasn't aware of..

Pointed out by: ru@
2003-06-24 19:11:14 +00:00
julian
19daaad84f Connect bluetooth tools for i386 only.
These are probably machine independent, but
there is no way for the developers to test them other than on x86.

They will become MD as testing becomes possible.
2003-06-24 13:25:24 +00:00
phantom
4a223af282 Hook locale(1) to build 2003-06-22 08:41:03 +00:00
des
e5d2d778eb Retire the useless NOSECURE knob.
Approved by:	re (scottl)
2003-05-19 15:52:01 +00:00
peter
5edc5326f4 Exclude gprof and truss for amd64 too.
Approved by:  re (scottl)
2003-05-08 06:33:07 +00:00
markm
ee63e7dc15 Turn MAKE_KERBEROS5 into NO_KERBEROS by negating the logic. Some extra
cleanups were necessary in release/Makefile, and the tinderbox code
was syntax checked, not run checked.
2003-05-05 07:58:44 +00:00
ru
1c2eb6f7c3 Do not attempt to build chkey(1) and newkey(8) if NOSECURE is defined.
Submitted by:	Marius Strobl <marius@alchemy.franken.de>
2003-05-01 19:43:01 +00:00
ru
0deec148ba Build non-crypto telnet(1) and telnetd(8) if NO_OPENSSL is defined.
Submitted by:	Marius Strobl <marius@alchemy.franken.de>
2003-05-01 19:38:15 +00:00
ru
13592a9888 Don't clobber Kerberos5 telnet(1) and telnetd(8) with non-crypto versions. 2003-04-30 07:24:35 +00:00
mdodd
10cf386385 Add usbhidaction(1).
This allows actions to be bound to HID events.

Obtained from:	 NetBSD
2003-04-09 11:16:34 +00:00
tjr
cc09a6b3db G/C tconv: It is libmytinfo-dependent and has not compiled for 3+ years. 2003-04-04 01:10:25 +00:00
obrien
5fcbca2516 Some things don't build for PowerPC yet.
List from:	benno
2003-02-21 02:30:51 +00:00
obrien
2c8f50670b chflags(1) repo copied, usr.bin->bin.
We've been installing chflags(1) into /bin since 2000-11-10, so this
shouldn't cause any problems.
2003-02-18 19:51:59 +00:00
obrien
8115ffde7c kenv(1) has been repo copied from usr.bin to bin.
Sometimes we need kenv(1) in /etc/rc.diskless*.
2003-01-20 17:56:25 +00:00
obrien
cc2b1f1c63 Hookup elfdump. 2003-01-15 18:33:32 +00:00
obrien
ee59f38b2a Complete the bzip2 suite. 2003-01-04 17:09:27 +00:00
obrien
b09fc872b2 Move elf2aout back to /usr/bin -- it is a general development tool, not
a sysadmin tool.
2002-12-30 10:01:26 +00:00
obrien
580898be41 As warned on freebsd-current@, remove the perl wrapper from /usr/src.
The /usr/bin/perl wrapper isn't solving many of the problems it was
imported to deal with.  There are limitations to it that don't have a
clear "fix".

Reviewed by:	markm, kris
Extorted approval from:	re(jhb)
2002-11-27 17:46:26 +00:00
marcel
ac9f5d9dd0 o Build truss on all architectures.
o  xlint is still excluded from the ia64 build, but now in a way
   that doesn't corrupt ordering for other platforms.
2002-11-10 01:01:58 +00:00
ru
11834b7f23 bsd.doc.mk changes:
Don't gratuitously pipe thru a cat(1) if NODOCCOMPRESS.

Only create _stamp.extra when necessary.

Get rid of SOELIMPP and OBJS.

Use Groff version of soelim(1); we need its -I option
for the following to work.

Don't needlessly chdir to SRCDIR.  Only a few documents
need CD_HACK, and those that need it either use refer(1)
or .PSPIC macro which internally uses the .psbb call.
2002-10-29 14:56:09 +00:00
tjr
c149a29f01 Add the c99(1) utility, which is nothing more than a synonym for
cc -std=iso9899:1999 -pedantic, and is required by SUSv3.

PR;	36087
2002-10-07 09:37:55 +00:00
peter
a51c9b6627 Initiate deorbit burn for the i386-only a.out related support. Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha
2002-09-17 01:49:00 +00:00
peter
c8ada7e754 Promote gcore from i386-specific to the MI section.
Compiled on: alpha, sparc64, ia64
2002-09-13 18:29:08 +00:00
jake
8d72d232ef truss hasn't been ported to ia64 yet.
Noticed by:	ru
2002-08-10 06:10:17 +00:00
jake
b46f5a1520 xlint seems to build fine on sparc64. 2002-08-10 05:44:44 +00:00
jake
ba018bfce3 Put getconf in the right place. 2002-08-10 05:43:40 +00:00
wollman
b5e36ca813 A little bit more thought has resulted in a generic script which can
implement any of the useless POSIX-required ``regular shell builtin''
utilities, saving one frag and one inode each.  The script moves to
usr.bin/alias which is alphabetically the first of these commands.
2002-07-16 22:16:05 +00:00
wollman
55d0b83955 POSIX requires these shell builtins to also exist as totally pointless
external commands.  Since they serve no useful purpose, it's OK that their
implementation is not the most efficient possible.
2002-07-16 21:13:11 +00:00
peter
956c81630a Bring getconf back in from the cold. 2002-07-11 07:28:21 +00:00
johan
4d3938381c Reconnect whereis
Approved by:    sheldonh (mentor)
2002-07-03 19:23:50 +00:00
johan
f6c6d3c4f3 Disconnect whereis while importing version from NetBSD
Approved by:  sheldonh (mentor)
2002-07-03 19:05:15 +00:00
jmallett
886a05312e Untie help and sccs from the build. sccs has been repo copied into
projects/sccs/sccs/, to accompany projects/sccs/sccscmds, and help will
be dying shortly.

These programs will not be a part of 5.0-RELEASE, at least not in their
current form.  They'll either end up in src/contrib or ports.

Submitted by:	obrien
2002-06-29 22:45:44 +00:00
dougb
e8ef99c274 Per previous discussion, and with Mark's blessing, update the value
of this knob to reflect (-)current reality.
2002-06-09 09:28:02 +00:00
dougb
a251620880 Hook stat into the build
Fix a trailing ws nit while I'm here
2002-06-06 19:36:51 +00:00
des
db9524cde5 Don't build perl if NO_PERL is defined. 2002-06-04 15:20:11 +00:00
des
70bffa5c27 Connect perl to the build. 2002-06-02 22:43:17 +00:00
marcel
58435e6cb7 Add uuidgen(2) and uuidgen(1).
The uuidgen command, by means of the uuidgen syscall, generates one
or more Universally Unique Identifiers compatible with OSF/DCE 1.1
version 1 UUIDs.

From the Perforce logs (change 11995):

Round of cleanups:
o  Give uuidgen() the correct prototype in syscalls.master
o  Define struct uuid according to DCE 1.1 in sys/uuid.h
o  Use struct uuid instead of uuid_t. The latter is defined
   in sys/uuid.h but should not be used in kernel land.
o  Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid()
   to kern_uuid.c for use in the kernel (currently geom_gpt.c).
o  Rename the non-standard struct uuid in kern/kern_uuid.c
   to struct uuid_private and give it a slightly better definition
   for better byte-order handling. See below.
o  In sys/gpt.h, fix the broken uuid definitions to match the now
   compliant struct uuid definition. See below.
o  In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change.

A note about byte-order:
        The standard failed to provide a non-conflicting and
unambiguous definition for the binary representation. My initial
implementation always wrote the timestamp as a 64-bit little-endian
(2s-complement) integral. The clock sequence was always written
as a 16-bit big-endian (2s-complement) integral. After a good
nights sleep and couple of Pan Galactic Gargle Blasters (not
necessarily in that order :-) I reread the spec and came to the
conclusion that the time fields are always written in the native
by order, provided the the low, mid and hi chopping still occurs.
The spec mentions that you "might need to swap bytes if you talk
to a machine that has a different byte-order". The clock sequence
is always written in big-endian order (as is the IEEE 802 address)
because its division is resulting in bytes, making the ordering
unambiguous.
2002-05-28 06:16:08 +00:00
tjr
c749049ff8 Hook newgrp(1) up to the build.
PR:		36190
2002-05-28 05:07:42 +00:00
ru
6e02fb8404 Move elf2aout to usr.sbin/.
Approved by:	jake
2002-05-25 13:29:47 +00:00
jmallett
981165838b Taking a leap of faith, tie the help command in to the build. 2002-05-22 23:15:58 +00:00
jmallett
050fe17638 Tie sccs(1) in to the build, as it now does one thing right: sccs what 2002-05-22 16:19:31 +00:00
jmallett
51cd687bb8 Remove mention of the GNU version of ptx, it is dead. 2002-05-22 16:18:14 +00:00