diff options
author | Matt Jolly <Matt.Jolly@footclan.ninja> | 2023-08-16 19:05:43 +1000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-25 00:24:52 +0100 |
commit | 2fa67d52859506bb39e338278b18e93b336d7f11 (patch) | |
tree | 795a821f81f5d2096ffd934d7c18869ffae38317 /app-antivirus/clamav | |
parent | profiles/arch/x86: mask USE=system-mspack for clamav (diff) | |
download | gentoo-2fa67d52859506bb39e338278b18e93b336d7f11.tar.gz gentoo-2fa67d52859506bb39e338278b18e93b336d7f11.tar.bz2 gentoo-2fa67d52859506bb39e338278b18e93b336d7f11.zip |
app-antivirus/clamav: drop 1.0.1
Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-antivirus/clamav')
-rw-r--r-- | app-antivirus/clamav/Manifest | 4 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-1.0.1.ebuild | 387 |
2 files changed, 0 insertions, 391 deletions
diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest index 076aef87b318..6a3a16cad6dd 100644 --- a/app-antivirus/clamav/Manifest +++ b/app-antivirus/clamav/Manifest @@ -26,7 +26,6 @@ DIST cexpr-0.6.0.crate 17966 BLAKE2B cb46f066eb1f4dbac00ec86dc3e562db7ee8ea5ff17 DIST cfg-if-1.0.0.crate 7934 BLAKE2B e99a5589c11d79d77a4537b34ce0a45d37b981c123b79b807cea836c89fc3926d693458893baca2882448d3d44e3f64e06141f6d916b748daa10b8cc1ae16d1b SHA512 0fb16a8882fd30e86b62c5143b1cb18ab564e84e75bd1f28fd12f24ffdc4a42e0d2e012a99abb606c12efe3c11061ff5bf8e24ab053e550ae083f7d90f6576ff DIST clamav-0.103.8.tar.gz 16524716 BLAKE2B 207a6087de9134586215a4f3fe02cb071135c38fac792f6cb2d4c4a3c9e596bff5dd0a0ac3dd9f6018771d866fa9e64223933f96cec3ee6e8ce17a743c3d952f SHA512 8e030fef5788cf4df8f4d878363df1e5d9abcaa209b9f998f57334ede481d755b33958b5e9bb82be9643cb7442814711e4c9978314cadd7eb9161fee03b74439 DIST clamav-0.103.9.tar.gz 16530718 BLAKE2B 3eb4fb366769c46700e7fa3b2d508875b3c670436585c047fb399e02e2b89f289b56c0f412f85f0a125e98dd2b56e2f798747dd642897cd857ea984336cd641f SHA512 198b596144273e1113f69ad45776746c6cc444d3a5c0931ad74de16b18b3a901b2b5366327a26e53865cdd807a8c17115bd55fe33921bea53bfa8527048eea99 -DIST clamav-1.0.1.tar.gz 10320098 BLAKE2B f7672e4a5870e39d589c655215202f4a8beb3ec82e898086105452f6fcb55cb888fe33879fb04b85a290244aa9c556cbe96a379b4e790b04a5dcbed712f49c33 SHA512 521ebcc19e149b76e1d95c3d4e313ad83ec89703d68ef9b0bd74251bdb115c2d48b7cf0bf183f502118e495c7e1fb91665ff861642acd178c5b60f22e9e24433 DIST clamav-1.0.2.tar.gz 10332308 BLAKE2B 98b95079bab6d4072fb301837d2c2a4f1c1b0f4feebc9c04a97f23408e7a17ee3d401c5ed087c70d8c324d49e9ee83afb363e884f62f8e4747d9c9306f8edc50 SHA512 6d3f52633e9a33c2608c3f8f33cf175e4ad5ed1639594f6683d23e47b9ef01305ff4f21643fcc7aacd5462bae1cc8022f609fe24c8181a148b545db84d8035c8 DIST clamav-1.1.0.tar.gz 10297532 BLAKE2B 36629f9bf23a55591002517ecbad798484d351f060220ab554797d4acd356b89cc68f83f81a415d532c51fde33f1882ddaaa847c1935abb6b12d571b3976d66f SHA512 1a1cfd2e43518eafa127304704193e96162410d676fca6c868fd42f871412bbe91f379bb5c74abd89c14cfa3d580339bb79c10868776e46427a7afd9b55dc851 DIST clamav-1.1.1.tar.gz 10297961 BLAKE2B 329743cfa232bbd5e05af08a243edbed121a416c16dd121aac18e193618dda525725bc2b8475282ca6fc20ae1908fa02aeb3253e9509c3dbf3ceb3a588174725 SHA512 c5426d4e3861996a784bda86bb7ef70a834313c57aa09c6225939a4908e67266312e0cf8e709a0a808fb0a6f48c6c8708c4e2f6e1930f8283b5453ed37424d9c @@ -148,12 +147,10 @@ DIST png-0.17.9.crate 88839 BLAKE2B b218fcaa166f142ced8ae75a47bb587015d0a449210f DIST prettyplease-0.2.10.crate 56634 BLAKE2B f49c4fa42369d366f88656fbb716bacfc442b59d8ff47fa39e74238eca33f07aefd78289eea5a53055aed2522dff530de5130b0b319633b902fc895b03b47925 SHA512 80b10b3460cd37928d638f1223ced0c1b56047cd5be98722ee1cd37cfa3c991c8a78b3603d89349c22e201d653526e0321c5d685e0377bc75d5995e2428926f7 DIST prettyplease-0.2.4.crate 53478 BLAKE2B d83d392c7e7e0a4fa082d5c84615b012cf1988ec0a475be99313f95bcee47a11eb8c710fb992a18c0c6627b39e27b39fa767c4fa4c1c48f54cc4698f14577697 SHA512 68ea70cdbccad0e91c251bb66b317e126bda3c34fbd2d50f95549f7ee3e48566a7eafb77f58e40e3f298bc2a34f2a5b0d900067c717b117602dc57284d789480 DIST primal-check-0.3.3.crate 8720 BLAKE2B 9c7b5273a5df414c57b4104b9bf795b853b433da3a5d91a1b878ef9b7cdb6a810572dfb8fae11543a106760e449b886f6e10a12347f043171f5d7947b30f2b20 SHA512 d56fcee65802b1ca272515589574786dfd066099c55a536cb1076193242859074918651c4fa3c1a7dab4fd13ba91c8f6a2a5b0789a6cd24faffc092edf27d75e -DIST proc-macro2-1.0.51.crate 41804 BLAKE2B 579e5a157da81cd8350a6407603e5f8102bb9b6618ea8e81ced1692a6a6f4b57bec35aeb965b643f2542f65a3b9965fbbcf7e0ade35cf159270583d34665a628 SHA512 10ad77a5d05437c1b2c40a8f82389d081e64993171aa6259e8dca98d9afb04f5fb870f2037ad626a280d59c1a89fd4482bead701d744d6fb7c893bd9e78dfc1f DIST proc-macro2-1.0.56.crate 44454 BLAKE2B b2a1f28979245a784a4b3a0af8cb04bd01ef3e7aba32c45122fc05a6cceddb1b7303890827f1a2cb99b0b2ae013cd772bffd6e94ea226f0030cde867d6c22aad SHA512 511fd8332eca47ed834736d405e18d53d83642cf528bebb8fd67fa5561e19b0a43c359b3e8020ecd28f9fafdb065c484ca360abc0287a0f97e94d4f779145f03 DIST proc-macro2-1.0.64.crate 44848 BLAKE2B 4422122d9299eff3bfbb4507c4a117fef7c0906cab5a680933d482b7f9b49480bcb9c8172b412e70bf87dd0737b8532e90c310bf083f144292cc72190059ba3b SHA512 884fd14ff23c19420692e35a38f88bb6a766a09da105759cd958c315b9360a2c49cfe61ceaa3122307d44040195ec9dffb12b6d0ce224fbac5d3701621a12b04 DIST proc-macro2-1.0.66.crate 43575 BLAKE2B 9eb3e816b00fcf625c280ba14ad269f5893d0523473a24de07c21945f6f932fbd08efb3c339b35d903245510e3f065e1478439b024a325f2bb9f97bc7bcbb18d SHA512 85f5a762f9411142e5ac28144bd380f07f0633ed2e44d8a2545be9fb8f42abaca6b5d45631b4be83b8e8b9beca7438bc52f25615c3a410a3a1249474b1aca407 DIST qoi-0.4.1.crate 71135 BLAKE2B 8b4e2ebfdd6df425efb1326912e8db02258e570320fdeef465aa8b03f3248cd811bedaa17c15902f851083cc1db06a2b500aeddf734345eb25af0d835300b2f0 SHA512 884cde33bfb2d02716daa5f309890093bdb7b3f53eb06aca0b6eff0b7a66fd67cb8b9acd510d19e3ae7718930add971e871532a1605e4989639bf72f59329377 -DIST quote-1.0.23.crate 28058 BLAKE2B 81c483fa26b36b5c4dbe85b386a74f5bfeaa854a99c0d678374507613da916a60e3f5b14d4a4d295e1c9ef0413fa1f16447df8f19a9db8cb0485b7a5c327fdc1 SHA512 3bce6846dda94d285de15771549099e60df39c8395c498b372c90a240f77df31d6d9048127913ec1c7ed8f3a189470ade1db2bede406bb00fa715ea641ec87c2 DIST quote-1.0.26.crate 28397 BLAKE2B b468a5e9350843ea81e540d17c9fcb302b46fbd450e10280c5fff6fd7c98a439df8c3d3d47e551bc6d67ed02052b5b5c65d215d5ff8ee34f045747e75c1ba37e SHA512 6fcfe4d31f601aa60beb858c25df217421b0a184d185eebc7a4cb9fbf97c687992b77bebd8671a9e6193716387c3e926fed9b75a08684eb2d9a5b155fbc321a5 DIST quote-1.0.29.crate 28345 BLAKE2B 3aeb637a4139730348775caab4d48173650d8bdce08247263d741ccc657dfff7f2facff05725bcaa73486818d394c392c64ecbc61bae3f5b612104aec16ff289 SHA512 d686a3943dca059a8e79689c77e6e8f6dbfa9b16a1a7ecdd27099339b77a55334252eaa8b4340e79c35ebb1f6e4deeb3f6356dfd02484f9c724e66a74387e30b DIST rayon-1.6.1.crate 166330 BLAKE2B 5bbc439e0c88780b8d80cb36d4b4164e698a1189bd140e8c84d9f6a466023de0cd69a1f24c4217d595ae9af1f61aca6829461648152116c6bebeef0f0e686e50 SHA512 2e03585170e59f4388359817d67a43cd10a2244382615ae39bf84210db03a6dfec3b75d8a23800b8faaa31f45e8df4c44fbc343f02e18dd3dc0572c207791e73 @@ -267,6 +264,5 @@ DIST windows_x86_64_gnullvm-0.48.0.crate 366536 BLAKE2B 295dc3aef18c604d15799780 DIST windows_x86_64_msvc-0.42.2.crate 666936 BLAKE2B bc3a456e7f8bc272f8978ec69506ec9d89f97b7582ebbe05d8bd57bdf8156ef62d0d2dc6137a97e81d54059d70db97a24af9a038adff357f5dfd28805d6193b5 SHA512 53a35f438903fceb59e36bd2ac331773fb8e6c8c5a6d984e79021761f91b3b4a23efe49d219667a4d0d23dcdbf906da9c24e74fb1cff93395b5c55ff524e3788 DIST windows_x86_64_msvc-0.48.0.crate 671422 BLAKE2B abb063610dcc38581657133182b7d9efeed5553df67bd2bd6f30f1668a645186e4824f9ef556a5abc84ace10b1b437b6325bbda6df5a64ce880d7dcb743ac786 SHA512 6e598b8e3ac54912a8ebac01b0dd2c58fd282072527d7fedc7f6ebecdfb7dcb09ae46c22293bc0117849437f8b053db5e90406e7a38276f0f0afd06be3966795 DIST zune-inflate-0.2.42.crate 37288 BLAKE2B 2d60c589607583826570c2877e1deae1a4dcf2c76ef705efc792cbf0f8bef2a1f4c4e75380efa890479b2cf168c34c7054b520aa799ccb20d43ae94526752458 SHA512 ea2c070a3df93c519f4360ee17fd1c51d8c6e194c61b391ab8c40d81c86bc7d2021bf08f97a106710806cdb16797d710b7722197edc9cce25de3c3752549bf09 -DIST zune-inflate-0.2.50.crate 37058 BLAKE2B 6e6686708ce4f83dc753cf93af7304e177568fe77dbef5b1feec6b38731da7ff077a2b1e02c24e270e013066c240c2a936b8a25a5a0a79f9f242831c1b46a810 SHA512 02fa9bbc4a30e145f034581212333788a24ad9756b1d2efef3a8b6967389fcb4258fe5c71936eb16b75238965021ae796525a754a94ff96d2d45f4e0509f74c0 DIST zune-inflate-0.2.53.crate 36273 BLAKE2B f9541ae3a15422a13a731cd1f43df475dd9f5f0c3934247d70a61278e041f8b182ff3b7e053cdc38231c1f07187805e42e3656dda91a4f577817f9d46722b4e5 SHA512 6238def319045557a640f8a60f8c525b0749e6eed0c9856a52e0e33fc6f02d3a32a9c9145b317aee45bac3f2fe7a1e76eb14ac35519f6e895a2eec47cc5ad5d3 DIST zune-inflate-0.2.54.crate 37973 BLAKE2B 8bdb532fae0da1d61fc9fc72ea72a9339116e1952e76ba7376f0ba0ea65101b88cd1e4766f516f21028a5ea3459e5590e7a54175a47f136cc572ed9abec2da2f SHA512 0de30f310121c1fed42612b7bcb50631d699195a77c7ce4094729f502e63d1ae38034d6054d95b6825e7e9a2afb7bb614ff123e12736163fee04a46ef1dc56bd diff --git a/app-antivirus/clamav/clamav-1.0.1.ebuild b/app-antivirus/clamav/clamav-1.0.1.ebuild deleted file mode 100644 index 3df69b59aceb..000000000000 --- a/app-antivirus/clamav/clamav-1.0.1.ebuild +++ /dev/null @@ -1,387 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_MAX_SLOT=13 -PYTHON_COMPAT=( python3_{9..11} ) - -# Auto-Generated by cargo-ebuild 0.5.4 -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.12.0 - bytemuck-1.13.0 - 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.1 - env_logger-0.9.3 - exr-1.5.3 - fastrand-1.9.0 - flate2-1.0.25 - flume-0.10.14 - futures-core-0.3.26 - futures-sink-0.3.26 - generic-array-0.14.6 - getrandom-0.2.8 - gif-0.11.4 - glob-0.3.1 - half-2.2.1 - hashbrown-0.12.3 - heck-0.3.3 - hermit-abi-0.1.19 - hermit-abi-0.2.6 - hex-0.4.3 - humantime-2.1.0 - image-0.24.5 - indexmap-1.9.2 - instant-0.1.12 - itoa-1.0.5 - jpeg-decoder-0.3.0 - js-sys-0.3.61 - lazy_static-1.4.0 - lazycell-1.3.0 - lebe-0.5.2 - libc-0.2.139 - 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.3 - num-complex-0.4.3 - num-integer-0.1.45 - num-rational-0.4.1 - num-traits-0.2.15 - num_cpus-1.15.0 - once_cell-1.17.1 - 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.51 - quote-1.0.23 - rayon-1.6.1 - rayon-core-1.10.2 - redox_syscall-0.2.16 - regex-1.7.1 - 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.12 - scoped_threadpool-0.1.9 - scopeguard-1.1.0 - serde-1.0.152 - serde_derive-1.0.152 - serde_json-1.0.93 - sha2-0.10.6 - shlex-1.1.0 - simd-adler32-0.3.4 - smallvec-1.10.0 - spin-0.9.5 - strength_reduce-0.2.4 - strsim-0.8.0 - syn-1.0.107 - tempfile-3.3.0 - termcolor-1.2.0 - textwrap-0.11.0 - thiserror-1.0.38 - thiserror-impl-1.0.38 - threadpool-1.8.1 - tiff-0.8.1 - toml-0.5.11 - transpose-0.2.2 - typenum-1.16.0 - unicode-ident-1.0.6 - unicode-segmentation-1.10.1 - 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.84 - wasm-bindgen-backend-0.2.84 - wasm-bindgen-macro-0.2.84 - wasm-bindgen-macro-support-0.2.84 - wasm-bindgen-shared-0.2.84 - weezl-0.1.7 - which-4.4.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 - zune-inflate-0.2.50 -" - -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" -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 -} |