From 597601f41d892c9a3afe9ff96909a59f1f07d9e0 Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sun, 23 Nov 2008 12:46:48 +0000 Subject: [PATCH] Stefan Fiedler: netkit-base: fix for cross builds [2008101217563318516] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@9122 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../base/netkit-base/configure.patch.cross | 29 +++++++++++++++++++ package/base/netkit-base/netkit-base.conf | 4 +-- package/base/netkit-base/netkit-base.desc | 2 +- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 package/base/netkit-base/configure.patch.cross diff --git a/package/base/netkit-base/configure.patch.cross b/package/base/netkit-base/configure.patch.cross new file mode 100644 index 000000000..9c3d85e6c --- /dev/null +++ b/package/base/netkit-base/configure.patch.cross @@ -0,0 +1,29 @@ +--- netkit-base-0.17/configure 2000-07-29 18:00:28.000000000 +0000 ++++ src.netkit-base.1190967273.11997.4073649454/netkit-base-0.17/configure 2007-09-29 05:52:51.000000000 +0000 +@@ -107,7 +107,7 @@ + echo -n 'Checking if C compiler works... ' + if ( + $CC __conftest.c -o __conftest || exit 1 +- ./__conftest || exit 1 ++# ./__conftest || exit 1 + ) >/dev/null 2>&1; then + echo 'yes' + else +@@ -187,7 +187,7 @@ + EOF + if ( + $CC $CFLAGS __conftest.c -o __conftest || exit 1 +- ./__conftest || exit 1 ++# ./__conftest || exit 1 + ) >/dev/null 2>&1; then + echo 'yes' + else +@@ -297,7 +297,7 @@ + EOF + if ( + $CC $CFLAGS __conftest.c $LIBBSD -o __conftest || exit 1 +- ./__conftest || exit 1 ++# ./__conftest || exit 1 + ) >/dev/null 2>&1; then + echo 'ok' + else diff --git a/package/base/netkit-base/netkit-base.conf b/package/base/netkit-base/netkit-base.conf index 14f3e2587..2933a5498 100644 --- a/package/base/netkit-base/netkit-base.conf +++ b/package/base/netkit-base/netkit-base.conf @@ -20,12 +20,12 @@ # # --- ROCK-COPYRIGHT-NOTE-END --- +var_append extraconfopt " " "--installroot=$root/" nkb_inst() { install_init inetd $confdir/inetd.init cp $confdir/inetd.conf $root/etc/ - rm -f /usr/bin/rpcinfo # we use the one of glibc + rm -f $root/usr/bin/rpcinfo # we use the one of glibc } postmake="nkb_inst" -confopt="--prefix=/usr --root-prefix=/" diff --git a/package/base/netkit-base/netkit-base.desc b/package/base/netkit-base/netkit-base.desc index 43b741d74..c4bfe412a 100644 --- a/package/base/netkit-base/netkit-base.desc +++ b/package/base/netkit-base/netkit-base.desc @@ -36,7 +36,7 @@ [L] OpenSource [S] Stable [V] 0.17 -[P] X --?--5---9 145.500 +[P] X --X--5---9 145.500 [D] 4073373416 netkit-base-0.17.tar.gz ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/