summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-09-22 18:01:42 +0000
committerAlin Năstac <mrness@gentoo.org>2006-09-22 18:01:42 +0000
commit7eda0d650d5a636ef044f3a9343296d242a6c212 (patch)
tree4c7c1f72ddd5d6249724d9e192e141b2447067d8 /net-dialup/gnuradius
parentDon't install inexistent/empty/unuseful doc files. (diff)
downloadgentoo-2-7eda0d650d5a636ef044f3a9343296d242a6c212.tar.gz
gentoo-2-7eda0d650d5a636ef044f3a9343296d242a6c212.tar.bz2
gentoo-2-7eda0d650d5a636ef044f3a9343296d242a6c212.zip
Add gcc-4.1 fixes.
(Portage version: 2.1.1)
Diffstat (limited to 'net-dialup/gnuradius')
-rw-r--r--net-dialup/gnuradius/ChangeLog6
-rw-r--r--net-dialup/gnuradius/files/digest-gnuradius-1.3-r22
-rw-r--r--net-dialup/gnuradius/files/gnuradius-1.3-gcc41.patch45
-rw-r--r--net-dialup/gnuradius/gnuradius-1.3-r2.ebuild10
4 files changed, 60 insertions, 3 deletions
diff --git a/net-dialup/gnuradius/ChangeLog b/net-dialup/gnuradius/ChangeLog
index df12e7b476e1..a664d69d62c2 100644
--- a/net-dialup/gnuradius/ChangeLog
+++ b/net-dialup/gnuradius/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-dialup/gnuradius
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/gnuradius/ChangeLog,v 1.8 2006/03/12 13:06:46 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/gnuradius/ChangeLog,v 1.9 2006/09/22 18:01:42 mrness Exp $
+
+ 22 Sep 2006; Alin Nastac <mrness@gentoo.org>
+ +files/gnuradius-1.3-gcc41.patch, gnuradius-1.3-r2.ebuild:
+ Add gcc-4.1 fixes.
12 Mar 2006; Alin Nastac <mrness@gentoo.org> -gnuradius-1.3.ebuild,
-gnuradius-1.3-r1.ebuild, gnuradius-1.3-r2.ebuild:
diff --git a/net-dialup/gnuradius/files/digest-gnuradius-1.3-r2 b/net-dialup/gnuradius/files/digest-gnuradius-1.3-r2
index ad49b2e2cb13..e19d72f1dfce 100644
--- a/net-dialup/gnuradius/files/digest-gnuradius-1.3-r2
+++ b/net-dialup/gnuradius/files/digest-gnuradius-1.3-r2
@@ -1 +1,3 @@
MD5 ab0223f6504355c4827a7c03cb4e21b0 radius-1.3.tar.gz 2047469
+RMD160 95eac017c0c2bfa881bde343d3afa6af5d87e530 radius-1.3.tar.gz 2047469
+SHA256 3e2bd3f2e6f9b062ccc2fde80fa26e46a2a2f3645227daca427501135e5846c5 radius-1.3.tar.gz 2047469
diff --git a/net-dialup/gnuradius/files/gnuradius-1.3-gcc41.patch b/net-dialup/gnuradius/files/gnuradius-1.3-gcc41.patch
new file mode 100644
index 000000000000..41009b4f6573
--- /dev/null
+++ b/net-dialup/gnuradius/files/gnuradius-1.3-gcc41.patch
@@ -0,0 +1,45 @@
+diff -Nru radius-1.3.orig/radiusd/log.c radius-1.3/radiusd/log.c
+--- radius-1.3.orig/radiusd/log.c 2004-11-01 15:09:32.000000000 +0200
++++ radius-1.3/radiusd/log.c 2006-09-22 20:52:42.598582000 +0300
+@@ -182,7 +182,7 @@
+ if (rewrite_invoke(String,
+ &result,
+ hook_name,
+- req,
++ (grad_request_t *)req,
+ "isi",
+ req->code,
+ grad_nas_request_to_name(req,
+@@ -196,8 +196,8 @@
+ channel_format_prefix(struct logbuf *bufp,
+ Channel *chan, const grad_request_t *req)
+ {
+- char **hook_name_ptr = &(chan->prefix_hook ?
+- chan->prefix_hook : log_prefix_hook);
++ char **hook_name_ptr = (chan->prefix_hook ?
++ &chan->prefix_hook : &log_prefix_hook);
+ char *hook_res = NULL;
+
+ if (*hook_name_ptr) {
+@@ -214,8 +214,8 @@
+ channel_format_suffix(struct logbuf *bufp,
+ Channel *chan, const grad_request_t *req)
+ {
+- char **hook_name_ptr = &(chan->suffix_hook ?
+- chan->suffix_hook : log_suffix_hook);
++ char **hook_name_ptr = (chan->suffix_hook ?
++ &chan->suffix_hook : &log_suffix_hook);
+ char *hook_res = NULL;
+
+ if (*hook_name_ptr) {
+diff -Nru radius-1.3.orig/include/radiusd.h radius-1.3/include/radiusd.h
+--- radius-1.3.orig/include/radiusd.h 2004-11-02 12:14:09.000000000 +0200
++++ radius-1.3/include/radiusd.h 2006-09-22 20:56:29.592768250 +0300
+@@ -339,7 +339,6 @@
+ extern int max_threads;
+ extern int num_threads;
+ #ifdef USE_SERVER_GUILE
+-extern unsigned scheme_gc_interval;
+ extern u_int scheme_task_timeout;
+ #endif
+ #ifdef USE_SNMP
diff --git a/net-dialup/gnuradius/gnuradius-1.3-r2.ebuild b/net-dialup/gnuradius/gnuradius-1.3-r2.ebuild
index c0afb0b34166..cacca92e375c 100644
--- a/net-dialup/gnuradius/gnuradius-1.3-r2.ebuild
+++ b/net-dialup/gnuradius/gnuradius-1.3-r2.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/gnuradius/gnuradius-1.3-r2.ebuild,v 1.4 2006/03/12 13:06:46 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/gnuradius/gnuradius-1.3-r2.ebuild,v 1.5 2006/09/22 18:01:42 mrness Exp $
-inherit libtool
+inherit libtool eutils
MY_P="radius-${PV}"
@@ -30,6 +30,12 @@ S="${WORKDIR}/${MY_P}"
RESTRICT="test"
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-gcc41.patch"
+}
+
src_compile() {
elibtoolize --reverse-deps