summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-09-26 08:42:42 +0000
committerJeroen Roovers <jer@gentoo.org>2014-09-26 08:42:42 +0000
commita3ef22d57eaf7c9aff9aca2e4603cb0dd399b639 (patch)
tree76f6251a568d5ef8ac464fa3aaa37bdb1e722ed8 /net-analyzer/sarg/sarg-2.3.9.ebuild
parentAdd workaround for building with USE=tools, wrt bug #522682 (diff)
downloadgentoo-2-a3ef22d57eaf7c9aff9aca2e4603cb0dd399b639.tar.gz
gentoo-2-a3ef22d57eaf7c9aff9aca2e4603cb0dd399b639.tar.bz2
gentoo-2-a3ef22d57eaf7c9aff9aca2e4603cb0dd399b639.zip
Version bump.
(Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/sarg/sarg-2.3.9.ebuild')
-rw-r--r--net-analyzer/sarg/sarg-2.3.9.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/net-analyzer/sarg/sarg-2.3.9.ebuild b/net-analyzer/sarg/sarg-2.3.9.ebuild
new file mode 100644
index 000000000000..241899fe7c0c
--- /dev/null
+++ b/net-analyzer/sarg/sarg-2.3.9.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sarg/sarg-2.3.9.ebuild,v 1.1 2014/09/26 08:42:42 jer Exp $
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Squid Analysis Report Generator"
+HOMEPAGE="http://sarg.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="0"
+IUSE="+gd ldap pcre"
+
+DEPEND="
+ gd? ( media-libs/gd[png,truetype] )
+ ldap? ( net-nds/openldap )
+ pcre? ( dev-libs/libpcre )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( BETA-TESTERS CONTRIBUTORS DONATIONS README ChangeLog htaccess )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-configure.patch
+
+ sed -i \
+ -e 's:/usr/local/squid/var/logs/access.log:/var/log/squid/access.log:' \
+ -e 's:/usr/local/\(squidGuard/squidGuard.conf\):/etc/\1:' \
+ -e 's:/var/www/html/squid-reports:/var/www/localhost/htdocs/squid-reports:' \
+ -e 's:/usr/local/sarg/exclude_codes:/etc/sarg/exclude_codes:' \
+ sarg.conf || die
+
+ sed -i \
+ -e 's:"/var/www/html/squid-reports":"/var/www/localhost/htdocs/squid-reports":' \
+ log.c || die #43132
+
+ sed -i \
+ -e 's:/usr/local/sarg/passwd:/etc/sarg/passwd:' \
+ htaccess || die
+
+ sed -i \
+ -e 's:/usr/local/\(sarg/sarg.conf\):/etc/\1:' \
+ -e 's:/usr/local/squid/etc/passwd:/etc/squid/passwd:' \
+ user_limit_block || die
+
+ sed -i \
+ -e 's:/usr/local/squid/etc/block.txt:/etc/squid/etc/block.txt:' \
+ sarg-php/sarg-block-it.php || die
+
+ sed -i \
+ -e 's:/usr/local/\(sarg/sarg.conf\):/etc/\1:' \
+ -e 's:/usr/local/\(squidGuard/squidGuard.conf\):/etc/\1:' \
+ sarg.1 sarg-php/sarg-squidguard-block.php || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with gd) \
+ $(use_with ldap) \
+ $(use_with pcre) \
+ --sysconfdir="${EPREFIX}/etc/sarg/"
+}