diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2010-05-27 11:47:13 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2010-05-27 11:47:13 +0000 |
commit | 608037f664fde7d89d25878c2f53d459d79b514d (patch) | |
tree | 611a4609835bf69bd95c5868977829d073ebd31c /net-im/prosody | |
parent | prevent building on >=2.6.25 (#274744, #272494, #272494) (diff) | |
download | gentoo-2-608037f664fde7d89d25878c2f53d459d79b514d.tar.gz gentoo-2-608037f664fde7d89d25878c2f53d459d79b514d.tar.bz2 gentoo-2-608037f664fde7d89d25878c2f53d459d79b514d.zip |
Initial version of net-im/prosody (bug 290594).
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'net-im/prosody')
-rw-r--r-- | net-im/prosody/ChangeLog | 10 | ||||
-rw-r--r-- | net-im/prosody/files/prosody-0.6.2-cfg.lua.patch | 17 | ||||
-rw-r--r-- | net-im/prosody/files/prosody.initd | 46 | ||||
-rw-r--r-- | net-im/prosody/metadata.xml | 7 | ||||
-rw-r--r-- | net-im/prosody/prosody-0.6.2.ebuild | 60 |
5 files changed, 140 insertions, 0 deletions
diff --git a/net-im/prosody/ChangeLog b/net-im/prosody/ChangeLog new file mode 100644 index 000000000000..03923b05adeb --- /dev/null +++ b/net-im/prosody/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-im/prosody +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/prosody/ChangeLog,v 1.1 2010/05/27 11:47:13 djc Exp $ + +*prosody-0.6.2 (27 May 2010) + + 27 May 2010; Dirkjan Ochtman <djc@gentoo.org> +prosody-0.6.2.ebuild, + +files/prosody-0.6.2-cfg.lua.patch, +files/prosody.initd, +metadata.xml: + Initial version, contributed by jochen@schalanda.de in bug 290594. + diff --git a/net-im/prosody/files/prosody-0.6.2-cfg.lua.patch b/net-im/prosody/files/prosody-0.6.2-cfg.lua.patch new file mode 100644 index 000000000000..338daef54a64 --- /dev/null +++ b/net-im/prosody/files/prosody-0.6.2-cfg.lua.patch @@ -0,0 +1,17 @@ +--- prosody.cfg.lua.old 2010-05-27 11:10:45.000000000 +0200 ++++ prosody.cfg.lua.dist 2010-05-27 11:12:21.000000000 +0200 +@@ -16,6 +16,14 @@ + -- Settings in this section apply to the whole server and are the default settings + -- for any virtual hosts + ++prosody_user = "jabber" ++prosody_group = "jabber" ++pidfile = "/var/run/jabber/prosody.pid" ++ ++log = "/var/log/jabber/prosody.log" ++-- Requires mod_posix to be loaded ++-- log = "*syslog" ++ + -- This is a (by default, empty) list of accounts that are admins + -- for the server. Note that you must create the accounts separately + -- (see http://prosody.im/doc/creating_accounts for info) diff --git a/net-im/prosody/files/prosody.initd b/net-im/prosody/files/prosody.initd new file mode 100644 index 000000000000..02a1fdc79516 --- /dev/null +++ b/net-im/prosody/files/prosody.initd @@ -0,0 +1,46 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/prosody/files/prosody.initd,v 1.1 2010/05/27 11:47:12 djc Exp $ + +description="Prosody is a server for Jabber/XMPP written in Lua." +description_reload="Reload configuration and reopen log files." +extra_started_commands="reload" + +PIDFILE="/var/run/jabber/prosody.pid" +USER="jabber" +COMMAND="/usr/bin/prosody" + +depend() { + use dns + need net + provide jabber-server +} + +checkconfig() { + if [ ! -e /etc/jabber/prosody.cfg.lua ] ; then + eerror "You need a /etc/jabber/prosody.cfg.lua file to run prosody" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting Prosody XMPP Server" + start-stop-daemon --start -b --pidfile ${PIDFILE} \ + --make-pidfile --user ${USER} --exec ${COMMAND} + eend $? +} + +stop() { + ebegin "Stopping Prosody XMPP Server" + start-stop-daemon --stop --pidfile ${PIDFILE} \ + --user ${USER} --exec ${COMMAND} + eend $? +} + +reload() { + ebegin "Reloading configuration of Prosody XMPP Server" + start-stop-daemon --pidfile ${PIDFILE} --signal HUP + eend $? +} diff --git a/net-im/prosody/metadata.xml b/net-im/prosody/metadata.xml new file mode 100644 index 000000000000..161d2437f294 --- /dev/null +++ b/net-im/prosody/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>djc@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-im/prosody/prosody-0.6.2.ebuild b/net-im/prosody/prosody-0.6.2.ebuild new file mode 100644 index 000000000000..394b57f0360b --- /dev/null +++ b/net-im/prosody/prosody-0.6.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/prosody/prosody-0.6.2.ebuild,v 1.1 2010/05/27 11:47:13 djc Exp $ + +EAPI="2" + +inherit eutils versionator multilib + +MY_PV=$(replace_version_separator 3 '') +DESCRIPTION="Prosody is a flexible communications server for Jabber/XMPP written in Lua." +HOMEPAGE="http://prosody.im/" +SRC_URI="http://prosody.im/depot/${MY_PV}/${PN}-${MY_PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ssl" + +DEPEND="net-im/jabber-base + >=dev-lang/lua-5.1 + dev-libs/luasocket + ssl? ( dev-libs/luasec ) + dev-libs/luaexpat + dev-libs/luafilesystem + >=net-dns/libidn-1.1 + >=dev-libs/openssl-0.9.8" +RDEPEND="${DEPEND}" + +PROVIDE="virtual/jabber-server" + +S="${WORKDIR}/${PN}-${MY_PV}" + +JABBER_ETC="/etc/jabber" +JABBER_SPOOL="/var/spool/jabber" + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.6.2-cfg.lua.patch" + sed -i "s!MODULES = \$(DESTDIR)\$(PREFIX)/lib/!MODULES = \$(DESTDIR)\$(PREFIX)/$(get_libdir)/!" Makefile + sed -i "s!SOURCE = \$(DESTDIR)\$(PREFIX)/lib/!SOURCE = \$(DESTDIR)\$(PREFIX)/$(get_libdir)/!" Makefile + sed -i "s!INSTALLEDSOURCE = \$(PREFIX)/lib/!INSTALLEDSOURCE = \$(PREFIX)/$(get_libdir)/!" Makefile + sed -i "s!INSTALLEDMODULES = \$(PREFIX)/lib/!INSTALLEDMODULES = \$(PREFIX)/$(get_libdir)/!" Makefile +} + +src_configure() { + ./configure --prefix="/usr" \ + --sysconfdir="${JABBER_ETC}" \ + --datadir="${JABBER_SPOOL}" \ + --with-lua-lib=/usr/$(get_libdir)/lua \ + --require-config +} + +src_install() { + DESTDIR="${D}" emake install + newinitd "${FILESDIR}/${PN}".initd ${PN} +} + +src_test() { + cd tests + ./run_tests.sh +} |