summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-11-11 14:14:16 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-11-11 14:14:16 +0000
commit912dd5753569e2e2a3adbe1d98b7167a93c583ec (patch)
tree864db5df402b6912375e8adcafcee34fcb874863 /net-dialup/radiusclient-ng
parentStable for HPPA (bug #490382). (diff)
downloadgentoo-2-912dd5753569e2e2a3adbe1d98b7167a93c583ec.tar.gz
gentoo-2-912dd5753569e2e2a3adbe1d98b7167a93c583ec.tar.bz2
gentoo-2-912dd5753569e2e2a3adbe1d98b7167a93c583ec.zip
Revision bump: EAPI 5, autotools-utils eclass, add fix for cross compilation wrt bug #373365, thanks to Bertrand Jacquin <beber AT meleeweb.net>
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-dialup/radiusclient-ng')
-rw-r--r--net-dialup/radiusclient-ng/ChangeLog12
-rw-r--r--net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch73
-rw-r--r--net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild36
3 files changed, 119 insertions, 2 deletions
diff --git a/net-dialup/radiusclient-ng/ChangeLog b/net-dialup/radiusclient-ng/ChangeLog
index f07928a54af6..69f4e311407d 100644
--- a/net-dialup/radiusclient-ng/ChangeLog
+++ b/net-dialup/radiusclient-ng/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-dialup/radiusclient-ng
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/radiusclient-ng/ChangeLog,v 1.21 2009/03/03 21:05:37 mrness Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/radiusclient-ng/ChangeLog,v 1.22 2013/11/11 14:14:16 pinkbyte Exp $
+
+*radiusclient-ng-0.5.6-r1 (11 Nov 2013)
+
+ 11 Nov 2013; Sergey Popov <pinkbyte@gentoo.org>
+ +radiusclient-ng-0.5.6-r1.ebuild,
+ +files/radiusclient-ng-0.5.6-cross-compile.patch:
+ Revision bump: EAPI 5, autotools-utils eclass, add fix for cross compilation
+ wrt bug #373365, thanks to Bertrand Jacquin <beber AT meleeweb.net>
03 Mar 2009; Alin Năstac <mrness@gentoo.org>
radiusclient-ng-0.5.6.ebuild:
diff --git a/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch b/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch
new file mode 100644
index 000000000000..ff11d841bcec
--- /dev/null
+++ b/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch
@@ -0,0 +1,73 @@
+Fix by Bertrand Jacquin <beber AT meleeweb.net>
+
+Gentoo bugreport: https://bugs.gentoo.org/show_bug.cgi?id=373365
+Upstream bugreport: https://developer.berlios.de/bugs/?func=detailbug&bug_id=18190&group_id=1208
+
+--- configure.in.orig 2011-06-28 16:26:10.000000000 +0200
++++ configure.in 2011-06-28 16:26:12.000000000 +0200
+@@ -104,32 +104,40 @@
+ AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
+ AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
+
+-if test "$ac_cv_func_uname" = 'yes'
+-then
+- AC_MSG_CHECKING([for field domainname in struct utsname])
+- AC_TRY_RUN([
+- #include <sys/utsname.h>
++AC_CACHE_CHECK([for field domainname in struct utsname], ac_cv_struct_utsname,
++ [AC_TRY_RUN([
++ #include <sys/utsname.h>
+
+- main(int argc, char **argv)
+- {
+- struct utsname uts;
+- uts.domainname[0] = '\0';
+- }
+- ],
+- AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME),
+- AC_MSG_RESULT(no)
+- )
+-fi
++ main(int argc, char **argv)
++ {
++ struct utsname uts;
++ uts.domainname[0] = '\0';
++ }
++ ],
++ ac_cv_struct_utsname=yes,
++ ac_cv_struct_utsname=no,
++ [AC_MSG_ERROR([cross-compiling,
++ presetting ac_cv_struct_utsname=(yes|no) will help])]
++ )
++])
++AS_VAR_IF(ac_cv_struct_utsname, yes,
++ [AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME)],
++)
+
+-AC_MSG_CHECKING([for /dev/urandom])
+-if test -c /dev/urandom
+-then
+- AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_DEV_URANDOM)
+-else
+- AC_MSG_RESULT(no)
+-fi
++AC_CACHE_CHECK([for /dev/urandom], ac_cv_file__dev_urandom,
++ [AS_IF([test "$cross_compiling" = yes],
++ [AC_MSG_ERROR([cross-compiling,
++ presetting ac_cv_file__dev_urandom=(yes|no) will help])],
++ if test -c /dev/urandom ; then
++ ac_cv_file__dev_urandom=yes
++ else
++ ac_cv_file__dev_urandom=no
++ fi
++ )]
++)
++AS_VAR_IF(ac_cv_file__dev_urandom, yes,
++ [AC_DEFINE(HAVE_DEV_URANDOM)]
++)
+
+ dnl Determine PATH setting
+ echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6
+
diff --git a/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild b/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild
new file mode 100644
index 000000000000..7ce2156ce0c8
--- /dev/null
+++ b/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild,v 1.1 2013/11/11 14:14:16 pinkbyte Exp $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils eutils toolchain-funcs
+
+DESCRIPTION="RadiusClient NextGeneration - library for RADIUS clients accompanied with several client utilities"
+HOMEPAGE="http://developer.berlios.de/projects/radiusclient-ng/"
+SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="static-libs"
+
+DEPEND="!net-dialup/radiusclient
+ !net-dialup/freeradius-client"
+RDEPEND="${DEPEND}"
+
+DOCS=( BUGS CHANGES README )
+HTML_DOCS=( doc/instop.html )
+
+PATCHES=( "${FILESDIR}/${P}-cross-compile.patch" )
+
+src_prepare() {
+ # bug #373365
+ if tc-is-cross-compiler ; then
+ export ac_cv_file__dev_urandom=yes
+ export ac_cv_struct_utsname=no
+ fi
+
+ autotools-utils_src_prepare
+}