public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-im/mu-conference: mu-conference-0.8.ebuild ChangeLog
@ 2013-08-12 23:24 Manuel Rueger (mrueg)
  0 siblings, 0 replies; only message in thread
From: Manuel Rueger (mrueg) @ 2013-08-12 23:24 UTC (permalink / raw
  To: gentoo-commits

mrueg       13/08/12 23:24:41

  Modified:             ChangeLog
  Added:                mu-conference-0.8.ebuild
  Log:
  Version bump. Respect CC, LDFLAGS, AR, RANLIB. Add missing dep on pkgconfig.
  
  (Portage version: 2.1.13.7/cvs/Linux x86_64, signed Manifest commit with key )

Revision  Changes    Path
1.27                 net-im/mu-conference/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/mu-conference/ChangeLog?rev=1.27&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/mu-conference/ChangeLog?rev=1.27&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/mu-conference/ChangeLog?r1=1.26&r2=1.27

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-im/mu-conference/ChangeLog,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ChangeLog	13 May 2012 17:13:55 -0000	1.26
+++ ChangeLog	12 Aug 2013 23:24:41 -0000	1.27
@@ -1,6 +1,11 @@
 # ChangeLog for net-im/mu-conference
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/mu-conference/ChangeLog,v 1.26 2012/05/13 17:13:55 pacho Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/mu-conference/ChangeLog,v 1.27 2013/08/12 23:24:41 mrueg Exp $
+
+*mu-conference-0.8 (12 Aug 2013)
+
+  12 Aug 2013; Manuel Rüger <mrueg@gentoo.org> +mu-conference-0.8.ebuild:
+  Version bump. Respect CC, LDFLAGS, AR, RANLIB. Add missing dep on pkgconfig.
 
   13 May 2012; Pacho Ramos <pacho@gentoo.org> -mu-conference-0.6.0-r1.ebuild,
   -mu-conference-0.6.0-r2.ebuild, mu-conference-0.7.ebuild:
@@ -114,4 +119,3 @@
   files/mu-conference-makefile.patch, files/muctrans.xml:
   Initial check-in of separate mu-conference transport for jabberd. Thanks to
   Gustavo Felisberto
-



1.1                  net-im/mu-conference/mu-conference-0.8.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/mu-conference/mu-conference-0.8.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/mu-conference/mu-conference-0.8.ebuild?rev=1.1&content-type=text/plain

Index: mu-conference-0.8.ebuild
===================================================================
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/mu-conference/mu-conference-0.8.ebuild,v 1.1 2013/08/12 23:24:41 mrueg Exp $

EAPI=5

inherit eutils toolchain-funcs

DESCRIPTION="Multi-User Chat for jabberd"
HOMEPAGE="https://gna.org/projects/mu-conference/"
SRC_URI="http://download.gna.org/mu-conference/${PN}_${PV}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
SLOT="0"

RDEPEND="dev-libs/expat
	>=dev-libs/glib-2
	net-dns/libidn
	net-im/jabberd2
	mysql? ( virtual/mysql )"
DEPEND="${RDEPEND}
	virtual/pkgconfig"
IUSE="mysql"

S="${WORKDIR}/${PN}_${PV}"

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
}

src_install() {
	exeinto /usr/bin
	doexe src/mu-conference
	fowners jabber:jabber /usr/bin/mu-conference
	fperms 750 /usr/bin/mu-conference

	newinitd "${FILESDIR}/${P}".init mu-conference

	dodoc ChangeLog FAQ mu-conference.sql README README.sql
	docinto scripts
	dodoc scripts/*

	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

	cd "${D}/etc/jabber/"
	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" \
		mu-conference.xml || die "sed failed"
}

pkg_postinst() {
	elog
	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"
	elog
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-12 23:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 23:24 [gentoo-commits] gentoo-x86 commit in net-im/mu-conference: mu-conference-0.8.ebuild ChangeLog Manuel Rueger (mrueg)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox