net/rtpproxy: add new CSV accounting module
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 17 Feb 2018 09:16:21 +0000 (10:16 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 17 Feb 2018 09:18:13 +0000 (10:18 +0100)
Can be loaded by rtpproxy with -dso command line parameter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/rtpproxy/Makefile

index 084b8ca880118c9c59cf1ab1522189038a47c039..9a91f63802c8a6b8172981eb3c50a9f1354d7cba 100644 (file)
@@ -29,13 +29,24 @@ PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
 
 include $(INCLUDE_DIR)/package.mk
 
-define Package/rtpproxy
+define Package/rtpproxy/Default
   SECTION:=net
   CATEGORY:=Network
   SUBMENU:=Telephony
+  URL:=http://www.rtpproxy.org/
+endef
+
+define Package/rtpproxy
+$(call Package/rtpproxy/Default)
   DEPENDS:=+libpthread +librt
   TITLE:=RTP (Realtime Transport Protocol) proxy
-  URL:=http://www.rtpproxy.org/
+  MENU:=1
+endef
+
+define Package/rtpproxy-mod-acct_csv
+$(call Package/rtpproxy/Default)
+  DEPENDS:=rtpproxy
+  TITLE:=RTPproxy accounting module
 endef
 
 CONFIGURE_VARS += \
@@ -52,4 +63,11 @@ define Package/rtpproxy/install
        $(INSTALL_BIN) ./files/rtpproxy.config $(1)/etc/config/rtpproxy
 endef
 
+define Package/rtpproxy-mod-acct_csv/install
+       $(INSTALL_DIR) $(1)/usr/lib/rtpproxy
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/rtpproxy/rtpp_acct_csv.so \
+                                                       $(1)/usr/lib/rtpproxy
+endef
+
 $(eval $(call BuildPackage,rtpproxy))
+$(eval $(call BuildPackage,rtpproxy-mod-acct_csv))