DESCR

I've written a tar that owes nothing to anything else. It's in the
public domain and hence is free for NetBSD to steal, anything from
lifting it verbatim to swiping ideas from.

It doesn't currently have anything like --fast-read; that hadn't
occurred to me. Now that it's been pointed out, I'll be adding it; I
think it's a valuable addition, whether or not NetBSD wants my tar.

Makefile

# $NetBSD: Makefile,v 1.17 2008/03/02 03:48:36 jlam Exp $
#

DISTNAME= mousetar-20021217
CATEGORIES= sysutils
MASTER_SITES= ftp://sparkle.rodents.montreal.qc.ca/pub/mouse/ftp.netbsd.org/tar/
DISTFILES= tar.c tar.man

MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= none
COMMENT= der Mouse's version of tar program

PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir

NOT_FOR_PLATFORM+= Interix-*-* # no sys/mtio.h tape support

WRKSRC= ${WRKDIR}

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_PLATFORM:MNetBSD-[2-9].*-*} != ""
CPPFLAGS+= -DTAR_INODE_INTERNAL
.endif

.if ${OPSYS} == "Linux"
CPPFLAGS+= -DLINUX_NAMLEN
.endif

INSTALLATION_DIRS= bin ${PKGMANDIR}/man1

do-extract:
for f in ${DISTFILES}; do \
${CP} ${DISTDIR}/$$f ${WRKDIR}; \
done

do-build:
cd ${WRKSRC}; ${CC} ${CPPFLAGS} ${CFLAGS} tar.c -o mousetar

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mousetar ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/tar.man \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mousetar.1

.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/28 12:41:55 agc Exp $
bin/mousetar
man/man1/mousetar.1

distinfo

$NetBSD: distinfo,v 1.4 2005/02/23 14:45:24 agc Exp $

SHA1 (tar.c) = 0fcce941a7e5beee2646b3b7d7dee5d6cf22f455
RMD160 (tar.c) = 78561e1ef3a55f1b77c8949a7b7a6efb4904d7ef
Size (tar.c) = 286925 bytes
SHA1 (tar.man) = a43498f78f3122edf1970a471c9bd313c0ace2f1
RMD160 (tar.man) = 3a295603a2381ea8417b4ce77b73b50ca42fd5e6
Size (tar.man) = 49336 bytes
SHA1 (patch-aa) = c0c3d8a1f2262d03d5e827a8f7eb90462895704a