Index: head/korean/hpscat/Makefile =================================================================== --- head/korean/hpscat/Makefile (revision 510707) +++ head/korean/hpscat/Makefile (revision 510708) @@ -1,40 +1,40 @@ # Created by: Junho CHOI # $FreeBSD$ PORTNAME= hpscat PORTVERSION= 1.3.1 -PORTEPOCH= 1 +PORTEPOCH= 2 CATEGORIES= korean print MASTER_SITES= http://ftp.kaist.ac.kr/hangul/print/hpscat/ \ ftp://ftp.kaist.ac.kr/hangul/print/hpscat/ \ http://ftp.kaist.ac.kr/hangul/editor/ked/:ked \ ftp://ftp.kaist.ac.kr/hangul/editor/ked/:ked \ ftp://ftp.kr.FreeBSD.org/pub/FreeBSD-kr/distfiles/ PKGNAMESUFFIX= -jshin DISTNAME= ${PORTNAME}${PKGNAMESUFFIX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ked.tar.gz:ked MAINTAINER= ports@FreeBSD.org COMMENT= Hangul Text Printing Utility -RUN_DEPENDS= hcode:korean/hcode +RUN_DEPENDS= hcode:korean/hcode FONTDIR= ${PREFIX}/${FONTDIR_REL} FONTDIR_REL= share/fonts/ked-${PORTNAME} FONTFILES= Gotic Header Munjo MunjoBold PCMunjo README_FILES= README README.jshin README.jshin.ks PLIST_FILES= bin/hpscat bin/hpscat.bin .for i in ${FONTFILES} ${README_FILES} PLIST_FILES+= ${FONTDIR_REL}/${i} .endfor SUB_FILES= hpscat.sh pkg-message SUB_LIST= FONTDIR=${FONTDIR} USES= perl5 do-install: @${INSTALL_PROGRAM} ${WRKSRC}/hpscat ${STAGEDIR}${PREFIX}/bin/hpscat.bin @${INSTALL_SCRIPT} ${WRKDIR}/hpscat.sh ${STAGEDIR}${PREFIX}/bin/hpscat @cd ${WRKSRC} && ${COPYTREE_SHARE} "${README_FILES}" ${STAGEDIR}${FONTDIR} @cd ${WRKDIR}/ked && ${COPYTREE_SHARE} "${FONTFILES}" ${STAGEDIR}${FONTDIR} .include Index: head/korean/hpscat/files/patch-hpscat.c =================================================================== --- head/korean/hpscat/files/patch-hpscat.c (revision 510707) +++ head/korean/hpscat/files/patch-hpscat.c (revision 510708) @@ -1,38 +1,11 @@ ---- hpscat.c.orig 1995-11-23 07:46:12.000000000 -0500 -+++ hpscat.c 2013-06-12 17:10:59.000000000 -0400 -@@ -12,13 +12,14 @@ - bool cheat; - FILE *fp, *ofp; - -+static int open_outfile(char *); -+ - /**************** - main routine - ****************/ - --main(ac,av) -- int ac; -- char *av[]; -+int -+main(int ac, char *av[]) - { - int i; - extern void showfile PROT((char *)); -@@ -53,13 +54,13 @@ - exit(0); - } - --int --open_outfile(s) /* returns -1 if can't write */ -- char *s; -+static int -+open_outfile(char *s) /* returns -1 if can't write */ - { - char ans[80], buf[256]; - sprintf(buf,"%s.ps", s); -- if(ofp=fopen(buf,"r")) { /* file exists */ -+ ofp=fopen(buf,"r"); -+ if(ofp) { /* file exists */ +--- hpscat.c.orig 2019-08-03 11:25:44 UTC ++++ hpscat.c +@@ -62,7 +62,7 @@ open_outfile(s) /* returns -1 if can + if(ofp=fopen(buf,"r")) { /* file exists */ fclose(ofp); fprintf(stderr,"output file %s exists...overwrite? ", buf); - gets(ans); +- gets(ans); ++ fgets(buf,256,ans); + if(ans[0]=='y') + unlink(buf); + else