aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2010-03-07 08:37:04 +0800
committerglewis <glewis@FreeBSD.org>2010-03-07 08:37:04 +0800
commit54b72013aef0fca460fc8f429879c32fcf4349eb (patch)
tree7cd725f0f5b24c922e3da4a4a817a5d4fb85f673 /net
parent46aa894ed35be85c4a2064133615757b49b34125 (diff)
downloadfreebsd-ports-gnome-54b72013aef0fca460fc8f429879c32fcf4349eb.tar.gz
freebsd-ports-gnome-54b72013aef0fca460fc8f429879c32fcf4349eb.tar.zst
freebsd-ports-gnome-54b72013aef0fca460fc8f429879c32fcf4349eb.zip
. Make this work with dgd 1.4.1.
. Make it work with dgd having the networking kfuns turned on.
Diffstat (limited to 'net')
-rw-r--r--net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c50
-rw-r--r--net/dgd-lpmud/files/patch-lpmud.dgd7
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 */