forked from tastytea/overlay
net-im/biboumi: New package.
This commit is contained in:
parent
272d2a4b6c
commit
52c4136d3d
14
net-im/biboumi/Manifest
Normal file
14
net-im/biboumi/Manifest
Normal file
|
@ -0,0 +1,14 @@
|
|||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
AUX biboumi.initd 507 BLAKE2B c53fc05b0b1cee3632953742303cfd77238929866afcf371ceca761623a6d3536b57f973b57d6a7267e9bac061067e8ab499c65100a9c82df2e4a983eec93821 SHA512 8e82ff168233a602c2ea585ab6b5ada8f2e698360e2ac99a4b38506e04d4423e495e371afa38a3e5da54b8686765b8d1ce6b85f709f4af769e3dab8318774904
|
||||
DIST biboumi-8.4.tar.xz 142576 BLAKE2B 3be5f8caf406c480a2750d76eacfe9191bccd8bd0fc2ba0ffe6352bf6f6527ab60f16eb25c9820c063af6c9ff4f1b125eb8d51d53bae4392a0d276e7ad488087 SHA512 69f7a47aaf2729a6bffb047201305cef4b87da952aa103d82e715585bf7b2e97fca8159ced1d74c4b01508c874c0db274d7b8349d1579ee3e69fc0ced2c260c2
|
||||
EBUILD biboumi-8.4.ebuild 1886 BLAKE2B 4bf8ada430b961730374ccb02ca269574e350b75b7086f60d0dc6541225aef61489dd08b29f049e136a21d4cbcc077198afd77accba2a008af866f0f66296053 SHA512 de64d7728495725a3dce317dbf254085e2c7072a9f90070ddd22dcf75d07f61727473f61c9b88e01a9b01ab54c7239454269db4d27c390d42402cf8568798323
|
||||
MISC metadata.xml 475 BLAKE2B 05f87ecb78acaf504d1036c8fe0203325610cd6ef8e0a3d81eaef0fb337c321b80827fdf5e1c02551f3423d438796c4aa7f25fea64e98e6bceaf74c8a35bef97 SHA512 0b6591a9793ed4965f18e1dd3bd630d30ce6d8c8ecf00638aeebce098bfda169fbd21db161f2871f7e022c7e35845a71f8167d94b9c7d480fc7c046b2db41d75
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXpMVTgAKCRDPw5SX8bJu
|
||||
B9vXAPsF3Vot7x33mViZnJ7ctQ7F7OO/vdbbMS3XAht4lXtskAD9E8aLQ6MhM7fg
|
||||
r7bitjU9kVF3frjiCZ+PGztKmI1RW8A=
|
||||
=dcWr
|
||||
-----END PGP SIGNATURE-----
|
83
net-im/biboumi/biboumi-8.4.ebuild
Normal file
83
net-im/biboumi/biboumi-8.4.ebuild
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="XMPP gateway to IRC"
|
||||
HOMEPAGE="https://biboumi.louiz.org/"
|
||||
SRC_URI="https://git.louiz.org/biboumi/snapshot/biboumi-${PV}.tar.xz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc +idn postgres +sqlite ssl systemd udns"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/biboumi
|
||||
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 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="app-text/pandoc"
|
||||
|
||||
DOCS=( README.rst CHANGELOG.rst )
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_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-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
# The man page is not generated by the build system.
|
||||
mkdir "${S}/man" || die
|
||||
pandoc --standalone --to=man "doc/biboumi.1.rst" \
|
||||
--output="${S}/man/biboumi.1" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
newinitd "${FILESDIR}/${PN}".initd "${PN}"
|
||||
|
||||
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
|
||||
doins conf/biboumi.cfg || die
|
||||
}
|
21
net-im/biboumi/files/biboumi.initd
Normal file
21
net-im/biboumi/files/biboumi.initd
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="XMPP gateway to IRC"
|
||||
pidfile="/var/run/biboumi.pid"
|
||||
command="/usr/bin/biboumi"
|
||||
command_args="${BIBOUMI_CONFIG:-/etc/biboumi/biboumi.cfg}"
|
||||
command_user="${BIBOUMI_USER:-biboumi}"
|
||||
command_background="true"
|
||||
extra_commands="reload"
|
||||
|
||||
depend() {
|
||||
use jabber-server
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading configuration of Biboumi"
|
||||
start-stop-daemon -p ${pidfile} -s USR1
|
||||
eend $?
|
||||
}
|
16
net-im/biboumi/metadata.xml
Normal file
16
net-im/biboumi/metadata.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>tastytea</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<doc>https://doc.biboumi.louiz.org/</doc>
|
||||
<bugs-to>https://lab.louiz.org/louiz/biboumi/issues</bugs-to>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="udns">Asynchronously resolve domain names using
|
||||
net-libs/udns</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user