Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314473 - net-im/jabberd2-2.2.17 version bump
Summary: net-im/jabberd2-2.2.17 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 3 votes (vote)
Assignee: Julian Ospald
URL: https://github.com/jabberd2/jabberd2/...
Whiteboard:
Keywords:
: 330163 375323 (view as bug list)
Depends on:
Blocks: CVE-2012-3525
  Show dependency tree
 
Reported: 2010-04-10 09:29 UTC by Tim Harder
Modified: 2014-02-20 21:52 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild updates for jabberd2-2.2.9 (jabberd2-2.2.8-to-2.2.9.diff,1.50 KB, patch)
2010-04-10 09:36 UTC, Tim Harder
Details | Diff
jabberd2-2.2.11.ebuild (jabberd2-2.2.11.ebuild,2.75 KB, text/plain)
2011-01-27 08:08 UTC, Marcel Pennewiß
Details
ebuild (jabberd2-2.2.13.ebuild,2.98 KB, text/plain)
2011-03-28 09:42 UTC, Marcin Mirosław
Details
init-2.2.13 (jabberd2-2.2.13.init,1.62 KB, text/plain)
2011-03-28 09:43 UTC, Marcin Mirosław
Details
jabberd2-logrotate script (jabberd2-logrotate.conf,313 bytes, text/plain)
2011-03-28 09:43 UTC, Marcin Mirosław
Details
jabberd2-2.2.13.init (jabberd2-2.2.13.init,2.28 KB, text/plain)
2011-04-11 12:27 UTC, Marcin Mirosław
Details
jabberd2.init (jabberd2.init,2.28 KB, text/plain)
2011-07-11 13:17 UTC, Marcin Mirosław
Details
ebuild for jabberd2-2.2.14 (jabberd2-2.2.14.ebuild,3.01 KB, text/plain)
2011-07-11 13:46 UTC, Marcin Mirosław
Details
ebuild for jabberd2-2.2.14 (jabberd2-2.2.14.ebuild,3.05 KB, text/plain)
2011-07-18 08:15 UTC, Marcin Mirosław
Details
metadata.xml (metadata.xml,458 bytes, application/xml)
2011-09-14 10:43 UTC, Marcin Mirosław
Details
jabberd2-2.2.14-build.log (jabberd2-2.2.14-build.log,30.84 KB, text/plain)
2011-10-02 20:15 UTC, Peter Volkov (RETIRED)
Details
jabberd2-2.2.14-nossl_compilation.patch (jabberd2-2.2.14-nossl_compilation.patch,4.22 KB, patch)
2011-10-09 11:42 UTC, Marcin Mirosław
Details | Diff
jabberd2-2.2.14.ebuild (jabberd2-2.2.14.ebuild,3.13 KB, text/plain)
2011-10-09 11:43 UTC, Marcin Mirosław
Details
net-im/jabberd2-2.2.16 ebuild (jabberd2-2.2.16.ebuild,3.18 KB, text/plain)
2012-05-15 09:09 UTC, Marcin Mirosław
Details
patch needed by version 2.2.16 to build without debug (jabberd2-2.2.16-fix-build-without-debug.patch,1.71 KB, patch)
2012-05-15 09:10 UTC, Marcin Mirosław
Details | Diff
net-im/jabberd2-2.2.16 ebuild (jabberd2-2.2.16.ebuild,3.17 KB, text/plain)
2012-05-18 09:42 UTC, Marcin Mirosław
Details
net-im/jabberd2-2.2.17 ebuild (jabberd2-2.2.17.ebuild,3.06 KB, text/plain)
2012-08-28 08:31 UTC, Marcin Mirosław
Details
net-im/jabberd2-2.2.17 ebuild (jabberd2-2.2.17.ebuild,3.05 KB, text/plain)
2012-08-29 12:19 UTC, Marcin Mirosław
Details
net-im/jabberd2-2.2.17 ebuild (jabberd2-2.2.17.ebuild,3.04 KB, text/plain)
2012-11-28 13:06 UTC, Marcin Mirosław
Details
jabberd2.init (jabberd2.init,2.31 KB, text/plain)
2012-12-04 11:53 UTC, Marcin Mirosław
Details
net-im/jabberd2-2.2.17 ebuild (jabberd2-2.2.17.ebuild,3.04 KB, text/plain)
2012-12-04 12:21 UTC, Marcin Mirosław
Details
jabberd2-2.2.17-r1.ebuild (jabberd2-2.2.17-r1.ebuild,3.24 KB, text/plain)
2012-12-20 13:22 UTC, master_volkov
Details
jabberd2-fix-groupinsharedroster.patch (jabberd2-fix-groupinsharedroster.patch,780 bytes, text/plain)
2012-12-20 13:23 UTC, master_volkov
Details
jabberd2-add_logging_to_db.patch (jabberd2-add_logging_to_db.patch,15.58 KB, text/plain)
2012-12-20 13:23 UTC, master_volkov
Details
jabberd logrotate script with fixed user issue (jabberd2-logrotate,332 bytes, text/plain)
2013-06-05 17:28 UTC, cyberbat
Details
metadata.xml (metadata.xml,531 bytes, text/xml)
2013-06-07 22:24 UTC, Marcin Mirosław
Details
jabberd2-2.2.17-r2.ebuild (jabberd2-2.2.17.ebuild,3.44 KB, text/plain)
2013-06-07 23:16 UTC, Marcin Mirosław
Details
Ebuild to bump version to 2.2.17 (jabberd2-2.2.17.ebuild,3.35 KB, text/plain)
2013-09-18 21:40 UTC, Josh Perry
Details
Init script for 2.2.17 version bump (jabberd2-2.2.17.init,1.54 KB, text/plain)
2013-09-18 21:41 UTC, Josh Perry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Harder gentoo-dev 2010-04-10 09:29:00 UTC
New release available. See the attached diff for ebuild updates.
Comment 1 Tim Harder gentoo-dev 2010-04-10 09:36:41 UTC
Created attachment 227217 [details, diff]
Ebuild updates for jabberd2-2.2.9

Ebuild updates for jabberd2-2.2.9:
  * Use EAPI 2 for src_configure phase
  * Use src_configure phase instead of src_compile (rely on default src_compile phase)
  * Rename init and pamd files to only use the package name since all the different versions currently in the tree have the same content -- All the files have the same content so they should be removed and only one of each file placed in the tree to reduce code duplication. If this is done, all the previous ebuild versions for jabberd2 will have to be trivially updated to use the new filenames.
  * Remove unnecessary whitespace
Comment 2 Janos Pasztor 2010-05-22 10:43:14 UTC
Your patch references ${PN}.init and ${PN}.pamd whereas it should reference ${PN}-${PV}.init and ${PN}-${PV}.pamd (according to the current naming scheme).
Comment 3 Janos Pasztor 2010-05-22 10:45:04 UTC
(In reply to comment #2)
> Your patch references ${PN}.init and ${PN}.pamd whereas it should reference
> ${PN}-${PV}.init and ${PN}-${PV}.pamd (according to the current naming scheme).
> 

Sorry, didn't notice you renamed them on purpose. However, they might change in future (see #269010) so you might want to consider that.
Comment 4 Janos Pasztor 2010-05-22 11:07:34 UTC
This version bump has fixed a segmentation fault in the c2s for me.
Comment 5 Tim Harder gentoo-dev 2010-05-22 19:23:27 UTC
(In reply to comment #3) 
> Sorry, didn't notice you renamed them on purpose. However, they might change in
> future (see #269010) so you might want to consider that.

Yeah, sticking with ${PN}-${PV} is better for patch names; I just wanted to draw attention to the fact that all the different files in the tree currently have the same content so the duplicates should be removed.
Comment 6 Maxim Britov 2010-06-21 08:46:15 UTC
jabberd2 2.2.10 released on 11/06/2010

http://codex.xiaoka.com/pub/jabberd2/releases/jabberd-2.2.10.tar.bz2
http://codex.xiaoka.com/svn/jabberd2/tags/jabberd-2.2.10/ChangeLog

ChangeLog:
      * Implemented XEP-0237: Roster Versioning
      * Implemented XEP-0178: SASL External authentication of clients
      * RDBMS support for mod_roster_publish
      * storage_ldapvcard rebind like auth_ldap for successful
        connection to MS Active Directory as LDAP storage. Merged patch
        by x0r.
      * Merged router-filter redirect option by Ugnich Anton.
      * Fix for crash on empty pkt→to
      * CWave server merged changes:
      * fixed a lot of memory leaks
      * fix an infinite loop where the help admin messages sm (produces
        a help response to itself)
      * fix a bug where outbound packets cause an infinite loop during
        shutdown
      * Guard against NULL pointers in free
      * Disabled kqueue MIO
      * Removed mod_disco_publish
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2010-07-28 13:00:15 UTC
*** Bug 330163 has been marked as a duplicate of this bug. ***
Comment 8 Jesse Adelman 2010-10-29 07:33:37 UTC
And now, 2.2.10's time has passed, and now it is 2.2.11's time to shine. Hopefully in Gentoo.

2010-08-08 Tomasz Sterna <tomek@xiaoka.com>
	* Use length with route keys
	* closefd during main loop

2010-08-07 Tomasz Sterna <tomek@xiaoka.com>
	* [cwave] ported router connection closing improvement from cwave
	* [cwave:r77] fix potential segfault in a call to xhash_putx()
	* [cwave:r72] enforce iq type
	* Fixed packet jabber:server -> jabber:client namespace mangling

2010-08-06 Tomasz Sterna <tomek@xiaoka.com>
	* Fixed attribute namespace handling in NAD parser

2010-07-10 Tomasz Sterna <tomek@xiaoka.com>
	* Fixed missing reference in log_error
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2010-10-29 08:14:55 UTC
Looks like we need maintainer here. If you use this package and have time to maintain it, please, contact me and we'll decide how to resolve this situation. Thomas if you have any objections or you wish to be proxy-maintainer yourself, please, speak!
Comment 10 Marcel Pennewiß 2011-01-27 08:08:29 UTC
Created attachment 260835 [details]
jabberd2-2.2.11.ebuild

ebuild for 2.2.11 based on Tim's patch for 2.2.8. 
I removed dodoc migrate.pl. Upstream stops distributing in 2.2.10.
Comment 11 Marcin Mirosław 2011-03-11 11:17:57 UTC
I don't want to be boring but there is jabberd-2.2.13.
Maintainer doesn't care about this package, does anybode want to maintain package through proxy-maintainer (maybe with Peter's help)?
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2011-03-13 08:27:15 UTC
Yup, I can proxy, but somebody have to do a dirty job...
Comment 13 Marcin Mirosław 2011-03-17 10:01:33 UTC
I've started working on ebuild and init scripts (i'm trying to fix other bugs). I've got problem with router process, it doesn't shutdown after SIGTERM. Maybe upstream would help with this.
Comment 14 Marcin Mirosław 2011-03-28 09:41:58 UTC
I've done some changes to ebuild and init script. I hope this fix bug #241472 (and #269010). I've added script for logrotate, changed use flag from sqlite to sqlite3. I've tested jabberd2 on x86 with postgresql.
Repoman is happy.
Please try it, any suggestions are appreciated.

(svn://) http://repoz.mejor.pl/svn/gentoo/portage/net-im/jabberd2/
Comment 15 Marcin Mirosław 2011-03-28 09:42:32 UTC
Created attachment 267507 [details]
ebuild
Comment 16 Marcin Mirosław 2011-03-28 09:43:00 UTC
Created attachment 267509 [details]
init-2.2.13
Comment 17 Marcin Mirosław 2011-03-28 09:43:27 UTC
Created attachment 267511 [details]
jabberd2-logrotate script
Comment 18 Marcel Pennewiß 2011-03-29 21:57:27 UTC
(In reply to comment #14)
> I've done some changes to ebuild and init script. I hope this fix bug #241472
> (and #269010). 

Your init-file may fail on my scenario...

jabberd.cfg:
..
sm          /etc/jabber/sm.xml
sm          /etc/jabber/sm-example.org.xml
sm          /etc/jabber/sm-example2.org.xml
..

pid-files:
/var/run/jabber/sm.de.pid
/var/run/jabber/sm-example.org.pid
/var/run/jabber/sm-example2.org.pid

i have to change pid-filename in .xml when adding another sm by hand. as i see your init-file simply should ignore all other sm-processes :( the big problem is, that pid-files must be configured in xml-file ...
Comment 19 Marcin Mirosław 2011-03-30 12:13:15 UTC
Thanks for look into init script.

Init script doesn't create pid file, it must be done by started proccess so valid path to pid should be configured in sm-foo.xml. Or we can rely on init scirpt, let them make pid file, in this case we should comment out pid file in foo.xml.
(Parsing xml files from init script doesn't look to be easy).
I'm not sure what did you mean "as i see
your init-file simply should ignore all other sm-processes". If you add another sm with another sm-foo.xml to /etc/jabber/jabberd.cfg then sm-foo should be started as well as other services.
Comment 20 Marcel Pennewiß 2011-03-30 12:54:30 UTC
(In reply to comment #19)
> Init script doesn't create pid file, it must be done by started proccess so
> valid path to pid should be configured in sm-foo.xml. Or we can rely on init
> scirpt, let them make pid file, in this case we should comment out pid file in
> foo.xml.

AFAIR this didn't work. Please try...

> (Parsing xml files from init script doesn't look to be easy).

maybe a simple grep with regex? but i'm not sure if its the right way of doing this...

> I'm not sure what did you mean "as i see
> your init-file simply should ignore all other sm-processes". If you add another
> sm with another sm-foo.xml to /etc/jabber/jabberd.cfg then sm-foo should be
> started as well as other services.

k, for my example... if you want to stop services you do

"grep -v "^ *#" "/etc/jabber/jabberd.cfg" | awk '{print $1}' | tac"

which results in:

sm
sm
sm

So you'll try to stop daemons on sm.pid multiple times instead of using sm.pid, sm-example.org.pid and sm-example2.org.pid
Comment 21 Marcin Mirosław 2011-03-30 15:15:38 UTC
Ah, now i know what you mean. Xml are very "friendly" to parse them with regexp :) (what if pidfile section will be commented in this way:
<!--
   <pidfile>/var/run/jabber/sm.pid</pidfile>
-->
), grep doesn't help, mayby awk could help. Or xml tool, mayby xlllint.
xmllint --xpath /sm/pidfile sm.xml gives needed information. It needs RDEPEND to dev-libs/libxml2. Is it gentoo correct to use (for example) xmllint in init script?
Comment 22 Marcel Pennewiß 2011-03-30 15:30:02 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > Init script doesn't create pid file, it must be done by started proccess so
> > valid path to pid should be configured in sm-foo.xml. Or we can rely on init
> > scirpt, let them make pid file, in this case we should comment out pid file in
> > foo.xml.
> 
> AFAIR this didn't work. Please try...

If you use
--make-pidfile \
--pidfile /var/run/jabber/$(basename ${cfgfile%.xml}).pid \

instead of 
--pid /var/run/jabber/$(basename ${cfgfile%.xml}).pid \

then init-script will create a pid-file. --pid seems to be wrong according to manpage

IMHO we should ignore pidfile in xml-config (comment it for default config in ebuild) and use pid-files created by init-script.
Comment 23 Marcel Pennewiß 2011-03-30 15:32:11 UTC
btw... this does not resolve the problem that it did not stop jabberd2 services if they will be removed from the config file (e.g. old SMs).
Comment 24 Marcin Mirosław 2011-03-31 09:58:42 UTC
"--pid" is incorrect according to man but is correct according to start-stop-daemon ('-p'='--pi'='--pid'='--pidfile').

> btw... this does not resolve the problem that it did not stop jabberd2 services
> if they will be removed from the config file (e.g. old SMs).
It's the same situation like in clamav (if you disable clamd then /etc/init.d/clamd stop doesn't stop clamd, only freshclam would be stopped). I don't think this is big problem.
About creating pidfile. Imho it's better daemon creates pidfile by self, option --make-pidfile in start-stop-daemon is workaround for programs which aren't able to do it by self.
Comment 25 Marcin Mirosław 2011-04-11 12:27:56 UTC
Created attachment 269483 [details]
jabberd2-2.2.13.init

Init script with xml support. I used xmllint from libxml2 to parse xml config files. Services are starting in order of mention in jabberd.cfg and shutting with reverse order.
Comment 26 Marcel Pennewiß 2011-04-12 11:55:05 UTC
Nice ;) You should translate the polish comment at the beginning of stop() ;)
Comment 27 Marcin Mirosław 2011-04-12 11:59:11 UTC
I hope you didn't run any translator on it ;D
I don't like this script is dirty (for example DRY), cleaning up will be next step. Ofcourse if such idea (using xmllint) will be accepted by other users using more complex configs.
Comment 28 Maxim Britov 2011-06-01 06:05:50 UTC
Jabberd2 2.2.14 security release:

This is a security release dealing with “billion laughs” attack
possibility discovered in many XMPP servers. CVE-2011-1755

ChangeLog:
      * Prevent the “billion laughs” attack against expat by disabling
        internal entity expansion. 
      * Shortcut DNS resolution failure in cases when given domain name
        is invalid 
      * Explicitly link libcrypt to authreg_mysql 
      * Removed xconfig - it's not used anywhere 
      * Added Upstart service configuration files

http://codex.xiaoka.com/pub/jabberd2/releases/jabberd-2.2.14.tar.bz2
Comment 29 Maxim Britov 2011-06-01 06:16:28 UTC
Patch for 2.2.8 in Debian:
http://patch-tracker.debian.org/patch/series/view/jabberd2/2.2.8-2.1/CVE-2011-1755.dpatch
Comment 30 Marcel Pennewiß 2011-06-01 08:44:42 UTC
(In reply to comment #28)
> Jabberd2 2.2.14 security release:
> This is a security release dealing with “billion laughs” attack
> possibility discovered in many XMPP servers. CVE-2011-1755

renaming Marcin's ebuild works fine.

> ChangeLog:
>       * Explicitly link libcrypt to authreg_mysql 

Maybe we should depend on dev-libs/libgcrypt while using mysql-useflag?
Comment 31 Maxim Britov 2011-06-01 08:57:13 UTC
(In reply to comment #30)
> > ChangeLog:
> >       * Explicitly link libcrypt to authreg_mysql 
> 
> Maybe we should depend on dev-libs/libgcrypt while using mysql-useflag?

libcrypt is glibc
Comment 32 Marcin Mirosław 2011-07-11 13:17:35 UTC
Created attachment 279767 [details]
jabberd2.init

Fixed deprecated "--chuid".
Comment 33 Marcin Mirosław 2011-07-11 13:46:04 UTC
Created attachment 279777 [details]
ebuild for jabberd2-2.2.14

Ebuild for version 2.2.14 (only minor changes).
Peter, can we proceede with bump?
Comment 34 Peter Volkov (RETIRED) gentoo-dev 2011-07-18 06:53:11 UTC
*** Bug 375323 has been marked as a duplicate of this bug. ***
Comment 35 Marcin Mirosław 2011-07-18 08:15:31 UTC
Created attachment 280283 [details]
ebuild for jabberd2-2.2.14

Another "rm" in ebuild (/etc in /usr , strange).
Comment 36 Peter Volkov (RETIRED) gentoo-dev 2011-09-14 08:56:20 UTC
(In reply to comment #33)
> Ebuild for version 2.2.14 (only minor changes).
> Peter, can we proceede with bump?

Marcin, sorry missed this. Yea, I think this is great idea. Should I take a look at jabberd2-logrotate script, jabberd2-2.2.14.init, ebuild for jabberd2-2.2.14 in the attachments for this bug. Also could you attach metadata.xml with you being maintainer, please? :)
Comment 37 Marcin Mirosław 2011-09-14 10:43:06 UTC
Created attachment 286421 [details]
metadata.xml

> Should I take a
> look at jabberd2-logrotate script, jabberd2-2.2.14.init, ebuild for
> jabberd2-2.2.14 in the attachments for this bug.
 Is it question or statement? If it's a question the answer is: yes, it would be nice. In last time there were many changes in gentoo policies about DEPEND to @system and other things. I'm a bit not up to date.
This ebuild uses EAPI=2 in not far future i'll change it to EAPI=4.

> Also could you attach
> metadata.xml with you being maintainer, please? :)

Here it is.
Comment 38 Peter Volkov (RETIRED) gentoo-dev 2011-10-02 19:08:47 UTC
Marcin, what about jabberd2-2.2.14.pamd file? Should I take jabberd2-2.2.8.pamd?
Comment 39 Marcin Mirosław 2011-10-02 19:25:14 UTC
Yes, this file isn't changed.
Comment 40 Peter Volkov (RETIRED) gentoo-dev 2011-10-02 20:15:37 UTC
Created attachment 288599 [details]
jabberd2-2.2.14-build.log

Ok.

Also I found build failure (build.log in attachment):
sasl_gsasl.c:37:18: error: ‘SX_SSL_CONN_EXTERNAL_ID_MAX_COUNT’ undeclared here (not in a function)
sasl_gsasl.c: In function ‘_sx_sasl_wio’:

USE="mysql sqlite2 berkdb -zlib -pam -ssl" emerge -va net-im/jabberd2
Comment 41 Marcin Mirosław 2011-10-09 11:42:47 UTC
Created attachment 289339 [details, diff]
jabberd2-2.2.14-nossl_compilation.patch

fix from upstream, compilation error without ssl
Comment 42 Marcin Mirosław 2011-10-09 11:43:59 UTC
Created attachment 289341 [details]
jabberd2-2.2.14.ebuild

updated ebuild, also changed USE flag from sqlite3 to sqlite
Comment 43 Marcin Mirosław 2012-05-15 09:09:11 UTC
Created attachment 311831 [details]
net-im/jabberd2-2.2.16 ebuild

Ebuild for jabberd2-2.2.16, added use flags "static-libs test".
Comment 44 Marcin Mirosław 2012-05-15 09:10:19 UTC
Created attachment 311833 [details, diff]
patch needed by version 2.2.16 to build without debug
Comment 45 Marcin Mirosław 2012-05-15 09:13:16 UTC
Remain files stays untouched, only name for init script should be changed to jabberd2-2.2.16.init .
Comment 46 Marcin Mirosław 2012-05-18 09:42:41 UTC
Created attachment 312185 [details]
net-im/jabberd2-2.2.16 ebuild

Jabberd2-2.2.16 still needs cppunit to make ./configure happy even without USE=test.
Comment 47 Anton Bolshakov 2012-08-28 04:52:10 UTC
* 2.2.16 to 2.2.17 upgrade:

What changed:
- cppunit was replaced by check framework
- Fixed build with debug disabled

Marcin, could you update the ebuild? Thanks.
Comment 48 Marcin Mirosław 2012-08-28 08:31:17 UTC
Created attachment 322412 [details]
net-im/jabberd2-2.2.17 ebuild

Here it is.
Comment 49 Anton Bolshakov 2012-08-29 09:30:57 UTC
(In reply to comment #48)
> net-im/jabberd2-2.2.17 ebuild

I have compiled a jabber server, it's up and running without any issues so far.

Just a note for the ebuild cleanup:
 - add EAPI=4
 - remove "ebeep"

Can somebody push it to the tree?

The current stable version is very old. It's about time to move on.
Comment 50 Marcin Mirosław 2012-08-29 12:19:52 UTC
Created attachment 322507 [details]
net-im/jabberd2-2.2.17 ebuild

I've removed ebeep, EAPI was bumped in first version of ebuild for jabberd2-2.2.17.
Peter(PVA) are you around?
Comment 51 Anton Bolshakov 2012-08-30 08:02:48 UTC
there are 3 more bugs will be fixed with 2.2.17 bump:
bug #381279
bug #369739
bug #432936

@Marcin, do you want to improve the init script and fix the last outstanding bug #241472? ;-)
Comment 52 Marcin Mirosław 2012-08-30 08:26:40 UTC
Isn't this bug fixed yet? Does problem still appears with attached init script? I don't use transport so i can't do quick test, in init script i'm trying to kill only pids mentioned in SERVICES_CONF="/etc/jabber/jabberd.cfg".
Comment 53 Marcel Pennewiß 2012-08-30 09:50:23 UTC
(In reply to comment #52)
> Isn't this bug fixed yet? Does problem still appears with attached init
> script? I don't use transport so i can't do quick test, in init script i'm
> trying to kill only pids mentioned in
> SERVICES_CONF="/etc/jabber/jabberd.cfg".

Using this init script for a long time with jabberd-2.2.14 - works fine and did not kill e.g. mu-conference (as it did before).
Comment 54 Alex D-Bug 2012-11-28 12:53:24 UTC
SRC_URI in net-im/jabberd2-2.2.17 ebuild contains an error and should be updated =) There is no Jabberd2, but jabberd2 in working SRC_URI =)

For example, it could looks like:

SRC_URI="mirror://github/jabberd2/${PN}/jabberd-${PV}.tar.xz"
or
SRC_URI="mirror://github/${PN}/${PN}/jabberd-${PV}.tar.xz"

Update please =)
Thanks!
Comment 55 Marcin Mirosław 2012-11-28 13:06:22 UTC
Created attachment 330825 [details]
net-im/jabberd2-2.2.17 ebuild

Something changed... Thanks for information about it, fixed ebuild is attached.
Comment 56 Alex D-Bug 2012-11-29 13:18:32 UTC
(In reply to comment #35)
> Created attachment 280283 [details]
> ebuild for jabberd2-2.2.14
> 
> Another "rm" in ebuild (/etc in /usr , strange).

sed -i \
        -e 's/^initdir = .*/initdir =/' \
        -e 's/^init_DATA = .*/init_DATA =/' etc/Makefile.in

in src_configure() can be used instead of

rm jabberd.cfg jabberd-{c2s,router,s2s,sm}.conf || die "rm failed"
rm -r "${D}/usr/etc" || die "rm2 failed"
Comment 57 Marcin Mirosław 2012-12-04 11:53:11 UTC
Created attachment 331398 [details]
jabberd2.init

According to last changes to openrc I've added checkpath to init script.
Comment 58 Marcin Mirosław 2012-12-04 12:21:07 UTC
Created attachment 331400 [details]
net-im/jabberd2-2.2.17 ebuild

Alex, sed version is a little more elegant, changed.
Comment 59 master_volkov 2012-12-20 13:22:26 UTC
Created attachment 332788 [details]
jabberd2-2.2.17-r1.ebuild

New version with two patch:
1. Fix for https://github.com/jabberd2/jabberd2/issues/16 
2. For adding ability (new USE="loggingmsgtodb") logging all sended message to database
Comment 60 master_volkov 2012-12-20 13:23:01 UTC
Created attachment 332790 [details]
jabberd2-fix-groupinsharedroster.patch

Fix for https://github.com/jabberd2/jabberd2/issues/16
Comment 61 master_volkov 2012-12-20 13:23:59 UTC
Created attachment 332792 [details]
jabberd2-add_logging_to_db.patch

Adding ability (new USE="loggingmsgtodb") logging all sended message to database
Comment 62 cyberbat 2013-03-26 06:12:42 UTC
2.2.14 is in tree. What about 2.2.17?
Comment 63 Markos Chandras (RETIRED) gentoo-dev 2013-03-26 12:27:28 UTC
We probably need a new proxy-maintainer here.
Comment 64 cyberbat 2013-05-28 22:15:45 UTC
I use -r1 ebuild attached here. Got following errors:
This ebuild is from an overlay named 'x-mylay': '/var/portage/mylay/'
/usr/lib/portage/bin/isolated-functions.sh: line 215: wait: `Cannot find the latest automake! Tried 1.12:1.12': not a pid or valid job spec

After emerging automake going further:
checking for select... (cached) yes
/var/tmp/portage/net-im/jabberd2-2.2.17-r1/work/jabberd-2.2.17/configure: line 17746: syntax error near unexpected token `CHECK,'
/var/tmp/portage/net-im/jabberd2-2.2.17-r1/work/jabberd-2.2.17/configure: line 17746: `    PKG_CHECK_MODULES(CHECK, check >= 0.9.4, want_tests=yes, want_tests=no)'

After emerging pkgconfig emerged successfully.
Comment 65 cyberbat 2013-06-03 20:28:13 UTC
@master_volkov , there is an error
jabberd/router: storage_mysql.so: undefined symbol: nad_print
when appling your "jabberd2-add_logging_to_db.patch".
Comment 66 cyberbat 2013-06-05 17:28:09 UTC
Created attachment 350230 [details]
jabberd logrotate script with fixed user issue

We need to run logrotate from jabber user or get error:

error: skipping "/var/log/jabber/c2s.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/var/log/jabber/s2s.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/var/log/jabber/sm.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/var/log/jabber/router.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
run-parts: /etc/cron.daily/logrotate.cron exited with return code 1
Job /bin/run-parts /etc/cron.daily 1> /dev/null terminated (exit status: 1) (mailing output)

Please mark attachment 267511 [details] as obsolete.
Comment 67 Marcin Mirosław 2013-06-05 20:34:17 UTC
Thanks cyberbat for feedback. I should update ebuild in a few days (now I'm busy).
Comment 68 Marcin Mirosław 2013-06-07 22:24:29 UTC
Created attachment 350366 [details]
metadata.xml
Comment 69 Marcin Mirosław 2013-06-07 23:16:27 UTC
Created attachment 350368 [details]
jabberd2-2.2.17-r2.ebuild

I don't understand autotools enough to fix dependency on pkgconfig. So I added it to DEPEND. About "undefined symbol: nad_print" I'll try to look at it but I can't promise it happens soon.
Comment 70 Josh Perry 2013-09-18 21:40:17 UTC
Created attachment 358958 [details]
Ebuild to bump version to 2.2.17

Working ebuild to bump to 2.2.17
Comment 71 Josh Perry 2013-09-18 21:41:05 UTC
Created attachment 358960 [details]
Init script for 2.2.17 version bump

This addresses a deprecation of the --chuid parameter to start-stop-service
Comment 72 Josh Perry 2013-09-18 21:47:27 UTC
My ebuild doesn't include the logging to db patch which the already rejected by the upstream maintainer, nor the groupinsharedroster patch which has been applied upstream.
Comment 73 Julian Ospald 2013-11-01 21:50:43 UTC
+*jabberd2-2.2.17 (01 Nov 2013)
+
+  01 Nov 2013; Julian Ospald <hasufell@gentoo.org> +jabberd2-2.2.17.ebuild,
+  +files/jabberd2-2.2.17.init, +files/jabberd2-2.2.17.logrotate, metadata.xml:
+  version bump wrt #314473 and #432936
Comment 74 Marcin Mirosław 2013-11-04 09:59:47 UTC
Thanks Julian for taking care of this package!
I noticed you changed quotting in einfo, after emerging I'm getting:
 * You will need to setup or update your database using the
 * scripts in /usr/share/doc/${PF}/tools/

$ cd /usr/share/doc/${PF}/tools/
bash: cd: /usr/share/doc//tools/: No such file or directory

Is it correct change?

I also noticed new conf files in /etc/jabber:
# grep runlevel *conf
jabberd-c2s.conf:start on runlevel [2345]
jabberd-c2s.conf:stop on runlevel [!2345]
jabberd-router.conf:start on runlevel [2345]
jabberd-router.conf:stop on runlevel [!2345]
jabberd-s2s.conf:start on runlevel [2345]
jabberd-s2s.conf:stop on runlevel [!2345]
jabberd-sm.conf:start on runlevel [2345]
jabberd-sm.conf:stop on runlevel [!2345]

are they really needed on gentoo? They looks like conf files for Debian/Ubuntu init scripts.
Comment 75 Julian Ospald 2014-02-20 15:59:21 UTC
(In reply to Marcin Mirosław from comment #74)
> Thanks Julian for taking care of this package!
> I noticed you changed quotting in einfo, after emerging I'm getting:
>  * You will need to setup or update your database using the
>  * scripts in /usr/share/doc/${PF}/tools/
> 
> $ cd /usr/share/doc/${PF}/tools/
> bash: cd: /usr/share/doc//tools/: No such file or directory
> 
> Is it correct change?
> 
> I also noticed new conf files in /etc/jabber:
> # grep runlevel *conf
> jabberd-c2s.conf:start on runlevel [2345]
> jabberd-c2s.conf:stop on runlevel [!2345]
> jabberd-router.conf:start on runlevel [2345]
> jabberd-router.conf:stop on runlevel [!2345]
> jabberd-s2s.conf:start on runlevel [2345]
> jabberd-s2s.conf:stop on runlevel [!2345]
> jabberd-sm.conf:start on runlevel [2345]
> jabberd-sm.conf:stop on runlevel [!2345]
> 
> are they really needed on gentoo? They looks like conf files for
> Debian/Ubuntu init scripts.

I missed
Comment 76 Julian Ospald 2014-02-20 16:00:55 UTC
oops... I mean, missed the last response. Feel free to bother my via e-mail if I miss something.

Afais the upstart files have been fixed with bug #498900

pinkbyte just fixed the quoting issue