Index: head/irc/icbirc/Makefile =================================================================== --- head/irc/icbirc/Makefile (revision 425581) +++ head/irc/icbirc/Makefile (revision 425582) @@ -1,23 +1,23 @@ # Created by: hrs # $FreeBSD$ PORTNAME= icbirc -PORTVERSION= 1.8 -PORTREVISION= 1 +PORTVERSION= 2.1 CATEGORIES= irc MASTER_SITES= http://www.benzedrine.cx/ MAINTAINER= hrs@FreeBSD.org COMMENT= Proxy IRC client and ICB server LICENSE= BSD2CLAUSE LICENSE_FILE= ${FILESDIR}/COPYING USES= uidfix MAKE_ENV= BINDIR="${PREFIX}/bin" MANDIR="${PREFIX}/man/man" -WRKSRC= ${WRKDIR}/${PORTNAME} - PLIST_FILES= bin/icbirc \ man/man8/icbirc.8.gz + +post-patch: + ${REINPLACE_CMD} -e '/^static const char rcsid/d' ${WRKSRC}/*.c .include Index: head/irc/icbirc/distinfo =================================================================== --- head/irc/icbirc/distinfo (revision 425581) +++ head/irc/icbirc/distinfo (revision 425582) @@ -1,2 +1,3 @@ -SHA256 (icbirc-1.8.tar.gz) = ebc4c2482ac531149874ee77c188f6adcf509862ca2b600e9fe5057f555ecd92 -SIZE (icbirc-1.8.tar.gz) = 11061 +TIMESTAMP = 1478423682 +SHA256 (icbirc-2.1.tar.gz) = 6839344d93c004da97ec6bb5d805a1db7e0a79efc3870445788043627162bbb1 +SIZE (icbirc-2.1.tar.gz) = 11257 Index: head/irc/icbirc/files/patch-icbirc.c =================================================================== --- head/irc/icbirc/files/patch-icbirc.c (revision 425581) +++ head/irc/icbirc/files/patch-icbirc.c (nonexistent) @@ -1,23 +0,0 @@ ---- icbirc.c.orig 2004-11-19 06:14:28.000000000 +0900 -+++ icbirc.c 2014-05-17 02:17:15.000000000 +0900 -@@ -30,7 +30,9 @@ - * - */ - -+#if 0 - static const char rcsid[] = "$Id: icbirc.c,v 1.13 2004/11/18 21:14:28 dhartmei Exp $"; -+#endif - - #include - #include -@@ -322,8 +324,8 @@ - (unsigned long)(time(NULL) - t), bytes_out, bytes_in); - if (terminate_client) - irc_send_notice(client_fd, "Closing connection " -- "(%u seconds, %lu:%lu bytes)", -- time(NULL) - t, bytes_out, bytes_in); -+ "(%lu seconds, %lu:%lu bytes)", -+ (unsigned long)(time(NULL) - t), bytes_out, bytes_in); - } - - int Property changes on: head/irc/icbirc/files/patch-icbirc.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/icbirc/files/patch-irc.c =================================================================== --- head/irc/icbirc/files/patch-irc.c (revision 425581) +++ head/irc/icbirc/files/patch-irc.c (nonexistent) @@ -1,12 +0,0 @@ ---- irc.c.orig 2014-05-17 02:34:33.000000000 +0900 -+++ irc.c 2014-05-17 02:34:43.000000000 +0900 -@@ -30,7 +30,9 @@ - * - */ - -+#if 0 - static const char rcsid[] = "$Id: irc.c,v 1.13 2004/11/18 21:14:28 dhartmei Exp $"; -+#endif - - #include - #include Property changes on: head/irc/icbirc/files/patch-irc.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/icbirc/files/patch-icb.c =================================================================== --- head/irc/icbirc/files/patch-icb.c (revision 425581) +++ head/irc/icbirc/files/patch-icb.c (revision 425582) @@ -1,115 +1,113 @@ ---- icb.c.orig 2004-11-19 06:14:28.000000000 +0900 -+++ icb.c 2014-05-17 02:34:25.000000000 +0900 -@@ -30,7 +30,9 @@ +--- icb.c.orig 2015-08-21 19:01:12 UTC ++++ icb.c +@@ -30,7 +30,6 @@ * */ -+#if 0 - static const char rcsid[] = "$Id: icb.c,v 1.15 2004/11/18 21:14:28 dhartmei Exp $"; -+#endif +-static const char rcsid[] = "$Id: icb.c,v 1.3 2015/08/21 19:01:12 dhartmei Exp $"; #include #include -@@ -40,8 +42,8 @@ +@@ -40,8 +39,8 @@ static const char rcsid[] = "$Id: icb.c, extern int sync_write(int, const char *, int); -static unsigned char icb_args(const char *, unsigned char, char [255][255]); -static void icb_cmd(const char *, unsigned char, int, int); +static unsigned char icb_args(const unsigned char *, unsigned char, char [255][255]); +static void icb_cmd(const unsigned char *, unsigned char, int, int); static void icb_ico(int, const char *); static void icb_iwl(int, const char *, const char *, long, long, const char *, const char *); -@@ -108,7 +110,7 @@ +@@ -109,7 +108,7 @@ static unsigned off; */ void -scan(const char **s, char *d, size_t siz, const char *skip, const char *term) +scan(const unsigned char **s, char *d, size_t siz, const char *skip, const char *term) { while (**s && strchr(skip, **s) != NULL) (*s)++; -@@ -149,7 +151,7 @@ +@@ -164,7 +163,7 @@ icb_recv(const char *buf, unsigned len, } static unsigned char -icb_args(const char *data, unsigned char len, char args[255][255]) +icb_args(const unsigned char *data, unsigned char len, char args[255][255]) { unsigned char i = 0, j = 0, k = 0; -@@ -175,10 +177,10 @@ +@@ -190,10 +189,10 @@ icb_args(const char *data, unsigned char } static void -icb_cmd(const char *cmd, unsigned char len, int fd, int server_fd) +icb_cmd(const unsigned char *cmd, unsigned char len, int fd, int server_fd) { char args[255][255]; - const char *a = args[1]; + const unsigned char *a = (unsigned char *)args[1]; unsigned char i, j; char s[8192]; -@@ -254,7 +256,7 @@ +@@ -269,7 +268,7 @@ icb_cmd(const char *cmd, unsigned char l char old_nick[256], new_nick[256]; scan(&a, old_nick, sizeof(old_nick), " ", " "); - if (strncmp(a, " changed nickname to ", 21)) + if (strncmp((const char *)a, " changed nickname to ", 21)) return; a += 21; scan(&a, new_nick, sizeof(new_nick), " ", " "); -@@ -268,7 +270,7 @@ +@@ -283,7 +282,7 @@ icb_cmd(const char *cmd, unsigned char l char nick[256], topic[256]; scan(&a, nick, sizeof(nick), " ", " "); - if (strncmp(a, " changed the topic to \"", 23)) + if (strncmp((const char *)a, " changed the topic to \"", 23)) return; a += 23; scan(&a, topic, sizeof(topic), "", "\""); -@@ -279,13 +281,13 @@ +@@ -294,13 +293,13 @@ icb_cmd(const char *cmd, unsigned char l char old_mod[256], new_mod[256]; scan(&a, old_mod, sizeof(old_mod), " ", " "); - if (!strncmp(a, " has passed moderation to ", 26)) { + if (!strncmp((const char *)a, " has passed moderation to ", 26)) { a += 26; scan(&a, new_mod, sizeof(new_mod), " ", " "); snprintf(s, sizeof(s), ":%s MODE %s -o+o %s %s\r\n", old_mod, irc_channel, old_mod, new_mod); - } else if (!strcmp(a, " is now mod.")) { + } else if (!strcmp((const char *)a, " is now mod.")) { snprintf(s, sizeof(s), ":%s MODE %s +o %s\r\n", icb_hostid, irc_channel, old_mod); -@@ -297,7 +299,7 @@ +@@ -312,7 +311,7 @@ icb_cmd(const char *cmd, unsigned char l char nick[256]; scan(&a, nick, sizeof(nick), " ", " "); - if (strcmp(a, " was booted.")) + if (strcmp((const char *)a, " was booted.")) return; snprintf(s, sizeof(s), ":%s KICK %s %s :booted\r\n", icb_moderator, irc_channel, nick); -@@ -508,7 +510,7 @@ +@@ -523,7 +522,7 @@ icb_send_openmsg(int fd, const char *msg cmd[off++] = 0; cmd[0] = off - 1; /* cmd[0] <= MAX_MSG_SIZE */ - sync_write(fd, cmd, off); + sync_write(fd, (const char *)cmd, off); } } -@@ -533,7 +535,7 @@ +@@ -548,7 +547,7 @@ icb_send_privmsg(int fd, const char *nic cmd[off++] = 0; cmd[0] = off - 1; /* cmd[0] <= MAX_MSG_SIZE */ - sync_write(fd, cmd, off); + sync_write(fd, (const char *)cmd, off); } }