Commit Graph

416 Commits

Author SHA1 Message Date
David Malone
8fb0d51534 Improve MIME handling. This patch is based on Eugene's patch, but
with the following changes:

1) Don't make a mime_types.h 'cos we should avoid creating variables
   in header files,
2) Use strrchr to find the extension, rather than strchr,
3) Slightly simplify the mime-type matching loop.

any goof are likely to be mine. Note that there are links to more
improvements by Eugene in the PR.

PR:		29725
Submitted by:	Eugene Grosbein <eugen@kuzbass.ru>
2004-08-16 09:38:34 +00:00
Luigi Rizzo
d50984ba5f remove stale documentation 2004-03-24 08:01:15 +00:00
Luigi Rizzo
08a8fe8b71 remove floppy image type 2004-03-24 07:55:08 +00:00
Luigi Rizzo
294dc78cd8 remove this floppy image too. 2004-03-24 07:54:00 +00:00
Luigi Rizzo
4d65645cbf remove this floppy image. 2004-03-24 07:53:12 +00:00
Luigi Rizzo
ee8c7c4ee9 Remove this picobsd floppy type.
We only want to support one in -current, and let people take care
of their own images.
2004-03-24 07:51:40 +00:00
Luigi Rizzo
328f5ff96e fix building of bridge floppies 2004-03-24 07:30:54 +00:00
Luigi Rizzo
616f4ca3a7 Fix various issues with the picobsd build script in -current:
+ declare some shell variables as 'local'
+ add a missing ';;' in a 'case' statement
+ centralize newfs options
+ properly override GID and UID when installing include files and libraries
+ add a missing '-r' in disklabel commands (maybe not necessary, but it
  does not harm and it was used in the RELENG_4 version)
+ no more require 'perl' when installing the secondary loader
+ use '-t rsa1' when invoking ssh-keygen
2004-03-21 10:46:13 +00:00
Colin Percival
d623b765cf style cleanup: Remove duplicate $FreeBSD$ tags.
These files had tags after the copyright notice,
inside the comment block (incorrect, removed),
and outside the comment block (correct).

Approved by:	rwatson (mentor)
2004-02-10 20:42:33 +00:00
Hidetoshi Shimokawa
0f7d82315a Remove obsolete disklabel and newfs options. 2003-11-07 12:49:55 +00:00
Luigi Rizzo
b7850636cd comment out the 'sshd' entries as the image is now 1460KB
and does not fit into a floppy anymore (1403kb available).

There is not much you can do now except bumping up the image size
(by uncommenting the "fd_size=2880" line in ./config),
at which point you can uncomment sshd, the associated library,
and all the good stuff such as tcpdump and natd and ppp that
you might want on such a box.

A similar change should be applied to other picobsd image types.
2003-06-22 15:37:14 +00:00
Luigi Rizzo
5fe83c8acb Make this compile again: we need to specify a scheduler,
and remove the count for devices "sc" and "atkbdc"

This change does not apply to RELENG_4.
2003-06-22 15:32:09 +00:00
Mark Murray
eb03707082 We no longer have KerberosIV. Remove it here also. 2003-04-30 17:50:08 +00:00
David Malone
fa25e61082 Don't forget to send the Content-length header after calculating it.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2003-04-05 17:15:38 +00:00
David Malone
cda5ba2ceb More warns cleanups and misc cleanups:
1) Make fetch_mode a pointer 'cos we can just use the optarg.
2) Constness.
3) Add/complete prototypes.
4) Change an int to a socklen_t.
5) Don't use C++ style comments.
6) Check return values from read and fork a little more carefully.
7) Avoid closing an uninitialised int.
8) Get rid of unneeded extern declarations.
2003-04-05 15:27:27 +00:00
David Malone
a8b08ce3b1 Don't return with a value in a void function.
Pass a time_t rather than a long to time.
2003-03-13 22:06:10 +00:00
Luigi Rizzo
6008a3d4b6 Upgrade the root partition mount to r/w before trying to write to it.
MFC after: 3 days
2002-11-17 20:19:34 +00:00
Alfred Perlstein
9e9715e9c0 de-__P() 2002-10-10 00:32:55 +00:00
Mark Murray
3e2d217cd3 Fix some bitrotted documentation. 2002-09-24 13:34:36 +00:00
Luigi Rizzo
79a19533fb Make this compile again (libgmd now is a port, and remove some
binaries to save space).
2002-08-24 03:54:38 +00:00
Luigi Rizzo
606d3b3cd7 Mention the special pathname @__CWD__@
Modify entry for libgmd (used by ssh) now that it is not part of the
base system anymore.
2002-08-24 03:33:31 +00:00
Luigi Rizzo
fb9f73c4dd Add "tty" entry. 2002-07-14 14:18:16 +00:00
Luigi Rizzo
f106b4e132 Add entry for the "screen" program. 2002-07-14 14:17:28 +00:00
Luigi Rizzo
8bed80ea8a Not needed anymore. 2002-07-14 12:09:33 +00:00
Luigi Rizzo
290d66b5f5 Replace a logverbose call with log 2002-07-14 12:07:06 +00:00
Luigi Rizzo
267d023df8 Enable building of picobsd using CURRENT sources again.
Following a suggestion by Ruslan, the initial creation of the
includes and libraries (and build tools) is now done by
invoking "make buildworld" (with -DPICOBSD which eventually will
limit the amount of stuff built with a 2-line change in Makefile.inc1).
The correct environment is then used for subsequent builds.

Also remove write_mfs_in_kernel.c in favour of using dd

All the above is conditional on __FreeBSD_version, as the previous
method still worked for versions earlier than 500035, and I am
unsure on how the "new" method works for earlier versions.

Finally, note that the crunch.conf files need some work because
some libraries (e.g. gmd) have gone away from the base installation.
2002-07-14 09:07:13 +00:00
Luigi Rizzo
c50cb82930 Move creation of password databases before starting daemons,
otherwise the latter might fail because userids are not found.
2002-07-01 21:30:39 +00:00
Kirk McKusick
1c85e6a35d This commit adds basic support for the UFS2 filesystem. The UFS2
filesystem expands the inode to 256 bytes to make space for 64-bit
block pointers. It also adds a file-creation time field, an ability
to use jumbo blocks per inode to allow extent like pointer density,
and space for extended attributes (up to twice the filesystem block
size worth of attributes, e.g., on a 16K filesystem, there is space
for 32K of attributes). UFS2 fully supports and runs existing UFS1
filesystems. New filesystems built using newfs can be built in either
UFS1 or UFS2 format using the -O option. In this commit UFS1 is
the default format, so if you want to build UFS2 format filesystems,
you must specify -O 2. This default will be changed to UFS2 when
UFS2 proves itself to be stable. In this commit the boot code for
reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c)
as there is insufficient space in the boot block. Once the size of the
boot block is increased, this code can be defined.

Things to note: the definition of SBSIZE has changed to SBLOCKSIZE.
The header file <ufs/ufs/dinode.h> must be included before
<ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and
ufs_lbn_t.

Still TODO:
Verify that the first level bootstraps work for all the architectures.
Convert the utility ffsinfo to understand UFS2 and test growfs.
Add support for the extended attribute storage. Update soft updates
to ensure integrity of extended attribute storage. Switch the
current extended attribute interfaces to use the extended attribute
storage. Add the extent like functionality (framework is there,
but is currently never used).

Sponsored by: DARPA & NAI Labs.
Reviewed by:	Poul-Henning Kamp <phk@freebsd.org>
2002-06-21 06:18:05 +00:00
Luigi Rizzo
d813626f4d Add a few files which are needed to build "passwd" now that
the standard version of these files have been PAMified (and axed).
2002-06-20 21:17:33 +00:00
Dima Dorfman
b90faaf350 sysctl -w -> sysctl 2002-05-11 06:06:11 +00:00
Luigi Rizzo
18074efb5e Bring in a slightly older version of usr/bin/passwd which does not
require libpam and all the libraries that libpam brings in.
We have no room for those on picobsd images.
2002-05-05 20:43:27 +00:00
Dag-Erling Smørgrav
d397408818 Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Ruslan Ermilov
33c4ab81da Record libtelnet.a death. 2002-04-19 12:39:09 +00:00
Ruslan Ermilov
f2f306b622 Align for const poisoning in -lutil. 2002-04-08 11:07:51 +00:00
Ruslan Ermilov
6db4dfa90f Synch with login/login.c,v 1.81: Switch to OpenPAM. 2002-04-08 10:58:01 +00:00
Luigi Rizzo
4323f7b024 Fix handling of undefined variables.
Add override for /etc/rc.local .
Add hook to start syslogd if compiled-in and /etc/syslog.conf exists
2002-04-07 20:41:09 +00:00
Jeroen Ruigrok van der Werven
b3d3fc366e Add a missing void in the parameter list of http_request(). 2002-04-07 17:42:27 +00:00
Jeroen Ruigrok van der Werven
ebd3c05e64 Give functions proper return type, since the default is an integer, where
the author obviously meant a void since he doesn't return any values.

One caveat, http_request has three return()'s, but doesn't do anything
with it.  Either the code needs to be rewritten to take care of proper
error handling on that point, or the returns ripped out.  I made it void
for now.
2002-04-07 17:41:33 +00:00
Jeroen Ruigrok van der Werven
bc45ee7458 Use %lld instead of %d in order to print struct stat's st_size, which is
an off_t.

PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:22:23 +00:00
Jeroen Ruigrok van der Werven
6ef06b5a75 Garbage collect unused variables.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:16:28 +00:00
Jeroen Ruigrok van der Werven
41c6cb53dd Actually print the port we are listening too when specified verbose mode.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:07:37 +00:00
Andrzej Bialecki
3c0df64f68 Function declared void shouldn't return any value... 2002-03-27 20:10:53 +00:00
Poul-Henning Kamp
aaead0dfe9 Modernize my email address. 2002-03-25 13:52:45 +00:00
Luigi Rizzo
4b70a96b46 Add a few popular entries. 2002-03-24 21:13:53 +00:00
Ruslan Ermilov
0c77ef0f08 DESTDIR does not anymore does the -I${DESTDIR}/usr/include magic
in <bsd.prog.mk> and <bsd.lib.mk>.

Reviewed by:	luigi
2002-03-22 18:36:41 +00:00
Luigi Rizzo
0a0f4967e0 Gracefully exit when no MFS signature is found in the kernel.
Add support for a new "import_files" option (see manpage for details).
2002-03-21 03:15:06 +00:00
Luigi Rizzo
5da84e47e9 Batch of fixes to the configuration files from Bruce Montague 2002-03-15 08:46:18 +00:00
Luigi Rizzo
900e78cdda Make this compile again
Reported-by: Bruce Montague
2002-03-11 08:03:50 +00:00
Luigi Rizzo
1fe994e78b Make this compile again (increase MFS size, remove invalid option).
Reported-by: Bruce Montague
2002-03-11 08:03:07 +00:00
Luigi Rizzo
5ea9adc715 Fix detection of existing ssh host key, generate the new one
in floppy.tree instead of mfs_tree.

Do not cleanup ${BUILDDIR}/floppy.tree, it might be useful to look
at it after an image has been built.
2002-03-11 05:54:22 +00:00