rsync 2.6.9

付属のconfigureスクリプトではIPv6が検出できないので以下のように configure.inを修正します。

--- configure.in.orig   2007-08-07 21:57:21.546396000 +0900
+++ configure.in        2007-08-07 21:55:38.258571000 +0900
@@ -193,8 +193,18 @@
                [don't even try to use IPv6]))
 if test x"$enable_ipv6" != x"no"; then
        AC_MSG_CHECKING([ipv6 stack type])
-       for i in inria kame linux-glibc linux-inet6 toshiba v6d zeta; do
+       for i in generic inria kame linux-glibc linux-inet6 toshiba v6d zeta; do
                case $i in
+               generic)
+                               AC_EGREP_CPP(yes, [
+#include 
+#ifdef AF_INET6
+yes
+#endif],
+                               [ipv6type=$i;
+                               AC_DEFINE(INET6, 1, [true if you have
IPv6])
+                               ])
+                       ;;
                inria)
                        # http://www.kame.net/
                        AC_EGREP_CPP(yes, [

configureスクリプトを作り直します。

% autoconf configure.in > configure

以下のスクリプトを実行しmakeします。

setup.sh

#!/bin/sh

if [ $# -eq 1 ]; then
        . ../setup-pre.sh $1
else
        . ../setup-pre.sh
fi

./configure $CONFDIRS --prefix=/usr/local \
        --with-rsyncd-conf=/etc/rsyncd.conf

setup.shを実行してmakeします。

% ./setup.sh && gmake
or
% ./setup.sh sparcv9 && gmake

インストールします。

# gmake install
# cd /usr/local/bin
# ln /usr/lib/isaexec rsync

hiraga@next-hop.net
Last modified: $Date: 2007/11/10 10:25:32 $
Apache