* [gentoo-commits] repo/gentoo:master commit in: net-proxy/havp/files/, net-proxy/havp/
@ 2016-05-03 19:17 Austin English
0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2016-05-03 19:17 UTC (permalink / raw
To: gentoo-commits
commit: 70dc30f5ebc6e800c0de8a5724e384eb34cf0418
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Tue May 3 18:59:35 2016 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Tue May 3 19:17:01 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70dc30f5
net-proxy/havp: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846
Package-Manager: portage-2.2.26
net-proxy/havp/files/havp.initd | 4 +-
net-proxy/havp/havp-0.92a-r2.ebuild | 74 +++++++++++++++++++++++++++++++++++++
2 files changed, 76 insertions(+), 2 deletions(-)
diff --git a/net-proxy/havp/files/havp.initd b/net-proxy/havp/files/havp.initd
index 44b00fc..1c42fca 100644
--- a/net-proxy/havp/files/havp.initd
+++ b/net-proxy/havp/files/havp.initd
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
diff --git a/net-proxy/havp/havp-0.92a-r2.ebuild b/net-proxy/havp/havp-0.92a-r2.ebuild
new file mode 100644
index 0000000..60fd0c1
--- /dev/null
+++ b/net-proxy/havp/havp-0.92a-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils toolchain-funcs user
+
+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}"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /etc/${PN} ${PN}
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-0.92a-run.patch \
+ "${FILESDIR}"/${PF}-pkg-config-libclamav.patch
+ sed -i configure.in -e '/^CFLAGS=/d' || die
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ tc-export AR
+ export CFLAGS="${CXXFLAGS}"
+ econf \
+ $(use_enable clamav) \
+ $(use_enable ssl ssl-tunnel) \
+ --localstatedir=/var
+}
+
+src_install() {
+ dosbin ${PN}/${PN}
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+
+ insinto /etc
+ rm -r etc/${PN}/${PN}.config.in
+ doins -r etc/${PN}
+
+ dodoc ChangeLog
+}
+
+pkg_postinst() {
+ ewarn "/var/tmp/${PN} 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/${PN} content. This can be accomplished by enabling AllowSupplementaryGroups"
+ ewarn "in /etc/clamd.conf and adding clamav user to the ${PN} group."
+ fi
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-proxy/havp/files/, net-proxy/havp/
@ 2022-07-02 21:17 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-07-02 21:17 UTC (permalink / raw
To: gentoo-commits
commit: 7e853c664f4abbe5e1e82abca97f41e193c6c624
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 2 21:17:04 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 2 21:17:16 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e853c66
net-proxy/havp: fix build with GCC 12
Closes: https://bugs.gentoo.org/855575
Signed-off-by: Sam James <sam <AT> gentoo.org>
net-proxy/havp/files/havp-0.92a-gcc12-time.patch | 11 +++++++++++
net-proxy/havp/havp-0.92a-r3.ebuild | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/net-proxy/havp/files/havp-0.92a-gcc12-time.patch b/net-proxy/havp/files/havp-0.92a-gcc12-time.patch
new file mode 100644
index 000000000000..0faf90dca3a6
--- /dev/null
+++ b/net-proxy/havp/files/havp-0.92a-gcc12-time.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/855575
+--- a/havp/logfile.cpp
++++ b/havp/logfile.cpp
+@@ -30,6 +30,7 @@
+ #include <map>
+ #include <cstdlib>
+ #include <cstring>
++#include <ctime>
+
+ #define LOGSTRINGLENGTH 1000
+
diff --git a/net-proxy/havp/havp-0.92a-r3.ebuild b/net-proxy/havp/havp-0.92a-r3.ebuild
index 682e96119730..ff931e27294d 100644
--- a/net-proxy/havp/havp-0.92a-r3.ebuild
+++ b/net-proxy/havp/havp-0.92a-r3.ebuild
@@ -22,8 +22,9 @@ RDEPEND="
"
PATCHES=(
- "${FILESDIR}"/havp-0.92a-run.patch
+ "${FILESDIR}"/${P}-run.patch
"${FILESDIR}"/${P}-pkg-config-libclamav.patch
+ "${FILESDIR}"/${P}-gcc12-time.patch
)
src_prepare() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-02 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-02 21:17 [gentoo-commits] repo/gentoo:master commit in: net-proxy/havp/files/, net-proxy/havp/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2016-05-03 19:17 Austin English
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox