diff options
author | Stuart Shelton <stuart@shelton.me> | 2014-12-05 18:19:24 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2014-12-05 18:19:24 +0000 |
commit | 95a95355b230ef9bd8e19db3f04bbd7c4b0a4551 (patch) | |
tree | b0bccbaa53234e42b7ef5404a789f75f5dfa7343 /app-antivirus | |
parent | Add dev-libs/apr-1.5.1-r1 with F_FULLFSYNC support (diff) | |
download | srcshelton-95a95355b230ef9bd8e19db3f04bbd7c4b0a4551.tar.gz srcshelton-95a95355b230ef9bd8e19db3f04bbd7c4b0a4551.tar.bz2 srcshelton-95a95355b230ef9bd8e19db3f04bbd7c4b0a4551.zip |
Add app-antivirus/clamav-0.98.5
Diffstat (limited to 'app-antivirus')
-rw-r--r-- | app-antivirus/clamav/Manifest | 2 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.98.5.ebuild | 143 |
2 files changed, 145 insertions, 0 deletions
diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest index 6eb81863..624bfc68 100644 --- a/app-antivirus/clamav/Manifest +++ b/app-antivirus/clamav/Manifest @@ -16,9 +16,11 @@ AUX tmpfiles.d/clamav.conf 37 SHA256 2cef5ca92467f7e6953c4a00ce955f84f3de8b92fd0 DIST clamav-0.97.8.tar.gz 14609966 SHA256 d872bdfd692d440bc2ade2f4e5a7befc37feb8885cd81adfb6346a8214aafc12 SHA512 e3a80bbfc90922f7f49521d1ab53ec63fb948a42d448ecaa933023cbb256f35e5b695305bd2d56480ee1f94ac93703d10aa4193566c521a1fa62f2c0e1019fda WHIRLPOOL b0ddc29edd096007abc0183400f2b3ee54cf87f13bb2eab2388c444f038fab33eb25b6b5d678449d49da2258017a630ff2e6b36c27028557038a033b415b026c DIST clamav-0.98.1.tar.gz 15431484 SHA256 35f5e84d734cdd4532c1cc6c92560c5b31d1c24f2e1e203bef0ca1351eb223dc SHA512 5daac24d346a03acc7e4d8f9e5962a009a908326663008557cbc2af4426e6059cbebbb8fac6d718edf9a567075b823c457f3f9a3aea3c558f5ee272274030b42 WHIRLPOOL 0af4baeefb5e384db0679bdbad2902ced213adb4993c61755fb4065845106779b3467e61dd6fc38b4d7fcecf492069e2a02178a259c618fd6e2f309faf9d1eb1 DIST clamav-0.98.4.tar.gz 15537593 SHA256 d3006747abcf750f395a8bfa8267ab314c7b63196c4b41e7717948aaaafa3e1c SHA512 f928db33c7e4258ddd2ede86b7b998547dc6beee0f886a9f567aa89734bc62526a4f5fb60646cddb1c13d35837b8c04f98a74d57c8d348ca90a4fe8a4af261d8 WHIRLPOOL f15adc30018418a7468b8c6548d4d2add61936ec19317af653e5f5debb6491518236a74b2aa0e119c119b1e74e6f8cfdff5a6c21a4b0e6c7608fe1e42206cf0e +DIST clamav-0.98.5.tar.gz 15146379 SHA256 9c2f37d5fa9033936468237f6f4b29289f30791caa84765ef510acb56c8daa4d SHA512 4fd3af9e8e828b426ac4aaa867b356df05eb84396b62ab02715630683371f5a9b7a417d495236952a5e112b700ec0304c3760351855d10edc9fa8c032a64c52c WHIRLPOOL d7d32199c9fed92a6a7dd827f7ddac9b6a9689f29d315a7f525d8cf9e96bcf37087b743cc0b181d7e76f6f47897ac93f587de9f9ed336bd7a7552a320608332a DIST clamav-0.98.tar.gz 37075245 SHA256 113450537f46ed47f010a179be333a0dcd79eac13f264dce26db7aac8d52b3b6 SHA512 532f9fa2616065879b3ecace2672fad26cf3863943e0ecb8835fbed7e5907600ef50b8df820a08a6586bf77c9bf7c6e50af671f31b7c3ee372c31745a173099f WHIRLPOOL a4ee9efd09193aee7fd740dbb60acabdd4a1f6d5171a4e0fa220441457e3431bf99b27c7300ca0e3e124bb5406f65acf106fa51bfc34d87335ca83ccbc942979 EBUILD clamav-0.97.8-r2.ebuild 4132 SHA256 015d2b890af1e3263833e639216946d503d58982090b6ddefb54f6b8b5a8dbe9 SHA512 53f85ea7fb2fb2300cc029790b8b1f8016b05bc4fbde5f481d474aa2d6a3f534d22c484b0c15eade6b2757dd7a388aedcfa8c239d2418a168c8dfe484ab987ac WHIRLPOOL 738ef9bf09d241b3a30b699a276a2bf994d4d4939292284d75b2ce65129b3c7bad3105aaf83b4859318f41ff32aa4b26f973a6593e425490ac4a9c0a0aa759b7 EBUILD clamav-0.97.8.ebuild 3806 SHA256 53a6f292608f8d7eac9fac218db0754b41e2e1705ab8ebf6a161ee79e0be43e7 SHA512 a44c09bba44d56c8779a174303a734024363c21d50e9a68a0cdf613d061bd0c5bbeaf6c4046239c8c5bd302d72dc900810a9ed0966d36f22dfcb95cc24823cf3 WHIRLPOOL 769a8fc35a752dd3cbdf2b367552d9a5261e9544bd8864b0f876c8cc2443636c8e9790991f28f78057fd71a93dd937bef43629db51cbd1655662570d7881b2e5 EBUILD clamav-0.98.1.ebuild 4495 SHA256 ded92c61fcfc87ea3f957a068e924067979a202eb66c8c1676c6257ac9094ef4 SHA512 487f61b841bf45372eb2d315ee9c8ee9585bcd121a6b7659d2d56a7e3867ba35c44e8d76f15ba0eb625754da9dfc0bc791f6d548116d0b385afc24bb11f45f02 WHIRLPOOL b2648c984aab69fb41789fb6acf316fbe90e78e22b2cff21f7c72a054c09ce0a88c3c5f9a1a9b8ff8117cfc82a64a27c14c44a7c916b9452a9be7b7c17ecdebf EBUILD clamav-0.98.4.ebuild 4721 SHA256 e762f54cc6ed6286a4abea41b30214fdf35dff59a5321d037cadaab21f2556c5 SHA512 f53d1a377858d6c3a57da328968d06673d5e171269c610985b1bda9b5a7673ad47d3dc1aa942f47cf9ccd131e80f1807ce1573f25a99085c70c15b7cbafcb079 WHIRLPOOL a98261138d1713b8865d4c394c0b8f9baad82a9d6021a46157055106d3e1f2907106885849bf7cce5ca7520576cb5113d6fb6bd2841ff10f05cf4854da2d27c2 +EBUILD clamav-0.98.5.ebuild 4848 SHA256 07c398be861fd94f32675826eee16e127632b13c78cd60c6d076371e60bf7745 SHA512 fb5c0a3a403dd4814c4994824d3f7cf4beb047c28ffa4fb60100ecfe5a0310e03d67beb860657d687f8b99d8be6287d269540520cb8dc6f1893e23a685f93c60 WHIRLPOOL a0ef4d322cd45697637a1a5d2f6e23349f37e301cc8d648779820c81ef860a2982d73b79b56e18e08bc9af66cf84fb203f7c739ab0ebe67680e1c99003ed4f44 EBUILD clamav-0.98.ebuild 4498 SHA256 4fd0ff823fd357122515caa4565c4df427839e359737de654094f75c088ca13b SHA512 dcf6c219628c899fe73be806eb3ccc63ba0153e47fdf1ee1402cea857bceefebc65dc483bec909c00a01e5f3e58197776d57e941064935cfaa6d1d83c5a99f1e WHIRLPOOL a6dfbc26988cbf1b0f88babebe0c3286474bdbaed0a502036225dd85e779b51560b740912744dad6f479473b6b24c06aa7db281a9ecda2a601cd78e01498797d diff --git a/app-antivirus/clamav/clamav-0.98.5.ebuild b/app-antivirus/clamav/clamav-0.98.5.ebuild new file mode 100644 index 00000000..eba80b9d --- /dev/null +++ b/app-antivirus/clamav/clamav-0.98.5.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.98.5.ebuild,v 1.7 2014/12/02 11:57:10 ago Exp $ + +EAPI=5 + +inherit eutils flag-o-matic user systemd + +DESCRIPTION="Clam Anti-Virus Scanner" +HOMEPAGE="http://www.clamav.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="bzip2 clamdtop iconv ipv6 milter metadata-analysis-api selinux static-libs systemd uclibc" + +CDEPEND="bzip2? ( app-arch/bzip2 ) + clamdtop? ( sys-libs/ncurses ) + iconv? ( virtual/libiconv ) + metadata-analysis-api? ( dev-libs/json-c ) + milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) + dev-libs/libtommath + >=sys-libs/zlib-1.2.2 + dev-libs/openssl + sys-devel/libtool" +# openssl is now *required* see this link as to why +# http://www.clamav.net/lang/en/2014/02/22/introducing-openssl-as-a-dependency-to-clamav/ +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-clamav )" + +DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE ) + +pkg_setup() { + enewgroup clamav + enewuser clamav -1 -1 /dev/null clamav +} + +src_prepare() { + epatch "${FILESDIR}"/"${PN}"-0.98.4-x32.patch + + use ppc64 && append-flags -mminimal-toc + use uclibc && export ac_cv_type_error_t=yes +} + +src_configure() { + econf \ + --disable-experimental \ + --disable-fanotify \ + --enable-id-check \ + --with-dbdir="${EPREFIX}"/var/lib/clamav \ + --with-system-tommath \ + --with-zlib="${EPREFIX}"/usr \ + $(use_enable bzip2) \ + $(use_enable clamdtop) \ + $(use_enable ipv6) \ + $(use_enable milter) \ + $(use_enable static-libs static) \ + $(use_with iconv) \ + $(use_with metadata-analysis-api libjson /usr) +} + +src_install() { + default + + rm -rf "${ED}"/var/lib/clamav + newinitd "${FILESDIR}"/clamd.initd-r6 clamd + newconfd "${FILESDIR}"/clamd.conf-r1 clamd + + if use systemd; then + systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" + systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" + systemd_dounit "${FILESDIR}/clamd.service" + systemd_dounit "${FILESDIR}/freshclamd.service" + fi + + keepdir /var/lib/clamav + fowners clamav:clamav /var/lib/clamav + keepdir /var/log/clamav + fowners clamav:clamav /var/log/clamav + + dodir /etc/logrotate.d + insinto /etc/logrotate.d + newins "${FILESDIR}"/clamav.logrotate clamav + + # Modify /etc/{clamd,freshclam}.conf to be usable out of the box + sed -i -e "s:^\(Example\):\# \1:" \ + -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ + -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ + -e "s:.*\(User\) .*:\1 clamav:" \ + -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ + -e "s:^\#\(LogTime\).*:\1 yes:" \ + -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ + "${ED}"/etc/clamd.conf.sample || die + sed -i -e "s:^\(Example\):\# \1:" \ + -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ + -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ + -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ + -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ + -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ + -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ + "${ED}"/etc/freshclam.conf.sample || die + + if use milter ; then + # MilterSocket one to include ' /' because there is a 2nd line for + # inet: which we want to leave + dodoc "${FILESDIR}"/clamav-milter.README.gentoo + sed -i -e "s:^\(Example\):\# \1:" \ + -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ + -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ + -e "s:.*\(User\) .*:\1 clamav:" \ + -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ + -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ + -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ + "${ED}"/etc/clamav-milter.conf.sample || die + cat >> "${ED}"/etc/conf.d/clamd <<-EOF + MILTER_NICELEVEL=19 + START_MILTER=no + EOF + + use systemd && systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service + fi + + for i in clamd freshclam clamav-milter + do + [[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,} + done + + prune_libtool_files --all +} + +pkg_postinst() { + 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 + if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then + ewarn "You must run freshclam manually to populate the virus database files" + ewarn "before starting clamav for the first time.\n" + fi +} |