mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix build on -current: initialization of FILE* outfile = stdout failed.
Testing the port revealed, that the SHAR archives could not be retrieved, but a TAR archive is available from wuarchive, so I converted the port to use it. This simplified the Makefile considerably as a side effect. Approved by: me@FreeBSD.org (port maintainer)
This commit is contained in:
parent
88b8420988
commit
014bd4330f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61270
4 changed files with 40 additions and 34 deletions
|
@ -8,33 +8,22 @@
|
|||
PORTNAME= mmv
|
||||
PORTVERSION= 1.01b
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume21/mmv/
|
||||
DISTFILES= part01.Z part02.Z
|
||||
|
||||
PATCH_SITES= ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume22/
|
||||
PATCHFILES= mmv.pch.Z
|
||||
MASTER_SITES= http://wuarchive.wustl.edu/languages/c/unix-c/file-mgmt/
|
||||
DISTNAME= mmv
|
||||
EXTRACT_SUFX= .tar.Z
|
||||
|
||||
MAINTAINER= me@FreeBSD.org
|
||||
|
||||
NO_CDROM= "No redistribution for charge"
|
||||
NO_PACKAGE= "No modification"
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
NO_WRKSUBDIR= yes
|
||||
PATCH_DIST_ARGS= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP} mmv.c
|
||||
CFLAGS+= -DDIRENT
|
||||
MAKE_FLAGS= -e
|
||||
MAN1= mmv.1
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}/tmp
|
||||
@(for file in ${DISTFILES}; do \
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/$$file ${WRKDIR}/tmp; \
|
||||
done ; \
|
||||
uncompress ${WRKDIR}/tmp/*; \
|
||||
cd ${WRKDIR}; \
|
||||
for file in tmp/part0* ; do \
|
||||
${SH} ${SCRIPTDIR}/unshar $$file; \
|
||||
done ; \
|
||||
${CAT} mmv.c.? >mmv.c ; ${RM} mmv.c.? )
|
||||
post-extract:
|
||||
(cd ${WRKDIR}/${DISTNAME} ; \
|
||||
${CAT} mmv.c.? >mmv.c ; \
|
||||
${PATCH} mmv.c < mmv.patch1 ; )
|
||||
|
||||
do-install:
|
||||
(cd ${PREFIX}/bin ; ${RM} -f mmv mad mcp mln ; \
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
MD5 (mmv/part01.Z) = 8844a88bbe189e280361136f25a589d4
|
||||
MD5 (mmv/part02.Z) = 9e01b9aaceaab18cb9efafa6dec5df81
|
||||
MD5 (mmv/mmv.pch.Z) = e6f8cb26c8966a82d6f3f26a6e4bee23
|
||||
MD5 (mmv.tar.Z) = bc6dd229efc513140ec4d1caa364cab1
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
*** mmv.c.old Wed Mar 1 05:23:56 1995
|
||||
--- mmv.c Thu Mar 2 05:43:37 1995
|
||||
--- mmv.c Thu Jun 13 13:34:25 2002
|
||||
***************
|
||||
*** 88,94 ****
|
||||
#endif
|
||||
|
@ -58,6 +58,33 @@
|
|||
static int rename(/* char *from, char *to */);
|
||||
--- 386,391 ----
|
||||
***************
|
||||
*** 410,416 ****
|
||||
static SLICER slicer[2] = {{NULL, NULL, 0}, {NULL, NULL, 0}};
|
||||
|
||||
static int badreps = 0, paterr = 0, direrr, failed = 0, gotsig = 0, repbad;
|
||||
! static FILE *outfile = stdout;
|
||||
|
||||
static char IDF[] = "$$mmvdid.";
|
||||
static char TEMP[] = "$$mmvtmp.";
|
||||
--- 406,412 ----
|
||||
static SLICER slicer[2] = {{NULL, NULL, 0}, {NULL, NULL, 0}};
|
||||
|
||||
static int badreps = 0, paterr = 0, direrr, failed = 0, gotsig = 0, repbad;
|
||||
! static FILE *outfile;
|
||||
|
||||
static char IDF[] = "$$mmvdid.";
|
||||
static char TEMP[] = "$$mmvtmp.";
|
||||
***************
|
||||
*** 471,476 ****
|
||||
--- 467,473 ----
|
||||
{
|
||||
char *frompat, *topat;
|
||||
|
||||
+ outfile = stdout;
|
||||
init();
|
||||
procargs(argc, argv, &frompat, &topat);
|
||||
domatch(frompat, topat);
|
||||
***************
|
||||
*** 2550,2559 ****
|
||||
}
|
||||
|
||||
|
@ -69,7 +96,7 @@
|
|||
}
|
||||
|
||||
|
||||
--- 2546,2554 ----
|
||||
--- 2547,2555 ----
|
||||
}
|
||||
|
||||
|
||||
|
@ -88,7 +115,7 @@
|
|||
static void memmove(to, from, k)
|
||||
char *to, *from;
|
||||
unsigned k;
|
||||
--- 2827,2833 ----
|
||||
--- 2828,2834 ----
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
ed $1 <<XXXEOF > /dev/null
|
||||
/#! \/bin\/sh
|
||||
1,.-1d
|
||||
w
|
||||
q
|
||||
XXXEOF
|
||||
/bin/sh $1 > /dev/null
|
Loading…
Add table
Reference in a new issue