diff options
Diffstat (limited to 'net/dgd/files')
-rw-r--r-- | net/dgd/files/extrapatch-kernellib-net | 6 | ||||
-rw-r--r-- | net/dgd/files/patch-mud.dgd | 18 | ||||
-rw-r--r-- | net/dgd/files/patch-src-Makefile | 20 | ||||
-rw-r--r-- | net/dgd/files/patch-src-comp.c | 22 |
4 files changed, 57 insertions, 9 deletions
diff --git a/net/dgd/files/extrapatch-kernellib-net b/net/dgd/files/extrapatch-kernellib-net index 7cb125bc7a99..58e17128908c 100644 --- a/net/dgd/files/extrapatch-kernellib-net +++ b/net/dgd/files/extrapatch-kernellib-net @@ -48,7 +48,7 @@ # define BINARY_CONN ("/kernel" + CLONABLE_SUBDIR + "binary") # define API_USER ("/kernel" + INHERITABLE_SUBDIR + "api/user") -+ #ifdef __NETWORK_PACKAGE__ ++ #ifdef __NETWORK_EXTENSIONS__ + #define LIB_PORT "/kernel/lib/network/port" + #endif + @@ -60,7 +60,7 @@ *************** *** 1,2 **** --- 1,8 ---- -+ #ifdef __NETWORK_PACKAGE__ ++ #ifdef __NETWORK_EXTENSIONS__ + #ifndef SYS_NETWORKING + #define SYS_NETWORKING + #endif @@ -583,7 +583,7 @@ # include <kernel/access.h> # include <kernel/user.h> # include <kernel/tls.h> -+ # ifdef __NETWORK_PACKAGE__ ++ # ifdef __NETWORK_EXTENSIONS__ + # ifndef SYS_NETWORKING + # define SYS_NETWORKING + # endif diff --git a/net/dgd/files/patch-mud.dgd b/net/dgd/files/patch-mud.dgd new file mode 100644 index 000000000000..be48d259f51f --- /dev/null +++ b/net/dgd/files/patch-mud.dgd @@ -0,0 +1,18 @@ +$FreeBSD$ + +--- mud.dgd.orig 2010-02-20 08:46:29.000000000 -0800 ++++ mud.dgd 2010-02-20 08:47:38.000000000 -0800 +@@ -1,11 +1,11 @@ + telnet_port = 6047; /* telnet port number */ + binary_port = 6048; /* binary port number */ +-directory = "/home/dworkin/dgd/mud";/* base directory (MUST be absolute) */ ++directory = "%%DATADIR%%/kernel"; /* base directory (MUST be absolute) */ + users = 40; /* max # of users */ + editors = 40; /* max # of editor sessions */ + ports = 16; /* max number of open ports (for network extensions) */ + ed_tmpfile = "../tmp/ed"; /* proto editor tmpfile */ +-swap_file = "../tmp/swap"; /* swap file */ ++swap_file = "../tmp/dgd.swap"; /* swap file */ + swap_size = 1024; /* # sectors in swap file */ + cache_size = 50; /* # sectors in swap cache */ + sector_size = 512; /* swap sector size */ diff --git a/net/dgd/files/patch-src-Makefile b/net/dgd/files/patch-src-Makefile index d382607f0bfd..f21e5de91852 100644 --- a/net/dgd/files/patch-src-Makefile +++ b/net/dgd/files/patch-src-Makefile @@ -1,8 +1,16 @@ $FreeBSD$ ---- src/Makefile.orig 2009-07-03 17:24:28.000000000 -0700 -+++ src/Makefile 2009-07-03 17:26:10.000000000 -0700 -@@ -8,9 +8,9 @@ +--- src/Makefile.orig 2010-02-12 13:38:01.000000000 -0800 ++++ src/Makefile 2010-02-20 08:54:47.000000000 -0800 +@@ -16,16 +16,15 @@ + # along with this program. If not, see <http://www.gnu.org/licenses/>. + # + HOST= DARWIN +-DEFINES=-D$(HOST) #-DNETWORK_EXTENSIONS #-DDUMP_FUNCS +-DEBUG= -O -g ++DEFINES=-D$(HOST) $(EXTRA_DEFINES) #-DNETWORK_EXTENSIONS #-DDUMP_FUNCS + CCFLAGS=$(DEFINES) $(DEBUG) + CFLAGS= -I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS) LDFLAGS= LIBS= LINTFLAGS=-abcehpruz @@ -14,7 +22,7 @@ $FreeBSD$ YACC= yacc BIN= ../bin -@@ -22,6 +21,8 @@ +@@ -36,6 +35,8 @@ COMPOBJ=alloc.o error.o hash.o path.o str.o array.o object.o sdata.o data.o \ interpret.o config.o @@ -23,7 +31,7 @@ $FreeBSD$ a.out: $(OBJ) always cd comp; $(DMAKE) 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' 'YACC=$(YACC)' dgd cd lex; $(DMAKE) 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd -@@ -39,10 +40,15 @@ +@@ -53,10 +54,15 @@ @rm -f a.out $(BIN)/driver: a.out @@ -40,7 +48,7 @@ $FreeBSD$ lint: lint $(LINTFLAGS) $(CFLAGS) $(SRC) -@@ -68,7 +74,8 @@ +@@ -82,7 +88,8 @@ comp/a.out: cd comp; $(DMAKE) 'DMAKE=$(DMAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' \ diff --git a/net/dgd/files/patch-src-comp.c b/net/dgd/files/patch-src-comp.c new file mode 100644 index 000000000000..e6337a27ef81 --- /dev/null +++ b/net/dgd/files/patch-src-comp.c @@ -0,0 +1,22 @@ +$FreeBSD$ + +--- src/comp/comp.c.orig 2010-02-20 08:34:08.000000000 -0800 ++++ src/comp/comp.c 2010-02-20 08:34:17.000000000 -0800 +@@ -631,7 +631,7 @@ + * NAME: comm->init() + * DESCRIPTION: pretend to initialize communications + */ +-#ifndef NETWORK_EXTENSION ++#ifndef NETWORK_EXTENSIONS + bool comm_init(n, thosts, bhosts, tports, bports, ntelnet, nbinary) + int n, ntelnet, nbinary; + #else +@@ -765,7 +765,7 @@ + * NAME: comm->users() + * DESCRIPTION: pretend to return an array with all user objects + */ +-#ifndef NETWORK_EXTENSION ++#ifndef NETWORK_EXTENSIONS + array *comm_users(data) + dataspace *data; + { |