You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.8 KiB
82 lines
1.8 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
3 years ago
|
inherit autotools toolchain-funcs
|
||
13 years ago
|
|
||
|
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"
|
||
12 years ago
|
KEYWORDS="amd64 x86"
|
||
13 years ago
|
IUSE="clamav ssl"
|
||
|
|
||
10 years ago
|
DEPEND="clamav? ( >=app-antivirus/clamav-0.98.5 )"
|
||
3 years ago
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
acct-group/havp
|
||
|
acct-user/havp
|
||
|
"
|
||
13 years ago
|
|
||
3 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/havp-0.92a-run.patch
|
||
|
"${FILESDIR}"/${P}-pkg-config-libclamav.patch
|
||
|
)
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
3 years ago
|
default
|
||
9 years ago
|
|
||
12 years ago
|
sed -i configure.in -e '/^CFLAGS=/d' || die
|
||
10 years ago
|
mv configure.{in,ac} || die
|
||
9 years ago
|
|
||
12 years ago
|
eautoreconf
|
||
13 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
12 years ago
|
tc-export AR
|
||
|
export CFLAGS="${CXXFLAGS}"
|
||
3 years ago
|
|
||
|
local myeconfargs=(
|
||
|
$(use_enable clamav)
|
||
|
$(use_enable ssl ssl-tunnel)
|
||
12 years ago
|
--localstatedir=/var
|
||
3 years ago
|
)
|
||
|
|
||
|
econf "${myeconfargs[@]}"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
dosbin havp/havp
|
||
13 years ago
|
|
||
3 years ago
|
newinitd "${FILESDIR}/havp.initd" havp
|
||
13 years ago
|
|
||
3 years ago
|
rm -r etc/havp/havp.config.in || die
|
||
12 years ago
|
insinto /etc
|
||
3 years ago
|
doins -r etc/havp
|
||
13 years ago
|
|
||
3 years ago
|
einstalldocs
|
||
13 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
3 years ago
|
ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!"
|
||
13 years ago
|
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"
|
||
3 years ago
|
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."
|
||
13 years ago
|
fi
|
||
|
}
|