aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-07-18 19:18:21 +0800
committeredwin <edwin@FreeBSD.org>2004-07-18 19:18:21 +0800
commit5ccebd053b2e2b3f3dd5427dcc46350c0856cebe (patch)
treec8f8112dc410ba8a7a886360083f75a0bc1290dd /archivers
parentdaf7337747651ccd56fc95bac00c7c566beff853 (diff)
downloadfreebsd-ports-gnome-5ccebd053b2e2b3f3dd5427dcc46350c0856cebe.tar.gz
freebsd-ports-gnome-5ccebd053b2e2b3f3dd5427dcc46350c0856cebe.tar.zst
freebsd-ports-gnome-5ccebd053b2e2b3f3dd5427dcc46350c0856cebe.zip
[NEW PORT] archivers/bsdtar
Port of the bsdtar archiver for FreeBSD systems prior to 502111 PR: ports/68054 Submitted by: Martin Matuska <matuska@tradex.sk>
Diffstat (limited to 'archivers')
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/bsdtar/Makefile42
-rw-r--r--archivers/bsdtar/distinfo2
-rw-r--r--archivers/bsdtar/files/patch-Makefile17
-rw-r--r--archivers/bsdtar/files/patch-bsdtar.h10
-rw-r--r--archivers/bsdtar/pkg-descr4
6 files changed, 76 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 162668d20344..0f157404bb8b 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -9,6 +9,7 @@
SUBDIR += arc
SUBDIR += arj
SUBDIR += bicom
+ SUBDIR += bsdtar
SUBDIR += bzip
SUBDIR += bzip2
SUBDIR += cabextract
diff --git a/archivers/bsdtar/Makefile b/archivers/bsdtar/Makefile
new file mode 100644
index 000000000000..8ca3fd68e6c5
--- /dev/null
+++ b/archivers/bsdtar/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: libarchive
+# Date created: 11 Jun 2004
+# Whom: Martin Matuska <martin@tradex.sk>
+#
+# $FreeBSD$
+
+PORTNAME= bsdtar
+PORTVERSION= 2004.06.07
+CATEGORIES= archivers
+MASTER_SITES= http://people.freebsd.org/~kientzle/libarchive/src/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/./-/g}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= martin@tradex.sk
+COMMENT= New tar archiver from FreeBSD-CURRENT
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libarchive.a:${PORTSDIR}/archivers/libarchive
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+CFLAGS+= -I${LOCALBASE}/include
+
+MAKE_FLAGS+= BINDIR=${PREFIX}/bin \
+ MANDIR=${PREFIX}/man/man
+
+PLIST_FILES= bin/bsdtar
+
+USE_REINPLACE= yes
+
+MANCOMPRESSED= yes
+MAN1= bsdtar.1
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 502111
+IGNORE= is in the base system
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Makefile
+
+.include <bsd.port.post.mk>
diff --git a/archivers/bsdtar/distinfo b/archivers/bsdtar/distinfo
new file mode 100644
index 000000000000..de482b514628
--- /dev/null
+++ b/archivers/bsdtar/distinfo
@@ -0,0 +1,2 @@
+MD5 (bsdtar-2004-06-07.tgz) = fb2064ac8897d55b5d6cbd2565673db8
+SIZE (bsdtar-2004-06-07.tgz) = 40091
diff --git a/archivers/bsdtar/files/patch-Makefile b/archivers/bsdtar/files/patch-Makefile
new file mode 100644
index 000000000000..9d32a5a70b9a
--- /dev/null
+++ b/archivers/bsdtar/files/patch-Makefile
@@ -0,0 +1,17 @@
+--- Makefile.orig Thu Jun 3 23:46:09 2004
++++ Makefile Sun Jul 18 10:58:12 2004
+@@ -4,12 +4,8 @@
+ SRCS= bsdtar.c matching.c read.c util.c write.c
+ WARNS?= 6
+ DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
+-LDADD= -larchive -lbz2 -lz
+-
+-.if defined(WITH_BSDTAR)
+-SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar
+-MLINKS= bsdtar.1 tar.1
+-.endif
++LDADD= -L%%LOCALBASE%%/lib/ %%LOCALBASE%%/lib/libarchive.a -lbz2 -lz
++CFLAGS+=-I%%LOCALBASE%%/include
+
+ .include <bsd.prog.mk>
+
diff --git a/archivers/bsdtar/files/patch-bsdtar.h b/archivers/bsdtar/files/patch-bsdtar.h
new file mode 100644
index 000000000000..832d538f0cc8
--- /dev/null
+++ b/archivers/bsdtar/files/patch-bsdtar.h
@@ -0,0 +1,10 @@
+--- bsdtar.h.orig Sun Jul 18 11:08:41 2004
++++ bsdtar.h Sun Jul 18 11:09:20 2004
+@@ -107,3 +107,7 @@
+ void usage(struct bsdtar *);
+ int yes(const char *fmt, ...);
+
++#ifndef id_t
++typedef __int64_t __id_t; /* can hold a gid_t, pid_t, or uid_t */
++typedef __id_t id_t; /* can hold a uid_t or pid_t */
++#endif
diff --git a/archivers/bsdtar/pkg-descr b/archivers/bsdtar/pkg-descr
new file mode 100644
index 000000000000..6cbd40c55561
--- /dev/null
+++ b/archivers/bsdtar/pkg-descr
@@ -0,0 +1,4 @@
+The bsdtar program creates and manipulates streaming archive files.
+It has a number of advantages over previous tar implementations.
+
+WWW: http://people.freebsd.org/~kientzle/libarchive/