From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 34A1813835C for ; Sat, 17 Apr 2021 19:20:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CA9FE0866; Sat, 17 Apr 2021 19:20:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CF4CE0866 for ; Sat, 17 Apr 2021 19:20:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A7FAA340AC7 for ; Sat, 17 Apr 2021 19:20:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C808730 for ; Sat, 17 Apr 2021 19:20:29 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1618687177.2acde7b9b35942d9f4f414cb5f0ffe8bfff774c9.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/havp/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-proxy/havp/havp-0.92a-r3.ebuild X-VCS-Directories: net-proxy/havp/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 2acde7b9b35942d9f4f414cb5f0ffe8bfff774c9 X-VCS-Branch: master Date: Sat, 17 Apr 2021 19:20:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d5b32695-fcb7-4350-96f7-9fa3f58875f9 X-Archives-Hash: 253a8b802ee7c6cbef8f31eaece73b98 commit: 2acde7b9b35942d9f4f414cb5f0ffe8bfff774c9 Author: Conrad Kostecki gentoo org> AuthorDate: Sat Apr 17 18:57:43 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sat Apr 17 19:19:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2acde7b9 net-proxy/havp: migrate to glep 81 Closes: https://bugs.gentoo.org/781464 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> net-proxy/havp/havp-0.92a-r3.ebuild | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/net-proxy/havp/havp-0.92a-r3.ebuild b/net-proxy/havp/havp-0.92a-r3.ebuild new file mode 100644 index 00000000000..e29ca2eab91 --- /dev/null +++ b/net-proxy/havp/havp-0.92a-r3.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +DESCRIPTION="HTTP AntiVirus Proxy" +HOMEPAGE="http://www.server-side.de/" +SRC_URI="http://www.server-side.de/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="clamav ssl" + +DEPEND="clamav? ( >=app-antivirus/clamav-0.98.5 )" +RDEPEND=" + ${DEPEND} + acct-group/havp + acct-user/havp +" + +PATCHES=( + "${FILESDIR}"/havp-0.92a-run.patch + "${FILESDIR}"/${P}-pkg-config-libclamav.patch +) + +src_prepare() { + default + + sed -i configure.in -e '/^CFLAGS=/d' || die + mv configure.{in,ac} || die + + eautoreconf +} + +src_configure() { + tc-export AR + export CFLAGS="${CXXFLAGS}" + + local myeconfargs=( + $(use_enable clamav) + $(use_enable ssl ssl-tunnel) + --localstatedir=/var + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + dosbin havp/havp + + newinitd "${FILESDIR}/havp.initd" havp + + rm -r etc/havp/havp.config.in || die + insinto /etc + doins -r etc/havp + + einstalldocs +} + +pkg_postinst() { + ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!" + ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab." + + if use ssl; then + echo + ewarn "Note: ssl USE flag only enable SSL pass-through, which means that" + ewarn " HTTPS pages will not be scanned for viruses!" + ewarn " It is impossible to decrypt data sent through SSL connections without knowing" + ewarn " the private key of the used certificate." + fi + + if use clamav; then + echo + ewarn "If you plan to use clamav daemon, you should make sure clamav user can read" + ewarn "/var/tmp/havp content. This can be accomplished by enabling AllowSupplementaryGroups" + ewarn "in /etc/clamd.conf and adding clamav user to the havp group." + fi +}