diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2010-03-07 00:37:04 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2010-03-07 00:37:04 +0000 |
commit | 1e62d833d8a7b0c84b749cb381de4d499b710fd8 (patch) | |
tree | c8566bb530b22efc1d053e3cd9d66bac65f4548d /net/dgd-lpmud | |
parent | 10ffd5c302d6e9e28fd6b6f6df30228e323a4e60 (diff) | |
download | ports-1e62d833d8a7b0c84b749cb381de4d499b710fd8.tar.gz ports-1e62d833d8a7b0c84b749cb381de4d499b710fd8.zip |
Notes
Diffstat (limited to 'net/dgd-lpmud')
-rw-r--r-- | net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c | 50 | ||||
-rw-r--r-- | net/dgd-lpmud/files/patch-lpmud.dgd | 7 |
2 files changed, 49 insertions, 8 deletions
diff --git a/net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c b/net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c index fc3d46f5d99f..c5373db15317 100644 --- a/net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c +++ b/net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c @@ -2,7 +2,28 @@ $FreeBSD$ --- 2.4.5/dgd/sys/driver.c.orig 1996-11-28 14:23:11.000000000 -0800 +++ 2.4.5/dgd/sys/driver.c 2009-07-05 19:04:50.000000000 -0700 -@@ -143,12 +143,40 @@ +@@ -3,6 +3,10 @@ + # include <status.h> + # include "/dgd/lib/privilege.h" + ++#ifdef __NETWORK_EXTENSIONS__ ++#define TELNET_PORT 2000 ++#endif ++ + object *usr; /* user array just before a swapout */ + + /* +@@ -50,6 +54,9 @@ + } + } + send_message("Setting up ipc.\n"); ++#ifdef __NETWORK_EXTENSIONS__ ++ open_port("telnet", TELNET_PORT); ++#endif + } + + /* +@@ -143,12 +147,40 @@ } /* @@ -45,7 +66,7 @@ $FreeBSD$ } /* -@@ -183,7 +211,7 @@ +@@ -183,7 +215,7 @@ * NAME: telnet_connect() * DESCRIPTION: return a player object */ @@ -54,7 +75,7 @@ $FreeBSD$ { object user, player; -@@ -204,7 +232,7 @@ +@@ -204,7 +236,7 @@ * NAME: binary_connect() * DESCRIPTION: return another player object (just to test) */ @@ -63,7 +84,7 @@ $FreeBSD$ { object user, player; -@@ -225,7 +253,7 @@ +@@ -225,7 +257,7 @@ * NAME: runtime_error() * DESCRIPTION: log a runtime error */ @@ -72,7 +93,24 @@ $FreeBSD$ { mixed **trace; string progname, objname, function, str; -@@ -315,6 +343,15 @@ +@@ -249,6 +281,16 @@ + return user; + } + ++#ifdef __NETWORK_EXTENSIONS__ ++/* ++ * NAME: connection() ++ * DESCRIPTION: return a user object. ++ */ ++object connection(string ipnumber, int port) { ++ return telnet_connect(port); ++} ++#endif ++ + /* + * NAME: runtime_error() + * DESCRIPTION: log a runtime error +@@ -315,6 +357,15 @@ } /* @@ -88,7 +126,7 @@ $FreeBSD$ * NAME: interrupt() * DESCRIPTION: deal with a kill signal */ -@@ -377,3 +414,12 @@ +@@ -377,3 +428,12 @@ { return 0; /* No. */ } diff --git a/net/dgd-lpmud/files/patch-lpmud.dgd b/net/dgd-lpmud/files/patch-lpmud.dgd index b9238d5f6369..a8b4f1d6447c 100644 --- a/net/dgd-lpmud/files/patch-lpmud.dgd +++ b/net/dgd-lpmud/files/patch-lpmud.dgd @@ -1,19 +1,22 @@ +$FreeBSD$ + --- lpmud.dgd.orig 2009-07-03 22:33:04.000000000 -0700 +++ lpmud.dgd 2009-07-03 22:34:31.000000000 -0700 -@@ -1,10 +1,10 @@ +@@ -1,10 +1,11 @@ telnet_port = 2000; /* telnet port number */ binary_port = 1999; /* binary port number */ -directory = "/usr/local/mud/2.4.5";/* base directory (MUST be absolute) */ +directory = "%%DATADIR%%/lpmud";/* base directory (MUST be absolute) */ users = 40; /* max # of users */ editors = 41; /* 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-lpmud.swap";/* swap file */ swap_size = 20960; /* # sectors in swap file */ cache_size = 100; /* # sectors in swap cache */ sector_size = 1024; /* swap sector size */ -@@ -12,6 +12,7 @@ +@@ -12,6 +13,7 @@ static_chunk = 64512; /* static memory chunk */ dynamic_chunk = 261120; /* dynamic memory chunk */ dump_file = "../dump"; /* state dump file */ |