From f5216d110372cf71cf691f18baabb5553cfe397d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 11 Jul 2003 15:08:57 +0000 Subject: initial ebuild #14312 --- net-misc/lambdamoo/ChangeLog | 8 +++++ net-misc/lambdamoo/Manifest | 5 +++ net-misc/lambdamoo/files/digest-lambdamoo-1.8.1 | 1 + net-misc/lambdamoo/files/lambdamoo.conf | 6 ++++ net-misc/lambdamoo/files/lambdamoo.rc | 48 +++++++++++++++++++++++++ net-misc/lambdamoo/lambdamoo-1.8.1.ebuild | 36 +++++++++++++++++++ 6 files changed, 104 insertions(+) create mode 100644 net-misc/lambdamoo/ChangeLog create mode 100644 net-misc/lambdamoo/Manifest create mode 100644 net-misc/lambdamoo/files/digest-lambdamoo-1.8.1 create mode 100644 net-misc/lambdamoo/files/lambdamoo.conf create mode 100644 net-misc/lambdamoo/files/lambdamoo.rc create mode 100644 net-misc/lambdamoo/lambdamoo-1.8.1.ebuild (limited to 'net-misc/lambdamoo') diff --git a/net-misc/lambdamoo/ChangeLog b/net-misc/lambdamoo/ChangeLog new file mode 100644 index 000000000000..09860d69244e --- /dev/null +++ b/net-misc/lambdamoo/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-misc/lambdamoo +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/lambdamoo/ChangeLog,v 1.1 2003/07/11 15:08:35 vapier Exp $ + +*lambdamoo-1.8.1 (11 Jul 2003) + + 11 Jul 2003; Mike Frysinger : + Initial import. Ebuild submitted by Simon Koch #14312. diff --git a/net-misc/lambdamoo/Manifest b/net-misc/lambdamoo/Manifest new file mode 100644 index 000000000000..5af21a868893 --- /dev/null +++ b/net-misc/lambdamoo/Manifest @@ -0,0 +1,5 @@ +MD5 44bbcf9ec8079594626a030ae34d6eb7 lambdamoo-1.8.1.ebuild 901 +MD5 e9acb6098550165a36259f6a07a861dc ChangeLog 391 +MD5 4b918fff63c103c64a5862f561bc3b58 files/lambdamoo.conf 185 +MD5 53d94549a025c89635911877d75068ba files/digest-lambdamoo-1.8.1 67 +MD5 fc4b10da13ac2b1667f12da98bfbfe27 files/lambdamoo.rc 1265 diff --git a/net-misc/lambdamoo/files/digest-lambdamoo-1.8.1 b/net-misc/lambdamoo/files/digest-lambdamoo-1.8.1 new file mode 100644 index 000000000000..50b7f0f748dc --- /dev/null +++ b/net-misc/lambdamoo/files/digest-lambdamoo-1.8.1 @@ -0,0 +1 @@ +MD5 74572f17e16aee46320c3c0e82f5448a LambdaMOO-1.8.1.tar.gz 363803 diff --git a/net-misc/lambdamoo/files/lambdamoo.conf b/net-misc/lambdamoo/files/lambdamoo.conf new file mode 100644 index 000000000000..3f84faefe344 --- /dev/null +++ b/net-misc/lambdamoo/files/lambdamoo.conf @@ -0,0 +1,6 @@ +# The full path to your database, without the extention. +# For example: +DB_PREFIX=/usr/share/lambdamoo/Minimal + +# The port LambdaMOO should listen for incoming connections on +PORT=7777 diff --git a/net-misc/lambdamoo/files/lambdamoo.rc b/net-misc/lambdamoo/files/lambdamoo.rc new file mode 100644 index 000000000000..3b0009841895 --- /dev/null +++ b/net-misc/lambdamoo/files/lambdamoo.rc @@ -0,0 +1,48 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/lambdamoo/files/lambdamoo.rc,v 1.1 2003/07/11 15:08:36 vapier Exp $ + +# adapted from Pavel Curtis' restart.sh + +depend() { + need net +} + +check_setup() { + if [ ! -r ${DB_PREFIX}.db ] ; then + eerror "Unable to read ${DB_PREFIX}.db" + return 1 + fi + + if [ -r ${DB_PREFIX}.db.new ] ; then + mv ${DB_PREFIX}.db ${DB_PREFIX}.db.old + mv ${DB_PREFIX}.db.new ${DB_PREFIX}.db + #Pavel compressed the old db here, I have not to save start time. + fi + + if [ -f /var/log/lambdamoo.log ] ; then + cat /var/log/lambdamoo.log >> /var/log/lambdamoo.log.old + rm /var/log/lambdamoo.log + fi + + return 0 +} + +start() { + check_setup || return 1 + + ebegin "Starting LambdaMOO" + echo "`date`: RESTARTED" >> ${DB_PREFIX}.log + start-stop-daemon --start --startas /usr/sbin/moo \ + --pidfile /var/run/LambdaMOO.pid --make-pidfile \ + -- -l /var/log/lambdamoo.log ${DB_PREFIX}.db ${DB_PREFIX}.db.new ${PORT} & + eend $? +} + +stop() { + ebegin "Stopping LambdaMOO" + start-stop-daemon -o --quiet --stop --pidfile /var/run/LambdaMOO.pid + eend $? + [ -f /var/run/LambdaMOO.pid ] && rm /var/run/LambdaMOO.pid +} diff --git a/net-misc/lambdamoo/lambdamoo-1.8.1.ebuild b/net-misc/lambdamoo/lambdamoo-1.8.1.ebuild new file mode 100644 index 000000000000..dc47fef93b19 --- /dev/null +++ b/net-misc/lambdamoo/lambdamoo-1.8.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/lambdamoo/lambdamoo-1.8.1.ebuild,v 1.1 2003/07/11 15:08:36 vapier Exp $ + +DESCRIPTION="networked mud that can be used for different types of collaborative software" +HOMEPAGE="http://sourceforge.net/projects/lambdamoo/" +SRC_URI="mirror://sourceforge.net/lambdamoo/LambdaMOO-${PV}.tar.gz" + +LICENSE="" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="sys-devel/bison" + +S=${WORKDIR}/MOO-${PV} + +src_unpack() { + unpack ${A} + cd ${S} + autoconf +} + +src_compile() { + econf || die + emake CFLAGS="${CFLAGS} -DHAVE_MKFIFO=1" || die +} + +src_install() { + dosbin moo + insinto /usr/share/${PN} + doins Minimal.db + dodoc *.txt README* + + exeinto /etc/init.d ; newexe ${FILESDIR}/lambdamoo.rc lambdamoo + insinto /etc/conf.d ; newins ${FILESDIR}/lambdamoo.conf lambdamoo +} -- cgit v1.2.3-65-gdbad