summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2014-01-08 11:54:04 +0000
committerhauke <hauke@pkgsrc.org>2014-01-08 11:54:04 +0000
commit8e899e73022d4321cf699b55a770df3d63e81466 (patch)
treefbbda708bbfa9704bf175cc6d6371abd53196b38 /sysutils
parent0ea3561d4ad6e0b0f1d71daf585ce8b7b5bd0a20 (diff)
downloadpkgsrc-8e899e73022d4321cf699b55a770df3d63e81466.tar.gz
Back-port and complete the fixes from radmind HEAD to support 64 bit
time_t on NetBSD 6+. The configure patch had to be generated with autoconf downgraded to 2.61 - leave it to autohell to ruin your day... While we are here, shake, rattle & roll the patches. The resulting gyrations finally fix PR pkg/46555
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/radmind/Makefile7
-rw-r--r--sysutils/radmind/distinfo20
-rw-r--r--sysutils/radmind/patches/patch-Makefile.in (renamed from sysutils/radmind/patches/patch-aa)6
-rw-r--r--sysutils/radmind/patches/patch-command.c54
-rw-r--r--sysutils/radmind/patches/patch-command.h10
-rw-r--r--sysutils/radmind/patches/patch-config.h.in15
-rw-r--r--sysutils/radmind/patches/patch-configure420
-rw-r--r--sysutils/radmind/patches/patch-configure.ac12
-rw-r--r--sysutils/radmind/patches/patch-ktcheck.c22
-rw-r--r--sysutils/radmind/patches/patch-largefile.h24
-rw-r--r--sysutils/radmind/patches/patch-lcksum.c13
-rw-r--r--sysutils/radmind/patches/patch-libsnet_snet.c (renamed from sysutils/radmind/patches/patch-ac)4
-rw-r--r--sysutils/radmind/patches/patch-ra.sh (renamed from sysutils/radmind/patches/patch-ab)10
-rw-r--r--sysutils/radmind/patches/patch-retr.c (renamed from sysutils/radmind/patches/patch-ae)4
-rw-r--r--sysutils/radmind/patches/patch-transcript.c29
-rw-r--r--sysutils/radmind/patches/patch-update.c21
16 files changed, 649 insertions, 22 deletions
diff --git a/sysutils/radmind/Makefile b/sysutils/radmind/Makefile
index edde4f99ef0..2c0f13f54e4 100644
--- a/sysutils/radmind/Makefile
+++ b/sysutils/radmind/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.32 2013/03/26 14:38:11 hauke Exp $
+# $NetBSD: Makefile,v 1.33 2014/01/08 11:54:04 hauke Exp $
#
DISTNAME= radmind-1.14.1
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=radmind/}
@@ -11,9 +11,6 @@ HOMEPAGE= http://rsug.itd.umich.edu/software/radmind/
COMMENT= Remote file administration and integrity tool
LICENSE= modified-bsd
-# Not yet 64 bit time_t safe, see PR pkg/46555
-NOT_FOR_PLATFORM= NetBSD-5.99.*-* NetBSD-[6-9]*-*
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+= --with-radminddir=${RADMINDDIR}
diff --git a/sysutils/radmind/distinfo b/sysutils/radmind/distinfo
index a5ecf407206..7407ee08ca0 100644
--- a/sysutils/radmind/distinfo
+++ b/sysutils/radmind/distinfo
@@ -1,9 +1,19 @@
-$NetBSD: distinfo,v 1.18 2010/12/14 16:27:29 hauke Exp $
+$NetBSD: distinfo,v 1.19 2014/01/08 11:54:04 hauke Exp $
SHA1 (radmind-1.14.1.tar.gz) = 26f37f1c002384a9c609e688d6cee2fa15b6d0d2
RMD160 (radmind-1.14.1.tar.gz) = 6b925083ef9dce2de21ebb0ffef287b1ffe9173d
Size (radmind-1.14.1.tar.gz) = 403553 bytes
-SHA1 (patch-aa) = e82fdc59bfc79f736ca135af9ed9923c09de488f
-SHA1 (patch-ab) = 52683f62bd36e22dcf56f6d19968ba2efd8926ed
-SHA1 (patch-ac) = b4aa18fcd8eb0b9dd36def555e7505a3ed557017
-SHA1 (patch-ae) = c42712bbc9494cc6cbb1300abadfa0b5a05f03f9
+SHA1 (patch-Makefile.in) = 3602966fb8f7c5118fa378a6646b81dbf0d69ab7
+SHA1 (patch-command.c) = f274826aa830263b84202a55c05bf87e44c0b9c1
+SHA1 (patch-command.h) = c050593ab68538e99bd79030e50e803d17027cdb
+SHA1 (patch-config.h.in) = a5e157b47fb28d33e2a28fecc9367ff410c6fda5
+SHA1 (patch-configure) = ecf336c9b77b1622a0190a67c268012cedd074b5
+SHA1 (patch-configure.ac) = 1d009458df88fba1a25425306a46cad7d2b51737
+SHA1 (patch-ktcheck.c) = 1dff9d5d0a169b2f544f66fc79a42d22f8a5f54d
+SHA1 (patch-largefile.h) = 574e908d716d50aab84fccdd699c8b03c56b6e05
+SHA1 (patch-lcksum.c) = 2d8a8285eb70988a32b41f77d4683ef5ca127883
+SHA1 (patch-libsnet_snet.c) = 2268af5ada0b8e1c212dbd258b1a1632f2ff7613
+SHA1 (patch-ra.sh) = 7bdaec355d9fbe98f0cb7e8f49d928f4c2dfd823
+SHA1 (patch-retr.c) = 69cdf4260583313f0a9f95dfe5597ee03897a313
+SHA1 (patch-transcript.c) = b309079b7a272547f4c8843b925dd29479cc7e1d
+SHA1 (patch-update.c) = e27b377378aae6d51cdbb3b9e9f04e5dd33ee211
diff --git a/sysutils/radmind/patches/patch-aa b/sysutils/radmind/patches/patch-Makefile.in
index e278bb6e037..341bfadc489 100644
--- a/sysutils/radmind/patches/patch-aa
+++ b/sysutils/radmind/patches/patch-Makefile.in
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.5 2007/08/23 14:10:29 hauke Exp $
+$NetBSD: patch-Makefile.in,v 1.1 2014/01/08 11:54:04 hauke Exp $
---- Makefile.in.orig 2007-06-18 23:02:05.000000000 +0200
+--- Makefile.in.orig 2010-12-13 03:43:49.000000000 +0000
+++ Makefile.in
-@@ -253,6 +253,8 @@ rash : FRC
+@@ -269,6 +269,8 @@ rash : FRC
-e 's@_RADMIND_MAIL_DOMAIN@${RADMIND_MAIL_DOMAIN}@g' \
-e 's@_RADMIND_COMMANDFILE@${COMMANDFILE}@g' \
-e 's@_RADMIND_VERSION@$(shell cat VERSION)@g' \
diff --git a/sysutils/radmind/patches/patch-command.c b/sysutils/radmind/patches/patch-command.c
new file mode 100644
index 00000000000..91eab777b3a
--- /dev/null
+++ b/sysutils/radmind/patches/patch-command.c
@@ -0,0 +1,54 @@
+$NetBSD: patch-command.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- command.c.orig 2010-12-13 03:42:49.000000000 +0000
++++ command.c
+@@ -624,11 +624,11 @@ f_stat( SNET *sn, int ac, char *av[] )
+ switch ( key ) {
+ case K_COMMAND:
+ if ( ac == 2 ) {
+- snet_writef( sn, "%s %s %o %d %d %d %" PRIofft "d %s\r\n",
++ snet_writef( sn, RADMIND_STAT_FMT,
+ "f", "command", DEFAULT_MODE, DEFAULT_UID, DEFAULT_GID,
+ st.st_mtime, st.st_size, cksum_b64 );
+ } else {
+- snet_writef( sn, "%s %s %o %d %d %d %" PRIofft "d %s\r\n",
++ snet_writef( sn, RADMIND_STAT_FMT,
+ "f", av[ 2 ], DEFAULT_MODE, DEFAULT_UID, DEFAULT_GID,
+ st.st_mtime, st.st_size, cksum_b64 );
+ }
+@@ -636,7 +636,7 @@ f_stat( SNET *sn, int ac, char *av[] )
+
+
+ case K_TRANSCRIPT:
+- snet_writef( sn, "%s %s %o %d %d %d %" PRIofft "d %s\r\n",
++ snet_writef( sn, RADMIND_STAT_FMT,
+ "f", av[ 2 ],
+ DEFAULT_MODE, DEFAULT_UID, DEFAULT_GID,
+ st.st_mtime, st.st_size, cksum_b64 );
+@@ -655,7 +655,7 @@ f_stat( SNET *sn, int ac, char *av[] )
+ "f_stat: transcript path longer than MAXPATHLEN" );
+
+ /* return constants */
+- snet_writef( sn, "%s %s %o %d %d %d %" PRIofft "d %s\r\n",
++ snet_writef( sn, RADMIND_STAT_FMT,
+ "f", av[ 2 ],
+ DEFAULT_MODE, DEFAULT_UID, DEFAULT_GID,
+ st.st_mtime, st.st_size, cksum_b64 );
+@@ -682,7 +682,7 @@ f_stat( SNET *sn, int ac, char *av[] )
+ if (( av = special_t( path, enc_file )) == NULL ) {
+ if (( av = special_t( "transcript/special.T", enc_file ))
+ == NULL ) {
+- snet_writef( sn, "%s %s %o %d %d %d %" PRIofft "d %s\r\n",
++ snet_writef( sn, RADMIND_STAT_FMT,
+ "f", enc_file,
+ DEFAULT_MODE, DEFAULT_UID, DEFAULT_GID,
+ st.st_mtime, st.st_size, cksum_b64 );
+@@ -690,7 +690,7 @@ f_stat( SNET *sn, int ac, char *av[] )
+ return( 0 );
+ }
+ }
+- snet_writef( sn, "%s %s %s %s %s %d %" PRIofft "d %s\r\n",
++ snet_writef( sn, RADMIND_STAT_FMT,
+ av[ 0 ], enc_file,
+ av[ 2 ], av[ 3 ], av[ 4 ],
+ st.st_mtime, st.st_size, cksum_b64 );
diff --git a/sysutils/radmind/patches/patch-command.h b/sysutils/radmind/patches/patch-command.h
new file mode 100644
index 00000000000..9f347f65b7f
--- /dev/null
+++ b/sysutils/radmind/patches/patch-command.h
@@ -0,0 +1,10 @@
+$NetBSD: patch-command.h,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- command.h.orig 2010-12-13 03:42:49.000000000 +0000
++++ command.h
+@@ -13,3 +13,5 @@ struct command {
+ char *c_name;
+ int (*c_func)( SNET *, int, char *[] );
+ };
++
++#define RADMIND_STAT_FMT "%s %s %o %d %d %" PRItimet "d %" PRIofft "d %s\r\n"
diff --git a/sysutils/radmind/patches/patch-config.h.in b/sysutils/radmind/patches/patch-config.h.in
new file mode 100644
index 00000000000..af6ee74c3ba
--- /dev/null
+++ b/sysutils/radmind/patches/patch-config.h.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-config.h.in,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- config.h.in.orig 2010-12-13 03:42:49.000000000 +0000
++++ config.h.in
+@@ -1,6 +1,9 @@
+-/* Size of off_T */
++/* Size of off_t */
+ #undef SIZEOF_OFF_T
+
++/* Size of time_t */
++#undef SIZEOF_TIME_T
++
+ /* Version number of package */
+ #undef VERSION
+
diff --git a/sysutils/radmind/patches/patch-configure b/sysutils/radmind/patches/patch-configure
new file mode 100644
index 00000000000..b8c35cecd59
--- /dev/null
+++ b/sysutils/radmind/patches/patch-configure
@@ -0,0 +1,420 @@
+$NetBSD: patch-configure,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+This patch was generated by downgrading devel/autoconf to 2.61,
+and diffing the autoconf generated 'configure' script
+against the distributed one.
+
+--- configure.orig 2010-12-13 03:49:48.000000000 +0000
++++ configure
+@@ -4525,6 +4525,411 @@ cat >>confdefs.h <<_ACEOF
+ _ACEOF
+
+
++{ echo "$as_me:$LINENO: checking for time_t" >&5
++echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
++if test "${ac_cv_type_time_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++typedef time_t ac__type_new_;
++int
++main ()
++{
++if ((ac__type_new_ *) 0)
++ return 0;
++if (sizeof (ac__type_new_))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_compile") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest.$ac_objext; then
++ ac_cv_type_time_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_cv_type_time_t=no
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++{ echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
++echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
++
++# The cast to long int works around a bug in the HP C Compiler
++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
++# This bug is HP SR number 8606223364.
++{ echo "$as_me:$LINENO: checking size of time_t" >&5
++echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
++if test "${ac_cv_sizeof_time_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test "$cross_compiling" = yes; then
++ # Depending upon the size, compute the lo and hi bounds.
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++ typedef time_t ac__type_sizeof_;
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
++test_array [0] = 0
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_compile") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest.$ac_objext; then
++ ac_lo=0 ac_mid=0
++ while :; do
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++ typedef time_t ac__type_sizeof_;
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
++test_array [0] = 0
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_compile") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest.$ac_objext; then
++ ac_hi=$ac_mid; break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_lo=`expr $ac_mid + 1`
++ if test $ac_lo -le $ac_mid; then
++ ac_lo= ac_hi=
++ break
++ fi
++ ac_mid=`expr 2 '*' $ac_mid + 1`
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ done
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++ typedef time_t ac__type_sizeof_;
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
++test_array [0] = 0
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_compile") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest.$ac_objext; then
++ ac_hi=-1 ac_mid=-1
++ while :; do
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++ typedef time_t ac__type_sizeof_;
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
++test_array [0] = 0
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_compile") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest.$ac_objext; then
++ ac_lo=$ac_mid; break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_hi=`expr '(' $ac_mid ')' - 1`
++ if test $ac_mid -le $ac_hi; then
++ ac_lo= ac_hi=
++ break
++ fi
++ ac_mid=`expr 2 '*' $ac_mid`
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ done
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_lo= ac_hi=
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++# Binary search between lo and hi bounds.
++while test "x$ac_lo" != "x$ac_hi"; do
++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++ typedef time_t ac__type_sizeof_;
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
++test_array [0] = 0
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_compile") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest.$ac_objext; then
++ ac_hi=$ac_mid
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_lo=`expr '(' $ac_mid ')' + 1`
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++case $ac_lo in
++?*) ac_cv_sizeof_time_t=$ac_lo;;
++'') if test "$ac_cv_type_time_t" = yes; then
++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute sizeof (time_t)
++See \`config.log' for more details." >&2;}
++ { (exit 77); exit 77; }; }
++ else
++ ac_cv_sizeof_time_t=0
++ fi ;;
++esac
++else
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++ typedef time_t ac__type_sizeof_;
++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
++#include <stdio.h>
++#include <stdlib.h>
++int
++main ()
++{
++
++ FILE *f = fopen ("conftest.val", "w");
++ if (! f)
++ return 1;
++ if (((long int) (sizeof (ac__type_sizeof_))) < 0)
++ {
++ long int i = longval ();
++ if (i != ((long int) (sizeof (ac__type_sizeof_))))
++ return 1;
++ fprintf (f, "%ld\n", i);
++ }
++ else
++ {
++ unsigned long int i = ulongval ();
++ if (i != ((long int) (sizeof (ac__type_sizeof_))))
++ return 1;
++ fprintf (f, "%lu\n", i);
++ }
++ return ferror (f) || fclose (f) != 0;
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_link") 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++ { (case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_try") 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_sizeof_time_t=`cat conftest.val`
++else
++ echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++if test "$ac_cv_type_time_t" = yes; then
++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute sizeof (time_t)
++See \`config.log' for more details." >&2;}
++ { (exit 77); exit 77; }; }
++ else
++ ac_cv_sizeof_time_t=0
++ fi
++fi
++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f conftest.val
++fi
++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
++echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
++
++
++
++cat >>confdefs.h <<_ACEOF
++#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
++_ACEOF
++
++
+
+ # Checks for libraries.
+ { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
diff --git a/sysutils/radmind/patches/patch-configure.ac b/sysutils/radmind/patches/patch-configure.ac
new file mode 100644
index 00000000000..111f687894d
--- /dev/null
+++ b/sysutils/radmind/patches/patch-configure.ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-configure.ac,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- configure.ac.orig 2010-12-13 03:43:38.000000000 +0000
++++ configure.ac
+@@ -44,6 +44,7 @@ AC_SYS_LARGEFILE
+
+ # Check sizes
+ AC_CHECK_SIZEOF(off_t)
++AC_CHECK_SIZEOF(time_t)
+
+ # Checks for libraries.
+ AC_CHECK_LIB(c, inet_aton, libc_inet_aton=yes)
diff --git a/sysutils/radmind/patches/patch-ktcheck.c b/sysutils/radmind/patches/patch-ktcheck.c
new file mode 100644
index 00000000000..699950e062e
--- /dev/null
+++ b/sysutils/radmind/patches/patch-ktcheck.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-ktcheck.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- ktcheck.c.orig 2010-12-13 03:42:49.000000000 +0000
++++ ktcheck.c
+@@ -459,7 +459,7 @@ check( SNET *sn, char *type, char *file
+ perror( "Incorrect number of arguments\n" );
+ return( 2 );
+ }
+- times.modtime = atoi( targv[ 5 ] );
++ times.modtime = strtotimet( targv[ 5 ], NULL, 10 );
+ times.actime = time( NULL );
+
+ if (( stat( path, &st )) != 0 ) {
+@@ -506,7 +506,7 @@ check( SNET *sn, char *type, char *file
+ needupdate = 1;
+ }
+ } else {
+- if ( atoi( targv[ 5 ] ) != (int)st.st_mtime ) {
++ if ( strtotimet( targv[ 5 ], NULL, 10 ) != st.st_mtime ) {
+ needupdate = 1;
+ }
+ }
diff --git a/sysutils/radmind/patches/patch-largefile.h b/sysutils/radmind/patches/patch-largefile.h
new file mode 100644
index 00000000000..70283ac79a8
--- /dev/null
+++ b/sysutils/radmind/patches/patch-largefile.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-largefile.h,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- largefile.h.orig 2010-12-13 03:42:49.000000000 +0000
++++ largefile.h
+@@ -18,3 +18,19 @@
+ #define strtoofft(x,y,z) (strtol((x),(y),(z)))
+ #define PRIofft "l"
+ #endif
++
++#ifndef SIZEOF_TIME_T
++#error "sizeof time_t unknown."
++#endif
++
++#if SIZEOF_TIME_T == 8
++ #ifdef HAVE_STRTOLL
++ #define strtotimet(x,y,z) (strtoll((x),(y),(z)))
++ #else /* !HAVE_STRTOLL */
++ #define strtotimet(x,y,z) (strtol((x),(y),(z)))
++ #endif /* HAVE_STRTOLL */
++ #define PRItimet "ll"
++#else /* SIZEOF_TIME_T != 8 */
++ #define strtotimet(x,y,z) (strtol((x),(y),(z)))
++ #define PRItimet "l"
++#endif /* SIZEOF_TIME_T */
diff --git a/sysutils/radmind/patches/patch-lcksum.c b/sysutils/radmind/patches/patch-lcksum.c
new file mode 100644
index 00000000000..3da70c9e305
--- /dev/null
+++ b/sysutils/radmind/patches/patch-lcksum.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-lcksum.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- lcksum.c.orig 2010-12-13 03:42:49.000000000 +0000
++++ lcksum.c
+@@ -434,7 +434,7 @@ do_lcksum( char *tpath )
+ /* Check to see if checksum is listed in transcript */
+ if ( strcmp( targv[ 7 ], "-" ) != 0) {
+ /* use mtime from server */
+- fprintf( ufs, "%s %-37s %4s %5s %5s %9ld "
++ fprintf( ufs, "%s %-37s %4s %5s %5s %9" PRItimet "d "
+ "%7" PRIofft "d %s\n",
+ targv[ 0 ], targv[ 1 ], targv[ 2 ], targv[ 3 ],
+ targv[ 4 ], st.st_mtime, st.st_size, lcksum );
diff --git a/sysutils/radmind/patches/patch-ac b/sysutils/radmind/patches/patch-libsnet_snet.c
index 60a50237f28..0fb9df6646f 100644
--- a/sysutils/radmind/patches/patch-ac
+++ b/sysutils/radmind/patches/patch-libsnet_snet.c
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.5 2010/11/29 15:24:23 hauke Exp $
+$NetBSD: patch-libsnet_snet.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
---- libsnet/snet.c.orig 2010-11-28 20:37:52.000000000 +0000
+--- libsnet/snet.c.orig 2010-12-13 03:43:00.000000000 +0000
+++ libsnet/snet.c
@@ -792,7 +792,6 @@ snet_read1( sn, buf, len, tv )
fd_set fds;
diff --git a/sysutils/radmind/patches/patch-ab b/sysutils/radmind/patches/patch-ra.sh
index 802a05ff765..1a9ece428f9 100644
--- a/sysutils/radmind/patches/patch-ab
+++ b/sysutils/radmind/patches/patch-ra.sh
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.8 2008/11/20 13:45:29 hauke Exp $
+$NetBSD: patch-ra.sh,v 1.1 2014/01/08 11:54:04 hauke Exp $
---- ra.sh.orig 2008-06-05 02:08:07.000000000 +0200
+--- ra.sh.orig 2010-12-13 03:42:49.000000000 +0000
+++ ra.sh
-@@ -30,7 +30,7 @@ EDITOR=${EDITOR:-vi}
+@@ -31,7 +31,7 @@ EDITOR=${EDITOR:-vi}
PAGER=${PAGER:-cat}
USER=${SUDO_USER:-$USER}
TMPDIR="${TMPDIR:=/tmp}"
@@ -11,7 +11,7 @@ $NetBSD: patch-ab,v 1.8 2008/11/20 13:45:29 hauke Exp $
FSDIFFROOT="."
DEFAULTWORKDIR="/"
FLAG="_RADMIND_DIR/client/.RadmindRunning"
-@@ -42,7 +42,7 @@ VERSION=_RADMIND_VERSION
+@@ -46,7 +46,7 @@ NETOPTS=
PREAPPLY="_RADMIND_PREAPPLY"
POSTAPPLY="_RADMIND_POSTAPPLY"
@@ -20,7 +20,7 @@ $NetBSD: patch-ab,v 1.8 2008/11/20 13:45:29 hauke Exp $
RETRY=10
MKTEMP="_RADMIND_MKTEMP"
-@@ -58,14 +58,6 @@ fi
+@@ -62,14 +62,6 @@ fi
LTMP="${RASHTMP}/lapply.out"
FTMP="${RASHTMP}/fsdiff.out"
diff --git a/sysutils/radmind/patches/patch-ae b/sysutils/radmind/patches/patch-retr.c
index 4ff9cc1c798..9d5bd97e65f 100644
--- a/sysutils/radmind/patches/patch-ae
+++ b/sysutils/radmind/patches/patch-retr.c
@@ -1,6 +1,6 @@
-$NetBSD: patch-ae,v 1.2 2007/09/04 11:55:44 hauke Exp $
+$NetBSD: patch-retr.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
---- retr.c.orig 2007-07-11 05:01:42.000000000 +0200
+--- retr.c.orig 2010-12-13 03:42:49.000000000 +0000
+++ retr.c
@@ -47,7 +47,6 @@ extern int verbose;
extern int showprogress;
diff --git a/sysutils/radmind/patches/patch-transcript.c b/sysutils/radmind/patches/patch-transcript.c
new file mode 100644
index 00000000000..45433c00363
--- /dev/null
+++ b/sysutils/radmind/patches/patch-transcript.c
@@ -0,0 +1,29 @@
+$NetBSD: patch-transcript.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- transcript.c.orig 2010-12-13 03:42:49.000000000 +0000
++++ transcript.c
+@@ -271,7 +271,7 @@ transcript_parse( struct transcript *tra
+ tran->t_pinfo.pi_stat.st_mode = strtol( argv[ 2 ], NULL, 8 );
+ tran->t_pinfo.pi_stat.st_uid = atoi( argv[ 3 ] );
+ tran->t_pinfo.pi_stat.st_gid = atoi( argv[ 4 ] );
+- tran->t_pinfo.pi_stat.st_mtime = atoi( argv[ 5 ] );
++ tran->t_pinfo.pi_stat.st_mtime = strtotimet( argv[ 5 ], NULL, 10 );
+ tran->t_pinfo.pi_stat.st_size = strtoofft( argv[ 6 ], NULL, 10 );
+ if ( tran->t_type != T_NEGATIVE ) {
+ if (( cksum ) && ( strcmp( "-", argv [ 7 ] ) == 0 )) {
+@@ -436,12 +436,13 @@ t_print( struct pathinfo *fs, struct tra
+ * but the corresponding transcript is negative, hence, retain
+ * the file system's mtime. Woof!
+ */
+- fprintf( outtran, "%c %-37s\t%.4lo %5d %5d %9d %7" PRIofft "d %s\n",
++ fprintf( outtran, "%c %-37s\t%.4lo %5d %5d %9" PRItimet "d "
++ "%7" PRIofft "d %s\n",
+ cur->pi_type, epath,
+ (unsigned long)( T_MODE & cur->pi_stat.st_mode ),
+ (int)cur->pi_stat.st_uid, (int)cur->pi_stat.st_gid,
+ ( flag == PR_STATUS_NEG ) ?
+- (int)fs->pi_stat.st_mtime : (int)cur->pi_stat.st_mtime,
++ fs->pi_stat.st_mtime : cur->pi_stat.st_mtime,
+ cur->pi_stat.st_size, cur->pi_cksum_b64 );
+ break;
+
diff --git a/sysutils/radmind/patches/patch-update.c b/sysutils/radmind/patches/patch-update.c
new file mode 100644
index 00000000000..50f81cd3ad2
--- /dev/null
+++ b/sysutils/radmind/patches/patch-update.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-update.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
+
+--- update.c.orig 2010-12-13 03:42:49.000000000 +0000
++++ update.c
+@@ -26,6 +26,7 @@
+ #include "update.h"
+ #include "code.h"
+ #include "radstat.h"
++#include "largefile.h"
+ #include "transcript.h"
+ #include "progress.h"
+ #include "mkdirs.h"
+@@ -73,7 +74,7 @@ update( char *path, char *displaypath, i
+
+ mode = strtol( targv[ 2 ], (char **)NULL, 8 );
+
+- times.modtime = atoi( targv[ 5 ] );
++ times.modtime = strtotimet( targv[ 5 ], NULL, 10 );
+ if ( times.modtime != st->st_mtime ) {
+ times.actime = st->st_atime;
+ if ( utime( path, &times ) != 0 ) {