From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-im/mu-conference/Manifest | 7 ++ net-im/mu-conference/files/mu-conference-0.7.init | 25 ++++++ .../files/mu-conference-0.8.81-sha1_64bit.patch | 31 +++++++ net-im/mu-conference/metadata.xml | 6 ++ .../mu-conference/mu-conference-0.8.81-r2.ebuild | 94 ++++++++++++++++++++++ 5 files changed, 163 insertions(+) create mode 100644 net-im/mu-conference/Manifest create mode 100644 net-im/mu-conference/files/mu-conference-0.7.init create mode 100644 net-im/mu-conference/files/mu-conference-0.8.81-sha1_64bit.patch create mode 100644 net-im/mu-conference/metadata.xml create mode 100644 net-im/mu-conference/mu-conference-0.8.81-r2.ebuild (limited to 'net-im/mu-conference') diff --git a/net-im/mu-conference/Manifest b/net-im/mu-conference/Manifest new file mode 100644 index 000000000000..5c98667558d7 --- /dev/null +++ b/net-im/mu-conference/Manifest @@ -0,0 +1,7 @@ +AUX mu-conference-0.7.init 410 SHA256 44fe11d4959a61fa5f231a4cc103cda70d3dc6983b298ff45a39e871372ad571 SHA512 0686c42f157579acabdf01b688f2934cb06fac62ea8946781afaf4385d6333240acbcad3277af61e5f5bf282bb0ba751583be7116d6239cc25f94812000c174a WHIRLPOOL bdb74d5a194726a2d7f31ac84abf827da8452864a9dd9a94e57d3851241248213de49ffd07457fb82b3c8d475f96940ede9e13bf716c02991d8ba87ec815ca5f +AUX mu-conference-0.8.81-sha1_64bit.patch 786 SHA256 4161684d79281101eea87e6550a4837a9ff2d3a7221a8bf61fefa52052b127a4 SHA512 8872debbabacd3a39346a838cb71ee8acf7482cbe3d54484c60b7f985b70d601eb6ed3ae77ba4e0f3fd666c25f79b2761112092785560a1484c83eac16b29f5e WHIRLPOOL 846caf187c07edd77d5848ba326c78829f967015768f5ad69fa73f40ab843beb08bf17b60821fb9d22f7baad5c32ea66b4b5d9ddff0cca249303e82532702b61 +DIST mu-conference-0.8.81.tar.gz 247649 SHA256 d3c8f2f0539b06e32b8bcd48dfae008c84961815ada0922ecf095be36b599862 SHA512 96bfafac726ebc8c1a7489f092e5a6d90df0aaff39a183aaa33847e12caf142fe64178d7041fff15115bb5d8116e69b7dce95cb4caf329a4187b5c35ceca28b1 WHIRLPOOL b6da089299d22b3b4e68d79f6451de981e5ccbd7144cf765c2a4073c6b7d58f276c687e4693ab34bbca57275b5b5e48886eded5adc3e5382c61add4d23b9467a +EBUILD mu-conference-0.8.81-r2.ebuild 2622 SHA256 d012fc6a16fe6f16ebc900e9d5425655d9aefcd908b76dc96086c61e746fb1f2 SHA512 4c32a466dc94de66b082243aa92c417dbcef95499e989fcf7959d52e7f90071dcab60ad6e9fa3c65441774025efc8cd44ef0be8c925440472e2bc600dab6e01a WHIRLPOOL b05e4ea3fd2c456ed0799ed53c4b2025d9ea3cb9a964a72cb63f9a29917515e974988813f56c668d9dd2dfee31156bcf0347965e13423596b5b96c2572bca5ed +MISC ChangeLog 4116 SHA256 0f0a69f9ecfb296c14a0ca87fdfba04223c90d534f5ab59c8449a2a9af759569 SHA512 54d606eb41bae06b1287c1a6b642d9307cf7f0977a193b111f5674af8f72c8eb831045c545bcd5bc475d0e8bbc709b24dadde91ec6b8e139417893118e36ea4a WHIRLPOOL 683e908aed454f731319c23996b557dd8d4d4fc73d276c96219e43106f95510fb3085e37b8b80ee3018c88592d2b56009e8c4c46dc833d18f89332e5d37180a7 +MISC ChangeLog-2015 5423 SHA256 f6509e6611c6e1ea9ab160f596af3e9a10879e4e446a60b0e72fe4539be96d97 SHA512 b3e782d75a811fdad7871a0ac8f3b73d0d2894859a10d8cec219d0b173e2bf25d8df5ab8db63a15e45a47b2054944352d56cac4cbae483510c4ecf313ed65778 WHIRLPOOL 22d870f25c59808b997d4a2ff09afa6d04d6278eaa48d078f7f7c8fc03fcfaeaf5b59921077c59bbcb7134d20c0dc4ad58016b232b9916fd8e1521389a8e2743 +MISC metadata.xml 238 SHA256 cb95a963ac573f6e49de9bb830176421a2909348dfc1e93fccd5ae38e205c7c5 SHA512 9c93a4d93ed3d61578dc8eb48950760c410b5df76cf2e7c6cdceabf1fc18b91540437e8e0377144def02e4f666b3c7175a059f678f1326d52375bf7281163e82 WHIRLPOOL f02c65ed4910f86366e5df287ee694f9c39dfedce3273dad21279d94b2b16a2d56fe58b52f60795c7e97ab1b5f73904158c3c3d7d0e6ac84458dab9644b3fc38 diff --git a/net-im/mu-conference/files/mu-conference-0.7.init b/net-im/mu-conference/files/mu-conference-0.7.init new file mode 100644 index 000000000000..a41c470cc815 --- /dev/null +++ b/net-im/mu-conference/files/mu-conference-0.7.init @@ -0,0 +1,25 @@ +#!/sbin/openrc-run + +depend() { + need net + use jabber-server +} + +start() { + ebegin "Starting MUC Jabber Transport" + start-stop-daemon \ + --background \ + --start \ + --user jabber:jabber \ + --exec /usr/bin/mu-conference \ + -- -c /etc/jabber/mu-conference.xml + eend $? +} + +stop() { + ebegin "Stoping MUC Jabber Transport" + start-stop-daemon \ + --stop \ + --pidfile /var/run/jabber/mu-conference.pid + eend $? +} diff --git a/net-im/mu-conference/files/mu-conference-0.8.81-sha1_64bit.patch b/net-im/mu-conference/files/mu-conference-0.8.81-sha1_64bit.patch new file mode 100644 index 000000000000..2764daa10544 --- /dev/null +++ b/net-im/mu-conference/files/mu-conference-0.8.81-sha1_64bit.patch @@ -0,0 +1,31 @@ +--- mu-conference-0.8.81/include/lib.h ++++ mu-conference-0.8.81/include/lib.h +@@ -114,13 +114,6 @@ + /* SHA calculations */ + /* */ + /* --------------------------------------------------------- */ +-#if (SIZEOF_INT == 4) +-typedef unsigned int uint32; +-#elif (SIZEOF_SHORT == 4) +-typedef unsigned short uint32; +-#else +-typedef unsigned int uint32; +-#endif /* HAVEUINT32 */ + + char *shahash(char *str); /* NOT THREAD SAFE */ + void shahash_r(const char* str, char hashbuf[40]); /* USE ME */ +@@ -301,10 +294,10 @@ + + + typedef struct { +- uint32_t H[5]; +- uint32_t W[80]; ++ guint32 H[5]; ++ guint32 W[80]; + int lenW; +- uint32_t sizeHi,sizeLo; ++ guint32 sizeHi,sizeLo; + } j_SHA_CTX; + + + diff --git a/net-im/mu-conference/metadata.xml b/net-im/mu-conference/metadata.xml new file mode 100644 index 000000000000..e3c243e00aa9 --- /dev/null +++ b/net-im/mu-conference/metadata.xml @@ -0,0 +1,6 @@ + + + + + Multi User Conference for Jabber + diff --git a/net-im/mu-conference/mu-conference-0.8.81-r2.ebuild b/net-im/mu-conference/mu-conference-0.8.81-r2.ebuild new file mode 100644 index 000000000000..ed5e3ea48f72 --- /dev/null +++ b/net-im/mu-conference/mu-conference-0.8.81-r2.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Multi-User Chat for jabberd" +HOMEPAGE="https://gna.org/projects/mu-conference/" +SRC_URI="http://download.gna.org/mu-conference/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +SLOT="0" +IUSE="mysql" + +RDEPEND=" + dev-libs/expat + >=dev-libs/glib-2:2 + net-dns/libidn + net-im/jabberd2 + mysql? ( virtual/mysql ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( + # http://gna.org/bugs/?16238 + "${FILESDIR}"/${P}-sha1_64bit.patch +) + +src_prepare() { + # Fix missing header in src/conference_user.c in order to + # make emerge happy and avoid QA notice. + sed -i -e "/conference.h/ i #define _XOPEN_SOURCE" src/conference_user.c || die + + if use mysql; then + sed -i -e '/^CFLAGS/ a CFLAGS:=$(CFLAGS) -DHAVE_MYSQL' \ + -e '/^LIBS/ a LIBS:=$(LIBS) `mysql_config --libs`' src/Makefile || die + fi + sed -i -e 's/^CC:=/CC?=/' -e 's/$(MCFLAGS)/$(MCFLAGS) $(LDFLAGS)/'\ + -e 's/LDFLAGS:=-L./LDFLAGS:=$(LDFLAGS) -L./'\ + -e 's/$(LDFLAGS) $(LIBS)/$(LIBS)/' src/Makefile || die + sed -i -e 's/-O2//' src/{,jabberd,jcomp}/Makefile || die + sed -i -e 's/CC=/CC?=/' src/{jabberd,jcomp}/Makefile || die + sed -i -e 's/ar/$(AR)/' -e 's/ranlib/$(RANLIB)/' src/jabberd/Makefile || die + sed -i -e 's/gcc -g/$(CC) -g/' src/jcomp/Makefile || die + tc-export CC AR RANLIB + + default +} + +src_install() { + dobin src/mu-conference + fowners jabber:jabber /usr/bin/mu-conference + fperms 750 /usr/bin/mu-conference + + newinitd "${FILESDIR}/${PN}"-0.7.init mu-conference + + dodoc ChangeLog FAQ mu-conference.sql README README.sql + docinto scripts + dodoc scripts/* + + local i + for i in log spool; do + dodir /var/${i}/jabber/mu-conference + keepdir /var/${i}/jabber/mu-conference + fowners jabber:jabber /var/${i}/jabber/mu-conference + fperms 770 /var/${i}/jabber/mu-conference + done + + insinto /etc/jabber + newins muc-default.xml mu-conference.xml + doins style.css + + sed -i \ + -e 's,./spool/chat.localhost,/var/spool/jabber/mu-conference,g' \ + -e 's,./syslogs,/var/log/jabber,g' \ + -e 's,./logs,/var/log/jabber/mu-conference,g' \ + -e 's,./mu-conference.pid,/var/run/jabber/mu-conference.pid,g' \ + -e "s,../style.css,/etc/jabber/style.css,g" \ + -e "s,7009,5347,g" \ + "${D}"/etc/jabber/mu-conference.xml || die "sed failed" +} + +pkg_postinst() { + echo + elog "For jabberd-2 connection:" + elog "1. Make sure that the ip and port in /etc/jabber/mu-conference.xml" + elog " match the address of your jabberd router." + elog "2. Set a common secret in mu-conference.xml and router.xml" + echo +} -- cgit v1.2.3