From: "Sergey Popov" <pinkbyte@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/squidguard/
Date: Fri, 12 May 2017 09:20:51 +0000 (UTC) [thread overview]
Message-ID: <1494580846.e5d53d7d4b90920f3b30a88536a4fa65694aca62.pinkbyte@gentoo> (raw)
commit: e5d53d7d4b90920f3b30a88536a4fa65694aca62
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Fri May 12 09:19:24 2017 +0000
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
CommitDate: Fri May 12 09:20:46 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5d53d7d
net-proxy/squidguard: revision bump
Bump EAPI to 6, restrict linking with unsupported versions of sys-libs/db
Committing straight to stable
Gentoo-Bug: 528858
Package-Manager: Portage-2.3.5, Repoman-2.3.1
RepoMan-Options: --force
...eta-r1.ebuild => squidguard-1.5_beta-r2.ebuild} | 37 ++++++++++++++++++----
1 file changed, 31 insertions(+), 6 deletions(-)
diff --git a/net-proxy/squidguard/squidguard-1.5_beta-r1.ebuild b/net-proxy/squidguard/squidguard-1.5_beta-r2.ebuild
similarity index 67%
rename from net-proxy/squidguard/squidguard-1.5_beta-r1.ebuild
rename to net-proxy/squidguard/squidguard-1.5_beta-r2.ebuild
index 408711ab997..235a6ac00ed 100644
--- a/net-proxy/squidguard/squidguard-1.5_beta-r1.ebuild
+++ b/net-proxy/squidguard/squidguard-1.5_beta-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=6
WANT_AUTOMAKE=none
-inherit eutils autotools user
+inherit autotools db-use eutils user
MY_P="squidGuard-${PV/_/-}"
@@ -19,7 +19,15 @@ KEYWORDS="amd64 ~arm ppc ppc64 sparc x86"
IUSE="ldap"
-RDEPEND=">=sys-libs/db-2:*
+RDEPEND="|| (
+ sys-libs/db:4.8
+ sys-libs/db:4.7
+ sys-libs/db:4.6
+ sys-libs/db:4.5
+ sys-libs/db:4.4
+ sys-libs/db:4.3
+ sys-libs/db:4.2
+ )
ldap? ( net-nds/openldap:0 )"
DEPEND="${RDEPEND}
@@ -28,6 +36,17 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${MY_P}"
+suitable_db_version() {
+ local tested_slots="4.8 4.7 4.6 4.5 4.4 4.3 4.2"
+ for ver in ${tested_slots}; do
+ if [[ -n $(db_findver sys-libs/db:${ver}) ]]; then
+ echo ${ver}
+ return 0
+ fi
+ done
+ die "No suitable BerkDB versions found, aborting"
+}
+
pkg_setup() {
enewgroup squid
enewuser squid -1 -1 /var/cache/squid squid
@@ -39,13 +58,18 @@ src_prepare() {
"${FILESDIR}/${P}-gentoo.patch" \
"${FILESDIR}/${P}-protocol.patch"
- epatch_user
+ # Link only with specific BerkDB versions
+ db_version="$(suitable_db_version)"
+ sed -i -e "/\$LIBS -ldb/s/-ldb/-l$(db_libname ${db_version})/" configure.ac || die
+
+ eapply_user
eautoreconf
}
src_configure() {
econf \
$(use_with ldap) \
+ --with-db-inc="$(db_includedir ${db_version})" \
--with-sg-config=/etc/squidGuard/squidGuard.conf \
--with-sg-logdir=/var/log/squidGuard
}
@@ -62,7 +86,8 @@ src_install() {
doins "${FILESDIR}"/blockedsites
dodoc ANNOUNCE CHANGELOG README
- dohtml doc/*.html
+ docinto html
+ dodoc doc/*.html
docinto text
dodoc doc/*.txt
}
next reply other threads:[~2017-05-12 9:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 9:20 Sergey Popov [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-12-08 12:49 [gentoo-commits] repo/gentoo:master commit in: net-proxy/squidguard/ Sergey Popov
2020-03-09 12:48 Agostino Sarubbo
2020-03-09 12:42 Agostino Sarubbo
2020-03-09 12:39 Agostino Sarubbo
2020-03-09 11:17 Agostino Sarubbo
2020-03-08 16:58 Sergey Popov
2020-01-22 11:57 Sergey Popov
2016-07-05 15:27 Jeroen Roovers
2015-11-13 9:42 Agostino Sarubbo
2015-10-12 13:31 Sergey Popov
2015-10-12 13:31 Sergey Popov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1494580846.e5d53d7d4b90920f3b30a88536a4fa65694aca62.pinkbyte@gentoo \
--to=pinkbyte@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox