aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorjim <jim@FreeBSD.org>1999-08-26 17:21:23 +0800
committerjim <jim@FreeBSD.org>1999-08-26 17:21:23 +0800
commit58233e7f0e32904f4ed4618b0e42fb4e93a08024 (patch)
tree4e5701be45a236cf4b8f724d77202eaa12882bbc /irc
parent600f1a7882dc367932101429c8610fe3ceee0494 (diff)
downloadfreebsd-ports-gnome-58233e7f0e32904f4ed4618b0e42fb4e93a08024.tar.gz
freebsd-ports-gnome-58233e7f0e32904f4ed4618b0e42fb4e93a08024.tar.zst
freebsd-ports-gnome-58233e7f0e32904f4ed4618b0e42fb4e93a08024.zip
Import of tircproxy.
This program is designed to proxy IRC connections, intercepting and proxying both DCC CHAT and DCC SEND requests transparently to the user. PR: 13066 Submitted by: Eugeny Kuzakov <CoreDumped@lab321.ru>
Diffstat (limited to 'irc')
-rw-r--r--irc/tircproxy/Makefile28
-rw-r--r--irc/tircproxy/distinfo1
-rw-r--r--irc/tircproxy/files/patch-aa34
-rw-r--r--irc/tircproxy/files/patch-ab11
-rw-r--r--irc/tircproxy/pkg-comment1
-rw-r--r--irc/tircproxy/pkg-descr16
-rw-r--r--irc/tircproxy/pkg-plist3
-rw-r--r--irc/tircproxy/scripts/pre-configure13
8 files changed, 107 insertions, 0 deletions
diff --git a/irc/tircproxy/Makefile b/irc/tircproxy/Makefile
new file mode 100644
index 000000000000..0ceee5a33bf3
--- /dev/null
+++ b/irc/tircproxy/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: tircproxy
+# Version required: 0.4.3
+# Date created: 11 Aug 1999
+# Whom: Eugeny Kuzakov <CoreDumped@CoreDumped.null.ru>
+#
+# $FreeBSD$
+#
+
+DISTNAME= tircproxy-0.4.3
+CATEGORIES= irc
+MASTER_SITES= http://www.mmedia.is/~bre/tircproxy/
+
+MAINTAINER= CoreDumped@CoreDumped.null.ru
+
+WRKSRC= ${WRKDIR}/tircproxy-0.4
+GNU_CONFIGURE= YES
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tircproxy ${PREFIX}/sbin
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${ECHO} "===> Installing tircproxy docs in ${PREFIX}/share/doc/tircproxy"
+ @${MKDIR} ${PREFIX}/share/doc/tircproxy && ${CHMOD} a+rx ${PREFIX}/share/doc/tircproxy
+ @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tircproxy
+.endif
+
+.include <bsd.port.mk>
diff --git a/irc/tircproxy/distinfo b/irc/tircproxy/distinfo
new file mode 100644
index 000000000000..d4347f19f99e
--- /dev/null
+++ b/irc/tircproxy/distinfo
@@ -0,0 +1 @@
+MD5 (tircproxy-0.4.3.tar.gz) = 94f508ed95cefc3e3d841c9c52b59e58
diff --git a/irc/tircproxy/files/patch-aa b/irc/tircproxy/files/patch-aa
new file mode 100644
index 000000000000..0590e6ae3d69
--- /dev/null
+++ b/irc/tircproxy/files/patch-aa
@@ -0,0 +1,34 @@
+--- tircproxy.h.orig Wed Aug 11 15:40:04 1999
++++ tircproxy.h Wed Aug 11 15:43:06 1999
+@@ -25,8 +25,8 @@
+ /* Set the location of the broadcast & MOTD files. Undef these to disable
+ ** the broadcasting feature.
+ */
+-#define BROADCAST_FILE "/tmp/ircbroadcast"
+-#define IRC_MOTD_FILE "/etc/motd.irc"
++#define BROADCAST_FILE "/usr/local/etc/tircproxy/ircbroadcast"
++#define IRC_MOTD_FILE "/usr/local/etc/tircproxy/motd.irc"
+
+ /* Enable this if you want to use the IPF code for tranparency.
+ */
+@@ -34,7 +34,7 @@
+
+ /* Enable this if you want to use the Linux code for tranparency.
+ */
+-#define LINUX 1
++#define LINUX 0
+
+ /* Enable this if you want to ask proxy users for passwords.
+ */
+@@ -97,10 +97,10 @@
+ **
+ ** This means the proxy does NOT need to run as root for ident responses to
+ ** be correct (so go get oidentd-1.4+cdir !!).
+-*/
+ #define CDIR "/var/oidentd/"
+ #define CDIR_IDENT "ident"
+ #define CDIR_MAP "user"
++*/
+
+
+ /* The following table defines a list of filenames that are not
diff --git a/irc/tircproxy/files/patch-ab b/irc/tircproxy/files/patch-ab
new file mode 100644
index 000000000000..5b9fcb539580
--- /dev/null
+++ b/irc/tircproxy/files/patch-ab
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Wed Aug 11 16:48:33 1999
++++ Makefile.in Wed Aug 11 16:48:49 1999
+@@ -12,7 +12,7 @@
+ TARGETNAME=@sbindir@/tircproxy
+ STRIP=@STRIP@
+
+-ALL_CFLAGS=-Wall -I. -I@srcdir@ $(CFLAGS)
++ALL_CFLAGS=-Wall -I. -I@srcdir@ $(CFLAGS) -I/sys -I/usr/src/sys
+
+ .SUFFIXES:
+ .SUFFIXES: .c .o
diff --git a/irc/tircproxy/pkg-comment b/irc/tircproxy/pkg-comment
new file mode 100644
index 000000000000..dae0b2256b20
--- /dev/null
+++ b/irc/tircproxy/pkg-comment
@@ -0,0 +1 @@
+This is an IRC proxy server.
diff --git a/irc/tircproxy/pkg-descr b/irc/tircproxy/pkg-descr
new file mode 100644
index 000000000000..4e645d49c116
--- /dev/null
+++ b/irc/tircproxy/pkg-descr
@@ -0,0 +1,16 @@
+This is an IRC proxy server. Features:
+ + Supports DCC CHAT, SEND, RESUME and TSEND protocols.
+ + Supports both transparent and dedicated operation.
+ + Supports "anonymization" to hide users' identities.
+ + Supports flexible authentication for access.
+ + Can be run either standalone or via inetd.
+ + Allows the admin to send "MOTD" style messages and/or
+ broadcasts to the user(s).
+ + Can block trojans such as 'script.ini', 'dmsetup.exe', etc.
+ + Access controlled by /etc/hosts.allow and /etc/hosts.deny.
+ + Can cooperate with some identd's for non-root operation, or
+ (if root) can change UID/GID according to client's IP addr.
+ + Extensive documentation
+
+
+Ported by Eugeny Kuzakov (CoreDumped@CoreDumped.null.ru)
diff --git a/irc/tircproxy/pkg-plist b/irc/tircproxy/pkg-plist
new file mode 100644
index 000000000000..d7d147355855
--- /dev/null
+++ b/irc/tircproxy/pkg-plist
@@ -0,0 +1,3 @@
+sbin/tircproxy
+share/doc/tircproxy/README
+@dirrm share/doc/tircproxy
diff --git a/irc/tircproxy/scripts/pre-configure b/irc/tircproxy/scripts/pre-configure
new file mode 100644
index 000000000000..a18a14fa5d10
--- /dev/null
+++ b/irc/tircproxy/scripts/pre-configure
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+paths="/sys /usr/include /usr/src/sys"
+for i in ${paths}; do
+ if [ -f $i/netinet/ip_nat.h ]; then
+ exit 0
+ fi
+done
+echo Unable find netinet/ip_nat.h
+echo This header file from ipfilter package
+echo Try to locate ip_nat.h and manually create links in following catalogs:
+echo $paths
+exit 1