mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Fix build with gcc 3.x.
PR: 59487 Submitted by: Samy Al Bahra <samy@kerneled.com>
This commit is contained in:
parent
ff4d6ea8cf
commit
c033222bbe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94525
@ -20,12 +20,6 @@ MAKE_ENV= BINDIR="${PREFIX}/bin" MANDIR="${PREFIX}/man/man"
|
||||
MAN1= newsfetch.1
|
||||
MANCOMPRESSED= maybe
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 501000
|
||||
BROKEN= "Does not compile"
|
||||
.endif
|
||||
|
||||
do-configure:
|
||||
cd ${WRKSRC} && ( \
|
||||
${ECHO_CMD} "PROG= newsfetch"; \
|
||||
@ -33,4 +27,4 @@ do-configure:
|
||||
${ECHO_CMD} ".include <bsd.prog.mk>"; \
|
||||
) > Makefile
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
13
news/newsfetch/files/patch-opt.c
Normal file
13
news/newsfetch/files/patch-opt.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- opt.c.orig Wed Nov 19 19:01:47 2003
|
||||
+++ opt.c Wed Nov 19 19:01:47 2003
|
||||
@@ -192,8 +192,8 @@
|
||||
{
|
||||
|
||||
char *options=
|
||||
-" [-clsyvV] [-d dirname] [-f rcfile] [-t N]
|
||||
- [-T timeout] [-w M ] [-pPY filter] [-x command]
|
||||
+" [-clsyvV] [-d dirname] [-f rcfile] [-t N]\n\
|
||||
+ [-T timeout] [-w M ] [-pPY filter] [-x command]\n\
|
||||
";
|
||||
fprintf(stderr,"Usage: %s nntp_server [options]\n", prog_name);
|
||||
fprintf(stderr,"Options:\n%s\n",options);
|
27
news/newsfetch/files/patch-util.c
Normal file
27
news/newsfetch/files/patch-util.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- util.c.orig Wed Nov 19 19:01:47 2003
|
||||
+++ util.c Wed Nov 19 19:01:47 2003
|
||||
@@ -61,15 +61,15 @@
|
||||
FILE *fp, *fp1, *fp2;
|
||||
char *tmp, buf[200], group[180], filterfile[100], procmailrcfile[100];
|
||||
int i,j;
|
||||
-char *title="
|
||||
-
|
||||
-############### Generated by Newsfetch ##############################
|
||||
-# New version of Newsfetch is available from #
|
||||
-# #
|
||||
-# http://ulf.wep.net/newsfetch.html #
|
||||
-# Feedback and Comments to Yusuf Motiwala <yusuf@scientist.com> #
|
||||
-######################################################################
|
||||
-
|
||||
+char *title="\n\
|
||||
+\n\
|
||||
+############### Generated by Newsfetch ##############################\n\
|
||||
+# New version of Newsfetch is available from #\n\
|
||||
+# #\n\
|
||||
+# http://ulf.wep.net/newsfetch.html #\n\
|
||||
+# Feedback and Comments to Yusuf Motiwala <yusuf@scientist.com> #\n\
|
||||
+######################################################################\n\
|
||||
+\n\
|
||||
";
|
||||
|
||||
strcpy(filterfile,homedir);
|
Loading…
Reference in New Issue
Block a user