pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/doc Update archivers/pax to 20030905. Changes from pr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c55cfd1503d0
branches: trunk
changeset: 460854:c55cfd1503d0
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Sep 05 18:40:47 2003 +0000
description:
Update archivers/pax to 20030905. Changes from previous version include
syncing with -current, making this build using libnbcompat-20030829, and
cleaning up the configure script and Makefile.
diffstat:
archivers/pax/Makefile | 4 +-
archivers/pax/files/Makefile.in | 79 +-
archivers/pax/files/acconfig.h | 8 -
archivers/pax/files/aclocal.m4 | 141 -
archivers/pax/files/ar_io.c | 79 +-
archivers/pax/files/ar_subs.c | 77 +-
archivers/pax/files/buf_subs.c | 67 +-
archivers/pax/files/config.h.in | 485 +----
archivers/pax/files/configure | 3936 +-----------------------------------
archivers/pax/files/configure.ac | 263 +--
archivers/pax/files/cpio.c | 65 +-
archivers/pax/files/cpio.h | 38 +-
archivers/pax/files/extern.h | 49 +-
archivers/pax/files/file_subs.c | 71 +-
archivers/pax/files/ftree.c | 70 +-
archivers/pax/files/ftree.h | 38 +-
archivers/pax/files/gen_subs.c | 82 +-
archivers/pax/files/getid.c | 453 ++++
archivers/pax/files/getoldopt.c | 25 +-
archivers/pax/files/misc.c | 305 ++
archivers/pax/files/mtree.h | 129 +
archivers/pax/files/mtree_extern.h | 88 +
archivers/pax/files/options.c | 84 +-
archivers/pax/files/options.h | 38 +-
archivers/pax/files/pack_dev.c | 317 ++
archivers/pax/files/pack_dev.h | 59 +
archivers/pax/files/pat_rep.c | 69 +-
archivers/pax/files/pat_rep.h | 38 +-
archivers/pax/files/pax.1 | 35 +-
archivers/pax/files/pax.c | 73 +-
archivers/pax/files/pax.cat1 | 40 +-
archivers/pax/files/pax.h | 40 +-
archivers/pax/files/sel_subs.c | 76 +-
archivers/pax/files/sel_subs.h | 38 +-
archivers/pax/files/spec.c | 612 +++++
archivers/pax/files/stat_flags.c | 197 +
archivers/pax/files/stat_flags.h | 35 +
archivers/pax/files/tables.c | 71 +-
archivers/pax/files/tables.h | 38 +-
archivers/pax/files/tar.c | 76 +-
archivers/pax/files/tar.h | 38 +-
archivers/pax/files/tty_subs.c | 71 +-
doc/CHANGES | 3 +-
43 files changed, 3617 insertions(+), 4983 deletions(-)
diffs (truncated from 9665 to 300 lines):
diff -r 21e87e08d95f -r c55cfd1503d0 archivers/pax/Makefile
--- a/archivers/pax/Makefile Fri Sep 05 18:38:58 2003 +0000
+++ b/archivers/pax/Makefile Fri Sep 05 18:40:47 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2003/07/31 09:34:13 grant Exp $
+# $NetBSD: Makefile,v 1.6 2003/09/05 18:40:47 jlam Exp $
#
-DISTNAME= pax-20030731
+DISTNAME= pax-20030905
CATEGORIES= archivers pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 21e87e08d95f -r c55cfd1503d0 archivers/pax/files/Makefile.in
--- a/archivers/pax/files/Makefile.in Fri Sep 05 18:38:58 2003 +0000
+++ b/archivers/pax/files/Makefile.in Fri Sep 05 18:40:47 2003 +0000
@@ -1,38 +1,42 @@
-# $NetBSD: Makefile.in,v 1.5 2003/07/31 09:34:14 grant Exp $
+# $NetBSD: Makefile.in,v 1.6 2003/09/05 18:40:48 jlam Exp $
+
+srcdir= @srcdir@
-srcdir = @srcdir@
-prefix = @prefix@
-VPATH = @srcdir@
-SHELL = /bin/sh
+prefix= @prefix@
+exec_prefix= @exec_prefix@
+bindir= @bindir@
+mandir= @mandir@
+
+man1dir= $(mandir)/man1
+cat1dir= $(mandir)/cat1
-CC = @CC@
-CCLD = $(CC)
-CFLAGS = -I$(srcdir) -I. -I$(prefix)/include/libnbcompat @INCLUDES@ @CFLAGS@
-CPPFLAGS= @CPPFLAGS@
-DEFS = @DEFS@
-INSTALL = @INSTALL@
-LDFLAGS = @LDFLAGS@ -L$(prefix)/lib
-LIBS = @LIBS@ -lnbcompat
+CC= @CC@
+CCLD= $(CC)
+LIBS= @LIBS@
+CPPFLAGS= @CPPFLAGS@ -I. -I$(srcdir)
+DEFS= @DEFS@
+CFLAGS= @CFLAGS@
+LDFLAGS= @LDFLAGS@
+
+INSTALL= @INSTALL@
-LINK= $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
-COMPILE=$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS)
+PROG= pax
-mandir= $(prefix)/man
-mandirman1= $(mandir)/man1
-mandircat1= $(mandir)/cat1
+SRCS= ar_io.c ar_subs.c buf_subs.c cpio.c file_subs.c ftree.c \
+ gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c tables.c \
+ tar.c tty_subs.c
+SRCS+= getid.c spec.c misc.c stat_flags.c pack_dev.c
+OBJS= $(SRCS:.c=.o)
-PROG= pax
-OBJS= ar_io.o ar_subs.o buf_subs.o cpio.o file_subs.o ftree.o\
- gen_subs.o getoldopt.o options.o pat_rep.o pax.o sel_subs.o tables.o\
- tar.o tty_subs.o
+.PHONY: all clean install
+
+.c.o:
+ $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $<
all: $(PROG)
$(PROG): $(OBJS)
- $(LINK) $(OBJS) $(LIBS)
-
-.c.o:
- $(COMPILE) -c $< -o $@
+ $(CCLD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f $(OBJS) $(PROG)
@@ -41,15 +45,16 @@
rm -f Makefile config.cache config.h config.status
rm -f configure.lineno config.log
-# most systems we are aiming this at don't have the macros to format
-# mandoc pages, so only install the catman versions.
install:
- $(INSTALL) $(PROG) $(PREFIX)/bin
- ln -f $(PREFIX)/bin/$(PROG) $(PREFIX)/bin/tar
- ln -f $(PREFIX)/bin/$(PROG) $(PREFIX)/bin/cpio
- $(INSTALL) -m 444 $(PROG).1 $(mandirman1)/$(PROG).1
- $(INSTALL) -m 444 cpio.1 $(mandirman1)/cpio.1
- $(INSTALL) -m 444 tar.1 $(mandirman1)/tar.1
- $(INSTALL) -m 444 $(PROG).cat1 $(mandircat1)/$(PROG).0
- $(INSTALL) -m 444 cpio.cat1 $(mandircat1)/cpio.0
- $(INSTALL) -m 444 tar.cat1 $(mandircat1)/tar.0
+ $(INSTALL) -m 755 -d $(bindir)
+ $(INSTALL) -m 755 -d $(man1dir)
+ $(INSTALL) -m 755 -d $(cat1dir)
+ $(INSTALL) $(PROG) $(bindir)
+ ln -f $(bindir)/$(PROG) $(bindir)/cpio
+ ln -f $(bindir)/$(PROG) $(bindir)/tar
+ $(INSTALL) -m 444 $(PROG).1 $(man1dir)/$(PROG).1
+ $(INSTALL) -m 444 $(PROG).cat1 $(cat1dir)/$(PROG).0
+ $(INSTALL) -m 444 cpio.1 $(man1dir)/cpio.1
+ $(INSTALL) -m 444 cpio.cat1 $(cat1dir)/cpio.0
+ $(INSTALL) -m 444 tar.1 $(man1dir)/tar.1
+ $(INSTALL) -m 444 tar.cat1 $(cat1dir)/tar.0
diff -r 21e87e08d95f -r c55cfd1503d0 archivers/pax/files/acconfig.h
--- a/archivers/pax/files/acconfig.h Fri Sep 05 18:38:58 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-/* $Id: acconfig.h,v 1.1.1.1 2003/06/23 11:45:22 grant Exp $ */
-
-/* Define if *printf() uses %qd to print `long long' (otherwise uses %lld) */
-#undef HAVE_PRINTF_QD
-
-/* Define if `long long' is supported and sizeof(off_t) >= 8 */
-#undef HAVE_QUAD_SUPPORT
-
diff -r 21e87e08d95f -r c55cfd1503d0 archivers/pax/files/aclocal.m4
--- a/archivers/pax/files/aclocal.m4 Fri Sep 05 18:38:58 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,141 +0,0 @@
-dnl $Id: aclocal.m4,v 1.1.1.1 2003/06/23 11:45:22 grant Exp $
-dnl
-
-dnl
-dnl AC_MSG_TRY_COMPILE
-dnl
-dnl Written by Luke Mewburn <lukem%netbsd.org@localhost>
-dnl
-dnl Usage:
-dnl AC_MSG_TRY_COMPILE(Message, CacheVar, Includes, Code,
-dnl ActionPass [,ActionFail] )
-dnl
-dnl effectively does:
-dnl AC_CACHE_CHECK(Message, CacheVar,
-dnl AC_TRY_COMPILE(Includes, Code, CacheVar = yes, CacheVar = no)
-dnl if CacheVar == yes
-dnl AC_MESSAGE_RESULT(yes)
-dnl ActionPass
-dnl else
-dnl AC_MESSAGE_RESULT(no)
-dnl ActionFail
-dnl )
-dnl
-AC_DEFUN(AC_MSG_TRY_COMPILE, [
- AC_CACHE_CHECK($1, $2, [
- AC_TRY_COMPILE([ $3 ], [ $4; ], [ $2=yes ], [ $2=no ])
- ])
- if test "x[$]$2" = "xyes"; then
- $5
- else
- $6
- :
- fi
-])
-
-dnl
-dnl AC_MSG_TRY_LINK
-dnl
-dnl Usage:
-dnl AC_MSG_TRY_LINK(Message, CacheVar, Includes, Code,
-dnl ActionPass [,ActionFail] )
-dnl
-dnl as AC_MSG_TRY_COMPILE, but uses AC_TRY_LINK instead of AC_TRY_COMPILE
-dnl
-AC_DEFUN(AC_MSG_TRY_LINK, [
- AC_CACHE_CHECK($1, $2, [
- AC_TRY_LINK([ $3 ], [ $4; ], [ $2=yes ], [ $2=no ])
- ])
- if test "x[$]$2" = "xyes"; then
- $5
- else
- $6
- :
- fi
-])
-
-
-dnl
-dnl AC_LIBRARY_NET: #Id: net.m4,v 1.5 1997/11/09 21:36:54 jhawk Exp #
-dnl
-dnl Written by John Hawkinson <jhawk%mit.edu@localhost>. This code is in the Public
-dnl Domain.
-dnl
-dnl This test is for network applications that need socket() and
-dnl gethostbyname() -ish functions. Under Solaris, those applications need to
-dnl link with "-lsocket -lnsl". Under IRIX, they should *not* link with
-dnl "-lsocket" because libsocket.a breaks a number of things (for instance:
-dnl gethostbyname() under IRIX 5.2, and snoop sockets under most versions of
-dnl IRIX).
-dnl
-dnl Unfortunately, many application developers are not aware of this, and
-dnl mistakenly write tests that cause -lsocket to be used under IRIX. It is
-dnl also easy to write tests that cause -lnsl to be used under operating
-dnl systems where neither are necessary (or useful), such as SunOS 4.1.4, which
-dnl uses -lnsl for TLI.
-dnl
-dnl This test exists so that every application developer does not test this in
-dnl a different, and subtly broken fashion.
-dnl
-dnl It has been argued that this test should be broken up into two seperate
-dnl tests, one for the resolver libraries, and one for the libraries necessary
-dnl for using Sockets API. Unfortunately, the two are carefully intertwined and
-dnl allowing the autoconf user to use them independantly potentially results in
-dnl unfortunate ordering dependancies -- as such, such component macros would
-dnl have to carefully use indirection and be aware if the other components were
-dnl executed. Since other autoconf macros do not go to this trouble, and almost
-dnl no applications use sockets without the resolver, this complexity has not
-dnl been implemented.
-dnl
-dnl The check for libresolv is in case you are attempting to link statically
-dnl and happen to have a libresolv.a lying around (and no libnsl.a).
-dnl
-AC_DEFUN(AC_LIBRARY_NET, [
- # Most operating systems have gethostbyname() in the default searched
- # libraries (i.e. libc):
- AC_CHECK_FUNC(gethostbyname, ,
- # Some OSes (eg. Solaris) place it in libnsl:
- AC_CHECK_LIB(nsl, gethostbyname, ,
- # Some strange OSes (SINIX) have it in libsocket:
- AC_CHECK_LIB(socket, gethostbyname, ,
- # Unfortunately libsocket sometimes depends on libnsl.
- # AC_CHECK_LIB's API is essentially broken so the following
- # ugliness is necessary:
- AC_CHECK_LIB(socket, gethostbyname,
- LIBS="-lsocket -lnsl $LIBS",
- AC_CHECK_LIB(resolv, gethostbyname),
- -lnsl)
- )
- )
- )
- AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket, ,
- AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", , -lnsl)))
- ])
-
-
-dnl
-dnl Test for __attribute__
-dnl
-
-AC_DEFUN(AC_C___ATTRIBUTE__, [
-AC_MSG_CHECKING(for __attribute__)
-AC_CACHE_VAL(ac_cv___attribute__, [
-AC_TRY_COMPILE([
-#include <stdlib.h>
-],
-[
-static void foo(void) __attribute__ ((noreturn));
-
-static void
-foo(void)
-{
- exit(1);
-}
-],
-ac_cv___attribute__=yes,
-ac_cv___attribute__=no)])
-if test "$ac_cv___attribute__" = "yes"; then
- AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
-fi
-AC_MSG_RESULT($ac_cv___attribute__)
-])
diff -r 21e87e08d95f -r c55cfd1503d0 archivers/pax/files/ar_io.c
--- a/archivers/pax/files/ar_io.c Fri Sep 05 18:38:58 2003 +0000
+++ b/archivers/pax/files/ar_io.c Fri Sep 05 18:40:47 2003 +0000
@@ -1,9 +1,39 @@
-/* $NetBSD: ar_io.c,v 1.1.1.1 2003/06/23 11:46:08 grant Exp $ */
+/* $NetBSD: ar_io.c,v 1.2 2003/09/05 18:40:49 jlam Exp $ */
+
+/*-
+ * Copyright (c) 1992, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Keith Muller of the University of California, San Diego.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
Home |
Main Index |
Thread Index |
Old Index