head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.36 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.34 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.32 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.30 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.28 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.26 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.24 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.22 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.20 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.18 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.16 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.14 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.12 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.10 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.8 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.6 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.4 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.2 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.5.0.54 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.52 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.50 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.48 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.46 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.42 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.22 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.44 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.40 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.38 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.36 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.34 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.32 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.30 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.28 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.26 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.24 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.20 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.18 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.16 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.14 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.12 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.10 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.8 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.6 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.4 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.2 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.4.0.74 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.72 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.70 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.68 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.66 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.64 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.62 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.60 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.58 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.56 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.54 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.52 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.50 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.48 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.46 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.44 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.42 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.40 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.38 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.36 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.34 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.32 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.30 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.28 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.26 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.24 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.22 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.20 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.18 pkgsrc-2008Q1:1.4.0.16 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.14 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.12 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.10 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.8 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.6 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.4 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.2 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.3.0.28 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.26 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.24 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.22 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.20 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.18 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.16 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.14 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.12 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.10 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.3.0.6 netbsd-1-6-1-base:1.3 netbsd-1-6:1.3.0.8 netbsd-1-6-RELEASE-base:1.3 pkgviews:1.3.0.4 pkgviews-base:1.3 buildlink2:1.3.0.2 buildlink2-base:1.3 netbsd-1-5-PATCH003:1.3 netbsd-1-5-PATCH001:1.3 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.3 netbsd-1-4-PATCH001:1.3 netbsd-1-4-RELEASE:1.2 netbsd-1-3-PATCH003:1.2 netbsd-1-3-PATCH002:1.1.1.1 FreeBSD-current-1997-09-25:1.1.1.1 FREEBSD:1.1.1; locks; strict; comment @# @; 1.6 date 2021.11.06.09.49.20; author nia; state Exp; branches; next 1.5; commitid sH86GpiF5NmByIfD; 1.5 date 2015.01.04.10.43.44; author wiz; state Exp; branches; next 1.4; commitid IdhjCQEYxelx9H4y; 1.4 date 2006.05.02.19.06.45; author wiz; state Exp; branches; next 1.3; 1.3 date 99.05.22.19.54.09; author tv; state Exp; branches; next 1.2; 1.2 date 98.08.07.10.35.47; author agc; state Exp; branches; next 1.1; 1.1 date 97.10.27.02.18.56; author hubertf; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 97.10.27.02.18.56; author hubertf; state Exp; branches; next ; desc @@ 1.6 log @arc: Honor LDFLAGS when linking. @ text @$NetBSD: patch-aa,v 1.5 2015/01/04 10:43:44 wiz Exp $ Honor CC, CFLAGS. Use LDFLAGS when linking. --- Makefile.orig 2010-08-07 13:06:42.000000000 +0000 +++ Makefile @@@@ -44,14 +44,14 @@@@ SYSTEM = -DSYSV=1 OPT = -O -Wall # For MWC 3.0 on the Atari ST, use: #CFLAGS = -VCOMPAC -VPEEP -CFLAGS = $(OPT) $(SYSTEM) +CFLAGS += ${SYSTEM} # GNU's gcc is very nice, if you've got it. Otherwise just cc. #CC = cgcc -mshort -mbaserel -CC = cc +#CC = cc # tmclock is only needed on Unix systems... -TMCLOCK = tmclock.o +#TMCLOCK = tmclock.o # Integer-only stdio routines for Atari ST. #LIBS=-liio16 @@@@ -69,10 +69,10 @@@@ MOBJ = marc.o arcdata.o arcdos.o arcio.o all: arc$(PROG) marc$(PROG) arc$(PROG): $(OBJS) $(TMCLOCK) - $(CC) $(OPT) -o arc$(PROG) $(OBJS) $(TMCLOCK) $(LIBS) + $(CC) $(OPT) $(LDFLAGS) -o arc$(PROG) $(OBJS) $(TMCLOCK) $(LIBS) marc$(PROG): $(MOBJ) $(TMCLOCK) - $(CC) $(OPT) -o marc$(PROG) $(MOBJ) $(TMCLOCK) $(LIBS) + $(CC) $(OPT) $(LDFLAGS) -o marc$(PROG) $(MOBJ) $(TMCLOCK) $(LIBS) clean: rm -f *.o arc$(PROG) marc$(PROG) @@@@ -137,4 +137,4 @@@@ install: all install -s -m 0755 -D marc $(DESTDIR)$(PREFIX)/bin/marc install -m 0644 -D arc.1 $(DESTDIR)$(PREFIX)/share/man/man1/arc.1 install -m 0644 -D marc.1 $(DESTDIR)$(PREFIX)/share/man/man1/marc.1 - \ No newline at end of file + @ 1.5 log @Update to 5.21p: CHANGES IN VERSION 5.21p (Klaus Reimer , 07 Aug 2010) Replaced mktemp with mkstemp. Set correct version number and updated creation date in command-line help. Corrected content of PATCHLEVEL file. Added man page for marc. Added install make target. Added -Wall compiler flag. @ text @d1 3 a3 1 $NetBSD: patch-aa,v 1.4 2006/05/02 19:06:45 wiz Exp $ d25 20 @ 1.4 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-aa,v 1.3 1999/05/22 19:54:09 tv Exp $ d3 1 a3 1 --- Makefile.orig 2005-10-09 03:30:24.000000000 +0200 d5 2 a6 2 @@@@ -41,14 +41,14 @@@@ SYSTEM = -DSYSV=1 OPT = -O @ 1.3 log @Some minor pkglint; split patch, fix typo, and use ${INSTALL_*} macros. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- Makefile.orig Tue Apr 14 18:57:58 1992 +++ Makefile Sat May 22 15:44:36 1999 @@@@ -32,14 +32,7 @@@@ d10 4 a13 3 - -# GNU's gcc is very nice, if you've got it. Otherwise just cc. -#CC = cgcc -mshort d15 3 a17 2 - -# tmclock is only needed on Unix systems... d19 1 a19 1 +CFLAGS += $(SYSTEM) d21 2 a22 2 # Files needed for System V #SYSVOBJ = getwd.o rename.o scandir.o utimes.o @ 1.2 log @Add NetBSD RCS Ids. @ text @d3 18 a20 94 *** Makefile.old Wed Apr 15 02:57:58 1992 --- Makefile Sat Dec 31 20:36:07 1994 *************** *** 32,45 **** OPT = -O # For MWC 3.0 on the Atari ST, use: #CFLAGS = -VCOMPAC -VPEEP ! CFLAGS = $(OPT) $(SYSTEM) # GNU's gcc is very nice, if you've got it. Otherwise just cc. #CC = cgcc -mshort ! CC = cc # tmclock is only needed on Unix systems... ! TMCLOCK = tmclock.o # Files needed for System V #SYSVOBJ = getwd.o rename.o scandir.o utimes.o --- 32,46 ---- OPT = -O # For MWC 3.0 on the Atari ST, use: #CFLAGS = -VCOMPAC -VPEEP ! #CFLAGS = $(OPT) $(SYSTEM) ! CFLAGS+=$(SYSTEM) # GNU's gcc is very nice, if you've got it. Otherwise just cc. #CC = cgcc -mshort ! #CC = cc # tmclock is only needed on Unix systems... ! TMCLOCK = #tmclock.o # Files needed for System V #SYSVOBJ = getwd.o rename.o scandir.o utimes.o *************** *** 61,66 **** --- 62,71 ---- clean: -rm *.o arc$(PROG) marc$(PROG) + + install: + install -cs -o bin -g bin arc marc ${PREFIX}/bin + install -c -o bin -g bin arc.1 ${PREFIX}/man/man1 arc.o: $(SRCDIR)arc.c $(HEADER) $(CC) $(CFLAGS) -c $(SRCDIR)arc.c *** arcdos.c.old Wed Apr 15 02:58:21 1992 --- arcdos.c Sat Dec 31 20:32:25 1994 *************** *** 173,186 **** --- 173,192 ---- struct tm tm; struct timeval tvp[2]; int utimes(); + #if !defined(__FreeSBD__) && !defined(__OpenBSD__) long tmclock(); + #endif 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; + #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) tvp[0].tv_sec = tmclock(&tm); + #else + tvp[0].tv_sec = timelocal(&tm); + #endif tvp[1].tv_sec = tvp[0].tv_sec; tvp[0].tv_usec = tvp[1].tv_usec = 0; utimes(f, tvp); *** marc.c.old Wed Apr 15 02:59:21 1992 --- marc.c Sat Dec 31 20:40:30 1994 *************** *** 35,40 **** --- 35,41 ---- #endif VOID arcdie(); static VOID expandlst(), merge(); + char *makefnam(); /* filename fixup routine */ FILE *src; /* source archive */ char srcname[STRLEN]; /* source archive name */ *************** *** 47,53 **** int nargs; /* number of arguments */ char *arg[]; /* pointers to arguments */ { - char *makefnam(); /* filename fixup routine */ char *envfind(); #if !_MTS char *arctemp2, *mktemp(); /* temp file stuff */ --- 48,53 ---- @ 1.1 log @Initial revision @ text @d1 2 @ 1.1.1.1 log @File archivers, ports from FreeBSD @ text @@