Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/clamav-unofficial-sigs/
Date: Sun, 03 Mar 2019 15:34:09
Message-Id: 1551626968.d25e9ab93d797539b14c5394ddda5d7b850ed071.mjo@gentoo
1 commit: d25e9ab93d797539b14c5394ddda5d7b850ed071
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 3 15:27:34 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 3 15:29:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d25e9ab9
7
8 app-antivirus/clamav-unofficial-sigs: remove "unused" version 3.7.2.
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 app-antivirus/clamav-unofficial-sigs/Manifest | 1 -
14 .../clamav-unofficial-sigs-3.7.2.ebuild | 89 ----------------------
15 2 files changed, 90 deletions(-)
16
17 diff --git a/app-antivirus/clamav-unofficial-sigs/Manifest b/app-antivirus/clamav-unofficial-sigs/Manifest
18 index 7b61422eb31..af52a5be8e2 100644
19 --- a/app-antivirus/clamav-unofficial-sigs/Manifest
20 +++ b/app-antivirus/clamav-unofficial-sigs/Manifest
21 @@ -1,2 +1 @@
22 -DIST clamav-unofficial-sigs-3.7.2.tar.gz 38549 BLAKE2B 2f00e9adf5f54e2b38c602da56a2daeb70618123ab4e59a74804885252f3cad2c23f7b9b10f4ec664c6977bca849947b83d0fc69f76669dbae58ebff54c6755b SHA512 ee07bf521cca229bc85acb887c8e520149955732797a9d220e24f09cb9e89f9bd189ad77dc781c03c60bdaaec2bfa91a6c96cf7a0b689759cddf3ff231b8b0a4
23 DIST clamav-unofficial-sigs-5.6.2.tar.gz 50931 BLAKE2B 6fea42f8f76ae5344c2b96c9203d2b09e755573d03f2b9d3d9ee2a488150fbb6f598e052b730daf12c551920a71fd8daad1dc10002fca12fa4a74554cf7d445e SHA512 79978db065a22d778490d0a2673f5a0bb7ab73e42de64563e7d26ac23459f7e5b2e73b0548e1ea6483e3c5f43eed65cdbc6814037cc0c46a339366a0150e5427
24
25 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
26 deleted file mode 100644
27 index 6eddf2b6683..00000000000
28 --- a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild
29 +++ /dev/null
30 @@ -1,89 +0,0 @@
31 -# Copyright 1999-2015 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=5
35 -
36 -DESCRIPTION="Downloads and installs third-party clamav signatures"
37 -HOMEPAGE="https://sourceforge.net/projects/unofficial-sigs"
38 -SRC_URI="mirror://sourceforge/unofficial-sigs/${P}.tar.gz"
39 -
40 -LICENSE="BSD"
41 -SLOT="0"
42 -KEYWORDS="amd64 x86"
43 -IUSE=""
44 -
45 -# We need its user/group.
46 -DEPEND="app-antivirus/clamav"
47 -
48 -# The script relies on either net-misc/socat, or Perl's
49 -# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships
50 -# with IO::Socket::UNIX, so we can leave out net-misc/socat here.
51 -RDEPEND="${DEPEND}
52 - app-crypt/gnupg
53 - dev-lang/perl
54 - net-dns/bind-tools
55 - net-misc/curl"
56 -
57 -src_prepare() {
58 - # First, fix the paths contained in the configuration file. Eventually
59 - # these should be moved under /run, but for now we keep them sync'ed
60 - # with the default clamd.conf.
61 - local pid_default="/var/run/clamd.pid"
62 - local pid_gentoo="/var/run/clamav/clamd.pid"
63 -
64 - # clamd listens on a local socket by default. The clamd_socket
65 - # setting needs to be uncommented in the configuration file for it
66 - # to take effect.
67 - local socket_default="#clamd_socket=\"/var/run/clamd.socket\""
68 - local socket_gentoo="clamd_socket=\"/var/run/clamav/clamd.sock\""
69 -
70 - sed -i -e '$a\pkg_mgr="emerge"' \
71 - -e "\$a\\pkg_rm=\"emerge -C ${PN}\"" \
72 - -e "s~${socket_default}~${socket_gentoo}~" \
73 - -e "s~${pid_default}~${pid_gentoo}~" \
74 - "${PN}.conf" \
75 - || die "failed to update paths in the ${PN}.conf file"
76 -
77 - # Now, change the script's working directory to point to
78 - # /var/lib/${PN}. We'll need to make this writable by the clamav
79 - # user during src_install.
80 - sed -i -e "s~/usr/unofficial-dbs~/var/lib/${PN}~" "${PN}.conf" \
81 - || die "failed to update the work_dir variable in ${PN}.conf"
82 -
83 - # Tell the script that it's been configured.
84 - local cfged_default='user_configuration_complete="no"'
85 - local cfged_gentoo='user_configuration_complete="yes"'
86 - sed -i "s/${cfged_default}/${cfged_gentoo}/" "${PN}.conf" \
87 - || die "failed to set user configuration completed in ${PN}.conf"
88 -}
89 -
90 -src_install() {
91 - dosbin "${PN}.sh"
92 -
93 - # We set the script's working directory to /var/lib/${PN} in
94 - # src_compile, so make sure that the permissions are set correctly
95 - # here. By default, it runs as clamav/clamav.
96 - diropts -m 0755 -o clamav -g clamav
97 - dodir "/var/lib/${PN}"
98 -
99 - insinto /etc/logrotate.d
100 - doins "${PN}-logrotate"
101 -
102 - insinto /etc
103 - doins "${PN}.conf"
104 -
105 - doman "${PN}.8"
106 - dodoc CHANGELOG INSTALL README
107 -}
108 -
109 -pkg_postinst() {
110 - elog ''
111 - elog "You will need to select databases in /etc/${PN}.conf."
112 - elog "For details, please see the ${PN}(8) manual page."
113 - elog ''
114 - elog 'An up-to-date description of the available Sanesecurity'
115 - elog 'databases is available at,'
116 - elog ''
117 - elog ' http://sanesecurity.com/usage/signatures/'
118 - elog ''
119 -}