2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
)_Aug13.tgz
15 PKG_SOURCE_URL
:=@SF
/stun
16 PKG_MD5SUM
:=3273abb1a6f299f4e611b658304faefa
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
20 include $(INCLUDE_DIR
)/uclibc
++.mk
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/stun
/Default
26 DEPENDS
:=$(CXX_DEPENDS
)
27 URL
:=http
://sourceforge.net
/projects
/stun
30 define Package
/stun
/Default
/description
31 The STUN protocol
(Simple Traversal of UDP through NATs
) is described in the
32 IETF RFC
3489, available at http
://www.ietf.org
/rfc
/rfc3489.txt. It
's used to
33 help clients behind NAT to tunnel incoming calls through. This server is the
34 counterpart to help the client identify the NAT and have it open the proper
39 $(call Package/stun/Default)
43 define Package/stund/description
44 $(call Package/stun/Default/description)
47 define Package/stun-client
48 $(call Package/stun/Default)
49 TITLE:=STUN test client
52 define Package/stun-client/description
53 $(call Package/stun/Default/description)
57 $(MAKE) -C $(PKG_BUILD_DIR) \
59 CFLAGS="$(TARGET_CFLAGS)" \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
62 CPPFLAGS="$$$$CPPFLAGS $(TARGET_CPPFLAGS)" \
63 LDFLAGS="$$$$LDFLAGS $(TARGET_LDFLAGS)" \
68 define Package/stund/install
69 $(INSTALL_DIR) $(1)/usr/sbin
70 $(INSTALL_BIN) $(PKG_BUILD_DIR)/server $(1)/usr/sbin/stund
71 $(INSTALL_DIR) $(1)/etc/init.d
72 $(INSTALL_BIN) ./files/stund.init $(1)/etc/init.d/stund
73 $(INSTALL_DIR) $(1)/etc/config
74 $(INSTALL_DATA) ./files/stund.config $(1)/etc/config/stund
77 define Package/stund/conffiles
81 define Package/stun-client/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(INSTALL_BIN) $(PKG_BUILD_DIR)/client $(1)/usr/sbin/stun-client
86 $(eval $(call BuildPackage,stund))
87 $(eval $(call BuildPackage,stun-client))