ports/sysutils/copytape/Makefile
Brooks Davis cc977a4b8b sysutils/copytape: include errno.h for errno
errno must be accessed by a macro from errno.h.

Tidy includes and add unistd.h for read/write.

Consolidate patches for easy of maintenance.

This code is borderline useless and certainly broken with modern tape
sizes due to the use of ints for sizes.

PR:		281781
Approved by:	sjroz@verizon.net (maintainer)
2024-10-01 00:59:21 +01:00

34 lines
877 B
Makefile

PORTNAME= copytape
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= COMP_SOURCES/unix/volume10
DISTNAME= copytape
EXTRACT_SUFX= .Z
MAINTAINER= sjroz@verizon.net
COMMENT= Program that is used to duplicate magtapes
EXTRACT_DEPENDS= gunshar:archivers/sharutils
NO_WRKSUBDIR= yes
EXTRACT_CMD= zcat
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= | gunshar -d ${WRKSRC}
CFLAGS+= -Wno-return-type
# XXX upstream puts CFLAGS in CC
MAKE_ARGS+= CC="${CC} ${CFLAGS}"
ALL_TARGET= copytape
PLIST_FILES= bin/copytape \
share/man/man1/copytape.1.gz \
share/man/man5/copytape.5.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/copytape ${STAGEDIR}${PREFIX}/bin/copytape
${INSTALL_MAN} ${WRKSRC}/copytape.1 ${STAGEDIR}${PREFIX}/share/man/man1/copytape.1
${INSTALL_MAN} ${WRKSRC}/copytape.5 ${STAGEDIR}${PREFIX}/share/man/man5/copytape.5
.include <bsd.port.mk>