aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2016-11-07 05:08:29 +0800
committerhrs <hrs@FreeBSD.org>2016-11-07 05:08:29 +0800
commit58c58589dc9694f2ac53094140fea99b75be6c77 (patch)
tree5c1b209ea863674b66de5b197eaf8c3aca9419ce /irc
parentbafd8382259cb77b45861a9f8d19db45dc5a8fce (diff)
downloadfreebsd-ports-gnome-58c58589dc9694f2ac53094140fea99b75be6c77.tar.gz
freebsd-ports-gnome-58c58589dc9694f2ac53094140fea99b75be6c77.tar.zst
freebsd-ports-gnome-58c58589dc9694f2ac53094140fea99b75be6c77.zip
Update to 2.1.
PR: 214262 Submitted by: Dmitrij D. Czarkoff
Diffstat (limited to 'irc')
-rw-r--r--irc/icbirc/Makefile8
-rw-r--r--irc/icbirc/distinfo5
-rw-r--r--irc/icbirc/files/patch-icb.c30
-rw-r--r--irc/icbirc/files/patch-icbirc.c23
-rw-r--r--irc/icbirc/files/patch-irc.c12
5 files changed, 21 insertions, 57 deletions
diff --git a/irc/icbirc/Makefile b/irc/icbirc/Makefile
index c6add6a4c9bc..8cb6d7051851 100644
--- a/irc/icbirc/Makefile
+++ b/irc/icbirc/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= icbirc
-PORTVERSION= 1.8
-PORTREVISION= 1
+PORTVERSION= 2.1
CATEGORIES= irc
MASTER_SITES= http://www.benzedrine.cx/
@@ -15,9 +14,10 @@ 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 <bsd.port.mk>
diff --git a/irc/icbirc/distinfo b/irc/icbirc/distinfo
index 83f25fb6d69c..bdb31d2d8e8f 100644
--- a/irc/icbirc/distinfo
+++ b/irc/icbirc/distinfo
@@ -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
diff --git a/irc/icbirc/files/patch-icb.c b/irc/icbirc/files/patch-icb.c
index c94427595f2c..b53461d95823 100644
--- a/irc/icbirc/files/patch-icb.c
+++ b/irc/icbirc/files/patch-icb.c
@@ -1,16 +1,14 @@
---- 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 <stdio.h>
#include <stdlib.h>
-@@ -40,8 +42,8 @@
+@@ -40,8 +39,8 @@ static const char rcsid[] = "$Id: icb.c,
extern int sync_write(int, const char *, int);
@@ -21,7 +19,7 @@
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
@@ -30,7 +28,7 @@
{
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
@@ -39,7 +37,7 @@
{
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
@@ -52,7 +50,7 @@
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), " ", " ");
@@ -61,7 +59,7 @@
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), " ", " ");
@@ -70,7 +68,7 @@
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), " ", " ");
@@ -86,7 +84,7 @@
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), " ", " ");
@@ -95,7 +93,7 @@
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 */
@@ -104,7 +102,7 @@
}
}
-@@ -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 */
diff --git a/irc/icbirc/files/patch-icbirc.c b/irc/icbirc/files/patch-icbirc.c
deleted file mode 100644
index 1bdff116b421..000000000000
--- a/irc/icbirc/files/patch-icbirc.c
+++ /dev/null
@@ -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 <sys/types.h>
- #include <sys/socket.h>
-@@ -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
diff --git a/irc/icbirc/files/patch-irc.c b/irc/icbirc/files/patch-irc.c
deleted file mode 100644
index 1b673afda1e4..000000000000
--- a/irc/icbirc/files/patch-irc.c
+++ /dev/null
@@ -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 <stdarg.h>
- #include <stdio.h>