From 1e47247977dfb319aa45e4225694e9750b98d4d4 Mon Sep 17 00:00:00 2001 From: layman Date: Thu, 31 Dec 2020 14:14:11 +0100 Subject: [PATCH] biboumi: version bump(s) --- net-im/biboumi/biboumi-8.4.ebuild | 67 +++++++++++++++++++++++++++++++ net-im/biboumi/biboumi-9.0.ebuild | 66 ++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 net-im/biboumi/biboumi-8.4.ebuild create mode 100644 net-im/biboumi/biboumi-9.0.ebuild diff --git a/net-im/biboumi/biboumi-8.4.ebuild b/net-im/biboumi/biboumi-8.4.ebuild new file mode 100644 index 0000000..5bff430 --- /dev/null +++ b/net-im/biboumi/biboumi-8.4.ebuild @@ -0,0 +1,67 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Biboumi is an XMPP <-> IRC gateway" +HOMEPAGE="https://lab.louiz.org/louiz/biboumi" +EGIT_REPO_URI="https://lab.louiz.org/louiz/biboumi.git" + +if [[ "$PV" != "9999" ]] ; then + EGIT_COMMIT="$PV" + PATCHES=( + "${FILESDIR}/001-CMAKE-empty-string.patch" + ) +fi + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="" +IUSE="postgres sqlite ssl" + +DEPEND=" +dev-libs/expat +net-dns/c-ares +net-dns/libidn:0 +net-im/jabber-base +net-libs/udns +virtual/libiconv +ssl? ( dev-libs/botan:2 ) +postgres? ( dev-db/postgresql:* ) +sqlite? ( dev-db/sqlite ) +" +RDEPEND="${DEPEND}" + +inherit git-r3 cmake-utils + +DIRS="/var/log/biboumi /var/lib/biboumi" + +src_configure() { + local mycmakeargs=( + -DWITH_POSTGRESQL="$(usex postgres)" + -DWITHOUT_POSTGRESQL="$(usex !postgres)" + -DWITH_SQLITE3="$(usex sqlite)" + -DWITHOUT_SQLITE3="$(usex !sqlite)" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/${PN}".initd "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}".logrotate "${PN}" + for dir in $DIRS + do + keepdir $dir + done +} + +pkg_postinst() { + for dir in $DIRS + do + chown jabber:jabber $dir + chmod u=rwx,g=rx,o= $dir + done +} diff --git a/net-im/biboumi/biboumi-9.0.ebuild b/net-im/biboumi/biboumi-9.0.ebuild new file mode 100644 index 0000000..78aa1d6 --- /dev/null +++ b/net-im/biboumi/biboumi-9.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Biboumi is an XMPP <-> IRC gateway" +HOMEPAGE="https://lab.louiz.org/louiz/biboumi" +EGIT_REPO_URI="https://lab.louiz.org/louiz/biboumi.git" + +if [[ "$PV" != "9999" ]] ; then + EGIT_COMMIT="$PV" + PATCHES=( + ) +fi + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="" +IUSE="postgres sqlite ssl" + +DEPEND=" +dev-libs/expat +net-dns/c-ares +net-dns/libidn:0 +net-im/jabber-base +net-libs/udns +virtual/libiconv +ssl? ( dev-libs/botan:2 ) +postgres? ( dev-db/postgresql:* ) +sqlite? ( dev-db/sqlite ) +" +RDEPEND="${DEPEND}" + +inherit git-r3 cmake-utils + +DIRS="/var/log/biboumi /var/lib/biboumi" + +src_configure() { + local mycmakeargs=( + -DWITH_POSTGRESQL="$(usex postgres)" + -DWITHOUT_POSTGRESQL="$(usex !postgres)" + -DWITH_SQLITE3="$(usex sqlite)" + -DWITHOUT_SQLITE3="$(usex !sqlite)" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/${PN}".initd "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}".logrotate "${PN}" + for dir in $DIRS + do + keepdir $dir + done +} + +pkg_postinst() { + for dir in $DIRS + do + chown jabber:jabber $dir + chmod u=rwx,g=rx,o= $dir + done +}