summaryrefslogtreecommitdiff
path: root/chat/dircproxy
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-06-17 12:53:54 +0000
committertron <tron@pkgsrc.org>2008-06-17 12:53:54 +0000
commitd8180f6b39ba1f4754233dd5bb47f7c12ece4495 (patch)
tree82cc275e4f9375e3f606f381da6afd84ec61e813 /chat/dircproxy
parent045e6bc85ba4cd1fce18ffe5c54abc9a433c8dc7 (diff)
downloadpkgsrc-d8180f6b39ba1f4754233dd5bb47f7c12ece4495.tar.gz
Replace "dircproxy" package with with "dircproxy-devel" package and
remove the later. The old version 1.0.5 is unmaintained, has a remote DoS vulnerability and is less reliable than version 1.2.0beta2. Approved by Adrian Portelli.
Diffstat (limited to 'chat/dircproxy')
-rw-r--r--chat/dircproxy/DESCR5
-rw-r--r--chat/dircproxy/Makefile24
-rw-r--r--chat/dircproxy/PLIST4
-rw-r--r--chat/dircproxy/distinfo16
-rw-r--r--chat/dircproxy/files/dircproxy.sh2
-rw-r--r--chat/dircproxy/options.mk22
-rw-r--r--chat/dircproxy/patches/patch-aa14
-rw-r--r--chat/dircproxy/patches/patch-ab8
-rw-r--r--chat/dircproxy/patches/patch-ac24
-rw-r--r--chat/dircproxy/patches/patch-ad24
-rw-r--r--chat/dircproxy/patches/patch-ae15
11 files changed, 73 insertions, 85 deletions
diff --git a/chat/dircproxy/DESCR b/chat/dircproxy/DESCR
index 156dccfe4b7..9e04678d92f 100644
--- a/chat/dircproxy/DESCR
+++ b/chat/dircproxy/DESCR
@@ -9,3 +9,8 @@ events, and when you re-attach it'll let you know what you missed.
This can be used to give you roughly the same functionality as
using ircII and screen together, except you can use whatever IRC
client you like, including X ones!
+
+* THIS IS AN UNSTABLE DEVELOPMENT RELEASE OF DIRCPROXY. IT HAS HIGHER
+* THEN USUAL RISK OF DESTROYING YOUR SYSTEM.
+*
+* FOR A STABLE RELEASE USE THE LATEST 1.0.x
diff --git a/chat/dircproxy/Makefile b/chat/dircproxy/Makefile
index 07091b03c6b..5b468059e0a 100644
--- a/chat/dircproxy/Makefile
+++ b/chat/dircproxy/Makefile
@@ -1,28 +1,32 @@
-# $NetBSD: Makefile,v 1.15 2008/06/12 02:14:16 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2008/06/17 12:53:54 tron Exp $
-DISTNAME= dircproxy-1.0.5
-PKGREVISION= 2
+DISTNAME= dircproxy-1.2.0-beta2
+PKGNAME= ${DISTNAME:S/-beta/beta/}
+PKGREVISION= 1
CATEGORIES= chat
-MASTER_SITES= ftp://ftp.netsplit.com/pub/dircproxy/stable/ \
- http://dircproxy.securiweb.net/pub/1.0/
+MASTER_SITES= http://dircproxy.securiweb.net/
+EXTRACT_SUFX= .tar.bz
-MAINTAINER= sb125499@ohiou.edu
+MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://dircproxy.securiweb.net/
-COMMENT= Detachable internet relay chat proxy server
+COMMENT= Detachable internet relay chat proxy server (devel version)
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= YES
USE_TOOLS+= perl:run
-CONFLICTS= dircproxy-1.1.[0-9]*
+.include "options.mk"
-REPLACE_PERL= contrib/log.pl contrib/privmsg-log.pl
+CONFLICTS= dircproxy-1.[0-1].[0-9]*
+
+REPLACE_PERL+= contrib/log.pl contrib/privmsg-log.pl
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
EGDIR= ${PREFIX}/share/examples/dircproxy
-CONF_FILES= ${EGDIR}/dircproxyrc ${PKG_SYSCONFDIR}/dircproxyrc
+CONF_FILES= ${EGDIR:Q}/dircproxyrc.sample \
+ ${PKG_SYSCONFDIR:Q}/dircproxyrc
RCD_SCRIPTS= dircproxy
.include "../../mk/bsd.pkg.mk"
diff --git a/chat/dircproxy/PLIST b/chat/dircproxy/PLIST
index 4765e283a85..726aa73ac3b 100644
--- a/chat/dircproxy/PLIST
+++ b/chat/dircproxy/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2005/05/02 20:33:57 reed Exp $
+@comment $NetBSD: PLIST,v 1.5 2008/06/17 12:53:54 tron Exp $
bin/dircproxy
bin/dircproxy-crypt
man/man1/dircproxy-crypt.1
@@ -6,7 +6,7 @@ man/man1/dircproxy.1
share/dircproxy/cronchk.sh
share/dircproxy/log.pl
share/dircproxy/privmsg-log.pl
-share/examples/dircproxy/dircproxyrc
+share/examples/dircproxy/dircproxyrc.sample
share/examples/rc.d/dircproxy
@dirrm share/examples/dircproxy
@dirrm share/dircproxy
diff --git a/chat/dircproxy/distinfo b/chat/dircproxy/distinfo
index 27fa61d9518..bbf39f20994 100644
--- a/chat/dircproxy/distinfo
+++ b/chat/dircproxy/distinfo
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.5 2007/03/17 13:47:08 rillig Exp $
+$NetBSD: distinfo,v 1.6 2008/06/17 12:53:54 tron Exp $
-SHA1 (dircproxy-1.0.5.tar.gz) = eaf159d2a1303f82e079940b381c0e71b9b90c28
-RMD160 (dircproxy-1.0.5.tar.gz) = 8082fbe3c83b9e38eae9a2b48bf244e277b3e63b
-Size (dircproxy-1.0.5.tar.gz) = 217965 bytes
-SHA1 (patch-aa) = 9c59e9f4c0cfaca7a9e000eab2a8af1b6c16329f
-SHA1 (patch-ab) = 4d2cd9dbc972e4f2f7ac20b32dc65e755796d6f0
-SHA1 (patch-ac) = 2f599b0e30c3cc2b3b801546b1df8f8ae1de2c5d
-SHA1 (patch-ad) = 3177586587616f9441110acf59b8751bd8dde5c3
-SHA1 (patch-ae) = 212e7505d26442166ff77a29c9779bed34c2f255
+SHA1 (dircproxy-1.2.0-beta2.tar.bz) = 43ab3d1b7559fd34a315c50150eebedeb4ec48db
+RMD160 (dircproxy-1.2.0-beta2.tar.bz) = 3e8bf9e11fd46caa7fd90189faf51c9e5f37d369
+Size (dircproxy-1.2.0-beta2.tar.bz) = 314480 bytes
+SHA1 (patch-aa) = 59870074b86f1150f904e10269c654719b506f29
+SHA1 (patch-ab) = c0e8706c0f1bb7a2c981d1140d1b1deb105c601b
+SHA1 (patch-ac) = ad94320d493ea50603c90cd0c1e2499716496712
diff --git a/chat/dircproxy/files/dircproxy.sh b/chat/dircproxy/files/dircproxy.sh
index a963002a686..378746d0132 100644
--- a/chat/dircproxy/files/dircproxy.sh
+++ b/chat/dircproxy/files/dircproxy.sh
@@ -1,6 +1,6 @@
#!@SH@
#
-# $NetBSD: dircproxy.sh,v 1.2 2003/11/21 23:06:12 xtraeme Exp $
+# $NetBSD: dircproxy.sh,v 1.3 2008/06/17 12:53:54 tron Exp $
#
# PROVIDE: dircproxy
diff --git a/chat/dircproxy/options.mk b/chat/dircproxy/options.mk
new file mode 100644
index 00000000000..9ddd73155f2
--- /dev/null
+++ b/chat/dircproxy/options.mk
@@ -0,0 +1,22 @@
+# $NetBSD: options.mk,v 1.1 2008/06/17 12:53:54 tron Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.dircproxy
+PKG_SUPPORTED_OPTIONS= ssl debug
+PKG_SUGGESTED_OPTIONS= ssl
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Compile with SSL support
+###
+.if !empty(PKG_OPTIONS:Mssl)
+CONFIGURE_ARGS+= --enable-ssl
+.include "../../security/openssl/buildlink3.mk"
+.endif
+
+###
+### Turn on debugging
+###
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.endif
diff --git a/chat/dircproxy/patches/patch-aa b/chat/dircproxy/patches/patch-aa
index a4c68809e51..2428d380bc2 100644
--- a/chat/dircproxy/patches/patch-aa
+++ b/chat/dircproxy/patches/patch-aa
@@ -1,13 +1,13 @@
-$NetBSD: patch-aa,v 1.1 2003/06/02 15:20:08 jmmv Exp $
+$NetBSD: patch-aa,v 1.2 2008/06/17 12:53:54 tron Exp $
---- conf/Makefile.in.orig 2002-11-21 15:19:04.000000000 +0100
+--- conf/Makefile.in.orig 2006-02-18 22:39:32.000000000 +0000
+++ conf/Makefile.in
-@@ -34,7 +34,7 @@ oldincludedir = /usr/include
-
- DESTDIR =
-
+@@ -17,7 +17,7 @@
+ srcdir = @srcdir@
+ top_srcdir = @top_srcdir@
+ VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
+pkgdatadir = $(datadir)/examples/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-
+ top_builddir = ..
diff --git a/chat/dircproxy/patches/patch-ab b/chat/dircproxy/patches/patch-ab
index 1c4a7cde3f8..a356d91dbc8 100644
--- a/chat/dircproxy/patches/patch-ab
+++ b/chat/dircproxy/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1 2005/03/10 13:31:05 tv Exp $
+$NetBSD: patch-ab,v 1.2 2008/06/17 12:53:54 tron Exp $
---- src/irc_net.h.orig 2002-02-06 05:07:42.000000000 -0500
+--- src/irc_net.h.orig 2006-02-18 22:39:32.000000000 +0000
+++ src/irc_net.h
-@@ -21,6 +21,10 @@
+@@ -23,6 +23,10 @@
#include <arpa/inet.h>
#include <time.h>
@@ -12,4 +12,4 @@ $NetBSD: patch-ab,v 1.1 2005/03/10 13:31:05 tv Exp $
+
#include "irc_prot.h"
#include "stringex.h"
-
+ #include "net.h"
diff --git a/chat/dircproxy/patches/patch-ac b/chat/dircproxy/patches/patch-ac
index ed011110081..a2868bfb83f 100644
--- a/chat/dircproxy/patches/patch-ac
+++ b/chat/dircproxy/patches/patch-ac
@@ -1,15 +1,13 @@
-$NetBSD: patch-ac,v 1.1 2007/03/17 13:47:08 rillig Exp $
+$NetBSD: patch-ac,v 1.2 2008/06/17 12:53:54 tron Exp $
-The ?: operator returns an rvalue, not an lvalue.
-
---- src/dcc_net.c.orig 2001-12-21 21:15:55.000000000 +0100
-+++ src/dcc_net.c 2007-03-17 14:44:21.000000000 +0100
-@@ -364,7 +364,7 @@ int dccnet_expunge_proxies(void) {
- n = p->next;
- _dccnet_free(p);
+--- src/irc_server.c.orig 2006-10-07 22:07:08.000000000 +0100
++++ src/irc_server.c
+@@ -1155,7 +1155,7 @@ static int _ircserver_gotmsg(struct ircp
+
+ if (!strcmp(cmsg.cmd, "ACTION")) {
+ irclog_log(p, IRC_LOG_ACTION, logdest, msg.src.orig,
+- "%s", cmsg.paramstarts[0]);
++ "%s", (cmsg.paramstarts != NULL) ? cmsg.paramstarts[0]: "none");
-- p = (l ? l->next : proxies) = n;
-+ p = *(l ? &(l->next) : &(proxies)) = n;
- } else {
- l = p;
- p = p->next;
+ } else if (!strcmp(cmsg.cmd, "DCC")
+ && p->conn_class->dcc_proxy_incoming) {
diff --git a/chat/dircproxy/patches/patch-ad b/chat/dircproxy/patches/patch-ad
deleted file mode 100644
index 8c9142f8c6f..00000000000
--- a/chat/dircproxy/patches/patch-ad
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2007/03/17 13:47:08 rillig Exp $
-
-The ?: operator returns an rvalue, not an lvalue.
-
---- src/irc_server.c.orig 2002-01-31 15:56:37.000000000 +0100
-+++ src/irc_server.c 2007-03-17 14:43:55.000000000 +0100
-@@ -700,7 +700,7 @@ static int _ircserver_gotmsg(struct ircp
- free(s);
-
- /* Was in the squelch list, so remove it and stop looking */
-- s = (l ? l->next : p->squelch_modes) = n;
-+ s = *(l ? &(l->next) : &(p->squelch_modes)) = n;
- squelch = 1;
- break;
- } else {
-@@ -741,7 +741,7 @@ static int _ircserver_gotmsg(struct ircp
- free(s);
-
- /* Was in the squelch list, so remove it and stop looking */
-- s = (l ? l->next : p->squelch_modes) = n;
-+ s = *(l ? &(l->next) : &(p->squelch_modes)) = n;
- squelch = 1;
- break;
- } else {
diff --git a/chat/dircproxy/patches/patch-ae b/chat/dircproxy/patches/patch-ae
deleted file mode 100644
index a14bd676074..00000000000
--- a/chat/dircproxy/patches/patch-ae
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2007/03/17 13:47:08 rillig Exp $
-
-The ?: operator returns an rvalue, not an lvalue.
-
---- src/net.c.orig 2002-01-01 18:55:23.000000000 +0100
-+++ src/net.c 2007-03-17 14:45:03.000000000 +0100
-@@ -459,7 +459,7 @@ static int _net_buffer(struct sockinfo *
- return 0;
- }
-
-- l = &(buff == SB_IN ? s->in_buff_last : s->out_buff_last);
-+ l = (buff == SB_IN ? &(s->in_buff_last) : &(s->out_buff_last));
-
- /* Check whether we can just add to the existing buffer */
- if ((mode == SM_RAW) && *l && ((*l)->mode == mode)) {