[Midnightbsd-cvs] mports [21553] trunk/news/newsfetch: cleanup
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Aug 5 21:50:24 EDT 2016
Revision: 21553
http://svnweb.midnightbsd.org/mports/?rev=21553
Author: laffer1
Date: 2016-08-05 21:50:23 -0400 (Fri, 05 Aug 2016)
Log Message:
-----------
cleanup
Modified Paths:
--------------
trunk/news/newsfetch/Makefile
Added Paths:
-----------
trunk/news/newsfetch/files/patch-newsfetch.1
trunk/news/newsfetch/files/patch-newsfetch.c
Removed Paths:
-------------
trunk/news/newsfetch/files/patch-ab
trunk/news/newsfetch/files/patch-ac
Modified: trunk/news/newsfetch/Makefile
===================================================================
--- trunk/news/newsfetch/Makefile 2016-08-06 01:47:49 UTC (rev 21552)
+++ trunk/news/newsfetch/Makefile 2016-08-06 01:50:23 UTC (rev 21553)
@@ -8,10 +8,9 @@
PORTNAME= newsfetch
PORTVERSION= 1.21
-PORTREVISION= 0
+PORTREVISION= 2
CATEGORIES= news
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= system/news/readers
+MASTER_SITES= SUNSITE/system/news/readers
MAINTAINER= ports at MidnightBSD.org
COMMENT= Download news articles from NNTP server
@@ -19,15 +18,16 @@
MAKE_ENV= BINDIR="${PREFIX}/bin" MANDIR="${PREFIX}/man/man"
-MAN1= newsfetch.1
-MANCOMPRESSED= maybe
-PLIST_FILES= bin/newsfetch
+USES= uidfix
+CFLAGS+= -Wno-return-type
+PLIST_FILES= bin/newsfetch \
+ man/man1/newsfetch.1.gz
do-configure:
- cd ${WRKSRC} && ( \
- ${ECHO_CMD} "PROG= newsfetch"; \
- ${ECHO_CMD} "SRCS=" *.c; \
- ${ECHO_CMD} ".include <bsd.prog.mk>"; \
- ) > Makefile
+ (cd ${WRKSRC} && ( \
+ ${ECHO_CMD} "PROG= newsfetch"; \
+ ${ECHO_CMD} "SRCS=" *.c; \
+ ${ECHO_CMD} ".include <bsd.prog.mk>"; \
+ ) > Makefile)
.include <bsd.port.mk>
Deleted: trunk/news/newsfetch/files/patch-ab
===================================================================
--- trunk/news/newsfetch/files/patch-ab 2016-08-06 01:47:49 UTC (rev 21552)
+++ trunk/news/newsfetch/files/patch-ab 2016-08-06 01:50:23 UTC (rev 21553)
@@ -1,44 +0,0 @@
---- newsfetch.c.orig Thu Jul 23 18:28:56 1998
-+++ newsfetch.c Fri Jan 26 23:41:22 2001
-@@ -7,6 +7,7 @@
-
-
- #include <stdio.h>
-+#include <string.h>
- #include <signal.h>
- #include <pwd.h>
- #include <sys/types.h>
-@@ -28,6 +29,7 @@
- int wait_after_articles = 0, articles_fetched=0, last_than_current;
- int wait_for_time = 0, timeout=READ_TIMEOUT, article_fetching=0;
- int cleanup=1, max_article, news_target=0, first_article, only_list=0;
-+int port = 119;
- char group[100], pipe_command[100];
- FILE *rcfp, *rctmpfp, *socket_fp[2];
- char lockfile[100];
-@@ -59,6 +61,16 @@
- getHomedir(homedir);
- strcpy(hostname,argv[1]);
-
-+ {
-+ char *p;
-+ int n;
-+
-+ if (NULL != (p = strchr(hostname, ':')) && 0 < (n = atoi(p + 1))) {
-+ port = n;
-+ *p = '\0';
-+ }
-+ }
-+
- get_commandline(argc, argv, dirname, rcfile,
- &cleanup, &wait_after_articles, &wait_for_time,
- &command_flag, execute_command,
-@@ -75,7 +87,7 @@
- generateProcmailrc(homedir, rcfile, dirname, pipe_command);
- }
-
-- socket_id=ConnectServer(hostname,119, 0);
-+ socket_id=ConnectServer(hostname, port, 0);
-
- /* two file descriptor are for portability among diff systems */
- createFd(socket_id, socket_fp);
Deleted: trunk/news/newsfetch/files/patch-ac
===================================================================
--- trunk/news/newsfetch/files/patch-ac 2016-08-06 01:47:49 UTC (rev 21552)
+++ trunk/news/newsfetch/files/patch-ac 2016-08-06 01:50:23 UTC (rev 21553)
@@ -1,11 +0,0 @@
---- newsfetch.1.orig Tue Apr 14 20:04:25 1998
-+++ newsfetch.1 Fri Jan 26 23:41:22 2001
-@@ -5,7 +5,7 @@
- .SH SYNOPSIS
- .B newsfetch
- .BI
--hostname
-+hostname[:port]
- [
- .BI \-clsyvV
- ]
Copied: trunk/news/newsfetch/files/patch-newsfetch.1 (from rev 21508, trunk/news/newsfetch/files/patch-ac)
===================================================================
--- trunk/news/newsfetch/files/patch-newsfetch.1 (rev 0)
+++ trunk/news/newsfetch/files/patch-newsfetch.1 2016-08-06 01:50:23 UTC (rev 21553)
@@ -0,0 +1,11 @@
+--- newsfetch.1.orig Tue Apr 14 20:04:25 1998
++++ newsfetch.1 Fri Jan 26 23:41:22 2001
+@@ -5,7 +5,7 @@
+ .SH SYNOPSIS
+ .B newsfetch
+ .BI
+-hostname
++hostname[:port]
+ [
+ .BI \-clsyvV
+ ]
Copied: trunk/news/newsfetch/files/patch-newsfetch.c (from rev 21508, trunk/news/newsfetch/files/patch-ab)
===================================================================
--- trunk/news/newsfetch/files/patch-newsfetch.c (rev 0)
+++ trunk/news/newsfetch/files/patch-newsfetch.c 2016-08-06 01:50:23 UTC (rev 21553)
@@ -0,0 +1,44 @@
+--- newsfetch.c.orig Thu Jul 23 18:28:56 1998
++++ newsfetch.c Fri Jan 26 23:41:22 2001
+@@ -7,6 +7,7 @@
+
+
+ #include <stdio.h>
++#include <string.h>
+ #include <signal.h>
+ #include <pwd.h>
+ #include <sys/types.h>
+@@ -28,6 +29,7 @@
+ int wait_after_articles = 0, articles_fetched=0, last_than_current;
+ int wait_for_time = 0, timeout=READ_TIMEOUT, article_fetching=0;
+ int cleanup=1, max_article, news_target=0, first_article, only_list=0;
++int port = 119;
+ char group[100], pipe_command[100];
+ FILE *rcfp, *rctmpfp, *socket_fp[2];
+ char lockfile[100];
+@@ -59,6 +61,16 @@
+ getHomedir(homedir);
+ strcpy(hostname,argv[1]);
+
++ {
++ char *p;
++ int n;
++
++ if (NULL != (p = strchr(hostname, ':')) && 0 < (n = atoi(p + 1))) {
++ port = n;
++ *p = '\0';
++ }
++ }
++
+ get_commandline(argc, argv, dirname, rcfile,
+ &cleanup, &wait_after_articles, &wait_for_time,
+ &command_flag, execute_command,
+@@ -75,7 +87,7 @@
+ generateProcmailrc(homedir, rcfile, dirname, pipe_command);
+ }
+
+- socket_id=ConnectServer(hostname,119, 0);
++ socket_id=ConnectServer(hostname, port, 0);
+
+ /* two file descriptor are for portability among diff systems */
+ createFd(socket_id, socket_fp);
More information about the Midnightbsd-cvs
mailing list