svn commit: r331498 - in head/sysutils/copytape: . files

Alex Kozlov ak at FreeBSD.org
Thu Oct 24 16:27:23 UTC 2013


Author: ak
Date: Thu Oct 24 16:27:22 2013
New Revision: 331498
URL: http://svnweb.freebsd.org/changeset/ports/331498

Log:
  - Fix build [1]
  - Support STAGEDIR
  
  PR:	ports/183023 [1]
  Submitted by:	Stephen Roznowski <sjroz at verizon.net> (maintainer)

Added:
  head/sysutils/copytape/files/patch-ab   (contents, props changed)
Modified:
  head/sysutils/copytape/Makefile   (contents, props changed)

Modified: head/sysutils/copytape/Makefile
==============================================================================
--- head/sysutils/copytape/Makefile	Thu Oct 24 15:47:05 2013	(r331497)
+++ head/sysutils/copytape/Makefile	Thu Oct 24 16:27:22 2013	(r331498)
@@ -10,7 +10,7 @@ DISTNAME=		copytape
 EXTRACT_SUFX=		.Z
 
 MAINTAINER=		sjroz at 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>

Added: head/sysutils/copytape/files/patch-ab
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/copytape/files/patch-ab	Thu Oct 24 16:27:22 2013	(r331498)
@@ -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>


More information about the svn-ports-head mailing list