Add new package. Its name is easycwmp. easycwmp is a GPLv2 open source implementation of the TR069 cwmp standard. easycwmp is a complete cwmp client fully conform with the TR-069 standrad
Signed-off-by: MOHAMED Kallel <mohamed.kal...@pivasoftware.com> --- easycwmp/Config.in | 26 +++++++++++++ easycwmp/Makefile | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+), 0 deletions(-) create mode 100755 easycwmp/Config.in create mode 100755 easycwmp/Makefile diff --git a/easycwmp/Config.in b/easycwmp/Config.in new file mode 100755 index 0000000..8e32e86 --- /dev/null +++ b/easycwmp/Config.in @@ -0,0 +1,26 @@ +if PACKAGE_easycwmp + +config EASYCWMP_SCRIPTS_FULL + bool "Install all easycwmp scripts" + default y + +choice + prompt "Select ACS sever" + default EASYCWMP_ACS_MULTI + +config EASYCWMP_ACS_MULTI + bool "No specific ACS, follow standard" + +config EASYCWMP_ACS_HDM + bool "HDM" +endchoice + +config EASYCWMP_DEBUG + bool "Compile with debug options" + default n + +config EASYCWMP_DEVEL + bool "Compile with development options" + default n + +endif diff --git a/easycwmp/Makefile b/easycwmp/Makefile new file mode 100755 index 0000000..c7428d4 --- /dev/null +++ b/easycwmp/Makefile @@ -0,0 +1,106 @@ +# +# Copyright (C) 2012-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=easycwmp +PKG_VERSION:=1.0 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://easycwmp.org/download/ + +PKG_FIXUP:=autoreconf + +PKG_CONFIG_DEPENDS:= \ + CONFIG_EASYCWMP_ACS_MULTI \ + CONFIG_EASYCWMP_ACS_HDM \ + CONFIG_EASYCWMP_DEBUG \ + CONFIG_EASYCWMP_DEVEL + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/easycwmp + SECTION:=utils + CATEGORY:=Utilities + TITLE:=CWMP client (using libcurl) + DEPENDS:=+libubus +libuci +libubox +libmicroxml +libjson-c +shflags +libcurl +endef + +define Package/easycwmp/description + An open source implementation of the client CWMP (TR-069) protocol +endef + +define Package/easycwmp/config + source "$(SOURCE)/Config.in" +endef + +USE_LOCAL=$(shell ls ./src/ 2>/dev/null >/dev/null && echo 1) +ifneq ($(USE_LOCAL),) +define Build/Prepare + $(CP) ./src/* $(PKG_BUILD_DIR)/ +endef +endif + +TARGET_CFLAGS += \ + -D_GNU_SOURCE + +TARGET_LDFLAGS += \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib + +CONFIGURE_ARGS += \ + --with-uci-include-path=$(STAGING_DIR)/usr/include \ + --with-libubox-include-path=$(STAGING_DIR)/usr/include \ + --with-libubus-include-path=$(STAGING_DIR)/usr/include + + +ifeq ($(CONFIG_EASYCWMP_ACS_MULTI),y) +CONFIGURE_ARGS += \ + --enable-acs=multi +endif + +ifeq ($(CONFIG_EASYCWMP_ACS_HDM),y) +CONFIGURE_ARGS += \ + --enable-acs=hdm +endif + +ifeq ($(CONFIG_EASYCWMP_DEBUG),y) +CONFIGURE_ARGS += \ + --enable-debug +endif + +ifeq ($(CONFIG_EASYCWMP_DEVEL),y) +CONFIGURE_ARGS += \ + --enable-devel +endif + +CONFIGURE_ARGS += \ + --enable-jsonc=1 + +define Package/easycwmp/conffiles +/etc/config/easycwmp +/usr/share/easycwmp/defaults +endef + +define Package/easycwmp/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/easycwmpd $(1)/usr/sbin + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_CONF) $(PKG_BUILD_DIR)/ext/openwrt/config/easycwmp $(1)/etc/config + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/init.d/easycwmpd $(1)/etc/init.d + $(INSTALL_DIR) $(1)/etc/easycwmp +ifeq ($(CONFIG_EASYCWMP_SCRIPTS_FULL),y) + $(INSTALL_DIR) $(1)/usr/share/easycwmp + $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/defaults $(1)/usr/share/easycwmp + $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions $(1)/usr/share/easycwmp + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/scripts/easycwmp.sh $(1)/usr/sbin/easycwmp +endif +endef + +$(eval $(call BuildPackage,easycwmp)) -- 1.7.5.4 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel