summaryrefslogtreecommitdiff
path: root/package/reaim
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/reaim
Initial import
Diffstat (limited to 'package/reaim')
-rw-r--r--package/reaim/Config.in9
-rw-r--r--package/reaim/Makefile28
-rw-r--r--package/reaim/files/reaim.init33
-rw-r--r--package/reaim/ipkg/reaim.control5
-rw-r--r--package/reaim/ipkg/reaim.postinst4
-rw-r--r--package/reaim/patches/501-cross_compile-install.patch16
6 files changed, 95 insertions, 0 deletions
diff --git a/package/reaim/Config.in b/package/reaim/Config.in
new file mode 100644
index 000000000..baf0f2200
--- /dev/null
+++ b/package/reaim/Config.in
@@ -0,0 +1,9 @@
+config ADK_PACKAGE_REAIM
+ prompt "reaim............................. A transparent AIM / MSN proxy"
+ tristate
+ default n
+ help
+ ReAIM is a proxy for file transfers with MSN/AIM.
+
+ http://reaim.sourceforge.net/
+
diff --git a/package/reaim/Makefile b/package/reaim/Makefile
new file mode 100644
index 000000000..991ea177c
--- /dev/null
+++ b/package/reaim/Makefile
@@ -0,0 +1,28 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= reaim
+PKG_VERSION:= 0.8
+PKG_RELEASE:= 9
+PKG_MD5SUM:= 647d2ab72ec454f89294accfb3182c09
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=reaim/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,REAIM,reaim,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_REAIM}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_REAIM}/usr/sbin
+ ${INSTALL_BIN} ./files/reaim.init \
+ ${IDIR_REAIM}/etc/init.d/reaim
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/reaim ${IDIR_REAIM}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/reaim/files/reaim.init b/package/reaim/files/reaim.init
new file mode 100644
index 000000000..4ef211283
--- /dev/null
+++ b/package/reaim/files/reaim.init
@@ -0,0 +1,33 @@
+#!/bin/sh
+#FWINIT 75
+. /etc/rc.conf
+
+IPT=/usr/sbin/iptables
+WAN=${reaim_flags}
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${reaim:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ $IPT -A input_rule -i $WAN -p tcp --dport 1863:1864 -j ACCEPT
+ $IPT -A input_rule -i $WAN -p tcp --dport 4443 -j ACCEPT
+ $IPT -A input_rule -i $WAN -p tcp --dport 5566 -j ACCEPT
+ $IPT -A input_rule -i $WAN -p tcp --dport 40000:40099 -j ACCEPT
+ reaim
+ ;;
+stop)
+ killall reaim
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/reaim/ipkg/reaim.control b/package/reaim/ipkg/reaim.control
new file mode 100644
index 000000000..31bc9a9a3
--- /dev/null
+++ b/package/reaim/ipkg/reaim.control
@@ -0,0 +1,5 @@
+Package: reaim
+Priority: optional
+Section: net
+Depends: iptables
+Description: A transparent AIM / MSN proxy
diff --git a/package/reaim/ipkg/reaim.postinst b/package/reaim/ipkg/reaim.postinst
new file mode 100644
index 000000000..39c37b222
--- /dev/null
+++ b/package/reaim/ipkg/reaim.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf reaim reaim NO
+add_rcconf reaim_flags reaim_flags "eth0.1"
diff --git a/package/reaim/patches/501-cross_compile-install.patch b/package/reaim/patches/501-cross_compile-install.patch
new file mode 100644
index 000000000..9e88f617e
--- /dev/null
+++ b/package/reaim/patches/501-cross_compile-install.patch
@@ -0,0 +1,16 @@
+diff -urN reaim-0.8/Makefile reaim-0.8/Makefile
+--- reaim-0.8/Makefile 2002-11-28 06:10:38.000000000 +0100
++++ reaim-0.8/Makefile 2005-10-07 12:07:43.000000000 +0200
+@@ -11,7 +11,10 @@
+ endif
+
+ reaim: reaim.c
+- gcc -o reaim reaim.c -g -Wall $(FW_FLAGS)
+-
++ $(CC) $(CFLAGS) -o reaim reaim.c -Wall $(FW_FLAGS)
+ clean:
+ -rm reaim
++
++install:
++ install -d -m 0755 $(DESTDIR)/usr/sbin
++ install -m 0755 reaim $(DESTDIR)/usr/sbin/