net-im/biboumi: Version bump 9.0_pre20200419.

The last release is based on a release from 2018-05-02.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2020-04-29 00:37:27 +02:00
parent 5ea3c8cd06
commit 98ec6c12cb
2 changed files with 100 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST biboumi-8.4.tar.xz 142576 BLAKE2B 3be5f8caf406c480a2750d76eacfe9191bccd8bd0fc2ba0ffe6352bf6f6527ab60f16eb25c9820c063af6c9ff4f1b125eb8d51d53bae4392a0d276e7ad488087 SHA512 69f7a47aaf2729a6bffb047201305cef4b87da952aa103d82e715585bf7b2e97fca8159ced1d74c4b01508c874c0db274d7b8349d1579ee3e69fc0ced2c260c2
DIST biboumi-9.0_pre20200419.tar.bz2 150555 BLAKE2B 6c73abcd62c7448cfc990c7228b37c0eda57d05ee987ef5c9661ed2bf8b8376e253e9507c03151d7334b5bff7c8e6807188e5e806473deb79d96fb81212cfb1f SHA512 b86485c0aae5cca6b5909eec2159c9b52069aade3e399721826c02f297b6f3d57e0ddcab9df4f6aa32b0219ccfbf1c7c63c1f51e4b8ab051b6d1f4dbbb34789e

View File

@@ -0,0 +1,99 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake fcaps
MY_COMMIT="2ef41e1afca824acc0cd0ac9a714016459a24d25"
DESCRIPTION="XMPP gateway to IRC"
HOMEPAGE="https://biboumi.louiz.org/"
SRC_URI="https://lab.louiz.org/louiz/biboumi/-/archive/${MY_COMMIT}/biboumi-${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+idn logrotate postgres +sqlite +ssl systemd udns"
DEPEND="
dev-libs/expat
virtual/libiconv
sys-apps/util-linux
sqlite? ( dev-db/sqlite )
postgres? ( dev-db/postgresql:* )
idn? ( net-dns/libidn )
udns? ( net-libs/udns )
ssl? ( dev-libs/botan:2 )
!ssl? ( dev-libs/libgcrypt )
systemd? ( sys-apps/systemd )
"
BDEPEND="dev-python/sphinx"
RDEPEND="
${DEPEND}
acct-user/biboumi"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
DOCS=( README.rst CHANGELOG.rst doc/user.rst )
# Allow biboumi to run an identd on port 113.
FILECAPS=( cap_net_bind_service+ep usr/bin/biboumi )
src_prepare() {
cmake_src_prepare
if ! use systemd; then # Don't install biboumi.service.
sed -i '/DESTINATION lib\/systemd\/system/d' CMakeLists.txt || die
fi
}
src_configure() {
local mycmakeargs=(
-DWITH_BOTAN="$(usex ssl)"
-DWITH_LIBIDN="$(usex idn)"
-DWITH_SYSTEMD="$(usex systemd)"
-DWITH_UDNS="$(usex udns)"
-DWITH_SQLITE3="$(usex sqlite)"
-DWITH_POSTGRESQL="$(usex postgres)"
-DWITHOUT_SYSTEMD="$(usex systemd no yes)"
-DWITHOUT_UDNS="$(usex udns no yes)"
-DWITHOUT_POSTGRESQL="$(usex postgres no yes)"
) # The WITHOUT_* is really needed.
cmake_src_configure
}
src_compile() {
cmake_src_compile
cmake_build man
}
src_install() {
cmake_src_install
if ! use systemd; then
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
fi
if use logrotate; then
insinto etc/logrotate.d
if use systemd; then
newins "${FILESDIR}/${PN}.logrotate.systemd" "${PN}"
else
newins "${FILESDIR}/${PN}.logrotate.openrc" "${PN}"
fi
fi
diropts --owner=biboumi --group=biboumi --mode=750
if use sqlite; then
keepdir var/lib/biboumi
fi
keepdir var/log/biboumi
insinto etc/biboumi
insopts --group=biboumi --mode=640
newins conf/biboumi.cfg biboumi.cfg.example
}