Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2001 19:06:50 +0000 (GMT)
From:      George Reid <greid@dogma.freebsd-uk.eu.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24114: New port: libtar: A library for manipulating POSIX and GNU tar files
Message-ID:  <Pine.BSF.4.21.0101061906200.64649-100000@sobek.openirc.co.uk>
Resent-Message-ID: <200101061910.f06JA1i32570@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24114
>Category:       ports
>Synopsis:       New port: libtar: A library for manipulating POSIX and GNU tar files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 06 11:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     George Reid
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSD UKUG
>Environment:
n/a
>Description:
libtar is a C library for manipulating tar archives. It supports both
the strict POSIX tar format and many of the commonly-used GNU
extensions.

- George Reid
greid@ukug.uk.freebsd.org
>How-To-Repeat:
n/a
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libtar
#	libtar/Makefile
#	libtar/distinfo
#	libtar/files
#	libtar/files/patch-aa
#	libtar/files/patch-ab
#	libtar/files/patch-ac
#	libtar/files/patch-ad
#	libtar/pkg-comment
#	libtar/pkg-descr
#	libtar/pkg-plist
#
echo c - libtar
mkdir -p libtar > /dev/null 2>&1
echo x - libtar/Makefile
sed 's/^X//' >libtar/Makefile << 'END-of-libtar/Makefile'
X# New ports collection makefile for:   libtar
X# Date created:        06 January 2001
X# Whom:                George Reid <greid@ukug.uk.freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=       	libtar
XPORTVERSION=		1.2
XCATEGORIES=     	devel
XMASTER_SITES=		ftp://ftp-dev.cso.uiuc.edu/pub/libtar/
X
XMAINTAINER=		greid@ukug.uk.freebsd.org
X
XGNU_CONFIGURE=		yes
XUSE_GMAKE=		yes
X
XMAN3=			libtar_hash_new.3 libtar_list_new.3 tar_append_file.3 \
X			tar_block_read.3 tar_extract_all.3 tar_extract_file.3 \
X			tar_open.3 th_get_pathname.3 th_print_long_ls.3 \
X			th_read.3 th_set_from_stat.3
X
XINSTALLS_SHLIB=		yes
X
X.include <bsd.port.mk>
END-of-libtar/Makefile
echo x - libtar/distinfo
sed 's/^X//' >libtar/distinfo << 'END-of-libtar/distinfo'
XMD5 (libtar-1.2.tar.gz) = ad926b68bcf279a0d5e8ae656dc6a612
END-of-libtar/distinfo
echo c - libtar/files
mkdir -p libtar/files > /dev/null 2>&1
echo x - libtar/files/patch-aa
sed 's/^X//' >libtar/files/patch-aa << 'END-of-libtar/files/patch-aa'
X--- lib/append.c.orig	Sat Jan  6 17:47:16 2001
X+++ lib/append.c	Sat Jan  6 17:47:40 2001
X@@ -16,7 +16,6 @@
X #include <errno.h>
X #include <fcntl.h>
X #include <sys/param.h>
X-#include <sys/sysmacros.h>
X 
X #include <compat.h>
X 
END-of-libtar/files/patch-aa
echo x - libtar/files/patch-ab
sed 's/^X//' >libtar/files/patch-ab << 'END-of-libtar/files/patch-ab'
X--- lib/encode.c.orig	Sat Jan  6 17:47:54 2001
X+++ lib/encode.c	Sat Jan  6 17:47:59 2001
X@@ -15,7 +15,6 @@
X 
X #include <pwd.h>
X #include <grp.h>
X-#include <sys/sysmacros.h>
X 
X #ifdef STDC_HEADERS
X # include <string.h>
END-of-libtar/files/patch-ab
echo x - libtar/files/patch-ac
sed 's/^X//' >libtar/files/patch-ac << 'END-of-libtar/files/patch-ac'
X--- lib/extract.c.orig	Sat Jan  6 17:48:06 2001
X+++ lib/extract.c	Sat Jan  6 17:48:12 2001
X@@ -15,7 +15,6 @@
X 
X #include <stdio.h>
X #include <sys/param.h>
X-#include <sys/sysmacros.h>
X #include <fcntl.h>
X #include <errno.h>
X #include <utime.h>
END-of-libtar/files/patch-ac
echo x - libtar/files/patch-ad
sed 's/^X//' >libtar/files/patch-ad << 'END-of-libtar/files/patch-ad'
X--- doc/Makefile.in.orig	Sat Nov 25 01:44:57 2000
X+++ doc/Makefile.in	Sat Jan  6 19:00:35 2001
X@@ -67,46 +67,57 @@
X 	$(MKDIR) $(DESTDIR)$(mandir)/man3
X 	$(INSTALL_DATA) $(srcdir)/tar_open.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TAR_OPEN_SO); do \
X-		echo ".so man3/tar_open.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X-	done
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/tar_open.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X+        done
X 	$(INSTALL_DATA) $(srcdir)/tar_append_file.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TAR_APPEND_FILE_SO); do \
X-		echo ".so man3/tar_append_file.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/tar_append_file.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) $(srcdir)/tar_block_read.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TAR_BLOCK_READ_SO); do \
X-		echo ".so man3/tar_block_read.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/tar_block_read.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) $(srcdir)/th_read.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TH_READ_SO); do \
X-		echo ".so man3/th_read.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/th_read.3 \
X+			 $(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) $(srcdir)/th_set_from_stat.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TH_SET_FROM_STAT_SO); do \
X-		echo ".so man3/th_set_from_stat.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/th_set_from_stat.3 \
X+			 $(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) $(srcdir)/tar_extract_file.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TAR_EXTRACT_FILE_SO); do \
X-		echo ".so man3/tar_extract_file.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/tar_extract_file.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) $(srcdir)/th_get_pathname.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TH_GET_PATHNAME_SO); do \
X-		echo ".so man3/th_get_pathname.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/th_get_pathname.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) $(srcdir)/th_print_long_ls.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TH_PRINT_LONG_LS_SO); do \
X-		echo ".so man3/th_print_long_ls.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/th_print_long_ls.3 \
X+			 $(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) $(srcdir)/tar_extract_all.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(TAR_EXTRACT_ALL_SO); do \
X-		echo ".so man3/tar_extract_all.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/tar_extract_all.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) @LHPKG@_hash_new.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(@LHPKG@_HASH_NEW_SO); do \
X-		echo ".so man3/@LHPKG@_hash_new.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/@LHPKG@_hash_new.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 	$(INSTALL_DATA) @LHPKG@_list_new.3 $(DESTDIR)$(mandir)/man3
X 	for i in $(@LHPKG@_LIST_NEW_SO); do \
X-		echo ".so man3/@LHPKG@_list_new.3" > $(DESTDIR)$(mandir)/man3/$${i}.3; \
X+		$(LN_S) $(DESTDIR)$(mandir)/man3/@LHPKG@_list_new.3 \
X+			$(DESTDIR)$(mandir)/man3/$${i}.3; \
X 	done
X 
END-of-libtar/files/patch-ad
echo x - libtar/pkg-comment
sed 's/^X//' >libtar/pkg-comment << 'END-of-libtar/pkg-comment'
XA library for manipulating POSIX and GNU tar files
END-of-libtar/pkg-comment
echo x - libtar/pkg-descr
sed 's/^X//' >libtar/pkg-descr << 'END-of-libtar/pkg-descr'
Xlibtar is a C library for manipulating tar archives. It supports both
Xthe strict POSIX tar format and many of the commonly-used GNU
Xextensions.
X
X- George Reid
Xgreid@ukug.uk.freebsd.org
END-of-libtar/pkg-descr
echo x - libtar/pkg-plist
sed 's/^X//' >libtar/pkg-plist << 'END-of-libtar/pkg-plist'
Xbin/libtar
Xinclude/libtar.h
Xinclude/libtar_listhash.h
Xlib/libtar.a
Xman/man3/TH_ISBLK.3
Xman/man3/TH_ISCHR.3
Xman/man3/TH_ISDIR.3
Xman/man3/TH_ISFIFO.3
Xman/man3/TH_ISLNK.3
Xman/man3/TH_ISLONGLINK.3
Xman/man3/TH_ISLONGNAME.3
Xman/man3/TH_ISREG.3
Xman/man3/TH_ISSYM.3
Xman/man3/libtar_hash_delete.3
Xman/man3/libtar_hash_insert.3
Xman/man3/libtar_hash_kill.3
Xman/man3/libtar_hash_read.3
Xman/man3/libtar_hash_read_reset.3
Xman/man3/libtar_hash_value.3
Xman/man3/libtar_list_add.3
Xman/man3/libtar_list_del.3
Xman/man3/libtar_list_kill.3
Xman/man3/libtar_list_match.3
Xman/man3/libtar_list_read.3
Xman/man3/libtar_list_read_reset.3
Xman/man3/libtar_list_reverse_read.3
Xman/man3/libtar_list_reverse_read_reset.3
Xman/man3/tar_append_eof.3
Xman/man3/tar_append_regfile.3
Xman/man3/tar_append_tree.3
Xman/man3/tar_block_write.3
Xman/man3/tar_close.3
Xman/man3/tar_extract_blockdev.3
Xman/man3/tar_extract_chardev.3
Xman/man3/tar_extract_dir.3
Xman/man3/tar_extract_fifo.3
Xman/man3/tar_extract_glob.3
Xman/man3/tar_extract_hardlink.3
Xman/man3/tar_extract_regfile.3
Xman/man3/tar_extract_symlink.3
Xman/man3/tar_fd.3
Xman/man3/tar_fdopen.3
Xman/man3/tar_set_file_perms.3
Xman/man3/tar_skip_regfile.3
Xman/man3/th_finish.3
Xman/man3/th_get_crc.3
Xman/man3/th_get_devmajor.3
Xman/man3/th_get_devminor.3
Xman/man3/th_get_gid.3
Xman/man3/th_get_linkname.3
Xman/man3/th_get_mode.3
Xman/man3/th_get_mtime.3
Xman/man3/th_get_size.3
Xman/man3/th_get_uid.3
Xman/man3/th_print.3
Xman/man3/th_set_device.3
Xman/man3/th_set_group.3
Xman/man3/th_set_link.3
Xman/man3/th_set_mode.3
Xman/man3/th_set_path.3
Xman/man3/th_set_type.3
Xman/man3/th_set_user.3
Xman/man3/th_write.3
END-of-libtar/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101061906200.64649-100000>