wwan: add ec25 to database
[openwrt/openwrt.git] / package / network / utils / wwan / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=wwan
4 PKG_VERSION:=2019-04-29
5 PKG_RELEASE=3
6
7 PKG_LICENSE:=GPL-2.0
8 PKG_LICENSE_FILES:=
9
10 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
11
12 include $(INCLUDE_DIR)/package.mk
13
14 define Package/wwan
15 SECTION:=net
16 CATEGORY:=Network
17 TITLE:=Generic OpenWrt 3G/4G proto handler
18 endef
19
20 define Build/Compile
21 true
22 endef
23
24 define Package/wwan/install
25 $(INSTALL_DIR) $(1)/lib/netifd/proto/
26 $(CP) ./files/wwan.sh $(1)/lib/netifd/proto/
27 $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
28 $(INSTALL_BIN) ./files/wwan.usb $(1)/etc/hotplug.d/usb/00_wwan.sh
29 $(INSTALL_DIR) $(1)/etc/hotplug.d/usbmisc
30 $(INSTALL_BIN) ./files/wwan.usbmisc $(1)/etc/hotplug.d/usbmisc/00_wwan.sh
31 $(INSTALL_DIR) $(1)/lib/network/wwan/
32 $(INSTALL_DATA) ./files/data/* $(1)/lib/network/wwan/
33 #in order to keep the Lede GIT repo free of filenames with colons,
34 #we name the files xxxx-yyyy
35 # and rename here after copying to the build directory
36 shopt -s nullglob ; \
37 for filevar in $(1)/lib/network/wwan/*-* ; \
38 do \
39 FILENAME=$$$$(basename $$$$filevar) ; \
40 NEWNAME=$$$${FILENAME//-/:} ; \
41 mv "$(1)/lib/network/wwan/$$$$FILENAME" "$(1)/lib/network/wwan/$$$$NEWNAME" ; \
42 done
43 endef
44
45 $(eval $(call BuildPackage,wwan))