parent
85401e8b8c
commit
9670cf5179
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 29776 BLAKE2B 40b3009449701ca1cb45d1315094a40ab583f46ab7f82c0e3f4fa0e40f34b80b6d2825018186fcf3562c9b97ce50e116224e12b8417d85f934c9e7e9e51d1619 SHA512 a763cc9e3ad77d1b43bcbffbc9a7423f883847577bfe41c3a4bc0213954dc94d2189a4f4f24d5b1edfefd63d2c94fdbe8e47541aa791783b10a264ad843f981e
|
||||
TIMESTAMP 2022-12-03T15:09:39Z
|
||||
MANIFEST Manifest.files.gz 29787 BLAKE2B 5b117b50b5a9a8dcf70bf96bdf2f870e72b5150dd0396be1ffa823d2de71f58e4d66427fcdbf8660bdc4d2434b33b8ba6c3ad402fa6bd1805dd9c129c648a00b SHA512 3b39524d9f27537ee7289a1ffba515dbce61acab1f08ff21b58acfad8236cee2cd2301698125e583334a9c9830a4e708cbe4ea360e0009642f09280bc03fc24d
|
||||
TIMESTAMP 2022-12-09T08:39:52Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmOLZrNfFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmOS9FhfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klCnEQ//e7aQuT3KHjTNwYL+TsEaP9cZfz+BH/yiT+408lKC0IwnMii5H+YHkRs2
|
||||
RyUS++/HT8svbdJNvCks9ijZaISpK/pnNX+qNt8TxOJXLxgsSr8xYijzeXJNiP3p
|
||||
m9U5H5vZVaEXNEtR3y6mGDooH/QZDoXmH4Oss+cH/dI/Xk5IqOXUmEuGfzmvHk2A
|
||||
epoMYBktEL9XmwNQAdSwlATHG3tntmywBIwpTA3xP7D1ZFetkkn3jVvzDLJhRnUQ
|
||||
/1qSkP7LRgWa7sndIpwrMSrqecDU8TsNqXzs955TduOxwm9YzmJAobCGlbsC6A7L
|
||||
CxYrryPFSr9Cax0cd8NjBNwm9evsbD2gQ0hp+yU8NRBGArdAibqoT4Y7RLDIfFtf
|
||||
7zYCrsJrSjNefmzUuj3Eknk0ZnsJFR84b7TcMo9mBq6q1ygAmjWiRyM9cDslh2TP
|
||||
VcjsUcgXeNhKj8rQEo3rexGEhE6TaxAnXBfygiYjmyylD1BNuRlTRYlMyXxBdaaU
|
||||
fIL4Bem76iiofnADicjxYXVGb1t4yDePsVlNq2NCFYCkr9O41LVFW9IAb8FEXXIM
|
||||
xSWvwAxQbj7qSFYU3r9CGuhvOiPhIg/dxL/YZEj3sLXy25T+2oMUUG31G5voIYiL
|
||||
8kfnEBOiPKjWRhiLR1oVoKmSrxDPYZ2pcnOcTkucosx6eCM43co=
|
||||
=qwQp
|
||||
klDuyxAAjuvert98BDJKyhUGLq5tE3dpxvrUOGs2wnWdFNaf3jACP7QWdg6NbcpN
|
||||
eNGL5qFzoZDIE7NCplcziihKRlhnLIqoJerKq8q7+sOA/t4ynFcFQ6LzX0MIte6u
|
||||
SrACwl33epBA+UxDxcWNlDKigrUEKfcb2/lDOyTy4d2vWdXzlKcoklHaOoSbmZep
|
||||
r0o4aw+Tx5KcI0wHQwMvTMxuOxXtkfHrOzo9eW4wt/GMr2vL9EGvF2wVLD0RhgGz
|
||||
W9eOMzIiYTS6yqPNSXD3XiD4g0lqsXrNKjfcERkcAI/jU0xXRKFQW8w0A1Q2975E
|
||||
BdgfHMHYZvkuRlIshbUt7wnvY1hMvCA/8HJx1x9oDxIwcU3fup7QvaO0oSPnuLF4
|
||||
k/Veb+PtUga9sorUo6DlX/M84N97RF/L/H8Uaky1ADU3W1LoMnF8YQs+ajDioGrH
|
||||
oaEi2xh31IERxSc0xMhzdJEGtp72ikmhrgmQ9hIehwEPYA57FtyFrNN5P1f73MXp
|
||||
Kmahj/SIqXklTR68seEDW/oWO/EEPydBS8a4SAgyXWs3fC+0aEfWgtBEDjXGZTzj
|
||||
xgpXRK/99t/SwsQF7uqA4NniF9fPgSCQ5AFvQ12WF7FJwo+n1e3EXHvUi+Wa18ZW
|
||||
mWftMuzqczXqjKKcJKB7sNYAFT7ZzrPZllpI31dN74OOzDpuIow=
|
||||
=V9lN
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
EBUILD amanda-0.ebuild 151 BLAKE2B 7d0bda5bde34d227c754592d99bb94b066de66735d8635ee0e95e4c1928a158937eda6867c3a2d1d17550d92a7b6354143a9d0d52044abe22ba39c8e0fed9a79 SHA512 dd7d28a1c50e181632de11a36197a4d022b742c5edd54ecf7bbece0d4d1a3df536521bb4c9e75012b3a4d95673d81babac3e242aa2383fd263152fd299434db7
|
||||
MISC metadata.xml 693 BLAKE2B c3a4b27b41d15bdeb6140ab6a7107b3831d40dc43246edb4ba5d57317d588c7946d28a3ad28711a39b79af07165388c2170c0a2b0f1637c712d48a544720a15d SHA512 8954d7b391f987c32d467c11d23a3686c5472f769405e5b16b45800895d3e2675a0db1c7a9e604d8520c57638ccc05ef6d72ddf8f1df87dae68168a3ebbee4ce
|
||||
MISC metadata.xml 568 BLAKE2B 27da958a42770d386d7204ee1a18b189210253e4ca7bbf150efc7f947d089bf273fa1536ef3fa7525a94c753cac43cc784f5989dc348d9a9363e38e508d495e8 SHA512 ec050ac6eafed72aff2323a015cc5a40011c7803650f26907b2787a3a53fd3943a126d7f70ac1f673dff89bbc088968fd7ae92105625abb7058d159bd9cdabc3
|
||||
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
EBUILD amanda-0.ebuild 231 BLAKE2B b4c12a48da158fb0e2e739525d4e11bc7ee17d166a76c984231cbaf2fb1483fd19033c15f4e5b6da8bc7c9f261bd7a5c493a3894d41c694b72b6e2f606d77554 SHA512 a335b75236e6471d744e6d853bd4303217f81c24a1420058bfd289c51ae2b1d1824e69f60b91cad17f897b3f0bf2186d58c720c9cc07f0d1dc303adce52931ba
|
||||
MISC metadata.xml 693 BLAKE2B c3a4b27b41d15bdeb6140ab6a7107b3831d40dc43246edb4ba5d57317d588c7946d28a3ad28711a39b79af07165388c2170c0a2b0f1637c712d48a544720a15d SHA512 8954d7b391f987c32d467c11d23a3686c5472f769405e5b16b45800895d3e2675a0db1c7a9e604d8520c57638ccc05ef6d72ddf8f1df87dae68168a3ebbee4ce
|
||||
MISC metadata.xml 568 BLAKE2B 27da958a42770d386d7204ee1a18b189210253e4ca7bbf150efc7f947d089bf273fa1536ef3fa7525a94c753cac43cc784f5989dc348d9a9363e38e508d495e8 SHA512 ec050ac6eafed72aff2323a015cc5a40011c7803650f26907b2787a3a53fd3943a126d7f70ac1f673dff89bbc088968fd7ae92105625abb7058d159bd9cdabc3
|
||||
|
Binary file not shown.
@ -1,4 +1,2 @@
|
||||
DIST at-spi2-atk-2.38.0.tar.xz 97464 BLAKE2B c5a62bd157ac6dcbf19495eb8f92bd6346651b8df64e15acf4d25c1ab35790f154bead1e012714da36c700e58e164527755137a33812f3a1844aa34f0293ebf5 SHA512 2f40ecbc55b0fbaa57ade952a75583bc8fbfde234cce9248489e9ae06e0597d98c2f4c77d8279758dec29da97e06cde5708d30a1238d91bebd023b2320f38528
|
||||
EBUILD at-spi2-atk-2.38.0.ebuild 960 BLAKE2B b5dca22d3494e21559877b0d10e06d5611b017dd23c5faaa40f0a76adf737f1f8d46d99268d308172c5baef843b9f4e89bb0913a5a6a1179d08790b74d86c784 SHA512 36dbaa6aa77bd69867d31a756596015d0536a1e817d222809b257733803150d343f710a69df2aa9385840d463d82af8cd959b082a389b330dfe2194ca8838a14
|
||||
EBUILD at-spi2-atk-2.46.0.ebuild 476 BLAKE2B 76f4c3ecd0c5b6f817c40c4ad3079d1e194872a17012e247ee51eb021ab6c3cd5a09eeb793fbe2915c0eddfe665e687b5aff595308abc51e1087709a1a93aa11 SHA512 2857283202b6b146fcf2c686e11b45777bdaa945366748068235e12303e08e9d0eba3dd3e1bc7a74368da942b3d5ae8c26d8065a5525f7a65c409f89697d9605
|
||||
MISC metadata.xml 686 BLAKE2B ca44ad61b3381eacbda034c60a5bd9e7d215e4b7d792f283b61bb82e419a4d31c3c2a17a1842ea811fd472074539e90382ad1ad5060d72d3146aef66f2c3fede SHA512 20973a48f912dac88635c6df92f3237c0f800481b08014457e1876fb86670968535604127af85ca2d9fd729f1f48da2be664ab49f5520c10cadd4da06bb0db60
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit gnome.org meson-multilib virtualx xdg
|
||||
|
||||
DESCRIPTION="Gtk module for bridging AT-SPI to Atk"
|
||||
HOMEPAGE="https://wiki.gnome.org/Accessibility"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-apps/dbus-1.5[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/atk-2.36.0[${MULTILIB_USEDEP}]
|
||||
>=app-accessibility/at-spi2-core-2.33.2[${MULTILIB_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
virtual/pkgconfig
|
||||
test? ( >=dev-libs/libxml2-2.9.1 )
|
||||
"
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_use test tests)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
virtx dbus-run-session meson test -C "${BUILD_DIR}"
|
||||
}
|
@ -1,6 +1,3 @@
|
||||
AUX at-spi2-core-2.0.2-disable-teamspaces-test.patch 302 BLAKE2B 4165c68b7e8d9835273a55f6bd7a05435a4b3982399871563da7ed1b37444377718a4e31766529dfdd320bf9e2cfb89fc9aad98b7e757c633cfbc1dfaf61487e SHA512 866a2e372999491a74aa3bd230e666151b8fbf74554f70b7ff01891c62a6b2e87459107d885340076c049ebba656e399cb13ea6cb93af88552a328e17b4f8753
|
||||
DIST at-spi2-core-2.44.1.tar.xz 209780 BLAKE2B e76f0b0c478564181db774633dfc9613bdfa6c74c5c52878d877723e37605b7b7169fee45a9025b331e84bf5af8132eed50b388db9ac1aee0fec7776a633628a SHA512 8d85df75f886c4a19d829d14e5a9412b607b9cbe2d1b7ecb95b4082602f0624e90747fe955f96d378c3a52bc0e732074b97008bb34e6acc2722c7056b2c0504e
|
||||
DIST at-spi2-core-2.46.0.tar.xz 540600 BLAKE2B e3ed9915c39a9f71b64a9753c7f91208d15289fe09a9505b4766df7fa04c3e6e5cdc7b3702315eabbdf70f9fc08b4cca4546353485328ab101e2950a672885d6 SHA512 633af2c02fab3b8cb02e37f929ce80dd5ce28ca5641046ef5e25cb29299530b90028e6c6f318a0c098a4270bed3eab48fb55d6967a76bfadd2520f49de47c770
|
||||
EBUILD at-spi2-core-2.44.1.ebuild 1466 BLAKE2B 572e617a22ab16d1cfb42fbab8c318840174b8bea5e05d02fc88b7ddedb48757b587a3414cb772960b20212350931d6f9272933fb439e4cc6ea2ff6bcf7ab358 SHA512 2740ff17261253dd6a0ab6ae5e8f1aa9bdba5ebd4cf28808ed9bc055f8dd520e21094889773c8d3990a623a3344036b661b78bd772b3a93e581411ee845e37c6
|
||||
EBUILD at-spi2-core-2.46.0.ebuild 1465 BLAKE2B f80766774966d17a0118d0b3e5f843648abd1f2c17c3768a1e30c0f5ec24792fb85cbec5e34d6c9e375f69c59b4567c6163850266472e77e9f79e602eb90b236 SHA512 1cabedef0fc8bd01dff37edd018f9aff71857cd206d487a0b36d2e4442144ad95a0685cbfc5711cef20579b40e0c14b860b87a4fe33207024745ac4e49da98b8
|
||||
MISC metadata.xml 353 BLAKE2B a11426ebcc6d7d5d3b6af03001b0da28239ca8374757211ed13e13b2d23f0580a4bbd8a7bdc2f6db655dbff2f4dba8288f45385f628e8b95fb3d5f8ad74fce3b SHA512 ccd21495d004a42ffeb05aeac3667f198b2c21b10c7df7ce7cded2593c668be08c5c5dc3315f52dbda423a3236be6d1ad9a4769f9d753760d5e84a06ffb62281
|
||||
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit gnome.org meson-multilib systemd virtualx xdg
|
||||
|
||||
DESCRIPTION="D-Bus accessibility specifications and registration daemon"
|
||||
HOMEPAGE="https://wiki.gnome.org/Accessibility https://gitlab.gnome.org/GNOME/at-spi2-core"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="2"
|
||||
IUSE="X gtk-doc +introspection"
|
||||
REQUIRED_USE="gtk-doc? ( X )"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-apps/dbus-1.5[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/glib-2.67.4:2[${MULTILIB_USEDEP}]
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54.0:= )
|
||||
X? (
|
||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXtst[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/glib-utils
|
||||
gtk-doc? (
|
||||
>=dev-util/gtk-doc-1.25
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
)
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# disable teamspaces test since that requires Novell.ICEDesktop.Daemon
|
||||
"${FILESDIR}/${PN}-2.0.2-disable-teamspaces-test.patch"
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Dsystemd_user_dir="$(systemd_get_userunitdir)"
|
||||
$(meson_native_use_bool gtk-doc docs)
|
||||
-Dintrospection=$(multilib_native_usex introspection)
|
||||
-Dx11=$(usex X)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
virtx dbus-run-session meson test -C "${BUILD_DIR}"
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
diff --git a/dbind/dbtest.c b/dbind/dbtest.c
|
||||
index e8bbb63..9843c3d 100644
|
||||
--- a/dbind/dbtest.c
|
||||
+++ b/dbind/dbtest.c
|
||||
@@ -417,7 +417,7 @@ int main (int argc, char **argv)
|
||||
|
||||
test_helpers ();
|
||||
test_marshalling ();
|
||||
- test_teamspaces (bus);
|
||||
+ /* test_teamspaces (bus); */
|
||||
|
||||
return 0;
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
DIST orca-42.3.tar.xz 3707048 BLAKE2B b1a03cee97ba2ad17e32b863effba46974f86e5cbdcea72235085e369189e8e92cba8b83931fd83a7b859edfc8da9236f462e250c468ad1533768479eb25aad0 SHA512 59d9d61af2e385d8e356f825fc1733d73d136f89a3a06c352eaf1e7b05cd6ebf5bd13282afb478adb4ea7981398db0138324c3e275eb372b99ba648d9fafeab6
|
||||
DIST orca-43.0.tar.xz 3758480 BLAKE2B 05c31777c1c88452e165bd7fb6fe75fe727149f5337828b5f4e7679430ed5065a03de7074536c4433bedd81c3090c72e02a775db46f4673d6e3264a57732ad7a SHA512 20248e6065c1daa9c3d6ba37515bab60a3ceb14065b862d6d0610a7659bddc04f49a1cda7850646b45bb0afb5c2a89f1894de96f505831b11b77d332adb747d3
|
||||
EBUILD orca-42.3.ebuild 1562 BLAKE2B 23c0907b11da9aca993aed45ea94f9bed04553d421fcf76bd241d582f3189943edb8d7e9dd7d09ce158573b06bd71a231126e854cab047a31a2323a52da7d484 SHA512 9ce417d9e0175bf2dd5790a85bfdc6feec6a00b919b18c6dc9ea28d4b899860cc41e8e949f1a2d441dd3d9cf0ff79442bf62b8afc6b12dbe933ff5b6ead149ce
|
||||
EBUILD orca-43.0.ebuild 1541 BLAKE2B 1b03704f5c12bac9ab5e00aa5b87bccef11f6276ddc8f57a3bab0729a1d671ea3bea65bc420758b79fba4321e675a098c719eb249675a61a67aa6a1dc8d6a031 SHA512 f0efb369bf19c8b12b7b663f6d4959e1b8213d64bd4bc1a3d5757f25e7119566bbd0a0e16eee558b55b8681483995a35a2e5e86624e64641b90b22ef7cdf888e
|
||||
MISC metadata.xml 762 BLAKE2B fca9ee6ac93d2e860f6791af78380e9d8d29ac10b254299946911a29b5893028e561a18320bc026dd7e9421f3c572e1c3ac63264276a1b292996db93e1cba4a3 SHA512 6bbe0cff5af52cb48adccbb61620fd75a0811cad313867b63cb09b5a7c259230019a54ad607ee46c986188ff11ac2f6878ef20381ef34965dfe918c88ec945d0
|
||||
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit gnome2 python-single-r1
|
||||
|
||||
DESCRIPTION="Extensible screen reader that provides access to the desktop"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/Orca"
|
||||
|
||||
LICENSE="LGPL-2.1+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
|
||||
IUSE="+braille"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
>=app-accessibility/at-spi2-atk-2.34:2
|
||||
>=app-accessibility/at-spi2-core-2.36:2[introspection]
|
||||
>=dev-libs/atk-2.36
|
||||
>=dev-libs/glib-2.28:2
|
||||
media-libs/gstreamer:1.0[introspection]
|
||||
>=x11-libs/gtk+-3.6.2:3[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/gst-python:1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygobject-3.18:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
braille? (
|
||||
$(python_gen_cond_dep '
|
||||
>=app-accessibility/brltty-5.0-r3[python,${PYTHON_USEDEP}]
|
||||
dev-libs/liblouis[python,${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-libs/atk[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
>=app-accessibility/speech-dispatcher-0.8[python,${PYTHON_USEDEP}]
|
||||
>=dev-python/pyatspi-2.36[${PYTHON_USEDEP}]
|
||||
dev-python/setproctitle[${PYTHON_USEDEP}]
|
||||
')
|
||||
x11-libs/libwnck:3[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# app-text/yelp-tools
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
$(use_with braille liblouis)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
python_optimize
|
||||
}
|
Binary file not shown.
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="https://www.ansible.com/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/ansible/ansible.git"
|
||||
EGIT_BRANCH="devel"
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
>=dev-python/resolvelib-0.5.3[${PYTHON_USEDEP}]
|
||||
<dev-python/resolvelib-0.9.0[${PYTHON_USEDEP}]
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/botocore[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile() {
|
||||
export ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_compile
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="https://www.ansible.com/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/ansible/ansible.git"
|
||||
EGIT_BRANCH="devel"
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
>=dev-python/resolvelib-0.5.3[${PYTHON_USEDEP}]
|
||||
<dev-python/resolvelib-0.9.0[${PYTHON_USEDEP}]
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/botocore[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile() {
|
||||
export ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_compile
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="https://www.ansible.com/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=app-admin/ansible-core-2.13.0
|
||||
<app-admin/ansible-core-2.14"
|
||||
|
||||
python_compile() {
|
||||
local -x ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
python_install() {
|
||||
local -x ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_install
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
AUX augeas-1.13.0-selinux.patch 661 BLAKE2B abd8430f4bf5a0c0d8033d1f265026b9cff64baf2898cbb522613b41ccde7314342c052ee7cf0d0f3b2d7295af96158c137aef57a7833cda08d435ed17c91e96 SHA512 4059e71ce3f4061fe658dab665e917a807e9f207e0d42b61687434d2368d748da536ae532c9451b9c360fedfc0e6f7fa67ed8926282fec1dbecaecc28f6b0790
|
||||
DIST augeas-1.12.0.tar.gz 2429279 BLAKE2B cd90203fec1a81b114d95bb50e168b852923136f34c83974d3427cbedd4eb0d335d3952057507b38ded5c7011be2b56725565ea106cb32a0ca43b7c81250b29e SHA512 4f61d4abbf338e915dfae212560d39792674bc757f05f500afa80c6170abc214ffb99cab2cf5bbd1c2338d11a6909e5fc3ff7112a2246fca69f7b39ac283da40
|
||||
DIST augeas-1.13.0.tar.gz 2562588 BLAKE2B 0a8e62c999a425b89bfa2b1b2cdf7c7894ca39b59d577ca2f7ce9bf33e51f2fffe2510518a8666d59fcf7f8479cae3b2a41efe4478830f89fa20d1fbeb6c9716 SHA512 a6a9ee76f3e48780df1928f2fdfa5cc826695fe6233ff90d069d05806cb020aed3c6b2ce6b9047925a203973eefcd7c254fc3ddd1db7473821c8ade4fda58d5f
|
||||
DIST augeas-1.14.0.tar.gz 2651463 BLAKE2B 428e708cfdc485feeb7fe80b8642c5b63a8563f508350ae4751a718888d187bab5d8ca8e82b5e9106527b86bb53d3c5a5a2a6e9ef35d18dae308030286039b6a SHA512 06ef6f735686ae09ec8733a3daf36f6838fa56e761dc6d89e5c44420ea2403a4649bec162b8e49b2c3fe32f0eced8413eba1f2c551103a43860bba823315f1ef
|
||||
EBUILD augeas-1.12.0.ebuild 957 BLAKE2B 8997535b7b70e25300dc2bb017be15fd724e6731590151ac9617bb7ec8e03901b3dedaa07dc5b54c3475a5fd86646bd38bfd2ca7a6d07dbc5b66aae8cfe7fd8e SHA512 f6402c7b79ff126af421b82598817edf2894542ac73b3ab32601a4d8e18c8e3b7f273cb55be83470123a7ebbea14a53cba93a3d6652075c22740791ab6ed23c4
|
||||
EBUILD augeas-1.13.0.ebuild 994 BLAKE2B 20dfcadd99468b39dc3e91f12819c3a4f9facc1f4816af061451c105df9be46d87fab7c2748e74728b8b8cc031c1ac40932b97b8d90f3f5be17f8096b4b89ff5 SHA512 498ad93664047f6dac51cd142d43a93609863c273899d087b6ed9b4f948484e399e06c3bf9902acdcf21eb879dbd4623cad4a73c3335e9820b115bae30702a0c
|
||||
EBUILD augeas-1.14.0-r1.ebuild 960 BLAKE2B e2bb652802d5fe37c51238328b332a5cf45cc63026e3f25e03581f6f9910b56b36e1cfd8a915381cc2763d39d17aad57f6fae7be3d1ac95f032f687975f44622 SHA512 5b69deab39be708e7e38a5103971403730e601936b9c24341d1c49c6cd34a1f0a4f03be899e938c93bcdc7d3c276dab75697a61a4faf8f23914b73ab9d61685b
|
||||
MISC metadata.xml 788 BLAKE2B d8484727eaeaecc48fde1039c9081d9e1c9572487f9a327a8464dbe448f407efc649499c06d7eca01fdd5eefc51cf7a33ef1bcfbf7df683276904a3f7367e4cf SHA512 1f9528e412f4621928b9da5970bfb244193b763bd27e235e40ae62efd7981be831ca2beebb060e335e432cad1f52ab2bbef2536eca19095e9115db0efa3c4ca2
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A library for changing configuration files"
|
||||
HOMEPAGE="http://augeas.net/"
|
||||
SRC_URI="https://github.com/hercules-team/augeas/releases/download/release-${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libxml2
|
||||
sys-libs/readline:="
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
>=app-doc/NaturalDocs-1.40
|
||||
virtual/pkgconfig
|
||||
test? ( dev-lang/ruby )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# selinux needs to be implemented
|
||||
econf --without-selinux
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
addpredict /usr/share/NaturalDocs/Config/Languages.txt
|
||||
addpredict /usr/share/NaturalDocs/Config/Topics.txt
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
||||
)
|
||||
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
||||
)
|
||||
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
||||
)
|
||||
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python framework for efficient cluster administration"
|
||||
HOMEPAGE="https://github.com/cea-hpc/clustershell/"
|
||||
SRC_URI="
|
||||
https://github.com/cea-hpc/clustershell/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
app-shells/pdsh
|
||||
net-misc/openssh
|
||||
sys-devel/bc
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove test sets that require working ssh connection
|
||||
rm tests/{CLIClush,TaskDistant*}Test.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd tests || die
|
||||
# Automatic discovery does not work
|
||||
"${EPYTHON}" -m unittest_or_fail -v *.py || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
doman doc/man/man*/*
|
||||
|
||||
mv "${ED}/usr/etc" "${ED}/etc" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Some default system-wide config files have been installed into"
|
||||
einfo "/etc/${PN}"
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST exo-1.60.0.tar.gz 5506221 BLAKE2B 5b3f424e8572f33b5571582de7c2154edd8d52c9225947623b83bcf6d93dd32529785602aa89184c0083c1a2c7c5a7541ba847d5e6849c53033bebcb210fa3f6 SHA512 18041184e14b5f353477331f9f4fe83834f73e5996ba8124b109518dcaaf3d36b8e8727a011603c4a5e7836f9d4d7380041665317598d470f0456dfb87f2e284
|
||||
EBUILD exo-1.60.0.ebuild 703 BLAKE2B fbee615ad22bcdc4efdce1344136056d3366c31ff1240c3c86b1fff39787b18f99f896d455ebde5cc4c2bee05e28cbaf216d1ab973b5f100d4a9957c8989ee65 SHA512 21b1e8bb20a9db8f635374ff64e9724679188cd356f975818e2390d3f369f2ff8886710d9c202cb4e72df39ba900948a392c6da296f95dc18344492d86e56d98
|
||||
DIST exo-1.61.0.tar.gz 5536720 BLAKE2B 3828a20d61d8e8c0c37cba4cc2846372ae1174ea1bdb6e99a30f6e526f304cc967dbf1d71be793bda0f666f174d54e694c159d0e2963a83f2b904e70f701eb44 SHA512 eba7b29de67782e560c3d23bbe0008980bd7ac4de1485ec885cf9563d122ff784dad4b55a94d3000064258eb5000041bcf6ed71f10383b212684e1c0bb292b84
|
||||
EBUILD exo-1.61.0.ebuild 703 BLAKE2B fbee615ad22bcdc4efdce1344136056d3366c31ff1240c3c86b1fff39787b18f99f896d455ebde5cc4c2bee05e28cbaf216d1ab973b5f100d4a9957c8989ee65 SHA512 21b1e8bb20a9db8f635374ff64e9724679188cd356f975818e2390d3f369f2ff8886710d9c202cb4e72df39ba900948a392c6da296f95dc18344492d86e56d98
|
||||
MISC metadata.xml 334 BLAKE2B 230d1a47a3e39f796c16a9e9a622fbc27560c951da0c49adf7aca135970c0c944f42da7eb624c7193d44830c72cf95da9d69d977562853de6a00fd8fb6408977 SHA512 cd1366d99abc260c6f2899000e2a517be9a4c43e921078764fdc996871df34c1827e512087c3eb6f95bf3b685c2f34cbc1f1462eaa303a948640a362b4501b01
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST hcloud-1.30.3.tar.xz 1690980 BLAKE2B 115a6769d5bd5e6a10d812502506f9921a7659a262eea7088c88205e9fc748a570c1c9830e5061923f1be18a64d96104e6e930c9edc3316645e5d86450fbf69c SHA512 64bc692b8d098149815ba63aec8346a7f4f2ff7461fac3369343595a733a5c727b41ec8341e4eee1a98804b14bfc5a94ff9fc0621abb798d381d9bc802818b77
|
||||
DIST hcloud-1.30.4.tar.xz 1725492 BLAKE2B 25af9abb1bcc3e7dce880774716c1abe8e4c7da52e5ae7e7bf1c872e50ee0f66358b981df3401cb97ede1b6c6950b97751b8200a72713d9dcf557891b3e7d81e SHA512 d3572be3ebce21d3dece129d391261fd1ff8a769660509cd67946815d1782d5dcf003b2539b3eb9a9b6e40bfd9b452e438fc7b0ff2805a7808ad8ad9f32c3ed0
|
||||
DIST hcloud-1.31.1.tar.xz 1735560 BLAKE2B 66b2deaefbf61a72bf6a9e004c29d1198e5cfd40956e9936d5db27903aff5f8151c230da61b33ce4231885613d53ba5c96f99fb10df03fdcc241ec32fa465de5 SHA512 b61683ea54455be1db0ae196615642d0247e56ca51f3848847fba09124a45606aea2495f4408694acc5e819d9dc79ffdb2b9ce4e85aade7dea0335be94461066
|
||||
EBUILD hcloud-1.30.3.ebuild 725 BLAKE2B edcbd89bab62c808b5d21c0df6e3a5e2420163bc955ead8cfb156a693f84ecf6ab7bb6f1f546bd9b3bc95ea43536ccd9ace2e6fb22f15edd067e6ec84a362e6d SHA512 e32ce446972a048443945716eba008cefbd43e0d08ffbf381a20213675485472e5b6576677764a5aea9cac2ee096ad6990bbfd0f763849ceec508ebf1c577497
|
||||
EBUILD hcloud-1.30.4.ebuild 726 BLAKE2B 7d96a9012f4b897b54576a5dbedb9419e0fcaa34476e68d252b907132efe6bc638ad9598a034160bcff3dca5b86dfe3a9cc9b4380b8606db71c889bcbafa2e2d SHA512 78a825e2b55f7ffbf6c5e7e8096f788b26d9fc4205edf5dc05286d8bf9da17d5f17d266f6c990bb07154edd7ba635a4c332241ac225e6b3ab02ab9a9f82f68d3
|
||||
EBUILD hcloud-1.31.1.ebuild 726 BLAKE2B 7d96a9012f4b897b54576a5dbedb9419e0fcaa34476e68d252b907132efe6bc638ad9598a034160bcff3dca5b86dfe3a9cc9b4380b8606db71c889bcbafa2e2d SHA512 78a825e2b55f7ffbf6c5e7e8096f788b26d9fc4205edf5dc05286d8bf9da17d5f17d266f6c990bb07154edd7ba635a4c332241ac225e6b3ab02ab9a9f82f68d3
|
||||
MISC metadata.xml 338 BLAKE2B 6ba2cbe509581ac35dabd93abe166f960d69d1f14336779848483386d28e22dd06e5d196061312827b7a945369f05a466417a1636b607e138515957a75db6f84 SHA512 cc69ce0ab7ba3a9af94ef1918738074cdd725bef2ff70d6c19e46d07bb9514d05ef6415c7ba5b372e7a98902a8440cdb9f7b14a848c3ff2f054863356971ddde
|
||||
|
@ -1,5 +1,7 @@
|
||||
AUX logsurfer+-1.8-fix-declaration-of-check_context_linelimit.patch 857 BLAKE2B e9840db3760acd7602dd77f187c2d13627f6083bf2a2cb37fbe9224115ec6a37c38dfce490ef4c1b1560645d92c8feeb6234a5b79b545bf9f5f9bfca3ca66853 SHA512 122b2932a4d48077b51271c012d43977d344e26c2c607c70df7c720edee2a186e4c5480e6b0d258e5874d9a797991c04bbe2186a622076e09958f87b81b8c704
|
||||
AUX logsurfer-1.8.initd-r1 785 BLAKE2B c221acc6d565c6bef69e2b0e107d1d7e5b2fd03d7a645cbcf72b04ec903d3dd4fd031f3ba1f310b8cb0b6f1f8c936a1d3c605602a65682d09a3c4b86ced98f22 SHA512 dc02f6f317437adfe216992a0095912e73f9ad5abcbd2912bb4cdf0d71c4e0653eaeb14f3ff7164d20f1dee168c7b5352a3db96b9520a711e5f7ef04eca9e800
|
||||
AUX logsurfer.confd 106 BLAKE2B 3b43cc5e0782c3b34dca3ae607cf38db2128d09a11770efc013501368483134a4e6741c14533dfd59b05cce06e5498ba3a1321c330fe43915f588c5fef4bd3d1 SHA512 872004ae1aedc3adb550da30ebc544ccbf11af5ad399bb9788a4db336138c3f5ec03c3704eaaa2cecb0559de6a2bcab9e96da062e6af9a6daa22afdec709a43a
|
||||
DIST logsurfer-1.8.tar.gz 197507 BLAKE2B caa824ef486d8f48f39e6e1309d2dbccace4e91910b94267d50ab9dc022371bade87c251d87c4818d900ce2a72141f2ac4d0b4cccf4b2850e594951c77df2c0e SHA512 975b1353d067cee3a47fb555013ad86cf404863bcd044a46a7b8314670613b89720e4c21ac9c1389f930be964e4694ee6863ce72e289054ffacf9c62565ffa30
|
||||
EBUILD logsurfer+-1.8-r4.ebuild 815 BLAKE2B 90a95aacad1bb0bf32a91bd3f480e5f82efb810918c631350580d51b0107f3ec022b2c1bf0fa279ba5936da7777cc6eecfc3fe410fdadc5f68a9c55f9ea1cf53 SHA512 f9dfd7c817452a3f71541cc9a1ac7699a1c6cd15d0556f46f74c9da9becdb6ae1f221489084905237198450e2eb9d4e390eecdb3de7385cdfae73fbe576047b6
|
||||
EBUILD logsurfer+-1.8-r5.ebuild 898 BLAKE2B d2c49827ce7774d7542b96c397a4ebce2559be7f75894d4e4953ab0b5d8005fa6a2586d3170cb673b77ad06353c6e55948881917c02278a1273f6b8547a43d53 SHA512 912a47c6dd231eff91d3ad7657c208ff835a20080e15a94dd4ff6483738d11011d8ad0d58dae2ac0b0f7ba3345c6ad56394cde2bcfc11b315d7bb12f79872120
|
||||
MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
|
||||
|
@ -0,0 +1,30 @@
|
||||
From dfd993afd0587080e73079ae7f5ea9a087784d49 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Pascal=20J=C3=A4ger?= <pascal.jaeger@leimstift.de>
|
||||
Date: Tue, 29 Nov 2022 22:01:30 +0100
|
||||
Subject: [PATCH] Fix declaration of check_context_linelimit
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Bug: https://bugs.gentoo.org/871135
|
||||
|
||||
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
|
||||
---
|
||||
src/context.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/context.h b/src/context.h
|
||||
index 0448cfb..addbbab 100644
|
||||
--- a/src/context.h
|
||||
+++ b/src/context.h
|
||||
@@ -22,6 +22,7 @@ void add_to_context(struct context *, struct context_line *);
|
||||
void do_context_action(struct context *);
|
||||
|
||||
void check_context_timeout();
|
||||
+void check_context_linelimit();
|
||||
|
||||
void expand_context_action_macros(struct context *);
|
||||
|
||||
--
|
||||
2.38.1
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_P="${P/+/}"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Real Time Log Monitoring and Alerting"
|
||||
HOMEPAGE="https://www.crypt.gen.nz/logsurfer/"
|
||||
SRC_URI="mirror://sourceforge/logsurfer/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="freedist GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="bindist" #444330
|
||||
|
||||
RDEPEND="
|
||||
acct-group/logsurfer
|
||||
acct-user/logsurfer
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-declaration-of-check_context_linelimit.patch" )
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-etcdir=/etc
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin src/logsurfer
|
||||
doman man/logsurfer.1 man/logsurfer.conf.4
|
||||
|
||||
newinitd "${FILESDIR}"/logsurfer-1.8.initd-r1 logsurfer
|
||||
newconfd "${FILESDIR}"/logsurfer.confd logsurfer
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -0,0 +1,494 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit autotools linux-info 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 ~ia64 ~ppc64 ~riscv ~sparc ~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="clickhouse curl dbi debug doc elasticsearch +gcrypt gnutls imhttp"
|
||||
IUSE+=" impcap jemalloc kafka kerberos kubernetes mdblookup"
|
||||
IUSE+=" mongodb mysql normalize omhttp omhttpfs omudpspoof +openssl"
|
||||
IUSE+=" postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp +ssl"
|
||||
IUSE+=" systemd test usertools +uuid xxhash zeromq"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
REQUIRED_USE="
|
||||
kubernetes? ( normalize )
|
||||
ssl? ( || ( gnutls openssl ) )
|
||||
"
|
||||
|
||||
BDEPEND=">=sys-devel/autoconf-archive-2015.02.24
|
||||
sys-apps/lsb-release
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
jemalloc? ( <sys-libs/libfaketime-0.9.7 )
|
||||
!jemalloc? ( sys-libs/libfaketime )
|
||||
${PYTHON_DEPS}
|
||||
)"
|
||||
|
||||
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:= )
|
||||
imhttp? (
|
||||
dev-libs/apr-util
|
||||
www-servers/civetweb
|
||||
virtual/libcrypt:=
|
||||
)
|
||||
impcap? ( net-libs/libpcap )
|
||||
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:=
|
||||
dev-libs/libevent[threads]
|
||||
)
|
||||
relp? ( >=dev-libs/librelp-1.2.17:= )
|
||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
||||
rfc5424hmac? (
|
||||
>=dev-libs/openssl-0.9.8y:0=
|
||||
)
|
||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
||||
ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-2.12.23:0= )
|
||||
openssl? (
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
)
|
||||
systemd? ( >=sys-apps/systemd-234 )
|
||||
uuid? ( sys-apps/util-linux:0= )
|
||||
xxhash? ( dev-libs/xxhash:= )
|
||||
zeromq? (
|
||||
>=net-libs/czmq-4:=[drafts]
|
||||
)"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
elibc_musl? ( sys-libs/queue-standalone )
|
||||
"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
BDEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
||||
BDEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
||||
BDEPEND+=" >=sys-devel/bison-2.4.3"
|
||||
BDEPEND+=" >=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
|
||||
--disable-imfile-tests # Some imfile tests fail (noticed in version 8.2208.0)
|
||||
$(use_enable test testbench)
|
||||
$(use_enable test libfaketime)
|
||||
$(use_enable test extended-tests)
|
||||
# Input Plugins without dependencies
|
||||
--enable-imbatchreport
|
||||
--enable-imdiag
|
||||
--enable-imdocker
|
||||
--enable-imfile
|
||||
--enable-improg
|
||||
--enable-impstats
|
||||
--enable-imptcp
|
||||
# Message Modificiation Plugins without dependencies
|
||||
--enable-mmanon
|
||||
--enable-mmaudit
|
||||
--enable-mmcount
|
||||
--enable-mmfields
|
||||
--enable-mmjsonparse
|
||||
--enable-mmpstrucdata
|
||||
--enable-mmrm1stspace
|
||||
--enable-mmsequence
|
||||
--enable-mmtaghostname
|
||||
--enable-mmutf8fix
|
||||
# Output Modification Plugins without dependencies
|
||||
--enable-mail
|
||||
--enable-omprog
|
||||
--enable-omruleset
|
||||
--enable-omstdout
|
||||
--enable-omuxsock
|
||||
# Misc
|
||||
--enable-fmhash
|
||||
--enable-fmunflatten
|
||||
$(use_enable xxhash fmhash-xxhash)
|
||||
--enable-pmaixforwardedfrom
|
||||
--enable-pmciscoios
|
||||
--enable-pmcisconames
|
||||
--enable-pmdb2diag
|
||||
--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 imhiredis)
|
||||
$(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 imhttp)
|
||||
$(use_enable impcap)
|
||||
$(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}
|
||||
|
||||
systemd_newunit "${FILESDIR}/${PN}.service" ${PN}.service
|
||||
|
||||
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
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
if ! hash certtool &>/dev/null; then
|
||||
die "certtool not found! Is net-libs/gnutls[tools] is installed?"
|
||||
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" || die
|
||||
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}.$$" || die
|
||||
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" || die
|
||||
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" || die
|
||||
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}.$$" || die
|
||||
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,5 +1,3 @@
|
||||
DIST system-config-printer-1.5.16.tar.xz 1382124 BLAKE2B 37548bd470f8e80026e014d4077a79a38ad54258d620654536890b67b688fc790c9a9a269b321f2e12d63ec21f24858866e39b41089195c528ddbdf1351bba5f SHA512 ed20a409def66bdea7de4cd5b397891eca220c841e1b5c8cab98e45f87389ae8ba881d9e24072dd07203141fc34c49c4b67cf099791857c007971e3b7d2e2fc2
|
||||
DIST system-config-printer-1.5.18.tar.xz 1396808 BLAKE2B 910e853829ee876edc597a3103b5ab857b3b8c1cb87096f25213b1088e35d9f4d320dad61f55b530283a7650b07abe028a53b4e144b33b1b66c733cb2caa8011 SHA512 33dc9c52d92f4234e055fb10a99cadd58424dcdb62554797b44bdd5319f1c3662bd2fa33417ac3a3f5ec51216d64e81e1897f3e671eb49f6be34057d7c38f3f4
|
||||
EBUILD system-config-printer-1.5.16-r1.ebuild 2074 BLAKE2B 6064a0cccc81f78fab6769164ddc870adbf2e2472421f162c0d6aa7bec9a67a8ed1cb19e7327bf8835b051a710fe5aeaca49b04722db40950631c23368728990 SHA512 0d077bc93964462ff9a79ebfcce6c5bef72e15bea4790549c9318bed814a7bf6b2702a7acd57c680010c1e76abb316099e54e53fd427985c6359c80a9ff1a3e6
|
||||
EBUILD system-config-printer-1.5.18.ebuild 2081 BLAKE2B 43644f44599ab7b26dee5d6250a006fcc21416d58c5cdaa9b8991a88d97eac7d951bf7fabb027b4641ba46d8212d1a060851c0e74dca816ec0fa8a1522b45cf2 SHA512 aa550cd4b601c7aef2e324fbfc2e6bfee02dc7c615fdfecac9527ba2154fe3fc0e3ffb6929a0a2e0a1a293dd3f1230302e8df71c7859db8d22d566f08d09d951
|
||||
MISC metadata.xml 597 BLAKE2B 4691f7f385a864b26ed00b5d05310d45aa52d1cbcfb118ec4b1323df470a761162bb7c037cc8eec253f1dd5302d0036379044e83257ba6be43d878b28ebf11e6 SHA512 e4b52d3a4070116472e4fb617796a7cdaef0b3cfc825ccdc39392b5ba63afdedad4232a9eacf89c209a3202d95c2c0cadf17ae8d3698d2e2258310cebfa89744
|
||||
|
@ -1,90 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
inherit python-single-r1 systemd udev xdg
|
||||
|
||||
DESCRIPTION="Graphical user interface for CUPS administration"
|
||||
HOMEPAGE="https://github.com/OpenPrinting/system-config-printer"
|
||||
SRC_URI="https://github.com/OpenPrinting/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86"
|
||||
IUSE="gnome-keyring policykit"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Needs cups running, bug 284005
|
||||
RESTRICT="test"
|
||||
|
||||
# Additional unhandled dependencies
|
||||
# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ?
|
||||
# python samba client: smbc
|
||||
# selinux: needed for troubleshooting
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
dev-libs/glib:2
|
||||
net-print/cups[dbus]
|
||||
virtual/libusb:1
|
||||
>=virtual/udev-172
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/libnotify[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
>=app-text/xmlto-0.0.22
|
||||
dev-perl/XML-Parser
|
||||
dev-util/desktop-file-utils
|
||||
>=sys-devel/gettext-0.20
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycups[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
')
|
||||
gnome-keyring? ( app-crypt/libsecret[introspection] )
|
||||
policykit? ( net-print/cups-pk-helper )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-xmlto
|
||||
--enable-nls
|
||||
--with-desktop-vendor=Gentoo
|
||||
--with-udev-rules
|
||||
--with-systemdsystemunitdir=$(systemd_get_systemunitdir)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
python_optimize cupshelpers
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
python_fix_shebang "${ED}"
|
||||
python_optimize
|
||||
python_domodule cupshelpers
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
EBUILD awk-1.ebuild 554 BLAKE2B 29fc3ad3018b3ce17a24c250e22789105c8a564fdda0c2185401fe999ccb2d33eae2afacef01042e3b58e968b906452e9fb623f0a804c0a0954042297146abf9 SHA512 53db324987a3b7dc3c49f4d5d2060b8d065aa5798be2084d75c5eea89344205118ca301ca21ecc438d45e28ea1eb60357d44c2fe0b52ae1602636bf85535d1d0
|
||||
EBUILD awk-2.ebuild 1757 BLAKE2B 968c3e236089382449abe64e62ded3cba39646746fbbf0762f7006f2ef76c8de27741e66a262474b8a694b40c37e1114157a665d32edda04d667ae2626e24339 SHA512 e0ffed625431f2e2afd18ff39b3dc21bf6d6be7e7aa20573b0cf740f42b93e3f76057022b16fabb1179dca00bea63647108996e24baa48c41947ac20dee8764e
|
||||
EBUILD awk-3.ebuild 1895 BLAKE2B 03a4a58d22e8e59acebd7811d2e9e8dcd6fc9c2c2601cf85da39f8f863de333164af838868eadf5ed2cd6d30aefbc2450bf917e4737d21297231b01550ec47a5 SHA512 c5b81fe0863e6fadaaf7ba0687834fabd92e92ddb6f7bf33efe4118ed328ef8b694d3471ece7656dbedb97fc25091cd68c4456218093decacdcfc2f5646d81b3
|
||||
MISC metadata.xml 829 BLAKE2B bf4375b33e702c61a3f8553e1b63110acab32b68d4ac2d905b6dd12a2204484bc5c2f3a34b2ec127a6c60aac8c105949dbc6eb5ade3a1c8c959afdabdd3658a1 SHA512 32252970d3b12c7a5b9fc7c7ffae821908b9bd4101372e699c70e64572fd7563121427ed5971462417d8c2e6155e47f567ac3bb057d457d58648c5b4d2458974
|
||||
|
@ -1,62 +0,0 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="/bin/awk and /usr/bin/awk symlinks"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Base/Alternatives"
|
||||
SRC_URI=""
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="CC0-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="busybox +gawk mawk nawk split-usr"
|
||||
REQUIRED_USE="^^ ( busybox gawk mawk nawk )"
|
||||
|
||||
RDEPEND="
|
||||
busybox? ( sys-apps/busybox )
|
||||
gawk? ( sys-apps/gawk )
|
||||
mawk? ( sys-apps/mawk )
|
||||
nawk? ( sys-apps/nawk )
|
||||
!app-eselect/eselect-awk
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local root_prefix=
|
||||
use split-usr && root_prefix=../../bin/
|
||||
|
||||
# We could consider setting AWK=... like we do for yacc & lex,
|
||||
# but it would need some testing with a fair amount of packages first,
|
||||
# as autoconf prefers gawk.
|
||||
if use busybox; then
|
||||
dosym "${root_prefix}busybox" /usr/bin/awk
|
||||
newman - awk.1 <<<".so busybox.1"
|
||||
elif use gawk; then
|
||||
dosym gawk /usr/bin/awk
|
||||
newman - awk.1 <<<".so gawk.1"
|
||||
elif use mawk; then
|
||||
dosym mawk /usr/bin/awk
|
||||
newman - awk.1 <<<".so mawk.1"
|
||||
elif use nawk; then
|
||||
dosym nawk /usr/bin/awk
|
||||
newman - awk.1 <<<".so nawk.1"
|
||||
else
|
||||
die "Invalid USE flag combination (broken REQUIRED_USE?)"
|
||||
fi
|
||||
|
||||
if use split-usr; then
|
||||
dosym ../usr/bin/awk /bin/awk
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# make sure we don't leave the user without the symlinks, since
|
||||
# they've not been owned by any other package
|
||||
if [[ ! -h ${EROOT}/usr/bin/awk ]]; then
|
||||
ln -s gawk "${EROOT}/usr/bin/awk" || die
|
||||
fi
|
||||
if [[ ! -h ${EROOT}/bin/awk ]]; then
|
||||
ln -s ../usr/bin/awk "${EROOT}/bin/awk" || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ALTERNATIVES=(
|
||||
gawk:sys-apps/gawk
|
||||
busybox:sys-apps/busybox
|
||||
mawk:sys-apps/mawk
|
||||
nawk:sys-apps/nawk
|
||||
)
|
||||
|
||||
inherit app-alternatives
|
||||
|
||||
DESCRIPTION="/bin/awk and /usr/bin/awk symlinks"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="split-usr"
|
||||
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-awk
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local alt=$(get_alternative)
|
||||
local root_prefix=
|
||||
use split-usr && root_prefix=../../bin/
|
||||
|
||||
# We could consider setting AWK=... like we do for yacc & lex,
|
||||
# but it would need some testing with a fair amount of packages first,
|
||||
# as autoconf prefers gawk.
|
||||
case ${alt} in
|
||||
busybox)
|
||||
dosym "${root_prefix}busybox" /usr/bin/awk
|
||||
;;
|
||||
*)
|
||||
dosym "${alt}" /usr/bin/awk
|
||||
;;
|
||||
esac
|
||||
|
||||
newman - awk.1 <<<".so ${alt}.1"
|
||||
|
||||
if use split-usr; then
|
||||
dosym ../usr/bin/awk /bin/awk
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
# if we are upgrading from a new enough version, leftover manpage
|
||||
# symlink cleanup was done already
|
||||
if ver_test "${v}" -ge 3; then
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
# otherwise, remove leftover files/symlinks created by eselect-awk (sic!)
|
||||
shopt -s nullglob
|
||||
local files=( "${EROOT}"/usr/share/man/man1/awk.1* )
|
||||
shopt -u nullglob
|
||||
|
||||
if [[ ${files[@]} ]]; then
|
||||
einfo "Cleaning up leftover manpage symlinks from eselect-awk ..."
|
||||
rm -v "${files[@]}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# make sure we don't leave the user without the symlinks, since
|
||||
# they've not been owned by any other package
|
||||
if [[ ! -h ${EROOT}/usr/bin/awk ]]; then
|
||||
ln -s gawk "${EROOT}/usr/bin/awk" || die
|
||||
fi
|
||||
if [[ ! -h ${EROOT}/bin/awk ]]; then
|
||||
ln -s ../usr/bin/awk "${EROOT}/bin/awk" || die
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
EBUILD bc-0.ebuild 1011 BLAKE2B ff9630287381e9ef8228da88aa681ca5736c77b0d8d4c061fc8d9484aaef2ad90511313ad8334e8dc35b89543d7e769c3732c4b5cd2f05204c8e3aa3ededa7ee SHA512 fb496069280243abe6c6a9998b96a34b1a6efdbf7a03c88f48cc8a8bcbfcf4557440d0a9f68902cab5ecf12456dfbc76f8df63f83587ad8ea391f8035feaae39
|
||||
EBUILD bc-0.ebuild 738 BLAKE2B d52a3e8f4767721f834706648018d24e88e800ed45f331c5a477b8343c1d644d9749d92b6069bcc8deea15d5d7b06efee76ab66fa74b8b8704e1e5860c347361 SHA512 ac29861da38fda94db2fb32645242ae20738fc1cb21ef749b78c8e98804c8ca41010737da8352c9ce5695a037ddbca764696dfb24f94bc7088bf83394cf3b106
|
||||
MISC metadata.xml 545 BLAKE2B ad10ffcda18dbd1728a7f63f504d4ecd8c3c864c7c3265416c8060bb8e685030e48df6d7e784083ee0d587b57f91be9b1e1401569880458b0c40e3fea63f4f5c SHA512 4a95c94b8a5f6f14171cccaacad08207570550d826f232033f581b8a974d095f73f2c3c0f70c3fd41d33507a7fa8644751724702b75467ae394edb39a44fd404
|
||||
|
@ -1,2 +1,2 @@
|
||||
EBUILD bzip2-1.ebuild 1254 BLAKE2B 38c087d2a7d15dcd39094036ce94c0494f6d600ba473d447f8bcc51fc775101a144b2d362c11236894c2981836f13900074f536a71d50b0c2ab2a034f8256907 SHA512 86d7b9df293bb0256e798b78db171a5d82462a682be1999ab70035c19157a217d401c5112d3b756df160bca94a147808ee95f6397ade67d6db0faedb5e3bcf19
|
||||
EBUILD bzip2-1.ebuild 942 BLAKE2B 1b4f3e831ab7170f26c718465d8ce26444c02990c459be837216a17bbab00906acdb4eaf7e6614fdef50f56d3ac42bfadb57dc7342b32ca8cd8083e4676f0167 SHA512 a3d272ff41cadcb5564e72cd75aab2465012f7125cff6b544212c114cc15b6781051ca34f7d46e8549d9ef4810bd8ef8fb56b5c726040fe105ce6e45023c3a8f
|
||||
MISC metadata.xml 608 BLAKE2B a8bd6f79e552943ee891edc7e90399c77dca3347ce407767902446d0e25720eacc137a6ed31fb851553caf8a938cf6be63c7a1451b2b8aa4a3c367995204216b SHA512 a3863d41f2b3475e64903389efa2b0f8258bf5f21df4e83ff0e28fa44519b012ab92d4a773d05089d7fcf210e4c29da63d25be8e9e098d15284e13dc75bfcf6d
|
||||
|
@ -1,2 +1,2 @@
|
||||
EBUILD cpio-0.ebuild 985 BLAKE2B e62476f5bb7312e58f5ef3a2b2162a2c7b6971dcbca36a6129be3c7e27a367e735cc1dd7b0ca75438c29e21988f4b5365ca3c426eb11c96bfa6f8fef736b3047 SHA512 fb9cff72535814ceb9d1af6da22298383adf64bca30e7cbe9ee331648e7cc9e9d8064795c7dea3702460fbe24dde94ae92991beca84eb4499ec91ec80747b5d9
|
||||
EBUILD cpio-0.ebuild 806 BLAKE2B c4d997392d86b3a0e06dccc69e2d087b97bdcc17d61cb8d3e821b018aa7dc5838166e5bae1c7b9bf7a6705821e34ab09049b47296b46d630e7690fc68d809a53 SHA512 aa11fda24bd92506290804ffc0fbfedb31d2f17361ba007eb433bbb2ddcc82ef9afe844a2d0652511c131b8f17c9872ed0132cc60cbe03981ea75554cfa5676c
|
||||
MISC metadata.xml 556 BLAKE2B 50f93b411b7b21af21a4d071bba8533ed58c6ff5bfa1f18bf6025c1c11dfea1be089777f3e59972c72deefcfb54bedc2065f188e0b75c369bb683b9a17ece639 SHA512 7db5fac74ffcbe3344a06f5a9f5360c07648aac7b5080985b110f2b072412ead598ac5bbc5c2f48bd15077e1bc11e36fc8491a7bb898a761f8c6977a753f067a
|
||||
|
@ -1,2 +1,2 @@
|
||||
EBUILD gzip-0.ebuild 1269 BLAKE2B e1bb6a3ad0fe76590937e5be1558aa6d3f5769812df813c10c7dc3b6351f6ab4a622703cdfabaf7fa9aa55f48a082e53bc81d338f8ed9b612d2319e9dc64b759 SHA512 604814007334d62429b28ada0097d9d329e5ce9a974afafd151642d5a1ef88bfcf2b1447f7e1db819665e3f50399ec80d646028be8df87a088e1f1cdc2d7ae50
|
||||
EBUILD gzip-0.ebuild 1097 BLAKE2B e4da2779aaeedd2fd0ded0f05c37fc8e184c41004c56903e779615d32a3792dae97e46adc925a28a8a3e5658c6c61c98cd924a3750291417ce5c439a00499fc7 SHA512 00499b7b2ae9130459c936d1b37700521456adee8f64105c9f20b150d8532677525eb7947b63d2b5b57b75f874eaa576f41fae69207bd3690ea231bce078d88d
|
||||
MISC metadata.xml 528 BLAKE2B 099aec3cb340caeedc0fc6e2f62162baf276b1262b4758dd39695a03ee5110c717a9b553190762c939171d7776b2048fe73c1fc7a966eef916e992abeed0ec21 SHA512 e654f8d548769c00425cd9a3f796c17af28300ea297294b335166f023164a5696216135badc82074b6a88669114f7db819af827aad8144987c7cfc7a474a2191
|
||||
|
@ -1,2 +1,2 @@
|
||||
EBUILD lex-0-r1.ebuild 978 BLAKE2B 93903295210aecbb2d531abaca2ccbeef50db315dd79458c677e581e11343ca6cb9bfd48c22e5d597398725710298b99f20f7a343e5f16def605d425bfbcbddd SHA512 9c8631dd1b68fa26e75ea8a3322e4aca0a5bef6eaee78c9cf87e78702ccf718a92efcd191c1712e375bdd3474d37d030484c0a80a666351c603067ef4eb4c6bf
|
||||
EBUILD lex-0-r1.ebuild 655 BLAKE2B 557b894294a8316b5db3d8fcb94ac27d577a3c3406dd856eee1903fa7b3c270d57457d91f92052eca40f8da52575831328c4e021858f61789af758def7162b7e SHA512 9c518be1738c8b5a2ed5b7e2af8cd0a01640fd481b1a0c4ae499d002b205a02e39465ed9f80bdb1d104d638898856bd15255dc74c762efe0eb43574928a148a0
|
||||
MISC metadata.xml 529 BLAKE2B 6873948a644263911a6e796fde57e41b69c108e3ec01b9c07a120c1786250a9718f4d736fb5918be27c9b72ee36cf5cab4621478f2917f9bcd45f6276a7e645d SHA512 d48d002ecfba6746fcea824310b738f7839c744e7bfbb4ca95c3c037258103f30dedfb8ca2284d21e6bd56910bc5e9618f8b9351a7f7e290850ae06034e37f3a
|
||||
|
@ -1,2 +1,2 @@
|
||||
EBUILD sh-0.ebuild 1243 BLAKE2B d8969c5ee83fe3a88656d09448607a4ad482457408dcaf809a43453c0eaeb36bee7c1299e058417a5e0939032e1e46107c56cdba96eab63be748831e69a62ac8 SHA512 a8f3296f6053ea628b9278a36a0caa122e744e4f1ccbe7709569bafd205e8e29229f9fe269841914dc17f54a7864a87051686487615b4730cf7a5a319c065db8
|
||||
EBUILD sh-0.ebuild 835 BLAKE2B c677add726e1907141f794c461282a869474a2aefe294df1aebc169d03c2b66d65a8d7d80473747201fef707ce75a614667727fee37417a39588155b18280457 SHA512 34f98126bf1cb2aad3d9bd15c1a912fdd1417267ae59b74da9bffad7b95070764bb2d810f86f19c96838eabc367b1153c2e6401a792e9e3487bbabf705c24eb0
|
||||
MISC metadata.xml 759 BLAKE2B 4f691499f0da47c72c61999275d72604093856ff5440a7f72fdf9a6fe09ac86ce8d07e453d8a88ee9747142cf506cb4824223f9372ba2c8f0414086a3390a239 SHA512 2d2c06a26faf1cb72fea2f201a3bdabed020d8e2f1fb6bd86fdb985274a76db14080410982c74d3d5e5ccf483f1c280f2ea77d3d083d87985f36b54c190b2ec9
|
||||
|
@ -1,2 +1,2 @@
|
||||
EBUILD tar-0.ebuild 974 BLAKE2B d5d055490853c5f9f19d75d04b22c2be9b01f786cead03e83bbe91c23604c661011738bfc1afb0003d5122b587cd3a4744f704b18f4b324243cbefbda9e19160 SHA512 4dbaf848070bed5446c03b6f0e6fb305f8eeddf5b3e3fe16183b301ac2af46c276e69586e17d27e417c17dbb5251b75046a0d860b1409c94cae0873332def234
|
||||
EBUILD tar-0.ebuild 795 BLAKE2B a65c06bae9aac320d154c462f80cf983226496691361f2dd628ca79aacf7040dcde70205eb24da9b73571120c283068a8544ce2f9f25b622e8ce61dc753e7f07 SHA512 39515c17467eebdc3af4cfcd155ef80d08ebf145cb5792d5a0c4e75f57eebfceea6abead1412ccbd741ba091ba7d33a531b06c495e2303fab123834229c9e5f5
|
||||
MISC metadata.xml 553 BLAKE2B 084e137dd7317424c0d3555fd867ae581bb3b629705e5be59985577dbf7acb6dbc2f250ee35300cab20f0a6e7b960af12a85192c8c23fe4d3e366b176d4ac1df SHA512 4c7467710211812afcb8f91c412ce2f909a2d206ab05c9279c616a9579be67f8a000559613c50f7c7246607626dd2dc0270818f14c14f98cd7bff2eda22a9e9f
|
||||
|
@ -1,3 +1,3 @@
|
||||
EBUILD yacc-0.ebuild 536 BLAKE2B ccb4b1c59c0452254507b81a52c1d9147a109fdf968ad2e71b5776735e5c59c8aa0447964614941e22d927b995c5ec045bdfa8f890fb5a1874f462ca64459f21 SHA512 aff6ef4ac24044dcec4484395cd4b155617035f8c632fd6550e8a17b1c467e0c164880ca1d0ac9df86f00df09d0879f26063457b85807874361fac822879fe57
|
||||
EBUILD yacc-1-r2.ebuild 1588 BLAKE2B dc3f5caa5eb6344cfda884841b2360257d1cd0d7665a2513fb970bb580f9f60f5eb1f7f4d1539db73bf06a267f7a91d78bfabf75f312bb822d01a96db96f58f0 SHA512 a242a4022a43c63809049a2fa07f1b4b3da80c7c983cac09eebea9f692e93939ecec3f4e61a0aef6d96c67f65d31ba1d071b75040cb3a362a7d83f953bb9c140
|
||||
EBUILD yacc-1-r2.ebuild 1190 BLAKE2B 3be447c988140d2b2630210ecbd5ce6f32d7e1f9b83f09a0954a6ad70fbc2561386301ae6a424a2fc9d3ec1ad1c6bf846533f91780316af28fd2641392c3c395 SHA512 c7c38ecfe7202e7d6454c932b5619a594c962fcf56f7d5b1ab22b9b03c0a1770f979f2624d076c2f573e982e68de7f67eabd62c5c4a9a9388382b0378877a2b0
|
||||
MISC metadata.xml 604 BLAKE2B a40366e6a7aab1ac9658b2b46cc6409486d2e2b7ac456209b4151974f48facc65e68d2e44965a6eb0680af47663a379da050bfbcf480e6af50951ec6d03647e5 SHA512 24329bbcc9bd0a589559c621a89b0dc26f304f47cdbd62e09bf5d33cb190bdecfc352527970c072080a3c9a7e4a7193b6d7c71ab0a0c83d0dcb76f03e0699a5c
|
||||
|
Binary file not shown.
@ -0,0 +1,384 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_MAX_SLOT=13
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
# Auto-Generated by cargo-ebuild 0.5.2
|
||||
CRATES="
|
||||
adler-1.0.2
|
||||
aho-corasick-0.7.20
|
||||
ansi_term-0.12.1
|
||||
atty-0.2.14
|
||||
autocfg-1.1.0
|
||||
bindgen-0.59.2
|
||||
bit_field-0.10.1
|
||||
bitflags-1.3.2
|
||||
block-buffer-0.10.3
|
||||
bumpalo-3.11.1
|
||||
bytemuck-1.12.3
|
||||
byteorder-1.4.3
|
||||
cbindgen-0.20.0
|
||||
cexpr-0.6.0
|
||||
cfg-if-1.0.0
|
||||
clang-sys-1.4.0
|
||||
clap-2.34.0
|
||||
color_quant-1.1.0
|
||||
cpufeatures-0.2.5
|
||||
crc32fast-1.3.2
|
||||
crossbeam-channel-0.5.6
|
||||
crossbeam-deque-0.8.2
|
||||
crossbeam-epoch-0.9.13
|
||||
crossbeam-utils-0.8.14
|
||||
crunchy-0.2.2
|
||||
crypto-common-0.1.6
|
||||
digest-0.10.6
|
||||
either-1.8.0
|
||||
env_logger-0.9.3
|
||||
exr-1.5.2
|
||||
fastrand-1.8.0
|
||||
flate2-1.0.25
|
||||
flume-0.10.14
|
||||
futures-core-0.3.25
|
||||
futures-sink-0.3.25
|
||||
generic-array-0.14.6
|
||||
getrandom-0.2.8
|
||||
gif-0.11.4
|
||||
glob-0.3.0
|
||||
half-2.1.0
|
||||
hashbrown-0.12.3
|
||||
heck-0.3.3
|
||||
hermit-abi-0.1.19
|
||||
hex-0.4.3
|
||||
humantime-2.1.0
|
||||
image-0.24.5
|
||||
indexmap-1.9.2
|
||||
instant-0.1.12
|
||||
itoa-1.0.4
|
||||
jpeg-decoder-0.3.0
|
||||
js-sys-0.3.60
|
||||
lazy_static-1.4.0
|
||||
lazycell-1.3.0
|
||||
lebe-0.5.2
|
||||
libc-0.2.137
|
||||
libloading-0.7.4
|
||||
lock_api-0.4.9
|
||||
log-0.4.17
|
||||
memchr-2.5.0
|
||||
memoffset-0.7.1
|
||||
minimal-lexical-0.2.1
|
||||
miniz_oxide-0.6.2
|
||||
nanorand-0.7.0
|
||||
nom-7.1.1
|
||||
num-complex-0.4.2
|
||||
num-integer-0.1.45
|
||||
num-rational-0.4.1
|
||||
num-traits-0.2.15
|
||||
num_cpus-1.14.0
|
||||
once_cell-1.16.0
|
||||
peeking_take_while-0.1.2
|
||||
pin-project-1.0.12
|
||||
pin-project-internal-1.0.12
|
||||
png-0.17.7
|
||||
primal-check-0.3.3
|
||||
proc-macro2-1.0.47
|
||||
quote-1.0.21
|
||||
rayon-1.6.0
|
||||
rayon-core-1.10.1
|
||||
redox_syscall-0.2.16
|
||||
regex-1.7.0
|
||||
regex-syntax-0.6.28
|
||||
remove_dir_all-0.5.3
|
||||
rustc-hash-1.1.0
|
||||
rustdct-0.7.1
|
||||
rustfft-6.1.0
|
||||
ryu-1.0.11
|
||||
scoped_threadpool-0.1.9
|
||||
scopeguard-1.1.0
|
||||
serde-1.0.148
|
||||
serde_derive-1.0.148
|
||||
serde_json-1.0.89
|
||||
sha2-0.10.6
|
||||
shlex-1.1.0
|
||||
smallvec-1.10.0
|
||||
spin-0.9.4
|
||||
strength_reduce-0.2.4
|
||||
strsim-0.8.0
|
||||
syn-1.0.104
|
||||
tempfile-3.3.0
|
||||
termcolor-1.1.3
|
||||
textwrap-0.11.0
|
||||
thiserror-1.0.37
|
||||
thiserror-impl-1.0.37
|
||||
threadpool-1.8.1
|
||||
tiff-0.8.0
|
||||
toml-0.5.9
|
||||
transpose-0.2.2
|
||||
typenum-1.15.0
|
||||
unicode-ident-1.0.5
|
||||
unicode-segmentation-1.10.0
|
||||
unicode-width-0.1.10
|
||||
vec_map-0.8.2
|
||||
version_check-0.9.4
|
||||
wasi-0.11.0+wasi-snapshot-preview1
|
||||
wasm-bindgen-0.2.83
|
||||
wasm-bindgen-backend-0.2.83
|
||||
wasm-bindgen-macro-0.2.83
|
||||
wasm-bindgen-macro-support-0.2.83
|
||||
wasm-bindgen-shared-0.2.83
|
||||
weezl-0.1.7
|
||||
which-4.3.0
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-util-0.1.5
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
"
|
||||
|
||||
inherit cargo cmake flag-o-matic llvm python-any-r1 systemd tmpfiles
|
||||
|
||||
MY_P=${P//_/-}
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="https://www.clamav.net/"
|
||||
SRC_URI="https://github.com/Cisco-Talos/clamav/archive/refs/tags/${MY_P}.tar.gz
|
||||
$(cargo_crate_uris ${CRATES})"
|
||||
S=${WORKDIR}/clamav-${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0 BSD GPL-2 ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="doc clamonacc +clamapp experimental jit libclamav-only milter rar selinux systemd test"
|
||||
|
||||
REQUIRED_USE="libclamav-only? ( !clamonacc !clamapp !milter )
|
||||
clamonacc? ( clamapp )
|
||||
milter? ( clamapp )
|
||||
test? ( !libclamav-only )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/clamav in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
CDEPEND="
|
||||
acct-group/clamav
|
||||
acct-user/clamav
|
||||
app-arch/bzip2
|
||||
dev-libs/json-c:=
|
||||
dev-libs/libltdl
|
||||
dev-libs/libmspack
|
||||
dev-libs/libpcre2:=
|
||||
dev-libs/libxml2
|
||||
dev-libs/openssl:=
|
||||
>=sys-libs/zlib-1.2.2:=
|
||||
virtual/libiconv
|
||||
!libclamav-only? ( net-misc/curl )
|
||||
clamapp? ( sys-libs/ncurses:= net-misc/curl )
|
||||
elibc_musl? ( sys-libs/fts-standalone )
|
||||
jit? ( <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= )
|
||||
milter? ( mail-filter/libmilter:= )
|
||||
rar? ( app-arch/unrar )
|
||||
test? ( dev-python/pytest )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
>=virtual/rust-1.61
|
||||
doc? ( app-doc/doxygen )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( dev-libs/check )"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use jit && llvm_pkg_setup
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-select-python.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
use elibc_musl && append-ldflags -lfts
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
local mycmakeargs=(
|
||||
-DAPP_CONFIG_DIRECTORY="${EPREFIX}"/etc/clamav
|
||||
-DBYTECODE_RUNTIME=$(usex jit llvm interpreter)
|
||||
-DCLAMAV_GROUP="clamav"
|
||||
-DCLAMAV_USER="clamav"
|
||||
-DDATABASE_DIRECTORY="${EPREFIX}"/var/lib/clamav
|
||||
-DENABLE_APP=$(usex clamapp ON OFF)
|
||||
-DENABLE_CLAMONACC=$(usex clamonacc ON OFF)
|
||||
-DENABLE_DOXYGEN=$(usex doc)
|
||||
-DENABLE_EXPERIMENTAL=$(usex experimental ON OFF)
|
||||
-DENABLE_EXTERNAL_MSPACK=ON
|
||||
-DENABLE_JSON_SHARED=ON
|
||||
-DENABLE_MAN_PAGES=ON
|
||||
-DENABLE_MILTER=$(usex milter ON OFF)
|
||||
-DENABLE_SHARED_LIB=ON
|
||||
-DENABLE_STATIC_LIB=OFF
|
||||
-DENABLE_SYSTEMD=$(usex systemd ON OFF)
|
||||
-DENABLE_TESTS=$(usex test ON OFF)
|
||||
-DENABLE_UNRAR=$(usex rar ON OFF)
|
||||
-DOPTIMIZE=ON
|
||||
)
|
||||
|
||||
if use test ; then
|
||||
# https://bugs.gentoo.org/818673
|
||||
# Used to enable some more tests but doesn't behave well in
|
||||
# sandbox necessarily(?) + needs certain debug symbols present
|
||||
# in e.g. glibc.
|
||||
mycmakeargs+=(
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Valgrind=ON
|
||||
-DPYTHON_FIND_VERSION="${EPYTHON#python}"
|
||||
)
|
||||
fi
|
||||
|
||||
if use jit ; then
|
||||
# Suppress CMake warnings that variables aren't consumed if we aren't using LLVM
|
||||
# https://github.com/Cisco-Talos/clamav/blob/main/INSTALL.md#llvm-optional-see-bytecode-runtime-section
|
||||
# https://github.com/Cisco-Talos/clamav/blob/main/INSTALL.md#bytecode-runtime
|
||||
mycmakeargs+=(
|
||||
-DLLVM_ROOT_DIR="$(get_llvm_prefix -d ${LLVM_MAX_SLOT})"
|
||||
-DLLVM_FIND_VERSION="$(best_version sys-devel/llvm:${LLVM_MAX_SLOT} | cut -c 16-)"
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
# init scripts
|
||||
newinitd "${FILESDIR}/clamd.initd" clamd
|
||||
newinitd "${FILESDIR}/freshclam.initd" freshclam
|
||||
use clamonacc && \
|
||||
newinitd "${FILESDIR}/clamonacc.initd" clamonacc
|
||||
use milter && \
|
||||
newinitd "${FILESDIR}/clamav-milter.initd" clamav-milter
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav || die
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
# The tmpfiles entry is behind USE=systemd because the
|
||||
# upstream OpenRC service files should (and do) ensure that
|
||||
# the directories they need exist and have the correct
|
||||
# permissions without the help of opentmpfiles. There are
|
||||
# years-old root exploits in opentmpfiles, the design is
|
||||
# fundamentally flawed, and the maintainer is not up to
|
||||
# the task of fixing it.
|
||||
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service-0.104.0" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||
"freshclamd.service"
|
||||
fi
|
||||
|
||||
if use clamapp ; then
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/clamd.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamd.conf || die
|
||||
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamav/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/freshclam.conf.sample > \
|
||||
"${ED}"/etc/clamav/freshclam.conf || die
|
||||
|
||||
if use milter ; then
|
||||
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf || die
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-0.104.0" clamav-milter.service
|
||||
fi
|
||||
|
||||
local i
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
if [[ -f "${ED}"/etc/"${i}".conf.sample ]] ; then
|
||||
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# These both need to be writable by the clamav user.
|
||||
# TODO: use syslog by default; that's what it's for.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fi
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
local HTML_DOCS=( docs/html/. )
|
||||
einstalldocs
|
||||
fi
|
||||
|
||||
# Don't install man pages for utilities we didn't install
|
||||
if use libclamav-only ; then
|
||||
rm -r "${ED}"/usr/share/man || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
tmpfiles_process clamav.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||
if [[ ! -f "${databases}" ]] ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database"
|
||||
ewarn "before starting clamav for the first time."
|
||||
fi
|
||||
|
||||
if ! systemd_is_booted ; then
|
||||
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||
ewarn "runlevels that previously contained clamd."
|
||||
fi
|
||||
}
|
@ -1,378 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_MAX_SLOT=13
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
# Auto-Generated by cargo-ebuild 0.5.2
|
||||
CRATES="
|
||||
adler-1.0.2
|
||||
aho-corasick-0.7.19
|
||||
ansi_term-0.12.1
|
||||
atty-0.2.14
|
||||
autocfg-1.1.0
|
||||
bindgen-0.59.2
|
||||
bit_field-0.10.1
|
||||
bitflags-1.3.2
|
||||
block-buffer-0.10.3
|
||||
bumpalo-3.11.1
|
||||
bytemuck-1.12.3
|
||||
byteorder-1.4.3
|
||||
cbindgen-0.20.0
|
||||
cexpr-0.6.0
|
||||
cfg-if-1.0.0
|
||||
clang-sys-1.4.0
|
||||
clap-2.34.0
|
||||
color_quant-1.1.0
|
||||
cpufeatures-0.2.5
|
||||
crc32fast-1.3.2
|
||||
crossbeam-channel-0.5.6
|
||||
crossbeam-deque-0.8.2
|
||||
crossbeam-epoch-0.9.11
|
||||
crossbeam-utils-0.8.12
|
||||
crunchy-0.2.2
|
||||
crypto-common-0.1.6
|
||||
digest-0.10.6
|
||||
either-1.8.0
|
||||
env_logger-0.9.3
|
||||
exr-1.5.2
|
||||
fastrand-1.8.0
|
||||
flate2-1.0.24
|
||||
flume-0.10.14
|
||||
futures-core-0.3.25
|
||||
futures-sink-0.3.25
|
||||
generic-array-0.14.6
|
||||
getrandom-0.2.8
|
||||
gif-0.11.4
|
||||
glob-0.3.0
|
||||
half-2.1.0
|
||||
hashbrown-0.12.3
|
||||
heck-0.3.3
|
||||
hermit-abi-0.1.19
|
||||
hex-0.4.3
|
||||
humantime-2.1.0
|
||||
image-0.24.5
|
||||
indexmap-1.9.2
|
||||
instant-0.1.12
|
||||
itoa-1.0.4
|
||||
jpeg-decoder-0.3.0
|
||||
js-sys-0.3.60
|
||||
lazy_static-1.4.0
|
||||
lazycell-1.3.0
|
||||
lebe-0.5.2
|
||||
libc-0.2.137
|
||||
libloading-0.7.4
|
||||
lock_api-0.4.9
|
||||
log-0.4.17
|
||||
memchr-2.5.0
|
||||
memoffset-0.6.5
|
||||
minimal-lexical-0.2.1
|
||||
miniz_oxide-0.5.4
|
||||
miniz_oxide-0.6.2
|
||||
nanorand-0.7.0
|
||||
nom-7.1.1
|
||||
num-complex-0.4.2
|
||||
num-integer-0.1.45
|
||||
num-rational-0.4.1
|
||||
num-traits-0.2.15
|
||||
num_cpus-1.14.0
|
||||
once_cell-1.16.0
|
||||
peeking_take_while-0.1.2
|
||||
pin-project-1.0.12
|
||||
pin-project-internal-1.0.12
|
||||
png-0.17.7
|
||||
primal-check-0.3.3
|
||||
proc-macro2-1.0.47
|
||||
quote-1.0.21
|
||||
rayon-1.6.0
|
||||
rayon-core-1.10.1
|
||||
redox_syscall-0.2.16
|
||||
regex-1.7.0
|
||||
regex-syntax-0.6.28
|
||||
remove_dir_all-0.5.3
|
||||
rustc-hash-1.1.0
|
||||
rustdct-0.7.1
|
||||
rustfft-6.1.0
|
||||
ryu-1.0.11
|
||||
scoped_threadpool-0.1.9
|
||||
scopeguard-1.1.0
|
||||
serde-1.0.147
|
||||
serde_derive-1.0.147
|
||||
serde_json-1.0.88
|
||||
sha2-0.10.6
|
||||
shlex-1.1.0
|
||||
smallvec-1.10.0
|
||||
spin-0.9.4
|
||||
strength_reduce-0.2.4
|
||||
strsim-0.8.0
|
||||
syn-1.0.103
|
||||
tempfile-3.3.0
|
||||
termcolor-1.1.3
|
||||
textwrap-0.11.0
|
||||
thiserror-1.0.37
|
||||
thiserror-impl-1.0.37
|
||||
threadpool-1.8.1
|
||||
tiff-0.8.0
|
||||
toml-0.5.9
|
||||
transpose-0.2.2
|
||||
typenum-1.15.0
|
||||
unicode-ident-1.0.5
|
||||
unicode-segmentation-1.10.0
|
||||
unicode-width-0.1.10
|
||||
vec_map-0.8.2
|
||||
version_check-0.9.4
|
||||
wasi-0.11.0+wasi-snapshot-preview1
|
||||
wasm-bindgen-0.2.83
|
||||
wasm-bindgen-backend-0.2.83
|
||||
wasm-bindgen-macro-0.2.83
|
||||
wasm-bindgen-macro-support-0.2.83
|
||||
wasm-bindgen-shared-0.2.83
|
||||
weezl-0.1.7
|
||||
which-4.3.0
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-util-0.1.5
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
"
|
||||
|
||||
inherit cargo cmake flag-o-matic llvm python-any-r1 systemd tmpfiles
|
||||
|
||||
MY_P=${P//_/-}
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="https://www.clamav.net/"
|
||||
SRC_URI="https://github.com/Cisco-Talos/clamav/archive/refs/tags/${MY_P}.tar.gz
|
||||
$(cargo_crate_uris ${CRATES})"
|
||||
S=${WORKDIR}/clamav-${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0 BSD GPL-2 ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="doc clamonacc +clamapp experimental jit libclamav-only milter rar selinux systemd test"
|
||||
|
||||
REQUIRED_USE="libclamav-only? ( !clamonacc !clamapp !milter )
|
||||
clamonacc? ( clamapp )
|
||||
milter? ( clamapp )
|
||||
test? ( !libclamav-only )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/clamav in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
CDEPEND="
|
||||
acct-group/clamav
|
||||
acct-user/clamav
|
||||
app-arch/bzip2
|
||||
dev-libs/json-c:=
|
||||
dev-libs/libltdl
|
||||
dev-libs/libmspack
|
||||
dev-libs/libpcre2:=
|
||||
dev-libs/libxml2
|
||||
dev-libs/openssl:=
|
||||
>=sys-libs/zlib-1.2.2:=
|
||||
virtual/libiconv
|
||||
!libclamav-only? ( net-misc/curl )
|
||||
clamapp? ( sys-libs/ncurses:= net-misc/curl )
|
||||
elibc_musl? ( sys-libs/fts-standalone )
|
||||
jit? ( <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= )
|
||||
milter? ( mail-filter/libmilter:= )
|
||||
rar? ( app-arch/unrar )
|
||||
test? ( dev-python/pytest )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
>=virtual/rust-1.61
|
||||
doc? ( app-doc/doxygen )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( dev-libs/check )"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use jit && llvm_pkg_setup
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use elibc_musl && append-ldflags -lfts
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
local mycmakeargs=(
|
||||
-DDATABASE_DIRECTORY="${EPREFIX}"/var/lib/clamav
|
||||
-DAPP_CONFIG_DIRECTORY="${EPREFIX}"/etc/clamav
|
||||
-DENABLE_EXPERIMENTAL=$(usex experimental ON OFF)
|
||||
-DENABLE_JSON_SHARED=ON
|
||||
-DENABLE_APP=$(usex clamapp ON OFF)
|
||||
-DENABLE_MILTER=$(usex milter ON OFF)
|
||||
-DENABLE_CLAMONACC=$(usex clamonacc ON OFF)
|
||||
-DCLAMAV_USER="clamav"
|
||||
-DCLAMAV_GROUP="clamav"
|
||||
-DBYTECODE_RUNTIME=$(usex jit llvm interpreter)
|
||||
-DOPTIMIZE=ON
|
||||
-DENABLE_EXTERNAL_MSPACK=ON
|
||||
-DENABLE_MAN_PAGES=ON
|
||||
-DENABLE_DOXYGEN=$(usex doc)
|
||||
-DENABLE_UNRAR=$(usex rar ON OFF)
|
||||
-DENABLE_TESTS=$(usex test ON OFF)
|
||||
-DENABLE_STATIC_LIB=OFF
|
||||
-DENABLE_SHARED_LIB=ON
|
||||
-DENABLE_SYSTEMD=$(usex systemd ON OFF)
|
||||
)
|
||||
|
||||
if use test ; then
|
||||
# https://bugs.gentoo.org/818673
|
||||
# Used to enable some more tests but doesn't behave well in
|
||||
# sandbox necessarily(?) + needs certain debug symbols present
|
||||
# in e.g. glibc.
|
||||
mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Valgrind=ON )
|
||||
fi
|
||||
|
||||
if use jit ; then
|
||||
# Suppress CMake warnings that variables aren't consumed if we aren't using LLVM
|
||||
# https://github.com/Cisco-Talos/clamav/blob/main/INSTALL.md#llvm-optional-see-bytecode-runtime-section
|
||||
# https://github.com/Cisco-Talos/clamav/blob/main/INSTALL.md#bytecode-runtime
|
||||
mycmakeargs+=(
|
||||
-DLLVM_ROOT_DIR="$(get_llvm_prefix -d ${LLVM_MAX_SLOT})"
|
||||
-DLLVM_FIND_VERSION="$(best_version sys-devel/llvm:${LLVM_MAX_SLOT} | cut -c 16-)"
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
# init scripts
|
||||
newinitd "${FILESDIR}/clamd.initd" clamd
|
||||
newinitd "${FILESDIR}/freshclam.initd" freshclam
|
||||
use clamonacc && \
|
||||
newinitd "${FILESDIR}/clamonacc.initd" clamonacc
|
||||
use milter && \
|
||||
newinitd "${FILESDIR}/clamav-milter.initd" clamav-milter
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav || die
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
# The tmpfiles entry is behind USE=systemd because the
|
||||
# upstream OpenRC service files should (and do) ensure that
|
||||
# the directories they need exist and have the correct
|
||||
# permissions without the help of opentmpfiles. There are
|
||||
# years-old root exploits in opentmpfiles, the design is
|
||||
# fundamentally flawed, and the maintainer is not up to
|
||||
# the task of fixing it.
|
||||
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service-0.104.0" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||
"freshclamd.service"
|
||||
fi
|
||||
|
||||
if use clamapp ; then
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/clamd.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamd.conf || die
|
||||
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamav/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/freshclam.conf.sample > \
|
||||
"${ED}"/etc/clamav/freshclam.conf || die
|
||||
|
||||
if use milter ; then
|
||||
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf || die
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-0.104.0" clamav-milter.service
|
||||
fi
|
||||
|
||||
local i
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
if [[ -f "${ED}"/etc/"${i}".conf.sample ]] ; then
|
||||
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# These both need to be writable by the clamav user.
|
||||
# TODO: use syslog by default; that's what it's for.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fi
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
local HTML_DOCS=( docs/html/. )
|
||||
einstalldocs
|
||||
fi
|
||||
|
||||
# Don't install man pages for utilities we didn't install
|
||||
if use libclamav-only ; then
|
||||
rm -r "${ED}"/usr/share/man || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
tmpfiles_process clamav.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||
if [[ ! -f "${databases}" ]] ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database"
|
||||
ewarn "before starting clamav for the first time."
|
||||
fi
|
||||
|
||||
if ! systemd_is_booted ; then
|
||||
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||
ewarn "runlevels that previously contained clamd."
|
||||
fi
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
This patch enables us to tell CMake to find a particular python
|
||||
impl on a multi-impl system.
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -223,20 +223,26 @@ if(ENABLE_TESTS)
|
||||
find_package(Libcheck REQUIRED)
|
||||
|
||||
# Used to generate the test files and for the application feature test framework
|
||||
- find_package(Python3 REQUIRED)
|
||||
+ # In distros that support multiple implementations of python it is helpful to specify the impl to use
|
||||
+ if(DEFINED PYTHON_FIND_VERSION)
|
||||
+ find_package(Python3 EXACT ${PYTHON_FIND_VERSION} REQUIRED)
|
||||
+ else()
|
||||
+ find_package(Python3 REQUIRED)
|
||||
+ # Not requesting a specific python impl; try using pytest from the PATH
|
||||
+ execute_process(
|
||||
+ COMMAND pytest --version
|
||||
+ RESULT_VARIABLE PYTEST_EXIT_CODE
|
||||
+ ERROR_QUIET OUTPUT_QUIET
|
||||
+ )
|
||||
|
||||
- # First try using pytest from the PATH
|
||||
- execute_process(
|
||||
- COMMAND pytest --version
|
||||
- RESULT_VARIABLE PYTEST_EXIT_CODE
|
||||
- ERROR_QUIET OUTPUT_QUIET
|
||||
- )
|
||||
+ if(${PYTEST_EXIT_CODE} EQUAL 0)
|
||||
+ # pytest found in the path.
|
||||
+ set(PythonTest_COMMAND "pytest;-v")
|
||||
+ endif()
|
||||
+ endif()
|
||||
|
||||
- if(${PYTEST_EXIT_CODE} EQUAL 0)
|
||||
- # pytest found in the path.
|
||||
- set(PythonTest_COMMAND "pytest;-v")
|
||||
- else()
|
||||
- # Not in the path, try using: python3 -m pytest
|
||||
+ if("${PythonTest_COMMAND}" STREQUAL "")
|
||||
+ # Not in the path or specified a python impl; try using: python3 -m pytest
|
||||
execute_process(
|
||||
COMMAND ${Python3_EXECUTABLE} -m pytest --version
|
||||
RESULT_VARIABLE PYTEST_MODULE_EXIT_CODE
|
Binary file not shown.
@ -1,6 +1,4 @@
|
||||
AUX 1.5-meson-git-version-is-optional.patch 1143 BLAKE2B 55152a557ec7ee282ae22c9df3bab54bae2b26fbfbf59304c48e03536d69799e02f8d5005ef567de4ee9d0cac76b0372483b9bbb05e7c0d0d04d730bbcdd5edf SHA512 85ade30168a287a3cb22b0faf12a4176e1e244b8470411e6a821fe8631f45a33b343739f9fe282b8f8fedbf2770a6b518480943a0c6bb01045c7a97d2b71cd50
|
||||
DIST gcab-1.4.tar.xz 78240 BLAKE2B 8b857c116fab636db93463cee7d6b809c3c7b2bdf3896b7b5b5b66ebf270b284b356710933ec17584143bcef5c1f5c555811dd05ea98399f327047476a33fc16 SHA512 66a2e0d0a5888c555153356ce808f602053e71b76af19794db7e3bbf9516fe791805068838b4e208698cd645ada7a08610ac95f846fa81e00a9b955016306299
|
||||
DIST gcab-1.5.tar.xz 81728 BLAKE2B ba1793a8374e2dac412ca2807343781013f5be8d79e444ef0a136fbf903dd9a47809b3dec4703ebd19d196a7046a0c8405ae8463c2f7338fdc5eaf979436e8e1 SHA512 2a9b7d2720abbb5527d478ac760898ae254d08b7aa929fbb21753296e5a07c51d62e134a3f8b1b21d9b557d4093505194e09823ddbaf58465d37b372f37534b7
|
||||
EBUILD gcab-1.4.ebuild 1123 BLAKE2B b8169f5333b10bb26ec27ce57bb3f471c96fa9678bd7ed58db34a18a938054373e07ad8d8e2e9f2b585c2acd054f337219cce083eda6d4516267dbf136767023 SHA512 70ad8b8ec248aebb03e3806e50db1b370a7040ebec8e16e481fd343591fe20f84a160b1a476acc185c9acd70f8c3de7e993d307a3f14cd793691651c49249ebd
|
||||
EBUILD gcab-1.5.ebuild 1196 BLAKE2B 0c72673f05aeeb2b570483b6a2b375f8e5c8100c152b489f9f78bc994ac7ed7a31010906508871a8bdc44e20c8ac473ad2b78c68d330f47515f42e2d0893674e SHA512 a5f7a45f445250cf8e22d249c0ac15153965e0b326fde23b4d5e6da23bcc9b24c9fc378f610bdbbd9702d7afceef220c122df90e2cb172f10b914706f17a0039
|
||||
MISC metadata.xml 345 BLAKE2B d32d83f8c7d6db7c4d0c22125c547f3e838fd8154b2aa80c230ecc9c64a5edc84814f50bbc159c5921fcd767eea8c2eb65e08217eb284094a6fe122ee5a1e34a SHA512 83301d336de47bf8ab99a9b50097981433220039e2769c4dfe4779a7c2309fa69e5613fa209470f19e21de17a40177757e6abaa73c58f4145f0ef7ef1f1af5d4
|
||||
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
inherit gnome.org meson vala xdg
|
||||
|
||||
DESCRIPTION="Library and tool for working with Microsoft Cabinet (CAB) files"
|
||||
HOMEPAGE="https://wiki.gnome.org/msitools"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
IUSE="gtk-doc +introspection test vala"
|
||||
REQUIRED_USE="vala? ( introspection )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.62.0:2
|
||||
sys-libs/zlib
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
>=dev-util/meson-0.50.0
|
||||
dev-util/glib-utils
|
||||
gtk-doc? ( >=dev-util/gtk-doc-1.14
|
||||
app-text/docbook-xml-dtd:4.3 )
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_prepare() {
|
||||
xdg_src_prepare
|
||||
use vala && vala_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_use gtk-doc docs)
|
||||
$(meson_use introspection)
|
||||
-Dnls=true
|
||||
$(meson_use vala vapi)
|
||||
$(meson_use test tests)
|
||||
-Dinstalled_tests=false
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST gnome-autoar-0.4.3.tar.xz 50860 BLAKE2B ab7360d422e3f2d06cc00d765c203e6472a50d8cd9c220cc87b6fc40ca9bdfc3677a2a7d50b383b8f195bba1ffe72773b23773f703cbd24e5768f0f907790e10 SHA512 9f1ba584c4fc8e82d842fb21d3a113d64faa85f8f27cb7afb5d09919f510e350608b6a4e2f3ac527162ab338d008271bd430fb5b8ead265098c1810ffcbcef30
|
||||
EBUILD gnome-autoar-0.4.3.ebuild 1113 BLAKE2B 986bf33ec6114f06370df787b174ed4b661d6d1e67daa85a345c8b378b7ad382a384ec9533a6fe8537a2d37873e0d7480da96332d6c6da564472604d52350990 SHA512 d07257ec3fbf74eaec67079b3b0033d84ac911108accf70cdfd5c17827f502bf7f83762b489bb1144fec01e2fb53163fd22b3cc2187c09e92b2dea90cf4f7962
|
||||
EBUILD gnome-autoar-0.4.3.ebuild 1120 BLAKE2B 4f3cf06a80427f0ecceee45ea46a7da067070e1992cd9c8a85f733b8b04d341812407b31f06a7d09c1be01392dfdbf028122feb70f678e2129cdec6f253d85ff SHA512 8b25553735cb7009dd8b135aa6b2f07926ab594417dd2e6ff49b110b1fca8301bfb01f83b0a0cdee65f2fb8f14f19a0089b23ceda2b16532b97fc556d269fe74
|
||||
MISC metadata.xml 568 BLAKE2B 9080855f261c70b0ec720b1d4cfd72910991625e83504813107eba7782275e26726352298c893c9688f78e10f1d9db2f4a5e18e45594e79513b101fa33f8cc24 SHA512 58985c869210ef88e0f49af3dd8e8f2cc09bbbf3998098f44525cd4be856fffe32a159bf7ebaf7cb9bc45d2f2be9ae17589fa5ecd3f5a0f1b7cc0611d8281525
|
||||
|
@ -1,5 +1,6 @@
|
||||
AUX libarchive-3.6.1-CVE-2022-36227.patch 1124 BLAKE2B 2c92c81409acded94372e93f020098b6c0c6256e0d4c414a971870303d46f0b0dc98b3282b69af066c2089ac3b81a8adb2bc978fa8819767cd4ab99dc613ea74 SHA512 76e34e646dd0550ad04ebd789134c8e7ac02c95222c55f02afe5a8e74552209fd59c02873ac1230086f92ec7a67ddca23be607e0c60d944b215bdf49018a2761
|
||||
AUX libarchive-3.6.1-glibc-2.36.patch 1145 BLAKE2B 41d1d8cd22baf02810e9b405562a1d6ae696cea58352d35c5dc09f5691d6b9e0ad422477049cb3c7c18048fb92e83020100595a848ee0b56ee8fb5a26e96c822 SHA512 fd6060c67ae2ed509fb96218bb828c75065c8d8571bfce4e1c4ccd349eb58c6e38ccc3cee5ba7a8560f967d302113b2b8b7787e1bcc6d966c98162596c140c4c
|
||||
DIST libarchive-3.6.1.tar.xz 5241148 BLAKE2B e7b79e97545dabeac164069e87adbd2081d3bd75c22f80b3797c6e487a477b3f6347b6fc14c76668eb69f2f2e5dcdd5a33a694e0a292ce426b8d0d93435218cf SHA512 2e5a72edc468080c0e8f29e07d9c33826ffb246fa040ec42399bedeecf698b7555f69ffd15057ad79c0f50cd4926d43174599d99632b1b99ec6cd159c43a70b8
|
||||
DIST libarchive-3.6.1.tar.xz.asc 833 BLAKE2B 8a1ca13491f3b29b322ab281a80eaef9ca2cca680e18a0ed5ff626e8808b6c9a5eb4cdd6eaf00fb771f361d84d7785c103a9a0665d812f1f27ac66f5d1a2e1da SHA512 0411a9bdc9bb058b289b5cc102a220216420bf01ea213e771a16246ed48e670f3426e8555bac27262b686b40b7b2239907c4eef2bf43d812d73a69ccb2a5b00c
|
||||
EBUILD libarchive-3.6.1.ebuild 3511 BLAKE2B d4e9c007a0022d56f5585fd31a7f797656de0f94fb368f1f3cb504bbe2dd044b45bfb9aa0c4eabfb6f81a36ce78ebf7de5054adc5a01d96aaddc82473c5b60a6 SHA512 1918a04a77d52157a1feaa7de655c30a5117175a982cdb2d42ee5ec8087470250c5d31aa3a7534163bdca8b9dc2fb8fc7784c3b22185817cfbc1d791e4691b29
|
||||
EBUILD libarchive-3.6.1-r1.ebuild 3606 BLAKE2B 28095f55ca8667fd02376ed812b8506c83543dc4095f5f03b5a0cf43ee58753306186a3146043a396da1c619329da9f97b35754d3df5a4c1938bff2b166ebe62 SHA512 1c7751ccf6d7c68777f76c305ce0e3917ca0a597ea9c7a718bb52dc2ba19e1ea8172efb528e24f8d073925f4e54148f23f7a42595c3fcd18bbee064544c08cd8
|
||||
MISC metadata.xml 1224 BLAKE2B 538433528de5543ad8e912ce0d072340be3f6eeefe16320ef48b3c30a35ebdff4a32055edf89f36e4479ab1468c620871fcb5ba91bd66e81798093b4d0345949 SHA512 9f53d623a02334f675c06edea2829ce52e78d85e3894e684ae920a678eb47046393b7a93808c7e1761d30a69faa5986cd4922ae7ef8f1e2ef221de39869bd12b
|
||||
|
@ -0,0 +1,35 @@
|
||||
From bff38efe8c110469c5080d387bec62a6ca15b1a5 Mon Sep 17 00:00:00 2001
|
||||
From: obiwac <obiwac@gmail.com>
|
||||
Date: Fri, 22 Jul 2022 22:41:10 +0200
|
||||
Subject: [PATCH] libarchive: Handle a `calloc` returning NULL (fixes #1754)
|
||||
|
||||
---
|
||||
libarchive/archive_write.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/libarchive/archive_write.c b/libarchive/archive_write.c
|
||||
index 66592e826..27626b541 100644
|
||||
--- a/libarchive/archive_write.c
|
||||
+++ b/libarchive/archive_write.c
|
||||
@@ -201,6 +201,10 @@ __archive_write_allocate_filter(struct archive *_a)
|
||||
struct archive_write_filter *f;
|
||||
|
||||
f = calloc(1, sizeof(*f));
|
||||
+
|
||||
+ if (f == NULL)
|
||||
+ return (NULL);
|
||||
+
|
||||
f->archive = _a;
|
||||
f->state = ARCHIVE_WRITE_FILTER_STATE_NEW;
|
||||
if (a->filter_first == NULL)
|
||||
@@ -548,6 +552,10 @@ archive_write_open2(struct archive *_a, void *client_data,
|
||||
a->client_data = client_data;
|
||||
|
||||
client_filter = __archive_write_allocate_filter(_a);
|
||||
+
|
||||
+ if (client_filter == NULL)
|
||||
+ return (ARCHIVE_FATAL);
|
||||
+
|
||||
client_filter->open = archive_write_client_open;
|
||||
client_filter->write = archive_write_client_write;
|
||||
client_filter->close = archive_write_client_close;
|
@ -0,0 +1,132 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit multilib-minimal toolchain-funcs verify-sig
|
||||
|
||||
DESCRIPTION="Multi-format archive and compression library"
|
||||
HOMEPAGE="https://www.libarchive.org/"
|
||||
SRC_URI="
|
||||
https://www.libarchive.de/downloads/${P}.tar.xz
|
||||
verify-sig? ( https://www.libarchive.de/downloads/${P}.tar.xz.asc )
|
||||
"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 public-domain"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle static-libs xattr zstd"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libarchive.org.asc
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib[${MULTILIB_USEDEP}]
|
||||
acl? ( virtual/acl[${MULTILIB_USEDEP}] )
|
||||
blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
|
||||
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
|
||||
expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
|
||||
!expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
|
||||
iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
||||
kernel_linux? (
|
||||
xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
||||
lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
|
||||
lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
|
||||
lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
|
||||
nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
|
||||
zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
kernel_linux? (
|
||||
virtual/os-headers
|
||||
e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
verify-sig? ( sec-keys/openpgp-keys-libarchive )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-glibc-2.36.patch
|
||||
# https://github.com/libarchive/libarchive/pull/1759
|
||||
"${FILESDIR}"/${P}-CVE-2022-36227.patch
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
|
||||
|
||||
local myconf=(
|
||||
$(use_enable acl)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable xattr)
|
||||
$(use_with blake2 libb2)
|
||||
$(use_with bzip2 bz2lib)
|
||||
$(use_with expat)
|
||||
$(use_with !expat xml2)
|
||||
$(use_with iconv)
|
||||
$(use_with lz4)
|
||||
$(use_with lzma)
|
||||
$(use_with lzo lzo2)
|
||||
$(use_with nettle)
|
||||
--with-zlib
|
||||
$(use_with zstd)
|
||||
|
||||
# Windows-specific
|
||||
--without-cng
|
||||
)
|
||||
if multilib_is_native_abi ; then
|
||||
myconf+=(
|
||||
--enable-bsdcat="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdcpio="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdtar="$(tc-is-static-only && echo static || echo shared)"
|
||||
)
|
||||
else
|
||||
myconf+=(
|
||||
--disable-bsdcat
|
||||
--disable-bsdcpio
|
||||
--disable-bsdtar
|
||||
)
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake
|
||||
else
|
||||
emake libarchive.la
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
mkdir -p "${T}"/bin || die
|
||||
# tests fail when lbzip2[symlink] is used in place of ref bunzip2
|
||||
ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die
|
||||
local -x PATH=${T}/bin:${PATH}
|
||||
multilib-minimal_src_test
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# sandbox is breaking long symlink behavior
|
||||
local -x SANDBOX_ON=0
|
||||
local -x LD_PRELOAD=
|
||||
# some locales trigger different output that breaks tests
|
||||
local -x LC_ALL=C
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake DESTDIR="${D}" install
|
||||
else
|
||||
local install_targets=(
|
||||
install-includeHEADERS
|
||||
install-libLTLIBRARIES
|
||||
install-pkgconfigDATA
|
||||
)
|
||||
emake DESTDIR="${D}" "${install_targets[@]}"
|
||||
fi
|
||||
|
||||
# Libs.private: should be used from libarchive.pc instead
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
@ -1,130 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit multilib-minimal toolchain-funcs verify-sig
|
||||
|
||||
DESCRIPTION="Multi-format archive and compression library"
|
||||
HOMEPAGE="https://www.libarchive.org/"
|
||||
SRC_URI="
|
||||
https://www.libarchive.de/downloads/${P}.tar.xz
|
||||
verify-sig? ( https://www.libarchive.de/downloads/${P}.tar.xz.asc )
|
||||
"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 public-domain"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle static-libs xattr zstd"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libarchive.org.asc
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib[${MULTILIB_USEDEP}]
|
||||
acl? ( virtual/acl[${MULTILIB_USEDEP}] )
|
||||
blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
|
||||
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
|
||||
expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
|
||||
!expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
|
||||
iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
||||
kernel_linux? (
|
||||
xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
||||
lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
|
||||
lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
|
||||
lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
|
||||
nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
|
||||
zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
kernel_linux? (
|
||||
virtual/os-headers
|
||||
e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
verify-sig? ( sec-keys/openpgp-keys-libarchive )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-glibc-2.36.patch
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
|
||||
|
||||
local myconf=(
|
||||
$(use_enable acl)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable xattr)
|
||||
$(use_with blake2 libb2)
|
||||
$(use_with bzip2 bz2lib)
|
||||
$(use_with expat)
|
||||
$(use_with !expat xml2)
|
||||
$(use_with iconv)
|
||||
$(use_with lz4)
|
||||
$(use_with lzma)
|
||||
$(use_with lzo lzo2)
|
||||
$(use_with nettle)
|
||||
--with-zlib
|
||||
$(use_with zstd)
|
||||
|
||||
# Windows-specific
|
||||
--without-cng
|
||||
)
|
||||
if multilib_is_native_abi ; then
|
||||
myconf+=(
|
||||
--enable-bsdcat="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdcpio="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdtar="$(tc-is-static-only && echo static || echo shared)"
|
||||
)
|
||||
else
|
||||
myconf+=(
|
||||
--disable-bsdcat
|
||||
--disable-bsdcpio
|
||||
--disable-bsdtar
|
||||
)
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake
|
||||
else
|
||||
emake libarchive.la
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
mkdir -p "${T}"/bin || die
|
||||
# tests fail when lbzip2[symlink] is used in place of ref bunzip2
|
||||
ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die
|
||||
local -x PATH=${T}/bin:${PATH}
|
||||
multilib-minimal_src_test
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# sandbox is breaking long symlink behavior
|
||||
local -x SANDBOX_ON=0
|
||||
local -x LD_PRELOAD=
|
||||
# some locales trigger different output that breaks tests
|
||||
local -x LC_ALL=C
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake DESTDIR="${D}" install
|
||||
else
|
||||
local install_targets=(
|
||||
install-includeHEADERS
|
||||
install-libLTLIBRARIES
|
||||
install-pkgconfigDATA
|
||||
)
|
||||
emake DESTDIR="${D}" "${install_targets[@]}"
|
||||
fi
|
||||
|
||||
# Libs.private: should be used from libarchive.pc instead
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
AUX qpress-1.1-fix-build-system.patch 231 BLAKE2B e8fa8dad2a660d37e927f254804ad9a5e556d7f6058c0ed28a46c08070d8f790765eefe41506216cc6f7e11d1813d55ef39fdd6a65470ccc85ac63e052196da4 SHA512 9e6123baed7917d484aba0dfadd9f0382f6739bf7ee4600cd5248034276bd6cd7e71a5ebe1314734182caaa2448a1fe33639c57d611d08459f3d8fef718ba618
|
||||
AUX qpress-1.1-fix-includes.patch 158 BLAKE2B fa446d129cfc56fc7d53c342df334810311de9c5e903ee8402e78b196583d5caefee29bdc2381e4f5c9193f57a328f196e68e0c79031ca37fbe40ce7d7aedeed SHA512 321cdafc7ca71597c4ccf94a8493ff5156cb7103266d5c71ad4e650efded68e91dc655ae567562f5bc28913b137d9d3f142fbe295703864277e4e53729bf4658
|
||||
DIST qpress-11-source.zip 26998 BLAKE2B 08dd943f248f7211e8588fbaf7a2c2eee988d33b17aebfb5f1178647d80314fde576caec9b4aab67d69689f5931d086f88fd51204c1df6d3abc2cca583830380 SHA512 986754cca8bb2cdcfc7e197f7e123c6b2da90db840642a6385f14613f49f7ec6b2c18944838405fe35d5382d71fcd5d69050a036dda4c5de2e588d144e16ea6b
|
||||
EBUILD qpress-1.1-r1.ebuild 601 BLAKE2B 9be02cacbfb26adea05db4a2eef5a4ae549aa7599501571b607528320c67bef9ffa9addfa2c3d3e486085aca15524229bfe51758e00b37c6a4e4d836c2e35443 SHA512 ee3ed62855bbebaac2036ab511abd526b6384a181fe332ed94faae8ea31c81d9405bddd947debb6e4c70e796a99d3fbb025cee7776b7654707086cc70b409693
|
||||
MISC metadata.xml 407 BLAKE2B ab107cbc4c6048f4c83a38eb81c55d47a3038ca92aa431afc54d2ae77c936ef6e40eb91436f8e9bb763180635fa41ff6de80de45688c5ef64a9e4973ecd2ac81 SHA512 1c353d7c2ee066109e5adac1fb327715dacfb830d066032971d7beac80add3749ac0f49ed5125fdbc63910c5cb371a533a4023fdb8081351ad665bb32b6d8cfa
|
||||
AUX qpress-20220819-fix-build-system.patch 1079 BLAKE2B 1d8817e15d37697a47de6f9b9eddcce93d97052d69e5fbd4e4b16338c658accfc96cc3fe13e869dc70462b8554324cb84ad22fda13b7d3fd9189e9d6568e76ad SHA512 4a1c6134d58130dc75dc387ef138845bc18818a0cea096409ce72952a052b45e00a0cc6e2afd2039b71154d30f05d7aa9b9fa9c1765dda3473821a0a0ff24100
|
||||
DIST qpress-20220819.tar.gz 25150 BLAKE2B e19a2bca747ec48507288b1b1ad8e053cfb35558f5936dff4ff83c548a3ab613a640813fc3b793e7acb1b65f371af414635d7e469e92c014b580efce4f84ee90 SHA512 f9cf4f87c25fdaa9b8ed12bbfb8d95c3036a7c5c1a0548042ba460b79787a83d5cd2ad93f2da84e5b6715ade5e137024541a3f29e076d4236d0507e2c604113c
|
||||
EBUILD qpress-20220819.ebuild 482 BLAKE2B a72d325bc86f99870232f7450a09d7f6a0469ca276930167ef84469371eca1d3dd782da51f8ff49d4d43de4993d16850b07fa89281a3a67e027504534ea57a36 SHA512 a34bfa6aa59d9b04c964b820214d84afe7df02b38db2aedda8c513136f6008135c8f4b984584b7eb14b474f4f23a402e0e8ee111cdcb28cfc9635fbd73cdcc38
|
||||
MISC metadata.xml 488 BLAKE2B 931482680609670cbb65cc79943cca69d01067e8ae15545dfb469d6a1f18619237964fdf42ce1453b3535fc8a68355a35a3ebcd4d45b761d49a254f86ea17250 SHA512 ea1f899fde5b7a54a82e8c77d996fd87efed3784f68cb8f6b1857cb7b5b7ea8d5573e572f3a9578c9956a65ef751124a526ac8af7a53bc77b3fd3f041118304e
|
||||
|
@ -1,7 +0,0 @@
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -1,2 +1 @@
|
||||
-g++: qpress.cpp aio.cpp quicklz.c utilities.cpp
|
||||
- g++ -O3 -o qpress qpress.cpp aio.cpp quicklz.c utilities.cpp -lpthread
|
||||
\ No newline at end of file
|
||||
+qpress: aio.o quicklz.o utilities.o
|
@ -1,7 +0,0 @@
|
||||
--- a/qpress.cpp
|
||||
+++ b/qpress.cpp
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <unistd.h>
|
||||
/*
|
||||
qpress - portable high-speed file archiver
|
||||
Copyright Lasse Reinhold 2006-2010
|
@ -0,0 +1,40 @@
|
||||
From 1627b18fdf76e978bdd05b985eb6efb1286fa1da Mon Sep 17 00:00:00 2001
|
||||
From: Davide Cavalca <dcavalca@fedoraproject.org>
|
||||
Date: Thu, 24 Nov 2022 16:13:30 -0800
|
||||
Subject: [PATCH] Rework makefile to ease packaging
|
||||
|
||||
---
|
||||
makefile | 22 +++++++++++++++++-----
|
||||
1 file changed, 17 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/makefile b/makefile
|
||||
index 4890f9d..349fbb2 100755
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -1,9 +1,21 @@
|
||||
-PREFIX = /usr/local
|
||||
+DESTDIR ?=
|
||||
+PREFIX ?= /usr/local
|
||||
+CXX ?= g++
|
||||
+CXXFLAGS ?= -O3
|
||||
+CXXFLAGS += -Wall -Wextra -Werror
|
||||
+LDFLAGS ?=
|
||||
|
||||
-g++: qpress.cpp aio.cpp quicklz.c utilities.cpp
|
||||
- g++ -O3 -o qpress -x c quicklz.c -x c++ qpress.cpp aio.cpp utilities.cpp -lpthread -Wall -Wextra -Werror
|
||||
+qpress: qpress.cpp aio.cpp quicklz.c utilities.cpp
|
||||
+ $(CXX) $(CXXFLAGS) -o qpress -x c quicklz.c -x c++ qpress.cpp aio.cpp utilities.cpp -lpthread $(LDFLAGS)
|
||||
|
||||
install: qpress
|
||||
- install -m 0755 qpress $(PREFIX)/bin
|
||||
+ install -D -p -m 0755 -t $(DESTDIR)$(PREFIX)/bin qpress
|
||||
|
||||
-.PHONY: install g++
|
||||
+clean:
|
||||
+ rm -f qpress
|
||||
+
|
||||
+all: qpress
|
||||
+
|
||||
+g++: qpress
|
||||
+
|
||||
+.PHONY: clean install
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A portable file archiver using QuickLZ algorithm"
|
||||
HOMEPAGE="http://www.quicklz.com/"
|
||||
SRC_URI="http://www.quicklz.com/${PN}-${PV/./}-source.zip"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="GPL-1 GPL-2 GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.1-fix-includes.patch"
|
||||
"${FILESDIR}/${PN}-1.1-fix-build-system.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CC CXX
|
||||
export LDLIBS="-lpthread"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin qpress
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="A portable file archiver using QuickLZ algorithm"
|
||||
HOMEPAGE="https://github.com/PierreLvx/qpress"
|
||||
SRC_URI="https://github.com/PierreLvx/qpress/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-1 GPL-2 GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-build-system.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
||||
dobin qpress
|
||||
dodoc readme.md
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Windows"
|
||||
HOMEPAGE="https://www.geekbench.com/"
|
||||
SRC_URI="https://cdn.geekbench.com/Geekbench-${PV}-Linux.tar.gz"
|
||||
S="${WORKDIR}/Geekbench-${PV}-Linux"
|
||||
|
||||
KEYWORDS="-* ~amd64"
|
||||
LICENSE="geekbench"
|
||||
SLOT="5"
|
||||
|
||||
RESTRICT="bindist mirror"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/geekbench5/geekbench5
|
||||
opt/geekbench5/geekbench_x86_64
|
||||
"
|
||||
|
||||
pkg_nofetch() {
|
||||
elog "Please download ${A} from ${HOMEPAGE}/download/linux"
|
||||
elog "and place it in your DISTDIR directory."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /opt/geekbench5
|
||||
doexe geekbench5 geekbench_x86_64
|
||||
|
||||
insinto /opt/geekbench5
|
||||
doins geekbench.plar
|
||||
|
||||
dodir /opt/bin
|
||||
dosym ../geekbench5/geekbench5 /opt/bin/geekbench5
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you have purchased a commercial license, you can enter"
|
||||
elog "your email address and your license key with the following command:"
|
||||
elog "geekbench5 -r <email address> <license key>"
|
||||
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST brasero-3.12.3.tar.xz 3156012 BLAKE2B e657f29719164b786e29a4974102cf6b0eb3316bec84a08838bd62b952c43994e0187f6cfeaa5080fa794b1ff1684553a3d643cd309b2957a8d4191c7ea8cfbf SHA512 0e3c97b2a754f7178207db390e33b832fcaed3856ae5dee447e5c26d712728302dbebbf839a4fb7565f63b3ebb1e4936e20739482a8114e6fe2700805659270a
|
||||
EBUILD brasero-3.12.3.ebuild 1811 BLAKE2B 84e138caf14fea363de23817d23c7ab47719f0c2b22613f5cbc4dda3e4e4ce5d989d932146b798bd6861ab600d4bce24aeadb46b40ff64808ae14b81149d8100 SHA512 d49cba2dc1d4c0e0bf3d6ca5e48914bd7cb05178614c44553debe7cdc1914831016e2aaef6d744c0082406a0a89272e86965e26a0ed54f73176060b0ebe429ae
|
||||
EBUILD brasero-3.12.3.ebuild 1818 BLAKE2B 1cd85c960761a6f158317092844768e7c83ce9d7ad9dcb07b656c698c9b17821164ae3c351723c2c3a7ad1642827195ce20813244d83112a47e3acc92b9e1fdf SHA512 a7b98630ba4cbe5a496796a1c8214e90e2dd9f94fd61a05cf6b82d2c2c6f3b2d4029da2dcabd744db907ebe9a38702ebddf116c6ca1edf3c0b1ec93a88801888
|
||||
MISC metadata.xml 737 BLAKE2B 6660d69e0f3e33cd34c7ca424ad04e94e8b806c00d786d7d8aff8c543bc2ba3b89423175635957d83b8ec8eea948f5f6811b2103ba8301a489d3af99bc847125 SHA512 02493f9f119572a902e2e54976799881d570a78e942c86429d0c49a06b5efe7b314ce403773a08ece15c56b14d5cc8ed5b700e030835d4cdcd7d16f87bce805b
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue