1 |
commit: c3b12d43db7c008cfa82b80b7ea40e7ebc6a98bd |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 1 07:50:33 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 1 07:50:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b12d43 |
7 |
|
8 |
net-analyzer/sarg: Update HOMEPAGE, disable -Werror |
9 |
|
10 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/sarg/files/sarg-2.3.11-Werror.patch | 25 ++++++++++++++ |
14 |
net-analyzer/sarg/sarg-2.3.11-r2.ebuild | 44 ++++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/sarg/files/sarg-2.3.11-Werror.patch b/net-analyzer/sarg/files/sarg-2.3.11-Werror.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..03557879393 |
20 |
--- /dev/null |
21 |
+++ b/net-analyzer/sarg/files/sarg-2.3.11-Werror.patch |
22 |
@@ -0,0 +1,25 @@ |
23 |
+--- a/configure.ac |
24 |
++++ b/configure.ac |
25 |
+@@ -46,18 +46,18 @@ |
26 |
+ CFLAGS="${saved_CFLAGS}" |
27 |
+ fi |
28 |
+ |
29 |
+-AC_MSG_CHECKING([for implicit-function-declaration error flag in $CC]) |
30 |
++AC_MSG_CHECKING([for implicit-function-declaration warning flag in $CC]) |
31 |
+ saved_CFLAGS="${CFLAGS}" |
32 |
+-CFLAGS="${CFLAGS} -Werror=implicit-function-declaration" |
33 |
++CFLAGS="${CFLAGS} -Wimplicit-function-declaration" |
34 |
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_implicit_function_declaration="yes"],[have_implicit_function_declaration="no"]) |
35 |
+ AC_MSG_RESULT($have_implicit_function_declaration) |
36 |
+ if test "$have_implicit_function_declaration" = "no" ; then |
37 |
+ CFLAGS="${saved_CFLAGS}" |
38 |
+ fi |
39 |
+ |
40 |
+-AC_MSG_CHECKING([for format error flag in $CC]) |
41 |
++AC_MSG_CHECKING([for format warning flag in $CC]) |
42 |
+ saved_CFLAGS="${CFLAGS}" |
43 |
+-CFLAGS="${CFLAGS} -Werror=format" |
44 |
++CFLAGS="${CFLAGS} -Wformat" |
45 |
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_error_format="yes"],[have_error_format="no"]) |
46 |
+ AC_MSG_RESULT($have_error_format) |
47 |
+ if test "$have_error_format" = "no" ; then |
48 |
|
49 |
diff --git a/net-analyzer/sarg/sarg-2.3.11-r2.ebuild b/net-analyzer/sarg/sarg-2.3.11-r2.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..c8afb3c48d4 |
52 |
--- /dev/null |
53 |
+++ b/net-analyzer/sarg/sarg-2.3.11-r2.ebuild |
54 |
@@ -0,0 +1,44 @@ |
55 |
+# Copyright 1999-2019 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=7 |
59 |
+inherit autotools |
60 |
+ |
61 |
+DESCRIPTION="Squid Analysis Report Generator" |
62 |
+HOMEPAGE="https://sourceforge.net/projects/sarg/" |
63 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="GPL-2" |
66 |
+KEYWORDS="~amd64 ~ppc ~x86" |
67 |
+SLOT="0" |
68 |
+IUSE="+gd ldap pcre" |
69 |
+ |
70 |
+DEPEND=" |
71 |
+ gd? ( media-libs/gd[png,truetype] ) |
72 |
+ ldap? ( net-nds/openldap ) |
73 |
+ pcre? ( dev-libs/libpcre ) |
74 |
+" |
75 |
+RDEPEND=" |
76 |
+ ${DEPEND} |
77 |
+" |
78 |
+DOCS=( BETA-TESTERS CONTRIBUTORS DONATIONS README ChangeLog htaccess ) |
79 |
+PATCHES=( |
80 |
+ "${FILESDIR}"/${PN}-2.3.10-config.patch |
81 |
+ "${FILESDIR}"/${PN}-2.3.11-configure.patch |
82 |
+ "${FILESDIR}"/${PN}-2.3.11-format.patch |
83 |
+ "${FILESDIR}"/${PN}-2.3.11-Werror.patch |
84 |
+) |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ |
89 |
+ eautoreconf |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ econf \ |
94 |
+ $(use_with gd) \ |
95 |
+ $(use_with ldap) \ |
96 |
+ $(use_with pcre) \ |
97 |
+ --sysconfdir="${EPREFIX}/etc/sarg/" |
98 |
+} |