parent
a4066bd813
commit
f55e73cc07
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 29444 BLAKE2B 3c75363e8a9e44c4c8602ed11b3c24b7041968a6035155f07dc9627675f9dc53714a1b87ed22d882914e5efb5ce5cb7b132412bd26aadb4eec947cc4830792e2 SHA512 b5a6e865c66cb059fee3e25c343e352bd0f701fd6d094af6ecfbde2f53aec4e04e2c5e53534a63bd7a4ff39b6235e8e0e60e686b434cba8d4eff71038e7be55b
|
||||
TIMESTAMP 2020-05-07T07:38:57Z
|
||||
MANIFEST Manifest.files.gz 29443 BLAKE2B 410c489550c0361388b82ea10061e0ee284150f95451a2ac25a443408495eb8f0b4e6d23a687a7f09fea26789873e82d8bbf3be8b982412b602c0ff38131ceea SHA512 e5722df5345a45338a40c59b391c67aefa84ed13da06bb9cffd8082bb2d27f2c95dd982fe4541658b7e506d2286fddb3eeaccd004599f032ba5d22ed5b06bc15
|
||||
TIMESTAMP 2020-05-09T15:08:23Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAl6zuxFfFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAl62x2dfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klAMlg//eCmAiqiqFJdpPd/y+pvl0Nga6s6x9lSeBT0lK70dsxjUKXY9pqVM2NXU
|
||||
2oqFzEJc8mMmI1C/FvCXdLwxqhJs/3ptVaDRLWxwPH9ydVY4oCmgvZWp+GwHt3A4
|
||||
3LAL6fDXg0I2fHk+fuB/HG2NI4rH5MhyvZfGHZ7xrelzadQDrPj/xVcK5r/XMhsV
|
||||
hjYR8SGySwNI3wmXswSpo3D8t/i6fzArI6cQ5Gj3/wt5aIDvFXDzeF15HQmGJaIJ
|
||||
TeaIitYRzeFtyzmJjQFs5+uykQQqTDex26KOuZ7SaF7KJevVbAdy7G3yS/n+tQ5s
|
||||
l0s4Uhs7XFkWJOtO2lVVmySP4ZEcfBPaPpDtYCbVzz2wB+f96kFSSDSGt79bNbPS
|
||||
AGQAZXjTaRxrQh4W0p2bbIrYtSUmo6oh5vrK/I4lUoiwoGNa0WTUK98JKFUqh5GW
|
||||
9sqg4YFvgga2EsFAr/MUf4ORU7JzVc3/+MYlhiBy6YulTkgk2zEdE9jAjta9nnTF
|
||||
KbOva7dbyiXlNThwElpKrWoQLgdftrn1pB7l0V8RQa8Fz25u5wPIAi8eEFtDh4fM
|
||||
AeSeX0KnyoWHk13J8zsu4VLNLCcxAt7Jzdc9di+agF92EFln2DIGN2wh97hGDAFl
|
||||
fVFZN944z4a95DVgY0TwfCEGmesBroSpI3ynsTviqj4a6+ZFmXo=
|
||||
=c2Uo
|
||||
klBtDA//VFq4SkM1LinVfhmUncpRGiKxek6fbbiqg1CTcSzPPethpWyHKfjQeclc
|
||||
DDgv4eUGtpOhBAmwDt1JIucD3XISoxwT2/8Gx3xMQwfPZ73oO6rvrpvMyoh9OypI
|
||||
mBMEeEveBhR52RzMUezEXHPcK5kR8Yh6G9DGWvBD+SDxR4SLEew6ibpggsH+MKL6
|
||||
ufkOrhGSaSgnSo9LV+utP/fTGUHrbpgsBiDTtbawkdQfoxLORm3D+5H+b350Ker/
|
||||
QzrlKq7sfEurB0I7o5LimUQMp9mmd1vwsMDa5hwCc4OwEwdBa5xyBxKT2DRSjmFp
|
||||
S44dhK4wzsogCEyb3fyrcFjBwW5b4llCcSGstPaTn8FY8TUnCgHOVkgIg/XpmkBj
|
||||
ZVYiW31Ow/mbHL7Qtg/O17FK5pjOeP1NsVq2bk5plUg7D5U5tKvybUtDrpPm6tiU
|
||||
TJ+gz8R7n/13j2gwQqerTzeC2+fdWxmK7SdoVQZqzJSgnndpiCjjBLOrBcQtdSwn
|
||||
kUsuglF1+8I3PYPrNpfKTB9E6ChrxJq2VLjXZQZQq015EdW8hwCr/4hILH7af9sA
|
||||
S9rZ9HKRy4zSa9tDN3kzJpxWhpafZzZaff4Tnx4JUPjC/U7Id5+u0TzNTeuQPwR5
|
||||
48cnPh0x03p3hnmDjUSHpxwQLGTUmXl0839sg0c3cAcNergNlVc=
|
||||
=SREB
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
EBUILD bareos-0.ebuild 202 BLAKE2B 2872dab70803844ab416e0f67da5c2dddf739f2cab7d70a0ea96964d24c101a8aa2acf238183b899ac03883d632241b210ed400db1b40d44db13a21475546ca1 SHA512 7b2123daba277964fdbebc069602e89b06edc2e9ede59526d4fc680246c9ff9a1a2040048a43ba9f32b8130a1d9431c4fd9c34d7514bfe84f9f0d232f8f80a89
|
||||
MISC metadata.xml 250 BLAKE2B fef48a48388f26a915c53bca9aa9cab62fb73ec006736542afb4cbbe0c7b81d23afe2884f52433c7d390fc38ac32f957a6f6efe285ee1cafaed76407a964cf9b SHA512 924271cfb32ceafc4134e19b53fbeed96f2e9056addc3c2cbdec28890254abf5f0714979a3ab698ca046e41ef5c2cca2932350830bd8bd3a8e214d99123c12de
|
@ -0,0 +1,9 @@
|
||||
# Copyright 2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-group
|
||||
|
||||
DESCRIPTION="Group for the bareos network backup suite"
|
||||
ACCT_GROUP_ID=403
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mschiff@gentoo.org</email>
|
||||
<name>Marc Schiffbauer</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
EBUILD bareos-0.ebuild 292 BLAKE2B db77a8caca84348f69918c1bcbb3d9c69a1b2906cddfbaf95286dc7f44659b89afac163abc5964b5899556c4a06adcce2132346090146137f1b0afcc695b58a7 SHA512 0db636442dc7f7e6d5b6137347ed5bda43a01502e563e4ed332ad03a7e983e3cfac3bfe522d0c0d70afbd095b6fd1288bea5a04039c72e5af37aa743b3b4ce5c
|
||||
MISC metadata.xml 250 BLAKE2B fef48a48388f26a915c53bca9aa9cab62fb73ec006736542afb4cbbe0c7b81d23afe2884f52433c7d390fc38ac32f957a6f6efe285ee1cafaed76407a964cf9b SHA512 924271cfb32ceafc4134e19b53fbeed96f2e9056addc3c2cbdec28890254abf5f0714979a3ab698ca046e41ef5c2cca2932350830bd8bd3a8e214d99123c12de
|
@ -0,0 +1,13 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="User for the bareos network backup suite"
|
||||
ACCT_USER_ID=403
|
||||
ACCT_USER_HOME=/var/lib/${PN}
|
||||
ACCT_USER_GROUPS=( ${PN} disk tape cdrom )
|
||||
|
||||
acct-user_add_deps
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mschiff@gentoo.org</email>
|
||||
<name>Marc Schiffbauer</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
DIST orca-3.34.2.tar.xz 3509556 BLAKE2B 4e73517660b837cec6d4dc12e3b2e57dec526f22aa407ababee2cb12c3aa8807184649b6962f26551926b1b3f8c49230054b4ef5583e15eeeb94685aaaf3ca13 SHA512 b685bd8e417d74ccc0d0ce6b15b3220e5079320198886f568147480f107f7d0273cbd412fdc2c6cc509d3210b36c40aecb50e167d43120f6770ce02a0891ad20
|
||||
EBUILD orca-3.34.2-r1.ebuild 1648 BLAKE2B ce901e2bd6921b870b89d5a4441adb4b01164396954660c83af29536784a2fc0eb8a5382589f4341e65ec2dff34ef78f3381ad96884467f7080ccdd78078bc4c SHA512 d210cdd1377f3e44af5040fd59b9e93ac8c25c5cd989f8a9aaf6becffbfbc90b8de2644d285bfb0c4e794543f47cebcad17688667c9022d5076240489da1a714
|
||||
EBUILD orca-3.34.2-r1.ebuild 1647 BLAKE2B 1afe26aba63c701d0af395d13609367fdb63f740c859da0f18d41e7b206d2e379deb12c41f070fa193b368ed6407599c56d1439ee0432236fd32e97fb39a62a8 SHA512 0425a24426c48c1349d8710e3902ee2f4a96e0fdb997cc0618b35ee56e2ca76e9f9ba9c0b6abe3b38181490183a31c7695977e6c398651a243eb23f198e6d970
|
||||
EBUILD orca-3.34.2.ebuild 1583 BLAKE2B 92b4250edf57cd01805625aa5965b158bd5e143a7d307830a69a87ea64797f581d294bb47eea914b88ffad299c40df9b1e05293bf32096aa2e5c8a020061b7da SHA512 517284b7fc517e8268fa3122cfdefe6d1a4a5434a60e7eed0209b2f22dbb9f3f0e6c51cca320dbcb963fa655e2b3069f98dd36a6f55e3f91deddf6bd74fbe9e2
|
||||
MISC metadata.xml 640 BLAKE2B 490290dba5378d6599afa55e56780f99333b32ce71d0ca17f241c9e87c9d7ae19f3e0656c059bb841dd707df66b330da7ff860f3c0b1eb221de552227ba4ca06 SHA512 6fd5af9a57c21a72a37740f458947dce9a54e378ce5b602c9443d954ed536792cfa74299a69d02a2b0d81905a892d5b2d43f93678367ce7e039aa350c882cbb8
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST logstalgia-1.1.2.tar.gz 2330691 BLAKE2B 20fb549282dde860ef1db272c75360219ce4614838264a2ad7dbaa25cd3c8509f215d61ec88679165eda9619d8a3d83d9201796fa7691517ca822fa110f37d14 SHA512 e2bd41cbc6edabc1ff82d0da4ad6f749e0e6d44e5a23ea976c31d19339f56e5f693ba86b81ceee3c7590842df61d61fe69f1378711b8e7d1c30deff330cacb1e
|
||||
EBUILD logstalgia-1.1.2.ebuild 674 BLAKE2B cc9e01eeb3a80d0b7e8a60896e4341410cd99221e86f5d9bc72869c57c4eb5813b258c6ad7dc9bd8f9e9a589c3f0df943b34aab34c1c8b0e3c1e547a17071381 SHA512 aad07f7d2ccb0a5885103c866680d45c3a2aea7496581ffb8f1618fc710fda0214868b22c4addf562922987055218dca174e1df9c38a492e8a0cb0e1364b2682
|
||||
EBUILD logstalgia-1.1.2.ebuild 669 BLAKE2B f9df4fbdbb0999bfe677c632cc82f3b2ea87f4bde36fe432d53df27c41e7221093171f66917a072f56495b5ea27631d592be605b7d049e93fc99c7fc7c48f27e SHA512 59122eb20e054d9400097c919b8708f52d872dad015b70473d25ed0c14fefe5d037906eb2394b422a07027ce72f12052460b41f16b698650f1bd55c1459208fa
|
||||
MISC metadata.xml 399 BLAKE2B f6f66afb0eb1ddbca766a65035c4af929cf91714c18f4e0cb022ae04fda33bab7dd00739cfd4c1ac3413422dd6ab65d7ee3e5e8d05f0ddf360257212cdefa102 SHA512 0af3dd67c742ed83c332389f6ca3709d3382fe4bca940b6ce05b0271a08b2a5a7ee3d49789db4b8fb66831d17cc01acdff60d5064cb9ab4540e5b2f965ff2b41
|
||||
|
@ -1,462 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
PYTHON_COMPAT=( python{3_6,3_7} )
|
||||
|
||||
inherit autotools eutils linux-info ltprune python-any-r1 systemd
|
||||
|
||||
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
|
||||
HOMEPAGE="https://www.rsyslog.com/"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
|
||||
|
||||
DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="amd64 arm ~arm64 hppa x86"
|
||||
|
||||
SRC_URI="
|
||||
https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
|
||||
doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3 LGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="curl dbi debug doc elasticsearch +gcrypt gnutls jemalloc kafka kerberos kubernetes libressl mdblookup"
|
||||
IUSE+=" mongodb mysql normalize clickhouse omhttp omhttpfs omudpspoof openssl postgres"
|
||||
IUSE+=" rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid xxhash zeromq"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libfastjson-0.99.8:=
|
||||
>=dev-libs/libestr-0.1.9
|
||||
>=sys-libs/zlib-1.2.5
|
||||
curl? ( >=net-misc/curl-7.35.0 )
|
||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
||||
elasticsearch? ( >=net-misc/curl-7.35.0 )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
|
||||
kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
|
||||
kerberos? ( virtual/krb5 )
|
||||
kubernetes? ( >=net-misc/curl-7.35.0 )
|
||||
mdblookup? ( dev-libs/libmaxminddb:= )
|
||||
mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
normalize? (
|
||||
>=dev-libs/liblognorm-2.0.3:=
|
||||
)
|
||||
clickhouse? ( >=net-misc/curl-7.35.0 )
|
||||
omhttpfs? ( >=net-misc/curl-7.35.0 )
|
||||
omudpspoof? ( >=net-libs/libnet-1.1.6 )
|
||||
postgres? ( >=dev-db/postgresql-8.4.20:= )
|
||||
rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
|
||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
||||
relp? ( >=dev-libs/librelp-1.2.17:= )
|
||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
||||
rfc5424hmac? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.8y:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
||||
ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-2.12.23:0= )
|
||||
openssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
)
|
||||
systemd? ( >=sys-apps/systemd-234 )
|
||||
uuid? ( sys-apps/util-linux:0= )
|
||||
xxhash? ( dev-libs/xxhash:= )
|
||||
zeromq? (
|
||||
>=net-libs/czmq-3.0.2
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/autoconf-archive-2015.02.24
|
||||
virtual/pkgconfig
|
||||
elibc_musl? ( sys-libs/queue-standalone )
|
||||
test? (
|
||||
>=dev-libs/liblogging-1.0.1[stdlog]
|
||||
jemalloc? ( <sys-libs/libfaketime-0.9.7 )
|
||||
!jemalloc? ( sys-libs/libfaketime )
|
||||
${PYTHON_DEPS}
|
||||
)"
|
||||
|
||||
REQUIRED_USE="
|
||||
kubernetes? ( normalize )
|
||||
ssl? ( || ( gnutls openssl ) )
|
||||
"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
||||
DEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
||||
DEPEND+=" >=sys-devel/bison-2.4.3"
|
||||
DEPEND+=" >=dev-python/docutils-0.12"
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
local _EGIT_BRANCH=
|
||||
if [[ -n "${EGIT_BRANCH}" ]]; then
|
||||
# Cannot use rsyslog commits/branches for documentation repository
|
||||
_EGIT_BRANCH=${EGIT_BRANCH}
|
||||
unset EGIT_BRANCH
|
||||
fi
|
||||
|
||||
git-r3_fetch "${DOC_REPO_URI}"
|
||||
git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
|
||||
|
||||
if [[ -n "${_EGIT_BRANCH}" ]]; then
|
||||
# Restore previous EGIT_BRANCH information
|
||||
EGIT_BRANCH=${_EGIT_BRANCH}
|
||||
fi
|
||||
else
|
||||
cd "${S}" || die "Cannot change dir into '${S}'"
|
||||
mkdir docs || die "Failed to create docs directory"
|
||||
cd docs || die "Failed to change dir into '${S}/docs'"
|
||||
unpack ${PN}-doc-${PV}.tar.gz
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# https://github.com/rsyslog/rsyslog/issues/3626
|
||||
sed -i \
|
||||
-e '\|^#!/bin/bash$|a exit 77' \
|
||||
tests/mmkubernetes-cache-expir*.sh \
|
||||
|| die "Failed to disabled known test failure mmkubernetes-cache-expir*.sh"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Maintainer notes:
|
||||
# * Guardtime support is missing because libgt isn't yet available
|
||||
# in portage.
|
||||
# * Hadoop's HDFS file system output module is currently not
|
||||
# supported in Gentoo because nobody is able to test it
|
||||
# (JAVA dependency).
|
||||
# * dev-libs/hiredis doesn't provide pkg-config (see #504614,
|
||||
# upstream PR 129 and 136) so we need to export HIREDIS_*
|
||||
# variables because rsyslog's build system depends on pkg-config.
|
||||
|
||||
if use redis; then
|
||||
export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
|
||||
export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-debug-symbols
|
||||
--disable-generate-man-pages
|
||||
--without-valgrind-testbench
|
||||
--disable-liblogging-stdlog
|
||||
$(use_enable test testbench)
|
||||
$(use_enable test libfaketime)
|
||||
$(use_enable test extended-tests)
|
||||
# Input Plugins without depedencies
|
||||
--enable-imdiag
|
||||
--enable-imfile
|
||||
--enable-impstats
|
||||
--enable-imptcp
|
||||
# Message Modificiation Plugins without depedencies
|
||||
--enable-mmanon
|
||||
--enable-mmaudit
|
||||
--enable-mmcount
|
||||
--enable-mmfields
|
||||
--enable-mmjsonparse
|
||||
--enable-mmpstrucdata
|
||||
--enable-mmrm1stspace
|
||||
--enable-mmsequence
|
||||
--enable-mmutf8fix
|
||||
# Output Modification Plugins without dependencies
|
||||
--enable-mail
|
||||
--enable-omprog
|
||||
--enable-omruleset
|
||||
--enable-omstdout
|
||||
--enable-omuxsock
|
||||
# Misc
|
||||
--enable-fmhash
|
||||
$(use_enable xxhash fmhash-xxhash)
|
||||
--enable-pmaixforwardedfrom
|
||||
--enable-pmciscoios
|
||||
--enable-pmcisconames
|
||||
--enable-pmlastmsg
|
||||
$(use_enable normalize pmnormalize)
|
||||
--enable-pmnull
|
||||
--enable-pmpanngfw
|
||||
--enable-pmsnare
|
||||
# DB
|
||||
$(use_enable dbi libdbi)
|
||||
$(use_enable mongodb ommongodb)
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres pgsql)
|
||||
$(use_enable redis omhiredis)
|
||||
# Debug
|
||||
$(use_enable debug)
|
||||
$(use_enable debug diagtools)
|
||||
$(use_enable debug valgrind)
|
||||
# Misc
|
||||
$(use_enable clickhouse)
|
||||
$(use_enable curl fmhttp)
|
||||
$(use_enable elasticsearch)
|
||||
$(use_enable gcrypt libgcrypt)
|
||||
$(use_enable jemalloc)
|
||||
$(use_enable kafka imkafka)
|
||||
$(use_enable kafka omkafka)
|
||||
$(use_enable kerberos gssapi-krb5)
|
||||
$(use_enable kubernetes mmkubernetes)
|
||||
$(use_enable normalize mmnormalize)
|
||||
$(use_enable mdblookup mmdblookup)
|
||||
$(use_enable omhttp)
|
||||
$(use_enable omhttpfs)
|
||||
$(use_enable omudpspoof)
|
||||
$(use_enable rabbitmq omrabbitmq)
|
||||
$(use_enable relp)
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable rfc5424hmac mmrfc5424addhmac)
|
||||
$(use_enable snmp)
|
||||
$(use_enable snmp mmsnmptrapd)
|
||||
$(use_enable gnutls)
|
||||
$(use_enable openssl)
|
||||
$(use_enable systemd imjournal)
|
||||
$(use_enable systemd omjournal)
|
||||
$(use_enable usertools)
|
||||
$(use_enable uuid)
|
||||
$(use_enable zeromq imczmq)
|
||||
$(use_enable zeromq omczmq)
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc && [[ "${PV}" == "9999" ]]; then
|
||||
einfo "Building documentation ..."
|
||||
local doc_dir="${S}/docs"
|
||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
||||
sphinx-build -b html source build || die "Building documentation failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local _has_increased_ulimit=
|
||||
|
||||
# Sometimes tests aren't executable (i.e. when added via patch)
|
||||
einfo "Adjusting permissions of test scripts ..."
|
||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
||||
die "Failed to adjust test scripts permission"
|
||||
|
||||
if ulimit -n 3072; then
|
||||
_has_increased_ulimit="true"
|
||||
fi
|
||||
|
||||
if ! emake --jobs 1 check; then
|
||||
eerror "Test suite failed! :("
|
||||
|
||||
if [[ -z "${_has_increased_ulimit}" ]]; then
|
||||
eerror "Probably because open file limit couldn't be set to 3072."
|
||||
fi
|
||||
|
||||
if has userpriv ${FEATURES}; then
|
||||
eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
|
||||
"before you submit a bug report."
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=(
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
"${FILESDIR}"/README.gentoo
|
||||
)
|
||||
|
||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
||||
|
||||
default
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
|
||||
keepdir /var/empty/dev
|
||||
keepdir /var/spool/${PN}
|
||||
keepdir /etc/ssl/${PN}
|
||||
keepdir /etc/${PN}.d
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf" ${PN}.conf
|
||||
|
||||
insinto /etc/rsyslog.d/
|
||||
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}
|
||||
|
||||
if use mysql; then
|
||||
insinto /usr/share/${PN}/scripts/mysql
|
||||
doins plugins/ommysql/createDB.sql
|
||||
fi
|
||||
|
||||
if use postgres; then
|
||||
insinto /usr/share/${PN}/scripts/pgsql
|
||||
doins plugins/ompgsql/createDB.sql
|
||||
fi
|
||||
|
||||
prune_libtool_files --modules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local advertise_readme=0
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
|
||||
advertise_readme=1
|
||||
|
||||
if use mysql || use postgres; then
|
||||
echo
|
||||
elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
|
||||
elog " /usr/share/doc/${PF}/scripts"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
echo
|
||||
elog "To create a default CA and certificates for your server and clients, run:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "on your logging server. You can run it several times,"
|
||||
elog "once for each logging client. The client certificates will be signed"
|
||||
elog "using the CA certificate generated during the first run."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${advertise_readme} -gt 0 ]]; then
|
||||
# We need to show the README file location
|
||||
|
||||
echo ""
|
||||
elog "Please read"
|
||||
elog ""
|
||||
elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
|
||||
elog ""
|
||||
elog "for more details."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if ! use ssl ; then
|
||||
einfo "There is nothing to configure for rsyslog unless you"
|
||||
einfo "used USE=ssl to build it."
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Make sure the certificates directory exists
|
||||
local CERTDIR="${EROOT}/etc/ssl/${PN}"
|
||||
if [[ ! -d "${CERTDIR}" ]]; then
|
||||
mkdir "${CERTDIR}" || die
|
||||
fi
|
||||
einfo "Your certificates will be stored in ${CERTDIR}"
|
||||
|
||||
# Create a default CA if needed
|
||||
if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
|
||||
einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = Portage automated CA
|
||||
ca
|
||||
cert_signing_key
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-self-signed \
|
||||
--load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--outfile "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
# Create the server certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for server ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_server
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
else
|
||||
einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
|
||||
fi
|
||||
|
||||
# Create a client certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for client ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_client
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
rm -f "${T}/${PF}.$$"
|
||||
|
||||
echo
|
||||
einfo "Here is the documentation on how to encrypt your log traffic:"
|
||||
einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
|
||||
}
|
@ -1,462 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
PYTHON_COMPAT=( python{3_6,3_7,3_8} )
|
||||
|
||||
inherit autotools eutils linux-info ltprune python-any-r1 systemd
|
||||
|
||||
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
|
||||
HOMEPAGE="https://www.rsyslog.com/"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
|
||||
|
||||
DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86"
|
||||
|
||||
SRC_URI="
|
||||
https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
|
||||
doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3 LGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="curl dbi debug doc elasticsearch +gcrypt gnutls jemalloc kafka kerberos kubernetes libressl mdblookup"
|
||||
IUSE+=" mongodb mysql normalize clickhouse omhttp omhttpfs omudpspoof openssl postgres"
|
||||
IUSE+=" rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid xxhash zeromq"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libfastjson-0.99.8:=
|
||||
>=dev-libs/libestr-0.1.9
|
||||
>=sys-libs/zlib-1.2.5
|
||||
curl? ( >=net-misc/curl-7.35.0 )
|
||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
||||
elasticsearch? ( >=net-misc/curl-7.35.0 )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
|
||||
kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
|
||||
kerberos? ( virtual/krb5 )
|
||||
kubernetes? ( >=net-misc/curl-7.35.0 )
|
||||
mdblookup? ( dev-libs/libmaxminddb:= )
|
||||
mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
normalize? (
|
||||
>=dev-libs/liblognorm-2.0.3:=
|
||||
)
|
||||
clickhouse? ( >=net-misc/curl-7.35.0 )
|
||||
omhttpfs? ( >=net-misc/curl-7.35.0 )
|
||||
omudpspoof? ( >=net-libs/libnet-1.1.6 )
|
||||
postgres? ( >=dev-db/postgresql-8.4.20:= )
|
||||
rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
|
||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
||||
relp? ( >=dev-libs/librelp-1.2.17:= )
|
||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
||||
rfc5424hmac? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.8y:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
||||
ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-2.12.23:0= )
|
||||
openssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
)
|
||||
systemd? ( >=sys-apps/systemd-234 )
|
||||
uuid? ( sys-apps/util-linux:0= )
|
||||
xxhash? ( dev-libs/xxhash:= )
|
||||
zeromq? (
|
||||
>=net-libs/czmq-3.0.2
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/autoconf-archive-2015.02.24
|
||||
virtual/pkgconfig
|
||||
elibc_musl? ( sys-libs/queue-standalone )
|
||||
test? (
|
||||
>=dev-libs/liblogging-1.0.1[stdlog]
|
||||
jemalloc? ( <sys-libs/libfaketime-0.9.7 )
|
||||
!jemalloc? ( sys-libs/libfaketime )
|
||||
${PYTHON_DEPS}
|
||||
)"
|
||||
|
||||
REQUIRED_USE="
|
||||
kubernetes? ( normalize )
|
||||
ssl? ( || ( gnutls openssl ) )
|
||||
"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
||||
DEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
||||
DEPEND+=" >=sys-devel/bison-2.4.3"
|
||||
DEPEND+=" >=dev-python/docutils-0.12"
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
local _EGIT_BRANCH=
|
||||
if [[ -n "${EGIT_BRANCH}" ]]; then
|
||||
# Cannot use rsyslog commits/branches for documentation repository
|
||||
_EGIT_BRANCH=${EGIT_BRANCH}
|
||||
unset EGIT_BRANCH
|
||||
fi
|
||||
|
||||
git-r3_fetch "${DOC_REPO_URI}"
|
||||
git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
|
||||
|
||||
if [[ -n "${_EGIT_BRANCH}" ]]; then
|
||||
# Restore previous EGIT_BRANCH information
|
||||
EGIT_BRANCH=${_EGIT_BRANCH}
|
||||
fi
|
||||
else
|
||||
cd "${S}" || die "Cannot change dir into '${S}'"
|
||||
mkdir docs || die "Failed to create docs directory"
|
||||
cd docs || die "Failed to change dir into '${S}/docs'"
|
||||
unpack ${PN}-doc-${PV}.tar.gz
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# https://github.com/rsyslog/rsyslog/issues/3626
|
||||
sed -i \
|
||||
-e '\|^#!/bin/bash$|a exit 77' \
|
||||
tests/mmkubernetes-cache-expir*.sh \
|
||||
|| die "Failed to disabled known test failure mmkubernetes-cache-expir*.sh"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Maintainer notes:
|
||||
# * Guardtime support is missing because libgt isn't yet available
|
||||
# in portage.
|
||||
# * Hadoop's HDFS file system output module is currently not
|
||||
# supported in Gentoo because nobody is able to test it
|
||||
# (JAVA dependency).
|
||||
# * dev-libs/hiredis doesn't provide pkg-config (see #504614,
|
||||
# upstream PR 129 and 136) so we need to export HIREDIS_*
|
||||
# variables because rsyslog's build system depends on pkg-config.
|
||||
|
||||
if use redis; then
|
||||
export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
|
||||
export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-debug-symbols
|
||||
--disable-generate-man-pages
|
||||
--without-valgrind-testbench
|
||||
--disable-liblogging-stdlog
|
||||
$(use_enable test testbench)
|
||||
$(use_enable test libfaketime)
|
||||
$(use_enable test extended-tests)
|
||||
# Input Plugins without depedencies
|
||||
--enable-imdiag
|
||||
--enable-imfile
|
||||
--enable-impstats
|
||||
--enable-imptcp
|
||||
# Message Modificiation Plugins without depedencies
|
||||
--enable-mmanon
|
||||
--enable-mmaudit
|
||||
--enable-mmcount
|
||||
--enable-mmfields
|
||||
--enable-mmjsonparse
|
||||
--enable-mmpstrucdata
|
||||
--enable-mmrm1stspace
|
||||
--enable-mmsequence
|
||||
--enable-mmutf8fix
|
||||
# Output Modification Plugins without dependencies
|
||||
--enable-mail
|
||||
--enable-omprog
|
||||
--enable-omruleset
|
||||
--enable-omstdout
|
||||
--enable-omuxsock
|
||||
# Misc
|
||||
--enable-fmhash
|
||||
$(use_enable xxhash fmhash-xxhash)
|
||||
--enable-pmaixforwardedfrom
|
||||
--enable-pmciscoios
|
||||
--enable-pmcisconames
|
||||
--enable-pmlastmsg
|
||||
$(use_enable normalize pmnormalize)
|
||||
--enable-pmnull
|
||||
--enable-pmpanngfw
|
||||
--enable-pmsnare
|
||||
# DB
|
||||
$(use_enable dbi libdbi)
|
||||
$(use_enable mongodb ommongodb)
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres pgsql)
|
||||
$(use_enable redis omhiredis)
|
||||
# Debug
|
||||
$(use_enable debug)
|
||||
$(use_enable debug diagtools)
|
||||
$(use_enable debug valgrind)
|
||||
# Misc
|
||||
$(use_enable clickhouse)
|
||||
$(use_enable curl fmhttp)
|
||||
$(use_enable elasticsearch)
|
||||
$(use_enable gcrypt libgcrypt)
|
||||
$(use_enable jemalloc)
|
||||
$(use_enable kafka imkafka)
|
||||
$(use_enable kafka omkafka)
|
||||
$(use_enable kerberos gssapi-krb5)
|
||||
$(use_enable kubernetes mmkubernetes)
|
||||
$(use_enable normalize mmnormalize)
|
||||
$(use_enable mdblookup mmdblookup)
|
||||
$(use_enable omhttp)
|
||||
$(use_enable omhttpfs)
|
||||
$(use_enable omudpspoof)
|
||||
$(use_enable rabbitmq omrabbitmq)
|
||||
$(use_enable relp)
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable rfc5424hmac mmrfc5424addhmac)
|
||||
$(use_enable snmp)
|
||||
$(use_enable snmp mmsnmptrapd)
|
||||
$(use_enable gnutls)
|
||||
$(use_enable openssl)
|
||||
$(use_enable systemd imjournal)
|
||||
$(use_enable systemd omjournal)
|
||||
$(use_enable usertools)
|
||||
$(use_enable uuid)
|
||||
$(use_enable zeromq imczmq)
|
||||
$(use_enable zeromq omczmq)
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc && [[ "${PV}" == "9999" ]]; then
|
||||
einfo "Building documentation ..."
|
||||
local doc_dir="${S}/docs"
|
||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
||||
sphinx-build -b html source build || die "Building documentation failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local _has_increased_ulimit=
|
||||
|
||||
# Sometimes tests aren't executable (i.e. when added via patch)
|
||||
einfo "Adjusting permissions of test scripts ..."
|
||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
||||
die "Failed to adjust test scripts permission"
|
||||
|
||||
if ulimit -n 3072; then
|
||||
_has_increased_ulimit="true"
|
||||
fi
|
||||
|
||||
if ! emake --jobs 1 check; then
|
||||
eerror "Test suite failed! :("
|
||||
|
||||
if [[ -z "${_has_increased_ulimit}" ]]; then
|
||||
eerror "Probably because open file limit couldn't be set to 3072."
|
||||
fi
|
||||
|
||||
if has userpriv ${FEATURES}; then
|
||||
eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
|
||||
"before you submit a bug report."
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=(
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
"${FILESDIR}"/README.gentoo
|
||||
)
|
||||
|
||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
||||
|
||||
default
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
|
||||
keepdir /var/empty/dev
|
||||
keepdir /var/spool/${PN}
|
||||
keepdir /etc/ssl/${PN}
|
||||
keepdir /etc/${PN}.d
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf" ${PN}.conf
|
||||
|
||||
insinto /etc/rsyslog.d/
|
||||
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}
|
||||
|
||||
if use mysql; then
|
||||
insinto /usr/share/${PN}/scripts/mysql
|
||||
doins plugins/ommysql/createDB.sql
|
||||
fi
|
||||
|
||||
if use postgres; then
|
||||
insinto /usr/share/${PN}/scripts/pgsql
|
||||
doins plugins/ompgsql/createDB.sql
|
||||
fi
|
||||
|
||||
prune_libtool_files --modules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local advertise_readme=0
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
|
||||
advertise_readme=1
|
||||
|
||||
if use mysql || use postgres; then
|
||||
echo
|
||||
elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
|
||||
elog " /usr/share/doc/${PF}/scripts"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
echo
|
||||
elog "To create a default CA and certificates for your server and clients, run:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "on your logging server. You can run it several times,"
|
||||
elog "once for each logging client. The client certificates will be signed"
|
||||
elog "using the CA certificate generated during the first run."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${advertise_readme} -gt 0 ]]; then
|
||||
# We need to show the README file location
|
||||
|
||||
echo ""
|
||||
elog "Please read"
|
||||
elog ""
|
||||
elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
|
||||
elog ""
|
||||
elog "for more details."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if ! use ssl ; then
|
||||
einfo "There is nothing to configure for rsyslog unless you"
|
||||
einfo "used USE=ssl to build it."
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Make sure the certificates directory exists
|
||||
local CERTDIR="${EROOT}/etc/ssl/${PN}"
|
||||
if [[ ! -d "${CERTDIR}" ]]; then
|
||||
mkdir "${CERTDIR}" || die
|
||||
fi
|
||||
einfo "Your certificates will be stored in ${CERTDIR}"
|
||||
|
||||
# Create a default CA if needed
|
||||
if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
|
||||
einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = Portage automated CA
|
||||
ca
|
||||
cert_signing_key
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-self-signed \
|
||||
--load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--outfile "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
# Create the server certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for server ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_server
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
else
|
||||
einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
|
||||
fi
|
||||
|
||||
# Create a client certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for client ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_client
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
rm -f "${T}/${PF}.$$"
|
||||
|
||||
echo
|
||||
einfo "Here is the documentation on how to encrypt your log traffic:"
|
||||
einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
|
||||
}
|
@ -1,462 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
PYTHON_COMPAT=( python{3_6,3_7,3_8} )
|
||||
|
||||
inherit autotools eutils linux-info ltprune python-any-r1 systemd
|
||||
|
||||
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
|
||||
HOMEPAGE="https://www.rsyslog.com/"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
|
||||
|
||||
DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86"
|
||||
|
||||
SRC_URI="
|
||||
https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
|
||||
doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3 LGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="curl dbi debug doc elasticsearch +gcrypt gnutls jemalloc kafka kerberos kubernetes libressl mdblookup"
|
||||
IUSE+=" mongodb mysql normalize clickhouse omhttp omhttpfs omudpspoof openssl postgres"
|
||||
IUSE+=" rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid xxhash zeromq"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libfastjson-0.99.8:=
|
||||
>=dev-libs/libestr-0.1.9
|
||||
>=sys-libs/zlib-1.2.5
|
||||
curl? ( >=net-misc/curl-7.35.0 )
|
||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
||||
elasticsearch? ( >=net-misc/curl-7.35.0 )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
|
||||
kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
|
||||
kerberos? ( virtual/krb5 )
|
||||
kubernetes? ( >=net-misc/curl-7.35.0 )
|
||||
mdblookup? ( dev-libs/libmaxminddb:= )
|
||||
mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
normalize? (
|
||||
>=dev-libs/liblognorm-2.0.3:=
|
||||
)
|
||||
clickhouse? ( >=net-misc/curl-7.35.0 )
|
||||
omhttpfs? ( >=net-misc/curl-7.35.0 )
|
||||
omudpspoof? ( >=net-libs/libnet-1.1.6 )
|
||||
postgres? ( >=dev-db/postgresql-8.4.20:= )
|
||||
rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
|
||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
||||
relp? ( >=dev-libs/librelp-1.2.17:= )
|
||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
||||
rfc5424hmac? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.8y:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
||||
ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-2.12.23:0= )
|
||||
openssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
)
|
||||
systemd? ( >=sys-apps/systemd-234 )
|
||||
uuid? ( sys-apps/util-linux:0= )
|
||||
xxhash? ( dev-libs/xxhash:= )
|
||||
zeromq? (
|
||||
>=net-libs/czmq-3.0.2
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/autoconf-archive-2015.02.24
|
||||
virtual/pkgconfig
|
||||
elibc_musl? ( sys-libs/queue-standalone )
|
||||
test? (
|
||||
>=dev-libs/liblogging-1.0.1[stdlog]
|
||||
jemalloc? ( <sys-libs/libfaketime-0.9.7 )
|
||||
!jemalloc? ( sys-libs/libfaketime )
|
||||
${PYTHON_DEPS}
|
||||
)"
|
||||
|
||||
REQUIRED_USE="
|
||||
kubernetes? ( normalize )
|
||||
ssl? ( || ( gnutls openssl ) )
|
||||
"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
||||
DEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
||||
DEPEND+=" >=sys-devel/bison-2.4.3"
|
||||
DEPEND+=" >=dev-python/docutils-0.12"
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
local _EGIT_BRANCH=
|
||||
if [[ -n "${EGIT_BRANCH}" ]]; then
|
||||
# Cannot use rsyslog commits/branches for documentation repository
|
||||
_EGIT_BRANCH=${EGIT_BRANCH}
|
||||
unset EGIT_BRANCH
|
||||
fi
|
||||
|
||||
git-r3_fetch "${DOC_REPO_URI}"
|
||||
git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
|
||||
|
||||
if [[ -n "${_EGIT_BRANCH}" ]]; then
|
||||
# Restore previous EGIT_BRANCH information
|
||||
EGIT_BRANCH=${_EGIT_BRANCH}
|
||||
fi
|
||||
else
|
||||
cd "${S}" || die "Cannot change dir into '${S}'"
|
||||
mkdir docs || die "Failed to create docs directory"
|
||||
cd docs || die "Failed to change dir into '${S}/docs'"
|
||||
unpack ${PN}-doc-${PV}.tar.gz
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# https://github.com/rsyslog/rsyslog/issues/3626
|
||||
sed -i \
|
||||
-e '\|^#!/bin/bash$|a exit 77' \
|
||||
tests/mmkubernetes-cache-expir*.sh \
|
||||
|| die "Failed to disabled known test failure mmkubernetes-cache-expir*.sh"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Maintainer notes:
|
||||
# * Guardtime support is missing because libgt isn't yet available
|
||||
# in portage.
|
||||
# * Hadoop's HDFS file system output module is currently not
|
||||
# supported in Gentoo because nobody is able to test it
|
||||
# (JAVA dependency).
|
||||
# * dev-libs/hiredis doesn't provide pkg-config (see #504614,
|
||||
# upstream PR 129 and 136) so we need to export HIREDIS_*
|
||||
# variables because rsyslog's build system depends on pkg-config.
|
||||
|
||||
if use redis; then
|
||||
export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
|
||||
export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-debug-symbols
|
||||
--disable-generate-man-pages
|
||||
--without-valgrind-testbench
|
||||
--disable-liblogging-stdlog
|
||||
$(use_enable test testbench)
|
||||
$(use_enable test libfaketime)
|
||||
$(use_enable test extended-tests)
|
||||
# Input Plugins without depedencies
|
||||
--enable-imdiag
|
||||
--enable-imfile
|
||||
--enable-impstats
|
||||
--enable-imptcp
|
||||
# Message Modificiation Plugins without depedencies
|
||||
--enable-mmanon
|
||||
--enable-mmaudit
|
||||
--enable-mmcount
|
||||
--enable-mmfields
|
||||
--enable-mmjsonparse
|
||||
--enable-mmpstrucdata
|
||||
--enable-mmrm1stspace
|
||||
--enable-mmsequence
|
||||
--enable-mmutf8fix
|
||||
# Output Modification Plugins without dependencies
|
||||
--enable-mail
|
||||
--enable-omprog
|
||||
--enable-omruleset
|
||||
--enable-omstdout
|
||||
--enable-omuxsock
|
||||
# Misc
|
||||
--enable-fmhash
|
||||
$(use_enable xxhash fmhash-xxhash)
|
||||
--enable-pmaixforwardedfrom
|
||||
--enable-pmciscoios
|
||||
--enable-pmcisconames
|
||||
--enable-pmlastmsg
|
||||
$(use_enable normalize pmnormalize)
|
||||
--enable-pmnull
|
||||
--enable-pmpanngfw
|
||||
--enable-pmsnare
|
||||
# DB
|
||||
$(use_enable dbi libdbi)
|
||||
$(use_enable mongodb ommongodb)
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres pgsql)
|
||||
$(use_enable redis omhiredis)
|
||||
# Debug
|
||||
$(use_enable debug)
|
||||
$(use_enable debug diagtools)
|
||||
$(use_enable debug valgrind)
|
||||
# Misc
|
||||
$(use_enable clickhouse)
|
||||
$(use_enable curl fmhttp)
|
||||
$(use_enable elasticsearch)
|
||||
$(use_enable gcrypt libgcrypt)
|
||||
$(use_enable jemalloc)
|
||||
$(use_enable kafka imkafka)
|
||||
$(use_enable kafka omkafka)
|
||||
$(use_enable kerberos gssapi-krb5)
|
||||
$(use_enable kubernetes mmkubernetes)
|
||||
$(use_enable normalize mmnormalize)
|
||||
$(use_enable mdblookup mmdblookup)
|
||||
$(use_enable omhttp)
|
||||
$(use_enable omhttpfs)
|
||||
$(use_enable omudpspoof)
|
||||
$(use_enable rabbitmq omrabbitmq)
|
||||
$(use_enable relp)
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable rfc5424hmac mmrfc5424addhmac)
|
||||
$(use_enable snmp)
|
||||
$(use_enable snmp mmsnmptrapd)
|
||||
$(use_enable gnutls)
|
||||
$(use_enable openssl)
|
||||
$(use_enable systemd imjournal)
|
||||
$(use_enable systemd omjournal)
|
||||
$(use_enable usertools)
|
||||
$(use_enable uuid)
|
||||
$(use_enable zeromq imczmq)
|
||||
$(use_enable zeromq omczmq)
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc && [[ "${PV}" == "9999" ]]; then
|
||||
einfo "Building documentation ..."
|
||||
local doc_dir="${S}/docs"
|
||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
||||
sphinx-build -b html source build || die "Building documentation failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local _has_increased_ulimit=
|
||||
|
||||
# Sometimes tests aren't executable (i.e. when added via patch)
|
||||
einfo "Adjusting permissions of test scripts ..."
|
||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
||||
die "Failed to adjust test scripts permission"
|
||||
|
||||
if ulimit -n 3072; then
|
||||
_has_increased_ulimit="true"
|
||||
fi
|
||||
|
||||
if ! emake --jobs 1 check; then
|
||||
eerror "Test suite failed! :("
|
||||
|
||||
if [[ -z "${_has_increased_ulimit}" ]]; then
|
||||
eerror "Probably because open file limit couldn't be set to 3072."
|
||||
fi
|
||||
|
||||
if has userpriv ${FEATURES}; then
|
||||
eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
|
||||
"before you submit a bug report."
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=(
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
"${FILESDIR}"/README.gentoo
|
||||
)
|
||||
|
||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
||||
|
||||
default
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
|
||||
keepdir /var/empty/dev
|
||||
keepdir /var/spool/${PN}
|
||||
keepdir /etc/ssl/${PN}
|
||||
keepdir /etc/${PN}.d
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf" ${PN}.conf
|
||||
|
||||
insinto /etc/rsyslog.d/
|
||||
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}
|
||||
|
||||
if use mysql; then
|
||||
insinto /usr/share/${PN}/scripts/mysql
|
||||
doins plugins/ommysql/createDB.sql
|
||||
fi
|
||||
|
||||
if use postgres; then
|
||||
insinto /usr/share/${PN}/scripts/pgsql
|
||||
doins plugins/ompgsql/createDB.sql
|
||||
fi
|
||||
|
||||
prune_libtool_files --modules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local advertise_readme=0
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
|
||||
advertise_readme=1
|
||||
|
||||
if use mysql || use postgres; then
|
||||
echo
|
||||
elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
|
||||
elog " /usr/share/doc/${PF}/scripts"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
echo
|
||||
elog "To create a default CA and certificates for your server and clients, run:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "on your logging server. You can run it several times,"
|
||||
elog "once for each logging client. The client certificates will be signed"
|
||||
elog "using the CA certificate generated during the first run."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${advertise_readme} -gt 0 ]]; then
|
||||
# We need to show the README file location
|
||||
|
||||
echo ""
|
||||
elog "Please read"
|
||||
elog ""
|
||||
elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
|
||||
elog ""
|
||||
elog "for more details."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if ! use ssl ; then
|
||||
einfo "There is nothing to configure for rsyslog unless you"
|
||||
einfo "used USE=ssl to build it."
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Make sure the certificates directory exists
|
||||
local CERTDIR="${EROOT}/etc/ssl/${PN}"
|
||||
if [[ ! -d "${CERTDIR}" ]]; then
|
||||
mkdir "${CERTDIR}" || die
|
||||
fi
|
||||
einfo "Your certificates will be stored in ${CERTDIR}"
|
||||
|
||||
# Create a default CA if needed
|
||||
if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
|
||||
einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = Portage automated CA
|
||||
ca
|
||||
cert_signing_key
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-self-signed \
|
||||
--load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--outfile "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
# Create the server certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for server ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_server
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
else
|
||||
einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
|
||||
fi
|
||||
|
||||
# Create a client certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for client ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_client
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
rm -f "${T}/${PF}.$$"
|
||||
|
||||
echo
|
||||
einfo "Here is the documentation on how to encrypt your log traffic:"
|
||||
einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
DIST sudo-1.8.31.tar.gz 3350674 BLAKE2B de5a968732fdd58933b4c513d13c43a08cb50075a00c3e0d338c9892570a416a2b3a8f19940c0893715f4eeab991e804831a87ef656ffd91e7f1ba047c119261 SHA512 b9e408a322938c7a712458e9012d8a5f648fba5b23a5057cf5d8372c7f931262595f1575c32c32b9cb1a04af670ff4611e7df48d197e5c4cc038d6b65439a28a
|
||||
DIST sudo-1.8.31p1.tar.gz 3351312 BLAKE2B 85775ef574a3a1a9cc749809fe81f8350f7a4e3f46a905bc3392790b20bb7bc8e3c99fb504e01776f3a92aa6afa7972d3ff1c071aadd3a08ee1d2281f8b9ba50 SHA512 9344fd1d8a8445e8afb9c5628cdc832fe32ea29199f071f35fb6ec694371801556df560f4382afec199f468b1f3264ad5e3a89e964612e571b8d911f823724cc
|
||||
DIST sudo-1.9.0rc3.tar.gz 3743148 BLAKE2B ff3110b21f14f2d0c6fdcb6a717d5f7fc751a4b9fb35ef1892270d88d4a23a830619ab54288169bd476d06f34a8bf3351866ac71aa4b06950309ed2495e15fe3 SHA512 8da242b78239ed09946d68215fa7d882c86c82c1d690d1fecbfce726a30293c756a27c419400479cce12abb0b7e38d861dd7cfb21a7df69f47a6b1940b54e26e
|
||||
DIST sudo-1.9.0rc4.tar.gz 3744357 BLAKE2B 569b2e94cbe837d9d2418a6ef7e53484975821d0a3cd0281473b96ee44939c65d8cd9ffc43a00170a6bbc1001cf1e0b826768ada13b3c4c4b85c7c0366b14eda SHA512 e3925f9e0e5eaf426ab4629c772ad36ea97298064bebdf038a82b4db5a73e9191733c0c6d88c6a2aa1f5c8c6d1a0e17b67d8b97e3e384b7f0894be5ac7276e01
|
||||
EBUILD sudo-1.8.31.ebuild 6863 BLAKE2B 605dcb95b2668e74e9fbc915c98aad1c787919036b450476e9c9d50e2151489154d2232d0c1e445bfc6647cccecc240f508c2ef636e64331fcfbce385025ad72 SHA512 ccf9c659c89e469ad9cd0282ef2165a549344734dd3638226506944e39a39574af5f56d96ff0108880571a56a9eb457077fd2e73889fbb9c27a0e766b88f9abc
|
||||
EBUILD sudo-1.8.31_p1.ebuild 6872 BLAKE2B df4b0b8974bebc5683f9e1e1331c1e25f8c2dea63bd8162a3906dda75c92197a35007d3fb3fb257cee91643918be81222cf0141ab13f28a3a789c0c96053cc1b SHA512 688162c59941c57261c7a15726bb5a368bbc40a990c98d18d7d46f67fd0aef3f1a332703a79691f0c133af0202beeaf0af1e8249a8ab6fad0879899698f40f89
|
||||
EBUILD sudo-1.9.0_rc3.ebuild 6818 BLAKE2B 7e4ab79b53a510067f52d4082ba38331b12083104b61c53d737d701ed1edd7150d7dd4302b42bd958175307fb0374496bd41a4ab683f363fb94e9dd8fcd12944 SHA512 4e1ab7142549eab298f1ef450877789d405c425abf9e13cf8b739c1805ed1c71a0bd2651273a928b57e113bbcb73734af754b730d4cd114c905651e3b1633296
|
||||
EBUILD sudo-1.9.0_rc4.ebuild 6818 BLAKE2B 7e4ab79b53a510067f52d4082ba38331b12083104b61c53d737d701ed1edd7150d7dd4302b42bd958175307fb0374496bd41a4ab683f363fb94e9dd8fcd12944 SHA512 4e1ab7142549eab298f1ef450877789d405c425abf9e13cf8b739c1805ed1c71a0bd2651273a928b57e113bbcb73734af754b730d4cd114c905651e3b1633296
|
||||
EBUILD sudo-9999.ebuild 6818 BLAKE2B 7e4ab79b53a510067f52d4082ba38331b12083104b61c53d737d701ed1edd7150d7dd4302b42bd958175307fb0374496bd41a4ab683f363fb94e9dd8fcd12944 SHA512 4e1ab7142549eab298f1ef450877789d405c425abf9e13cf8b739c1805ed1c71a0bd2651273a928b57e113bbcb73734af754b730d4cd114c905651e3b1633296
|
||||
MISC metadata.xml 1379 BLAKE2B 3fb47838664544236c2c5ce55ba77cda8fdef3ff1bd050a775878444040c76ec1d18fecd7ecbcc11121c90e76e9634f4c01da676dc178dbc7787b9250774e28a SHA512 81def82cf20eb6a57d38a1cced2fef18f5f5b56b6bb92a036cf925dec1c1b77f18e3c7b5997f4055ce840873032df65edae08810e6838bb0ab6309020a4a30d6
|
||||
|
@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit eutils flag-o-matic systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="System performance tools for Linux"
|
||||
HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="debug nls lm-sensors selinux static"
|
||||
|
||||
CDEPEND="
|
||||
nls? ( virtual/libintl )
|
||||
lm-sensors? ( sys-apps/lm-sensors:= )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-sysstat )
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-11.0.4-cron.patch
|
||||
"${FILESDIR}"/${PN}-11.7.3-flags.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if use nls; then
|
||||
strip-linguas -i nls/
|
||||
local lingua pofile
|
||||
for pofile in nls/*.po; do
|
||||
lingua=${pofile/nls\/}
|
||||
lingua=${lingua/.po}
|
||||
if ! has ${lingua} ${LINGUAS}; then
|
||||
rm "nls/${lingua}.po" || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR
|
||||
use static && append-ldflags -static
|
||||
|
||||
sa_lib_dir=/usr/lib/sa \
|
||||
conf_dir=/etc \
|
||||
econf \
|
||||
$(use_enable lm-sensors sensors) \
|
||||
$(use_enable nls) \
|
||||
$(usex debug --enable-debuginfo '') \
|
||||
--enable-copy-only \
|
||||
--enable-documentation \
|
||||
--enable-install-cron \
|
||||
--with-systemdsystemunitdir=$(systemd_get_systemunitdir)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/log/sa
|
||||
|
||||
emake \
|
||||
CHOWN=true \
|
||||
DESTDIR="${D}" \
|
||||
DOC_DIR=/usr/share/doc/${PF} \
|
||||
MANGRPARG='' \
|
||||
install
|
||||
|
||||
dodoc -r contrib/
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.init.d ${PN}
|
||||
systemd_dounit ${PN}.service
|
||||
|
||||
rm "${D}"/usr/share/doc/${PF}/COPYING || die
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit eutils flag-o-matic systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="System performance tools for Linux"
|
||||
HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="debug nls lm-sensors selinux static"
|
||||
|
||||
CDEPEND="
|
||||
nls? ( virtual/libintl )
|
||||
lm-sensors? ( sys-apps/lm-sensors:= )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-sysstat )
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-11.0.4-cron.patch
|
||||
"${FILESDIR}"/${PN}-11.7.3-flags.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if use nls; then
|
||||
strip-linguas -i nls/
|
||||
local lingua pofile
|
||||
for pofile in nls/*.po; do
|
||||
lingua=${pofile/nls\/}
|
||||
lingua=${lingua/.po}
|
||||
if ! has ${lingua} ${LINGUAS}; then
|
||||
rm "nls/${lingua}.po" || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR
|
||||
use static && append-ldflags -static
|
||||
|
||||
sa_lib_dir=/usr/lib/sa \
|
||||
conf_dir=/etc \
|
||||
econf \
|
||||
$(use_enable lm-sensors sensors) \
|
||||
$(use_enable nls) \
|
||||
$(usex debug --enable-debuginfo '') \
|
||||
--enable-copy-only \
|
||||
--enable-documentation \
|
||||
--enable-install-cron \
|
||||
--with-systemdsystemunitdir=$(systemd_get_systemunitdir)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/log/sa
|
||||
|
||||
emake \
|
||||
CHOWN=true \
|
||||
DESTDIR="${D}" \
|
||||
DOC_DIR=/usr/share/doc/${PF} \
|
||||
MANGRPARG='' \
|
||||
install
|
||||
|
||||
dodoc -r contrib/
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.init.d ${PN}
|
||||
systemd_dounit ${PN}.service
|
||||
|
||||
rm "${D}"/usr/share/doc/${PF}/COPYING || die
|
||||
}
|
Binary file not shown.
@ -1,16 +0,0 @@
|
||||
AUX clamav-unofficial-sigs-7.0.1-disable-run-as-root.patch 1500 BLAKE2B c0b4faaa99fea8dcc2874ebed2b42c559b5672f7f1db7219415b99dd55498a1668a57ecfe95452ac2ec948aff30ec0b7ed8d56a51ca029c3421d6ce368b4bd4b SHA512 a580de4379935fada201c66db4211637f6c5bf15a4a4c0a25f1681cdb5b5d3f795159b07d4b754719e6ae35d0296d71cff3a0794f23caf99f2c312fd46e8fd88
|
||||
AUX clamav-unofficial-sigs-7.0.1-fix-mbl-database-name.patch 1264 BLAKE2B c61ea2136b72d5f2bd93d977fb4f7b0ee8aa313f0130f1434cef3cceb652a5791ae1d25ac9efcf26fa0255459c030b52d5c24c5a2f9c9a92b84fa1f81ae8cb41 SHA512 8cfc47911219c8346605272a80b2f52262581342693ee7dec0654e5542f1f73be27a022c36e9af0ba674e2c6a717fd1870cee77416eba77568b3e7c5712b1ba2
|
||||
AUX clamav-unofficial-sigs-7.0.1-fix-mbl-url.patch 1000 BLAKE2B 5a90e43d592a38d457eb56e0480b383ce1b1cd12153722f804fb041ffd51d8a55698e22e2f8e9d15bb71147f5f6f4437804a051facd7945f9cd141098bd51fcd SHA512 716f6f1b13afc07a6160b1a2cd53331d7be4487b6c4ece33e247d923d267d90e6a36eb1c06e3e38afc77e9d1750c13e58dfb312f5549c8a878ad6378bdc18fbc
|
||||
AUX clamav-unofficial-sigs-7.0.1.man.8 4675 BLAKE2B afc32188c3542df6b944bb60240f378a8bfffe0aab4933552dd363ad041479959b747eb2571e161fb519a753530dc943d3902bcaac79e3058befe2305f28066e SHA512 7b4e5c7d2ffe51898736d9f86fe7f1cc7ae585015d8aa5960fd48b4f7a4344f5b2e307d0548d87d6533a731c1b6361bd0653824d76db4f533475cd34af501a31
|
||||
AUX clamav-unofficial-sigs.8 4568 BLAKE2B 3bb0a56c11d733d0727c38588fb1b9b38b679e32cf9ac0b2c277f623e3a3508df2aa0ac65497fa0026d43a629ec69a0cad386ca57b9cb8178b30b3061fc2abf1 SHA512 8e688281c6918ea8c13f5d76c63fee65b6e3378ca1d2e92033a741b7f02d12607d838484075e0d3ae8d99680a5b235acee062fc80c63f7e5577cfee575b56573
|
||||
AUX clamav-unofficial-sigs.crond 736 BLAKE2B cc727c674b863d4426e7372b6140d3135b8a6aab57da5da3273807cecce88e61baf8f3ad642dad3e5287b88bd1072f80ad2d4758cd43405dd21b8e547b6fb5b7 SHA512 3545ff3962b4db3f96f12409dbe069e93d573c63a3e8d6a69e8f9bc671dfb995250cbe30538626f1712199ac041e9c2f29da1dae3dad0cdae0aa5cee77877b70
|
||||
AUX clamav-unofficial-sigs.logrotate 109 BLAKE2B 662b268f5332f088670fb762dd5162c0fccba68ca3fad5d089f2330057f1d52c35785924e56a8174c3d9c2d7d6c9232f3d41adb83c2cd88c55d096b764781ed8 SHA512 3d79caf1bbc29218aacda9c6c411b6b9e827644c3a89a3a1b9e0d89baeb7927cdbda3322c9b5a5186e53f0efa598e165d10cfa698936a687bd6279f6e3866830
|
||||
AUX clamav-unofficial-sigs.service 432 BLAKE2B 4d1fd7f47d8698a19e9b52e265d05543176e096877e1b92418b9685da64ea1fed45fe13837c9359ce74ea51dd166d3cdd5756bb605bfc40c7679fff3bf228b5c SHA512 7262b760b8637e505096958d4233ce2c6ace337ce37be0bf703e70fb408d36d98da3fc84d8d74096c04094537597dd8f7c84a61a4f9504879d43302804fe8bf9
|
||||
AUX clamav-unofficial-sigs.timer 336 BLAKE2B e7abc9f011becab462dd23147843bb7e3ab23fee13babd41e8958eeab42db018980cdee1404cdeafde0e2ac87a4fde0ee9aa53e90de0bf191a12d688ebc715e3 SHA512 a921b065671bb053f135a4a44e268d4002acf1a42373304253fd3595fa414df9cbfd91c7a54b4be30012879c9446e0e2de7ca86833b6c03775e434a41ecb0e5d
|
||||
DIST clamav-unofficial-sigs-5.6.2.tar.gz 50931 BLAKE2B 6fea42f8f76ae5344c2b96c9203d2b09e755573d03f2b9d3d9ee2a488150fbb6f598e052b730daf12c551920a71fd8daad1dc10002fca12fa4a74554cf7d445e SHA512 79978db065a22d778490d0a2673f5a0bb7ab73e42de64563e7d26ac23459f7e5b2e73b0548e1ea6483e3c5f43eed65cdbc6814037cc0c46a339366a0150e5427
|
||||
DIST clamav-unofficial-sigs-6.0.1.tar.gz 52262 BLAKE2B 9523da749e88c5e93f0986d7d4a234c3b1eff7c207ceb266e63cd76d7cffdf4a85aedf90aa746f7e1c82be97018f40896bbaa2dfd8f749f3c167d3bff74293d7 SHA512 d4f619628c9b2804a6d5ad533adaad72e323bb0604334c045cf92fc550ffb114493653d097b68337b33f51dc1215dc073b4ec9dc42abea8707cb03aefa40b289
|
||||
DIST clamav-unofficial-sigs-7.0.1.tar.gz 59517 BLAKE2B 36da6d7748cd7fcf35dde4790a8fb6777a97a6c0a7b2c080e0f0ac939041b5fd2372f0d58fb00558a7f57db78866c3235205e2cb8a8083575efcf1a5e73c9a3b SHA512 2cba341bce50b03d17f46662b499a3378d4e5750f4abe837bbddee5c671636553660723243c4b90de96c84210926f6406f554b7936600c3ae618644af40bf802
|
||||
EBUILD clamav-unofficial-sigs-5.6.2.ebuild 1846 BLAKE2B 2a8aacda234149946d22da47d995b696f46bd6d89bc65cbcafe47e650972f688b831da308b60629a06dd5aa1322c804a341ecd0131722f241c9e9f25bda36591 SHA512 a7fac4e6b1c7f406aaa0051226fc2dd78e17f060fcc22a6229fef2fd3435c53a50b39030e672ac7139f394422e04f6baf2360415ce2ce9faf91d0289261d7f74
|
||||
EBUILD clamav-unofficial-sigs-6.0.1-r5.ebuild 2368 BLAKE2B 54218e3060b1156de9db3a32293c60e7d1860017f79ef1637e4131b97ccd96cc5e04833ebc27566b795f6d9d994a7164889841f015d8126bf0f716e922564e6d SHA512 8fc0c7f8b1567f4e26b3cba988a3f4ae41ee84f997b696e36596b813094ecd101f37be6960333a078b46122158c447963daa5d0b7009463526dfc8892a7f0d07
|
||||
EBUILD clamav-unofficial-sigs-7.0.1.ebuild 3362 BLAKE2B a587708cd9bba3edddc69cc014a0bfb313bfb0f4620fa91d2e19b2f1100c8968e3e9149542a118ab514ef266af35bf874da30cd712a6395b46a39b807915c837 SHA512 ffbb490e0c6c13065618b2ae381f24c2035dc8ccbc45a88f3709eaec907a63dca8627408ac068d9999ec36e9b6c0429e58f4c7d347532479d9ebcfec08b70e15
|
||||
MISC metadata.xml 699 BLAKE2B f053d76f76bc2c2f38308ba59f7cff4c991ab16a62ea63c255e543ff1ba4964cf24be6c3cf5b9f4dea82579d637c84d8c072bbc475f4d6b12665d35d00b0e7d1 SHA512 8a1a737b5012f5489cb24230f20d757f861da8ec125bd19e2aa22a5fb7f932e36d17ca771796e3eb167d3141487851e83d3a83d45e3c6a5a05ab0ce4b7738e0b
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit user
|
||||
|
||||
DESCRIPTION="Download and install third-party clamav signatures"
|
||||
HOMEPAGE="https://github.com/extremeshok/clamav-unofficial-sigs"
|
||||
SRC_URI="https://github.com/extremeshok/clamav-unofficial-sigs/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
# The script relies on either net-misc/socat, or Perl's
|
||||
# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships
|
||||
# with IO::Socket::UNIX, so we can leave out net-misc/socat here.
|
||||
RDEPEND="${DEPEND}
|
||||
app-crypt/gnupg
|
||||
dev-lang/perl
|
||||
net-dns/bind-tools
|
||||
|| ( net-misc/wget net-misc/curl )"
|
||||
|
||||
src_install() {
|
||||
dosbin "${PN}.sh"
|
||||
|
||||
# The script's working directory (set in the conf file). By default,
|
||||
# it runs as clamav/clamav. We set the owner/group later, in
|
||||
# pkg_preinst, after the user/group is sure to exist (because we
|
||||
# create them otherwise).
|
||||
keepdir "/var/lib/${PN}"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
doins "${FILESDIR}/${PN}.logrotate"
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins config/{master,user}.conf
|
||||
newins config/os.gentoo.conf os.conf
|
||||
|
||||
doman "${FILESDIR}/${PN}.8"
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Should agree with app-antivirus/clamav. We don't actually need
|
||||
# clamav to function, so it isn't one of our dependencies, and
|
||||
# that's why we might need to create its user ourselves.
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
fowners clamav:clamav "/var/lib/${PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ''
|
||||
elog "You will need to select databases in /etc/${PN}/master.conf."
|
||||
elog "For details, please see the ${PN}(8) manual page."
|
||||
elog ''
|
||||
elog 'An up-to-date description of the available Sanesecurity'
|
||||
elog 'databases is available at,'
|
||||
elog ''
|
||||
elog ' http://sanesecurity.com/usage/signatures/'
|
||||
elog ''
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="Download and install third-party clamav signatures"
|
||||
HOMEPAGE="https://github.com/extremeshok/clamav-unofficial-sigs"
|
||||
SRC_URI="https://github.com/extremeshok/clamav-unofficial-sigs/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cron"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/${PN} in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
DEPEND="acct-group/clamav
|
||||
acct-user/clamav"
|
||||
|
||||
# The script relies on either net-misc/socat, or Perl's
|
||||
# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships
|
||||
# with IO::Socket::UNIX, so we can leave out net-misc/socat here.
|
||||
RDEPEND="${DEPEND}
|
||||
app-crypt/gnupg
|
||||
dev-lang/perl
|
||||
net-dns/bind-tools
|
||||
|| ( net-misc/wget net-misc/curl )"
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}.sh"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotate" "${PN}"
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins config/{master,user}.conf
|
||||
newins config/os.gentoo.conf os.conf
|
||||
|
||||
doman "${FILESDIR}/${PN}.8"
|
||||
dodoc README.md
|
||||
|
||||
if use cron; then
|
||||
# Beware, this directory is not completely standard. However,
|
||||
# we need this to run as "clamav" with a non-default shell and
|
||||
# home directory (bug 694054), and this seems like the most
|
||||
# reliable way to accomplish that.
|
||||
insinto "/etc/cron.d"
|
||||
newins "${FILESDIR}/${PN}.crond" "${PN}"
|
||||
else
|
||||
dodoc "${FILESDIR}/${PN}.crond"
|
||||
fi
|
||||
|
||||
# Install the systemd service and timer unconditionally, because
|
||||
# the timer is disabled by default (and won't annoy people until
|
||||
# after they've configured the script).
|
||||
systemd_dounit "${FILESDIR}/${PN}".{service,timer}
|
||||
|
||||
# The script's working directory, as set in the configuration
|
||||
# file. By default, the script runs as clamav:clamav because
|
||||
# it needs write access to the clamav databases.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir "/var/lib/${PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ''
|
||||
elog "You will need to select databases in /etc/${PN}/master.conf."
|
||||
elog "For details, please see the ${PN}(8) manual page."
|
||||
elog ''
|
||||
elog 'An up-to-date description of the available Sanesecurity'
|
||||
elog 'databases is available at,'
|
||||
elog ''
|
||||
elog ' http://sanesecurity.com/usage/signatures/'
|
||||
elog ''
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="Download and install third-party clamav signatures"
|
||||
HOMEPAGE="https://github.com/extremeshok/clamav-unofficial-sigs"
|
||||
SRC_URI="https://github.com/extremeshok/clamav-unofficial-sigs/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cron"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/${PN} in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
DEPEND="acct-group/clamav
|
||||
acct-user/clamav"
|
||||
|
||||
# The script relies on either net-misc/socat, or Perl's
|
||||
# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships
|
||||
# with IO::Socket::UNIX, so we can leave out net-misc/socat here.
|
||||
#
|
||||
# Recent versions will crash if you don't have "clamscan" available,
|
||||
# so we are forced to depend on app-antivirus/clamav finally.
|
||||
RDEPEND="${DEPEND}
|
||||
app-antivirus/clamav
|
||||
app-crypt/gnupg
|
||||
dev-lang/perl
|
||||
net-dns/bind-tools
|
||||
|| ( net-misc/wget net-misc/curl )"
|
||||
|
||||
# This script is cccrrraaaaaaazzzzzzzzyyyyyy. It does a million
|
||||
# insecure things. Let's not accidentally run it as root.
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-disable-run-as-root.patch"
|
||||
"${FILESDIR}/${P}-fix-mbl-database-name.patch"
|
||||
"${FILESDIR}/${P}-fix-mbl-url.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# https://github.com/extremeshok/clamav-unofficial-sigs/pull/301
|
||||
echo 'allow_upgrades="no"' >> config/os/os.gentoo.conf || die
|
||||
echo 'allow_update_checks="no"' >> config/os/os.gentoo.conf || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}.sh"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotate" "${PN}"
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins config/{master,user}.conf
|
||||
newins config/os/os.gentoo.conf os.conf
|
||||
|
||||
# To generate the man page, you have to first install the package,
|
||||
# and then issue some ridiculous command like
|
||||
#
|
||||
# $ sudo su -s /bin/sh \
|
||||
# -c 'man_dir=/tmp clamav-unofficial-sigs.sh --install-man' \
|
||||
# clamav
|
||||
#
|
||||
# That'll stick it in /tmp, which is unsafe-ish, but the example is
|
||||
# easily modified.
|
||||
newman "${FILESDIR}/${P}.man.8" "${PN}.8"
|
||||
dodoc README.md
|
||||
|
||||
if use cron; then
|
||||
# Beware, this directory is not completely standard. However,
|
||||
# we need this to run as "clamav" with a non-default shell and
|
||||
# home directory (bug 694054), and this seems like the most
|
||||
# reliable way to accomplish that.
|
||||
insinto "/etc/cron.d"
|
||||
newins "${FILESDIR}/${PN}.crond" "${PN}"
|
||||
else
|
||||
dodoc "${FILESDIR}/${PN}.crond"
|
||||
fi
|
||||
|
||||
# Install the systemd service and timer unconditionally, because
|
||||
# the timer is disabled by default (and won't annoy people until
|
||||
# after they've configured the script).
|
||||
systemd_dounit "${FILESDIR}/${PN}".{service,timer}
|
||||
|
||||
# The script's working directory, as set in the configuration
|
||||
# file. By default, the script runs as clamav:clamav because
|
||||
# it needs write access to the clamav databases.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir "/var/lib/${PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ''
|
||||
elog "You will need to select databases in /etc/${PN}/master.conf."
|
||||
elog "For details, please see the ${PN}(8) manual page."
|
||||
elog ''
|
||||
elog 'An up-to-date description of the available Sanesecurity'
|
||||
elog 'databases is available at,'
|
||||
elog ''
|
||||
elog ' http://sanesecurity.com/usage/signatures/'
|
||||
elog ''
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
From 5235a5e518a1b17f50eb0f56c088f3808d939626 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Orlitzky <michael@orlitzky.com>
|
||||
Date: Tue, 4 Feb 2020 19:34:56 -0500
|
||||
Subject: [PATCH 1/1] clamav-unofficial-sigs.sh: disable running as root.
|
||||
|
||||
The only way I'm going to let this be installed on my machine is if
|
||||
it never runs as root. The shit that it does is insane (a priori)
|
||||
and also implemented insecurely. There's no good reason to run the
|
||||
script as root on Gentoo anyway. A cron job is provided for you,
|
||||
or you can use "su -s /bin/bash -c ... clamav" to run it as the
|
||||
clamav user.
|
||||
---
|
||||
clamav-unofficial-sigs.sh | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/clamav-unofficial-sigs.sh b/clamav-unofficial-sigs.sh
|
||||
index aa70db1..60d305b 100644
|
||||
--- a/clamav-unofficial-sigs.sh
|
||||
+++ b/clamav-unofficial-sigs.sh
|
||||
@@ -3,6 +3,16 @@
|
||||
# shellcheck disable=SC2120
|
||||
# shellcheck disable=SC2128
|
||||
# shellcheck disable=SC2154
|
||||
+
|
||||
+if [[ ${EUID} -eq 0 ]]; then
|
||||
+ exec 1>&2
|
||||
+ echo "This script has been patched by the Gentoo maintainer to disable"
|
||||
+ echo "running it as root (effective UID 0). When run as root, the script"
|
||||
+ echo "performs a number of operations insecurely. You should never need"
|
||||
+ echo "to run this as root on Gentoo in the first place."
|
||||
+ exit 1;
|
||||
+fi
|
||||
+
|
||||
################################################################################
|
||||
# This is property of eXtremeSHOK.com
|
||||
# You are free to use, modify and distribute, however you may not remove this notice.
|
||||
--
|
||||
2.24.1
|
||||
|
@ -1,35 +0,0 @@
|
||||
From 837439354cd4692a7228f9f356e0c4acd32202f3 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Orlitzky <michael@orlitzky.com>
|
||||
Date: Tue, 4 Feb 2020 20:11:16 -0500
|
||||
Subject: [PATCH 1/1] clamav-unofficial-sigs.sh: fix malwarepatrol extended
|
||||
database name.
|
||||
|
||||
The database suffix needs to be ".db" regardless of whether you choose
|
||||
the "basic" signatures or the "extended" ones. This patch is a quick
|
||||
fix, and just forces the correct name at the beginning of the script.
|
||||
|
||||
Issue: https://github.com/extremeshok/clamav-unofficial-sigs/issues/300
|
||||
---
|
||||
clamav-unofficial-sigs.sh | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/clamav-unofficial-sigs.sh b/clamav-unofficial-sigs.sh
|
||||
index aa70db1..d8031c8 100644
|
||||
--- a/clamav-unofficial-sigs.sh
|
||||
+++ b/clamav-unofficial-sigs.sh
|
||||
@@ -2235,11 +2235,7 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
-if [ $malwarepatrol_list == "clamav_basic" ] ; then
|
||||
- malwarepatrol_db="malwarepatrol.db"
|
||||
-else
|
||||
- malwarepatrol_db="malwarepatrol.ndb"
|
||||
-fi
|
||||
+malwarepatrol_db="malwarepatrol.db"
|
||||
malwarepatrol_url="${malwarepatrol_url}?receipt=${malwarepatrol_receipt_code}&product=${malwarepatrol_product_code}&list=${malwarepatrol_list}"
|
||||
|
||||
# If "ham_dir" variable is set, then create initial whitelist files (skipped if first-time script run).
|
||||
--
|
||||
2.24.1
|
||||
|
@ -1,22 +0,0 @@
|
||||
From be934c77f029aa52c84ede976cf7ab91bf053c03 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Urspringer <michael@urspringer.de>
|
||||
Date: Sun, 26 Jan 2020 11:46:07 +0100
|
||||
Subject: [PATCH] Fixed wrong download URL for MalwarePatrol
|
||||
|
||||
---
|
||||
clamav-unofficial-sigs.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/clamav-unofficial-sigs.sh b/clamav-unofficial-sigs.sh
|
||||
index aa70db1..c2f31d6 100644
|
||||
--- a/clamav-unofficial-sigs.sh
|
||||
+++ b/clamav-unofficial-sigs.sh
|
||||
@@ -2979,7 +2979,7 @@ if [ "$malwarepatrol_enabled" == "yes" ] ; then
|
||||
xshok_pretty_echo_and_log "Checking for updated MalwarePatrol database file: ${malwarepatrol_db}"
|
||||
malwarepatrol_db_update="0"
|
||||
|
||||
- xshok_file_download "${work_dir_malwarepatrol}/${malwarepatrol_db}" "${malwarepatrol_url}&receipt=${malwarepatrol_receipt_code}"
|
||||
+ xshok_file_download "${work_dir_malwarepatrol}/${malwarepatrol_db}" "${malwarepatrol_url}"
|
||||
|
||||
ret="$?"
|
||||
if [ "$ret" -eq 0 ] ; then
|
@ -1,77 +0,0 @@
|
||||
|
||||
.\" Manual page for eXtremeSHOK.com ClamAV Unofficial Signature Updater
|
||||
.TH clamav-unofficial-sigs 8 "2020-01-25" "Version: 7.0.1" "SCRIPT COMMANDS"
|
||||
.SH NAME
|
||||
clamav-unofficial-sigs \- Download, test, and install third-party ClamAV signature databases.
|
||||
.SH SYNOPSIS
|
||||
.B clamav-unofficial-sigs
|
||||
.RI [ options ]
|
||||
.SH DESCRIPTION
|
||||
\fBclamav-unofficial-sigs\fP provides a simple way to download, test, and update third-party signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine, Securiteinfo, MalwarePatrol, Yara-Rules Project, etc. It will also generate and install cron, logrotate, and man files.
|
||||
.SH UPDATES
|
||||
Script updates can be found at: \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP
|
||||
.SH OPTIONS
|
||||
This script follows the standard GNU command line syntax.
|
||||
.LP
|
||||
\fB Usage: clamav\-unofficial\-sigs.sh \fR [OPTION] [PATH|FILE]
|
||||
.TP
|
||||
\fB \-c, \-\-config \fR Use a specific configuration file or directory eg: '\-c /your/dir' or ' \-c /your/file.name' Note: If a directory is specified the directory must contain atleast: master.conf, os.conf or user.conf Default Directory: /etc/clamav\-unofficial\-sigs
|
||||
.TP
|
||||
\fB \-F, \-\-force \fR Force all databases to be downloaded, could cause ip to be blocked
|
||||
.TP
|
||||
\fB \-h, \-\-help \fR Display this script's help and usage information
|
||||
.TP
|
||||
\fB \-V, \-\-version \fR Output script version and date information
|
||||
.TP
|
||||
\fB \-v, \-\-verbose \fR Be verbose, enabled when not run under cron
|
||||
.TP
|
||||
\fB \-s, \-\-silence \fR Only output error messages, enabled when run under cron
|
||||
.TP
|
||||
\fB \-d, \-\-decode\-sig \fR Decode a third\-party signature either by signature name (eg: Sanesecurity.Junk.15248) or hexadecimal string. This flag will 'NOT' decode image signatures
|
||||
.TP
|
||||
\fB \-e, \-\-encode\-string \fR Hexadecimal encode an entire input string that can be used in any '*.ndb' signature database file
|
||||
.TP
|
||||
\fB \-f, \-\-encode\-formatted \fR Hexadecimal encode a formatted input string containing signature spacing fields '{}, (), *', without encoding the spacing fields, so that the encoded signature can be used in any '*.ndb' signature database file
|
||||
.TP
|
||||
\fB \-g, \-\-gpg\-verify \fR GPG verify a specific Sanesecurity database file eg: '\-g filename.ext' (do not include file path)
|
||||
.TP
|
||||
\fB \-i, \-\-information \fR Output system and configuration information for viewing or possible debugging purposes
|
||||
.TP
|
||||
\fB \-m, \-\-make\-database \fR Make a signature database from an ascii file containing data strings, with one data string per line. Additional information is provided when using this flag
|
||||
.TP
|
||||
\fB \-t, \-\-test\-database \fR Clamscan integrity test a specific database file eg: '\-t filename.ext' (do not include file path)
|
||||
.TP
|
||||
\fB \-o, \-\-output\-triggered \fR If HAM directory scanning is enabled in the script's configuration file, then output names of any third\-party signatures that triggered during the HAM directory scan
|
||||
.TP
|
||||
\fB \-w, \-\-whitelist <signature\-name> \fR Adds a signature whitelist entry in the newer ClamAV IGN2 format to 'my\-whitelist.ign2' in order to temporarily resolve a false\-positive issue with a specific third\-party signature. Script added whitelist entries will automatically be removed if the original signature is either modified or removed from the third\-party signature database
|
||||
.TP
|
||||
\fB \-\-check\-clamav \fR If ClamD status check is enabled and the socket path is correctly specifiedthen test to see if clamd is running or not
|
||||
.TP
|
||||
\fB \-\-upgrade \fR Upgrades this script and master.conf to the latest available version
|
||||
.TP
|
||||
\fB \-\-install\-all \fR Install and generate the cron, logroate and man files, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-cron \fR Install and generate the cron file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-logrotate \fR Install and generate the logrotate file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-man \fR Install and generate the man file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-remove\-script \fR Remove the clamav\-unofficial\-sigs script and all of its associated files and databases from the system
|
||||
.TP
|
||||
.SH SEE ALSO
|
||||
.BR clamd (8),
|
||||
.BR clamscan (1)
|
||||
.SH COPYRIGHT
|
||||
Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com
|
||||
.TP
|
||||
You are free to use, modify and distribute, however you may not remove this notice.
|
||||
.SH LICENSE
|
||||
BSD (Berkeley Software Distribution)
|
||||
.SH BUGS
|
||||
Report bugs to \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP
|
||||
.SH AUTHOR
|
||||
Adrian Jon Kriel :: admin@extremeshok.com
|
||||
Originially based on Script provide by Bill Landry
|
||||
|
||||
|
@ -1,75 +0,0 @@
|
||||
|
||||
.\" Manual page for eXtremeSHOK.com ClamAV Unofficial Signature Updater
|
||||
.TH clamav-unofficial-sigs 8 "07 May 2016" "Version: 5.3.0" "SCRIPT COMMANDS"
|
||||
.SH NAME
|
||||
clamav-unofficial-sigs \- Download, test, and install third-party ClamAV signature databases.
|
||||
.SH SYNOPSIS
|
||||
.B clamav-unofficial-sigs
|
||||
.RI [ options ]
|
||||
.SH DESCRIPTION
|
||||
\fBclamav-unofficial-sigs\fP provides a simple way to download, test, and update third-party signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine, Securiteinfo, MalwarePatrol, Yara-Rules Project, etc. It will also generate and install cron, logrotate, and man files.
|
||||
.SH UPDATES
|
||||
Script updates can be found at: \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP
|
||||
.SH OPTIONS
|
||||
This script follows the standard GNU command line syntax.
|
||||
.LP
|
||||
\fB Usage: clamav\-unofficial\-sigs.sh \fR [OPTION] [PATH|FILE]
|
||||
.TP
|
||||
\fB \-c, \-\-config \fR Use a specific configuration file or directory eg: '\-c /your/dir' or ' \-c /your/file.name' Note: If a directory is specified the directory must contain atleast: master.conf, os.conf or user.conf Default Directory: configgentoo
|
||||
.TP
|
||||
\fB \-F, \-\-force \fR Force all databases to be downloaded, could cause ip to be blocked
|
||||
.TP
|
||||
\fB \-h, \-\-help \fR Display this script's help and usage information
|
||||
.TP
|
||||
\fB \-V, \-\-version \fR Output script version and date information
|
||||
.TP
|
||||
\fB \-v, \-\-verbose \fR Be verbose, enabled when not run under cron
|
||||
.TP
|
||||
\fB \-s, \-\-silence \fR Only output error messages, enabled when run under cron
|
||||
.TP
|
||||
\fB \-d, \-\-decode\-sig \fR Decode a third\-party signature either by signature name (eg: Sanesecurity.Junk.15248) or hexadecimal string. This flag will 'NOT' decode image signatures
|
||||
.TP
|
||||
\fB \-e, \-\-encode\-string \fR Hexadecimal encode an entire input string that can be used in any '*.ndb' signature database file
|
||||
.TP
|
||||
\fB \-f, \-\-encode\-formatted \fR Hexadecimal encode a formatted input string containing signature spacing fields '{}, (), *', without encoding the spacing fields, so that the encoded signature can be used in any '*.ndb' signature database file
|
||||
.TP
|
||||
\fB \-g, \-\-gpg\-verify \fR GPG verify a specific Sanesecurity database file eg: '\-g filename.ext' (do not include file path)
|
||||
.TP
|
||||
\fB \-i, \-\-information \fR Output system and configuration information for viewing or possible debugging purposes
|
||||
.TP
|
||||
\fB \-m, \-\-make\-database \fR Make a signature database from an ascii file containing data strings, with one data string per line. Additional information is provided when using this flag
|
||||
.TP
|
||||
\fB \-t, \-\-test\-database \fR Clamscan integrity test a specific database file eg: '\-s filename.ext' (do not include file path)
|
||||
.TP
|
||||
\fB \-o, \-\-output\-triggered \fR If HAM directory scanning is enabled in the script's configuration file, then output names of any third\-party signatures that triggered during the HAM directory scan
|
||||
.TP
|
||||
\fB \-w, \-\-whitelist \fR Adds a signature whitelist entry in the newer ClamAV IGN2 format to 'my\-whitelist.ign2' in order to temporarily resolve a false\-positive issue with a specific third\-party signature. Script added whitelist entries will automatically be removed if the original signature is either modified or removed from the third\-party signature database
|
||||
.TP
|
||||
\fB \-\-check\-clamav \fR If ClamD status check is enabled and the socket path is correctly specifiedthen test to see if clamd is running or not
|
||||
.TP
|
||||
\fB \-\-install\-all \fR Install and generate the cron, logroate and man files, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-cron \fR Install and generate the cron file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-logrotate \fR Install and generate the logrotate file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-install\-man \fR Install and generate the man file, autodetects the values based on your config files
|
||||
.TP
|
||||
\fB \-\-remove\-script \fR Remove the clamav\-unofficial\-sigs script and all of its associated files and databases from the system
|
||||
.TP
|
||||
.SH SEE ALSO
|
||||
.BR clamd (8),
|
||||
.BR clamscan (1)
|
||||
.SH COPYRIGHT
|
||||
Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com
|
||||
.TP
|
||||
You are free to use, modify and distribute, however you may not remove this notice.
|
||||
.SH LICENSE
|
||||
BSD (Berkeley Software Distribution)
|
||||
.SH BUGS
|
||||
Report bugs to \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP
|
||||
.SH AUTHOR
|
||||
Adrian Jon Kriel :: admin@extremeshok.com
|
||||
Originially based on Script provide by Bill Landry
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
#
|
||||
# Run clamav-unofficial-sigs hourly.
|
||||
#
|
||||
# This file should be copied to /etc/cron.d rather than, say,
|
||||
# /etc/cron.hourly because it needs to run as the clamav user (to
|
||||
# alter the databases), but the default settings for that user in
|
||||
# Gentoo are insufficient (see bug 694054).
|
||||
#
|
||||
# In particular, the clamav user needs a Bash shell and a home
|
||||
# directory since clamav-unofficial-sigs is written in Bash and
|
||||
# because otherwise cron will complain about trying to chdir to a
|
||||
# nonexistent home directory. When run out of /etc/cron.d, we can set
|
||||
# HOME and SHELL to appropriate values, unlike with scripts in
|
||||
# /etc/cron.hourly.
|
||||
#
|
||||
HOME=/var/lib/clamav-unofficial-sigs
|
||||
SHELL=/bin/bash
|
||||
|
||||
01 * * * * clamav /usr/bin/clamav-unofficial-sigs.sh
|
@ -1,4 +0,0 @@
|
||||
/var/log/clamav-unofficial-sigs/clamav-unofficial-sigs.log {
|
||||
create 0640 clamav clamav
|
||||
missingok
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
#
|
||||
# Service file corresponding to clamav-unofficial-sigs.timer.
|
||||
# Upstream provides a similar file, but with the wrong path
|
||||
# and running as root, so it's just less of a headache to
|
||||
# include our own.
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=ClamAV unofficial signature update service
|
||||
Documentation=man:clamav-unofficial-sigs(8)
|
||||
|
||||
[Service]
|
||||
ExecStart=bash /usr/bin/clamav-unofficial-sigs.sh
|
||||
User=clamav
|
||||
WorkingDirectory=/var/lib/clamav-unofficial-sigs
|
@ -1,12 +0,0 @@
|
||||
#
|
||||
# Run clamav-unofficial-sigs.service every hour, at 45 minutes past the hour.
|
||||
# We do not include an [Install] section because this package does not
|
||||
# technically depend on clamav to function.
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=ClamAV unofficial signature update timer
|
||||
Documentation=man:clamav-unofficial-sigs(8)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:45:00
|
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mjo@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="cron">
|
||||
Install an hourly cron job to /etc/cron.d that runs the
|
||||
updates as the clamav user (instead of root), with an
|
||||
appropriate home directory and shell. The same cron job
|
||||
is installed as documentation when this flag is disabled.
|
||||
</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">unofficial-sigs</remote-id>
|
||||
<remote-id type="github">extremeshok/clamav-unofficial-sigs</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
DIST brotli-1.0.6.tar.gz 23827656 BLAKE2B 8d31eb1c4119de44702f2239fba9db72f1ae81801d06e51716432ff2f8aa78259c52cbd57b8fcd005c1bc14ada81b6e47a35c5d3864bb10bb02d113e30bd321b SHA512 b9847375471de3ae815ef4bb45a29653c343fad0a891a79d5132fcdee34c85caafd82289c8b413c3ef609049f2e8c4af9f9abd1736a2408ba44544c5fefc0010
|
||||
DIST brotli-1.0.7.tar.gz 23827908 BLAKE2B b9fc554cd23c8387b648638b6f9bb2d29fa87035856d03cf284662f9281984f3bf8e40109e61155ece18673f4391bc0fff704f8ab800a2041d3ce1824478d2ae SHA512 a82362aa36d2f2094bca0b2808d9de0d57291fb3a4c29d7c0ca0a37e73087ec5ac4df299c8c363e61106fccf2fe7f58b5cf76eb97729e2696058ef43b1d3930a
|
||||
EBUILD brotli-1.0.6-r1.ebuild 1698 BLAKE2B 416dec03b5bbfc3cd9ca5e59bac6cb2b1a82378e62039a05a2565682ec9062b9a98a801539570e0d498e3e11f4fae07399435d979638f76a79fab28275fa4aaa SHA512 abcdf19b03b19f2d4ace91e704253e2e2158362acaeccb3d9b8c29c8c0ce9c2dfcdb2cacd106f58b6fd94197180dbb38bd2b1d511a8636ece77d789f9284ae38
|
||||
EBUILD brotli-1.0.7.ebuild 1658 BLAKE2B 6dc55824f9e0027efe4976986c2fd63b0f550056c61da297f87c42809b2a689a1c7873e1a87899ebea8d317bdf19ad49dc25593554a9a3f8dded77ebab55c240 SHA512 7b3219dbaeed40fe1b072c86c15e3e0656b9e3bcabee844e58a0fea5c91313e611b4c92232e71fcbb18060f046fb122f192f905955cdd9fa86015dd48149d79c
|
||||
EBUILD brotli-9999.ebuild 1666 BLAKE2B 10cd113045ca245c5374226b82e9382aa822407704e3d03981bf945a41cfcb954a2afc765d5bcb8c70cded0accf597875840be3aafc92d9c8bb1b470cd690e99 SHA512 8eed4a52e1088a257f4c50e34f5e397988f1fd38c53e77a6db40eeb3cfa735b2263e68dc34c65a3941747e649becd8c2bcb2e48e9b4b15d0492934ad4f67a79f
|
||||
EBUILD brotli-1.0.6-r1.ebuild 1688 BLAKE2B a5ba00d724c413a364167e80954354396c82697704bb7515af35ce1d0f39a06e19a676009483dcef65a6065eeb44bc681aaebaabdf808e07c40d780ac654dcca SHA512 4888fa16c494b1b27698268fd6c01a0736c1feb9b374fe5ab8f12321881205b5e3d78a2e8c24e9f438b9a51d5eadc1126720f79e7114785465f39cbd5f777b85
|
||||
EBUILD brotli-1.0.7.ebuild 1648 BLAKE2B bda87fb539252d2ef7221f46bb380cc4c55b0eae55c7b6ef375ab077b96be7d0e3625ebe9c5eae786119f374be5a11a29fc81746cd521b7ef2ee93190b8e5cab SHA512 24c43e0c1c80f200c82fe5a780388846a56e4ec6121d057f29c21a161e1d0d014ca2a95656ee34adc8d91f96fdc4c601b5de07a54661350e2f996b40bbddec3b
|
||||
EBUILD brotli-9999.ebuild 1656 BLAKE2B f9f9e46750995bc450b3be52e71571bc76d4d5b02157f1cc50f028c8c68659583cd84e0cdaeef395a9d84e0cd1e474e728ccab522a6a196b3d4cc98ab59c39e0 SHA512 0f54e7839f789f8b89a6fc66a1fe8e4dd845b2e8393ed8990a79d3fd67281ef121fbece382d8f21d4a629404625741763c9cfcb008f55b5a3eccb1bf0914e7cd
|
||||
MISC metadata.xml 686 BLAKE2B 192c9019f79840dfcc409e8244eac99f3bd793ea91bb8f5f26fcf1a9dbb6ba34273ea2221e0e18322dccec1674929cdf1bfd7ca19628a3e69fc4bdd6f60ba932 SHA512 4057d0834db13baf716500e6d8fa80b9d6ee854f7e9620462ed1162d2bc6ff88d2bb2f81902c6730df337afc38c8eb378fa5b85debd2a5a57597c0faf58132dc
|
||||
|
@ -1,8 +1,6 @@
|
||||
AUX engrampa-1.22.3-gcc-10-fno-common.patch 526 BLAKE2B 38fe4aa06e6a0d2a5a3a72384f94aabcffc08f8e2b62d29b70acc5ca42bb9a36b9b854445d5d51424feebe7b9d47a17f5efe7781af62d6610e12059f66fc2db0 SHA512 dc35417a64de6898705b638d19f2a73b33c32cb7e18c89c77e51a0e6bece8a971a9301b2aeac0ac8acb83d3cdba73f0ac38e1bb369669125b035fb86b9b4d0e3
|
||||
DIST engrampa-1.22.1.tar.xz 1363488 BLAKE2B 0f71e94af50443f9f562b0eed461ca1160fab0a5a3cd02c845fac09ee2466cb8634a458a6a4488ff5ac6674b0f525eccf754b8b1cc7e3f1729d4eb6ac224e025 SHA512 111eeb470555ae8edb7754159bb2e70b03cbbc7b1c9d61c253d9d67e50d84ff0e0654e16547883c39aeeb223e8ba58201d45b50819784fc6cf7a21f0cf176c70
|
||||
DIST engrampa-1.22.3.tar.xz 1407412 BLAKE2B d6963da4c18137600c26cff01b2a42d2aaf9a8a435779593b7712e6f7ff920fd25b5fa462edd3d321d63f131b3e4a4486a6f795f2392f6679ae3ef9b343fe8e1 SHA512 fd110b2bc188207645985a6f788b8e618cb4910a275950dfb17c0bcc42eff8765a4c7a36760dec2636485685a7a2f4adefb8e2c83537d1b3a819582e3878c9db
|
||||
DIST engrampa-1.24.0.tar.xz 1678920 BLAKE2B c40ba6a77d667f25853f6ae8cef51a54b32402e9446d6712bcfe8b6cfbddcc39e076604fad6ead1717bcedc52716be028ac9bf912c5762fa204e3ee5d6be10bb SHA512 b6996e224ef52d8fd7102e4498193faa62056e8c22aa260ab5c6361533744f78755d500536ec0e03fd8b42b71da56d3f58d9d760809d20b572bee02fdee07cce
|
||||
EBUILD engrampa-1.22.1-r1.ebuild 1698 BLAKE2B 9968621d6728b1cd75b97050344b39e272801cb3cca9a89c1272d4675e7f864de2e032d80fa63b9aff50d4108a850190dbf5db356a7ef33c0873e82b3382fea9 SHA512 ae5c3d1af629c3e2bd30dbd7f8aac7dfbbd98e2c5127103f4f5a2a38eba1f76682e8dc4764e5920733e5b37d61ac8fdaa160243df8d74489aedd07940672dce2
|
||||
EBUILD engrampa-1.22.3-r1.ebuild 1711 BLAKE2B 1cf4d43d8d06755c6e4e4e518d7369833fbfd88736be60967efcda9ae4af0f7a8814a91db7d5e2b86ddce1b08ad1bbd8a1f409b3b8178024f1bc39d5d5cb62e5 SHA512 08e05a965aca5193c0973d46207f578499a19c818f7577913a2dc28f017405d0caedba8e12493176104c1147e74b5ef46eb6735020c4a8faf389ad82d4ed453d
|
||||
EBUILD engrampa-1.22.3-r1.ebuild 1709 BLAKE2B 0f4cb2a3697db9312e27c0c56948ac802b64cfe1d0849b513a2a3701b1a94997877020b44cfebb13b8196357089273dd8c414e618868c8d91ea8b627a54bda16 SHA512 0cc3737e8bc631c78a75122b6e3cdcdaf67c94e2b8a11eaef8b9a22a5c4619ddb2e260a7585c6b76ec4b08da74b09b7511d33a46c2ced7530b88b6d89efaab42
|
||||
EBUILD engrampa-1.24.0.ebuild 1706 BLAKE2B e6504459167554f6a7b613ef48a2f5fc67962818205a8830daedf5af46b5c18666a307fedd74b490017ca61d38a990be0bb8e2d90e8978e8e6dd6913654fc08c SHA512 f4d709b14061235b1c9cf51f446ca71021849f1ca79bfd392b26419d334465c514abe618e5cc720875588c4205eb82c773116a5aba44354aaf37390d388b9c65
|
||||
MISC metadata.xml 590 BLAKE2B a67378188ec008cbb9e6790dc02a042f0ae46e3f5c1bd2a277923bf3a05682523f884e1d9858f6406430cd54a6c33754a5dd695acb360bc99f7939bd3160e931 SHA512 9c3b2fbe1667d3408600a10b63be3141136acabfe6ed53a637ff5fbeff50a44ca7f0463b48597dc1473eb29ae31e7f222e11cc68432fdc12f34c7bca38bb89d5
|
||||
|
@ -1,75 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MATE_LA_PUNT="yes"
|
||||
|
||||
inherit mate readme.gentoo-r1
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Engrampa archive manager for MATE"
|
||||
LICENSE="FDL-1.1+ GPL-2+ LGPL-2+"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="caja magic packagekit"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.50:2
|
||||
>=dev-libs/json-glib-0.14
|
||||
virtual/libintl
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-3.22:3[X]
|
||||
x11-libs/pango
|
||||
caja? ( >=mate-base/caja-1.17.1 )
|
||||
magic? ( sys-apps/file )
|
||||
packagekit? ( app-admin/packagekit-base )
|
||||
!!app-arch/mate-file-archiver"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/yelp-tools
|
||||
dev-util/glib-utils
|
||||
>=dev-util/intltool-0.50.1
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="
|
||||
${PN} is a frontend for several archiving utilities. If you want
|
||||
support for a particular archive format,install the relevant package:
|
||||
|
||||
7-zip : emerge app-arch/p7zip
|
||||
ace : emerge app-arch/unace
|
||||
arj : emerge app-arch/arj
|
||||
cpio : emerge app-arch/cpio
|
||||
deb : emerge app-arch/dpkg
|
||||
iso : emerge app-cdr/cdrtools
|
||||
jar,zip : emerge app-arch/zip or emerge app-arch/unzip
|
||||
lha : emerge app-arch/lha
|
||||
lzma : emerge app-arch/xz-utils
|
||||
lzop : emerge app-arch/lzop
|
||||
rar : emerge app-arch/unrar
|
||||
rpm : emerge app-arch/rpm
|
||||
unstuff : emerge app-arch/stuffit
|
||||
zoo : emerge app-arch/zoo"
|
||||
|
||||
src_configure() {
|
||||
mate_src_configure \
|
||||
--disable-run-in-place \
|
||||
$(use_enable caja caja-actions) \
|
||||
$(use_enable magic) \
|
||||
$(use_enable packagekit)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mate_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
mate_pkg_postinst
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,6 +1,3 @@
|
||||
DIST unrpa-1.4.1.tar.gz 14367 BLAKE2B 91e29a4867f8ae9901e5e06663cb8fb8cd1567e7efa4491d54d16aaa6bdcad4ec8314082b4dfff45a99727453b8f19f54df0f156a2194a0eaec35acfba4e6e01 SHA512 9b058adda9a39178950df4c39af40726cdca410f0fca699d0dec1bd5d7046c75c8811c8914c0c8756c29988b6362d3b4ad3756aa77f238eafb13d4414d3266cc
|
||||
DIST unrpa-1.4.2.tar.gz 14458 BLAKE2B eb3cf0a0501de06d264047e063805c45aca95a8fb0273ebae4fcefe4e7ab975db6f89123b60cfdc43063e38cfb974c8c8b950cb718ecd238bc4f7146832b2b29 SHA512 2608f4ec11540de1b14290ce1aaad6f06e8111a55b5c6a38c0c9e4d7228c04ccef480425f812a7cbc3913c0ed6865d0b63c8aa0d5ec9131495eab40bbdfcdcc5
|
||||
EBUILD unrpa-1.4.1.ebuild 635 BLAKE2B 33ee08b1dc4f669ce6bc553b006a0023e6b1906005a3fcb3c80f6cf6b6976770483b5ab8f2aaed024230df6f7a74a92ae68815676893f993df0176c8faf13ece SHA512 f902a1168f7043abebd81b68089bc32decfe21f624f09fcd07367360f65319d0f225fa6d05002307dfc4db195c6b3c9d5dca81da3b956611ce3531bf38d22ae2
|
||||
EBUILD unrpa-1.4.2.ebuild 649 BLAKE2B 41f929559103ea845f9d506b2d051633435ff30420c00b4c494df94a9c5e4fb82d9703a73f5fb820d01f4cdf30b3729b713c4c9a7af70ea4b6a28158a719f0de SHA512 7c14f5bb9a71dcf41307b368ee05a9ca8fe1d8c85ba16552ff5ee7eecce8704537c07b3213f78365c0f44b127d9a8ac4c89ab8ddb3652ded2890492b6244b1a3
|
||||
EBUILD unrpa-9999.ebuild 649 BLAKE2B 41f929559103ea845f9d506b2d051633435ff30420c00b4c494df94a9c5e4fb82d9703a73f5fb820d01f4cdf30b3729b713c4c9a7af70ea4b6a28158a719f0de SHA512 7c14f5bb9a71dcf41307b368ee05a9ca8fe1d8c85ba16552ff5ee7eecce8704537c07b3213f78365c0f44b127d9a8ac4c89ab8ddb3652ded2890492b6244b1a3
|
||||
DIST unrpa-2.3.0.tar.gz 23325 BLAKE2B 602b2cee0658ddc391918548fc69719db71fe219484d26c61478bb350ffca450c01ce69f61015dca062aac25fd3ff1693d74280f4c16f31986d9b4e21c9535ee SHA512 4d9bf228c22b26a49cc0eb1fa96af78e6b240626c69ed79ef8729b8a47eb425ec9f43c4a88e3d797633e79fc05df284f039c18cc5946922ce46b858ce4dfc808
|
||||
EBUILD unrpa-2.3.0.ebuild 389 BLAKE2B 7284d2ad44709b886ebd498d053fda69c7495b0f929f6ee1b1b7c6b17b54d692e7a8efaa0490917c65e9dc19ddec2b05bf75cc8d3da37a24938e89ef4eeac2ec SHA512 35c835b81813b959dd03d681a81f85d7446cdbe35a9890b880e3f7d1f43dec5ba1357d387c427d7a3360a6a7db23f072ed0ced5311df0251cf349b888532ec34
|
||||
MISC metadata.xml 489 BLAKE2B 38e48e25c0ca75341f8192b2511ab974f435f919c38ed09923665fdc9894aa5faaa19aa84c1421615dbf45cb61fc386e3f6663065eb0a615c01f2ea87fb3e61b SHA512 801ef857b1af21d77179f7ab9c0a00060178146509a43cd8d7e18ee89191f435bcf080e1a14367d38a08242eb387eb5cb78afedbfa46274b45bb9a88d1081c29
|
||||
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/Lattyware/unrpa.git"
|
||||
else
|
||||
SRC_URI="https://github.com/Lattyware/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ren'Py's RPA data file extractor"
|
||||
HOMEPAGE="https://github.com/Lattyware/unrpa"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
dodoc README
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/Lattyware/unrpa.git"
|
||||
else
|
||||
SRC_URI="https://github.com/Lattyware/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ren'Py's RPA data file extractor"
|
||||
HOMEPAGE="https://github.com/Lattyware/unrpa"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
python_doscript "${PN}"
|
||||
dodoc README
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI="https://github.com/Lattyware/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
DESCRIPTION="Ren'Py's RPA data file extractor"
|
||||
HOMEPAGE="https://github.com/Lattyware/unrpa"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/Lattyware/unrpa.git"
|
||||
else
|
||||
SRC_URI="https://github.com/Lattyware/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ren'Py's RPA data file extractor"
|
||||
HOMEPAGE="https://github.com/Lattyware/unrpa"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
python_doscript "${PN}"
|
||||
dodoc README
|
||||
}
|
Binary file not shown.
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_6 python3_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Secure backup system using gnupg to encrypt data"
|
||||
HOMEPAGE="http://www.nongnu.org/duplicity/"
|
||||
SRC_URI="https://code.launchpad.net/${PN}/$(ver_cut 1-2)-series/$(ver_cut 1-3)/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE="s3 test"
|
||||
|
||||
CDEPEND="
|
||||
net-libs/librsync
|
||||
app-crypt/gnupg
|
||||
dev-python/fasteners[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
app-arch/par2cmdline
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
RDEPEND="${CDEPEND}
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/future[${PYTHON_USEDEP}]
|
||||
s3? ( dev-python/boto[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-docs-cmd.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Duplicity has many optional dependencies to support various backends."
|
||||
elog "Currently it's up to you to install them as necessary."
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
--- duplicity-0.8.12.1612/setup.py 2020-05-07 12:07:21.571865871 -0400
|
||||
+++ duplicity-0.8.12.1612/setup.py 2020-05-07 12:08:29.617846122 -0400
|
||||
@@ -88,18 +88,6 @@
|
||||
u'bin/rdiffdir.1'
|
||||
]
|
||||
),
|
||||
- (u'share/doc/duplicity-%s' % version_string,
|
||||
- [
|
||||
- u'AUTHORS',
|
||||
- u'CHANGELOG',
|
||||
- u'Changelog.GNU',
|
||||
- u'COPYING',
|
||||
- u'README',
|
||||
- u'README-LOG',
|
||||
- u'README-REPO',
|
||||
- u'README-TESTING',
|
||||
- ],
|
||||
- ),
|
||||
]
|
||||
|
||||
if not os.environ.get(u'READTHEDOCS') == u'True':
|
||||
@@ -265,7 +253,6 @@
|
||||
],
|
||||
test_suite=u"testing",
|
||||
cmdclass={
|
||||
- u"build_scripts": BSCommand,
|
||||
u"install": InstallCommand,
|
||||
u"test": TestCommand,
|
||||
},
|
Binary file not shown.
Binary file not shown.
@ -1,9 +1,5 @@
|
||||
DIST pluma-1.22.0.tar.xz 3235612 BLAKE2B a0cda23a6ee73e562cb32c3f1430590042248b6a6e7cbf021103db507450b2a594506f3d8283eeed08e2ba5006ff51376eb6db5e94ea5ac9d5707b29e0efc2c4 SHA512 7c74c2ce0a89ec3813c936449d3114957e7b319433875ef567ecc508a28a1d3ddc3d0da418b2eb1278b6dc9dbaa3c75a279524f5a061b5aecb52955edcf28f51
|
||||
DIST pluma-1.22.1.tar.xz 3236724 BLAKE2B f571ccb79ffac11122dad1888a9804fdb1671f2c73b28c216e0ec593ffc4dac3fec3053b83fd1503e0c951e032f6e4c22fb4f3d6a1d23477a54e06de2659222e SHA512 0d3f07b2e8c736c9e1ad64ed5cb749db6088868e9bc27aa786cbb0c3fe72715f0fd4dd53999502a4333ec82110148b772c0dde81433d0936d2d3c2d04804026a
|
||||
DIST pluma-1.22.2.tar.xz 3262288 BLAKE2B 0a7af4318ec11aa6a01dd14ed071975b6a961747c1abda9120912244f3fd530c5c06e2fc9dad6ad23175c119e35c1380e88be4b9bc1e331485b646dee87af8e1 SHA512 a68b79713f649def15ea29e58e041d70bb6d756a356743f6e06d8dd680f7b39e8bcdd90c68cbe5c517bead7f9263d7596954bc595c3a2501edf0d0ea421c9992
|
||||
DIST pluma-1.24.0.tar.xz 3717544 BLAKE2B fd9375fd05566c11c24d5bdf55ab0d4619143127a5e48c4e91d18421f50340775d58c3e2264382aa3bbd8aad0569c559e87381a9ece07ce1592d1bc1a5315db1 SHA512 390bf2949549baa0e3dc706526217fbc1513e2f9778917710da806e58cdfb0b7a36e95ed2186442490996cf76783acd4e0f4b8f1fedacee9ba356c0d466510be
|
||||
EBUILD pluma-1.22.0.ebuild 1763 BLAKE2B 09f76235925231ec9870fbd03395360fc0b2bac151fd0eb066e3effc5756cb7279cee91eff39f2cab8d0374d6f6d77cfcefd11e73df7575e096a858d6e8421a3 SHA512 dc581d061d7bd028ba87dfa42f8eb7268e11fc23f154ffd312ce59236ab844f4afa60256b348b72365f98e05b01d309024858c2f3aed67efb6a32eb6a447e93a
|
||||
EBUILD pluma-1.22.1.ebuild 1765 BLAKE2B 97f2a1f30a065b3f558afbfbc99be24413ace4a065f18d1932ac19734a7b9d1e4a3c859fcca03e480f4cdb8b32e5b01a7234787427b1a97e8fb266e4dd102728 SHA512 b85dcb81da527d971f1238e47688556907a7312a6967b2facea11108c521b1d5618120d39eb3ad77f8eab1fad11ae6e1a3dc288912aa943f486f38144d81e8ca
|
||||
EBUILD pluma-1.22.2.ebuild 1765 BLAKE2B 97f2a1f30a065b3f558afbfbc99be24413ace4a065f18d1932ac19734a7b9d1e4a3c859fcca03e480f4cdb8b32e5b01a7234787427b1a97e8fb266e4dd102728 SHA512 b85dcb81da527d971f1238e47688556907a7312a6967b2facea11108c521b1d5618120d39eb3ad77f8eab1fad11ae6e1a3dc288912aa943f486f38144d81e8ca
|
||||
EBUILD pluma-1.24.0.ebuild 1786 BLAKE2B 595e5ec1f1ae99e70617013274875d23ec1ebc6fd8f6b0abedd9657cd5e2d7178c4a31b6c209f18759fe975efa3e21a118654de4767382d8f5abed366e6f6661 SHA512 46a968a381d9d143fb5a371d8f6ffa9c1b551cfe2f75895ab82e7aba0631edadfbb0f4d9a59b297ac9a1cf4247e0a91768e62fcd9580baaa7839129cb1d6f56c
|
||||
EBUILD pluma-1.22.2.ebuild 1763 BLAKE2B fdaa40798715c30416e583d6ce689f2c16694f5d3ea74a9da722680f44ff2f6a8cb5d037b316617a58b4758ffc70c091acf621735471312f3b2c8034f4f807a0 SHA512 9966f165a8a795a5bc0f79d9c8092a4189a21955ebe958d4e07eb24be0ef7307dc3e3da1ccb89483af7abeab63dd697767031423eef98d35006d6b43151883b7
|
||||
EBUILD pluma-1.24.0.ebuild 1782 BLAKE2B 5338be90c3f64ec38bd7deaa99a813269dba08104c5577a96560e170a3402df4de0d85b6ddddeb0f223a4390b519b90696dc2eedd019c329e30618efc52dc4a3 SHA512 026999eb91c75206fdcef88ba1b3844278b5519ac3c3b957effb23e2b7506b27ec6d0040e5018493aa4f176ac57ccad139ce18d75336b8bdefc837a47b357eec
|
||||
MISC metadata.xml 334 BLAKE2B 2d5ac79ba6879f5486724c826a89ed81cf393bc3fedbdea40764b1fb23962672e7c2a625137080a16ccd8e67a55097a4f497269f89ccd8b256490ef99e15b9cb SHA512 fe30c9986ed7086a894a0835847351d92938c424af5b7da51211a23fc197eebbce53cc205014cdd2c3bcc951a5a449c5d5726bede7991716d81fb7bbfe8a3fca
|
||||
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MATE_LA_PUNT="yes"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit mate python-single-r1 virtualx
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Pluma text editor for the MATE desktop"
|
||||
LICENSE="FDL-1.1+ GPL-2+ LGPL-2+"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+introspection spell"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Tests require gvfs sftp fs mounted and schema's installed. Disable tests.
|
||||
# https://github.com/mate-desktop/mate-text-editor/issues/33
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="dev-libs/atk
|
||||
>=dev-libs/glib-2.50:2
|
||||
>=dev-libs/libpeas-1.2.0[gtk]
|
||||
>=dev-libs/libxml2-2.5:2
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-3.22:3[introspection?]
|
||||
>=x11-libs/gtksourceview-3.0.0:3.0
|
||||
x11-libs/libICE
|
||||
x11-libs/libX11
|
||||
>=x11-libs/libSM-1.0
|
||||
x11-libs/pango
|
||||
virtual/libintl
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
|
||||
spell? (
|
||||
>=app-text/enchant-1.2:=
|
||||
>=app-text/iso-codes-0.35
|
||||
)
|
||||
!!app-editors/mate-text-editor"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
${COMMON_DEPEND}
|
||||
>=mate-base/mate-desktop-1.9[introspection?]"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
~app-text/docbook-xml-dtd-4.1.2
|
||||
app-text/rarian
|
||||
>=app-text/scrollkeeper-dtd-1:1.0
|
||||
app-text/yelp-tools
|
||||
dev-util/glib-utils
|
||||
dev-util/gtk-doc
|
||||
dev-util/gtk-doc-am
|
||||
>=dev-util/intltool-0.50.1
|
||||
>=sys-devel/libtool-2.2.6:2
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
mate_src_configure \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable spell)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# FIXME: This should be handled at eclass level.
|
||||
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
|
||||
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
GSETTINGS_SCHEMA_DIR="${S}/data" Xemake check
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MATE_LA_PUNT="yes"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit mate python-single-r1 virtualx
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Pluma text editor for the MATE desktop"
|
||||
LICENSE="FDL-1.1+ GPL-2+ LGPL-2+"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+introspection spell"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Tests require gvfs sftp fs mounted and schema's installed. Disable tests.
|
||||
# https://github.com/mate-desktop/mate-text-editor/issues/33
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="dev-libs/atk
|
||||
>=dev-libs/glib-2.50:2
|
||||
>=dev-libs/libpeas-1.2.0[gtk]
|
||||
>=dev-libs/libxml2-2.5:2
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-3.22:3[introspection?]
|
||||
>=x11-libs/gtksourceview-3.0.0:3.0
|
||||
x11-libs/libICE
|
||||
x11-libs/libX11
|
||||
>=x11-libs/libSM-1.0
|
||||
x11-libs/pango
|
||||
virtual/libintl
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
|
||||
spell? (
|
||||
>=app-text/enchant-1.6:=
|
||||
>=app-text/iso-codes-0.35
|
||||
)
|
||||
!!app-editors/mate-text-editor"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
${COMMON_DEPEND}
|
||||
>=mate-base/mate-desktop-1.9[introspection?]"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
~app-text/docbook-xml-dtd-4.1.2
|
||||
app-text/rarian
|
||||
>=app-text/scrollkeeper-dtd-1:1.0
|
||||
app-text/yelp-tools
|
||||
dev-util/glib-utils
|
||||
dev-util/gtk-doc
|
||||
dev-util/gtk-doc-am
|
||||
>=dev-util/intltool-0.50.1
|
||||
>=sys-devel/libtool-2.2.6:2
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
mate_src_configure \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable spell)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# FIXME: This should be handled at eclass level.
|
||||
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
|
||||
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
GSETTINGS_SCHEMA_DIR="${S}/data" Xemake check
|
||||
}
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
DIST q4wine-1.3.11.tar.bz2 2868845 BLAKE2B 98893b1f65bcb8b8f301d7046a650658a9537849818fddf4803471a626f24d8c812867daec1f167b1fa5cdce9f9c0c50323d715ea06c51f3d52f85904257d2b0 SHA512 95ac66632bc46b10659e1d0e5f3c68b73934a85ddcc6582abd367d28f9949ad0ca732a5596db800bbc76b40ae7cf05fd95febf6d8b44db20cf710c2c1e23288f
|
||||
DIST q4wine-1.3.12.tar.bz2 2875348 BLAKE2B 0656574542c218163a0d7bef6d09459e7816a936f1d4c2fcf3ee15416aca23f6c97895b7f2f34e9a40b64f904cad579062ab173cc93f00c543a1ae861bf3f179 SHA512 c384c5c57b3bbea9f5ba2940e990c7ff28c9f410c9abd33fe1f17973b67bdf85dad4c74809ad3a225eaea49796221ab04e2e29dd81ea8ef7015e9b7adf9ab44e
|
||||
EBUILD q4wine-1.3.11.ebuild 1186 BLAKE2B a185558ed4c5b63edeb7c1b4f64d3e757b69c7864babb85bf10ea5ea58b1b2b0f55cf16c7df650d86653852d7bc7b44c905f8520339e09a29e353a17b4111160 SHA512 448eada5f0367e444b2a8549f6a04bfbb38a4e5576173b3a447ba8fe907388be1bf8a125cbd3986c5239bd5b9718ff18ef87b482f9714cef7aec1657f3e57456
|
||||
EBUILD q4wine-1.3.12.ebuild 1186 BLAKE2B b5d77827028ad5cac653d30c2d270ee79c576ce905c5230f493da47ea29f7a1d35cd124d6947c5e400a72afddae96386dc8e608ff50f85bf1f2270ca7d40995c SHA512 72966d0b270051327c8fb9e865352774c2124a906c1993d856cc09df3d6289f00d748abd832b9a6dade069e90f407858b4d5a4a76b39c2fb21c0631e9b62b35f
|
||||
EBUILD q4wine-1.3.12.ebuild 1185 BLAKE2B ea419b45c0049adf0ccaf12b4e34f88baff13892cd86fc7028a4a4c168bfb7bbb77dfc8294b216841abd19a36c6b4476cb8fd7fd0695785276429e47ee1e2e11 SHA512 61b70ddda9bfef30e6110e6859ef8789175c3fed02633c57226be2a97b2ddc6ab2ab7cff3d045f669a58313144c016dd5388d0e69d5ec66dab7668214291fb90
|
||||
MISC metadata.xml 641 BLAKE2B af03073e86a430ccc228ba18c2dd18d4fe8d07438e5beec07f3712807a792829096cb3eeaa4e912a80c2634a1bb16ef20ddbc08684fc4fdf2b14d839cd520733 SHA512 707f77ef56bb3bcbe4bda434f1262f77c0b337a8789508e0df04d2cd791959ca7dc67b74ac81b6e248023f3da83c86bcf7f185ca689ab7b3bf346250850df8ed
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue