moved everything into trunk/ subdirectory, as a preparation for the conversion to git
This commit is contained in:
parent
df41424518
commit
52d584b8fb
48 changed files with 0 additions and 0 deletions
5
trunk/net-im/palaver/Manifest
Normal file
5
trunk/net-im/palaver/Manifest
Normal file
|
@ -0,0 +1,5 @@
|
|||
AUX palaver-confd 69 SHA256 5c838254d31931fed4ede315b5c661a24af2e616b78b46a36141d7f88baf8dfc SHA512 af0c67ada1f0f69d799af96c869838ec08d54c85732d23d4fb3c88fc83d10c8593b40670bef0a7ec1910cf59d1e6f64b0d1b91bc154c58cf16a99ec3ad8ededf WHIRLPOOL 555574d673c0f7d6415fd8b2d5f43aead3c699a5a9927cf6280ef4e90ee01662b33631a98073ba3c6888e8a21abf4d65d9b2fe13f76b735190ec416a381a897c
|
||||
AUX palaver-initd 650 SHA256 3db70d01fc2958858a08b1f7fb26af56aedc28e2d1c99f5cd1bcade4edb9c6c4 SHA512 18c955d68aeff2d527f58c2afebe0f2e823b178fe046085148c37fc4750e2d4067e3eb3be3ccc16f9ef309c66ab9ae3de97091e08453346069e871bff9d42f03 WHIRLPOOL d983725daf62d1e37577bd926c92140ac03f36cdeaef80f35d589df1229eced127cd67a0737168883c8a914c631b7f6e4744da8ea384c5776976bfa409a779dc
|
||||
AUX palaver.conf 116 SHA256 4c532034298f197a7810463d9f0a850e8118b96f50efd850f65097c017622d9f SHA512 f34536040a13bce8e419559b59058d930ae851917fedb150b3c9c4315f7946be9ca56af28841fa86ee1b3252b98eadcb01d3bb87a73e77917d59646fbb6871f2 WHIRLPOOL 26a61f877c6dbf6dc08f39dc0164c1672a4b050073ecb99b3b331ff7152fee4ff198ec4faf829018870a2022ebcf8e03eed9b1b8a02d47d032284741978d0c33
|
||||
AUX palaver_plugin.py 1222 SHA256 f9e81c27fb210799739ed36964b203a3ebde15584f9499d965db20e63eeeddf0 SHA512 5957e52274f38d82f3c897b24b8588eeb6a93eb9a04c2a421e9f95eab1a451da4bf1b944f19914163c9e925eaf37fb9fe6b332866859c22df40216d447a505ce WHIRLPOOL 9cf4778eaf45c556456c79764bc630d268fd0e2dbcb189d4af88b5664aeae0b3e91ee0af98e9666c9b160e454456fc7781e0bacd33dd7dcc0f40ff4d6d1ad427
|
||||
EBUILD palaver-9999.ebuild 1309 SHA256 377d78c73303b1cec9ff7e694f5b398f4d4911865c1a2d7c9861ea408e18074b SHA512 b61b625d5296b2fde56239ad8112d0d1800388a0fe93dcbdd2cc0f11271d45d0c379838fb7843dbfb6139dd3bb28fbf69ff0cbf9236ab1423b94324cd6cb3d75 WHIRLPOOL 1e7312070a9d9b4b978fc14dfa9e84115cbdfde3b233dd97b7205f13b120fb6f40fe8de219706fa4123eb831aa81bbac556f1b8e6a453d1c2875e2f7adcd460c
|
2
trunk/net-im/palaver/files/palaver-confd
Normal file
2
trunk/net-im/palaver/files/palaver-confd
Normal file
|
@ -0,0 +1,2 @@
|
|||
# location of the configuration file
|
||||
CONFIG=/etc/jabber/palaver.conf
|
24
trunk/net-im/palaver/files/palaver-initd
Normal file
24
trunk/net-im/palaver/files/palaver-initd
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use jabber-server
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Palaver MUC service"
|
||||
source ${CONFIG}
|
||||
start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid -u jabber -g jabber \
|
||||
--exec /usr/bin/twistd -- -l $LOG/palaver.log --pidfile /var/run/jabber/palaver.pid \
|
||||
palaver --jid=$JID --rhost=$RHOST --rport=$RPORT --secret=$SECRET --spool=$SPOOL
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Palaver MUC service"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/palaver.pid
|
||||
eend $?
|
||||
}
|
6
trunk/net-im/palaver/files/palaver.conf
Normal file
6
trunk/net-im/palaver/files/palaver.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
JID=conference.example.com
|
||||
RHOST=localhost
|
||||
RPORT=5347
|
||||
SECRET=password
|
||||
SPOOL=/var/spool/jabber/
|
||||
LOG=/var/log/jabber/
|
41
trunk/net-im/palaver/files/palaver_plugin.py
Normal file
41
trunk/net-im/palaver/files/palaver_plugin.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
from zope.interface import implements
|
||||
from twisted.python import usage
|
||||
from twisted.plugin import IPlugin
|
||||
from twisted.application.service import IServiceMaker
|
||||
|
||||
# Due to the directory layout, and the fact that plugin directories aren't
|
||||
# modules (no __init__.py), this file is named something other than palaver.py,
|
||||
# to ensure that this import pulls in the right module.
|
||||
import palaver
|
||||
|
||||
class Options(usage.Options):
|
||||
optParameters = [
|
||||
('jid', None, None),
|
||||
('rhost', None, None),
|
||||
('rport', None, None),
|
||||
('secret', None, None),
|
||||
('backend', None, 'dir'),
|
||||
('spool', None, None),
|
||||
('admin', None, 1),
|
||||
('create', None, 1),
|
||||
('dbname', None, 'muc'),
|
||||
('dbuser', None, 'muc'),
|
||||
('dbhostname', None, None),
|
||||
('log', 'l', './html/logs/'),
|
||||
('config', 'c', 'config.xml'),
|
||||
]
|
||||
|
||||
optFlags = [
|
||||
('verbose', 'v', 'Show traffic'),
|
||||
]
|
||||
|
||||
class ServiceFactory(object):
|
||||
implements(IServiceMaker, IPlugin)
|
||||
tapname = "palaver"
|
||||
description = "A multi-user chat xmpp/jabber component."
|
||||
options = Options
|
||||
|
||||
def makeService(self, options):
|
||||
return palaver.makeService(options)
|
||||
|
||||
service = ServiceFactory()
|
55
trunk/net-im/palaver/palaver-9999.ebuild
Normal file
55
trunk/net-im/palaver/palaver-9999.ebuild
Normal file
|
@ -0,0 +1,55 @@
|
|||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=3
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit distutils eutils python git-2
|
||||
DESCRIPTION="Multi-user chat component for jabber implemented in python"
|
||||
HOMEPAGE="https://github.com/twonds/palaver"
|
||||
EGIT_REPO_URI="git://github.com/twonds/palaver"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
DEPEND="net-im/jabber-base"
|
||||
RDEPEND=">=dev-python/twisted-core-2.4.0
|
||||
>=dev-python/twisted-words-0.5
|
||||
${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cp ${FILESDIR}/palaver_plugin.py ${S}/twisted/plugins
|
||||
rm ${S}/twisted/plugins/palaver.py
|
||||
cd ${S}/palaver
|
||||
mv palaver.py __init__.py
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# nothing to be done here?
|
||||
distutils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
insinto /etc/jabber
|
||||
newins "${FILESDIR}/"palaver.conf ${PN}.conf
|
||||
fperms 600 /etc/jabber/${PN}.conf
|
||||
fowners jabber:jabber /etc/jabber/${PN}.conf
|
||||
# dosed \
|
||||
# "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
|
||||
# /etc/jabber/${PN}.xml
|
||||
|
||||
newinitd "${FILESDIR}/${PN}-initd" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}-confd" ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "A sample config file has been installed into /etc/jabber/${PN}.conf."
|
||||
einfo "Please adjust the settings as needed."
|
||||
}
|
3
trunk/net-im/punjab/Manifest
Normal file
3
trunk/net-im/punjab/Manifest
Normal file
|
@ -0,0 +1,3 @@
|
|||
AUX punjab-confd 67 SHA256 2951827630ccbd793922d32f7f61416747c50ebb2cd542062f1dd82dc9ec94c7 SHA512 9784f2b70cc5830b44702ad74d5b18475fb081f5728ac346746b3f347a9a33771680752a29e42e13b9d2ce7eb983babe22486945b2be22dbfbff6078e8a837ba WHIRLPOOL cb64ecbcd7710d0a6f33ece9bb851a829a6e8c1a978235f7e96f882d69b63ab172a69e4c04c38adc07758fcf39fa0ebebf8f3a40821d7295746378d91d3f98dc
|
||||
AUX punjab-initd 621 SHA256 4263b2f8a2abad5317d1555005ec7038478494fa450918e80f065a488ac80e04 SHA512 7e280ca57a8f091e96cc3ff62b9c74fefe858ca2c94ca0c981dfadd0a26c17d4989164acc8a8c1f6bfd734921b7a7307e89b54024c0ea62c32f0cd4bf8ce703a WHIRLPOOL abe9da6820c028a3d474f4c30d990edb5489cc2c261acac6a03fb8a2e450b872e471f91fefd23630f9c707abf91a66558b959df8ab4716a1e31e5adb42748851
|
||||
EBUILD punjab-9999.ebuild 1171 SHA256 7031b97a29cce4a90d736fa2752272150f04edfa116f4d822f9db2cec0e8df42 SHA512 7ea1cfdbd80c4092b5bc87787a663d487c0fa08eec27ab0a481f3df8283bb192999e3b879b3875504c8415c26ba6ea3da5fd6d9eb2dea1947fbacd7dbb35c5fb WHIRLPOOL 9ae8059628fdd9a75db092694c47d022831ca632ecb17cd497b6bab469fba58f034b330d54deee9cd8bc03259092e854b6a8fe536a45768a4d51dccd7f2170fd
|
2
trunk/net-im/punjab/files/punjab-confd
Normal file
2
trunk/net-im/punjab/files/punjab-confd
Normal file
|
@ -0,0 +1,2 @@
|
|||
# location of the configuration file
|
||||
CONFIG=/etc/jabber/punjab.xml
|
24
trunk/net-im/punjab/files/punjab-initd
Normal file
24
trunk/net-im/punjab/files/punjab-initd
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use jabber-server
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Punjab BOSH connection manager"
|
||||
start-stop-daemon --start --pidfile /var/run/jabber/punjab.pid -u jabber -g jabber \
|
||||
--exec /usr/bin/twistd -- -l /var/log/jabber/punjab.log --pidfile /var/run/jabber/punjab.pid \
|
||||
-y /etc/jabber/punjab.tac
|
||||
# -c ${CONFIG}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Punjab BOSH connection manager"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/punjab.pid
|
||||
eend $?
|
||||
}
|
50
trunk/net-im/punjab/punjab-9999.ebuild
Normal file
50
trunk/net-im/punjab/punjab-9999.ebuild
Normal file
|
@ -0,0 +1,50 @@
|
|||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=3
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit distutils eutils python git-2
|
||||
DESCRIPTION="BOSH connection manager for jabber implemented in python"
|
||||
HOMEPAGE="https://github.com/twonds/punjab"
|
||||
EGIT_REPO_URI="git://github.com/twonds/punjab"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="tls"
|
||||
DEPEND="net-im/jabber-base"
|
||||
RDEPEND=">=dev-python/twisted-core-11.1.0
|
||||
>=dev-python/twisted-names-11.1.0
|
||||
tls? ( dev-python/pyopenssl )
|
||||
${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# nothing to be done here?
|
||||
distutils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
insinto /etc/jabber
|
||||
newins punjab.tac ${PN}.tac
|
||||
fperms 600 /etc/jabber/${PN}.tac
|
||||
fowners jabber:jabber /etc/jabber/${PN}.tac
|
||||
# dosed \
|
||||
# "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
|
||||
# /etc/jabber/${PN}.xml
|
||||
|
||||
newinitd "${FILESDIR}/${PN}-initd" ${PN}
|
||||
# newconfd "${FILESDIR}/${PN}-confd" ${PN}
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "A sample config file has been installed into /etc/jabber/${PN}.tac."
|
||||
einfo "Please adjust the settings as needed."
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue