diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2013-12-27 20:06:59 +0000 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2013-12-27 20:06:59 +0000 |
commit | 03706bd5ce9c0498d0c2ea80333fa84a12d78c24 (patch) | |
tree | 7f5fe7038f112c24380ed7d84e8289fc35da7745 /app-antivirus | |
parent | amd64 stable, bug 495960. (diff) | |
download | historical-03706bd5ce9c0498d0c2ea80333fa84a12d78c24.tar.gz historical-03706bd5ce9c0498d0c2ea80333fa84a12d78c24.tar.bz2 historical-03706bd5ce9c0498d0c2ea80333fa84a12d78c24.zip |
New package: app-antivirus/clamav-unofficial-sigs, to download and install third-party clamav signatures. Fixes bug #272872.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x6F48D3DA05C2DADB!
Diffstat (limited to 'app-antivirus')
4 files changed, 133 insertions, 0 deletions
diff --git a/app-antivirus/clamav-unofficial-sigs/ChangeLog b/app-antivirus/clamav-unofficial-sigs/ChangeLog new file mode 100644 index 000000000000..6a55ba43e030 --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-antivirus/clamav-unofficial-sigs +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav-unofficial-sigs/ChangeLog,v 1.1 2013/12/27 20:06:46 mjo Exp $ + +*clamav-unofficial-sigs-3.7.2 (27 Dec 2013) + + 27 Dec 2013; Michael Orlitzky <mjo@gentoo.org> + +clamav-unofficial-sigs-3.7.2.ebuild, +metadata.xml: + New package: app-antivirus/clamav-unofficial-sigs, to download and install + third-party clamav signatures. Fixes bug #272872. diff --git a/app-antivirus/clamav-unofficial-sigs/Manifest b/app-antivirus/clamav-unofficial-sigs/Manifest new file mode 100644 index 000000000000..03ac7a3e53ae --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/Manifest @@ -0,0 +1,26 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST clamav-unofficial-sigs-3.7.2.tar.gz 38549 SHA256 96e98e6e4434c5950fa9831c6a43236fed7eabae44beded16171305cf3f9bdb9 SHA512 ee07bf521cca229bc85acb887c8e520149955732797a9d220e24f09cb9e89f9bd189ad77dc781c03c60bdaaec2bfa91a6c96cf7a0b689759cddf3ff231b8b0a4 WHIRLPOOL af4925c8a9bb8c09472131f98026b809da13e122a530c4a48614014b8156a259d37303cb1042da98d0bd8b0f4abef3cd7c05f2d549f87e1b7cd533d4a8d4d188 +EBUILD clamav-unofficial-sigs-3.7.2.ebuild 2948 SHA256 c8974daef51a50a7b6f1c76cd0e36302386b904b84471ab1e0f4436704af6bba SHA512 8261304a0bdba315ac175cb15f5b372ccd5067c1b015594ca189b8a835450c6857f9cbf0e0fbb238f76f76669d7769e0799faffce0382a95852f5db25cecc130 WHIRLPOOL 4f4348dc9c774414602cdbd94f5be5c3fb211c0268f55d603f2d5a2188c16d68f226ed3d5976c9d611bb81c31819fdc001772ea8854063cfbf35083896a12e55 +MISC ChangeLog 520 SHA256 bd07a26313e8fb2e034a6c8fdbe0bb21d1c9daa7940d5c85beadd81dbdb68d8e SHA512 7603f31edadfd711d243b170da82ed048e13ffd0f16e30fa41bf60d042cfd8e904b6693f9b0882b88b9066cb14334b8e98f7db83e97665810ccebd34dd3e2d8f WHIRLPOOL c5aac32eea47079562043685f8502bef1130b1b564001a54a52ccd1fd7a082130b69d63afb6b16eae6bcc740e8fd0db62cb1c61970d49c6227642c7bdf655c70 +MISC metadata.xml 204 SHA256 952ab0590546361a53b9508ff73fa79f531e792e091f2ea2925d0c4be30a10c2 SHA512 123731ee05ba6ec77a736c2aa55148c0c329327a340ff9fe7b2c9ec1df5fb2f68d63495ef53710cc6b94fa4a81f831d0d40b83db6f48a2b046ae1f95fdb406af WHIRLPOOL ff9e85f6f972856b1340abffbede50056a6c6b98c36f17f43b58106dc87fefaab23f15f563c18bcd801fd6da69e9c49af92b349aa93f85ab9637f4f5ab5db3c5 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQJ8BAEBCABmBQJSvd3aXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxNEU5RDcyRDdCMUFGREVGQzBCNDFDMUY2 +RjQ4RDNEQTA1QzJEQURCAAoJEG9I09oFwtrbzC4P/1fA8JIKEjA2cZU1td8pM2jK +q3Zl5sqCv76Qkq3Lx3swAgeJ0IABY6W3rzsG/9jFXmE0vNI2hN7p3pyY2o8gCxXG +UUvBJ3Rdg/VE69bded7QonW1Y8Hk0tYH6WRUtvl4Eg2AR+n7FUFhXsd5dEX8Qpcp +WCI5MyyYBcKXJvJZ+VhJdUK16kC8Eb0QgUfKyV70st5rXa+65jETTMYuHv6kYcXm +IwhN/P1sDlibEPkHFNa8mGOkzpQIRuZ87WbLxCKaNif0HWHOPdkyakYLE1tDebcL +eT1YrGe9ZFQAc7+FP22jFnKyb0xg6iABiiUlFGQ4Rg0BRPqu3c2SnczpWbYuk9/F +YsufQEc5dZWYT1gtGWwXJVU1xHNZ86PTjhPxdbirBxc+fnv5mssMTPKrmrztvF1o +6nGWusvt1r3hNj7mvsNIfc/DgoGd6EY5dQ+X6ULQpGRFBEeuVFzhr6YHfDYoyThI +1lwc+tjv3f0uDkUopq1ykzgzr7h2ZNhyAS1w4BQ5PNlnYfQnSCq3fLR0TcbLizRy +1wuuoTBIKM8wASHbvA02HqRbVkcs9wDRTM75JdEjAC+/L7cSkLhZfBy5c5ihTz2E +yQLvIcb9XpxakudKG1hIglgE28yw+Z3jtae1d/BHFUaEgG5zQD3WPUndOCDBqdNN +STqLxctRa/Ian810vWLZ +=NRRG +-----END PGP SIGNATURE----- diff --git a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild new file mode 100644 index 000000000000..f645a806b6ae --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild,v 1.1 2013/12/27 20:06:46 mjo Exp $ + +EAPI=5 + +DESCRIPTION="Downloads and installs third-party clamav signatures" +HOMEPAGE="http://sourceforge.net/projects/unofficial-sigs" +SRC_URI="mirror://sourceforge/unofficial-sigs/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +# We need its user/group. +DEPEND="app-antivirus/clamav" + +# The script relies on either net-misc/socat, or Perl's +# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships +# with IO::Socket::UNIX, so we can leave out net-misc/socat here. +RDEPEND="${DEPEND} + app-crypt/gnupg + dev-lang/perl + net-dns/bind-tools + net-misc/curl" + +src_prepare() { + # First, fix the paths contained in the configuration file. Eventually + # these should be moved under /run, but for now we keep them sync'ed + # with the default clamd.conf. + local pid_default="/var/run/clamd.pid" + local pid_gentoo="/var/run/clamav/clamd.pid" + + # clamd listens on a local socket by default. The clamd_socket + # setting needs to be uncommented in the configuration file for it + # to take effect. + local socket_default="#clamd_socket=\"/var/run/clamd.socket\"" + local socket_gentoo="clamd_socket=\"/var/run/clamav/clamd.sock\"" + + sed -i -e '$a\pkg_mgr="emerge"' \ + -e "\$a\\pkg_rm=\"emerge -C ${PN}\"" \ + -e "s~${socket_default}~${socket_gentoo}~" \ + -e "s~${pid_default}~${pid_gentoo}~" \ + "${PN}.conf" \ + || die "failed to update paths in the ${PN}.conf file" + + # Now, change the script's working directory to point to + # /var/lib/${PN}. We'll need to make this writable by the clamav + # user during src_install. + sed -i -e "s~/usr/unofficial-dbs~/var/lib/${PN}~" "${PN}.conf" \ + || die "failed to update the work_dir variable in ${PN}.conf" + + # Tell the script that it's been configured. + local cfged_default='user_configuration_complete="no"' + local cfged_gentoo='user_configuration_complete="yes"' + sed -i "s/${cfged_default}/${cfged_gentoo}/" "${PN}.conf" \ + || die "failed to set user configuration completed in ${PN}.conf" +} + +src_install() { + dosbin "${PN}.sh" + + # We set the script's working directory to /var/lib/${PN} in + # src_compile, so make sure that the permissions are set correctly + # here. By default, it runs as clamav/clamav. + diropts -m 0755 -o clamav -g clamav + dodir "/var/lib/${PN}" + + insinto /etc/logrotate.d + doins "${PN}-logrotate" + + insinto /etc + doins "${PN}.conf" + + doman "${PN}.8" + dodoc CHANGELOG INSTALL README +} + +pkg_postinst() { + elog '' + elog "You will need to select databases in /etc/${PN}.conf." + elog "For details, please see the ${PN}(8) manual page." + elog '' + elog 'An up-to-date description of the available Sanesecurity' + elog 'databases is available at,' + elog '' + elog ' http://sanesecurity.com/usage/signatures/' + elog '' +} diff --git a/app-antivirus/clamav-unofficial-sigs/metadata.xml b/app-antivirus/clamav-unofficial-sigs/metadata.xml new file mode 100644 index 000000000000..f3b97aaa8e99 --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mjo@gentoo.org</email> + </maintainer> +</pkgmetadata> |