diff options
Diffstat (limited to 'net-im/gg-transport/gg-transport-2.2.6.ebuild')
-rw-r--r-- | net-im/gg-transport/gg-transport-2.2.6.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-im/gg-transport/gg-transport-2.2.6.ebuild b/net-im/gg-transport/gg-transport-2.2.6.ebuild new file mode 100644 index 000000000000..99cf02c8ee1a --- /dev/null +++ b/net-im/gg-transport/gg-transport-2.2.6.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Gadu-Gadu transport for Jabber" +HOMEPAGE="https://github.com/Jajcus/jggtrans" +SRC_URI="https://github.com/Jajcus/jggtrans/releases/download/v${PV}/jggtrans-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + >=net-im/jabber-base-0.01 + >=dev-libs/glib-2.6.4:2 + net-dns/libidn + >=net-libs/libgadu-1.9.0_rc3 + dev-libs/expat" +DEPEND="${RDEPEND} + >=sys-devel/gettext-0.18.3 + virtual/pkgconfig +" + +S="${WORKDIR}/jggtrans-${PV}" + +src_install() { + emake DESTDIR="${D}" install + + keepdir /var/spool/jabber/gg + keepdir /var/run/jabber + keepdir /var/log/jabber + fowners jabber:jabber /var/spool/jabber/gg + fowners jabber:jabber /var/run/jabber + fowners jabber:jabber /var/log/jabber + + newinitd "${FILESDIR}/jggtrans-2.2.4" jggtrans + + insinto /etc/jabber + doins jggtrans.xml + + sed -i \ + -e 's,/var/lib/jabber/spool/gg.localhost/,/var/spool/jabber/gg/,' \ + -e 's,/var/lib/jabber/ggtrans.pid,/var/run/jabber/jggtrans.pid,' \ + -e 's,/tmp/ggtrans.log,/var/log/jabber/jggtrans.log,' \ + "${D}/etc/jabber/jggtrans.xml" || die "sed failed" + + einstalldocs +} |