summaryrefslogtreecommitdiff
path: root/devel/libtar
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-04-22 17:14:48 +0000
committerseb <seb@pkgsrc.org>2002-04-22 17:14:48 +0000
commit33877df5e8ace4450ce72f6cc08e68059c98c1cf (patch)
tree5b62c8b330dd6f5a233319afef3473ac8136d5f7 /devel/libtar
parent22f2666cc31ab0d1e628bdfade5d1ec18e4e9f92 (diff)
downloadpkgsrc-33877df5e8ace4450ce72f6cc08e68059c98c1cf.tar.gz
Initial import of Libtar, version 1.2.5, into the NetBSD Packages Collection.
Libtar is a library for manipulating tar files from within C programs. Key features: - Handles both POSIX 1003.1-1990 tar file format and the GNU extensions. - API provides functions for easy use, such as tar_extract_all(). - Also provides functions for more granular use, such as tar_append_regfile(). - Support compressed tar file by way of zlib.
Diffstat (limited to 'devel/libtar')
-rw-r--r--devel/libtar/DESCR8
-rw-r--r--devel/libtar/Makefile16
-rw-r--r--devel/libtar/PLIST77
-rw-r--r--devel/libtar/buildlink.mk35
-rw-r--r--devel/libtar/distinfo3
5 files changed, 139 insertions, 0 deletions
diff --git a/devel/libtar/DESCR b/devel/libtar/DESCR
new file mode 100644
index 00000000000..9fbab248a05
--- /dev/null
+++ b/devel/libtar/DESCR
@@ -0,0 +1,8 @@
+Libtar is a library for manipulating tar files from within C programs.
+Key features:
+
+ - Handles both POSIX 1003.1-1990 tar file format and the GNU extensions.
+ - API provides functions for easy use, such as tar_extract_all().
+ - Also provides functions for more granular use, such as
+ tar_append_regfile().
+ - Support compressed tar file by way of zlib.
diff --git a/devel/libtar/Makefile b/devel/libtar/Makefile
new file mode 100644
index 00000000000..3407afbc02d
--- /dev/null
+++ b/devel/libtar/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/04/22 17:14:48 seb Exp $
+#
+
+DISTNAME= libtar-1.2.5
+CATEGORIES= devel archivers
+MASTER_SITES= ftp://ftp-dev.cso.uiuc.edu/pub/libtar/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www-dev.cso.uiuc.edu/libtar/
+COMMENT= library for manipulating POSIX tar files
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK_ONLY= YES
+
+.include "../../devel/zlib/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libtar/PLIST b/devel/libtar/PLIST
new file mode 100644
index 00000000000..380496cb24c
--- /dev/null
+++ b/devel/libtar/PLIST
@@ -0,0 +1,77 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/22 17:14:48 seb Exp $
+bin/libtar
+include/libtar.h
+include/libtar_listhash.h
+lib/libtar.a
+man/man3/TH_ISBLK.3
+man/man3/TH_ISCHR.3
+man/man3/TH_ISDIR.3
+man/man3/TH_ISFIFO.3
+man/man3/TH_ISLNK.3
+man/man3/TH_ISLONGLINK.3
+man/man3/TH_ISLONGNAME.3
+man/man3/TH_ISREG.3
+man/man3/TH_ISSYM.3
+man/man3/libtar_hash_add.3
+man/man3/libtar_hash_del.3
+man/man3/libtar_hash_free.3
+man/man3/libtar_hash_getkey.3
+man/man3/libtar_hash_new.3
+man/man3/libtar_hash_next.3
+man/man3/libtar_hash_prev.3
+man/man3/libtar_hash_search.3
+man/man3/libtar_list_add.3
+man/man3/libtar_list_add_str.3
+man/man3/libtar_list_del.3
+man/man3/libtar_list_dup.3
+man/man3/libtar_list_free.3
+man/man3/libtar_list_merge.3
+man/man3/libtar_list_new.3
+man/man3/libtar_list_next.3
+man/man3/libtar_list_prev.3
+man/man3/libtar_list_search.3
+man/man3/tar_append_eof.3
+man/man3/tar_append_file.3
+man/man3/tar_append_regfile.3
+man/man3/tar_append_tree.3
+man/man3/tar_block_read.3
+man/man3/tar_block_write.3
+man/man3/tar_close.3
+man/man3/tar_extract_all.3
+man/man3/tar_extract_blockdev.3
+man/man3/tar_extract_chardev.3
+man/man3/tar_extract_dir.3
+man/man3/tar_extract_fifo.3
+man/man3/tar_extract_file.3
+man/man3/tar_extract_glob.3
+man/man3/tar_extract_hardlink.3
+man/man3/tar_extract_regfile.3
+man/man3/tar_extract_symlink.3
+man/man3/tar_fd.3
+man/man3/tar_fdopen.3
+man/man3/tar_open.3
+man/man3/tar_set_file_perms.3
+man/man3/tar_skip_regfile.3
+man/man3/th_finish.3
+man/man3/th_get_crc.3
+man/man3/th_get_devmajor.3
+man/man3/th_get_devminor.3
+man/man3/th_get_gid.3
+man/man3/th_get_linkname.3
+man/man3/th_get_mode.3
+man/man3/th_get_mtime.3
+man/man3/th_get_pathname.3
+man/man3/th_get_size.3
+man/man3/th_get_uid.3
+man/man3/th_print.3
+man/man3/th_print_long_ls.3
+man/man3/th_read.3
+man/man3/th_set_device.3
+man/man3/th_set_from_stat.3
+man/man3/th_set_group.3
+man/man3/th_set_link.3
+man/man3/th_set_mode.3
+man/man3/th_set_path.3
+man/man3/th_set_type.3
+man/man3/th_set_user.3
+man/man3/th_write.3
diff --git a/devel/libtar/buildlink.mk b/devel/libtar/buildlink.mk
new file mode 100644
index 00000000000..90c63be14f1
--- /dev/null
+++ b/devel/libtar/buildlink.mk
@@ -0,0 +1,35 @@
+# $NetBSD: buildlink.mk,v 1.1.1.1 2002/04/22 17:14:48 seb Exp $
+#
+# This Makefile fragment is included by packages that use libtar.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libtar to the dependency pattern
+# for the version of libtar desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(LIBTAR_BUILDLINK_MK)
+LIBTAR_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.libtar?= libtar>=1.2.5
+
+DEPENDS+= ${BUILDLINK_DEPENDS.libtar}:../../devel/libtar
+EVAL_PREFIX+= BUILDLINK_PREFIX.libtar=libtar
+BUILDLINK_PREFIX.libtar_DEFAULT= ${LOCALBASE}
+
+BUILDLINK_FILES.libtar= include/libtar*
+BUILDLINK_FILES.libtar+= lib/libtar.*
+
+BUILDLINK_TARGETS.libtar= libtar-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libtar}
+
+pre-configure: ${BUILDLINK_TARGETS.libtar}
+libtar-buildlink: _BUILDLINK_USE
+
+.endif # LIBTAR_BUILDLINK_MK
diff --git a/devel/libtar/distinfo b/devel/libtar/distinfo
new file mode 100644
index 00000000000..12af415ade2
--- /dev/null
+++ b/devel/libtar/distinfo
@@ -0,0 +1,3 @@
+
+SHA1 (libtar-1.2.5.tar.gz) = 35e84315a071d0a0e36471716b64489eb97a8797
+Size (libtar-1.2.5.tar.gz) = 88243 bytes