updated init-script for palaver and adapted ebuild. may not work anymore, as i just deleted the "distutils"-inheritance
This commit is contained in:
parent
5757391ba2
commit
5b4e576cd5
4 changed files with 4 additions and 59 deletions
|
@ -1,5 +1,3 @@
|
|||
AUX palaver-initd 595 RMD160 91a53b5ed72956a21b0e5d3ebc590f21a9564e3e SHA1 96b470069ecc47b6302cff2efa686f9d78a6cea4 SHA256 bbc830878d4b3cc288f0982dcca187e1dd10089b1f923867423c6ce249187917
|
||||
DIST palaver-0.5.tar.bz2 72495 RMD160 b831f5f0fd05982d420b7d2e4d5c47c2927b4e17 SHA1 c64d1ac46102a94f8432005439e26459c26a74dd SHA256 431f0be33a77287a45fc4ed5947dfbb4cff487122e87bfa80c636520df4baad4
|
||||
AUX palaver-initd 591 RMD160 ef204804fd79cf9eb94844c3996ebc83df8bd9b0 SHA1 c466e8a1c15bd3253f9c62556add5005821a2998 SHA256 657fee78bf4343714c0c9a1c81ff23bcdec75130c18dea0b5e79eae2625fc9ed
|
||||
DIST palaver-0.6.tar.bz2 71431 RMD160 d1eac261b4ea9263d6992d17d5498f27b054643b SHA1 6e33a77322a432f5c20e6b05dea93ee10d6e4d5d SHA256 437a32250f7ba2a7b07e1dae894893ae4bf32e8a7d8d8e97a4803c9fee4dde26
|
||||
EBUILD palaver-0.5.ebuild 1412 RMD160 c1044dbcc0d0a3f36960a65e4ba0cedec54b8305 SHA1 973e07e9c938234773ecd86b1ea6c6bea6fa94c9 SHA256 b7003bf855eee6c02285baf356ceca8c895a0a604104b792be60c610b12888cf
|
||||
EBUILD palaver-0.6-r2.ebuild 1431 RMD160 3db00f969fd7ff8bee583b6d1fa28b09bd0ddbfb SHA1 fc63c22eb0ddbca19d87e4ab4f90c17dcf32677e SHA256 30e6a2102b72f0221efaab0342d0871a89c4c4bffff60c87b8b305b8e93eacf4
|
||||
EBUILD palaver-0.6-r2.ebuild 1421 RMD160 6bfca0eacc5dd2adaceece6a0f444b48dde4be81 SHA1 fa55a771899952fcd7240d1f8cf2d15f150c2e4c SHA256 f2ae13896e38d6dc3110544622a4f317a5b63b984371d4e5f1f9743aa2832312
|
||||
|
|
|
@ -11,7 +11,7 @@ depend() {
|
|||
start() {
|
||||
ebegin "Starting Palaver MUC service"
|
||||
start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid --chuid jabber:jabber \
|
||||
--exec /usr/bin/twistd-2.6 -- -f /etc/jabber/palaver.tap -l /var/log/jabber/palaver.log \
|
||||
--exec /usr/bin/twistd -- -f /etc/jabber/palaver.tap -l /var/log/jabber/palaver.log \
|
||||
--pidfile /var/run/jabber/palaver.pid
|
||||
eend $?
|
||||
}
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit eutils python distutils
|
||||
DESCRIPTION="Multi-user chat component for jabber implemented in python"
|
||||
HOMEPAGE="http://code.stanziq.com/palaver"
|
||||
SRC_URI="http://code.stanziq.com/cgit/${PN}/${PN}/snapshot/${P}.tar.bz2"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86"
|
||||
IUSE=""
|
||||
DEPEND="net-im/jabber-base"
|
||||
RDEPEND=">=dev-python/twisted-2.4.0
|
||||
>=dev-python/twisted-words-0.5
|
||||
${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A} && cd "${S}" || die "unpack failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# nothing to be done here?
|
||||
distutils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
insinto /etc/jabber
|
||||
newins example-config.xml ${PN}.xml
|
||||
fperms 600 /etc/jabber/${PN}.xml
|
||||
fowners jabber:jabber /etc/jabber/${PN}.xml
|
||||
dosed \
|
||||
"s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
|
||||
/etc/jabber/${PN}.xml
|
||||
|
||||
# dosed \
|
||||
# "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
|
||||
# /etc/jabber/${PN}.xml
|
||||
|
||||
newinitd "${FILESDIR}/${PN}-initd" ${PN}
|
||||
# dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "A sample config file has been installed into /etc/jabber/${PN}.xml."
|
||||
einfo "Please adjust the settings as needed."
|
||||
einfo "After that, you MUST create a TAP-file for twisted in order to start Palaver, like this:"
|
||||
einfo "# cd /etc/jabber"
|
||||
einfo "# mktap palaver -c palaver.xml"
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit eutils python distutils
|
||||
inherit eutils python
|
||||
DESCRIPTION="Multi-user chat component for jabber implemented in python"
|
||||
HOMEPAGE="http://code.stanziq.com/palaver"
|
||||
SRC_URI="http://code.stanziq.com/cgit/${PN}/${PN}/snapshot/${P}.tar.bz2"
|
||||
|
|
Loading…
Reference in a new issue