summaryrefslogtreecommitdiff
path: root/net/3proxy/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/3proxy/files')
-rw-r--r--net/3proxy/files/3proxy.sh17
-rw-r--r--net/3proxy/files/patch-aa17
-rw-r--r--net/3proxy/files/patch-ab26
3 files changed, 60 insertions, 0 deletions
diff --git a/net/3proxy/files/3proxy.sh b/net/3proxy/files/3proxy.sh
new file mode 100644
index 000000000000..decae6e80a07
--- /dev/null
+++ b/net/3proxy/files/3proxy.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+case "$1" in
+'start')
+ %%PREFIX%%/bin/3proxy %%PREFIX%%/etc/3proxy.cfg & echo -n " 3proxy"
+ ;;
+
+'stop')
+ /usr/bin/killall 3proxy
+ ;;
+
+*)
+ echo "Usage: ${0} { start | stop }"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/net/3proxy/files/patch-aa b/net/3proxy/files/patch-aa
new file mode 100644
index 000000000000..b7a4dfef7362
--- /dev/null
+++ b/net/3proxy/files/patch-aa
@@ -0,0 +1,17 @@
+--- Makefile.unix.orig Mon Jul 28 13:06:40 2003
++++ Makefile.unix Mon Jul 28 13:24:40 2003
+@@ -3,11 +3,11 @@
+ # 3 proxy Makefile for GCC/Unix/Linux/Cygwin
+ #
+
+-CC = gcc
+-CFLAGS = -Wall -O2 -s -c -pthread -DNOODBC
++CC ?= gcc
++CFLAGS += -Wall -O2 -s -c ${PTHREAD_CFLAGS} -DNOODBC
+ COUT = -o
+ LN = gcc
+-LDFLAGS = -Wall -O2 -s -pthread
++LDFLAGS += -Wall -O2 -s ${PTHREAD_LIBS}
+ LIBS =
+ LNOUT = -o
+ EXESUFFICS =
diff --git a/net/3proxy/files/patch-ab b/net/3proxy/files/patch-ab
new file mode 100644
index 000000000000..e26f0f5af28c
--- /dev/null
+++ b/net/3proxy/files/patch-ab
@@ -0,0 +1,26 @@
+--- 3proxy.cfg.sample.orig Mon Jul 28 14:50:42 2003
++++ 3proxy.cfg.sample Mon Jul 28 14:51:55 2003
+@@ -332,12 +332,12 @@
+ # this example shows you how to include passwd file. For included files
+ # <CR> and <LF> are treated as field separators.
+
+-service
++#service
+ # service is required under NT if you want 3proxy to start as service
+
+
+ #log /usr/local/etc/3proxy/logs/3proxy.log D
+-log c:\3proxy\logs\3proxy.log D
++log /var/log/3proxy.log D
+ # log allows to specify log file location and rotation, D means logfile
+ # is created daily
+
+@@ -421,7 +421,7 @@
+ # like multimedia streams or online games.
+
+ auth strong
+-fflush
++flush
+ allow 3APA3A,test
+ socks
+ # for socks we will use password authentication and different access control -