head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.8 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.6 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.4 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.2 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.5.0.156 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.154 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.152 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.150 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.148 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.146 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.144 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.142 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.140 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.138 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.136 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.134 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.132 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.130 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.128 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.126 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.124 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.122 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.120 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.116 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.96 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.118 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.114 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.112 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.110 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.108 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.106 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.104 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.102 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.100 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.98 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.94 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.92 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.90 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.88 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.86 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.84 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.82 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.80 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.78 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.76 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.74 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.72 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.70 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.68 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.66 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.64 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.62 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.60 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.58 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.56 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.54 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.52 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.50 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.48 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.46 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.44 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.42 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.40 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.38 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.36 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.34 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.32 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.30 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.28 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.26 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.24 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.22 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.20 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.18 pkgsrc-2008Q1:1.5.0.16 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.14 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.12 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.10 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.8 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.6 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.4 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.2 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.4.0.10 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.8 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.6 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.4 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.2 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.3.0.6 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.4 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.2 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.2.0.10 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.8 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.2.0.4 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.6 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.2 pkgviews-base:1.2 buildlink2:1.1.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1; locks; strict; comment @# @; 1.6 date 2025.04.21.16.13.17; author wiz; state Exp; branches; next 1.5; commitid qq9a5fGFk3pj7WRF; 1.5 date 2006.05.02.19.06.45; author wiz; state Exp; branches; next 1.4; 1.4 date 2005.01.16.16.39.08; author tv; state Exp; branches; next 1.3; 1.3 date 2004.04.10.23.31.27; author minskim; state Exp; branches; next 1.2; 1.2 date 2002.06.10.15.09.17; author schmonz; state Exp; branches; next 1.1; 1.1 date 99.05.22.19.54.09; author tv; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2002.06.23.18.37.18; author jlam; state Exp; branches; next ; desc @@ 1.6 log @arc: remove Interix support @ text @$NetBSD: patch-ab,v 1.5 2006/05/02 19:06:45 wiz Exp $ --- arcdos.c.orig 2010-08-07 13:06:42.000000000 +0000 +++ arcdos.c @@@@ -31,7 +31,11 @@@@ #include #include #if BSD +#ifdef __linux__ +#include +#else #include +#endif #else #include /* Sys V. Bleah. */ #if NEED_TIMEVAL @@@@ -175,14 +179,14 @@@@ setstamp(f, date, time) /* set a file's struct tm tm; struct timeval tvp[2]; int utimes(); - long tmclock(); tm.tm_sec = (time & 31) * 2; tm.tm_min = (time >> 5) & 63; tm.tm_hour = (time >> 11); tm.tm_mday = date & 31; tm.tm_mon = ((date >> 5) & 15) - 1; tm.tm_year = (date >> 9) + 80; - tvp[0].tv_sec = tmclock(&tm); + tm.tm_isdst = -1; + tvp[0].tv_sec = mktime(&tm); tvp[1].tv_sec = tvp[0].tv_sec; tvp[0].tv_usec = tvp[1].tv_usec = 0; utimes(f, tvp); @ 1.5 log @Update to 5.21o: CHANGES IN VERSION 5.21o (Howard Chu, 12 Oct 2005) Silence warnings about unused results. CHANGES IN VERSION 5.21n (Howard Chu, 08 Oct 2005) Better fix for temporary file creations, previous patch did not fix marc. Silence all gcc-4.0.0 -Wall warnings. CHANGES IN VERSION 5.21m (Klaus Reimer, 21 Sep 2005) Applied patch from Joey Schulze fixing the following problems: - Fixed insecure permissions of a temporary file [arcsvc.c, CAN-2005-2945] - Fixed insecure temporary file creation [arcsvc.c, CAN-2005-2992] CHANGES IN VERSION 5.21l (Klaus Reimer, 13 Mar 2005) Fixed warnings because missing inclusion of string.h and fixed a gcc-4.0 problem with marc.c (Missing declaration of makefnam). CHANGES IN VERSION 5.21k (Klaus Reimer, 6 Nov 2004) Ulf Harnhammar found some buffer overflows causing segfaults and provided a patch which is now applied to arc to close these bugs. CHANGES IN VERSION 5.21 The following changes have been made in ARC version 5.21, but have not yet been included in the manual: o When adding files to an archive, ARC now shows the stowage facter achieved on each file. o A bug was found that would keep an archive entry from being encrypted if it was stored without compression. This has now been fixed. o If changes are made to a corrupted archive, the corrupted entries are discarded. This makes it possible to lose data accidentally. ARC will now only make changes to a corrupted archive if the W (suppress Warnings) option has been given. o The N (suppress Notes) option now suppresses the "Creating archive" note when a new archive is being created. o The N (suppress Notes) option formerly did nothing useful when used with the L (List files) command. It now causes a terse listing of filenames only, suitable for use with pipes and redirection. o The list of filenames given to ARC may now include indirect references. If a filename begins with an "at sign" ("@@"), it is taken to be the name of a file which contains a list of file names. The list of file names may include further indirection. If no extension is given, ".CMD" is assumed. For example, the command: arc a waste junk.txt @@trash would cause ARC to add JUNK.TXT plus all files listed in the file TRASH.CMD to an archive named WASTE.ARC. If no file is specified, then the list is read from standard input. For example, the command: arc ln waste | arc a trash @@ would cause ARC to add files to TRASH.ARC based on the names of the files stored in WASTE.ARC. It is probably a good idea to give the O (Overwrite) option if you are extracting files this way. Version 5.21 of MARC also allows for indirection. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2005/01/16 16:39:08 tv Exp $ d3 1 a3 1 --- arcdos.c.orig 2003-10-31 03:32:19.000000000 +0100 d17 1 a17 15 @@@@ -52,6 +56,11 @@@@ struct timeval { char *malloc(); #endif +#if defined(__INTERIX) +#define NO_UTIMES +#include +#endif + VOID getstamp(f, date, time) /* get a file's date/time stamp */ #if !_MTS @@@@ -173,20 +182,29 @@@@ setstamp(f, date, time) /* set a file's #endif #if UNIX a18 3 +#ifdef NO_UTIMES + struct utimbuf utb; +#else a19 1 +#endif a29 4 +#ifdef NO_UTIMES + utb.actime = utb.modtime = mktime(&tm); + utime(f, &utb); +#else a33 5 #endif +#endif } #if MSDOS @ 1.4 log @MAke build on Interix. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- arcdos.c.orig 1992-04-14 18:58:21.000000000 -0400 d16 2 a17 2 struct timeval { @@@@ -50,6 +54,11 @@@@ struct timeval { d29 1 a29 1 @@@@ -171,20 +180,29 @@@@ setstamp(f, date, time) /* set a file's @ 1.3 log @Make this package build on Linux. Patch provided by Georg Schwarz in PR pkg/25043. @ text @d3 1 a3 1 --- arcdos.c.orig 1992-04-14 17:58:21.000000000 -0500 d17 15 a31 1 @@@@ -173,14 +177,21 @@@@ setstamp(f, date, time) /* set a file's d33 3 d37 1 d39 1 a39 3 +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__) long tmclock(); +#endif d46 1 d48 3 a50 2 +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__) tvp[0].tv_sec = tmclock(&tm); a52 1 +#endif d56 5 @ 1.2 log @Darwinize. Instead of the deprecated timelocal() (which doesn't exist on Darwin), use mktime() with a negative tm_isdst. Thanks to christos for comments. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 1999/05/22 19:54:09 tv Exp $ d3 15 a17 3 --- arcdos.c.orig Tue Apr 14 18:58:21 1992 +++ arcdos.c Sun Jun 9 12:01:30 2002 @@@@ -173,14 +173,21 @@@@ d21 1 a21 1 +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) d31 1 a31 1 +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) @ 1.1 log @Some minor pkglint; split patch, fix typo, and use ${INSTALL_*} macros. @ text @d1 1 a1 1 $NetBSD$ d4 2 a5 2 +++ arcdos.c Sat May 22 15:43:27 1999 @@@@ -173,14 +173,20 @@@@ d9 1 a9 1 +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) d18 2 a19 1 +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) d22 1 a22 1 + tvp[0].tv_sec = timelocal(&tm); @ 1.1.2.1 log @Merge from pkgsrc-current to buildlink2 branch. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2002/06/10 15:09:17 schmonz Exp $ d4 2 a5 2 +++ arcdos.c Sun Jun 9 12:01:30 2002 @@@@ -173,14 +173,21 @@@@ d9 1 a9 1 +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) d18 1 a18 2 + tm.tm_isdst = -1; +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) d21 1 a21 1 + tvp[0].tv_sec = mktime(&tm); @