From d0734bb8233f8a8708509cdd4fd41ec234708c80 Mon Sep 17 00:00:00 2001 From: Martin Jackson Date: Fri, 13 Aug 2010 04:20:22 +0000 Subject: app-antivirus/clamav-unofficial-sigs: Version bump. svn path=/sunrise/; revision=11128 --- app-antivirus/clamav-unofficial-sigs/ChangeLog | 4 ++ app-antivirus/clamav-unofficial-sigs/Manifest | 6 +- .../clamav-unofficial-sigs-3.7.1.ebuild | 65 ++++++++++++++++++++++ .../clamav-unofficial-sigs-3.7.ebuild | 65 ---------------------- 4 files changed, 72 insertions(+), 68 deletions(-) create mode 100644 app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.1.ebuild delete mode 100644 app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.ebuild diff --git a/app-antivirus/clamav-unofficial-sigs/ChangeLog b/app-antivirus/clamav-unofficial-sigs/ChangeLog index 1c6cba208..db6e25141 100644 --- a/app-antivirus/clamav-unofficial-sigs/ChangeLog +++ b/app-antivirus/clamav-unofficial-sigs/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 13 Aug 2010; Michael Orlitzky + -clamav-unofficial-sigs-3.7.ebuild, +clamav-unofficial-sigs-3.7.1.ebuild: + Version bump. + 02 Apr 2010; Michael Orlitzky +clamav-unofficial-sigs-3.7.ebuild, +metadata.xml: New ebuild to address bug 272872. Thanks to Felix Leimbach and steveb for diff --git a/app-antivirus/clamav-unofficial-sigs/Manifest b/app-antivirus/clamav-unofficial-sigs/Manifest index f35cf7db3..2eb9537f4 100644 --- a/app-antivirus/clamav-unofficial-sigs/Manifest +++ b/app-antivirus/clamav-unofficial-sigs/Manifest @@ -1,4 +1,4 @@ -DIST clamav-unofficial-sigs-3.7.tar.gz 36400 RMD160 4da9d4aef891ef0a3138160340b011b1c521425a SHA1 c226d904d3658ecd0d419d70fa0d2fc893be27b5 SHA256 2dc968c76b5d06a84eb85cae490d354207b57226ac450b4bad1d92cdc83395d1 -EBUILD clamav-unofficial-sigs-3.7.ebuild 1979 RMD160 f7628b53c6d114ff71266babc9fdea6313fe5979 SHA1 2672be42e61b3087802228563eca832239a73fe9 SHA256 6b6183ae407ed23a1ce955f3f12e710b4b4485d428069fdba24221d7f5dd72c5 -MISC ChangeLog 350 RMD160 38a6f28cccec6ad9ddb66195e8ede8e8398d62eb SHA1 45f4f20809a873bd44b00e48681d4651e40bcb08 SHA256 6b2ef176074c50d5491cfed01ba3b20e92a41ed3aabf147baa210f52b721e9d0 +DIST clamav-unofficial-sigs-3.7.1.tar.gz 36594 RMD160 9dff9ddef3d2d000c5579b7aadca369c4d9a29cd SHA1 a4d589135929e171f927b0f7cdf298ea71c7f9ca SHA256 7f8de46da43d8edd06ee1dcd1bc4563e61b23c9bbd368ccf0265576e46f4d90c +EBUILD clamav-unofficial-sigs-3.7.1.ebuild 1979 RMD160 f7628b53c6d114ff71266babc9fdea6313fe5979 SHA1 2672be42e61b3087802228563eca832239a73fe9 SHA256 6b6183ae407ed23a1ce955f3f12e710b4b4485d428069fdba24221d7f5dd72c5 +MISC ChangeLog 498 RMD160 59326cb6ee3efb25a8467e8b780b575fc549d3f0 SHA1 20dec88f1d52143042203bd61a18f273e1c49627 SHA256 d9c4ef740fba90ad4b7c8fe536bdf1e91d11cfe1bceec35c8af1aaf5833d8a40 MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f diff --git a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.1.ebuild b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.1.ebuild new file mode 100644 index 000000000..ffd95bb1e --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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 ~x86" +IUSE="" + +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_compile() { + # First, fix the paths contained in the configuration file. + sed -i -e '$a\pkg_mgr="emerge"' \ + -e "\$a\\pkg_rm=\"emerge -C ${PN}\"" \ + -e 's~/var/run/clamd.socket~/var/run/clamav/clamd.sock~' \ + -e 's~/var/run/clamd.pid~/var/run/clamav/clamd.pid~' \ + ${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 install. + sed -i -e "s~/usr/unofficial-dbs~/var/lib/${PN}~" ${PN}.conf \ + || die 'failed to update the work_dir variable' +} + +src_install() { + dosbin ${PN}.sh || die + + # 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 -m0755 -o clamav -g clamav + dodir /var/lib/${PN} || die "failed to create working directory" + + insinto /etc/logrotate.d + doins ${PN}-logrotate || die + + insinto /etc + doins ${PN}.conf || die + + doman ${PN}.8 || die + dodoc CHANGELOG INSTALL README || die +} + +pkg_postinst() { + elog "You will need to set up your /etc/${PN}.conf file." + elog "For details, please see the ${PN}(8) manual page." + elog "" + elog "Don't forget to set user_configuration_complete=\"yes\"." +} diff --git a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.ebuild b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.ebuild deleted file mode 100644 index ffd95bb1e..000000000 --- a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -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 ~x86" -IUSE="" - -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_compile() { - # First, fix the paths contained in the configuration file. - sed -i -e '$a\pkg_mgr="emerge"' \ - -e "\$a\\pkg_rm=\"emerge -C ${PN}\"" \ - -e 's~/var/run/clamd.socket~/var/run/clamav/clamd.sock~' \ - -e 's~/var/run/clamd.pid~/var/run/clamav/clamd.pid~' \ - ${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 install. - sed -i -e "s~/usr/unofficial-dbs~/var/lib/${PN}~" ${PN}.conf \ - || die 'failed to update the work_dir variable' -} - -src_install() { - dosbin ${PN}.sh || die - - # 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 -m0755 -o clamav -g clamav - dodir /var/lib/${PN} || die "failed to create working directory" - - insinto /etc/logrotate.d - doins ${PN}-logrotate || die - - insinto /etc - doins ${PN}.conf || die - - doman ${PN}.8 || die - dodoc CHANGELOG INSTALL README || die -} - -pkg_postinst() { - elog "You will need to set up your /etc/${PN}.conf file." - elog "For details, please see the ${PN}(8) manual page." - elog "" - elog "Don't forget to set user_configuration_complete=\"yes\"." -} -- cgit v1.2.3-65-gdbad