Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
Welcome to the File System Construction Kit! This is a software
package that accompanies the book, Practical File System Design, which
Dominic Giampaolo wrote and is published by Morgan Kaufmann (ISBN
1558604979).
This package is a very simple framework in which you can experiment
with a working (but simple) file system implementation. The framework
is designed so that you can go in and modify one part of it, such as
how the used and free disk blocks are managed, and not have to touch
the rest of the file system. And because the package creates its file
system inside of a normal file on your hard disk, you don't have to
have a spare disk or require special (root) privileges to run the
program. The goal is that this package should provide a convenient
test bed for trying out new file system ideas without having to go
through the pain and difficulty of creating a real kernel based file
system. The API is generic enough however that after an you debug
your implementation within this framework it could be moved to a real
kernel based file system for the BeOS or a Unix like operating system.
+30
View File
@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.8 2012/10/23 19:51:02 asau Exp $
DISTNAME= fs-kit-0.4
CATEGORIES= sysutils
MASTER_SITES= http://www.nobius.org/~dbg/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nobius.org/~dbg/
COMMENT= User-level filesystem testing kit
LICENSE= fs-kit-license
RESTRICTED= No commercial use.
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
WRKSRC= ${WRKDIR}/fs-kit
CFLAGS+= -Dunix=1
MAKE_FILE= makefile
INSTALLATION_DIRS= sbin share/doc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fsh ${DESTDIR}${PREFIX}/sbin/fs-fsh
${INSTALL_PROGRAM} ${WRKSRC}/makefs ${DESTDIR}${PREFIX}/sbin/fs-makefs
${INSTALL_PROGRAM} ${WRKSRC}/tstfs ${DESTDIR}${PREFIX}/sbin/fs-tstfs
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/fs-kit
.include "../../mk/bsd.pkg.mk"
+5
View File
@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/01 18:27:37 agc Exp $
sbin/fs-fsh
sbin/fs-makefs
sbin/fs-tstfs
share/doc/fs-kit
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.3 2012/04/17 17:48:47 joerg Exp $
SHA1 (fs-kit-0.4.tgz) = e2226e62b9ae552ec83fc0afeb30b7716040b88f
RMD160 (fs-kit-0.4.tgz) = 270e09ff438f3c7924476d7905a5458b3ee43fdd
Size (fs-kit-0.4.tgz) = 73603 bytes
SHA1 (patch-aa) = e666b3061ea9ddbfc0cda6d1bcd3512271ddee5a
SHA1 (patch-fsh_c) = a68e7e212af589d11df07a0659aca03c6b4cc9bc
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.2 2012/04/17 17:48:47 joerg Exp $
--- makefile 2005/05/06 21:04:49 1.1
+++ makefile 2005/05/06 21:05:19
@@ -5,7 +5,7 @@
#
# change the -O7 to -O3 if your compiler doesn't grok -O7
#
-CFLAGS = -DUSER=1 -O7
+CFLAGS+= -DUSER=1
SUPPORT_OBJS = rootfs.o initfs.o kernel.o cache.o sl.o stub.o
MISC_OBJS = sysdep.o util.o hexdump.o argv.o
+24
View File
@@ -0,0 +1,24 @@
$NetBSD: patch-fsh_c,v 1.1 2011/10/02 03:18:39 dholland Exp $
- avoid conflict with POSIX getline
--- fsh.c~ 1998-12-03 21:15:47.000000000 +0000
+++ fsh.c
@@ -838,7 +838,7 @@ do_help(int argc, char **argv)
}
static char *
-getline(char *prompt, char *input, int len)
+get_line(char *prompt, char *input, int len)
{
printf("%s", prompt); fflush(stdout);
@@ -854,7 +854,7 @@ do_fsh(void)
char input[512], **argv;
cmd_entry *cmd;
- while(getline(prompt, input, sizeof(input)) != NULL) {
+ while(get_line(prompt, input, sizeof(input)) != NULL) {
argc = 0;
argv = build_argv(input, &argc);
if (argv == NULL || argc == 0) {