From 487ffcd1952ae9d51e0313179263ff3ed1d54ecb Mon Sep 17 00:00:00 2001 From: sobomax Date: Tue, 4 Jun 2002 11:14:49 +0000 Subject: Add bmake bits for building GNU tar from src/contrib/tar. --- gnu/usr.bin/tar/Makefile | 18 +- gnu/usr.bin/tar/Makefile.inc | 4 + gnu/usr.bin/tar/config.h | 582 +++++++++++++++++++++++++++++++++++++++++++ gnu/usr.bin/tar/doc/Makefile | 8 + gnu/usr.bin/tar/lib/Makefile | 17 ++ gnu/usr.bin/tar/localedir.h | 1 + 6 files changed, 614 insertions(+), 16 deletions(-) create mode 100644 gnu/usr.bin/tar/Makefile.inc create mode 100644 gnu/usr.bin/tar/config.h create mode 100644 gnu/usr.bin/tar/doc/Makefile create mode 100644 gnu/usr.bin/tar/lib/Makefile create mode 100644 gnu/usr.bin/tar/localedir.h (limited to 'gnu') diff --git a/gnu/usr.bin/tar/Makefile b/gnu/usr.bin/tar/Makefile index bb6fb47..c839cd4 100644 --- a/gnu/usr.bin/tar/Makefile +++ b/gnu/usr.bin/tar/Makefile @@ -1,19 +1,5 @@ # $FreeBSD$ -PROG= tar -SRCS= buffer.c create.c diffarch.c extract.c getdate.y \ - getoldopt.c getopt.c getopt1.c gnu.c list.c mangle.c names.c port.c \ - prepend_args.c rtapelib.c tar.c update.c version.c -CFLAGS+= -DRETSIGTYPE=void -DDIRENT=1 -DHAVE_SYS_MTIO_H=1 -DHAVE_UNISTD_H=1 -CFLAGS+= -DHAVE_GETGRGID=1 -DHAVE_GETPWUID=1 -DHAVE_STRING_H=1 -CFLAGS+= -DHAVE_LIMITS_H=1 -DHAVE_STRSTR=1 -DHAVE_VALLOC=1 -DHAVE_MKDIR=1 -CFLAGS+= -DHAVE_MKNOD=1 -DHAVE_RENAME=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETCWD=1 -CFLAGS+= -DBSD42=1 -DHAVE_VPRINTF=1 -DNEEDPAD -DSTDC_HEADERS=1 -I${.CURDIR} -CFLAGS+= -DDEF_AR_FILE=\"/dev/sa0\" -DDEFBLOCKING=20 -YFLAGS= -NOSHARED?=yes +SUBDIR= lib tar doc -DPADD+= ${LIBGNUREGEX} -LDADD+= -lgnuregex - -.include +.include diff --git a/gnu/usr.bin/tar/Makefile.inc b/gnu/usr.bin/tar/Makefile.inc new file mode 100644 index 0000000..4d05b96 --- /dev/null +++ b/gnu/usr.bin/tar/Makefile.inc @@ -0,0 +1,4 @@ +# $FreeBSD$ + +TARDIR= ${.CURDIR}/../../../../contrib/tar +TARCFLAGS= -DHAVE_CONFIG_H -I${.CURDIR}/.. -I${TARDIR}/lib diff --git a/gnu/usr.bin/tar/config.h b/gnu/usr.bin/tar/config.h new file mode 100644 index 0000000..6e72423 --- /dev/null +++ b/gnu/usr.bin/tar/config.h @@ -0,0 +1,582 @@ +/* $FreeBSD$ */ + +#include + +/* config.h. Generated automatically by configure. */ +/* config.h.in. Generated automatically from configure.ac by autoheader. */ + +/* Define if the `closedir' function returns void instead of `int'. */ +/* #undef CLOSEDIR_VOID */ + +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +/* #undef CRAY_STACKSEG_END */ + +/* Define if using `alloca.c'. */ +/* #undef C_ALLOCA */ + +/* Define to a string giving the full name of the default archive file. */ +#define DEFAULT_ARCHIVE _PATH_DEFTAPE + +/* Define to a number giving the default blocking size for archives. */ +#define DEFAULT_BLOCKING 20 + +/* + [Define], [to], [1], [if], [density], [may], [be], [indicated], [by], [[lmh]], [at], [end], [of], [device.] + */ +/* #undef DENSITY_LETTER */ + +/* Define to a string giving the prefix of the default device, without the + part specifying the unit and density. */ +#define DEVICE_PREFIX _PATH_DEFTAPE + +/* Define if there is a member named d_ino in the struct describing directory + headers. */ +#define D_INO_IN_DIRENT 1 + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +#define ENABLE_NLS 0 + +/* Define if you have the `alarm' function. */ +#define HAVE_ALARM 1 + +/* Define if you have `alloca', as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define if you have and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define if you have the `clock_gettime' function. */ +#define HAVE_CLOCK_GETTIME 1 + +/* Define if backslash-a works in C strings. */ +#define HAVE_C_BACKSLASH_A 1 + +/* Define if you have the `dcgettext' function. */ +#define HAVE_DCGETTEXT 1 + +/* Define to 1 if free is declared. */ +#define HAVE_DECL_FREE 1 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Define to 1 if getgrgid is declared. */ +#define HAVE_DECL_GETGRGID 1 + +/* Define to 1 if getpwuid is declared. */ +#define HAVE_DECL_GETPWUID 1 + +/* Define to 1 if malloc is declared. */ +#define HAVE_DECL_MALLOC 1 + +/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you + don't. */ +#define HAVE_DECL_STRERROR_R 1 + +/* Define to 1 if you have the declaration of `strtoul', and to 0 if you + don't. */ +#define HAVE_DECL_STRTOUL 1 + +/* Define to 1 if you have the declaration of `strtoull', and to 0 if you + don't. */ +#define HAVE_DECL_STRTOULL 1 + +/* Define to 1 if you have the declaration of `strtoumax', and to 0 if you + don't. */ +#define HAVE_DECL_STRTOUMAX 1 + +/* Define if you have the header file, and it defines `DIR'. */ +#define HAVE_DIRENT_H 1 + +/* Define if the malloc check has been performed. */ +#define HAVE_DONE_WORKING_MALLOC_CHECK 1 + +/* Define if the realloc check has been performed. */ +#define HAVE_DONE_WORKING_REALLOC_CHECK 1 + +/* Define if you don't have `vprintf' but do have `_doprnt.' */ +/* #undef HAVE_DOPRNT */ + +/* Define if you have the `fchdir' function. */ +#define HAVE_FCHDIR 1 + +/* Define if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if you have the `feof_unlocked' function. */ +/* #undef HAVE_FEOF_UNLOCKED */ + +/* Define if you have the `fgets_unlocked' function. */ +/* #undef HAVE_FGETS_UNLOCKED */ + +/* Define if your system has a working `fnmatch' function. */ +#define HAVE_FNMATCH 1 + +/* Define if you have the `fsync' function. */ +#define HAVE_FSYNC 1 + +/* Define if you have the `ftime' function. */ +/* #undef HAVE_FTIME */ + +/* Define if you have the `ftruncate' function. */ +#define HAVE_FTRUNCATE 1 + +/* Define if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define if getcwd (NULL, 0) allocates memory for result. */ +#define HAVE_GETCWD_NULL 1 + +/* Define if you have the `getegid' function. */ +#define HAVE_GETEGID 1 + +/* Define if you have the `geteuid' function. */ +#define HAVE_GETEUID 1 + +/* Define if you have the `getgid' function. */ +#define HAVE_GETGID 1 + +/* Define if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if the GNU gettext() function is already present or preinstalled. */ +#define HAVE_GETTEXT 1 + +/* Define if you have the `getuid' function. */ +#define HAVE_GETUID 1 + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define if you have the `isascii' function. */ +#define HAVE_ISASCII 1 + +/* Define if you have the `iswprint' function. */ +/* #undef HAVE_ISWPRINT */ + +/* Define if you have and nl_langinfo(CODESET). */ +#define HAVE_LANGINFO_CODESET 1 + +/* Define if you have the `lchown' function. */ +#define HAVE_LCHOWN 1 + +/* Define if your file defines LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 + +/* Define if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_LINUX_FD_H */ + +/* Define if you have the header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the `localtime_r' function. */ +#define HAVE_LOCALTIME_R 1 + +/* Define if you support file names longer than 14 characters. */ +#define HAVE_LONG_FILE_NAMES 1 + +/* Define if you have the long long type. */ +#define HAVE_LONG_LONG 1 + +/* Define if you have the `lstat' function. */ +#define HAVE_LSTAT 1 + +/* Define if you have the header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ +/* #undef HAVE_MBRTOWC */ + +/* Define if you have the `mbsinit' function. */ +/* #undef HAVE_MBSINIT */ + +/* Define if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the `mempcpy' function. */ +/* #undef HAVE_MEMPCPY */ + +/* Define if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define if you have the `mkfifo' function. */ +#define HAVE_MKFIFO 1 + +/* Define to 1 if the mknod function is available. */ +#define HAVE_MKNOD 1 + +/* Define if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define if you have the `munmap' function. */ +#define HAVE_MUNMAP 1 + +/* Define if you have the `nap' function. */ +/* #undef HAVE_NAP */ + +/* Define if you have the `napms' function. */ +/* #undef HAVE_NAPMS */ + +/* Define if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_NETDB_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_NET_ERRNO_H */ + +/* Define if you have the header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define if you have the `pathconf' function. */ +#define HAVE_PATHCONF 1 + +/* Define if you have the `poll' function. */ +#define HAVE_POLL 1 + +/* Define if you have the header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have the `putenv' function. */ +#define HAVE_PUTENV 1 + +/* Define if you have the `readlink' function. */ +#define HAVE_READLINK 1 + +/* Define if you have the `rename' function. */ +#define HAVE_RENAME 1 + +/* Define if you have the `rmdir' function. */ +#define HAVE_RMDIR 1 + +/* Define if you have the `select' function. */ +#define HAVE_SELECT 1 + +/* Define if you have the `setenv' function. */ +#define HAVE_SETENV 1 + +/* Define if you have the `setlocale' function. */ +#define HAVE_SETLOCALE 1 + +/* Define if you have the header file. */ +#define HAVE_SGTTY_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDBOOL_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDDEF_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the `stpcpy' function. */ +/* #undef HAVE_STPCPY */ + +/* Define if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define if you have the `strerror_r' function. */ +#define HAVE_STRERROR_R 1 + +/* Define if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the `strncasecmp' function. */ +#define HAVE_STRNCASECMP 1 + +/* Define if you have the header file. */ +/* #undef HAVE_STROPTS_H */ + +/* Define if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define if you have the `strtol' function. */ +#define HAVE_STRTOL 1 + +/* Define if you have the `strtoul' function. */ +#define HAVE_STRTOUL 1 + +/* Define if you have the `strtoull' function. */ +/* #undef HAVE_STRTOULL */ + +/* Define if you have the `strtoumax' function. */ +#define HAVE_STRTOUMAX 1 + +/* Define if `st_blksize' is member of `struct stat'. */ +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 + +/* Define if `st_blocks' is member of `struct stat'. */ +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 + +/* Define if `tm_zone' is member of `struct tm'. */ +#define HAVE_STRUCT_TM_TM_ZONE 1 + +/* Define if your `struct stat' has `st_blksize'. Deprecated, use + `HAVE_STRUCT_STAT_ST_BLKSIZE' instead. */ +#define HAVE_ST_BLKSIZE 1 + +/* Define if your `struct stat' has `st_blocks'. Deprecated, use + `HAVE_STRUCT_STAT_ST_BLOCKS' instead. */ +#define HAVE_ST_BLOCKS 1 + +/* Define if struct stat has a char st_fstype[] member. */ +/* #undef HAVE_ST_FSTYPE_STRING */ + +/* Define if you have the `symlink' function. */ +#define HAVE_SYMLINK 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_BUF_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_DEVICE_H */ + +/* Define if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_GENTAPE_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_INET_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_IOCCOM_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_IO_TRIOCTL_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_MTIO_H 1 + +/* Define if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_TAPE_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_TIMEB_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_TPRINTF_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if your `struct tm' has `tm_zone'. Deprecated, use + `HAVE_STRUCT_TM_TM_ZONE' instead. */ +#define HAVE_TM_ZONE 1 + +/* Define if you have the `tsearch' function. */ +#define HAVE_TSEARCH 1 + +/* Define if you don't have `tm_zone' but do have the external array `tzname'. + */ +/* #undef HAVE_TZNAME */ + +/* Define if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the unsigned long long type. */ +#define HAVE_UNSIGNED_LONG_LONG 1 + +/* Define if you have the `usleep' function. */ +#define HAVE_USLEEP 1 + +/* Define to 1 if utime.h exists and declares struct utimbuf. */ +#define HAVE_UTIME_H 1 + +/* Define if you have the `vprintf' function. */ +#define HAVE_VPRINTF 1 + +/* Define if you have the `waitpid' function. */ +#define HAVE_WAITPID 1 + +/* Define if you have the header file. */ +#define HAVE_WCHAR_H 1 + +/* Define if you have the header file. */ +#define HAVE_WCTYPE_H 1 + +/* Define to 1 if `strerror_r' returns a string. */ +/* #undef HAVE_WORKING_STRERROR_R */ + +/* Define if you have the `__argz_count' function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define if you have the `__argz_next' function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define if you have the `__argz_stringify' function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + +/* Define as const if the declaration of iconv() needs const. */ +/* #undef ICONV_CONST */ + +/* Define if `major', `minor', and `makedev' are declared in . */ +/* #undef MAJOR_IN_MKDEV */ + +/* Define if `major', `minor', and `makedev' are declared in . */ +/* #undef MAJOR_IN_SYSMACROS */ + +/* Define to mt_model (v.g., for DG/UX), else to mt_type. */ +#define MTIO_CHECK_FIELD mt_type + +/* Name of package */ +#define PACKAGE "tar" + +/* Define if the C compiler supports function prototypes. */ +#define PROTOTYPES 1 + +/* Define to the full path of your rsh, if any. */ +#define REMOTE_SHELL _PATH_RSH + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +/* #undef STACK_DIRECTION */ + +/* Define if the `S_IS*' macros in do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Define if your declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Define to 1 if using the included libintl implementation. */ +/* #undef USE_INCLUDED_LIBINTL */ + +/* Version number of package */ +#define VERSION "1.13.25" + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* # undef _ALL_SOURCE */ +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define unconditionally for setting a GNU environment. */ +#define _GNU_SOURCE 1 + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define if on MINIX. */ +/* #undef _MINIX */ + +/* Define if the system does not provide POSIX.1 features except with this + defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `int' if doesn't define. */ +/* #undef gid_t */ + +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ +/* #undef inline */ + +/* Define to widest signed type if doesn't define. */ +/* #undef intmax_t */ + +/* Type of major device numbers. */ +#define major_t int + +/* Define to rpl_malloc if the replacement function should be used. */ +/* #undef malloc */ + +/* Define to a type if does not define. */ +/* #undef mbstate_t */ + +/* Type of minor device numbers. */ +#define minor_t int + +/* Define to rpl_mktime if the replacement function should be used. */ +#define mktime rpl_mktime + +/* Define to `int' if does not define. */ +/* #undef mode_t */ + +/* Define to `long' if does not define. */ +/* #undef off_t */ + +/* Define to `int' if does not define. */ +/* #undef pid_t */ + +/* Define to rpl_realloc if the replacement function should be used. */ +/* #undef realloc */ + +/* Define to `unsigned' if does not define. */ +/* #undef size_t */ + +/* Type of sizes or error indications. */ +/* #undef ssize_t */ + +/* Define to `int' if doesn't define. */ +/* #undef uid_t */ + +/* Define to widest unsigned type if doesn't define. */ +/* #undef uintmax_t */ diff --git a/gnu/usr.bin/tar/doc/Makefile b/gnu/usr.bin/tar/doc/Makefile new file mode 100644 index 0000000..abe0b93 --- /dev/null +++ b/gnu/usr.bin/tar/doc/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +INFO= tar +MAKEINFOFLAGS= -I${TARDIR}/doc + +.include + +.PATH: ${TARDIR}/doc diff --git a/gnu/usr.bin/tar/lib/Makefile b/gnu/usr.bin/tar/lib/Makefile new file mode 100644 index 0000000..c896a53 --- /dev/null +++ b/gnu/usr.bin/tar/lib/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +LIB= tar +INTERNALLIB= YES + +SRCS= addext.c argmatch.c backupfile.c basename.c dirname.c error.c \ + exclude.c full-write.c getdate.c getopt.c getopt1.c getstr.c \ + getline.c hash.c human.c mktime.c modechange.c msleep.c prepargs.c \ + print-copyr.c quote.c quotearg.c safe-read.c save-cwd.c savedir.c \ + unicodeio.c xgetcwd.c xmalloc.c xstrdup.c \ + xstrtoimax.c xstrtoul.c xstrtoumax.c + +CFLAGS+= ${TARCFLAGS} + +.include + +.PATH: ${TARDIR}/lib diff --git a/gnu/usr.bin/tar/localedir.h b/gnu/usr.bin/tar/localedir.h new file mode 100644 index 0000000..da23dbe --- /dev/null +++ b/gnu/usr.bin/tar/localedir.h @@ -0,0 +1 @@ +/* $FreeBSD$ */ -- cgit v1.1