summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/lambdamoo/DEINSTALL19
-rw-r--r--net/lambdamoo/DEINSTALL.out19
-rw-r--r--net/lambdamoo/DESCR3
-rw-r--r--net/lambdamoo/MESSAGE5
-rw-r--r--net/lambdamoo/Makefile55
-rw-r--r--net/lambdamoo/PLIST6
-rw-r--r--net/lambdamoo/distinfo6
-rw-r--r--net/lambdamoo/patches/patch-aa13
-rw-r--r--net/lambdamoo/patches/patch-ab65
9 files changed, 191 insertions, 0 deletions
diff --git a/net/lambdamoo/DEINSTALL b/net/lambdamoo/DEINSTALL
new file mode 100644
index 00000000000..117455580a0
--- /dev/null
+++ b/net/lambdamoo/DEINSTALL
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
+#
+
+case $2 in
+ DEINSTALL) cat << EOF
+
+===========================================================================
+If you won't be using lambdamoo-1.8.1 any longer, you may want to remove:
+
+ * the following packages: lambdamoo-doc and lambdamoo-core
+
+ * the following directory: __LAMBDAMOO_HOME__
+===========================================================================
+
+EOF
+ ;;
+esac
diff --git a/net/lambdamoo/DEINSTALL.out b/net/lambdamoo/DEINSTALL.out
new file mode 100644
index 00000000000..58f623d379c
--- /dev/null
+++ b/net/lambdamoo/DEINSTALL.out
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL.out,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
+#
+
+case $2 in
+ DEINSTALL) cat << EOF
+
+===========================================================================
+If you won't be using lambdamoo-1.8.1 any longer, you may want to remove:
+
+ * the following packages: lambdamoo-doc and lambdamoo-core
+
+ * the following directory: /usr/pkg/share/lambdamoo
+===========================================================================
+
+EOF
+ ;;
+esac
diff --git a/net/lambdamoo/DESCR b/net/lambdamoo/DESCR
new file mode 100644
index 00000000000..f7f16ae0542
--- /dev/null
+++ b/net/lambdamoo/DESCR
@@ -0,0 +1,3 @@
+LambdaMOO is a network-accessible, multi-user, programmable, interactive
+system well-suited to the construction of text-based adventure games,
+conferencing systems, and other collaborative software.
diff --git a/net/lambdamoo/MESSAGE b/net/lambdamoo/MESSAGE
new file mode 100644
index 00000000000..0cfb356aa76
--- /dev/null
+++ b/net/lambdamoo/MESSAGE
@@ -0,0 +1,5 @@
+To start LambdaMOO automatically on boot, add the following to /etc/rc.local
+ su - lambdamoo -c "./restart.sh LambdaCore-12Apr99 7777"
+
+To log in
+ telnet localhost 7777
diff --git a/net/lambdamoo/Makefile b/net/lambdamoo/Makefile
new file mode 100644
index 00000000000..2e1e3a18d9f
--- /dev/null
+++ b/net/lambdamoo/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
+
+DISTNAME= LambdaMOO-1.8.1
+PKGNAME= lambdamoo-1.8.1
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.place.org/pub/moo/ \
+ ${MASTER_SITE_SOURCEFORGE:=lambdamoo/} \
+ ftp://ftp.kanga.nu/pub/mirrors/download.sourceforge.net/lambdamoo/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.ccs.neu.edu/home/eostrom/muds/lambdamoo.html
+COMMENT= The definitive MOO software
+
+DEPENDS+= lambdamoo-core>=990412:../../net/lambdamoo-core
+DEPENDS+= lambdamoo-doc>=1.8.0p6:../../net/lambdamoo-doc
+
+LAMBDAMOO_USER?= lambdamoo
+LAMBDAMOO_GROUP?= lambdamoo
+LAMBDAMOO_HOME?= ${PREFIX}/share/${LAMBDAMOO_USER}
+
+PKG_GROUPS= ${LAMBDAMOO_GROUP}
+PKG_USERS= ${LAMBDAMOO_USER}:${LAMBDAMOO_GROUP}
+_PKG_USER_HOME= ${LAMBDAMOO_HOME}
+_PKG_USER_SHELL= ${SH}
+DEINSTALL_EXTRA_TMPL= ${PKGDIR}/DEINSTALL.out
+USE_BUILDLINK_ONLY= # defined
+
+ALL_TARGET=
+GNU_CONFIGURE= yes
+WRKSRC= ${WRKDIR}/MOO-1.8.1
+
+post-build:
+ ${MV} ${WRKSRC}/restart.sh ${WRKSRC}/restart.sh.in
+ ${SED} <${WRKSRC}/restart.sh.in >${WRKSRC}/restart.sh \
+ "s|__PREFIX__|${PREFIX}|g"
+ ${SED} <${PKGDIR}/DEINSTALL >${PKGDIR}/DEINSTALL.out \
+ "s|__LAMBDAMOO_HOME__|${LAMBDAMOO_HOME}|g"
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/moo ${PREFIX}/sbin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/lambdamoo
+ ${INSTALL_SCRIPT} ${WRKSRC}/restart.sh ${PREFIX}/share/lambdamoo
+ ${INSTALL_DATA} ${WRKSRC}/Minimal.db ${PREFIX}/share/lambdamoo
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lambdamoo
+ ${INSTALL_DATA} \
+ ${WRKSRC}/README \
+ ${WRKSRC}/README.Minimal \
+ ${PREFIX}/share/doc/lambdamoo/
+
+post-install:
+ ${CHOWN} -R ${LAMBDAMOO_USER}:${LAMBDAMOO_GROUP} ${LAMBDAMOO_HOME}
+ ${CHMOD} u+w ${LAMBDAMOO_HOME}
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/lambdamoo/PLIST b/net/lambdamoo/PLIST
new file mode 100644
index 00000000000..419df5d8a75
--- /dev/null
+++ b/net/lambdamoo/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
+sbin/moo
+share/doc/lambdamoo/README
+share/doc/lambdamoo/README.Minimal
+share/lambdamoo/Minimal.db
+share/lambdamoo/restart.sh
diff --git a/net/lambdamoo/distinfo b/net/lambdamoo/distinfo
new file mode 100644
index 00000000000..f73aef09e37
--- /dev/null
+++ b/net/lambdamoo/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
+
+SHA1 (LambdaMOO-1.8.1.tar.gz) = 6fc053ce6c305b9d5f3d883450c1bdc05b733c7b
+Size (LambdaMOO-1.8.1.tar.gz) = 363803 bytes
+SHA1 (patch-aa) = f4273667233f6d641354054b4a7f5298b85469de
+SHA1 (patch-ab) = 63c3c2a902dec7796f91e4cb442957f053d4cc7b
diff --git a/net/lambdamoo/patches/patch-aa b/net/lambdamoo/patches/patch-aa
new file mode 100644
index 00000000000..a5c0137e0c8
--- /dev/null
+++ b/net/lambdamoo/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
+
+--- config.h.in.orig Mon Dec 28 21:26:51 1998
++++ config.h.in Sun May 27 17:01:08 2001
+@@ -163,7 +163,7 @@
+ * system provides the named functions.
+ */
+
+-#undef HAVE_CRYPT
++/* #undef HAVE_CRYPT */
+ #undef HAVE_MATHERR
+ #undef HAVE_MKFIFO
+ #undef HAVE_REMOVE
diff --git a/net/lambdamoo/patches/patch-ab b/net/lambdamoo/patches/patch-ab
new file mode 100644
index 00000000000..cb37ceb24a3
--- /dev/null
+++ b/net/lambdamoo/patches/patch-ab
@@ -0,0 +1,65 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
+
+--- restart.sh.orig Mon Mar 3 13:45:05 1997
++++ restart.sh
+@@ -16,28 +16,47 @@
+ # Pavel@Xerox.Com
+
++compressor=gzip
++suffix=gz
++save_old_database=no
++
+ if [ $# -lt 1 -o $# -gt 2 ]; then
+- echo 'Usage: restart dbase-prefix [port]'
++ echo 'Usage: restart.sh dbase-prefix [port]'
++ echo 'examples:'
++ for i in "__PREFIX__/share/lambdamoo/"*.db
++ do
++ echo " restart.sh $(basename $i .db)"
++ done
+ exit 1
+ fi
+
+-if [ ! -r $1.db ]; then
+- echo "Unknown database: $1.db"
++if [ "$(basename $1)" = "$1" ]; then
++ arg1="__PREFIX__/share/lambdamoo/$1"
++else
++ arg1="$1";
++fi
++
++if [ ! -r $arg1.db ]; then
++ echo "Unknown database: $arg1.db"
+ exit 1
+ fi
+
+-if [ -r $1.db.new ]; then
+- mv $1.db $1.db.old
+- mv $1.db.new $1.db
+- rm -f $1.db.old.Z
+- compress $1.db.old &
++if [ -r $arg1.db.new ]; then
++ mv $arg1.db $arg1.db.old
++ mv $arg1.db.new $arg1.db
++ if [ "$save_old_database" = "yes" ]; then
++ mv $arg1.db.old.$suffix $arg1-$(date +%Y%m%d).$suffix
++ else
++ rm -f $arg1.db.old.$suffix
++ fi
++ $compressor $arg1.db.old &
+ fi
+
+-if [ -f $1.log ]; then
+- cat $1.log >> $1.log.old
+- rm $1.log
++if [ -f $arg1.log ]; then
++ cat $arg1.log >> $arg1.log.old
++ rm $arg1.log
+ fi
+
+-echo `date`: RESTARTED >> $1.log
+-nohup ./moo $1.db $1.db.new $2 >> $1.log 2>&1 &
++echo `date`: RESTARTED >> $arg1.log
++nohup __PREFIX__/sbin/moo $arg1.db $arg1.db.new $2 >> $arg1.log 2>&1 &
+
+ ###############################################################################