This patch adds support for the Secure Real-time Transport Protocol (SRTP)
library libsrtp. The patch must be applied to the openwrt packages tree:

  https://svn.openwrt.org/openwrt/packages

I have used this library in my SIP User-Agent, which has been tested and
developed using the Asus WL500Gp platform.

Signed-off-by: Alfred E. Heggestad <[EMAIL PROTECTED]>
Tested-by: Alfred E. Heggestad <[EMAIL PROTECTED]>
---

Index: libs/libsrtp/Makefile
===================================================================
--- libs/libsrtp/Makefile       (revision 0)
+++ libs/libsrtp/Makefile       (revision 0)
@@ -0,0 +1,66 @@
+# 
+# Copyright (C) 2008 OpenWrt.org
+# Copyright (C) 2008 Alfred E. Heggestad <[EMAIL PROTECTED]>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=srtp
+PKG_VERSION:=1.4.2
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
+PKG_SOURCE_URL:=http://srtp.sourceforge.net/
+PKG_MD5SUM:=7b0ffbfad9bbaf33d397027e031cb35a
+
+# override
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libsrtp
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=Secure Real-time Transport Protocol (SRTP) library
+  URL:=http://srtp.sourceforge.net/
+endef
+
+define Package/libsrtp/description
+       The libSRTP library is an open-source implementation of the
+       Secure Real-time Transport Protocol (SRTP) originally authored
+       by Cisco Systems, Inc. It is available under a BSD-style license.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Configure
+       $(call Build/Configure/Default, \
+               --enable-static \
+       )
+endef
+
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               CFLAGS="$(TARGET_CFLAGS)" \
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               bin_PROGRAMS="" \
+               libsrtp.a install
+endef
+
+define Build/InstallDev
+       mkdir -p $(1)/usr/include
+       $(CP) -a $(PKG_INSTALL_DIR)/usr/include/srtp $(1)/usr/include/
+       mkdir -p $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.a $(1)/usr/lib/
+endef
+
+define Package/libsrtp/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.a $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libsrtp))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to