summaryrefslogtreecommitdiff
path: root/net-proxy/squidclamav
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-proxy/squidclamav
reinit the tree, so we can have metadata
Diffstat (limited to 'net-proxy/squidclamav')
-rw-r--r--net-proxy/squidclamav/Manifest7
-rw-r--r--net-proxy/squidclamav/metadata.xml13
-rw-r--r--net-proxy/squidclamav/squidclamav-6.10.ebuild66
-rw-r--r--net-proxy/squidclamav/squidclamav-6.8.ebuild62
4 files changed, 148 insertions, 0 deletions
diff --git a/net-proxy/squidclamav/Manifest b/net-proxy/squidclamav/Manifest
new file mode 100644
index 000000000000..a78318467867
--- /dev/null
+++ b/net-proxy/squidclamav/Manifest
@@ -0,0 +1,7 @@
+DIST squidclamav-6.10.tar.gz 436639 SHA256 4d1ed7012b5b8db4143d38196b0928bd44f2461226a3f9ae2cdc3643524a054b SHA512 36a49720ea8984d3075364cc6150bd5063983aaeaaad538f6e4fde013b92243b0aeb39ef151e0a6752259739e1258d8170fa27eedf3a91384a5814fd81ae9382 WHIRLPOOL 7d96880458303f974e0f4af166944936e2dc44e4ad026d77016d038ef6088d089394e531d5b35e919efdc78e86c0c1ab6d74401af80e4532ff4a6a374844efb0
+DIST squidclamav-6.8.tar.gz 840634 SHA256 70dc1de6aa1a5cc705e336512699a0da530cf6f6e1130b261c5983ee89b34c49 SHA512 03d4ccbb970c1b3c9f0d632eae2b0c43fa0d2fc4b2fd495ef972018c069e20b7a4d198989a6010a1778c87a173fa90c49ea3d2332b89a5a9f6b5b7cb914879d0 WHIRLPOOL 4502a912f60af6f48bf662b67957f8c919a04627d02b120e64ef0566f9108c89fef45793d3a6646ffb41892718acf90bfc5c493cfef29ca3b9cbb1c4bcdb3d8d
+EBUILD squidclamav-6.10.ebuild 1747 SHA256 15de9370c06f916e9e6502944eb4c1bbb3fa376a2714b94bd4f23cc02f27f7a9 SHA512 01199da2721253eabf538bf76b3bad0278b541eb41692cddba1266b216af744ed33bfd4b0211012f0d28f61934bd7365e4df88a8c7f66029c1bab6e23d8cbeba WHIRLPOOL 65ca2dfb6bd45e89e3e726c5bc6b53d312173dc3ee48d2974254772f534894862cddcc56d9db85336cca7dfa804eb3cecd05a87013e99b9d1cbd5d169b36fdc0
+EBUILD squidclamav-6.8.ebuild 1679 SHA256 cd986c11caf676d1b49b0e1c57248f7e23f69d331093566b3741c80fb57282dd SHA512 e1044c83f7f02f9dfc0b32335d74c0fe839d4416ed7fd30621582f53506afbebef36119d49530f22c5b6ad51320d81ea475c4826ebe8e9070a3abec445d2f8b3 WHIRLPOOL 87a19ce8ca34af34e4244984bf91d33bf6890e0c02ad24b8334516402b79794d15da91e4f87eccf8d753a1bf2824b3d42c89bb8f9c3f92ab54e7c34d545d1419
+MISC ChangeLog 2401 SHA256 b8fb3d54d6f4d6fbfa2607de5a7795399065973a1e3919d0ba624d08a2b87be8 SHA512 c2cc2c0be3f90aa965564f0d971bf3a48283f5b04c9591f4adb34ac1f8eb923ee333f76cbb1ea2dab6100d097fb6c97042a113f98293c5d59e8900270f4d49ad WHIRLPOOL 5b2566e0b72e370bcb0804316c9ae5c6c1bd2e868c255d86bacfdbc86deb8389605ecef6c9a4cd6dc263dcf7a0fda36574e0f5c695c009aed7b4d13ea706e90e
+MISC ChangeLog-2015 5077 SHA256 2ae05aeb348ca65e2be2e3225725ae4f95b9d8bbf96d219d391eb31fecfabed5 SHA512 1f750f0fecadb76889c212d8625f961b93fbbc4fadc3d76757047787665c729418de005397d907b14a6b7952ae913a06d36294289ec6589dde156025413dce10 WHIRLPOOL a8b81fa725630279ec58781be5e9ac273a58b3f205a61f02a86dc44d8d1e04dbf974d1633a6cbf1e59f322cf7991ac61bd13c407de0bb651f3f60a6fca02752d
+MISC metadata.xml 510 SHA256 db8a67f0b4bf935e3db6cf50cb9b02e198141d4bf12dc11b8674616cab7454c5 SHA512 e01fb33026918dca0635228a3b5eec99b5257f1ec90889480e3e75b62b448a28c76aad0e4e742b5017c6b310d9176372123bb76535caa23044db9ad0ecc45280 WHIRLPOOL 824d0abf0ffccdee4f67cd1844134d9dd1e44fa80e2cda3aec95ce25b5b7651ee33bd0a1005ad2a281716a7f25d2ff0c01a775a83def3da5b66a91e95e715bbc
diff --git a/net-proxy/squidclamav/metadata.xml b/net-proxy/squidclamav/metadata.xml
new file mode 100644
index 000000000000..4f9c96bd930a
--- /dev/null
+++ b/net-proxy/squidclamav/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ SquidClamAV is a <pkg>net-proxy/squid</pkg> redirector which allows easy antivirus file
+ scanning. It can use either a local or a remote ClamAV daemon. As
+ of version 6.0, it is now an ICAP module for
+ <pkg>net-proxy/c-icap</pkg>.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">squidclamav</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-proxy/squidclamav/squidclamav-6.10.ebuild b/net-proxy/squidclamav/squidclamav-6.10.ebuild
new file mode 100644
index 000000000000..ecfc677d0e8f
--- /dev/null
+++ b/net-proxy/squidclamav/squidclamav-6.10.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit libtool autotools
+
+DESCRIPTION="HTTP Antivirus for Squid based on ClamAv and ICAP"
+HOMEPAGE="http://squidclamav.darold.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+RDEPEND="net-proxy/c-icap"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # version 6.3 causes maintainer-mode rebuild from tarball, and
+ # contains acinclude.m4 with libtool macros which cause trouble.
+ rm acinclude.m4 || die
+ eautoreconf
+ elibtoolize
+}
+
+src_configure() {
+ econf --disable-static --enable-shared
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ find "${D}" -name '*.la' -delete || die
+
+ # delete its own documentation installed
+ rm -r "${D}"/usr/share/${PN} || die
+
+ dodoc README AUTHORS ChangeLog
+
+ # Fix configuration file to adapt to the Gentoo configuration
+ sed -i \
+ -e '/clamd_local/s:\.ctl:.sock:' \
+ "${D}"/etc/squidclamav.conf || die
+}
+
+pkg_postinst() {
+ elog "Starting from version 6, Squid Clamav is now a module for the c-icap"
+ elog "server, which is called from squid, rather than being a redirector"
+ elog "directly."
+ elog ""
+ elog "To enable the service, you should add this to your c-icap.conf file:"
+ elog ""
+ elog " Service clamav squidclamav.so"
+ elog ""
+ elog "And then this to squid.conf (for a local ICAP server):"
+ elog ""
+ elog " icap_enable on"
+ elog ""
+ elog " # not strictly needed, but useful for special access"
+ elog " icap_send_client_ip on"
+ elog " icap_send_client_username on"
+ elog ""
+ elog " icap_service clamav respmod_precache bypass=0 icap://localhost:1344/clamav"
+ elog " adaptation_access clamav allow all"
+}
diff --git a/net-proxy/squidclamav/squidclamav-6.8.ebuild b/net-proxy/squidclamav/squidclamav-6.8.ebuild
new file mode 100644
index 000000000000..045c33fafdcd
--- /dev/null
+++ b/net-proxy/squidclamav/squidclamav-6.8.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit libtool autotools
+
+DESCRIPTION="HTTP Antivirus for Squid based on ClamAv and ICAP"
+HOMEPAGE="http://squidclamav.darold.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="net-proxy/c-icap"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # version 6.3 causes maintainer-mode rebuild from tarball, and
+ # contains acinclude.m4 with libtool macros which cause trouble.
+ rm acinclude.m4 || die
+ eautoreconf
+ elibtoolize
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ find "${D}" -name '*.la' -delete || die
+
+ # delete its own documentation installed
+ rm -r "${D}"/usr/share/${PN} || die
+
+ dodoc README AUTHORS ChangeLog
+
+ # Fix configuration file to adapt to the Gentoo configuration
+ sed -i \
+ -e '/clamd_local/s:\.ctl:.sock:' \
+ "${D}"/etc/squidclamav.conf || die
+}
+
+pkg_postinst() {
+ elog "Starting from version 6, Squid Clamav is now a module for the c-icap"
+ elog "server, which is called from squid, rather than being a redirector"
+ elog "directly."
+ elog ""
+ elog "To enable the service, you should add this to your c-icap.conf file:"
+ elog ""
+ elog " Service clamav squidclamav.so"
+ elog ""
+ elog "And then this to squid.conf (for a local ICAP server):"
+ elog ""
+ elog " icap_enable on"
+ elog ""
+ elog " # not strictly needed, but useful for special access"
+ elog " icap_send_client_ip on"
+ elog " icap_send_client_username on"
+ elog ""
+ elog " icap_service clamav respmod_precache bypass=0 icap://localhost:1344/clamav"
+ elog " adaptation_access clamav allow all"
+}