diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/copytape/Makefile | 19 | ||||
-rw-r--r-- | sysutils/copytape/files/patch-ab | 11 |
2 files changed, 22 insertions, 8 deletions
diff --git a/sysutils/copytape/Makefile b/sysutils/copytape/Makefile index 69885f59513f..0fdf7758772d 100644 --- a/sysutils/copytape/Makefile +++ b/sysutils/copytape/Makefile @@ -10,7 +10,7 @@ DISTNAME= copytape EXTRACT_SUFX= .Z MAINTAINER= sjroz@verizon.net -COMMENT= A program that is used to duplicate magtapes +COMMENT= Program that is used to duplicate magtapes EXTRACT_DEPENDS= gunshar:${PORTSDIR}/archivers/sharutils @@ -19,16 +19,19 @@ NO_WRKSUBDIR= yes EXTRACT_CMD= zcat EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= | gunshar -d ${WRKDIR} + +CFLAGS+= -Wno-return-type +# XXX upstream puts CFLAGS in CC +MAKE_ARGS+= CC="${CC} ${CFLAGS}" ALL_TARGET= copytape -MAN1= copytape.1 -MAN5= copytape.5 -PLIST_FILES= bin/copytape +PLIST_FILES= bin/copytape \ + man/man1/copytape.1.gz \ + man/man5/copytape.5.gz -NO_STAGE= yes do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/copytape ${PREFIX}/bin/copytape - @${INSTALL_MAN} ${WRKSRC}/copytape.1 ${PREFIX}/man/man1/copytape.1 - @${INSTALL_MAN} ${WRKSRC}/copytape.5 ${PREFIX}/man/man5/copytape.5 + @${INSTALL_PROGRAM} ${WRKSRC}/copytape ${STAGEDIR}${PREFIX}/bin/copytape + @${INSTALL_MAN} ${WRKSRC}/copytape.1 ${STAGEDIR}${PREFIX}/man/man1/copytape.1 + @${INSTALL_MAN} ${WRKSRC}/copytape.5 ${STAGEDIR}${PREFIX}/man/man5/copytape.5 .include <bsd.port.mk> diff --git a/sysutils/copytape/files/patch-ab b/sysutils/copytape/files/patch-ab new file mode 100644 index 000000000000..8838843a4939 --- /dev/null +++ b/sysutils/copytape/files/patch-ab @@ -0,0 +1,11 @@ +--- copytape.c.orig 2013-10-16 06:54:00.000000000 -0400 ++++ copytape.c 2013-10-16 06:54:13.000000000 -0400 +@@ -29,6 +29,8 @@ + + + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + #include <sys/types.h> + #include <sys/ioctl.h> + #include <sys/mtio.h> |