pkgsrc/archivers/macutil/Makefile
agc 171e025b4a Rewrite the extraction commands to be more intuitive.
In the vast majority of cases, nothing has changed (i.e. .tgz, .tar.gz,
and .tar.bz2).

EXTRACT_USING_PAX can be set as before.

For custom extractions, instead of using EXTRACT_BEFORE_ARGS,
EXTRACT_AFTER_ARGS and EXTRACT_CMD, simply set EXTRACT_CMD to be the
command needed to decompress and extract the lements from the archive.
${DOWNLOADED_DISTFILE} can be used to reference the distfile(s).
e.g. for compressed shars, where previously there was:

EXTRACT_CMD=           ${GZCAT}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=    |sh

now use:

EXTRACT_CMD=           ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
1999-04-01 14:07:52 +00:00

33 lines
932 B
Makefile

# $NetBSD: Makefile,v 1.8 1999/04/01 14:07:52 agc Exp $
DISTNAME= macutil2.0b3
PKGNAME= macutil-2.0b3
CATEGORIES= archivers
MASTER_SITES= ftp://ftp.cwi.nl/pub/dik/
EXTRACT_SUFX= .shar.Z
MAINTAINER= mycroft@NetBSD.ORG
MAKEFILE= makefile
EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
WRKSRC= ${WRKDIR}/macutil
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/macunpack/macunpack \
${WRKSRC}/hexbin/hexbin \
${WRKSRC}/mixed/macsave \
${WRKSRC}/mixed/macstream \
${WRKSRC}/binhex/binhex \
${WRKSRC}/comm/tomac \
${WRKSRC}/comm/frommac ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/macunpack.1 \
${WRKSRC}/man/hexbin.1 \
${WRKSRC}/man/macsave.1 \
${WRKSRC}/man/macstream.1 \
${WRKSRC}/man/binhex.1 \
${WRKSRC}/man/tomac.1 \
${WRKSRC}/man/frommac.1 \
${WRKSRC}/man/macutil.1 ${PREFIX}/man/man1
.include "../../mk/bsd.pkg.mk"