aboutsummaryrefslogtreecommitdiff
path: root/archivers/bsdtar
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-07-18 11:18:21 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-07-18 11:18:21 +0000
commit3c101f484041a89ce47c6498a5cf943f9d1e96f7 (patch)
tree1cb43eb7fa9cd1f9698f4a9434b782ef34c8f67d /archivers/bsdtar
parent219179b3ae1bf2547e3e51298e70be8d59606892 (diff)
downloadports-3c101f484041a89ce47c6498a5cf943f9d1e96f7.tar.gz
ports-3c101f484041a89ce47c6498a5cf943f9d1e96f7.zip
Notes
Diffstat (limited to 'archivers/bsdtar')
-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
5 files changed, 75 insertions, 0 deletions
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/