diff options
author | Pacho Ramos <pacho@gentoo.org> | 2014-04-13 11:28:55 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2014-04-13 11:28:55 +0000 |
commit | dcaabd82fdeb141493b555216a47fda98c661ba2 (patch) | |
tree | c8b25dc997dd8a18310d07b437d5cf9cd0103d86 /app-antivirus | |
parent | Stable for ppc, wrt bug #505948 (diff) | |
download | historical-dcaabd82fdeb141493b555216a47fda98c661ba2.tar.gz historical-dcaabd82fdeb141493b555216a47fda98c661ba2.tar.bz2 historical-dcaabd82fdeb141493b555216a47fda98c661ba2.zip |
Fix milter unit file (#495304 by Graham Murray)
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'app-antivirus')
-rw-r--r-- | app-antivirus/clamav/ChangeLog | 8 | ||||
-rw-r--r-- | app-antivirus/clamav/Manifest | 10 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.98.1-r1.ebuild | 134 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-milter.service-r1 | 13 |
4 files changed, 160 insertions, 5 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index fbcf55bae0ba..4ca16c6182b3 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-antivirus/clamav # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.472 2014/04/05 14:23:16 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.473 2014/04/13 11:28:54 pacho Exp $ + +*clamav-0.98.1-r1 (13 Apr 2014) + + 13 Apr 2014; Pacho Ramos <pacho@gentoo.org> +clamav-0.98.1-r1.ebuild, + +files/clamav-milter.service-r1: + Fix milter unit file (#495304 by Graham Murray) 05 Apr 2014; Jeroen Roovers <jer@gentoo.org> clamav-0.98.1.ebuild: Stable for HPPA (bug #506588). diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest index 870e849dad51..b161399acf36 100644 --- a/app-antivirus/clamav/Manifest +++ b/app-antivirus/clamav/Manifest @@ -3,6 +3,7 @@ Hash: SHA256 AUX clamav-milter.README.gentoo 1124 SHA256 5e7b142b68964bc3463b077e5698fa77cace45ea9612258b1e1849cee944dd11 SHA512 1c6160e48eddd28f83ec5f24757f788781cef55789d1934dfccc12c7c5e5635a226d26b0983cab7344c142f5a2f1db172640b1d0e6c840a6fa83abed9be1211a WHIRLPOOL f85b17448fd93205e2f38d024b96410cc8d143d077201e0a1b8f4cda95ae2447a70eded4cb90968a593ad2637229300fa04bfe5dba96d3d68c2d09c105ee3f16 AUX clamav-milter.service 284 SHA256 b371725acfd102b6b7ee15ab0059e8795b7d3716d041d0dc11d0fe8f7454d5a9 SHA512 442148ac3c42ecbb893de5c6edde337b72a745d20f6c5ffa33131f9a0b2daadcffac39b686ada986a5ab500ea7b9153c448abc1b819e15fef488da1812bb0cee WHIRLPOOL 56b4ed79e06c764df37022f0638ceddb5fe8185c54b2e460b076a46ed4f5a68b67fb7966d424dabe836bfd7d6b9d770eb60cad4633ee17083baa50ad2c0a89cd +AUX clamav-milter.service-r1 303 SHA256 c1e553156c14bfb007df467c13be0b3885ea79b4777711b6417fac5371461d90 SHA512 5dc30e3c57d9bff6595155e8299336c579c713aed429ab770f10d7678dd74691a135aa2070a825ddb726fdabcb001c19caeb993c1cd9a6fcf95d1d47f7160540 WHIRLPOOL d2cb6e8caa83845d2f9ca7ffd7f2d0382a633a34463599515d46dcfde87fadfffdeed62f4763b5f519268bd03b99c49c19c3196359eab06062866ca38f96d680 AUX clamav.logrotate 355 SHA256 ab91f784d5098d2162be9277e3a006bdb392d9d89975838ad4ac7dfd8b418170 SHA512 39e8027db4cb2cf1b45dac6777dbd922640b41f47deb34199d910560d56431051432b68ab387101542d8f98069253c85bb2ab39c274eb99c2db26c5967abf512 WHIRLPOOL 0d201d6909d309e22526ed0d40da588602d0b34367b9e7d54b42d6626c7b7bac1150c1671740cead5d900baa8a6a098feaeb1127251d9a45eb35203016197193 AUX clamd.conf 234 SHA256 17bf4fe3596dc5b145e4163d85181e2edcaa214df3cf9072d852ba0e7a569891 SHA512 ec069cf7aaf10b42a701938b57e1fde1ee15afd1d4af928edfa7e5d505ba8b3edaaceac449da0f4ac6beea09a3fb73453526ba0cd3a04e13259c1a2720f42f78 WHIRLPOOL 667ad1567bb398a20785096f2c2c7c72be4853ee3b0674c4fcc20eb2c9123815c273f40938961e348252e3376c4402a3f952b2a72d3bb3f0907aadb7ab77b8ed AUX clamd.conf-r1 129 SHA256 28ebd47810b0568fc7692218867d6804a1df70290681462f5555e230ca817732 SHA512 b85fd99c80242fb66380dfdef34387a2eff9326a1cb726940ab4bc450308e4942e57d1eb1cad979348f8aac685b53e2fa722cef0dab1f2ea2c958f2a5f818918 WHIRLPOOL 44f1e0b678855db44123261402c4e82e0493a60869bcf0a7ebcc5c4db23072efba3f550ee115b5c49a688895b67e1d012defb36c4aa0564732a2642d78f72695 @@ -15,14 +16,15 @@ AUX freshclamd.service 191 SHA256 dd5ff6c79ee360da5f2221c4d9110a2a8886d86293f6c9 AUX tmpfiles.d/clamav.conf 33 SHA256 893bda174539a1a2ffc7f713f563d172593d9707da5c49e6c151832c57da6846 SHA512 eabe5a94c2679b82ea3e29272eb448b47e60b271381d3e97f3970b1a9e086d61662aff2d29887950a911025294aa7cea8bfd9003d257963566b251bcaeb5f6b2 WHIRLPOOL 74d92a4a54f6d38bd752ff46ed494abc823781f41e7663468cd94125076538a4a315808fd0efd2e988d94dcfb05251aef194225cb4bbc1cf05c23fcb491d7e98 DIST clamav-0.98.1.tar.gz 15431484 SHA256 35f5e84d734cdd4532c1cc6c92560c5b31d1c24f2e1e203bef0ca1351eb223dc SHA512 5daac24d346a03acc7e4d8f9e5962a009a908326663008557cbc2af4426e6059cbebbb8fac6d718edf9a567075b823c457f3f9a3aea3c558f5ee272274030b42 WHIRLPOOL 0af4baeefb5e384db0679bdbad2902ced213adb4993c61755fb4065845106779b3467e61dd6fc38b4d7fcecf492069e2a02178a259c618fd6e2f309faf9d1eb1 DIST clamav-0.98.tar.gz 37075245 SHA256 113450537f46ed47f010a179be333a0dcd79eac13f264dce26db7aac8d52b3b6 SHA512 532f9fa2616065879b3ecace2672fad26cf3863943e0ecb8835fbed7e5907600ef50b8df820a08a6586bf77c9bf7c6e50af671f31b7c3ee372c31745a173099f WHIRLPOOL a4ee9efd09193aee7fd740dbb60acabdd4a1f6d5171a4e0fa220441457e3431bf99b27c7300ca0e3e124bb5406f65acf106fa51bfc34d87335ca83ccbc942979 +EBUILD clamav-0.98.1-r1.ebuild 4481 SHA256 5b62b63b419276744242e59426254c392e8a565d7355954e395e9b11fe1832b5 SHA512 3768525cf0f27a6a620f397b816b6bc4987ca3154f6124d059081c337e374de8641f73ca7bf22ad647659f780a167f339f41075756c11e85d0f5d431993bf4ef WHIRLPOOL 2ec9a469e42127a9b09ca12af1da3be4497f40d38c2092e1e13918e43ef098acb0a9cc2b2097fea1fee205afb8dd92c87854d1bb03fd29fec18a96cf4cbd642b EBUILD clamav-0.98.1.ebuild 4449 SHA256 4edb143498d3606530622d295aa347c50b0a47e29d4cb3f8a57b7c6ea00374e7 SHA512 72e064c863df4be04fba5e2b15cbffce40ddcc07e57ee86262c6a37a5fed106c9c7e3732c92f08dbb962d13b9da32632758da3fe2751ebc591d44cdc1b67722d WHIRLPOOL 9f87e9ebe46d7593a772ecae7ce1ad2d380fb9de445b8cc8237448150cb296c758a2041e9c7c302bea887fe0e50cddcc1365a8f4cf6fa850f86a8df94dafea95 EBUILD clamav-0.98.ebuild 4445 SHA256 36f1955fd140dd06cd88cccc79029b5bb5a121fa85002a6f13500f43bf7c784a SHA512 90f28877771019c3a26840184b269a20a5f22519c2e77be2b49d7647e4402634fed7e273ea38f846300171c59f60c5b6b0b5daf1d4c6bf90f8d8ee20b1714a0e WHIRLPOOL 22fcd5cad02c1ff599ea686662a78deca82bd88712418b3e6897e7206f7c12c8595ddd767afe4bc141607d0601f35f1c2d3cd9b71f00ea351107b8afd16f96bb -MISC ChangeLog 68994 SHA256 6122b4c09a4a92be4dda23c7af219766db67f4becdc4434931e078d2e70fe310 SHA512 3062d3799772fd0e1211370d8715d2ed6e2354023663500ad6f4eb6a8c3c9a10b02114380916291020dd866d4cdc6b018ea1a2626fef9ad10bd6ea4a66276a6d WHIRLPOOL 3e62a074bb8713ea05566548b2b4f70d21656d52bc0374ca577547bcd5be8184935182a85f9607ca22a53b72b265fa012af9cfc494c30b1a56a99ea8519997c9 +MISC ChangeLog 69187 SHA256 7bd41ae0a67cc7d913ea62f98641f4451b71a4f47f58a74d602a874a5709f0df SHA512 50dcbddadc598299aad33959744fffe764899185f4c9bc80dd3dba6e08c7e7989f3f7b81d8ca35cc090d91bed5b82025655a3434252653011bb07c385b9e1dbe WHIRLPOOL 8f15661ac42e2725024a7c2032acc01d9fcac200dee6057052be26652acf4690827d4e5d997afe85064fd03c03a644050062850e9960fd8f07c0619b181fdad0 MISC metadata.xml 320 SHA256 e2a8c4c8bedbffe50a126c1c7395a4d92652c2d95347b9496d54aea1f230a22d SHA512 c5bb20c993b91112d9c9e0b7bb6c116ac7f711c769084eaaacc28bc7eeb54db09c9794c6ef057747d80a08cf1502f0f688cdefc741423a38da55b2deaebd6476 WHIRLPOOL 741ff80258dee2c145d08f72f10982bd5c1fcba44ed84054cd1a33787864a7d8821b432c3246ad5a04ce11edde7d045f3eb6e056200e3bd2e8505eeea3d7277d -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iEYEAREIAAYFAlNAEdUACgkQVWmRsqeSphMZ+gCdFLKhJx4ZeKdQ3Ak5Q8tAgJM+ -YUgAn09lwY9s/B4/Yc9C84N4zPa9U+UC -=XMvd +iEYEAREIAAYFAlNKdPcACgkQCaWpQKGI+9SCZwCeMo7zccYzPnNarZlJrpYJjwyu +Xl4An1HBHHJZ1SFERTgiUqDfaGFJq59Z +=9Cxb -----END PGP SIGNATURE----- diff --git a/app-antivirus/clamav/clamav-0.98.1-r1.ebuild b/app-antivirus/clamav/clamav-0.98.1-r1.ebuild new file mode 100644 index 000000000000..63b7a6a55274 --- /dev/null +++ b/app-antivirus/clamav/clamav-0.98.1-r1.ebuild @@ -0,0 +1,134 @@ +# 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.1-r1.ebuild,v 1.1 2014/04/13 11:28:54 pacho 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 selinux static-libs uclibc" + +CDEPEND="bzip2? ( app-arch/bzip2 ) + clamdtop? ( sys-libs/ncurses ) + iconv? ( virtual/libiconv ) + milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) + dev-libs/libtommath + >=sys-libs/zlib-1.2.2 + sys-devel/libtool" +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() { + 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) +} + +src_install() { + default + + rm -rf "${ED}"/var/lib/clamav + newinitd "${FILESDIR}"/clamd.initd-r6 clamd + newconfd "${FILESDIR}"/clamd.conf-r1 clamd + + 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" + + 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 + + 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 +} diff --git a/app-antivirus/clamav/files/clamav-milter.service-r1 b/app-antivirus/clamav/files/clamav-milter.service-r1 new file mode 100644 index 000000000000..f0118d8346f5 --- /dev/null +++ b/app-antivirus/clamav/files/clamav-milter.service-r1 @@ -0,0 +1,13 @@ +[Unit] +Description=Milter module for the ClamAV scanner +After=nss-lookup.target network.target +Before=sendmail.service +Before=postfix.service + +[Service] +Type=forking +PIDFile=/run/clamav/clamav-milter.pid +ExecStart=/usr/sbin/clamav-milter -c /etc/clamav-milter.conf + +[Install] +WantedBy=multi-user.target |