summaryrefslogtreecommitdiff
path: root/package/siproxd
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/siproxd
Initial import
Diffstat (limited to 'package/siproxd')
-rw-r--r--package/siproxd/Config.in12
-rw-r--r--package/siproxd/Makefile31
-rw-r--r--package/siproxd/files/siproxd.init25
-rw-r--r--package/siproxd/ipkg/siproxd.conffiles2
-rw-r--r--package/siproxd/ipkg/siproxd.control5
-rw-r--r--package/siproxd/ipkg/siproxd.postinst3
-rw-r--r--package/siproxd/patches/patch-configure18
7 files changed, 96 insertions, 0 deletions
diff --git a/package/siproxd/Config.in b/package/siproxd/Config.in
new file mode 100644
index 000000000..e3e4d67e9
--- /dev/null
+++ b/package/siproxd/Config.in
@@ -0,0 +1,12 @@
+config ADK_PACKAGE_SIPROXD
+ prompt "siproxd........................... SIP (Session Initiation Protocol) proxy"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBOSIP2
+ help
+ A SIP (Session Initiation Protocol) proxy
+
+ http://siproxd.sourceforge.net/
+
+ Depends: libosip2
+
diff --git a/package/siproxd/Makefile b/package/siproxd/Makefile
new file mode 100644
index 000000000..d05316b70
--- /dev/null
+++ b/package/siproxd/Makefile
@@ -0,0 +1,31 @@
+# $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:= siproxd
+PKG_VERSION:= 0.5.12
+PKG_RELEASE:= 8
+PKG_MD5SUM:= 2fa02bd6f83070593bfc2d383ce614fa
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=siproxd/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,SIPROXD,siproxd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_SIPROXD}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_SIPROXD}/usr/sbin
+ ${INSTALL_DATA} ${WRKINST}/etc/siproxd.conf.example ${IDIR_SIPROXD}/etc/siproxd.conf
+ ${INSTALL_DATA} ${WRKINST}/etc/siproxd_passwd.cfg ${IDIR_SIPROXD}/etc/
+ ${INSTALL_BIN} files/siproxd.init \
+ ${IDIR_SIPROXD}/etc/init.d/siproxd
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/siproxd ${IDIR_SIPROXD}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/siproxd/files/siproxd.init b/package/siproxd/files/siproxd.init
new file mode 100644
index 000000000..e936aab2f
--- /dev/null
+++ b/package/siproxd/files/siproxd.init
@@ -0,0 +1,25 @@
+#!/bin/sh
+#FWINIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+ autostart)
+ test x"${siproxd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+ start)
+ siproxd
+ ;;
+ stop)
+ killall siproxd
+ ;;
+ restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+ *)
+ echo "usage: $0 {start | stop | restart}"
+ exit 1
+esac
+exit $?
diff --git a/package/siproxd/ipkg/siproxd.conffiles b/package/siproxd/ipkg/siproxd.conffiles
new file mode 100644
index 000000000..abb4ba5a1
--- /dev/null
+++ b/package/siproxd/ipkg/siproxd.conffiles
@@ -0,0 +1,2 @@
+/etc/siproxd.conf
+/etc/siproxd_passwd.cfg
diff --git a/package/siproxd/ipkg/siproxd.control b/package/siproxd/ipkg/siproxd.control
new file mode 100644
index 000000000..96f73e21c
--- /dev/null
+++ b/package/siproxd/ipkg/siproxd.control
@@ -0,0 +1,5 @@
+Package: siproxd
+Priority: optional
+Section: net
+Description: a SIP (Session Initiation Protocol) proxy
+Depends: libosip2, libpthread
diff --git a/package/siproxd/ipkg/siproxd.postinst b/package/siproxd/ipkg/siproxd.postinst
new file mode 100644
index 000000000..bf72a7a06
--- /dev/null
+++ b/package/siproxd/ipkg/siproxd.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf siproxd siproxd NO
diff --git a/package/siproxd/patches/patch-configure b/package/siproxd/patches/patch-configure
new file mode 100644
index 000000000..364bc3b20
--- /dev/null
+++ b/package/siproxd/patches/patch-configure
@@ -0,0 +1,18 @@
+$Id$
+--- siproxd-0.5.12.orig/configure 2006-01-01 20:34:27.000000000 +0000
++++ siproxd-0.5.12/configure 2007-02-17 19:09:07.000000000 +0000
+@@ -3381,9 +3381,14 @@ echo $ECHO_N "checking build statically
+ # Check whether --enable-static or --disable-static was given.
+ if test "${enable_static+set}" = set; then
+ enableval="$enable_static"
++ if test x"yes" = x"$enable_static"; then
+ LDFLAGS="$LDFLAGS -static";
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ fi
+ else
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6