net-mail/tlsrpt-reporter: new package, add 0.5.0

Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
This commit is contained in:
Marc Schiffbauer
2025-02-22 14:17:13 +01:00
parent adc14b0c24
commit 1b4619f67c
7 changed files with 119 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST tlsrpt-reporter-0.5.0.tar.gz 59230 BLAKE2B af19760ad0269c454756d74d3e76f7c3d067c4540d6958299f5bffe3ab2d659dad05eee25f1aeeebc0829637e95cea709394bc3f7bc22aec4d5683a25d5fa098 SHA512 deee40be2ce322c7d9cb154838c0cb45d37cada46111f0fb2d85da9183aaa258fee1e76db84226f943a15a7ef967cf575f64a9d09ad6c962827b21947f0b8fdd

View File

@@ -0,0 +1,18 @@
[Unit]
Description=tlsrpt-collectd agent to collect TLSRPT reports
After=network.target
[Service]
ExecStart=/usr/bin/tlsrpt-collectd --config_file /etc/tlsrpt-reporter/tlsrpt-reporter.cfg
PrivateDevices=true
PrivateTmp=true
ProtectSystem=true
Restart=always
User=tlsrpt-reporter
LogsDirectory=tlsrpt-reporter
StateDirectory=tlsrpt-reporter
RuntimeDirectory=tlsrpt-reporter
ConfigurationDirectory=tlsrpt-reporter
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,18 @@
[Unit]
Description=tlsrpt-reportd agent to create TLSRPT reports
After=network.target
[Service]
ExecStart=/usr/bin/tlsrpt-reportd --config_file /etc/tlsrpt-reporter/tlsrpt-reporter.cfg
PrivateDevices=true
PrivateTmp=true
ProtectSystem=true
Restart=always
User=tlsrpt-reporter
LogsDirectory=tlsrpt-reporter
StateDirectory=tlsrpt-reporter
RuntimeDirectory=tlsrpt-reporter
ConfigurationDirectory=tlsrpt-reporter
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,16 @@
[tlsrpt_collectd]
storage = sqlite:///var/lib/tlsrpt-reporter/tlsrpt-collectd.sqlite
socketname = /run/tlsrpt-reporter/tlsrpt-collectd.socket
logfilename = /var/log/tlsrpt-reporter/tlsrpt-collectd.log
[tlsrpt_fetcher]
storage = sqlite:///var/lib/tlsrpt-reporter/tlsrpt-collectd.sqlite
logfilename = /var/log/tlsrpt-reporter/tlsrpt-fetcher.log
[tlsrpt_reportd]
dbname = /var/lib/tlsrpt-reporter/tlsrpt-reportd.sqlite
logfilename = /var/log/tlsrpt-reporter/tlsrpt-reportd.log
fetchers = tlsrpt-fetcher
organization_name = EXAMPLE.COM
contact_info = tlsrpt@EXAMPLE.COM
sender_address = noreply@EXAMPLE.COM

View File

@@ -0,0 +1,3 @@
d /var/lib/tlsrpt-reporter 0751 tlsrpt-reporter tlsrpt-reporter -
d /var/log/tlsrpt-reporter 0751 tlsrpt-reporter tlsrpt-reporter -
d /run/tlsrpt-reporter 0751 tlsrpt-reporter tlsrpt-reporter -

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>mschiff@gentoo.org</email>
<name>Marc Schiffbauer</name>
</maintainer>
<upstream>
<remote-id type="github">sys4/tlsrpt-reporter</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,52 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{10..13} python3_13t pypy3 )
inherit distutils-r1 systemd tmpfiles
DESCRIPTION="tools and daemons to implement TLSRPT services"
HOMEPAGE="https://github.com/sys4/tlsrpt-reporter"
MY_P="${PN}-${PV/_/}"
SRC_URI="https://github.com/sys4/${PN}/archive/refs/tags/v${PV/_/}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${PV/_/}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+man test"
RDEPEND="
acct-group/tlsrpt-reporter
acct-user/tlsrpt-reporter
dev-db/sqlite
"
BDEPEND="man? ( dev-ruby/asciidoctor )"
distutils_enable_tests unittest
src_compile() {
if use man; then
pushd doc
emake
popd
fi
distutils-r1_src_compile
}
src_install() {
use man && doman doc/*.1
distutils-r1_src_install
systemd_dounit "${FILESDIR}/tlsrpt-"{collectd,reportd}.service
newtmpfiles "${FILESDIR}/${PN}.tmpfiles" "${PN}".conf
insinto /etc/tlsrpt-reporter
doins "${FILESDIR}/"*.cfg
}
pkg_postinst() {
tmpfiles_process "${PN}".conf
}